:root {
  color-scheme: light;

  --radius: 0.5rem;
  --weight-display: 800;
  --weight-heading: 700;
  --weight-label: 600;
  --weight-strong: 600;
  --weight-body: 400;
  --background: hsl(47 39% 94%);
  --foreground: hsl(174 26% 12%);
  --card: hsl(48 46% 98%);
  --card-foreground: hsl(174 26% 12%);
  --popover: hsl(48 46% 98%);
  --popover-foreground: hsl(174 26% 12%);
  --primary: hsl(174 47% 27%);
  --primary-foreground: hsl(48 46% 98%);
  --secondary: hsl(42 54% 86%);
  --secondary-foreground: hsl(174 26% 12%);
  --muted: hsl(45 28% 86%);
  --muted-foreground: hsl(175 11% 38%);
  --accent: hsl(11 75% 54%);
  --accent-foreground: hsl(48 46% 98%);
  --destructive: hsl(356 72% 46%);
  --border: hsl(42 18% 74%);
  --input: hsl(42 18% 74%);
  --ring: hsl(174 47% 27%);
  --success: hsl(155 45% 34%);
  --warning: hsl(38 88% 47%);
  --map-water: hsl(187 38% 72%);
  --map-land: hsl(62 23% 81%);
  --map-road: hsl(28 30% 64%);

  --shadow-soft: 0 18px 50px hsl(174 26% 12% / 11%);
  --shadow-edge: 0 1px 0 hsl(0 0% 100% / 72%) inset;
  --app-shell-border-shadow: 0 0 0 1px hsl(0 0% 0% / 4%);
  --grid-line: hsl(174 30% 20% / 8%);
  --page-accent-glow: linear-gradient(
    115deg,
    hsl(13 86% 66% / 10%),
    transparent 28rem
  );
  --page-depth-glow: linear-gradient(
    180deg,
    transparent,
    hsl(174 47% 27% / 8%) 72vh
  );
  --selection-bg: hsl(10 68% 62% / 28%);
  --control-attribution-fg: #111827;

  --surface-glint: linear-gradient(
    135deg,
    hsl(0 0% 100% / 6%),
    transparent 42%
  );
  --panel-glint: linear-gradient(135deg, hsl(0 0% 100% / 4%), transparent 44%);
  --field-hero-primary-glow: linear-gradient(
    135deg,
    hsl(176 56% 67% / 12%),
    transparent 34%
  );
  --field-hero-accent-glow: linear-gradient(
    315deg,
    hsl(13 86% 66% / 12%),
    transparent 42%
  );
  --content-panel-glow: linear-gradient(
    90deg,
    hsl(176 56% 67% / 8%),
    transparent 50%
  );
  --field-hero-pattern: radial-gradient(
    circle at center,
    hsl(0 0% 100% / 7%) 47% 48%,
    transparent 52%
  );

  --nav-bg: hsl(150 24% 7%);
  --nav-border: hsl(150 16% 24%);
  --nav-fg: hsl(151 16% 58%);
  --nav-fg-active: hsl(48 46% 98%);
  --nav-active-bg: hsl(150 25% 14%);

  --masthead-bg:
    linear-gradient(
      90deg,
      hsl(47 39% 94% / 96%),
      hsl(47 39% 94% / 78%) 54%,
      hsl(47 39% 94% / 90%)
    ),
    linear-gradient(180deg, hsl(47 39% 94% / 8%), hsl(47 39% 94% / 76%)),
    url('/bengaluru-cover.png') center / cover;
  --masthead-fg: var(--foreground);
  --masthead-kicker: var(--primary);
  --masthead-script: var(--muted-foreground);
  --weather-icon: hsl(13 72% 65%);
  --weather-icon-shadow: drop-shadow(0 4px 12px hsl(0 0% 0% / 22%));

  --city-page-grid-line: hsl(150 26% 14% / 5%);
  --city-map-stage-bg: color-mix(
    in hsl,
    var(--map-land) 74%,
    var(--background)
  );
  --city-map-bar-bg: color-mix(in hsl, var(--card) 88%, var(--background));
  --city-map-bar-border: var(--border);
  --city-map-bar-fg: var(--foreground);

  --category-food: hsl(9 70% 58%);
  --category-park: hsl(146 44% 36%);
  --category-nightlife: hsl(43 76% 54%);
  --category-culture: hsl(205 34% 47%);
  --category-other: hsl(28 28% 42%);

  --map-marker-bg: hsl(150 20% 8%);
  --map-marker-border: hsl(48 46% 98%);
  --map-marker-fg: hsl(48 46% 98%);
  --map-marker-halo-stroke: hsl(48 46% 98% / 88%);
  --map-marker-halo-opacity: 0.2;
  --map-marker-active-halo-opacity: 0.36;
  --marker-food: hsl(9 76% 66%);
  --marker-park: hsl(146 56% 56%);
  --marker-culture: hsl(205 58% 66%);
  --marker-nightlife: hsl(43 86% 62%);
  --marker-event: hsl(28 90% 64%);
  --marker-other: hsl(28 34% 62%);

  --map-legend-bg: hsl(0 0% 0% / 68%);
  --map-legend-fg: hsl(48 22% 82%);
  --map-legend-dot-bg: hsl(150 20% 8%);
  --sprite-shadow: drop-shadow(0 1px 2px hsl(0 0% 0% / 55%));
  --fallback-pin-border: hsl(48 46% 98% / 84%);
  --fallback-pin-bg: hsl(150 18% 8% / 86%);
  --fallback-pin-fg: hsl(48 46% 98%);
  --fallback-pin-shadow: 0 10px 28px hsl(0 0% 0% / 36%);

  --place-photo-bg:
    linear-gradient(135deg, hsl(45 22% 94%), hsl(48 18% 88%)), var(--muted);
  --place-photo-glint:
    radial-gradient(
      circle at 30% 32%,
      hsl(0 0% 100% / 38%) 35% 36%,
      transparent 42%
    ),
    radial-gradient(
      circle at 62% 66%,
      hsl(150 18% 38% / 16%) 54% 55%,
      transparent 61%
    );
  --place-initial-bg: hsl(150 24% 11%);
  --place-initial-fg: hsl(48 46% 98%);
  --place-food: hsl(9 76% 50%);
  --place-park: hsl(146 48% 36%);
  --place-culture: hsl(205 44% 48%);
  --place-nightlife: hsl(43 80% 45%);
  --place-other: hsl(28 34% 44%);

  --popup-bg: hsl(48 46% 98%);
  --popup-fg: hsl(150 26% 10%);
  --popup-muted: hsl(150 12% 34%);
  --popup-border: hsl(150 18% 26%);
  --popup-shadow: 0 12px 32px hsl(0 0% 0% / 36%);

  --protomaps-background: #f1ead9;
  --protomaps-earth: #eee5cf;
  --protomaps-landcover: #d7e0c5;
  --protomaps-landcover-opacity: 0.64;
  --protomaps-landuse: #e6dcc4;
  --protomaps-landuse-opacity: 0.78;
  --protomaps-water: #b8d5d9;
  --protomaps-water-opacity: 0.92;
  --protomaps-water-outline: #91bdc3;
  --protomaps-roads-casing: #d7c5a5;
  --protomaps-roads: #f8f1df;
  --protomaps-roads-opacity: 0.92;
  --protomaps-buildings: #d8cbb2;
  --protomaps-buildings-opacity: 0.78;
  --protomaps-boundaries: #9e8f76;
  --protomaps-boundaries-opacity: 0.32;
}

