/* Walk (Phase 7b · Liquid Glass). The master plan is the centre piece on a frosted white sheet; numbered white-glass stops on a dotted white route;
   ONE narrower stop card sits in the open area to the left of the plan (clear of the altimeter) and carries its own slim controls
   (a thin segmented line along its top edge, "Stop 1 of 6", two round arrows). In portrait the card is a short bar above the plan.
   Loaded after the showroom sheets. */

#lv-walk { --wk-lane: 17.5rem; }
#lv-walk .wk-stage { position: absolute; inset: 0; overflow: hidden; }

/* the plan: the lane on the left is the stop card; the crop inside is as large as the box that remains (container units, so no JS sizing) */
#lv-walk .wk-plan {
  position: absolute; z-index: 1; container-type: size; display: grid; place-items: center;
  left: calc(var(--cx-left) + var(--wk-lane)); right: calc(var(--pad) + var(--safe-r));
  top: calc(var(--pad) + var(--safe-t) + 4.4rem);
  bottom: calc(var(--pad) + var(--safe-b) + .5rem);
}
#lv-walk .wk-crop { position: relative; width: min(100cqw, calc(100cqh * var(--A, 1.82))); aspect-ratio: var(--A, 1.82); }
#lv-walk .wk-clip { position: absolute; inset: 0; overflow: hidden; border-radius: var(--cx-r); background: #fcfcfe; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .12), 0 0 0 1px rgba(22, 22, 27, .08); }
#lv-walk .wk-frame { position: absolute; }
#lv-walk .wk-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
#lv-walk .wk-frame > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#lv-walk polygon { fill: rgba(255, 255, 255, .06); stroke: rgba(22, 22, 27, .28); stroke-width: .0015; transition: fill var(--dur-slow) var(--ease-out); }
#lv-walk polygon.on { fill: rgba(255, 255, 255, .42); stroke: rgba(22, 22, 27, .7); }
/* Today / On completion images sit in the same frame (js/ux/walk.js) */
#lv-walk .wx-fade { position: absolute; inset: 0; pointer-events: none; }
#lv-walk .wx-fade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }

/* the route: white beads on a soft shadow ring so they read on the white sheet; the walked part is solid, the rest faint, the current leg draws itself in */
#lv-walk .wk-route { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; overflow: visible; }
#lv-walk .rt-halo, #lv-walk .rt-base, #lv-walk .rt-done, #lv-walk .rt-cur { stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: .1 14; }
#lv-walk .rt-halo { stroke: rgba(22, 24, 36, .5); stroke-width: 11.5; }
#lv-walk .rt-base { stroke: rgba(255, 255, 255, .85); stroke-width: 6.4; }
#lv-walk .rt-done { stroke: rgba(255, 255, 255, .95); stroke-width: 7.4; }
/* the current leg draws itself in (modes.js route) and then holds still: the beacon's rings are this screen's one ambient loop (the leg used to march forever as a second one) */
#lv-walk .rt-cur { stroke: #ffffff; stroke-width: 8.4; }

/* stops: a numbered white-glass medallion, a 44px target, a name that finds free space */
#lv-walk .wk-stop { position: absolute; z-index: 4; translate: -50% -50%; width: max(44px, 2.7rem); height: max(44px, 2.7rem); display: grid; place-items: center; border-radius: 50%; touch-action: manipulation; }
#lv-walk .wk-stop.on { z-index: 6; }
#lv-walk .wk-med { position: relative; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; flex: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .98), rgba(238, 239, 245, .94)); box-shadow: 0 0 0 1px rgba(22, 24, 36, .28), 0 2px 8px rgba(10, 12, 24, .4), inset 0 1px 0 #fff;
  transition: transform var(--dur-quick) var(--ease-out); }
/* the current stop's dark ring is drawn ahead of time and fades in (its box-shadow used to snap on); the medallion springs to 1.22 */
#lv-walk .wk-med::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2.5px #16161b, 0 0 0 5px rgba(255, 255, 255, .95), 0 4px 14px rgba(10, 12, 24, .5); transition: opacity var(--dur-quick) var(--ease-out); }
#lv-walk .wk-stop.on .wk-med::after { opacity: 1; }
#lv-walk .wk-med b { font: 600 1rem/1 var(--sans); font-variant-numeric: lining-nums; color: #16161b; }
#lv-walk .wk-stop.done .wk-med { background: rgba(255, 255, 255, .82); box-shadow: 0 0 0 1px rgba(22, 24, 36, .22), 0 1px 5px rgba(10, 12, 24, .3); }
#lv-walk .wk-stop.done .wk-med b { color: #4a4a54; }
#lv-walk .wk-stop.on .wk-med { transform: scale(1.22); background: #fff; transition: transform var(--dur-base) var(--ease-spring); }
#lv-walk .wk-lab { position: absolute; left: 0; top: 0; white-space: nowrap; pointer-events: none; padding: .26rem .6rem; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .94); box-shadow: 0 0 0 1px rgba(22, 24, 36, .16), 0 2px 6px rgba(10, 12, 24, .22);
  font: 600 max(.76rem, 12px)/1.15 var(--sans); color: #16161b; }
