/* compre.casa's theme on the base tokens (#84, ADR 0013): deep green, which reads as savings and
   stays clear of Caixa's blue and orange. Price drops show in the accent, rises in ink; red is
   for errors only. The map-* colours paint the basemap: the server writes them into the map
   style (mapstyle.json), so the map and the page share one palette. Same values as
   tokens.json ("themes"). */

:root, .theme-light {
  --color-accent: #0b6e4f;
  --color-accent-soft: #e3f1ea;
  --color-on-accent: #ffffff;
  --color-focus: #0b6e4f;
  --color-map-land: #f2eee7;
  --color-map-park: #dcebd9;
  --color-map-water: #c6dae3;
  --color-map-water-label: #2f5566;
  --color-map-building: #e3ddd3;
  --color-map-road: #ffffff;
  --color-map-road-major: #f8edd3;
  --color-map-road-casing: #d6cec2;
  --color-map-rail: #aaa298;
  --color-map-boundary: #9c958b;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-accent: #5cc49c;
    --color-accent-soft: #173a2e;
    --color-on-accent: #161513;
    --color-focus: #5cc49c;
    --color-map-land: #1c1b19;
    --color-map-park: #1d2a21;
    --color-map-water: #142229;
    --color-map-water-label: #8db7c9;
    --color-map-building: #2a2824;
    --color-map-road: #36332e;
    --color-map-road-major: #4a4438;
    --color-map-road-casing: #121110;
    --color-map-rail: #57524b;
    --color-map-boundary: #6f6960;
  }
}

.theme-dark {
  --color-accent: #5cc49c;
  --color-accent-soft: #173a2e;
  --color-on-accent: #161513;
  --color-focus: #5cc49c;
  --color-map-land: #1c1b19;
  --color-map-park: #1d2a21;
  --color-map-water: #142229;
  --color-map-water-label: #8db7c9;
  --color-map-building: #2a2824;
  --color-map-road: #36332e;
  --color-map-road-major: #4a4438;
  --color-map-road-casing: #121110;
  --color-map-rail: #57524b;
  --color-map-boundary: #6f6960;
}
