/* Shuttle-map mode — layout + map styling.
 * Loads after shared/brand.css + shared/components.css (tokens + chrome).
 * Accent discipline, as parade-routes: yellow marks the active CONTROL, the
 * shuttle's numbered stops and the you-are-here star; lime marks the live
 * shuttle (the bus and the live chip's dot, which turn gray and yellow once
 * stale); light purple marks places (result dots, the pinned place, the
 * walk to it); teal is the water; parking and the streetcar keep the print
 * map's blue and red signs; everything else stays in the purple family.
 *
 * Type sizes went up a step across the panel in the 2026-10 UX audit —
 * guests read this standing back from a 4K panel. */

body {
  display: flex;
  flex-direction: column;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(1200px 800px at 78% 30%, rgba(0, 166, 157, 0.10), transparent 65%),
    radial-gradient(900px 700px at 15% 85%, rgba(102, 45, 145, 0.16), transparent 60%),
    var(--mgw-bg-deep);
}

.mode-main {
  flex: 1;
  min-height: 0;
  display: flex;
  gap: clamp(16px, 1.6vw, 30px);
  padding: clamp(108px, 12vh, 150px) clamp(20px, 2vw, 40px) clamp(16px, 2vh, 28px);
}

/* ── Live chip (topbar, right) ──────────────────────────────────────────── */
.live-chip {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 1.1em;
  border-radius: var(--mgw-radius-pill);
  border: 1px solid var(--mgw-divider);
  background: rgba(20, 7, 32, 0.8);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--mgw-ink);
  white-space: nowrap;
}
.live-chip[hidden] { display: none; }
.live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--mgw-light-grey);
}
.live-chip[data-state="live"] { border-color: rgba(143, 199, 62, 0.5); }
.live-chip[data-state="live"] .live-dot { background: var(--mgw-lime); box-shadow: 0 0 0 4px rgba(143, 199, 62, 0.25); }
.live-chip[data-state="stale"] .live-dot { background: var(--mgw-yellow); }

/* ── Side panel ─────────────────────────────────────────────────────────── */
.side-panel {
  flex: 0 0 clamp(420px, 30vw, 640px);
  /* min-width 0 + the Back pill's max-width: a long "Back to <hotel>"
     ellipsizes instead of widening the panel over the map. */
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.2vh, 16px);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: none;
  border: 2px solid var(--mgw-divider);
  border-radius: var(--mgw-radius-pill);
  background: rgba(255, 255, 255, 0.07);
  transition: border-color 0.18s ease;
  cursor: text;
}
.search-box.is-focused { border-color: var(--mgw-yellow); }
.search-ico { width: 24px; height: 24px; margin-left: 20px; flex: none; color: var(--mgw-ink-dim); }
.search-box input {
  flex: 1;
  min-width: 0;
  height: 64px;
  padding: 0 12px;
  border: none;
  outline: none;
  background: transparent;
  color: var(--mgw-ink);
  font: inherit;
  font-size: 1.3rem;
  caret-color: transparent;
  cursor: text;
}
.search-box input::placeholder { color: var(--mgw-ink-faint); }
.search-clear {
  flex: none;
  width: 52px;
  height: 52px;
  margin-right: 6px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mgw-ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.search-clear[hidden] { display: none; }

.chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; flex: none; }
/* Six chips in two even rows of three: a free wrap left Parks alone on a
   second line, reading as an afterthought. */
.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 1.2em;
  border: 1px solid var(--mgw-divider);
  border-radius: var(--mgw-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mgw-ink);
  font: inherit;
  font-weight: 600;
  font-size: 1.15rem;
  cursor: pointer;
}
.chip.is-active { background: rgba(242, 178, 33, 0.16); border-color: var(--mgw-yellow); color: var(--mgw-yellow); }
/* "★ Near here": the you-are-here star's yellow, so the chip reads as the
   venue, not another category. */
.chip.is-near { gap: 0.45em; border-color: rgba(242, 178, 33, 0.55); }
.chip-star { color: var(--mgw-yellow); font-size: 1.1em; line-height: 1; }

