/* Time Walk route map (tw-routemap.js). Uses tw-tokens.css. Map-only shades are local --tvm-* variables. */
.tvm{--tvm-wall:#1d1710;--tvm-bld:#2e251a;--tvm-tower:#2a2117;--tvm-riva:#221c14;--tvm-palm:rgba(150,170,96,.55);
  position:relative;margin:0;color:var(--c-text);font-family:var(--f-body)}
.tvm-stage{position:relative}
.tvm-svg{display:block;width:100%;height:auto;border-radius:var(--r-md);box-shadow:0 0 0 1px var(--c-gold-line),var(--shadow-1)}

/* the plan */
.tvm-bg{fill:var(--c-surface)}
.tvm-riva{fill:var(--tvm-riva)}
.tvm-palm{fill:var(--tvm-palm)}
.tvm-shore{stroke:var(--c-line-strong);stroke-width:1}
.tvm-sea{fill:var(--c-text-muted);font:italic 600 13px var(--f-display);letter-spacing:.04em}
.tvm-wall{fill:var(--tvm-wall);stroke:rgba(245,236,215,.42);stroke-width:2.5}
.tvm-wall-in{fill:none;stroke:var(--c-line);stroke-width:1}
.tvm-tower{fill:var(--tvm-tower);stroke:rgba(245,236,215,.42);stroke-width:1.5}
.tvm-street{fill:none;stroke:rgba(245,236,215,.09);stroke-width:10;stroke-linecap:round}
.tvm-cellar{stroke:rgba(200,168,48,.22);stroke-width:1}
.tvm-bld{fill:var(--tvm-bld);stroke:rgba(245,236,215,.32);stroke-width:1.3}
.tvm-col{fill:rgba(245,236,215,.55)}
.tvm-note{fill:var(--c-text-faint);font:400 10.5px var(--f-body);letter-spacing:.04em}
.tvm-north circle{fill:var(--c-bg-raised);stroke:var(--c-line-strong)}
.tvm-north path{fill:var(--c-gold)}
.tvm-north text{fill:var(--c-text-muted);font:700 10px var(--f-body)}

