/* =====================================================================
   Phoenix Wayfinder — "Phoenix premium" visual system
   Mobile portrait first (~380 px). No external fonts (mall networks are
   flaky): a native serif display stack (New York / Noto Serif) carries the
   headline voice; swap --font-display for the Phoenix brand typeface when
   the kit arrives (self-host the woff2 under assets/fonts/).
   ===================================================================== */
:root {
  /* brand — replace with the official Phoenix tokens when supplied */
  --plum-950: #140F10;
  --plum-900: #1E1518;
  --plum-800: #2B1E24;
  --ember-600: #B7381A;
  --ember-500: #D4471F;
  --ember-300: #F08A5B;
  --gold-500: #C4902F;
  --gold-400: #DAA646;
  --gold-200: #F1DBA6;
  --gold-100: #F8EBCB;
  --ivory-50:  #FCF9F3;   /* paper (cards) */
  --ivory-100: #F5F0E7;   /* page ground */
  --ivory-200: #EAE2D3;   /* hairlines */
  --ivory-300: #D9CDB9;
  --ink:   #1F1A1C;
  --ink-2: #5B5052;
  --ink-3: #8C8082;

  /* semantic (route/transport colours are product spec — keep) */
  --green: #00867A;
  --esc: #D48A2A;   --esc-bg: #FBF0DE;
  --lift: #2F7FBF;  --lift-bg: #E6F0FA;
  --stairs: #7C5BB5;--stairs-bg: #EFE9F8;
  --arrive: #B7862A;--arrive-bg: #F4E2B4;

  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(31,26,28,.06), 0 6px 18px -6px rgba(31,26,28,.12);
  --shadow-lift: 0 2px 4px rgba(31,26,28,.06), 0 14px 32px -12px rgba(31,26,28,.22);
  --ease: cubic-bezier(.2,.8,.2,1);

  --font-display: "New York", ui-serif, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif", "Tinos", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Noto Sans", "Noto Sans Devanagari", sans-serif;
  --font-cond: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--ivory-100); color: var(--ink); font-family: var(--font-body); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
body { min-height: 100dvh; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button:active { transform: scale(.985); }
.ico { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.28em; flex: none; }
[hidden] { display: none !important; }

.app { max-width: 480px; margin: 0 auto; min-height: 100dvh; background: var(--ivory-100); }
.screen { padding: 0 0 calc(28px + env(safe-area-inset-bottom)); }

/* ---------- motion ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pop  { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
.screen:not([hidden]) .hero > *,
.screen:not([hidden]) .sheet > *,
.screen:not([hidden]) > .map-card,
.screen:not([hidden]) > .hopbar,
.screen:not([hidden]) > .swap-btn,
.screen:not([hidden]) > .steps,
.screen:not([hidden]) > .share-btn { animation: rise .55s var(--ease) both; }
.hero > :nth-child(1) { animation-delay: .02s; } .hero > :nth-child(2) { animation-delay: .10s; } .hero > :nth-child(3) { animation-delay: .18s; }
.sheet > :nth-child(1) { animation-delay: .22s; } .sheet > :nth-child(2) { animation-delay: .30s; } .sheet > :nth-child(3) { animation-delay: .38s; }
.screen > .map-card { animation-delay: .04s; } .screen > .hopbar { animation-delay: .12s; } .screen > .swap-btn { animation-delay: .18s; } .screen > .steps { animation-delay: .24s; } .screen > .share-btn { animation-delay: .32s; }
.steps .step { animation: rise .5s var(--ease) both; }
.steps .step:nth-child(1) { animation-delay: .28s; } .steps .step:nth-child(2) { animation-delay: .34s; } .steps .step:nth-child(3) { animation-delay: .40s; }
.steps .step:nth-child(4) { animation-delay: .46s; } .steps .step:nth-child(5) { animation-delay: .52s; } .steps .step:nth-child(6) { animation-delay: .58s; }
.steps .step:nth-child(n+7) { animation-delay: .64s; }

/* ---------- hero (dark ember/plum band) ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--ivory-50);
  padding: calc(18px + env(safe-area-inset-top)) 22px 42px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(212,71,31,.55) 0%, rgba(212,71,31,0) 55%),
    radial-gradient(70% 60% at 0% 100%, rgba(196,144,47,.28) 0%, rgba(196,144,47,0) 60%),
    linear-gradient(170deg, var(--plum-800) 0%, var(--plum-900) 45%, var(--plum-950) 100%);
}
.hero::before { /* fine grain */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .18; mix-blend-mode: overlay;
  background-image: repeating-linear-gradient(0deg, rgba(255,255,255,.06) 0 1px, transparent 1px 3px), repeating-linear-gradient(90deg, rgba(255,255,255,.05) 0 1px, transparent 1px 4px);
}
.hero::after { /* hairline gold rule at the bottom edge */
  content: ""; position: absolute; left: 22px; right: 22px; bottom: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(241,219,166,.55), transparent);
}
.hero-compact { padding-bottom: 34px; }
.hero > * { position: relative; }

.hero-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.hero-brand .mark { width: 40px; height: 40px; color: var(--ember-300); filter: drop-shadow(0 4px 12px rgba(240,138,91,.35)); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.brand-sub { font-size: 11.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-200); opacity: .9; margin-top: 3px; }
.hero-brand.dark { color: var(--ink); margin: 0 0 14px; } .hero-brand.dark .brand-sub { color: var(--ember-600); }

.h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.02; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 12px; }
.h1 .hindi { display: block; font-family: var(--font-body); font-size: 17px; font-weight: 500; color: var(--gold-200); letter-spacing: .01em; margin-top: 10px; }
.lede { margin: 0; color: rgba(252,249,243,.72); font-size: 15px; }