#lv-walk .wk-stop.on .wk-lab { background: rgba(22, 22, 32, .92); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .3), 0 2px 8px rgba(10, 12, 24, .4); }

/* you are here: a white beacon with a soft pulse under the current medallion, and its tag above */
#lv-walk .wk-here { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 3; pointer-events: none; }
#lv-walk .wk-here i { position: absolute; left: 0; top: 0; width: 4.2rem; height: 4.2rem; margin: -2.1rem 0 0 -2.1rem; border-radius: 50%; opacity: 0;
  border: 2px solid rgba(255, 255, 255, .98); background: radial-gradient(circle, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 70%); box-shadow: 0 0 0 1px rgba(22, 24, 36, .25);
  animation: wk-beacon 2.4s var(--ease-out) infinite; will-change: transform, opacity; }
#lv-walk .wk-here i:nth-child(2) { animation-delay: .64s; }
#lv-walk .wk-here i:nth-child(3) { animation-delay: 1.28s; }
@keyframes wk-beacon { 0% { transform: scale(.35); opacity: .95; } 100% { transform: scale(1.5); opacity: 0; } }
#lv-walk .wk-you { position: absolute; left: 0; top: 0; width: 0; height: 0; z-index: 7; pointer-events: none; }
#lv-walk .wk-you span { position: absolute; left: 0; top: 0; translate: -50% calc(-100% - 2.1rem); white-space: nowrap; padding: .3rem .7rem; border-radius: var(--r-pill);
  background: #fff; color: #16161b; box-shadow: 0 0 0 1px rgba(22, 24, 36, .22), 0 3px 10px rgba(10, 12, 24, .35);
  font: 600 max(.64rem, 11px)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; }   /* (18 October, V-08) 11px at least (was 10.5px), as "Next stop" below */

/* the dock: a narrow stop card in the open lane left of the plan, clear of the altimeter labels (--cx-left) and of the drawing */
#lv-walk .wk-dock {
  position: absolute; z-index: 6; display: flex; align-items: center;
  left: var(--cx-left); width: calc(var(--wk-lane) - 1rem); right: auto;
  top: calc(var(--pad) + var(--safe-t) + 4.4rem); bottom: calc(var(--pad) + var(--safe-b) + .5rem);
}
#lv-walk .wk-card { flex: 0 1 auto; width: 100%; min-width: 0; max-height: 100%; overflow: auto; display: flex; flex-direction: column; background-color: #fff; background-image: none; }
#lv-walk .wk-ticks { display: flex; gap: 2px; height: 3px; flex: none; }
#lv-walk .wk-ticks i { flex: 1 1 0; background: rgba(255, 255, 255, .18); transition: background-color var(--dur-quick) var(--ease-out); }
#lv-walk .wk-ticks i.done { background: rgba(255, 255, 255, .72); }
#lv-walk .wk-ticks i.on { background: #fff; box-shadow: 0 0 8px rgba(255, 255, 255, .6); }
#lv-walk .wk-top { display: flex; align-items: center; justify-content: space-between; gap: .4rem; padding: .4rem .4rem .05rem .85rem; min-height: 44px; }
#lv-walk .wk-count { font: 600 max(.7rem, 11px)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--lg-fg3); font-variant-numeric: tabular-nums; }
#lv-walk .wk-btns { display: flex; align-items: center; gap: .25rem; min-width: 0; }
#lv-walk .wk-nlab { display: inline; margin-right: .15rem; font: 600 max(.75rem, 12px)/1.2 var(--sans); color: var(--lg-fg2); }
#lv-walk .wk-arrow { position: relative; display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 2px solid transparent; background-clip: padding-box; border-radius: 50%; color: var(--lg-fg);
  transition: transform var(--dur-press) var(--ease-out), background-color var(--dur-quick) var(--ease-out); }
