/* Today Nearby — "evening city map": navy streets, sodium streetlights, condensed signage. */
:root {
  --bg: #0b1324; --bg2: #101b31; --card: #142039; --card2: #1a2846; --line: #26355a; --street: #22314f; --street2: #1a2742;
  --text: #eef1f8; --muted: #a9b4cb; --faint: #8e9ab4;
  --lamp: #ffb547; --lamp-ink: #ffc76e; --lamp-bg: #ffb547; --on-lamp: #1d1302;
  --free: #6fd9c3; --free-bg: rgba(111, 217, 195, .14); --river: #13284a;
  --focus: #ffd38a; --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Sofia Sans Extra Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --r: 16px;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f3eee3; --bg2: #ebe4d4; --card: #fffdf8; --card2: #f7f1e4; --line: #d8ccb3; --street: #ddd2bb; --street2: #e5dcc8;
  --text: #142036; --muted: #4c5870; --faint: #535e76;
  --lamp: #f0a12f; --lamp-ink: #8f4a00; --lamp-bg: #ffb547; --on-lamp: #1d1302;
  --free: #0a6e5d; --free-bg: rgba(10, 110, 93, .1); --river: #cfdbe6;
  --focus: #8f4a00; --shadow: 0 8px 24px rgba(40, 30, 10, .12);
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f3eee3; --bg2: #ebe4d4; --card: #fffdf8; --card2: #f7f1e4; --line: #d8ccb3; --street: #ddd2bb; --street2: #e5dcc8;
    --text: #142036; --muted: #4c5870; --faint: #535e76;
    --lamp: #f0a12f; --lamp-ink: #8f4a00; --lamp-bg: #ffb547; --on-lamp: #1d1302;
    --free: #0a6e5d; --free-bg: rgba(10, 110, 93, .1); --river: #cfdbe6;
    --focus: #8f4a00; --shadow: 0 8px 24px rgba(40, 30, 10, .12);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.5 var(--sans);
  overflow-x: hidden; min-height: 100vh; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--lamp-ink); text-underline-offset: 3px; }
button, input, select { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; letter-spacing: .01em; line-height: 1; margin: 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--lamp-bg); color: var(--on-lamp); padding: 10px 14px; border-radius: 10px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { padding: 2rem 16px; text-align: center; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top));
  background: var(--bg); background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); min-width: 0; }