/* the "paper sheet" that rises into the hero */
.sheet { position: relative; margin: -22px 12px 0; padding: 18px 12px 0; background: var(--ivory-100); border-radius: 22px 22px 0 0; }
.sheet::before { content: ""; position: absolute; top: 9px; left: 50%; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: var(--ivory-300); opacity: .8; }

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; white-space: nowrap; letter-spacing: .01em; }
.pill-floor { background: var(--floor, #999); color: #fff; }
.pill-min { background: var(--gold-100); color: #7A5A12; }
.pill-soft { background: color-mix(in srgb, var(--floor, #999) 14%, var(--ivory-50)); color: color-mix(in srgb, var(--floor, #999) 85%, #000); }

/* ---------- origin cards ---------- */
.origin-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.origin-btn { position: relative; text-align: left; background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: var(--radius); padding: 14px 14px 12px 16px; box-shadow: var(--shadow); min-height: 124px; display: flex; flex-direction: column; gap: 5px; overflow: hidden; transition: box-shadow .2s var(--ease), border-color .2s; }
.origin-btn::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 4px; border-radius: 0 3px 3px 0; background: var(--floor, var(--ember-500)); }
.origin-btn:active { border-color: var(--gold-400); box-shadow: var(--shadow-lift); }
.origin-btn .ico-wrap { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--ember-500) 10%, var(--ivory-50)); color: var(--ember-600); margin-bottom: 4px; }
.origin-btn .ico-wrap .ico { width: 20px; height: 20px; }
.origin-btn .lbl { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.15; letter-spacing: -0.005em; }
.origin-btn .sub { font-size: 12px; color: var(--ink-3); line-height: 1.3; }
.origin-btn .fl { margin-top: auto; align-self: flex-start; }

.note { margin: 18px 0 0; padding: 13px 14px; background: transparent; border: 1px dashed var(--ivory-300); border-radius: 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.45; display: flex; gap: 12px; align-items: flex-start; }
.note .ico { color: var(--ember-600); width: 22px; height: 22px; margin-top: 1px; }
.note b { color: var(--ink); }

/* ---------- you-bar / search (inside the hero) ---------- */
.youbar { display: flex; align-items: center; gap: 9px; background: rgba(252,249,243,.08); border: 1px solid rgba(252,249,243,.16); border-radius: 999px; padding: 8px 12px 8px 12px; margin-bottom: 20px; font-size: 13.5px; color: rgba(252,249,243,.85); backdrop-filter: blur(6px); }
.youbar-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold-400); box-shadow: 0 0 0 4px rgba(218,166,70,.22); flex: none; }
.youbar-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.youbar-text b { color: #fff; font-weight: 700; }
.goingbar .youbar-dot { background: var(--ember-300); box-shadow: 0 0 0 4px rgba(240,138,91,.25); }   /* where you're going (asked first) */
.link-btn { background: none; border: 0; padding: 4px 4px; color: var(--gold-200); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.search-wrap { display: flex; align-items: center; gap: 10px; margin: 8px 0 0; background: var(--ivory-50); border-radius: 999px; padding: 0 16px 0 16px; box-shadow: 0 10px 28px -10px rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.7); }
.search-wrap .ico { color: var(--ember-600); width: 20px; height: 20px; }
.search { flex: 1; min-width: 0; font: inherit; font-size: 16.5px; color: var(--ink); padding: 15px 0; border: 0; background: transparent; outline: none; -webkit-appearance: none; }
.search::placeholder { color: var(--ink-3); }
.search::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-wrap:focus-within { box-shadow: 0 0 0 3px rgba(218,166,70,.45), 0 10px 28px -10px rgba(0,0,0,.45); }
/* "Where are you?": type the shop you're next to (on the light sheet: a hairline, not the hero's glow) */
.search-near { margin: 4px 0 14px; border: 1px solid var(--ivory-300); box-shadow: 0 2px 10px -6px rgba(31,26,28,.25); }
.search-near:focus-within { box-shadow: 0 0 0 3px rgba(218,166,70,.45); }
.search-near .search { padding: 13px 0; }
.near-list { margin-bottom: 14px; }
/* while typing, results sit right under the search box — tiles, chips and landmarks step aside (the
   phone keyboard would otherwise hide them below the fold); the sheet keeps a screen's height so the
   box can scroll to the top */
.screen.searching #tiles, .screen.searching #chips, .screen.searching #origin-list, .screen.searching .note { display: none; }
.screen.searching .sheet { min-height: 100vh; }

/* ---------- amenity tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
.tile { background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 14px; padding: 13px 6px 11px; display: flex; flex-direction: column; align-items: center; gap: 7px; box-shadow: var(--shadow); transition: box-shadow .2s var(--ease); }
.tile:active { border-color: var(--gold-400); box-shadow: var(--shadow-lift); }
.tile .ico { width: 26px; height: 26px; color: var(--ember-600); }
.tile .lbl { font-size: 12.5px; font-weight: 700; letter-spacing: .01em; }

/* ---------- category chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 12px 10px; margin: 0 -12px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; border: 1px solid var(--ivory-300); background: var(--ivory-50); font-size: 13.5px; font-weight: 600; color: var(--ink-2); transition: background .15s, color .15s, border-color .15s; }
.chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #999); box-shadow: 0 0 0 2px color-mix(in srgb, var(--dot, #999) 22%, transparent); }
.chip.on { border-color: color-mix(in srgb, var(--dot, var(--ink)) 60%, transparent); color: var(--ink); background: color-mix(in srgb, var(--dot, var(--ink)) 12%, var(--ivory-50)); }
.chip.chip-all.on { border-color: var(--ink); background: var(--ink); color: var(--ivory-50); }

/* ---------- store list ---------- */
.store-list { display: flex; flex-direction: column; gap: 6px; }
.store-row { display: flex; align-items: center; gap: 12px; background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 14px; padding: 12px 13px; text-align: left; width: 100%; box-shadow: 0 1px 0 rgba(31,26,28,.03); }
.store-row:active { border-color: var(--gold-400); background: #fff; }
.store-row .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); }
.store-row .name { flex: 1; font-weight: 600; font-size: 15px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.005em; }
.store-row .name small { display: block; font-size: 11.5px; color: var(--ink-3); font-weight: 500; margin-top: 1px; }
.empty { color: var(--ink-3); text-align: center; padding: 30px 0; font-size: 14px; }

/* ---------- route screen ---------- */
#screen-route { padding-left: 12px; padding-right: 12px; }
.route-head { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 10px; margin: 0 -12px 12px; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: rgba(245,240,231,.97); border-bottom: 1px solid var(--ivory-200); }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ivory-200); background: var(--ivory-50); display: grid; place-items: center; box-shadow: var(--shadow); flex: none; color: var(--ink); }
.icon-btn .ico { width: 20px; height: 20px; }
.route-title { flex: 1; min-width: 0; }
.route-dest { font-family: var(--font-display); font-weight: 600; font-size: 20px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; letter-spacing: -0.01em; }
.route-meta { display: flex; gap: 6px; margin-top: 5px; }

.map-card { position: relative; background: var(--ivory-50); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; aspect-ratio: 4 / 3; border: 1px solid var(--gold-200); }
.map { position: absolute; inset: 0; }
.map-svg { display: block; width: 100%; height: 100%; }
.floor-tag { position: absolute; top: 10px; left: 10px; background: var(--floor, #333); color: #fff; font-weight: 800; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; letter-spacing: .02em; box-shadow: 0 4px 12px -2px rgba(0,0,0,.35); pointer-events: none; }
.map-legend { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 6px; overflow-x: auto; padding: 8px 10px; scrollbar-width: none; background: linear-gradient(to top, rgba(252,249,243,.96) 30%, rgba(252,249,243,0)); }
.map-legend::-webkit-scrollbar { display: none; }
.legend-chip { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 700; color: var(--ink-2); background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 999px; padding: 3px 8px; }
.legend-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--dot); }
.play-btn { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; gap: 4px; background: var(--ink); color: var(--ivory-50); border: 0; border-radius: 999px; padding: 6px 12px 6px 9px; font-size: 12.5px; font-weight: 700; box-shadow: 0 4px 12px -2px rgba(0,0,0,.35); }
.play-btn .ico { width: 16px; height: 16px; }
.play-btn.is-playing { background: var(--ivory-50); color: var(--ink); border: 1px solid var(--ivory-300); }

/* landmark cues under a step */
.cues { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cues li { position: relative; padding-left: 16px; font-size: 13px; color: var(--ink-2); line-height: 1.3; }
.cues li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }
.step.esc .cues li::before, .step.lift .cues li::before { background: var(--ink-3); }

/* amenity result rows in search */
.amenity-row { border-color: var(--gold-200); background: linear-gradient(90deg, var(--gold-100), var(--ivory-50) 60%); }
.amenity-row .amenity-ico { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--ivory-50); color: var(--ember-600); border: 1px solid var(--gold-200); flex: none; }
.amenity-row .amenity-ico .ico { width: 18px; height: 18px; }

