/* Palette fitted to the Government of Ontario digital palette (designsystem.ontario.ca: system
   black #1A1A1A, greyscale, link blue #0066CC, focus #009ADB, success #118847, alert #CD0000),
   used as an independent site: light header, no Ontario marks, its own type (Fraunces, Inter).
   Polish follows the Quiet Couch app: soft shadows, round pins, card popups.
   All text colours meet WCAG AA on --panel and --bg. */
:root {
  --bg: #f2f2f2;
  --panel: #ffffff;
  --panel-2: #e8e8e8;
  --text: #1a1a1a;
  --muted: #4d4d4d;
  --subtle: #666666;
  --line: rgba(26, 26, 26, 0.12);
  --line-strong: #cccccc;
  --ink: #1a1a1a;
  --ink-on: #ffffff;
  --accent: #0066cc;
  --accent-hover: #00478f;
  --accent-active: #002142;
  --accent-ink: #ffffff;
  --accent-soft: #e0f0ff;
  --good: #118847;
  --good-soft: #e5f0e9;
  --warn: #7a5f12;
  --warn-soft: #fef6dc;
  --bad: #cd0000;
  --bad-soft: #fceff0;
  --link: #0066cc;
  --link-hover: #00478f;
  --focus: #009adb;
  --score-high: #118847;
  --score-medium: #7a5f12;
  --score-low: #9a5520;
  --score-gone: #cd0000;
  --shadow: 0 1px 2px rgba(26, 26, 26, 0.06), 0 8px 24px rgba(26, 26, 26, 0.06);
  --shadow-pop: 0 6px 28px rgba(26, 26, 26, 0.22);
  --radius: 12px;
  --radius-lg: 16px;
  --tap: 44px;
  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121212;
    --panel: #1e1e1e;
    --panel-2: #2b2b2b;
    --text: #f2f2f2;
    --muted: #c2c2c2;
    --subtle: #a6a6a6;
    --line: rgba(255, 255, 255, 0.12);
    --line-strong: #4d4d4d;
    --ink: #f2f2f2;
    --ink-on: #1a1a1a;
    --accent: #0066cc;
    --accent-hover: #1a7ad9;
    --accent-active: #00478f;
    --accent-soft: #10263d;
    --good: #5cc08a;
    --good-soft: #15291e;
    --warn: #e3bd55;
    --warn-soft: #2e2710;
    --bad: #ff8a80;
    --bad-soft: #351717;
    --link: #66b2ff;
    --link-hover: #99ccff;
    --focus: #33b5f0;
    --score-high: #5cc08a;
    --score-medium: #e3bd55;
    --score-low: #eba06a;
    --score-gone: #ff8a80;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-pop: 0 6px 28px rgba(0, 0, 0, 0.6);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; max-width: 100%; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}
.num, .score-num, .distance, .score-label { font-variant-numeric: tabular-nums; }

/* ---------- header: a light bar with the site's own mark, never an official-looking one ---------- */
.brandbar { padding: 14px 16px 6px; padding-top: max(14px, env(safe-area-inset-top)); background: var(--panel); }
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { flex: none; width: 30px; height: 30px; color: var(--accent); }
.brand-text { min-width: 0; }
.brand-name { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.3px; line-height: 1.15; }
.brand-sub { font-size: 14px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.independent {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 3px 10px 3px 8px;
  font-size: 12.5px; font-weight: 500; line-height: 1.35; color: var(--muted);
  border: 1px solid var(--line-strong); border-radius: 999px;
}
.independent svg { width: 14px; height: 14px; flex: none; color: var(--subtle); }

/* ---------- sticky search bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 1000;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  padding: 8px 16px 12px;
}
.search { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.search-row, .filter-row, .select-wrap { min-width: 0; }
.search-row { display: flex; gap: 8px; }
#q {
  flex: 1 1 0; width: 0; min-width: 0; height: 48px; padding: 0 16px;
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--panel); border: 1px solid var(--line-strong); border-radius: var(--radius);
}
#q::placeholder { color: var(--subtle); }
#q:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 2px var(--focus); }
.filter-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 16px;
  font: inherit; font-size: 15px; font-weight: 500; text-decoration: none;
  border-radius: var(--radius); border: 1px solid transparent; cursor: pointer;
  white-space: nowrap; -webkit-tap-highlight-color: transparent;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); font-weight: 600; transition: background-color 0.15s ease; }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-primary:active { background: var(--accent-active); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--line-strong); transition: border-color 0.15s ease, color 0.15s ease; }
.btn-ghost:hover { border-color: var(--link); color: var(--link); }
#locate-btn svg { color: var(--link); }
.btn:disabled { opacity: 0.6; cursor: progress; }
#search-btn { height: 48px; padding: 0 20px; }
#locate-btn { flex: none; width: 48px; height: 48px; padding: 0; }
#locate-btn svg { width: 22px; height: 22px; }
.locate-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.select-wrap select {
  width: 100%; height: var(--tap); padding: 0 32px 0 12px;
  font: inherit; font-size: 15px; color: var(--text);
  background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d4d4d' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  appearance: none; -webkit-appearance: none; cursor: pointer;
}

/* ---------- layout ---------- */
.layout { padding: 16px 16px 24px; }
.score-note { font-size: 14px; color: var(--muted); margin-bottom: 16px; }
.status-line { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.status-line.error { color: var(--bad); }

.view-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; background: var(--panel); box-shadow: var(--shadow);
}
.toggle-btn {
  min-height: var(--tap); border: 0; border-radius: 10px; background: transparent;
  font: inherit; font-size: 15px; font-weight: 600; color: var(--muted); cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.toggle-btn.active { background: var(--ink); color: var(--ink-on); }

.map-pane { display: none; }
body.show-map .map-pane { display: block; }
body.show-map .list-pane .results { display: none; }
.map { height: 62vh; min-height: 320px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--panel-2); box-shadow: var(--shadow); overflow: hidden; }
.map:not(.leaflet-container):not(.map-failed)::before {
  content: "Loading map"; display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 15px;
}
/* Phone, map first: the map gets the screen. The score note belongs to the list, and the
   radius and sort only matter once there is a search. */
@media (max-width: 899px) {
  body.show-map .score-note { display: none; }
  body:not(.has-search) .filter-row { display: none; }
}

/* ---------- map pins, clusters, controls (after the Quiet Couch map) ---------- */
/* Scoped under .leaflet-container: Leaflet's own stylesheet loads later and would win a tie. */
.leaflet-container .fdf-dot { background: none; border: 0; }
.fdf-pin {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--panel); border: 2.5px solid var(--score-high); color: var(--score-high);
  font: 700 12px/25px var(--font); text-align: center; font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(26, 26, 26, 0.3); transition: transform 0.12s ease;
}
.fdf-pin-tip { width: 6px; height: 6px; margin: 2px auto 0; border-radius: 50%; background: var(--score-high); box-shadow: 0 1px 3px rgba(26, 26, 26, 0.35); }
.fdf-dot-high .fdf-pin { background: var(--score-high); color: #ffffff; }
.fdf-dot-medium .fdf-pin { border-color: var(--score-medium); color: var(--score-medium); }
.fdf-dot-medium .fdf-pin-tip { background: var(--score-medium); }
.fdf-dot-low .fdf-pin { border-color: var(--score-low); color: var(--score-low); }
.fdf-dot-low .fdf-pin-tip { background: var(--score-low); }
.fdf-dot-gone .fdf-pin { border-color: var(--score-gone); color: var(--score-gone); }
.fdf-dot-gone .fdf-pin-tip { background: var(--score-gone); }
.leaflet-marker-icon:hover .fdf-pin { transform: scale(1.15); }
.leaflet-container .fdf-cluster {
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent); color: #ffffff; border: 3px solid #ffffff;
  font: 700 13px/1 var(--font); font-variant-numeric: tabular-nums;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent), 0 2px 6px rgba(26, 26, 26, 0.3);
  transition: transform 0.12s ease;
}
.leaflet-container .fdf-cluster:hover { transform: scale(1.08); }
.leaflet-container .fdf-cluster span { line-height: 1; }
.leaflet-container .fdf-me-wrap { background: none; border: 0; }
.fdf-me {
  width: 16px; height: 16px; border-radius: 50%; background: var(--accent); border: 3px solid #ffffff;
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 25%, transparent), 0 1px 4px rgba(0, 0, 0, 0.3);
}
.leaflet-container .map-show-all {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer;
  background: var(--panel); color: var(--link); font: 600 14px/1 var(--font);
  box-shadow: 0 2px 10px rgba(26, 26, 26, 0.18);
}
.leaflet-container .map-show-all:hover { background: var(--accent-soft); }
.leaflet-container .map-show-all[hidden] { display: none; }
.leaflet-container .leaflet-bar { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 2px 10px rgba(26, 26, 26, 0.18); }
.leaflet-container .leaflet-bar a { width: 36px; height: 36px; line-height: 36px; background: var(--panel); color: var(--text); border-bottom-color: var(--line); }
.leaflet-container .leaflet-bar a:hover { background: var(--panel-2); }
.leaflet-container .leaflet-control-attribution { font-size: 10.5px; background: color-mix(in srgb, var(--panel) 85%, transparent); color: var(--subtle); }
.leaflet-container .leaflet-control-attribution a { color: var(--subtle); }