.brand-mark { width: 36px; height: 36px; flex: 0 0 36px; }
.bm-bg { fill: #0b1324; stroke: var(--line); }
.bm-street { stroke: #2a3c63; stroke-width: 2.2; fill: none; stroke-linecap: round; }
.bm-glow { fill: var(--lamp-bg); opacity: .28; }
.bm-lamp { fill: var(--lamp-bg); }
.brand-txt { display: flex; flex-direction: column; line-height: 1; min-width: 0; }
.brand-txt b { font: 800 1.45rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.brand-txt small { font-size: .72rem; color: var(--muted); margin-top: 3px; white-space: nowrap; }
.top-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: grid; place-items: center; cursor: pointer; padding: 0;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.icon-btn .moon { fill: currentColor; stroke: none; }
.icon-btn .sun { display: none; }
:root[data-theme="light"] .icon-btn .moon { display: none; }
:root[data-theme="light"] .icon-btn .sun { display: inline; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .icon-btn .moon { display: none; }
  :root:not([data-theme="dark"]) .icon-btn .sun { display: inline; }
}
.icon-btn.small { width: 34px; height: 34px; border-radius: 10px; }
.lang-wrap select {
  height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 28px 0 10px; cursor: pointer; max-width: 120px;
  appearance: none; -webkit-appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - 15px) 18px, calc(100% - 10px) 18px; background-size: 5px 5px; background-repeat: no-repeat;
}

/* ---------- hero: the night map ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg2); }
.map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map .streets path { stroke: var(--street); stroke-width: 7; fill: none; stroke-linecap: round; }
.map .streets path.minor { stroke: var(--street2); stroke-width: 3.5; }
.map .river { stroke: var(--river); stroke-width: 22; fill: none; stroke-linecap: round; }
.map .lamps circle:not([fill]) { fill: var(--lamp); }
.map .pulse { animation: pulse 4.5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.map .pulse.d2 { animation-delay: -2s; }
@keyframes pulse { 50% { opacity: .55; transform: scale(.86); } }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 0%, color-mix(in srgb, var(--bg2) 55%, transparent) 45%, var(--bg2) 100%); pointer-events: none; }
.hero-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 56px 16px 22px; }
.clock {
  display: inline-block; margin: 0 0 12px; padding: 4px 10px; border-radius: 6px; background: var(--lamp-bg); color: var(--on-lamp);
  font: 700 .95rem/1.2 var(--display); letter-spacing: .08em; text-transform: uppercase; min-height: 1.6em;
}
.clock:empty { visibility: hidden; }
.hero h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); text-transform: uppercase; line-height: .92; overflow-wrap: anywhere; }
.hero h1 > span { display: block; color: var(--text); }
.city-btn {
  display: inline-flex; align-items: center; gap: .15em; margin-top: .06em; padding: 0 .1em 0 0; background: none; border: 0; cursor: pointer;
  font: inherit; text-transform: inherit; color: var(--lamp-ink); text-align: left; max-width: 100%;
  text-decoration: underline; text-decoration-thickness: .06em; text-underline-offset: .12em; text-decoration-color: color-mix(in srgb, var(--lamp-ink) 45%, transparent);
}
.city-btn span { overflow-wrap: anywhere; }
.city-btn svg { width: .5em; height: .5em; flex: 0 0 .5em; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.city-btn:hover { text-decoration-color: currentColor; }
.tagline { margin: 14px 0 0; font-size: 1.05rem; color: var(--muted); max-width: 36ch; }
.locate { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.locate-note { margin: 0; font-size: .82rem; color: var(--faint); max-width: 44ch; }
.locate-note.warn { color: var(--lamp-ink); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 16px; border-radius: 12px;
  border: 1px solid transparent; font-weight: 600; text-decoration: none; cursor: pointer; line-height: 1.15; text-align: center;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; flex: 0 0 18px; }
.btn.lamp { background: var(--lamp-bg); color: var(--on-lamp); }
.btn.lamp:hover { filter: brightness(1.06); }
.btn.ghost { background: var(--card); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--lamp); }
.btn.small { min-height: 34px; padding: 6px 12px; font-size: .88rem; border-radius: 10px; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; padding: 4px; color: var(--lamp-ink); text-decoration: underline; cursor: pointer; }

/* ---------- controls: tabs as a transit line ---------- */
.controls { max-width: 760px; margin: 0 auto; padding: 18px 16px 6px; }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.tabs::before { content: ""; position: absolute; left: 16.6%; right: 16.6%; top: 13px; height: 4px; border-radius: 2px; background: var(--line); }
.tabs [role="tab"] {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 0 2px 8px; background: none; border: 0; cursor: pointer;
  color: var(--muted); font: 700 1.25rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; min-height: 44px; border-radius: 10px; text-align: center;
}
.tabs .stop { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 4px solid var(--line); transition: background .2s, border-color .2s, box-shadow .2s; }
.tabs [aria-selected="true"] { color: var(--text); }
.tabs [aria-selected="true"] .stop { background: var(--lamp-bg); border-color: var(--lamp-bg); box-shadow: 0 0 0 6px color-mix(in srgb, var(--lamp) 22%, transparent), 0 0 22px var(--lamp); }
.tab-n { font: 500 .75rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--faint); min-height: 1em; }
.filters { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500; align-self: flex-start; min-height: 32px; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 26px; border-radius: 13px; background: var(--card2); border: 1px solid var(--line); position: relative; transition: background .2s; flex: 0 0 44px; }
.switch .track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); transition: transform .2s, background .2s; }
.switch input:checked + .track { background: var(--free); border-color: var(--free); }
.switch input:checked + .track::after { transform: translateX(18px); background: var(--bg); }
.switch input:focus-visible + .track { outline: 3px solid var(--focus); outline-offset: 2px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px; padding-left: 16px; padding-right: 16px; scrollbar-width: thin; scroll-snap-type: x proximity; }
.chip {
  flex: 0 0 auto; scroll-snap-align: start; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 13px; cursor: pointer;
  font-size: .9rem; font-weight: 500; white-space: nowrap; min-height: 36px;
}
.chip small { color: var(--faint); margin-left: 4px; }
.chip[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip[aria-pressed="true"] small { color: inherit; opacity: .75; }

/* ---------- status + list ---------- */
.status { max-width: 760px; margin: 0 auto; padding: 4px 16px; color: var(--faint); font-size: .85rem; min-height: 1.5em; }
.status.warn { color: var(--lamp-ink); }
.route { max-width: 760px; margin: 0 auto; padding: 6px 16px 30px; outline: none; }
.day-sign {
  display: inline-flex; align-items: baseline; gap: 8px; margin: 22px 0 12px; padding: 6px 12px 5px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line);
  font: 800 1.2rem/1 var(--display); text-transform: uppercase; letter-spacing: .06em;
}
.day-sign small { font: 500 .78rem/1 var(--sans); letter-spacing: 0; text-transform: none; color: var(--faint); }
.day-sign:first-child { margin-top: 6px; }
.stops { list-style: none; margin: 0; padding: 0; position: relative; }
.stops::before { content: ""; position: absolute; left: 25px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: repeating-linear-gradient(var(--line) 0 10px, transparent 10px 16px); }
.stop-item { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 10px; margin: 0 0 18px; }
.when { position: relative; display: flex; flex-direction: column; align-items: center; padding-top: 4px; }
.when .dot { width: 16px; height: 16px; border-radius: 50%; background: var(--lamp-bg); box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--lamp); }
.when time { margin-top: 8px; font: 800 1.2rem/1 var(--display); letter-spacing: .02em; background: var(--bg); padding: 2px 0; text-align: center; }
.when .ends { font-size: .7rem; color: var(--faint); background: var(--bg); text-align: center; line-height: 1.2; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.cover { position: relative; aspect-ratio: 16 / 10; background: var(--card2); overflow: hidden; }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .badges { position: absolute; left: 10px; top: 10px; right: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 6px; font: 700 .9rem/1.1 var(--display); letter-spacing: .06em; text-transform: uppercase; }
.badge.free { background: #0e3b33; color: #9ff0de; }
.badge.price { background: #2b1d05; color: #ffd28a; }
.badge.cat { background: rgba(11, 19, 36, .82); color: #eef1f8; }
.badge.live { background: var(--lamp-bg); color: var(--on-lamp); }
.card-body { padding: 14px 16px 16px; }
.card h3 { font-size: 1.6rem; line-height: 1.02; text-transform: none; letter-spacing: .005em; overflow-wrap: anywhere; }
.card h3 button { all: unset; cursor: pointer; }
.card h3 button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.venue { display: flex; align-items: flex-start; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: .92rem; }
.venue svg { width: 16px; height: 16px; flex: 0 0 16px; margin-top: 3px; fill: none; stroke: currentColor; stroke-width: 2; }
.desc { margin: 10px 0 0; color: var(--muted); font-size: .95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tips { margin: 14px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--card2); background: color-mix(in srgb, var(--lamp) 10%, var(--card)); border-left: 4px solid var(--lamp); }
.tips h4 { margin: 0 0 6px; font: 800 1rem/1 var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--lamp-ink); }
.tips ul { margin: 0; padding: 0; list-style: none; }
.tips li { position: relative; padding-left: 16px; font-size: .9rem; line-height: 1.4; }
.tips li + li { margin-top: 4px; }
.tips li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--lamp); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.actions .btn { flex: 1 1 auto; }
.actions .btn.lamp { flex-basis: 100%; }
.empty { text-align: center; padding: 34px 12px 20px; }
.empty .lamp-post { width: 84px; height: 110px; margin: 0 auto 10px; }
.empty .lamp-post .pole { stroke: var(--line); stroke-width: 5; fill: none; stroke-linecap: round; }
.empty .lamp-post .head { fill: var(--lamp); }
.empty .lamp-post .halo { fill: var(--lamp); opacity: .16; }
.empty h3 { font-size: 1.8rem; text-transform: uppercase; }
.empty p { color: var(--muted); margin: 8px auto 0; max-width: 36ch; }
.empty .btn { margin-top: 16px; }
.skeleton { height: 280px; border-radius: var(--r); background: linear-gradient(100deg, var(--card) 30%, var(--card2) 50%, var(--card) 70%); background-size: 300% 100%; animation: shimmer 1.4s linear infinite; margin: 8px 0 18px 64px; }
@keyframes shimmer { to { background-position: -150% 0; } }
.tz-note { color: var(--faint); font-size: .8rem; margin: 6px 0 0; }

/* ---------- how / cta / faq ---------- */
.how, .faq { max-width: 760px; margin: 0 auto; padding: 26px 16px; }
.how h2, .faq h2, .cta h2 { font-size: clamp(2rem, 8vw, 2.8rem); text-transform: uppercase; }
.how-steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 12px; }
.how-steps li { counter-increment: s; position: relative; padding: 14px 16px 14px 62px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.how-steps li::before {
  content: counter(s); position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; background: var(--bg); border: 3px solid var(--lamp); color: var(--lamp-ink); font: 800 1.15rem/1 var(--display);
}
@media (min-width: 700px) { .how-steps { grid-template-columns: 1fr 1fr; } }
.cta { padding: 10px 16px 20px; }
.cta-in {
  position: relative; overflow: hidden; max-width: 760px; margin: 0 auto; padding: 26px 20px 24px; border-radius: 22px;
  background: radial-gradient(120% 90% at 100% 0%, rgba(255, 181, 71, .28), transparent 55%), #0e1a33; color: #eef1f8; border: 1px solid #2a3b62;
}
.cta-in h2 { color: #fff; }
.cta-in p { color: #c5cee0; max-width: 52ch; margin: 12px 0 0; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-width: 160px; padding: 9px 16px 9px 12px; border-radius: 12px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .35); text-decoration: none;
}
.store:hover { border-color: #ffb547; }
.store svg { width: 26px; height: 26px; flex: 0 0 26px; fill: currentColor; }
.store small { display: block; font-size: .68rem; line-height: 1; opacity: .85; }
.store b { display: block; font-size: 1.12rem; line-height: 1.15; font-weight: 600; }
.cta-site { display: inline-block; margin-top: 14px; color: #ffc76e; font-weight: 600; }
.cta .store:focus-visible, .cta-site:focus-visible { outline-color: #ffd38a; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 14px 4px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 800 1.4rem/1 var(--display); color: var(--lamp-ink); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 4px 16px; color: var(--muted); }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); padding: 26px 16px 110px; font-size: .9rem; color: var(--muted); }
.foot > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.foot a { color: var(--text); font-weight: 500; }
.foot-made { margin-top: 0; }
.foot-made a { color: var(--lamp-ink); font-weight: 600; }
.foot-k { margin-top: 18px; margin-bottom: 8px; font: 800 1rem/1 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.family { list-style: none; margin-top: 0; margin-bottom: 0; padding: 0; display: grid; gap: 8px; }
.family li { overflow-wrap: anywhere; }
.family span { color: var(--muted); }
.family span::before { content: "— "; }
.foot-credit { margin-top: 18px; }
.foot-small { font-size: .8rem; color: var(--faint); margin-top: 8px; margin-bottom: 0; }

/* ---------- sticky CTA ---------- */
.sticky {
  position: fixed; left: 10px; right: 10px; bottom: max(10px, env(safe-area-inset-bottom)); z-index: 30; display: flex; align-items: center; gap: 8px;
  max-width: 560px; margin: 0 auto; padding: 8px 8px 8px 14px; border-radius: 16px; background: #0e1a33; color: #eef1f8; border: 1px solid #2a3b62; box-shadow: 0 10px 30px rgba(0, 0, 0, .4);
  animation: rise .35s ease-out;
}
.sticky[hidden] { display: none; }
.sticky-link { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 8px; color: #eef1f8; text-decoration: none; font-size: .88rem; font-weight: 500; line-height: 1.2; }
.sticky-dot { width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 10px #ffb547; }
.sticky .btn.lamp { flex: 0 0 auto; background: #ffb547; color: #1d1302; }
.sticky .icon-btn { background: transparent; border-color: #2a3b62; color: #eef1f8; flex: 0 0 auto; }
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }

/* ---------- dialogs ---------- */
.dlg {
  width: min(560px, calc(100% - 20px)); max-height: min(88vh, 900px); padding: 0; border: 1px solid var(--line); border-radius: 20px;
  background: var(--bg); color: var(--text); box-shadow: 0 24px 60px rgba(0, 0, 0, .5);
}
.dlg::backdrop { background: rgba(5, 9, 18, .7); backdrop-filter: blur(3px); }
.dlg[open] { animation: rise .25s ease-out; }
.dlg-head { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 14px 10px 18px; background: var(--bg); }
.dlg-head h2 { font-size: 1.9rem; text-transform: uppercase; }
.city-dlg { display: none; }
.city-dlg[open] { display: flex; flex-direction: column; }
.city-dlg .search { display: block; padding: 0 14px 10px; }
.city-dlg input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); padding: 0 14px; font-size: 1rem; }
.city-dlg #locBtn2 { margin: 0 14px 8px; width: calc(100% - 28px); }
.city-list { list-style: none; margin: 0; padding: 0 8px 12px; overflow-y: auto; flex: 1 1 auto; }
.city-list button {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 11px 12px; border: 0; background: none; border-radius: 10px; cursor: pointer; text-align: left;
}
.city-list button:hover { background: var(--card); }
.city-list button[aria-current="true"] { background: var(--card2); box-shadow: inset 3px 0 0 var(--lamp); }
.city-list b { font-weight: 600; }
.city-list .cc { color: var(--faint); font-size: .85rem; margin-left: 6px; font-weight: 400; }
.city-list .n { color: var(--muted); font-size: .82rem; white-space: nowrap; }
.city-list .none { padding: 16px 12px; color: var(--muted); }
.ev-dlg .cover { aspect-ratio: 16 / 10; }
.ev-dlg .card { border: 0; border-radius: 0; box-shadow: none; background: var(--bg); }
.ev-dlg .card-body { padding: 16px 18px 20px; }
.ev-dlg .card h3 { font-size: 2rem; }
.ev-dlg .desc { display: block; -webkit-line-clamp: unset; color: var(--text); }
.ev-dlg .meta { margin: 10px 0 0; color: var(--lamp-ink); font: 700 1.15rem/1.2 var(--display); letter-spacing: .04em; text-transform: uppercase; }
.ev-dlg .dlg-x { position: absolute; top: 10px; right: 10px; z-index: 3; background: rgba(11, 19, 36, .8); color: #fff; border-color: rgba(255, 255, 255, .25); }
.ev-dlg .gone { padding: 30px 20px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 90px; z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; max-width: calc(100% - 32px); transition: opacity .2s, transform .2s; overflow-wrap: anywhere;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 640px) {
  .hero-in { padding-top: 80px; padding-bottom: 30px; }
  .stop-item { grid-template-columns: 70px minmax(0, 1fr); gap: 14px; }
  .stops::before { left: 33px; }
  .when time { font-size: 1.45rem; }
  .card-body { padding: 16px 20px 20px; }
  .actions .btn.lamp { flex-basis: auto; }
  .filters { flex-direction: row; align-items: center; }
  .chips { margin: 0; padding-left: 2px; padding-right: 2px; }
}
@media (hover: hover) {
  .card { transition: transform .2s, border-color .2s; }
  .card:hover { border-color: color-mix(in srgb, var(--lamp) 50%, var(--line)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