/* ---------- map interaction: zoom, LOD, fullscreen, callout ---------- */
.map-svg { touch-action: pan-y; }
.layer-route, .layer-markers, .layer-dot { pointer-events: none; }
.map-root[data-lod="0"] .lbl-store, .map-root[data-lod="0"] .lbl-mini, .map-root[data-lod="1"] .lbl-mini { visibility: hidden; }
.map-btn-txt { font-size: 21px; font-weight: 700; line-height: 1; }
.map-card:has(.map-callout) .map-tools { visibility: hidden; }
.map-card--full .floor-tag { top: calc(10px + env(safe-area-inset-top)); }
.map-card--full .play-btn { top: calc(10px + env(safe-area-inset-top)); }
.map-card--full .map-hint { top: calc(12px + env(safe-area-inset-top)); }
.map-card--full .map-tools { bottom: calc(44px + env(safe-area-inset-bottom)); }
.map-card--full .map-legend { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
.map-tools { position: absolute; right: 10px; bottom: 44px; display: flex; flex-direction: column; gap: 8px; z-index: 4; }
.map-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ivory-200); background: var(--ivory-50); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink); }
.map-btn .ico { width: 18px; height: 18px; }
.map-card--full { position: fixed; inset: 0; z-index: 60; aspect-ratio: auto; border-radius: 0; border: 0; }
html.map-lock, html.map-lock body { overflow: hidden; }
.map-hint { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(31,26,28,.85); color: var(--ivory-50); font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; pointer-events: none; z-index: 4; transition: opacity .5s; white-space: nowrap; }
.map-hint.gone { opacity: 0; }
.map-callout { position: absolute; left: 10px; right: 10px; bottom: 40px; display: flex; align-items: center; gap: 10px; background: var(--ivory-50); border: 1px solid var(--gold-200); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow-lift); z-index: 5; animation: pop .2s var(--ease) both; }
.map-callout .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.map-callout .body { flex: 1; min-width: 0; }
.map-callout b { font-size: 14.5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-callout small { color: var(--ink-2); font-size: 11.5px; }
.map-callout .go { border: 0; background: var(--ember-500); color: #fff; font-weight: 700; font-size: 13px; padding: 8px 12px; border-radius: 999px; flex: none; }
.map-callout .x { border: 0; background: none; font-size: 20px; color: var(--ink-3); padding: 12px 14px; margin: -10px -8px -10px -6px; flex: none; }

/* ================= ?map=tower — Mall Tower + Guide Cards ================= */
/* legacy route furniture hidden while the tower flag is on
   (direct children only — Explore's inner .map-card must stay visible) */
.route--tower > .map-card, .route--tower > .hopbar, .route--tower > #steps, .route--tower > #btn-share-2 { display: none !important; }
#tower-wrap { padding-bottom: 8px; }
.answer { margin: 2px 2px 10px; }
#answer-en { font-family: var(--font-display); font-size: 20px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; }
.answer-hi { font-size: 14px; color: var(--ink-2); margin-top: 3px; }
.status-strip { font-size: 10.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin: 0 2px 7px; }
#tower-view { background: var(--ivory-50); border: 1px solid var(--gold-200); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; padding: 4px 0 2px; }
.tower-svg { display: block; width: 100%; height: auto; }
.tower-sub { text-align: center; font-size: 12px; color: var(--ink-3); font-weight: 600; margin: 8px 0 10px; }
#swap-slot .swap-btn { margin: 0 0 10px; }
@keyframes slab-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.slab-in { animation: slab-rise .4s var(--ease) both; }
.slab-live .slab-geom { filter: brightness(1.03); }
@keyframes halo-pulse { 0%, 100% { opacity: .18; } 50% { opacity: .4; } }
.you-halo { animation: halo-pulse 2s ease-in-out infinite; }
@keyframes pin-drop { 0% { opacity: 0; transform: translateY(-14px); } 60% { transform: translateY(2px); } 100% { opacity: 1; transform: none; } }
.pin-drop { animation: pin-drop .3s var(--ease) .9s both; }
@keyframes tick-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: scale(1); } }
.tick-pop { animation: tick-pop .25s var(--ease) both; }
/* the sticky NOW card */
.now-card { position: sticky; bottom: calc(8px + env(safe-area-inset-bottom)); z-index: 8; background: var(--ivory-50); border: 1px solid var(--gold-200); border-radius: var(--radius); box-shadow: var(--shadow-lift); padding: 12px 14px; }
.now-head { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; color: var(--ember-600); margin-bottom: 4px; }
.now-title { font-weight: 700; font-size: 16px; line-height: 1.3; }
.now-detail { font-size: 12.5px; color: var(--ink-2); margin: 3px 0 10px; }
.now-start { width: 100%; }
.now-links { display: flex; justify-content: space-between; gap: 10px; margin-top: 9px; }
.link-btn2 { background: none; border: 0; padding: 13px 4px; margin: -6px 0; color: var(--ink-2); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
#allsteps-ov-wrap .g-allsteps { margin-top: 10px; }
/* ---------- guide deck ---------- */
.guide { padding-bottom: 20px; }
.g-rail { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.g-back { font-size: 24px; line-height: 1; padding-bottom: 4px; }
.g-rail-mid { flex: 1; min-width: 0; }
.g-rail-title { font-size: 11px; font-weight: 800; letter-spacing: .07em; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-bar { height: 5px; border-radius: 4px; background: var(--ivory-200); margin: 5px 0 4px; overflow: hidden; }
.g-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green), #4DA79B); border-radius: 4px; transition: width .3s var(--ease); }
.g-rail-sub { font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.g-preview { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--ivory-200); background: var(--ivory-50); box-shadow: var(--shadow); font-size: 15px; flex: none; }
.g-preview.on { background: var(--ink); color: var(--ivory-50); }
.g-card { background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: var(--radius); box-shadow: var(--shadow-lift); overflow: hidden; transition: transform .24s var(--ease), opacity .24s var(--ease); }
.g-card.g-esc    { background: var(--esc-bg);    border-color: color-mix(in srgb, var(--esc) 30%, transparent); }
.g-card.g-lift   { background: var(--lift-bg);   border-color: color-mix(in srgb, var(--lift) 30%, transparent); }
.g-card.g-stairs { background: var(--stairs-bg); border-color: color-mix(in srgb, var(--stairs) 30%, transparent); }
.g-card.g-arrive { background: linear-gradient(135deg, var(--gold-200), var(--arrive-bg)); border-color: var(--gold-400); }
.g-slide-next { transform: translateX(18px); opacity: 0; }
.g-slide-back { transform: translateX(-18px); opacity: 0; }
.g-stage { position: relative; }
.g-map { position: relative; height: 250px; background: #EFE9DE; }
.g-map .map-svg { width: 100%; height: 100%; }
.g-mini { padding: 12px 14px 0; }
.g-mini svg { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; }
.g-text { padding: 12px 14px 4px; }
.g-tline { display: flex; gap: 10px; align-items: flex-start; }
.g-num { width: 26px; height: 26px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; margin-top: 4px; }
.g-esc .g-num { background: var(--esc); } .g-lift .g-num { background: var(--lift); } .g-stairs .g-num { background: var(--stairs); } .g-arrive .g-num { background: var(--arrive); }
.g-title { font-family: var(--font-display); font-size: 21px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em; }
.g-hindi { font-size: 15px; color: var(--ink-2); margin: 7px 0 0 36px; line-height: 1.35; }
.g-cues { list-style: none; margin: 8px 0 0 36px; padding: 0; }
.g-cues li { position: relative; padding-left: 15px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.g-cues li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-400); }
.g-detail { font-size: 13px; color: var(--ink-2); margin: 8px 0 0 36px; font-weight: 600; }
.g-then { font-size: 12.5px; color: var(--ink-3); margin: 10px 0 0 36px; padding-top: 8px; border-top: 1px dashed var(--ivory-300); }
.g-btns { display: flex; gap: 8px; padding: 12px 14px 14px; }
.g-btn { border: 0; border-radius: 14px; font-weight: 800; font-size: 14.5px; padding: 15px 12px; min-height: 56px; }
.g-btn-back { flex: 0 0 auto; background: var(--ivory-100); color: var(--ink-2); border: 1px solid var(--ivory-300); }
.g-btn-next { flex: 1; background: linear-gradient(135deg, var(--ember-500), var(--ember-600)); color: #fff; box-shadow: 0 8px 20px -8px rgba(212,71,31,.55); }
.g-btn-share { flex: 0 0 auto; background: var(--ivory-50); border: 1px solid var(--gold-400); color: var(--ink); }
.g-foot { margin-top: 12px; }
.g-foot-links { display: flex; justify-content: space-between; margin: 0 4px; }
.g-honesty, .g-lost { font-size: 12.5px; color: var(--ink-3); margin: 10px 4px 0; line-height: 1.45; }
.g-hi { display: block; font-size: 12px; opacity: .85; }
/* ---------- explore overlay (the shipped clean floor plan, opt-in) ---------- */
.explore { position: fixed; inset: 0; z-index: 70; background: var(--ivory-100); display: flex; flex-direction: column; padding: calc(8px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); }
.x-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.x-head .icon-btn { font-size: 17px; }
.x-mid { flex: 1; min-width: 0; }
.x-title { font-family: var(--font-display); font-size: 17px; }
.x-mid small { display: block; font-size: 11px; color: var(--ink-3); }
.x-chips { display: flex; gap: 4px; overflow-x: auto; max-width: 46vw; scrollbar-width: none; padding: 2px 0; }
.x-chips::-webkit-scrollbar { display: none; }
.x-map { flex: 1; aspect-ratio: auto; }
.x-map .map { position: absolute; inset: 0; }

/* clean cartography: tools in one bottom row, legend behind ⓘ, calmer overlays */
.map-tools--row { flex-direction: row; align-items: center; bottom: 10px; right: 10px; gap: 6px; }
.map-tools--row .map-btn { width: 32px; height: 32px; }
.map-tools--row .map-btn .ico { width: 16px; height: 16px; }
.map-tools--row .map-btn-txt { font-size: 17px; }
.map-card--clean .map-tools--row .play-btn { position: static; width: 32px; height: 32px; border-radius: 50%; padding: 0; display: grid; place-items: center; box-shadow: var(--shadow); }
.map-card--clean .play-btn .play-lbl { display: none; }
.map-card--clean .play-btn .ico { width: 16px; height: 16px; }
.map-card--clean .map-legend { display: none; }
.map-card--clean.legend-on .map-legend { display: flex; bottom: 50px; background: rgba(252,249,243,.95); border-top: 1px solid var(--ivory-200); }
.map-card--clean.map-card--full .map-tools--row { bottom: calc(12px + env(safe-area-inset-bottom)); }
.map-clean .units rect[data-dim="1"] { fill-opacity: .3; stroke-opacity: .45; }
.map-clean .units text[data-dim="1"] { visibility: hidden !important; }

/* ---------- hop-bar ---------- */
.hopbar { background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: var(--radius); padding: 12px 14px 10px; margin: 12px 0 10px; box-shadow: var(--shadow); }
.hop-heading { font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 9px; letter-spacing: -0.005em; }
.hop-chips { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 2px 0; }
.hop-chips::-webkit-scrollbar { display: none; }
.hop-chip { flex: none; min-width: 34px; height: 32px; padding: 0 10px; border-radius: 999px; background: var(--floor); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; border: 2px solid transparent; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); transition: box-shadow .2s; }
.hop-chip.active { box-shadow: 0 0 0 3px color-mix(in srgb, var(--floor) 30%, transparent), inset 0 -2px 0 rgba(0,0,0,.14); }
.hop-arrow { flex: none; font-size: 24px; line-height: 1; font-weight: 900; padding: 0 1px; }
.hop-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); margin-top: 7px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- swap button ---------- */
.swap-btn { width: 100%; text-align: left; background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: var(--radius); padding: 13px 14px; margin-bottom: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; position: relative; }
.swap-btn::after { content: "⇄"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--ink-3); }
.swap-btn:active { border-color: var(--lift); }
.swap-btn b { font-family: var(--font-display); font-size: 16px; font-weight: 600; padding-right: 30px; }
.swap-btn span { font-size: 13px; color: var(--ink-2); padding-right: 30px; }
.swap-btn.lift-mode { border-color: color-mix(in srgb, var(--lift) 45%, transparent); background: var(--lift-bg); }

