/* Sobat Transum v55 — professional, consistent map controls.
   Scope to the map toolbar. Preserve its existing event handlers and map layers. */
.map-shell > .map-controls {
  top: 92px;
  right: 16px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 44px;
}
.map-shell > .map-controls .map-control-group {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #ffffffef;
  border: 1px solid #dce5ed;
  border-radius: 14px;
  box-shadow: 0 5px 18px #1020521b, 0 1px 3px #1020520c;
  -webkit-backdrop-filter: blur(12px) saturate(1.18);
  backdrop-filter: blur(12px) saturate(1.18);
}
.map-shell > .map-controls .map-control-group button,
.map-shell > .map-controls .map-control-group #locateMe,
.map-shell > .map-controls .map-control-group #nearbyStopsToggle {
  display: grid;
  place-items: center;
  flex: none;
  gap: 0;
  padding: 0;
  margin: 0;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  border: 0;
  border-radius: 0;
  color: #344e69;
  background: transparent;
  box-shadow: none;
  font-size: 16px;
  line-height: 1;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: background-color .18s ease, color .18s ease, transform .18s ease;
}
.map-shell > .map-controls .map-control-group button + button {
  border-top: 1px solid #e5edf4;
}
.map-shell > .map-controls .map-control-group svg,
.map-shell > .map-controls .map-control-group #locateMe svg,
.map-shell > .map-controls .map-control-group #nearbyStopsToggle svg {
  display: block;
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.map-shell > .map-controls .map-control-group button:hover:not(:disabled) {
  background: #edf5ff;
  color: #125caa;
  transform: none;
}
.map-shell > .map-controls .map-control-group button:active:not(:disabled) {
  background: #dfeeff;
  transform: scale(.96);
}
.map-shell > .map-controls .map-control-group button:focus-visible {
  outline: 3px solid #158cf0 !important;
  outline-offset: -3px !important;
  box-shadow: none !important;
  z-index: 1;
}
.map-shell > .map-controls .map-control-group #layerToggle[aria-expanded="true"],
.map-shell > .map-controls .map-control-group #nearbyStopsToggle[aria-expanded="true"],
.map-shell > .map-controls .map-control-group #nearbyStopsToggle.is-active,
.map-shell > .map-controls .map-control-group #locateMe[data-location-state="active"] {
  color: #1264ba;
  background: #e5f1ff;
  box-shadow: inset 0 0 0 1px #9cc9fa;
}
.map-shell > .map-controls .map-control-group #locateMe[data-location-state="loading"] {
  color: #1264ba;
  background: #e5f1ff;
  box-shadow: none;
}
.map-shell > .map-controls .map-control-group #locateMe[data-location-state="error"] {
  color: #b14343;
  background: #fff0ed;
  box-shadow: none;
}
.map-shell .map-top .weather {
  height: 32px;
  padding: 0 11px;
  gap: 6px;
  border: 1px solid #e0e9f0;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: .01em;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 4px 14px #10205212;
}
.map-shell .map-top .map-clock-icon {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group {
  background: #192d45f5;
  border-color: #375069;
  box-shadow: 0 5px 18px #020a175c;
}
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group button,
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #locateMe,
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #nearbyStopsToggle {
  color: #d9e8f8;
  background: transparent;
  box-shadow: none;
}
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group button + button { border-top-color: #385069; }
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group button:hover:not(:disabled) {
  color: #c2e3ff;
  background: #284460;
}
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #layerToggle[aria-expanded="true"],
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #nearbyStopsToggle[aria-expanded="true"],
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #nearbyStopsToggle.is-active,
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #locateMe[data-location-state="active"],
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #locateMe[data-location-state="loading"] {
  color: #c2e3ff;
  background: #254769;
  box-shadow: inset 0 0 0 1px #4d82b7;
}
:root[data-theme="dark"] .app .map-shell > .map-controls .map-control-group #locateMe[data-location-state="error"] {
  color: #ffbeb8;
  background: #542f3b;
}
:root[data-theme="dark"] .app .map-shell .map-top .weather { border-color: #3a526a; }
@media (max-width: 820px) {
  .map-shell > .map-controls { top: 61px; right: 12px; }
  .map-shell .map-top .weather { font-size: 10px; }
}
@media (max-height: 620px) and (max-width: 820px) {
  .map-shell > .map-controls { gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .map-shell > .map-controls .map-control-group button { transition: none !important; }
  .map-shell > .map-controls .map-control-group button:active { transform: none !important; }
}