/* Popups: a card with no close button (tap the map to close), like Quiet Couch. */
.leaflet-container .leaflet-popup-content-wrapper {
  padding: 0; overflow: hidden; border-radius: 14px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.leaflet-container .leaflet-popup-content { margin: 0; width: 264px !important; font: 13px/1.45 var(--font); }
.leaflet-container .leaflet-popup-tip { background: var(--panel); box-shadow: 0 3px 10px rgba(26, 26, 26, 0.15); }
.leaflet-container a.leaflet-popup-close-button { display: none; }
.pp-body { padding: 12px 14px 10px; display: grid; gap: 6px; }
.leaflet-container .pp-body p { margin: 0; }
.pp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.pp-head h4 { margin: 0; font-family: var(--font-display); font-size: 15.5px; font-weight: 600; line-height: 1.25; letter-spacing: -0.1px; }
.pp-score { flex: none; display: grid; justify-items: end; line-height: 1; }
.pp-score b { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pp-score small { margin-top: 3px; font-size: 10px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--subtle); }
.pp-sub { margin: 0; color: var(--muted); font-size: 12px; }
.pp-badges { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.pp-badges .pill { font-size: 11.5px; padding: 2px 8px 2px 7px; }
.pp-avail { font-size: 12px; font-weight: 600; }
.pp-actions { display: flex; gap: 6px; }
.ibtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--panel); color: var(--text);
  font: 600 12px/1 var(--font); text-decoration: none; transition: border-color 0.15s ease, color 0.15s ease;
}
.ibtn svg { width: 14px; height: 14px; color: var(--link); }
.ibtn:hover { border-color: var(--link); color: var(--link); }
.leaflet-container a.pp-details {
  display: flex; align-items: center; justify-content: center; gap: 4px; padding: 11px;
  border-top: 1px solid var(--line); color: var(--link); font: 600 13px/1 var(--font); text-decoration: none;
  transition: background-color 0.15s ease;
}
.leaflet-container a.pp-details:hover { background: var(--accent-soft); color: var(--link); }
.pp-details svg { width: 13px; height: 13px; }

