/* All routes on one map with a day picker. Used by includes/components/tour-map.php */
.tmap__grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .tmap__grid { grid-template-columns: 5fr 7fr; gap: 3rem; align-items: start; } .tmap__map { order: 2; } .tmap__side { order: 1; } }
.tmap__map { aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .tmap__map { aspect-ratio: 16 / 11; } }
/* desktop: the map never grows taller than the screen, so it always fits next to the panel */
@media (min-width: 1024px) { .tmap__map { aspect-ratio: auto; height: min(44rem, calc(100svh - 8rem)); position: sticky; top: 6rem; } }
.tmap__tabs { display: none; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; margin-bottom: 1.25rem; }
.js .tmap__tabs { display: grid; }
.tmap__tab { display: grid; gap: 0.15rem; padding: 0.7rem 0.6rem; border: 2px solid var(--color-line); border-radius: 18px; background: #fff; color: var(--color-primary); text-align: left; cursor: pointer; transition: background-color 0.25s var(--ease-out), border-color 0.25s var(--ease-out), color 0.25s var(--ease-out); }
.tmap__tab:hover { border-color: var(--color-accent); }
.tmap__tab.is-active { background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.tmap__tab-day { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.75; }
.tmap__tab-name { font-weight: 650; line-height: 1.2; }
/* without JavaScript only the first panel is shown, so reveal them all in the list */
.tmap__panel[hidden] { display: none; }
.tmap .jday .stops li { color: var(--color-primary); }
.tmap .jday .stops li::before { background: var(--color-accent-strong); border-color: var(--color-accent-strong); }

/* routes: faint dashed lines, the picked day is solid gold */
.tmap__route { fill: none; stroke: rgb(var(--rgb-muted) / 0.45); stroke-width: 1.6; stroke-dasharray: 2 6; stroke-linecap: round; transition: stroke 0.3s, stroke-width 0.3s; }
.js .tmap__route.is-active { stroke: var(--color-accent-strong); stroke-width: 4; stroke-dasharray: none; stroke-linejoin: round; }
.tmap__pt { transition: opacity 0.3s; }
.js .tmap__pt.is-dim { opacity: 0; pointer-events: none; }
.tmap .jmap .stop { stroke: #fff; stroke-width: 2.5; }