/* The Near here view's filter pills (Eat & drink / Sights / Everything). */
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chip {
  min-height: 56px;
  padding: 0 1.2em;
  border: 1px solid var(--mgw-divider);
  border-radius: var(--mgw-radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--mgw-ink);
  font: inherit;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
}
.filter-chip.is-active { background: rgba(242, 178, 33, 0.16); border-color: var(--mgw-yellow); color: var(--mgw-yellow); }

.panel {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.3vh, 16px);
  padding: 24px 26px;
}

.panel-eyebrow {
  font-weight: 600;
  font-size: clamp(0.85rem, 0.9vw, 1rem);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mgw-yellow);
}
.panel-title {
  font-family: var(--mgw-font-display);
  font-weight: 900;
  font-size: clamp(1.5rem, 1.9vw, 2.2rem);
  line-height: 1.12;
}
.section-label {
  margin-top: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mgw-ink-faint);
}
.panel-lede { color: var(--mgw-ink-dim); font-size: 1.25rem; line-height: 1.45; }
/* A drop-off rule in force ("After 4 pm, the shuttle only drops off at…"). */
.dropoff-note {
  padding: 12px 16px;
  border-radius: var(--mgw-radius-md);
  border: 1px solid rgba(242, 178, 33, 0.45);
  background: rgba(242, 178, 33, 0.08);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.4;
}
.empty { color: var(--mgw-ink-dim); font-size: 1.25rem; line-height: 1.45; }

/* Numbered stop badge — the print map's gold disc. */
.stop-badge {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mgw-yellow);
  color: #2b0f3f;
  font-family: var(--mgw-font-heading);
  font-weight: 900;
  font-size: 1.3rem;
  box-shadow: 0 0 0 3px rgba(43, 15, 63, 0.9);
}
.stop-badge.is-small { width: 34px; height: 34px; font-size: 1.05rem; }
.stop-badge.is-large { width: 62px; height: 62px; font-size: 1.75rem; }
.stop-badge.is-home { background: var(--mgw-ink); color: var(--mgw-purple); }

