:root {
    --bg-top: #f6f4ed;
    --bg-bottom: #f6f4ed;
    --ink: #252b30;
    --muted: #636970;
    --line: #dddcd5;
    --glass: #fffefa;
    --glass-strong: #fffefa;
    --shadow: 0 16px 40px rgba(37, 43, 48, .05);
    --brand: #303b44;
    --healthy: #216b4b;
    --warning: #98550b;
    --critical: #b73835;
    --unknown: #636970;
}
body { background: var(--bg-top); }
a:focus-visible, button:focus-visible, select:focus-visible, input:focus-visible,
.leaflet-marker-icon:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.hero, .parkings, .footer-card { backdrop-filter: none; -webkit-backdrop-filter: none; }
.hero { border-radius: 22px; padding: 26px; }
.hero-top { margin-bottom: 18px; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.08; }
.hero-brand .brand-mark { width: 80px; height: 52px; border-radius: 9px; box-shadow: none; object-fit: cover; }
.home-link, .view-switch, .card-actions a, .source-note a { background: var(--glass-strong); border-color: var(--line); }
.hero-stats { gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 14px; }
.view-switch button.is-active { background: var(--brand); color: #fffefa; }
.parkings { border-radius: 22px; }
.card { background: #fffefa; border: 1px solid var(--line); border-radius: 16px; }
.card.is-highlighted { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: #f0f2f3; }
.status-pill { background: #f0efea; font-size: .8rem; }
.parking-address, .status-message, .prediction-note { font-size: .82rem; line-height: 1.45; }
.progress span { background: var(--accent); }
.data-explainer { border: 1px solid var(--line); background: #f0efea; border-radius: 12px; }
.map-shell { grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); gap: 14px; }
.map-frame, .map-list { border: 1px solid var(--line); border-radius: 16px; background: #fffefa; }
.map-frame { position: sticky; top: 16px; }
.map-list { height: 620px; min-height: 0; padding: 8px; }
.map-list-card { border-radius: 10px; border: 1px solid transparent; }
.map-list-card:hover, .map-list-card.is-active { background: #edf0f2; border-color: var(--line); transform: none; }
.map-list-card.is-active { border-color: var(--brand); }
.map-list-count { font-size: 1.1rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.map-list-status { font-size: .8rem; color: var(--muted); margin: 7px 0; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .82rem; color: var(--muted); margin: 0 0 14px; }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--legend-color); }
/* Desaturate the tiles only: parking signals, labels and controls retain their contrast. */
.atlas-tiles { filter: saturate(.22) brightness(1.04); }
.atlas-marker { background: transparent; border: 0; }
.atlas-marker-label { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 8px; background: var(--marker-color); color: #fffefa; border: 2px solid #fffefa; box-shadow: 0 2px 9px rgba(37,43,48,.25); font: 600 13px/1.2 "Segoe UI", sans-serif; white-space: nowrap; font-variant-numeric: tabular-nums; transform: translateX(-50%); }
.atlas-marker-symbol { font-size: 11px; opacity: .9; }
.atlas-marker.is-compact .atlas-marker-label { padding: 5px 7px; border-radius: 50%; }
.atlas-marker.is-compact .atlas-marker-count { display: none; }
.atlas-marker:focus .atlas-marker-count, .atlas-marker:hover .atlas-marker-count { display: inline; }
.atlas-marker:focus .atlas-marker-label, .atlas-marker:hover .atlas-marker-label { border-radius: 8px; }
.leaflet-popup-content-wrapper, .leaflet-popup-tip { background: #fffefa; color: var(--ink); }
.map-popup { font: 14px/1.5 "Segoe UI", sans-serif; }
.map-popup > strong { display: block; margin-bottom: 8px; }
.map-popup a { display: block; margin-top: 9px; color: var(--brand); }
@media (max-width: 900px) {
    .map-shell { grid-template-columns: 1fr; }
    .map-frame { position: static; }
    .map-list { min-height: 0; height: auto; overflow: visible; }
}
@media (max-width: 640px) {
    .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .metric { padding: 12px 9px; }
    .metric .subtle { font-size: .75rem; overflow-wrap: anywhere; }
    .metric strong { font-size: 1.45rem; }
    .hero-top { margin-bottom: 16px; }
    .map-frame, #parking-map { height: 390px; min-height: 390px; }
    .map-list-top { flex-wrap: wrap; }
    .card-meta span { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
