.map-panel .fleet-layer { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.fleet-pin { position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; justify-content: center; gap: 2px;
  min-width: 27px; height: 23px; padding: 0 5px; border: 1.5px solid #fff9db; border-radius: 5px; background: var(--bus, #185c56);
  color: white; font: 700 11px/1 system-ui, sans-serif; letter-spacing: 0; pointer-events: auto; cursor: pointer;
  box-shadow: 0 1px 4px #231b0860; user-select: none; white-space: nowrap; }
.fleet-pin[data-mode="tram"] { background: var(--tram, #914327); }
.fleet-pin[data-mode="trolleybus"] { background: #385677; }
.fleet-pin[data-mode="cluster"] { background: #514526; border-radius: 12px; min-width: 28px; }
.fleet-pin[data-heading="true"]::before { content:""; position:absolute; left:50%; top:50%; width:0; height:0;
  border-left:3px solid transparent; border-right:3px solid transparent; border-bottom:6px solid #302c22;
  filter:drop-shadow(0 0 1px #fffaf0); transform:translate(-50%,-50%) rotate(var(--vehicle-heading)) translateY(-16px); }
.fleet-pin[data-active="true"], .fleet-pin:focus-visible { outline: 3px solid #bf8629; outline-offset: 2px; z-index: 1; }
.fleet-pin[data-active="true"] { background: #352811; color: #fff2bf; }
.fleet-pin[data-stale="true"] { opacity: 0.6; filter: grayscale(0.55); border-color: #8a7e66; }
.fleet-pin::after { content: ""; position: absolute; inset: -5px -3px; }
.map-panel[data-picking="true"] canvas { cursor: crosshair; outline: 2px solid #a67528; outline-offset: -2px; }
.map-panel[data-picking="true"] .fleet-pin { pointer-events: none; }
.map-panel canvas:focus-visible { outline: 3px solid #a67528; outline-offset: -3px; }
.fleet-popup { position: absolute; z-index: 4; left: 12px; bottom: 38px; max-width: min(88%, 290px);
  max-height: 50%; overflow: auto; padding: 10px 12px; color: #332b20; background: #fffaf0;
  border: 1px solid #c7b287; border-radius: 10px; box-shadow: 0 4px 18px #3328102b; font: 13px/1.4 system-ui, sans-serif; }
.fleet-popup-header { display:flex; align-items:center; gap:8px; justify-content:space-between; }
.fleet-popup-header strong { font-size:14px; }
.fleet-popup .fleet-close { width: 31px; height: 31px; flex-shrink: 0; padding: 0; border: 0; background: transparent; color: #493a24; font-size: 21px; }
.fleet-popup small { display: block; color: #605648; margin: 2px 0; }
.fleet-popup .fleet-choice { border: 0; border-top: 1px solid #dfd5bf; background: transparent; padding: 8px 0; color: #392e1e;
  display: block; width: 100%; text-align: left; font: inherit; }
.fleet-popup .fleet-choice:focus-visible, .fleet-popup .fleet-close:focus-visible { outline: 2px solid #a67528; }

/* --- Room B: merged map panel UI (status chip, collapse toggle, route pill, favourites strip) --- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); border: 0;
}
.status-chip {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  display: flex; align-items: center; gap: 7px; padding: 6px 10px;
  min-height: 44px; border-radius: 9px; background: rgba(20, 21, 16, 0.92); color: #fff;
  font: 650 .72rem/1.2 system-ui, sans-serif; box-shadow: 0 1px 6px #231b0829;
}
.status-chip.collapsed { padding: 0; width: 44px; min-width: 44px; height: 44px; justify-content: center; align-items: center; }
.status-chip.collapsed .status-text { display: none; }
.status-chip:focus-visible { outline: 3px solid #a67528; outline-offset: -3px; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; box-shadow: 0 0 0 3px rgba(100, 161, 137, 0.35); }
.status-chip.collapsed .status-dot { width: 44px; height: 44px; padding: 0; }
.status-chip[data-state="online"] .status-dot { background: #64a189; }
.status-chip[data-state="limited"] .status-dot, .status-chip[data-state="offline"] .status-dot { background: #d6aa67; }
.status-chip[data-state="demo"] .status-dot { background: #d6bd7f; }
.collapse-toggle {
  position: absolute; top: 10px; right: 10px; z-index: 3;
  width: 44px; height: 44px; min-width: 44px; min-height: 44px;
  border: 1px solid #bfb9a6; border-radius: 8px; background: #ded8c8;
  color: var(--ink); font-size: 1.25rem; display: grid; place-items: center;
}
.collapse-toggle[aria-pressed="true"] { background: var(--night); color: #fff; border-color: transparent; }
.collapse-toggle:focus-visible { outline: 3px solid #a67528; outline-offset: -3px; }
.route-pill {
  position: absolute; bottom: 78px; left: 50%; z-index: 3;
  display: flex; align-items: center; gap: 8px; padding: 7px 12px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--card);
  box-shadow: 0 2px 9px #231b0829;
  font: 620 .82rem/1.2 system-ui, sans-serif; color: var(--ink);
  max-width: 92%; transform: translateX(-50%); overflow: hidden;
}
.route-pill .route-line { width: 20px; height: 3px; border-radius: 2px; background: #fffaf0; box-shadow: 0 0 0 2px #263e4a; flex-shrink: 0; }
.route-pill:focus-visible { outline: 3px solid #a67528; outline-offset: -3px; }
.fav-strip {
  position: absolute; bottom: 12px; left: 50%; z-index: 3;
  display: flex; gap: 6px; flex-wrap: wrap; justify-content: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--card);
  padding: 3px; box-shadow: 0 2px 9px #231b0829; transform: translateX(-50%);
}
.fav-strip button {
  min-height: 44px; min-width: 44px; padding: 0 12px; border: 0;
  border-radius: 999px; background: transparent; color: var(--ink);
  font: 650 .8rem/1 system-ui, sans-serif;
}
.fav-strip button[aria-pressed="true"] { background: var(--night); color: var(--card); }
.fav-strip button:focus-visible { outline: 3px solid #a67528; outline-offset: -3px; }
.fav-strip button:hover { background: var(--gold-pale); }
/* The merged chip replaces the split topbar dot + map-status text. */
.city i { display: none; }
.map-status { display: none !important; }
/* Zoom controls move below the collapse toggle so the top-right corner stays uncluttered. */
.map-controls { top: 64px; right: 12px; }
@media (min-width: 900px) {
  .map-controls { top: 64px; right: 16px; }
  .collapse-toggle { top: 16px; right: 16px; }
  .status-chip { top: 16px; left: 16px; }
  .route-pill { bottom: 90px; }
  .fav-strip { bottom: 18px; }
}
@media (max-width: 360px) {
  .route-pill { bottom: 70px; font-size: .78rem; }
  .fav-strip { bottom: 8px; }
  .collapse-toggle { top: 8px; right: 8px; }
  .status-chip { top: 8px; left: 8px; }
}