.stop-list, .result-list { display: flex; flex-direction: column; gap: 6px; }
.stop-row, .result-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: var(--mgw-radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--mgw-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
/* A stop the shuttle isn't dropping off at right now: the stop dims, but
   the reason ("No drop-off after 4 pm") stays at full strength. */
.stop-row.is-closed .stop-badge,
.stop-row.is-closed .stop-row-name,
.stop-row.is-closed .stop-tags { opacity: 0.5; }
.stop-row-addr.is-closed-note { color: var(--mgw-yellow); font-weight: 600; }
@media (hover: hover) {
  .stop-row:hover, .result-row:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.14); }
}
.stop-row:active, .result-row:active { background: rgba(242, 178, 33, 0.12); border-color: rgba(242, 178, 33, 0.5); }
.result-row.is-compact { min-height: 62px; }
.stop-row-text, .result-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.stop-row-name, .result-name { font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.stop-row-addr, .result-meta {
  font-size: 1.05rem;
  color: var(--mgw-ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.result-near { display: flex; align-items: center; gap: 8px; flex: none; font-size: 1.05rem; color: var(--mgw-ink-dim); }
.result-walk { flex: none; font-size: 1.05rem; color: var(--mgw-ink-dim); }
/* A place row's second line: its kind and tags. */
.result-sub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.result-sub .result-meta { min-width: 0; }

/* A stop's other searchable names ("Harrah's", "Four Seasons"). */
.stop-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.stop-tag {
  padding: 3px 11px;
  border-radius: var(--mgw-radius-pill);
  border: 1px solid rgba(158, 80, 157, 0.55);
  background: rgba(158, 80, 157, 0.18);
  color: var(--mgw-ink);
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
}

/* Back — a real pill in the instruction yellow, so the way out of a list or
   a card is the most obvious control on the panel. */
.card-back {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 0 24px 0 18px;
  border: 2px solid var(--mgw-instruction);
  border-radius: var(--mgw-radius-pill);
  background: rgba(242, 178, 33, 0.12);
  color: var(--mgw-instruction);
  font: inherit;
  font-family: var(--mgw-font-heading);
  font-weight: 700;
  font-size: 1.2rem;
  cursor: pointer;
  flex: none;
  max-width: 100%;
}
.card-back svg { width: 1.3em; height: 1.3em; flex: none; }
.card-back-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-back:active { background: rgba(242, 178, 33, 0.3); }
@media (hover: hover) { .card-back:hover { background: rgba(242, 178, 33, 0.2); } }

/* Cards */
.card-head { display: flex; align-items: center; gap: 16px; }
.card-titles { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.card-address { color: var(--mgw-ink-dim); font-size: 1.15rem; }
/* What the bake knows about a place: a one-liner and its tags. */
.card-blurb { font-size: 1.2rem; line-height: 1.45; color: var(--mgw-ink); }
.place-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  padding: 3px 11px;
  border-radius: var(--mgw-radius-pill);
  border: 1px solid rgba(158, 80, 157, 0.55);
  background: rgba(158, 80, 157, 0.18);
  color: var(--mgw-ink);
  font-size: 0.95rem;
  line-height: 1.35;
  white-space: nowrap;
}
/* Where the facts came from (Wikipedia text). */
.card-credit { font-size: 0.95rem; line-height: 1.4; color: var(--mgw-ink-faint); }
/* The venue card's way into the Near here view: the Back pill's look, pointing forward. */
.near-more { margin-top: 6px; padding: 0 24px; }

.closest {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  border-radius: var(--mgw-radius-md);
  border: 1px solid rgba(242, 178, 33, 0.45);
  background: rgba(242, 178, 33, 0.08);
}
.closest-row { display: flex; align-items: center; gap: 14px; }
.closest-titles { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.closest-label { font-size: 0.9rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mgw-yellow); }
.closest-name { font-family: var(--mgw-font-display); font-weight: 900; font-size: 1.55rem; line-height: 1.15; }
.closest-walk { font-weight: 600; font-size: 1.2rem; }
.closest-note { font-size: 1.1rem; color: var(--mgw-ink-dim); }
/* "After 4 pm, the shuttle doesn't drop off here": one headline, the time
   first and in yellow, behind a clock — not an eyebrow over the sentence. */
.closest.dropoff-closed { border-width: 2px; border-color: rgba(242, 178, 33, 0.7); }
.dropoff-closed-head { display: flex; align-items: flex-start; gap: 14px; }
.dropoff-clock { flex: none; width: 40px; height: 40px; margin-top: 2px; color: var(--mgw-yellow); }
.dropoff-when { color: var(--mgw-yellow); }

/* ── On-screen keyboard ─────────────────────────────────────────────────── */
.keyboard {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: var(--mgw-radius-lg);
  border: 1px solid var(--mgw-divider);
  background: rgba(20, 7, 32, 0.92);
  box-shadow: var(--mgw-shadow-md);
  user-select: none;
}
.keyboard[hidden] { display: none; }
.kb-row { display: flex; gap: 6px; justify-content: center; }
.kb-key {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mgw-ink);
  font: inherit;
  font-weight: 600;
  font-size: 1.15rem;
  touch-action: manipulation;
  cursor: pointer;
}
.kb-key:active { background: rgba(242, 178, 33, 0.35); }
.kb-wide { flex: 1.6; }
.kb-space { flex: 5; font-size: 0.95rem; color: var(--mgw-ink-dim); }
.kb-done { flex: 2; background: var(--mgw-yellow); color: #2b0f3f; }

/* ── Map stage (MapLibre GL) ────────────────────────────────────────────── */
.map-stage {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  border: 1px solid var(--mgw-divider);
  border-radius: var(--mgw-radius-lg);
  background: #4a1d6b;
  box-shadow: var(--mgw-shadow-md);
  overflow: hidden;
}
#map { position: absolute; inset: 0; }
#map .maplibregl-canvas { outline: none; }

/* Map credit (ODbL requires one): plain text, nothing to tap. */
.map-credit {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: 4px 12px;
  border-radius: 10px 0 0 0;
  background: rgba(20, 7, 32, 0.75);
  color: var(--mgw-ink-faint);
  font-size: 12px;
  pointer-events: none;
}

/* Rider notes: their own box over the map's right edge while the stop list
   is up, with no heading. app.js's fitPadding keeps the stops clear. */
.rider-notes {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  width: clamp(300px, 24vw, 520px);
  max-height: calc(100% - 70px);
  overflow-y: auto;
  padding: 22px 26px 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--mgw-radius-lg);
  background: rgba(20, 7, 32, 0.92);
  box-shadow: var(--mgw-shadow-md);
}
.rider-notes[hidden] { display: none; }
.notes {
  padding-left: 1.1em;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: clamp(1rem, 0.95vw, 1.25rem);
  line-height: 1.4;
  color: var(--mgw-ink);
}
.notes li::marker { color: var(--mgw-yellow); }
/* Bold and italic from shuttle-admin's Rider notes editor. */
.notes strong { font-weight: 700; }
.notes em { font-style: italic; }

.map-overview-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid var(--mgw-divider);
  border-radius: var(--mgw-radius-pill);
  background: rgba(20, 7, 32, 0.88);
  color: var(--mgw-instruction);
  font: inherit;
  font-family: var(--mgw-font-heading);
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: var(--mgw-shadow-md);
}
.map-overview-btn[hidden] { display: none; }

/* Map markers. MapLibre centers each marker's BOX on its coordinate, so
   every box below is exactly its dot (disc, pin, star, icon) and any label
   is positioned absolutely off it. A label inside the box would shift the
   dot off the real location by half the label's width. The roots must keep
   MapLibre's own position: absolute (.maplibregl-marker) — it's also what
   the labels position against; a `position: relative` here would drop the
   markers into document flow, stacked one below the next. */

/* Numbered stop marker: gold disc + a quiet name tag, right of the disc
   unless app.js's placeStopLabels moves it left (.label-left) or drops it
   (.label-none) to keep clear of a neighboring stop. */
.map-stop {
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.map-stop-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--mgw-yellow);
  color: #2b0f3f;
  font-family: var(--mgw-font-heading);
  font-weight: 900;
  font-size: 1rem;
  box-shadow: 0 0 0 3px #2b0f3f, 0 3px 10px rgba(0, 0, 0, 0.5);
}
.map-stop-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 10px);
  transform: translateY(-50%);
  padding: 3px 10px;
  border-radius: var(--mgw-radius-pill);
  background: rgba(43, 15, 63, 0.88);
  color: var(--mgw-ink);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}