#lv-walk .wk-arrow svg { width: 1.1rem; height: 1.1rem; stroke-width: 2; }
#lv-walk .wk-arrow:active { transform: scale(.94); }
#lv-walk .wk-prev { background-color: rgba(255, 255, 255, .14); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .26); }
#lv-walk .wk-prev:disabled { opacity: .35; pointer-events: none; }
#lv-walk .wk-next.lg-prominent { background: var(--lg-prom); background-clip: padding-box; box-shadow: inset 0 1px 0 #fff, 0 0 0 0 transparent; color: #101014; }
#lv-walk .wk-next.lg-prominent::before { inset: 2px; }
#lv-walk .wk-next.lg-prominent::after { inset: 2px; }
#lv-walk .wk-main { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; }
#lv-walk .wk-ph { display: none; }
#lv-walk .wk-body { display: grid; align-content: start; gap: .35rem; min-width: 0; padding: .1rem .95rem .85rem .95rem; }
#lv-walk .wk-body h3 { font: 300 clamp(1.15rem, 1.5vw, 1.5rem)/1.15 var(--sans); letter-spacing: var(--ls-title); color: var(--lg-fg); }
#lv-walk .wk-pts { list-style: none; display: grid; gap: .28rem; }
#lv-walk .wk-pts li { position: relative; padding-left: .9rem; font: 500 max(.8rem, 13px)/1.35 var(--sans); color: var(--lg-fg2); }
#lv-walk .wk-pts li::before { content: ""; position: absolute; left: 0; top: .55em; width: .36rem; height: .36rem; border-radius: 50%; background: var(--lg-fg3); }
#lv-walk .wk-open { justify-self: start; margin-top: .2rem; }
#lv-walk .wk-body .sample { justify-self: start; margin: 0; }

/* Today / On completion: a flat segmented control with the glide blob, centred above the plan (not over the drawing) */
#lv-walk .wx-when {
  position: absolute; z-index: 6; top: calc(var(--pad) + var(--safe-t));
  left: calc(var(--cx-left) + var(--wk-lane)); right: calc(var(--pad) + var(--safe-r));
  width: max-content; margin-inline: auto; translate: none;
  background-color: #fff; background-image: none;
}
#lv-walk .wx-when button { min-width: 44px; padding: 0 1.1rem; white-space: nowrap; }

/* portrait, or too narrow for a side lane: a short bar above the plan, still clear of the bottom edge */
@media (orientation: portrait), (max-width: 900px) {
  #lv-walk { --wk-lane: 0px; }
  #lv-walk .wk-dock {
    left: var(--cx-left); right: calc(var(--pad) + var(--safe-r)); width: auto;
    top: calc(var(--pad) + var(--safe-t) + 4.5rem); bottom: auto; align-items: stretch;
  }
  #lv-walk .wk-card { flex-basis: auto; max-height: none; }
  #lv-walk .wk-plan {
    left: var(--cx-left); right: calc(var(--pad) + var(--safe-r));
    top: calc(var(--pad) + var(--safe-t) + 4.5rem + var(--wk-band, 9rem) + .7rem);
    bottom: calc(var(--pad) + var(--safe-b) + .4rem);
  }
  #lv-walk .wx-when { left: var(--cx-left); right: calc(var(--pad) + var(--safe-r)); top: calc(var(--pad) + var(--safe-t)); }
}
@media (prefers-reduced-motion: reduce) {
  #lv-walk .wk-here i { animation: none; opacity: .5; transform: scale(.8); }
  #lv-walk .rt-cur { animation: none; }
  #lv-walk .wk-ticks i, #lv-walk .wk-arrow, #lv-walk .wk-med, #lv-walk .wk-stop.on .wk-med, #lv-walk .wk-med::after, #lv-walk .wx-when button { transition: none; }
}