/* the route: dashed line moves only while the map is on screen (JS adds .is-vis) */
.tvm-route-bg{fill:none;stroke:rgba(200,168,48,.18);stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.tvm-route{fill:none;stroke:var(--c-gold-bright);stroke-width:2.6;stroke-dasharray:2 7;stroke-linecap:round;stroke-linejoin:round;animation:tvm-dash 1.6s linear infinite paused}
.tvm.is-vis .tvm-route{animation-play-state:running}
.tvm.is-act .tvm-route{opacity:.55}
@keyframes tvm-dash{to{stroke-dashoffset:-18}}
.tvm-done{fill:none;stroke:var(--c-gold-bright);stroke-width:3.4;stroke-linecap:round;stroke-linejoin:round;opacity:0;transition:stroke-dashoffset var(--d-slow) var(--ease-out),opacity var(--d-base) ease}
.tvm.is-act .tvm-done{opacity:1}

/* stops */
.tvm-pt .tvm-halo{fill:rgba(22,18,13,.88)}
.tvm-dot-o{fill:var(--c-surface);stroke:var(--c-text);stroke-width:2;transition:fill var(--d-fast) ease,stroke var(--d-fast) ease}
.tvm-pt text{fill:var(--c-text-strong);font:700 12px var(--f-body);text-anchor:middle;pointer-events:none;transition:fill var(--d-fast) ease}
.tvm-pt-vr .tvm-halo{fill:rgba(200,168,48,.24)}
.tvm-pt-vr .tvm-dot-o{fill:var(--c-gold);stroke:var(--c-gold)}
.tvm-pt-vr text{fill:var(--c-on-primary)}
.tvm-pt.is-past .tvm-dot-o{stroke:var(--c-gold-bright)}
.tvm-pt.is-on .tvm-dot-o{fill:var(--c-gold-bright);stroke:var(--c-gold-bright)}
.tvm-pt.is-on text{fill:var(--c-on-primary)}
.tvm-ring{fill:none;stroke:var(--c-gold-bright);stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center}
.tvm-pt.is-on .tvm-ring{opacity:.7}
@media (prefers-reduced-motion:no-preference){
  .tvm.is-vis .tvm-pt.is-on .tvm-ring{animation:tvm-pulse 1.8s var(--ease-out) infinite}
}
@keyframes tvm-pulse{from{transform:scale(.62);opacity:.95}to{transform:scale(1.35);opacity:0}}
.tvm-lab{fill:var(--c-text);font:700 12.5px var(--f-body);paint-order:stroke;stroke:var(--c-surface);stroke-width:4px;stroke-linejoin:round;transition:fill var(--d-fast) ease}
.tvm-lab-vr{fill:var(--c-gold-bright)}
.tvm-lab.is-on{fill:var(--c-text-strong)}

/* real buttons over the markers: 44px hit areas */
.tvm-hits{position:absolute;inset:0;pointer-events:none}
.tvm-hit{position:absolute;width:44px;height:44px;margin:-22px 0 0 -22px;padding:0;border:0;border-radius:50%;background:transparent;cursor:pointer;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:background-color var(--d-fast) ease}
.tvm-hit:focus-visible{outline:2px solid var(--c-gold-bright);outline-offset:-5px}
@media (hover:hover) and (pointer:fine){.tvm-hit:hover{background:rgba(226,195,90,.14)}}

/* legend (group tour page): one left-aligned line above the map */
.tvm-key{display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:flex-start;margin:0 0 var(--s-3);text-align:left;color:var(--c-text-muted);font:400 var(--fs-caption)/1.4 var(--f-body)}
.tvm-key span{display:inline-flex;align-items:center;gap:6px}
.tvm-key i{display:inline-block}
.tvm-key-vr{width:12px;height:12px;border-radius:50%;background:var(--c-gold)}
.tvm-key-stop{width:10px;height:10px;border-radius:50%;box-shadow:inset 0 0 0 2px var(--c-text)}
.tvm-key-line{width:22px;border-top:3px dotted var(--c-gold-bright)}
.tvm-key .tvm-key-note{color:var(--c-text-faint)}
/* the hint: hover (mouse) or tap (touch) a stop for its photo */
.tvm-key .tvm-key-hint{flex-basis:100%;color:var(--c-gold-bright)}
.tvm-key .tvm-hint-hover{display:none}
@media (hover:hover) and (pointer:fine){.tvm-key .tvm-hint-hover{display:inline}.tvm-key .tvm-hint-tap{display:none}}
/* the Commons credit line for the route photos, under the map (tools/route/strip.py credit()) */
.tvm-credit{max-width:440px;margin:var(--s-2) auto 0;color:var(--c-text-faint);font:400 var(--fs-caption)/1.5 var(--f-body)}
.tvm-credit a{color:inherit}
.tw-routemap-slot+.tvm-credit{max-width:440px;margin:var(--s-2) auto 0}

.tvm-sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* stop preview: a callout over the map on desktop, a bottom sheet on tablet and phone */
.tvm-card{position:absolute;left:var(--s-2);right:var(--s-2);bottom:var(--s-2);z-index:3;padding:var(--s-3);border:1px solid var(--c-line-strong);border-radius:var(--r-sm);
  background:var(--c-surface-2);box-shadow:var(--shadow-2);opacity:0;transition:opacity var(--d-fast) ease}
/* desktop: the JS places the card above or below the stop (inline top); a hover preview lets the pointer through to the
   stops under it (.is-peek), a clicked one is a normal dialog */
.tvm-card.is-peek{pointer-events:none}
.tvm-card.is-in{opacity:1}
@media (prefers-reduced-motion:no-preference){
  .tvm-card{transform:translateY(6px);transition:opacity var(--d-base) var(--ease-out),transform var(--d-base) var(--ease-out)}
  .tvm-card.is-in{transform:none}
}
/* top row: "Stop 3 of 7" + prev / next / close; then the stop's 4:3 route photo (the same 7 photos as the homepage route,
   tools/route/stops.json) beside its name and line; VR stops show Today (that photo) / 305 AD instead */
.tvm-c-top{display:flex;align-items:center;justify-content:space-between;gap:var(--s-2);margin:-4px -6px var(--s-2) 0}
.tvm-c-head{display:flex;gap:var(--s-3);align-items:flex-start}
.tvm-c-head>img{flex:0 0 44%;max-width:180px;width:44%;height:auto;aspect-ratio:4/3;border-radius:8px;object-fit:cover;outline:1px solid rgba(255,255,255,.1);outline-offset:-1px;background:var(--c-surface)}
.tvm-c-head>img[hidden]{display:none}
.tvm-c-txt{flex:1;min-width:0}
.tvm-c-k{margin:0;color:var(--c-gold);font:700 var(--fs-caption)/1.3 var(--f-body);letter-spacing:.06em;text-transform:uppercase}
.tvm-c-n{margin:0;color:var(--c-text-strong);font:700 1rem/1.3 var(--f-body)}
.tvm-c-l{margin:2px 0 0;color:var(--c-text-muted);font:400 .875rem/1.45 var(--f-body)}
.tvm-card .tvm-c-top p,.tvm-card .tvm-c-txt p{max-width:none;margin:0}
.tvm-card .tvm-c-txt .tvm-c-l{margin-top:2px}
.tvm-c-ctl{flex:none;display:flex}
.tvm-c-ctl button{display:grid;place-items:center;width:32px;height:32px;padding:0;border:0;border-radius:50%;background:transparent;color:var(--c-text);font:400 22px/1 var(--f-body);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--d-fast) ease}
.tvm-c-ctl button:disabled{opacity:.3;cursor:default}
.tvm-c-ctl button:focus-visible{outline:2px solid var(--c-gold-bright);outline-offset:1px}
@media (hover:hover) and (pointer:fine){.tvm-c-ctl button:not(:disabled):hover{background:rgba(245,236,215,.1)}}
.tvm-cmp{display:grid;grid-template-columns:1fr 1fr;gap:var(--s-2);margin-top:var(--s-3)}
.tvm-cmp[hidden]{display:none}
.tvm-cmp figure{position:relative;margin:0}
.tvm-cmp img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;border-radius:8px;outline:1px solid rgba(255,255,255,.1);outline-offset:-1px;background:var(--c-surface)}
.tvm-cmp figcaption{position:absolute;left:6px;bottom:6px;padding:3px 8px;border-radius:var(--r-pill);background:rgba(9,7,6,.8);color:#fff;font:700 var(--fs-caption)/1.2 var(--f-body)}
.tvm-cmp-p figcaption{background:var(--c-gold);color:var(--c-on-primary)}

@media (max-width:991px){
  .tvm-card{position:fixed;top:auto;left:0;right:0;bottom:0;z-index:var(--z-menu,1100);max-width:560px;max-height:72vh;margin:0 auto;overflow:auto;overscroll-behavior:contain;
    padding:22px var(--gutter) max(var(--s-4),env(safe-area-inset-bottom));border-width:1px 0 0;border-radius:var(--r-lg) var(--r-lg) 0 0;background:var(--c-surface-2)}
  .tvm-card::before{content:"";position:absolute;top:8px;left:50%;width:36px;height:4px;margin-left:-18px;border-radius:var(--r-pill);background:var(--c-line-strong)}
  .tvm-c-top{margin:-10px -10px var(--s-1) 0}
  .tvm-c-head>img{flex-basis:42%;width:42%;max-width:168px}
  .tvm-c-n{font-size:1.0625rem}
  .tvm-c-ctl button{width:44px;height:44px}
}
@media (max-width:991px) and (prefers-reduced-motion:no-preference){
  .tvm-card{transform:translateY(100%);transition:opacity var(--d-fast) ease,transform 300ms var(--ease-out)}
  .tvm-card.is-in{transform:none}
}

/* slots on other pages (.tw-routemap-slot): the builders inline the map (route_map.py slot-maps.json), so the SVG's own
   viewBox sizes it before any script runs (CLS 0). Bigger labels and numbers than the group page: readable at 360. */
html .tw-routemap-slot{display:block;width:100%;max-width:440px;margin-inline:auto}
.tvm--slot .tvm-lab{font-size:14px;stroke-width:4.5px}
.tvm--slot .tvm-pt text{font-size:13.5px}
.tvm--slot .tvm-note{font-size:12px;fill:var(--c-text-muted)}
.tvm--slot .tvm-key{gap:4px 14px}
.tvm-pick{fill:none;stroke:var(--c-text);stroke-width:2.2;stroke-dasharray:6 5;stroke-linecap:round;opacity:.85}
.tvm-ship circle{fill:var(--c-surface-2);stroke:var(--c-text);stroke-width:2}
.tvm-ship path{fill:var(--c-text-strong)}
.tvm-ship-lab,.tvm-ship-sub{fill:var(--c-text-strong);font:700 14px var(--f-body);paint-order:stroke;stroke:#0e1d27;stroke-width:4px;stroke-linejoin:round}
.tvm-ship-sub{fill:var(--c-text);font-weight:400;font-size:13.5px}
.tvm-key-pick{width:22px;border-top:2px dashed var(--c-text)}

/* final round B (2026-11-20): the 7 stop photos as a swipe row under the map on phones (tools/route/strip.py stops_row,
   the group page's look). A tap opens the stop's preview on the map. Hidden from 768px (desktop frozen). */
.tvm-stops{display:none}
@media (max-width:767px){
  /* round 4 (owner: "the photos are too close together"): 16px between the photos, 24px between the map and the row and
     under it; 40vw cards, so two photos and a peek of the third show at 360 to 430. The slot prefix outranks
     ".tpv ol{margin:0;padding:0}" (tw-private.css), which had flattened these margins on the private and language pages */
  .tw-routemap-slot .tvm-stops{display:flex;gap:var(--s-4);margin:var(--s-5) calc(-1 * var(--gutter)) var(--s-5);padding:0 var(--gutter) var(--s-2);list-style:none;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding:0 var(--gutter);overscroll-behavior-x:contain;scrollbar-width:none}
  .tvm-stops::-webkit-scrollbar{display:none}
  /* the box is fixed by the li (4:3), not by the image: before tw-routemap.js sets the src the <img> has no source (it would
     render its alt text at another height), so the row is the same size before and after (no shift, e.g. on a #ask jump) */
  .tvm-st{position:relative;flex:0 0 40vw;aspect-ratio:4/3;margin:0;padding:0;border-radius:var(--r-md);background:var(--c-surface);scroll-snap-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .tvm-st img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;border-radius:var(--r-md);outline:1px solid rgba(255,255,255,.1);outline-offset:-1px;color:transparent;font-size:0;overflow:hidden}
  .tvm-st-n{z-index:1}
  .tvm-st.is-on img{outline:2px solid var(--c-gold-bright);outline-offset:-2px}
  /* the number badge: 26px, 10px in from the corner, a hairline ring so it reads on light and dark photos; the VR pill
     sits on the same centre line */
  .tvm-st-n{position:absolute;left:10px;top:10px;display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgba(9,7,6,.78);box-shadow:0 0 0 1px rgba(255,255,255,.22);color:var(--c-text-strong);font:700 .8125rem/1 var(--f-body);font-variant-numeric:lining-nums}
  .tvm-st--vr .tvm-st-n{background:var(--c-gold);box-shadow:none;color:var(--c-on-primary)}
  .tvm-st--vr::after{content:"VR";position:absolute;z-index:1;left:42px;top:13px;padding:2px 7px;border-radius:var(--r-pill);background:var(--c-gold);color:var(--c-on-primary);font:700 var(--fs-badge)/1.4 var(--f-body);letter-spacing:.04em}
  .tvm-st-t{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* owner 2026-11-21: laptops/desktops (mouse) show the stop photo without the prev / next / close buttons; phones and tablets (touch) keep them */
@media (hover: hover) and (pointer: fine){.tvm-c-ctl{display:none}}