/* ---------- steps as a timeline ---------- */
.steps { list-style: none; margin: 0; padding: 0 0 0 0; display: flex; flex-direction: column; gap: 10px; position: relative; }
.steps::before { content: ""; position: absolute; left: 27px; top: 22px; bottom: 22px; width: 2px; background: linear-gradient(var(--ivory-300), var(--ivory-300)) ; opacity: .9; }
.step { position: relative; display: flex; gap: 12px; align-items: flex-start; background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 14px; padding: 12px 12px 12px 12px; box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.step .num { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; flex: none; box-shadow: 0 0 0 3px var(--ivory-50); position: relative; z-index: 1; }
.step .body { flex: 1; min-width: 0; padding-top: 2px; }
.step .title { font-weight: 700; font-size: 15px; line-height: 1.28; letter-spacing: -0.005em; }
.step .detail { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; }
.step.esc    { background: var(--esc-bg);    border-color: color-mix(in srgb, var(--esc) 30%, transparent); }    .step.esc .num    { background: var(--esc); box-shadow: 0 0 0 3px var(--esc-bg); }
.step.lift   { background: var(--lift-bg);   border-color: color-mix(in srgb, var(--lift) 30%, transparent); }   .step.lift .num   { background: var(--lift); box-shadow: 0 0 0 3px var(--lift-bg); }
.step.stairs { background: var(--stairs-bg); border-color: color-mix(in srgb, var(--stairs) 30%, transparent); } .step.stairs .num { background: var(--stairs); box-shadow: 0 0 0 3px var(--stairs-bg); }
.step.arrive { background: linear-gradient(135deg, var(--gold-200), var(--arrive-bg)); border-color: var(--gold-400); }
.step.arrive .num { background: var(--arrive); box-shadow: 0 0 0 3px var(--gold-200); }
.step.arrive .title { font-family: var(--font-display); font-size: 17px; font-weight: 600; }
.step.active { transform: translateX(3px); box-shadow: 0 0 0 3px rgba(0,134,122,.28), var(--shadow-lift); }
.step.esc.active { box-shadow: 0 0 0 3px rgba(212,138,42,.4), var(--shadow-lift); }
.step.lift.active { box-shadow: 0 0 0 3px rgba(47,127,191,.4), var(--shadow-lift); }
.step.stairs.active { box-shadow: 0 0 0 3px rgba(124,91,181,.4), var(--shadow-lift); }
.step.arrive.active { box-shadow: 0 0 0 3px rgba(183,134,42,.5), var(--shadow-lift); }

.share-btn { width: 100%; margin-top: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: linear-gradient(135deg, var(--ember-500), var(--ember-600)); color: #fff; border: 0; border-radius: var(--radius); padding: 15px; font-weight: 800; font-size: 15px; letter-spacing: .01em; box-shadow: 0 10px 24px -8px rgba(212,71,31,.55); }
.share-btn .ico { width: 20px; height: 20px; }
.foot { text-align: center; color: var(--ink-3); font-size: 11.5px; margin: 18px 0 0; letter-spacing: .02em; }

/* ---------- file:// fallback notice ---------- */
.file-notice { padding: 24px 20px; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.file-notice .mark { width: 34px; height: 34px; color: var(--ember-500); }
.file-notice pre { background: var(--plum-900); color: var(--ivory-50); padding: 12px 14px; border-radius: 10px; font-size: 14px; overflow-x: auto; }
.file-notice code { background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 5px; padding: 1px 5px; font-size: 13px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--ink); color: var(--ivory-50); padding: 10px 16px; border-radius: 999px; font-size: 13.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.3); z-index: 80; max-width: 90vw; text-align: center; animation: pop .25s var(--ease) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ================= ?ui=map1 — Map-first (the floor plan is the home screen) ================= */
html.ui-map1, html.ui-map1 body { overflow: hidden; height: 100%; }
#map1-root { position: fixed; inset: 0; z-index: 40; display: flex; flex-direction: column; max-width: 480px; margin: 0 auto; background: var(--ivory-100); }
.m1-top { flex: none; background: linear-gradient(170deg, var(--plum-800) 0%, var(--plum-900) 60%, var(--plum-950) 100%); color: var(--ivory-50); padding: calc(8px + env(safe-area-inset-top)) 12px 10px; display: flex; flex-direction: column; gap: 8px; z-index: 22; }
.m1-brand { display: flex; align-items: center; gap: 9px; }
.m1-brand .mark { width: 26px; height: 26px; color: var(--ember-300); flex: none; }
.m1-brand-t { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.m1-brand-t b { font-family: var(--font-display); font-size: 15px; font-weight: 600; }
.m1-brand-t small { font-size: 10.5px; color: var(--gold-200); opacity: .92; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m1-search-wrap { display: flex; align-items: center; gap: 9px; background: var(--ivory-50); border-radius: 999px; padding: 0 14px; box-shadow: 0 6px 18px -8px rgba(0,0,0,.5); }
.m1-search-wrap .ico { color: var(--ember-600); width: 18px; height: 18px; flex: none; }
.m1-search { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--ink); padding: 11px 0; border: 0; background: transparent; outline: none; -webkit-appearance: none; }
.m1-search::-webkit-search-cancel-button { -webkit-appearance: none; }
/* results + amenity chips sit over the top of the map */
.m1-results { position: absolute; left: 8px; right: 8px; top: 0; z-index: 35; background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 0 0 16px 16px; box-shadow: var(--shadow-lift); max-height: 46vh; overflow-y: auto; padding: 6px; }
.m1-result { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 8px; }
.m1-result:active { background: var(--ivory-100); }
.m1-result .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); }
.m1-result .name { flex: 1; font-weight: 600; font-size: 14.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m1-result .name small { display: block; font-size: 11px; color: var(--ink-3); font-weight: 500; }
.m1-result .amenity-ico { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--gold-100); color: var(--ember-600); flex: none; }
.m1-result .amenity-ico .ico { width: 16px; height: 16px; }
.m1-results .empty { padding: 14px 8px; }
.m1-chips { position: absolute; left: 8px; right: 8px; top: 4px; z-index: 15; display: flex; gap: 7px; padding: 8px 2px; overflow-x: auto; scrollbar-width: none; }
.m1-chips::-webkit-scrollbar { display: none; }
.m1-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--ivory-50); border: 1px solid var(--ivory-200); border-radius: 999px; padding: 8px 13px; font-size: 12.5px; font-weight: 700; color: var(--ink); box-shadow: var(--shadow); }
.m1-chip .ico { width: 15px; height: 15px; color: var(--ember-600); }
.m1-chip:active { border-color: var(--gold-400); }
/* the stage: fullscreen 2.5D map (or the clean 2D fallback) */
.m1-stage { flex: 1; position: relative; overflow: hidden; background: #F1EFEB; }   /* round-10 ladder: outside recedes */
.m1-map { position: absolute; inset: 0; }
.m25-svg { display: block; width: 100%; height: 100%; touch-action: none; }
.m25-pick .m25-svg { cursor: crosshair; }
.m25-youhalo { animation: halo-pulse 2s ease-in-out infinite; }
.m1-2dcard { position: absolute; inset: 8px; aspect-ratio: auto; }
.m1-rail { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; z-index: 20; }
.m1-fl { position: relative; width: 42px; height: 40px; border-radius: 12px; background: var(--ivory-50); border: 1px solid var(--ivory-200); font-weight: 800; font-size: 13px; color: var(--ink-2); box-shadow: var(--shadow); display: grid; place-items: center; }
.m1-fl.active { background: var(--floor); color: #fff; border-color: transparent; }
.m1-fl .dot { position: absolute; left: 4px; top: 4px; width: 8px; height: 8px; border-radius: 50%; background: var(--green); border: 1.5px solid #fff; display: none; }
.m1-fl.on-route .dot { display: block; }
.m1-fl.is-dest { box-shadow: 0 0 0 2.5px var(--gold-400), var(--shadow); }
.m1-viewbtn { position: absolute; left: 10px; top: 56px; z-index: 20; width: 44px; height: 40px; border-radius: 12px; background: var(--ivory-50); border: 1px solid var(--ivory-200); font-weight: 800; font-size: 13px; color: var(--ink); box-shadow: var(--shadow); }
.m1-banner { position: absolute; top: 56px; left: 64px; right: 58px; z-index: 25; background: var(--ink); color: var(--ivory-50); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-lift); animation: pop .2s var(--ease) both; }
.m1-banner b { display: block; font-size: 13.5px; }
.m1-banner span { display: block; font-size: 12px; opacity: .85; margin-top: 2px; }
.m1-banner-x { margin-top: 7px; background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; }
/* bottom sheet — the map stays live above (≤ 40 % of the screen) */
.m1-sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 40%; overflow-y: auto; z-index: 30; background: var(--ivory-50); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 34px rgba(31,26,28,.22); padding: 3px 14px calc(12px + env(safe-area-inset-bottom)); animation: m1up .22s var(--ease) both; }
@keyframes m1up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.m1-sheet-grip { width: 42px; height: 4px; border-radius: 4px; background: var(--ivory-300); margin: 8px auto 2px; }
.m1-sheet-head { display: flex; align-items: center; gap: 10px; padding: 8px 0 6px; }
.m1-sheet-head .dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot) 18%, transparent); }
.m1-sheet-head .tt { flex: 1; min-width: 0; }
.m1-sheet-head .tt b { display: block; font-family: var(--font-display); font-size: 17.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m1-sheet-head .tt small { color: var(--ink-2); font-size: 12px; }
.m1-x { width: 40px; height: 40px; border: 0; background: none; font-size: 24px; color: var(--ink-3); flex: none; }
.m1-sheet-btns { display: flex; gap: 8px; padding: 4px 0 6px; }
.m1-btn { flex: 1; border: 0; border-radius: 14px; padding: 11px 10px; font-weight: 800; font-size: 14.5px; min-height: 56px; }
.m1-btn .hi { display: block; font-size: 11.5px; font-weight: 600; opacity: .85; margin-top: 2px; }
.m1-btn-go { background: linear-gradient(135deg, var(--gold-400), var(--gold-500)); color: #241A05; box-shadow: 0 8px 20px -8px rgba(196,144,47,.6); }
.m1-btn-here { background: var(--ivory-100); border: 1.5px solid var(--ivory-300); color: var(--ink); }
.m1-origin-list { display: flex; flex-direction: column; gap: 6px; padding-bottom: 4px; }
.m1-origin { text-align: left; background: var(--ivory-100); border: 1px solid var(--ivory-200); border-radius: 12px; padding: 10px 12px; }
.m1-origin.first { border-color: var(--gold-400); background: var(--gold-100); }
.m1-origin.pick b::after { content: " ›"; color: var(--ink-3); }
.m1-origin b { display: block; font-size: 14.5px; }
.m1-origin small { color: var(--ink-2); font-size: 12px; }
.m1-qrline { display: flex; gap: 8px; align-items: flex-start; color: var(--ink-3); font-size: 12px; line-height: 1.4; margin: 8px 0 2px; }
.m1-qrline .ico { color: var(--ember-600); width: 18px; height: 18px; flex: none; margin-top: 1px; }
/* docked route summary (State C) */
.m1-summary { position: absolute; left: 0; right: 0; bottom: 0; z-index: 28; background: var(--ivory-50); border-radius: 18px 18px 0 0; box-shadow: 0 -10px 34px rgba(31,26,28,.22); padding: 8px 14px calc(12px + env(safe-area-inset-bottom)); animation: m1up .22s var(--ease) both; }
.m1-sum-head { display: flex; align-items: center; gap: 8px; }
.m1-sum-head .tt { flex: 1; min-width: 0; }
.m1-sum-head .tt b { display: block; font-family: var(--font-display); font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m1-sum-head .tt small { color: var(--ink-2); font-size: 12px; }
.m1-chain { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; padding: 6px 0 2px; }
.m1-chain::-webkit-scrollbar { display: none; }
.m1-hop { flex: none; min-width: 30px; height: 28px; border-radius: 999px; background: var(--floor); color: #fff; font-weight: 800; font-size: 12px; border: 2px solid transparent; padding: 0 9px; box-shadow: inset 0 -2px 0 rgba(0,0,0,.14); }
.m1-hop-arrow { flex: none; font-size: 19px; font-weight: 900; color: var(--ink-3); line-height: 1; }
.m1-sum-actions { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-top: 6px; }
.m1-swap { background: none; border: 0; color: var(--lift); font-weight: 700; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; padding: 10px 0; text-align: left; }
.m1-start { flex: 0 0 47%; min-height: 52px; font-size: 16px; }
/* the guide deck + explore overlays (deck styles come from the shipped .guide) */
#m1-guide { position: absolute; inset: 0; z-index: 50; background: var(--ivory-100); overflow-y: auto; padding: calc(8px + env(safe-area-inset-top)) 12px 20px; }
.m1-xplore { position: absolute; inset: 0; z-index: 60; background: var(--ivory-100); display: flex; flex-direction: column; padding: calc(8px + env(safe-area-inset-top)) 10px calc(10px + env(safe-area-inset-bottom)); }

/* ---- design addendum 2026-09-17: preview header both-ends + step-free toggle ---- */
.m1-sum-from { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 0; padding: 5px 2px 3px 46px; border-bottom: 1px dashed var(--ivory-200); }
.m1-sum-from .lbl { font-size: 12.5px; color: var(--ink-2); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m1-sum-from .lbl b { color: var(--ink); font-weight: 700; }
.m1-endswap { flex: none; background: var(--ivory-100); border: 1px solid var(--ivory-300); border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700; color: var(--ink-2); }
.m1-endswap:active { border-color: var(--gold-400); }
.m1-sftoggle { display: inline-flex; align-items: center; gap: 7px; background: var(--ivory-100); border: 1.5px solid var(--ivory-300); border-radius: 999px; padding: 9px 13px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.m1-sftoggle i { width: 26px; height: 15px; border-radius: 999px; background: var(--ivory-300); position: relative; transition: background .15s; flex: none; }
.m1-sftoggle i::after { content: ""; position: absolute; top: 1.5px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.m1-sftoggle.on { border-color: color-mix(in srgb, var(--lift) 55%, transparent); background: var(--lift-bg); color: var(--lift); }
.m1-sftoggle.on i { background: var(--lift); }
.m1-sftoggle.on i::after { transform: translateX(10px); }
/* ---- all-steps: grouped by floor with a turn icon per step ---- */
.g-allsteps .g-floorhead { display: block; background: none; border: 0; box-shadow: none; padding: 8px 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--floor, var(--ink-3)) 75%, #000); }
.g-allsteps .g-floorhead:first-child { padding-top: 2px; }
.g-turnico { flex: none; width: 20px; text-align: center; font-size: 16px; line-height: 1.2; margin-top: 4px; color: var(--ink-2); }

/* ---- PM round-1 clarity fixes (2026-09-17) ---- */
/* floor rail docks above the open sheet/summary, always fully on-screen, under the sheet */
.m1-rail { top: auto; bottom: calc(var(--m1-dock, 0px) + 12px); transform: none; transition: bottom .2s var(--ease); }
.m1-docked .m1-rail { gap: 4px; }
.m1-docked .m1-fl { height: 34px; width: 38px; font-size: 12px; }
/* ride-direction chevrons on the active bank marker (route preview) */
.m25-flow path { animation: m25flow 1.1s ease-in-out infinite; }
.m25-flow path:nth-child(2) { animation-delay: .25s; }
.m25-flow-down path { animation-name: m25flow-down; }
@keyframes m25flow { 0% { opacity: .15; transform: translateY(6px); } 50% { opacity: 1; } 100% { opacity: .15; transform: translateY(-6px); } }
@keyframes m25flow-down { 0% { opacity: .15; transform: translateY(-6px); } 50% { opacity: 1; } 100% { opacity: .15; transform: translateY(6px); } }
.m25-flow > g:nth-child(2) path { animation-delay: .25s; } .m25-flow > g:nth-child(3) path { animation-delay: .5s; }
/* ride animation badge on guide RIDE cards (escalator belt / lift cabin) */
.g-mini { position: relative; }
.g-ride { position: absolute; top: 14px; left: 16px; width: 68px; height: 56px; border-radius: 12px; background: var(--ivory-50); border: 1px solid var(--gold-200); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
.g-ride .belt { position: absolute; inset: 9px 11px; border-radius: 6px; transform: skewY(-16deg); background: repeating-linear-gradient(-45deg, rgba(201,125,16,.55) 0 5px, transparent 5px 11px); }
.g-ride-esc.up .belt { animation: g-esc-flow .85s linear infinite; }
.g-ride-esc.down .belt { animation: g-esc-flow .85s linear infinite reverse; }
@keyframes g-esc-flow { to { background-position: 15.6px 0; } }
.g-ride > b { position: relative; font-size: 22px; color: var(--esc); text-shadow: 0 0 4px var(--ivory-50), 0 0 4px var(--ivory-50); }
.g-ride-stairs > b { color: var(--stairs); }
.g-ride-lift { grid-template-columns: auto auto; column-gap: 6px; align-content: start; padding-top: 8px; }
.g-ride-lift .cab { display: block; width: 24px; height: 1em; font-size: 16px; line-height: 1; overflow: hidden; border: 2px solid var(--lift); border-radius: 4px; background: var(--lift-bg); font-weight: 800; color: var(--lift); text-align: center; }
.g-ride-lift .strip { display: block; animation-name: g-lift-cycle; animation-iteration-count: infinite; }
.g-ride-lift .strip em { display: block; height: 1em; font-style: normal; }
@keyframes g-lift-cycle { to { transform: translateY(calc(-1em * (var(--n) - 1))); } }
.g-ride-lift > b { font-size: 16px; color: var(--lift); }
.g-ride-lift > small { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-size: 10px; font-weight: 700; color: var(--ink-3); }

/* ---- PM round-2 (2026-09-17): map-first guidance — full-screen map + docked instruction strip ---- */
.m1-guiding .m1-top, .m1-guiding .m1-chips, .m1-guiding .m1-summary, .m1-guiding .m1-sheet, .m1-guiding .m1-results { display: none !important; }
.m1-gtop { position: absolute; left: 0; right: 0; top: 0; z-index: 45; padding: calc(6px + env(safe-area-inset-top)) 10px 12px; background: linear-gradient(rgba(245,240,231,.97) 60%, rgba(245,240,231,0)); pointer-events: none; }
.m1-gtop .g-rail { margin: 0; pointer-events: auto; }
#m1-guide { top: auto; bottom: 0; max-height: 78%; overflow-y: auto; border-radius: 18px 18px 0 0; box-shadow: 0 -10px 34px rgba(31,26,28,.22); padding: 0 12px calc(8px + env(safe-area-inset-bottom)); background: var(--ivory-50); }
#m1-guide .g-card { border: 0; box-shadow: none; border-radius: 14px; }
#m1-guide .g-text { padding: 4px 10px 0; }
#m1-guide .g-title { font-size: 18px; line-height: 1.2; }
#m1-guide .g-tline { cursor: pointer; }
#m1-guide .g-btns { padding: 8px 10px 10px; }
#m1-guide .g-btn { min-height: 52px; padding: 12px 10px; }
#m1-guide .g-stage, #m1-guide .g-cues, #m1-guide .g-detail, #m1-guide .g-then, #m1-guide .g-foot { display: none; }
#m1-guide.m1-gx .g-stage, #m1-guide.m1-gx .g-cues, #m1-guide.m1-gx .g-detail, #m1-guide.m1-gx .g-then, #m1-guide.m1-gx .g-foot { display: block; }
/* UAT F10: the Hindi line stays visible in the collapsed strip — compact, one line */
#m1-guide:not(.m1-gx) .g-hindi { font-size: 13px; margin: 2px 0 0 36px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#m1-guide .g-mini { padding: 4px 8px 0; }
.m1-gh { display: block; width: 100%; background: none; border: 0; padding: 9px 0 3px; }
.m1-gh i { display: block; width: 42px; height: 4px; border-radius: 4px; background: var(--ivory-300); margin: 0 auto; }
/* compact ride glyph beside the step number in the strip */
.g-ride-sm { position: relative; top: auto; left: auto; width: 40px; height: 30px; border-radius: 8px; flex: none; margin-top: 2px; }
.g-ride-sm > b { font-size: 15px; }
.g-ride-sm.g-ride-lift { padding-top: 4px; column-gap: 3px; }
.g-ride-sm .cab { font-size: 12px; width: 16px; }
.g-ride-sm .belt { inset: 6px 7px; }
/* the large ride pictogram (escalator band + person / lift shaft + cabin) */
.g-picto-wrap { padding: 2px 0 4px; }
.g-picto { display: block; width: min(100%, 300px); height: auto; margin: 0 auto; font-family: var(--font-body); }
.g-picto .p-steps { animation: p-steps .55s linear infinite; }
.g-picto.down .p-steps { animation-direction: reverse; }
.g-picto .p-steps.p-static { animation: none; }
@keyframes p-steps { to { transform: translate(12.52px, -6.26px); } }
.g-picto .p-person { animation: p-ride-up 3.4s linear infinite; }
.g-picto.down .p-person { animation-name: p-ride-down; }
@keyframes p-ride-up { 0% { transform: translate(0,0); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(var(--dx), var(--dy)); opacity: 0; } }
@keyframes p-ride-down { 0% { transform: translate(var(--dx), var(--dy)); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translate(0,0); opacity: 0; } }
.g-picto .p-cab { animation: p-lift 3s linear infinite; }
@keyframes p-lift { 0% { transform: translateY(0); } 12% { transform: translateY(0); } 82% { transform: translateY(var(--travel)); } 100% { transform: translateY(var(--travel)); } }
.g-picto-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 8px; margin: 6px 0 2px; font-size: 13px; color: var(--ink-2); font-weight: 600; }
.g-picto-row .fl { min-width: 28px; height: 26px; border-radius: 999px; background: var(--floor); color: #fff; font-weight: 800; font-size: 12px; display: grid; place-items: center; padding: 0 8px; }
.g-picto-row .arr { color: var(--ink-3); font-weight: 800; }
.g-picto-row .nm { color: var(--ink); }
.g-picto-row .cnt { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) {   /* still frame: person mid-band, cabin mid-shaft, bold arrow already drawn */
  .g-picto .p-person { transform: translate(calc(var(--dx) / 2), calc(var(--dy) / 2)); opacity: 1; }
  .g-picto .p-cab { transform: translateY(calc(var(--travel) / 2)); }
}

/* ---- PM round-3 (2026-09-17): explorable preview + peek summary; ride steps as their own animation screen ---- */
.m1-summary .m1-gh { padding: 7px 0 0; }
.m1-summary .m1-sum-head .tt { cursor: pointer; }
.m1-summary.m1-peek .m1-sum-from, .m1-summary.m1-peek .m1-chain, .m1-summary.m1-peek .m1-sftoggle, .m1-summary.m1-peek .m1-sum-head .tt small { display: none; }
.m1-summary.m1-peek .m1-sum-actions { margin-top: 4px; }
.m1-summary.m1-peek .m1-start { flex: 1 1 100%; min-height: 46px; font-size: 15px; }
.m1-gtop { z-index: 55; }
.m1-riding #m1-guide { top: 0; bottom: 0; max-height: none; border-radius: 0; box-shadow: none; background: var(--ivory-100); padding: calc(88px + env(safe-area-inset-top)) 12px calc(10px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; justify-content: center; }
.m1-riding #m1-guide .g-stage, .m1-riding #m1-guide .g-hindi { display: block !important; }
.m1-riding #m1-guide .g-cues, .m1-riding #m1-guide .g-detail, .m1-riding #m1-guide .g-then, .m1-riding #m1-guide .g-foot, .m1-riding #m1-guide .m1-gh, .m1-riding .g-ride-sm, .m1-riding .m1-rail, .m1-riding .m1-viewbtn { display: none !important; }
.m1-riding #m1-guide .g-card { border: 1px solid var(--ivory-200); box-shadow: var(--shadow-lift); }
.m1-riding #m1-guide .g-mini { padding: 14px 10px 0; }
.m1-riding #m1-guide .g-picto { width: min(100%, 340px); }
.m1-riding #m1-guide .g-picto-row { font-size: 14px; margin: 10px 0 4px; }
.m1-riding #m1-guide .g-title { font-size: 22px; }
.m1-riding #m1-guide .g-btns { padding: 12px 10px 14px; }
.m1-stage, .m1-gtop, #m1-guide .g-tline { user-select: none; -webkit-user-select: none; }

/* ---- PM round-4 (2026-09-17): compositor camera — two transformed layers, constant-size markers via --inv ---- */
.m25-root { overflow: hidden; touch-action: none; cursor: grab; }
.m25-root:active { cursor: grabbing; }
.m25-svg { position: absolute; left: 0; top: 0; width: auto; height: auto; display: block; transform-origin: 0 0; will-change: transform; backface-visibility: hidden; touch-action: none; }
.m25-marks { pointer-events: none; }
.m25-marks .m25-hit { pointer-events: auto; cursor: pointer; }
.m25-marks .m25-anch { will-change: transform; }

/* ---- map1 · round 5 (polygon fidelity): traced furniture shows only at the close tier ---- */
.m25-cols, .m25-svc { opacity: 0; transition: opacity .25s ease; }
.m25-root[data-lod="2"] .m25-cols, .m25-root[data-lod="2"] .m25-svc { opacity: 1; }

/* ---- map1 · round 7 (reference look): badge pins scale in when they appear; 2D fallback shares the scheme ---- */
@keyframes m25pop { from { transform: scale(.55); opacity: .15; } to { transform: scale(1); opacity: 1; } }
.m25-badge.m25-pop { animation: m25pop .22s ease-out; transform-origin: 0 0; }
.map-clean { background: #F1EFEB; }
@media (prefers-reduced-motion: reduce) { .m25-badge.m25-pop { animation: none; } }

/* ---- map1 · round 8 (quality): crisp hairlines, guiding cue ---- */
.m25-plan .m25-unit { stroke-width: var(--hair, 0.8px); }
@keyframes m25march { from { stroke-dashoffset: 0; } to { stroke-dashoffset: var(--march, -20px); } }
.m25-march { display: none; opacity: .9; }
.m1-guiding .m25-march { display: block; animation: m25march 1.15s linear infinite; }
.m25-gest .m25-march { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .m1-guiding .m25-march { animation: none; } }

/* ---- UAT round-9 (2026-09-17): the origin state model made visible ---- */
/* F2: persistent position chip — bottom-left, rides above whatever is docked */
.m1-youchip { position: absolute; left: 10px; bottom: calc(var(--m1-dock, 0px) + 12px); z-index: 24; display: flex; align-items: center; gap: 7px; max-width: 62vw; background: var(--ink); color: var(--ivory-50); border: 0; border-radius: 999px; padding: 8px 12px 8px 10px; box-shadow: var(--shadow-lift); transition: bottom .2s var(--ease); }
.m1-youchip .ico { width: 15px; height: 15px; flex: none; color: var(--gold-400); }
.m1-youchip .yt { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12.5px; }
.m1-youchip .yt b { font-weight: 700; }
.m1-youchip .yt small { opacity: .75; font-size: 11px; }
.m1-youchip .chg { flex: none; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--gold-400); }
.m1-guiding .m1-youchip, .m1-riding .m1-youchip { display: none; }
.m1-stage:has(.m1-banner:not([hidden])) .m1-youchip { display: none; }
/* F2: the From row is a real control now */
.m1-fromlbl { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; }
.m1-fromlbl .chg { color: var(--green, #00867A); font-weight: 800; font-size: 11px; letter-spacing: .03em; text-transform: uppercase; }
/* fix-package 3: plain-language multi-floor line under the From row */
.m1-sum-plain { margin: 6px 0 2px; padding: 7px 10px; background: var(--ivory-100); border-radius: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; }
.m1-sum-plain .hi { display: block; font-weight: 500; color: var(--ink-2); font-size: 11.5px; }
/* F11: pick-mode banner gets the floor-switch hint */
.m1-banner .sub { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
/* F13: origin ask fits short viewports — tighter rows */
.m1-origin { padding: 9px 12px; min-height: 0; }
.m1-origin small { font-size: 11.5px; line-height: 1.3; }

/* ---- round-10 design review (2026-09-17) ---- */
.m1-guiding .m1-viewbtn { display: none; }   /* D20: one map mode during guidance */
/* round-11: the white balustrade inset shows only at close zoom */
.m25-baluster2 { display: none; }
.m25-root[data-lod="2"] .m25-baluster2 { display: block; }

/* ---- 2D parity pass (2026-09-22): the map-first 2D mode speaks the 2.5D language ---- */
/* the 2D card is the same full-bleed stage as the 2.5D map — a zoom-level change,
   not an app change; it shrinks above whatever chrome is docked at the bottom */
.m1-2dcard { inset: 0 0 var(--m1-dock, 0px) 0; border: 0; border-radius: 0; box-shadow: none; background: #F1EFEB; aspect-ratio: auto; transition: bottom .2s var(--ease); }
.map-m1 { background: #F1EFEB; }
.map-m1 .m25-anch { will-change: transform; }
/* close-tier reveals (columns, service silhouettes, balustrade inset) — same rules as m25 */
.map-m1[data-lod="2"] .m25-cols, .map-m1[data-lod="2"] .m25-svc { opacity: 1; }
.map-m1[data-lod="2"] .m25-baluster2 { display: block; }

/* store directory (data/directory.js): an offer running today, on a store-list row */
.store-row .offer-tag { flex: none; display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px 3px 3px; border-radius: 999px; background: #FFEBDD; color: #8A3A0C; font-size: 11.5px; font-weight: 750; }
.store-row .offer-tag i { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #E8590C; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; }
/* …a row with an offer (PM 2026-10-16): the store name is a button whose ::after fills the row (one tap picks the store,
   anywhere on it), the "% Offer" tag is a second button on top that opens the offer card — a 44 px tall touch area round
   the 22 px tag. Looks the same as every other row */
div.store-row.has-offer { position: relative; }
.store-row .pick { border: 0; background: none; padding: 0; margin: 0; text-align: left; line-height: inherit; }
.store-row .pick::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.store-row .pick:active, .store-row .pick:focus-visible { transform: none; outline: none; }
div.store-row.has-offer:has(> .pick:active) { border-color: var(--gold-400); background: #fff; transform: scale(.985); }
div.store-row.has-offer:has(> .pick:focus-visible) { outline: 2px solid var(--gold-400); outline-offset: 2px; }
.store-row button.offer-tag { position: relative; z-index: 1; border: 0; margin: 0; line-height: 16px; cursor: pointer; }
.store-row button.offer-tag::before { content: ""; position: absolute; inset: -11px -6px; }
.store-row button.offer-tag:active { transform: scale(.94); background: #FFD9BF; }
.store-row button.offer-tag:focus-visible { outline: 2px solid #E8590C; outline-offset: 2px; }

/* live content (AImall, 2026-10-13): the mall's banner line + its next event on "Where to?", the anonymous-counts notice */
.news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; margin: 0 0 14px; }
.news-row { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px 9px 9px; border-radius: 14px; background: var(--ivory-50); border: 1px solid var(--ivory-200); box-shadow: 0 1px 0 rgba(31,26,28,.03); text-align: left; font: inherit; color: var(--ink); }
button.news-row { cursor: pointer; }
button.news-row:active { background: var(--ivory-100); }
.news-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--gold-100); color: #8A5B12; flex: none; }
.news-ico .ico { width: 19px; height: 19px; }
.news-row.hap .news-ico { background: #F3E8FF; color: #7E22CE; }
.news-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.news-t .nt { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 700; }
.news-row.hap .news-t .nt { font-weight: 750; }
.news-t small { display: flex; align-items: center; gap: 6px; margin-top: 3px; min-width: 0; font-size: 12.5px; color: var(--ink-2); }
.news-t small > span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.news-go { flex: none; font-size: 12.5px; font-weight: 750; color: var(--ember-600); }
.sample-tag { flex: none; padding: 1px 6px; border-radius: 6px; background: #3D3430; color: #fff; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.anon-note { margin: 16px 0 24px; text-align: center; font-size: 12px; color: var(--ink-3); }
.screen.searching .anon-note { margin-top: 10px; }

/* ---- "Remember my parking" (js/parking.js, 2026-10-15): the row on "Where to?" + the save sheet ---- */
.park { margin: 0 0 12px; }
.screen.searching #park { display: none; }
.park-p { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 9px; background: #1F5FA8; color: #fff; font-family: var(--font-body); font-size: 19px; font-weight: 800; line-height: 1; }
.park-row { display: flex; align-items: center; gap: 11px; width: 100%; min-height: 56px; padding: 9px 12px 9px 9px; border-radius: 14px; background: var(--ivory-50); border: 1px solid var(--ivory-200); box-shadow: 0 1px 0 rgba(31,26,28,.03); text-align: left; font: inherit; color: var(--ink); }
button.park-row { cursor: pointer; }
button.park-row:active { background: var(--ivory-100); }
.park-row.on { border-color: #B9CDE6; background: linear-gradient(90deg, #E8F0FA, var(--ivory-50) 75%); }
.park-t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.3; }
.park-t b { display: block; font-weight: 750; }
.park-t small { display: block; margin-top: 2px; font-size: 12.5px; color: var(--ink-2); }
.park-go { flex: none; font-size: 12.5px; font-weight: 750; color: var(--ember-600); }
.park-row.on .park-go { color: #fff; background: #1F5FA8; padding: 8px 11px; border-radius: 999px; }
button.park-go { border: 0; background: none; padding: 10px 6px; font: inherit; font-size: 13px; font-weight: 750; color: var(--ember-600); cursor: pointer; }
.park-card { border-radius: 14px; }
.park-acts { display: flex; flex-wrap: wrap; gap: 2px 14px; padding: 4px 4px 0 54px; }
.park-a { border: 0; background: none; padding: 8px 0; font: inherit; font-size: 12.5px; font-weight: 700; color: #1F5FA8; text-decoration: none; cursor: pointer; }
.park-row.undo .park-t b { font-weight: 650; color: var(--ink-2); }

html.park-open, html.park-open body { overflow: hidden; }
.park-ov { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; background: rgba(20,15,16,.45); animation: park-fade .18s ease both; }
.park-sheet { width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--ivory-100); box-shadow: 0 -10px 40px -10px rgba(0,0,0,.4); animation: park-up .26s var(--ease) both; }
@keyframes park-fade { from { opacity: 0; } }
@keyframes park-up { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { .park-ov, .park-sheet { animation: none; } }
.park-h { margin: 0 0 10px; font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.15; outline: none; }
.park-h .hindi { display: block; margin-top: 4px; font-family: var(--font-body); font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.park-f { margin: 14px 0 0; padding: 0; border: 0; min-width: 0; }
.park-f legend, .park-f .legend { display: block; padding: 0; margin: 0 0 7px; font-size: 13px; font-weight: 750; color: var(--ink); }
.park-f .legend small, .park-f legend small { font-weight: 500; color: var(--ink-3); }
.park-seg { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 8px; }
.park-lifts { display: grid; gap: 8px; }
.park-opt { position: relative; display: block; cursor: pointer; }
.park-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.park-opt span { display: block; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--ivory-300); background: var(--ivory-50); }
.park-seg .park-opt span { text-align: center; padding: 9px 4px; }
.park-opt b { display: block; font-size: 15px; font-weight: 750; }
.park-seg .park-opt b { font-size: 18px; }
.park-opt small { display: block; margin-top: 1px; font-size: 12px; color: var(--ink-3); }
.park-opt input:checked + span { border-color: #1F5FA8; background: #E8F0FA; box-shadow: 0 0 0 1px #1F5FA8 inset; }
.park-opt input:checked + span small { color: #1F4E86; }
.park-opt input:focus-visible + span { outline: 2px solid #1F5FA8; outline-offset: 2px; }
.park-in { display: block; width: 100%; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--ivory-300); background: var(--ivory-50); font: inherit; font-size: 17px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--ink); outline: none; -webkit-appearance: none; }
.park-in::placeholder { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink-3); }
.park-in:focus { border-color: #1F5FA8; }
.park-hint { display: block; margin-top: 5px; font-size: 12px; color: var(--ink-3); }
.park-note { margin: 14px 0 0; font-size: 12.5px; color: var(--ink-2); }
.park-btns { display: flex; gap: 10px; margin-top: 14px; }
.park-btn { height: 48px; padding: 0 18px; border-radius: 13px; border: 0; font: inherit; font-size: 15.5px; font-weight: 750; cursor: pointer; }
.park-btn.primary { flex: 1; background: #1F5FA8; color: #fff; }
.park-btn.primary:disabled { background: var(--ivory-300); color: var(--ink-3); cursor: default; }
.park-btn.ghost { background: rgba(31,26,28,.06); color: var(--ink); }
@media (hover: hover) { button.park-row:hover { border-color: var(--ivory-300); } .park-opt:hover input:not(:checked) + span { border-color: #9DB6D6; } }
.step.park-step .num.park-p { width: 30px; height: 30px; border-radius: 8px; font-size: 16px; background: #1F5FA8; }

/* ---- "In an emergency" (js/emergency.js, 2026-10-15): the button on "Where to?" + its sheet (overlay shared with parking) ---- */
.sos-btn { float: right; display: inline-flex; align-items: center; gap: 6px; margin: 14px 0 0; padding: 7px 13px 7px 10px; border-radius: 999px; border: 1px solid rgba(255,170,160,.45); background: rgba(198,40,40,.22); color: #FFE1DC; font: inherit; font-size: 13.5px; font-weight: 750; cursor: pointer; }
.sos-btn .ico { width: 17px; height: 17px; }
.sos-btn:active { background: rgba(198,40,40,.4); }
.sos-sheet { width: 100%; max-width: 480px; max-height: 92dvh; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); border-radius: 22px 22px 0 0; background: var(--ivory-100); box-shadow: 0 -10px 40px -10px rgba(0,0,0,.4); animation: park-up .26s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { .sos-sheet { animation: none; } }
.sos-h { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-family: var(--font-display); font-size: 23px; font-weight: 600; line-height: 1.15; color: #8E1B12; outline: none; }
.sos-h .ico { width: 30px; height: 30px; flex: none; color: #C62828; }
.sos-h small { display: block; margin-top: 3px; font-family: var(--font-body); font-size: 14px; font-weight: 500; color: var(--ink-2); }
.sos-steps { margin: 0; padding: 0; list-style: none; counter-reset: sos; display: grid; gap: 10px; }
.sos-steps li { counter-increment: sos; position: relative; padding: 0 0 0 36px; min-height: 26px; }
.sos-steps li::before { content: counter(sos); position: absolute; left: 0; top: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #C62828; color: #fff; font-size: 13px; font-weight: 800; }
.sos-steps b { display: block; font-size: 15.5px; font-weight: 700; line-height: 1.3; }
.sos-steps small { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.sos-calls { display: grid; gap: 8px; margin-top: 16px; }
.sos-call { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 14px; border-radius: 14px; background: var(--ivory-50); border: 1.5px solid #E7B7B1; color: #8E1B12; text-decoration: none; }
.sos-call b { font-size: 16px; font-weight: 800; }
.sos-call small { flex: 1; min-width: 0; font-size: 13px; color: var(--ink-2); }
.sos-call.main { background: #C62828; border-color: #C62828; color: #fff; }
.sos-call.main small { color: rgba(255,255,255,.88); }
.sos-help { margin: 14px 0 0; font-size: 14px; line-height: 1.4; }
.sos-note { margin: 8px 0 0; font-size: 12.5px; color: var(--ink-3); }
.sos-close { width: 100%; margin-top: 14px; }
.park-demo { margin: 0 0 8px; padding: 7px 11px; border-radius: 10px; background: #FFF4D6; color: #6B4E0E; font-size: 12.5px; line-height: 1.35; }
.park-row.here { border-color: #B9CDE6; background: linear-gradient(90deg, #E8F0FA, var(--ivory-50) 75%); margin-bottom: 8px; }

/* ---- "Where are you?" in the same layout as "Where to?" (2026-10-16; ?unified=0 = the earlier one) ---- */
.origin-tiles { margin-bottom: 14px; }
.origin-tile { position: relative; overflow: hidden; }
.origin-tile::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--floor, var(--ember-500)); }
.origin-tile .lbl { text-align: center; line-height: 1.2; }
.origin-tile .fl { margin-top: -3px; font-size: 11px; font-weight: 700; color: color-mix(in srgb, var(--floor, #999) 82%, #000); }
/* "Where are you?": floor chips + the stores (2026-10-16; ?storelist=0 = without) — same chips and rows as "Where to?" */
.here-list { margin-bottom: 6px; }
.screen.searching #here-chips, .screen.searching #here-list { display: none; }
