/* Tile-facing guidance is constant across themes; symbols retain the theme status inks. */
.station-map, .station-map-legend {
  --a-map-halo: #252a2e;
  --a-map-ring: #1e3a5f;
  --a-map-ring-casing: rgba(255,255,255,.7);
  --a-map-ring-soft: rgba(30,58,95,.14);
  --slippy-marker-bg: var(--a-raised, #fff);
}
.slippy-rings, .slippy-density { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.slippy-density { opacity: .5; }
.station-map .slippy-marker:not(.slippy-cluster):not(.slippy-marker-pin) {
  width: 28px; height: 28px; padding: 0; background: transparent; border: 0; box-shadow: none;
}
.station-map .slippy-symbol {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; flex: none; box-sizing: border-box;
  background: var(--slippy-marker-bg); border: 1px solid var(--slippy-marker-edge, rgba(0,0,0,.35));
  border-radius: 50% 50% 50% 4px; box-shadow: 0 0 0 2px var(--a-map-halo), 0 1px 3px rgba(0,0,0,.35);
}
.station-map .slippy-symbol > svg:first-child { width: 16px; height: 16px; }
.station-map .slippy-marker-tower .slippy-symbol { border-radius: 7px; }
.station-map .net-hollow .slippy-symbol { border: 2px dashed currentColor; }
.station-map[data-map-band="state"] .slippy-symbol { width: 20px; height: 20px; }
.station-map[data-map-band="state"] .slippy-symbol > svg:first-child { width: 12px; height: 12px; }
.station-map[data-map-band="state"] .slippy-symbol .slippy-badge { width: 9px; height: 9px; right: -4px; top: -4px; }
.station-map[data-map-band="country"] .slippy-symbol {
  width: 10px; height: 10px; background: currentColor; border: 0; border-radius: 50%;
  box-shadow: 0 0 0 1.5px var(--a-raised), 0 0 0 3px var(--a-map-halo);
}
.station-map[data-map-band="country"] .slippy-symbol > svg:first-child { display: none; }
.station-map[data-map-band="country"] .slippy-symbol .slippy-badge { width: 9px; height: 9px; inset: .5px; }
.station-map[data-map-band="country"] .net-hollow .slippy-symbol { width: 12px; height: 12px; border: 2px dashed currentColor; background: var(--a-raised); }
.station-map[data-map-band="country"] .net-hollow .slippy-badge { inset: -.5px; }
.station-map[data-map-band="country"] .slippy-caption { display: none; }
.station-map .slippy-marker:focus-visible {
  outline: 3px solid #1273b1; outline-offset: 4px;
  box-shadow: 0 0 0 2px #252a2e, 0 0 0 4px #fff;
}
.station-map .slippy-cluster {
  width: 28px; height: 28px; border: 3px solid transparent; border-radius: 50%;
  background: linear-gradient(var(--a-raised),var(--a-raised)) padding-box, var(--cluster-rim) border-box;
  color: var(--a-text); font: 700 12px/1 system-ui,sans-serif;
  box-shadow: 0 0 0 1.5px #252a2e;
}
.station-map .slippy-cluster .slippy-badge { width: 9px; height: 9px; color: #252a2e; top: -5px; right: -5px; }
.station-map[data-map-band="country"] .slippy-cluster { width: 24px; height: 24px; font-size: 11px; }
.station-map .net-leg { stroke: #252a2e; stroke-width: 1; stroke-opacity: .45; stroke-linecap: round; }
.station-ring, .ring-swatch path { fill: none; pointer-events: none; vector-effect: non-scaling-stroke; }
.ring-soft { stroke: var(--a-map-ring-soft); stroke-width: 8; }
.ring-casing { stroke: var(--a-map-ring-casing); stroke-width: 4; }
.ring-stroke { stroke: var(--a-map-ring); stroke-width: 2; }
.ring-casing.ring-warning { stroke-width: 3.5; }
.ring-stroke.ring-warning { stroke-width: 1.5; }
.ring-stroke.ring-test { stroke-dasharray: 6 4; }
.station-map-legend { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; gap: 4px 16px; color: var(--a-text-2); font-size: var(--a-fs-12,12px); }
.station-map-legend li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.station-map-legend .ring-note, .station-map-legend .ring-zoom { flex-basis: 100%; }
.ring-swatch { flex: none; width: 28px; height: 16px; background: #f1f1f1; border: 1px solid var(--a-border-strong); border-radius: 3px; }
.station-map-legend[hidden], .station-map-legend [hidden] { display: none; }
.current-station-map { min-height: 280px; height: 400px; border-radius: var(--a-r-2); border: 1px solid var(--a-border); }
@media (pointer: coarse) {
  .station-map .slippy-marker:not(.slippy-marker-pin), .station-map .slippy-cluster { min-width: 32px; min-height: 32px; }
}

.current-preview-marker { color: var(--a-text-2); }
.current-preview-marker.status-green { color: var(--a-ok); }
.current-preview-marker.status-yellow { color: var(--a-warn); }
.current-preview-marker.status-red { color: var(--a-bad); }
.current-preview-marker > rect { fill: var(--a-raised); stroke: currentColor; stroke-width: 1; }

.preview-density.status-green { fill: url(#preview-density-green); }
.preview-density.status-yellow { fill: url(#preview-density-yellow); }
.preview-density.status-red { fill: url(#preview-density-red); }
.preview-cluster-ground { fill: var(--a-raised); stroke: #252a2e; stroke-width: 1.5; }
.preview-cluster-rim { fill: none; stroke-width: 3; }
.preview-cluster-rim.status-green { stroke: #006638; }
.preview-cluster-rim.status-yellow { stroke: #9a5b00; }
.preview-cluster-rim.status-red { stroke: #ab1f26; }
.preview-cluster-rim.status-neutral { stroke: #59636c; }
.stn-prev-cluster text { font: 700 11px system-ui,sans-serif; fill: var(--a-text); }

.station-map .slippy-marker.is-open .slippy-symbol { box-shadow: 0 0 0 2px #252a2e, 0 0 0 5px #1273b1; }

.preview-density.status-neutral { fill: url(#preview-density-neutral); }