.map-stop.is-active { z-index: 3; }
.map-stop.is-active .map-stop-num { transform: scale(1.25); box-shadow: 0 0 0 3px #2b0f3f, 0 0 0 8px rgba(242, 178, 33, 0.45); }
.map-stop.is-active .map-stop-label { background: var(--mgw-yellow); color: #2b0f3f; }
.map-stop.label-left .map-stop-label { left: auto; right: calc(100% + 10px); }
.map-stop.label-none .map-stop-label { visibility: hidden; }
.map-stop.is-dim { opacity: 0.55; }
.map-stop.is-dim .map-stop-label { display: none; }
/* Its row in the panel is pointed at (app.js hoverLinksStop): lit up and
   named whatever the label placement or a drop-off rule says. */
.map-stop.is-hover { z-index: 4; opacity: 1; }
.map-stop.is-hover .map-stop-num { transform: scale(1.35); box-shadow: 0 0 0 3px #2b0f3f, 0 0 0 10px rgba(242, 178, 33, 0.6); }
.map-stop.is-hover .map-stop-label { display: block; visibility: visible; background: var(--mgw-yellow); color: #2b0f3f; }

/* Searched place: light-purple dot with its name above. */
.map-place { width: 24px; height: 24px; }
.map-place-label {
  position: absolute;
  bottom: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 340px;
  padding: 5px 14px;
  border-radius: var(--mgw-radius-pill);
  background: var(--mgw-light-purple);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}
.map-place-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--mgw-light-purple);
  border: 3px solid #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* Parking / streetcar wayfinding — tappable, like "You are here": each
   opens a card of what's around it (app.js renderFixedCard). */
.map-poi, .map-you-are-here {
  padding: 0;
  border: none;
  background: none;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.map-poi { width: 28px; height: 28px; }
.map-poi.is-active { z-index: 3; }
.map-poi.is-active .map-poi-icon { transform: scale(1.2); box-shadow: 0 0 0 2px #fff, 0 0 0 8px rgba(242, 178, 33, 0.55); }
.map-poi.is-active .map-poi-label { background: var(--mgw-yellow); color: #2b0f3f; }
.map-poi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #1e5aa8;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  box-shadow: 0 0 0 2px #fff;
}
.map-poi.is-streetcar .map-poi-icon { background: #c8102e; border-radius: 50%; }
.map-poi-label {
  position: absolute;
  top: 50%;
  left: calc(100% + 6px);
  transform: translateY(-50%);
  padding: 2px 8px;
  border-radius: var(--mgw-radius-pill);
  background: rgba(43, 15, 63, 0.85);
  color: var(--mgw-ink);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* "You are here" — Mardi Gras World, with the print map's star. */
.map-you-are-here { width: 30px; height: 30px; }
.map-you-are-here.is-active { z-index: 3; }
.map-you-are-here.is-active .map-here-star { transform: scale(1.3); }
.map-you-are-here.is-active .map-here-pill { background: var(--mgw-yellow); }
.map-you-are-here.is-active .map-here-title,
.map-you-are-here.is-active .map-here-sub { color: #2b0f3f; }
.map-here-pill {
  position: absolute;
  bottom: calc(100% + 5px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 6px 16px;
  border-radius: var(--mgw-radius-pill);
  background: rgba(16, 8, 28, 0.94);
  border: 1.5px solid var(--mgw-yellow);
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.55);
}
.map-here-title { color: var(--mgw-yellow); font-size: 14px; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; }
.map-here-sub { color: var(--mgw-ink); font-size: 16px; font-weight: 600; margin-top: 1px; }
.map-here-star {
  width: 30px;
  height: 30px;
  background: var(--mgw-yellow);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

/* The live shuttle. No looping animation (the map renders on demand; see the
   GPU note in app.js): freshness is shown by color, heading by a static
   arrow. */
.map-bus { width: 46px; height: 46px; }
.map-bus-body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--mgw-lime);
  color: #1b2a08;
  border: 3px solid #fff;
  box-shadow: 0 0 0 6px rgba(143, 199, 62, 0.35), 0 4px 14px rgba(0, 0, 0, 0.6);
}
.map-bus-body svg { width: 26px; height: 26px; }
.map-bus-heading {
  position: absolute;
  top: 0;
  left: 50%;
  width: 46px;
  height: 46px;
  margin-left: -23px;
}
.map-bus-heading[hidden] { display: none; }
.map-bus-heading::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  margin-left: -9px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 12px solid #fff;
}
.map-bus-label {
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 2px 10px;
  border-radius: var(--mgw-radius-pill);
  background: rgba(27, 42, 8, 0.9);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.map-bus.is-stale .map-bus-body { background: var(--mgw-light-grey); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.6); }

.map-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  text-align: center;
  font-size: 1.2rem;
  color: var(--mgw-ink-dim);
  background: var(--mgw-bg-deep);
}

/* ── Preview (hero capture): chromeless full-bleed map ──────────────────── */
body.is-preview .mgw-topbar,
body.is-preview .side-panel { display: none; }
body.is-preview .mode-main { padding: 0; }
body.is-preview .map-stage { border: none; border-radius: 0; box-shadow: none; }