/* ---------- results: one list surface, hairline dividers ---------- */
.results { display: grid; gap: 12px; }
.results:empty { display: none; }
.result-card {
  padding: 16px; display: grid; gap: 8px; min-width: 0;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
}
.result-card.flash { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.card-head { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; }
.card-title { min-width: 0; }
.name { font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.25; letter-spacing: -0.2px; overflow-wrap: anywhere; }
.clinic { font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }

.score { flex: none; display: grid; justify-items: end; gap: 4px; min-width: 64px; }
.score-num { font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -0.5px; }
.score-label { font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; }
.score-bar { width: 64px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.score-bar > span { display: block; height: 100%; background: currentColor; }
.score-high { color: var(--score-high); }
.score-medium { color: var(--score-medium); }
.score-low { color: var(--score-low); }
.score-gone { color: var(--score-gone); }

.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; padding: 3px 10px 3px 8px; border-radius: 999px;
  background: var(--panel-2); color: var(--muted);
}
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill-accepting { color: var(--good); background: var(--good-soft); }
.pill-accepting_soon, .pill-limited { color: var(--warn); background: var(--warn-soft); }
.pill-waitlist { color: var(--link); background: var(--accent-soft); }
.pill-closed { color: var(--bad); background: var(--bad-soft); }
.availability { font-size: 16px; font-weight: 600; }

.facts { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 15px; color: var(--muted); }
.announced.stale { color: var(--warn); font-weight: 500; }
.address { font-size: 15px; overflow-wrap: anywhere; }
.note { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.actions .btn { flex: 1 1 140px; }
.actions svg { width: 18px; height: 18px; flex: none; }

.sources {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px;
  padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line);
}
.sources-label { font-size: 12px; font-weight: 600; letter-spacing: 0.4px; text-transform: uppercase; color: var(--muted); }
.source-link {
  display: inline-flex; align-items: center; min-height: 32px;
  font-size: 14px; overflow-wrap: anywhere; max-width: 100%;
}

.empty-state {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 24px 16px; display: grid; gap: 12px;
}
.empty-state[hidden] { display: none; }
.empty-state h2 { font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty-actions [hidden] { display: none; }

.footer {
  padding: 16px 16px max(24px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); background: var(--panel);
  display: grid; gap: 6px;
}
.footer strong { color: var(--text); font-weight: 600; }

.leaflet-container { font: inherit; background: var(--panel-2); }
@media (min-width: 900px) { .result-card { cursor: pointer; } .result-card:hover { box-shadow: 0 0 0 1px var(--line-strong), var(--shadow); } }

/* ---------- desktop: list plus map side by side ---------- */
@media (min-width: 900px) {
  .brandbar { padding: 16px 24px 4px; }
  .topbar { padding: 8px 24px 12px; }
  .search { grid-template-columns: minmax(320px, 1fr) auto; align-items: center; max-width: 1100px; }
  .filter-row { grid-template-columns: auto auto; }
  #locate-btn { width: auto; padding: 0 16px; }
  .locate-text { position: static; width: auto; height: auto; clip: auto; }
  .layout {
    display: grid; grid-template-columns: minmax(400px, 1fr) minmax(360px, 1.1fr); gap: 24px;
    padding: 24px; max-width: 1500px; margin: 0 auto;
  }
  .view-toggle { display: none; }
  .map-pane { display: block; }
  body.show-map .list-pane .results { display: block; }
  .map { position: sticky; top: 88px; height: calc(100vh - 112px); }
  .footer { padding: 16px 24px 24px; max-width: 1500px; margin: 0 auto; }
}

/* Location messages: shown right under the search row so they are seen where the tap happened. */
.geo-alert { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--bad); border-radius: var(--radius); background: var(--panel); }
.geo-alert[hidden] { display: none; }
.geo-alert.is-info { border-color: var(--line-strong); }
.geo-alert-title { font-size: 16px; font-weight: 600; color: var(--bad); }
.geo-alert.is-info .geo-alert-title { color: var(--text); }
.geo-alert-body { margin-top: 4px; font-size: 15px; line-height: 1.45; color: var(--text); }
.geo-alert-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.geo-alert-actions .btn { flex: 1 1 auto; }
.geo-alert-actions [hidden] { display: none; }
#locate-btn.is-busy svg { animation: geo-spin 1.2s linear infinite; }
@keyframes geo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #locate-btn.is-busy svg { animation: none; opacity: 0.5; } }

/* Score breakdown. The ? keeps a 44px tap target around a small 22px mark. */
.results { overflow: visible; }
.result-card { position: relative; }
.score-top { display: inline-flex; align-items: center; gap: 6px; }
.score-help {
  position: relative; flex: none; width: 22px; height: 22px; padding: 0;
  border: 1px solid var(--line-strong); border-radius: 50%; background: var(--panel);
  color: var(--muted); font: 600 13px/1 inherit; cursor: pointer;
}
.score-help::after { content: ""; position: absolute; inset: -11px; }
.score-help:hover, .score-help[aria-expanded="true"] { color: var(--text); border-color: var(--text); }
.score-help:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
/* Touch screens: an inline panel inside the card, so it never covers the next card. */
.score-pop {
  padding: 14px 16px 12px; background: var(--panel); color: var(--text);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
}
/* Mouse: a floating tooltip under the score. */
@media (hover: hover) and (pointer: fine) {
  .score-pop {
    position: absolute; z-index: 20; right: 16px; width: min(340px, calc(100% - 32px));
    box-shadow: 0 8px 24px rgba(20, 20, 19, 0.12);
  }
}
.score-pop[hidden] { display: none; }
.sb-title { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.sb-list { list-style: none; margin: 0; padding: 0; }
.sb-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); }
.sb-row:first-child { border-top: 0; }
.sb-text { display: grid; min-width: 0; }
.sb-label { font-size: 14px; font-weight: 500; }
.sb-detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.sb-points { flex: none; font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; min-width: 56px; text-align: right; white-space: nowrap; color: var(--text); }
.sb-row[data-key="recency"] .sb-points, .sb-row[data-key="cap"] .sb-points { color: var(--bad); }
.sb-zero .sb-points, .sb-zero .sb-label { color: var(--muted); font-weight: 500; }
.sb-total { display: flex; justify-content: space-between; margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--text); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sb-foot { margin-top: 8px; font-size: 12px; line-height: 1.45; color: var(--muted); }
@media (prefers-color-scheme: dark) and (hover: hover) and (pointer: fine) { .score-pop { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); } }
.map-fallback { padding: 24px 16px; color: var(--muted); font-size: 15px; }
/* Fallback tiles (OpenStreetMap) are softened toward the CARTO light look. */
.map.osm-tiles .leaflet-tile-pane { filter: grayscale(0.9) brightness(1.06) contrast(0.9); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map.osm-tiles .leaflet-tile-pane { filter: grayscale(1) invert(1) brightness(0.85) contrast(0.9); }
}