/* ---- the stop card, redrawn: a numbered header, the points as icon rows, the places to point out as chips, and one wide "Next stop · name" pill with a round back button ---- */
#lv-walk { --wk-lane: 20rem; }
#lv-walk .wk-card { border-radius: var(--cx-r, 22px); gap: 0; padding-bottom: .2rem; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .1), 0 18px 40px -22px rgba(10, 10, 24, .45); }
#lv-walk .wk-ticks { height: 4px; gap: 3px; padding: .7rem 1rem 0; box-sizing: content-box; }
#lv-walk .wk-ticks i { height: 4px; border-radius: 4px; background: rgba(22, 22, 27, .12); }
#lv-walk .wk-ticks i.done { background: rgba(22, 22, 27, .5); }
#lv-walk .wk-ticks i.on { background: #16161b; box-shadow: none; }
#lv-walk .wk-body { gap: .85rem; padding: 1rem 1rem .7rem; }
#lv-walk .wk-hd { display: flex; align-items: center; gap: .8rem; }
#lv-walk .wk-num { display: grid; place-items: center; flex: none; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #16161b; color: #fff; font: 500 1.4rem/1 var(--num, var(--sans)); font-variant-numeric: lining-nums; }
#lv-walk .wk-count { margin: 0 0 .2rem; font: 600 max(.68rem, 11px)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: rgba(22, 22, 27, .5); white-space: nowrap; }
/* the stop figures roll (js/ux/walk.js rollCount): .wk-cw clips, the new figure (.wk-ci) rides in on translate, the old one (.wk-cg, aria-hidden) rides out */
#lv-walk .wk-cw { position: relative; display: inline-block; overflow: hidden; vertical-align: top; }
#lv-walk .wk-ci { display: inline-block; }
#lv-walk .wk-cg { position: absolute; right: 0; top: 0; }
#lv-walk .wk-body h3 { font: 500 clamp(1.4rem, 1.8vw, 1.8rem)/1.1 var(--sans); letter-spacing: -.02em; color: #16161b; }
#lv-walk .wk-pts { gap: .5rem; }
#lv-walk .wk-pts li { display: flex; gap: .65rem; align-items: flex-start; padding: .6rem .7rem; border-radius: 14px; background: rgba(22, 22, 27, .05); font: 500 max(.84rem, 13.5px)/1.35 var(--sans); color: #2a2a31; }
#lv-walk .wk-pts li::before { display: none; }
#lv-walk .wk-pts li svg { width: 1.1rem; height: 1.1rem; flex: none; margin-top: .1rem; fill: none; stroke: rgba(22, 22, 27, .55); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#lv-walk .wk-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
#lv-walk .wk-chips span { padding: .32rem .65rem; border-radius: 99px; background: #fff; box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .16); font: 600 max(.72rem, 12px)/1 var(--sans); color: #2a2a31; }
#lv-walk .wk-chips .more { background: transparent; box-shadow: none; color: rgba(22, 22, 27, .5); }
#lv-walk .wk-nav { display: flex; align-items: center; gap: .5rem; padding: .3rem .75rem .75rem; }
#lv-walk .wk-nav .wk-prev { width: 52px; height: 52px; background-color: rgba(22, 22, 27, .07); box-shadow: none; color: #16161b; border: 0; }
#lv-walk .wk-go { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 52px; padding: 0 .5rem 0 1.1rem; border-radius: 99px; background: #16161b; color: #fff; text-align: left; transition: transform var(--dur-press, 140ms) var(--ease-out, cubic-bezier(.22, 1, .36, 1)); }
#lv-walk .wk-go:active { transform: scale(.97); }
#lv-walk .wk-gl { display: grid; gap: .2rem; min-width: 0; }
#lv-walk .wk-gl small { font: 600 max(.64rem, 11px)/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: .6; display: block; margin: 0; color: inherit; }   /* (21 October) the button's own colour: .wk-nlab's dark grey was near-invisible on the dark button, so "Central Park" looked pushed down */
#lv-walk .wk-gl b { font: 600 max(.95rem, 15px)/1.1 var(--sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#lv-walk .wk-gi { display: grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #16161b; }
#lv-walk .wk-gi svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
/* Today / On completion: a proper segmented control, the chosen side a white thumb */
#lv-walk .wx-when { background: rgba(22, 22, 27, .07); box-shadow: inset 0 0 0 1px rgba(22, 22, 27, .08); padding: 3px; border-radius: 99px; gap: 0; display: flex; backdrop-filter: blur(14px); }
#lv-walk .wx-when button { min-height: 38px; padding: 0 1.1rem; border-radius: 99px; font: 600 max(.85rem, 14px)/1 var(--sans); color: rgba(22, 22, 27, .6); transition: background-color .2s, color .2s, box-shadow .2s; }
#lv-walk .wx-when button[aria-pressed="true"] { background: #fff; color: #16161b; box-shadow: 0 1px 3px rgba(10, 10, 24, .2), 0 0 0 .5px rgba(22, 22, 27, .08); }
/* with the glide blob (js/ux/walk.js -> __uxGlide) the blob alone marks the choice: the buttons stop painting a second white fill that faded in under it */
#lv-walk .wx-when[data-glide] button { transition: color var(--dur-quick) var(--ease-out); }
#lv-walk .wx-when[data-glide] button[aria-pressed="true"] { background: transparent; box-shadow: none; }
/* the control sits on the plan's top-left corner, so it never meets the shortlist and presenter buttons in the top row */
#lv-walk .wx-when { top: calc(var(--pad) + var(--safe-t) + 4.4rem + .7rem); left: calc(var(--cx-left) + var(--wk-lane) + .7rem); right: auto; margin: 0; z-index: 7; }
#lv-walk .wk-gl small.wk-nlab { display: block; }
@media (orientation: portrait), (max-width: 900px) { #lv-walk .wx-when { top: calc(var(--pad) + var(--safe-t) + 4.5rem + var(--wk-band, 9rem) + 1.2rem); left: calc(var(--cx-left) + .7rem); } }
@media (prefers-reduced-motion: reduce) { #lv-walk .wx-when button, #lv-walk .wx-when[data-glide] button { transition: none; } }