.dark {
  color-scheme: dark;

  --background: hsl(150 12% 7%);
  --foreground: hsl(46 44% 92%);
  --card: hsl(150 10% 11%);
  --card-foreground: hsl(46 44% 92%);
  --popover: hsl(150 10% 11%);
  --popover-foreground: hsl(46 44% 92%);
  --primary: hsl(176 56% 67%);
  --primary-foreground: hsl(155 18% 8%);
  --secondary: hsl(42 24% 18%);
  --secondary-foreground: hsl(46 44% 92%);
  --muted: hsl(155 10% 17%);
  --muted-foreground: hsl(45 16% 74%);
  --accent: hsl(13 86% 66%);
  --accent-foreground: hsl(155 18% 8%);
  --destructive: hsl(356 68% 61%);
  --border: hsl(165 13% 25%);
  --input: hsl(165 13% 26%);
  --ring: hsl(176 56% 67%);
  --success: hsl(147 48% 61%);
  --warning: hsl(39 94% 66%);
  --map-water: hsl(196 31% 20%);
  --map-land: hsl(154 17% 15%);
  --map-road: hsl(31 28% 39%);

  --shadow-soft: 0 22px 58px hsl(0 0% 0% / 38%);
  --shadow-edge: 0 1px 0 hsl(46 44% 92% / 9%) inset;
  --app-shell-border-shadow: 0 0 0 1px hsl(0 0% 0% / 4%);
  --grid-line: hsl(176 56% 67% / 8%);
  --page-accent-glow: linear-gradient(
    115deg,
    hsl(13 86% 66% / 10%),
    transparent 28rem
  );
  --page-depth-glow: linear-gradient(
    180deg,
    transparent,
    hsl(174 47% 27% / 8%) 72vh
  );
  --selection-bg: hsl(10 68% 62% / 28%);

  --nav-bg: hsl(150 24% 7%);
  --nav-border: hsl(150 16% 24%);
  --nav-fg: hsl(151 16% 58%);
  --nav-fg-active: hsl(48 46% 98%);
  --nav-active-bg: hsl(150 25% 14%);

  --masthead-bg:
    linear-gradient(
      90deg,
      hsl(150 36% 7% / 94%),
      hsl(150 36% 7% / 74%) 54%,
      hsl(150 36% 7% / 88%)
    ),
    linear-gradient(180deg, hsl(150 36% 7% / 10%), hsl(150 36% 7% / 82%)),
    url('/bengaluru-cover.png') center / cover;
  --masthead-fg: hsl(48 46% 98%);
  --masthead-kicker: hsl(151 45% 62%);
  --masthead-script: hsl(151 22% 66%);
  --weather-icon-shadow: drop-shadow(0 4px 12px hsl(0 0% 0% / 45%));

  --city-map-stage-bg: hsl(150 20% 8%);
  --city-map-bar-bg: hsl(150 18% 7%);
  --city-map-bar-border: hsl(150 15% 22%);
  --city-map-bar-fg: hsl(48 46% 98%);
  --map-marker-halo-stroke: hsl(48 46% 98% / 72%);
  --map-marker-halo-opacity: 0.26;
  --map-marker-active-halo-opacity: 0.42;

  --protomaps-background: #10161a;
  --protomaps-earth: #182126;
  --protomaps-landcover: #1d2a25;
  --protomaps-landcover-opacity: 0.55;
  --protomaps-landuse: #222b24;
  --protomaps-landuse-opacity: 0.7;
  --protomaps-water: #17303d;
  --protomaps-water-opacity: 0.9;
  --protomaps-water-outline: #244654;
  --protomaps-roads-casing: #0d1114;
  --protomaps-roads: #66584a;
  --protomaps-roads-opacity: 0.78;
  --protomaps-buildings: #28333a;
  --protomaps-buildings-opacity: 0.82;
  --protomaps-boundaries: #5e6b71;
  --protomaps-boundaries-opacity: 0.35;
}
