:root {
  --ink: #111827;
  --muted: #667085;
  --panel: #ffffff;
  --surface: #f7f8fa;
  --surface-2: #f0f4f3;
  --line: #e5e7eb;
  --accent: #0f766e;
  --accent-2: #2563eb;
  --shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
  --glass-fill: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  --glass-tint: rgba(231, 244, 242, 0.1);
  --glass-chip: rgba(255, 255, 255, 0.16);
  --glass-line: rgba(255, 255, 255, 0.54);
  --glass-inner-line: rgba(255, 255, 255, 0.36);
  --glass-shadow: 0 18px 55px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.62);
  --glass-blur: blur(26px) saturate(1.42);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

button,
input {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  min-height: 100vh;
}

.map-workspace {
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  padding: 30px;
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  padding: 0 0 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h2 {
  font-size: 15px;
  line-height: 1.25;
}

.summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(540px, 100%);
  justify-content: flex-start;
  gap: 12px;
}

.summary-strip span {
  min-width: 0;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  box-shadow: none;
}

.summary-strip strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
  transition: color 180ms ease;
}

@keyframes countFlip {
  0% { color: var(--accent); transform: scale(1.12); }
  100% { color: var(--ink); transform: scale(1); }
}

.summary-strip strong.count-flip {
  animation: countFlip 300ms ease-out;
}

.allergy-pill {
  font-size: 10px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #667085;
  transition: color 0.3s;
}

.allergy-1 { color: #15803d; border-color: #bbf7d0; background: #f0fdf4; }
.allergy-1::before { color: #86efac; }
.allergy-2 { color: #b45309; border-color: #fed7aa; background: #fff7ed; }
.allergy-2::before { color: #fdba74; }
.allergy-3 { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.allergy-3::before { color: #fca5a5; }
.allergy-4 { color: #991b1b; border-color: #fca5a5; background: #fee2e2; }
.allergy-4::before { color: #f87171; }

/* Allergy section in pollen panel */
.allergy-section {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.allergy-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.allergy-value {
  padding: 2px 12px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 660;
  transition: background 0.3s, color 0.3s;
}

.allergy-value.allergy-1 { background: #bbf7d0; color: #15803d; }
.allergy-value.allergy-2 { background: #fed7aa; color: #b45309; }
.allergy-value.allergy-3 { background: #fecaca; color: #b91c1c; }
.allergy-value.allergy-4 { background: #fca5a5; color: #991b1b; }

.allergy-plants {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.allergy-plants li {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  background: #f7f8fa;
  color: var(--ink);
  border-left: 3px solid var(--allergy-plant-color, var(--muted));
}

.map-stage {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  perspective: 1200px;
  isolation: isolate;
}

.map-stage::before,
.map-stage::after {
  position: absolute;
  inset: 0;
  z-index: 430;
  pointer-events: none;
  content: "";
}

.map-stage::before {
  opacity: 0;
  background:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.03) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%);
  transform: perspective(900px) rotateX(62deg) translateY(35%) scale(1.28);
  transform-origin: center bottom;
  transition: opacity 220ms ease;
}

.map-stage::after {
  z-index: 425;
  opacity: 0;
  background:
    radial-gradient(ellipse at 50% 72%, rgba(15, 23, 42, 0.16), transparent 45%),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.32), transparent 42%, rgba(15, 23, 42, 0.04));
  transition: opacity 220ms ease;
}

.real-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.pollen-canvas {
  position: absolute;
  inset: 0;
  z-index: 420;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: normal;
}

.map-stage.is-depth::before {
  opacity: 1;
}

.map-stage.is-depth::after {
  opacity: 0.72;
}

.wind-badge {
  position: relative;
  z-index: 670;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at 20% 30%, rgba(76, 201, 240, 0.14), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(16, 185, 129, 0.12), transparent 32%),
    rgba(244, 248, 247, 0.16);
  color: #35574f;
  font-size: 11px;
  font-weight: 660;
  letter-spacing: 0.04em;
  backdrop-filter: blur(22px) saturate(1.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 180ms ease, box-shadow 220ms ease;
}

.wind-badge span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.32);
  color: color-mix(in srgb, var(--accent) 84%, #3b82f6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.wind-badge strong {
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.wind-badge:hover,
.wind-badge:focus-within {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14)),
    radial-gradient(circle at 22% 28%, rgba(76, 201, 240, 0.16), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(16, 185, 129, 0.14), transparent 32%),
    rgba(244, 248, 247, 0.18);
  color: #0f766e;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.66);
}

.maplibregl-map {
  overflow: hidden;
  background: #eeebe6;
}

.real-map .maplibregl-ctrl-top-left {
  z-index: 500;
  pointer-events: none;
}

.real-map .maplibregl-ctrl-top-left .maplibregl-ctrl {
  pointer-events: auto;
}

.real-map .maplibregl-ctrl-group {
  margin: 60px 0 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.real-map .maplibregl-ctrl-group button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(23, 32, 29, 0.82);
  font-size: 18px;
  line-height: 34px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.real-map .maplibregl-ctrl-group button:last-child {
  border-bottom: 0;
}

.real-map .maplibregl-ctrl-group button:hover {
  background: rgba(255, 255, 255, 0.78);
}

.maplibregl-ctrl-attrib {
  color: rgba(102, 114, 111, 0.54);
  font-size: 10px;
  background: transparent !important;
}

.maplibregl-popup {
  z-index: 600;
}
.maplibregl-popup-content {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: 0 8px 24px rgba(15,23,42,0.1);
  color: var(--ink);
}
.maplibregl-popup-tip {
  border-top-color: rgba(255,255,255,0.92) !important;
}
.maplibregl-popup-close-button {
  display: none;
}

.structure-mountain {
  fill: rgba(71, 84, 103, 0.08);
}

.structure-ring {
  mix-blend-mode: normal;
  stroke-opacity: 0.15;
}

.structure-core {
  filter: drop-shadow(0 8px 16px rgba(15, 118, 110, 0.04));
}

.structure-water {
  stroke-opacity: 0.12;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 3px rgba(37, 99, 235, 0.03));
}

.structure-axis {
  stroke-opacity: 0.08;
  stroke-linecap: round;
}

.structure-label {
  width: max-content;
  padding: 3px 7px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: rgba(17, 24, 39, 0.26);
  font-size: 9px;
  font-weight: 620;
  letter-spacing: 0.12em;
  line-height: 1.1;
  white-space: nowrap;
  backdrop-filter: blur(6px);
  transform: translate(-50%, -50%);
}

.structure-label.is-core {
  color: rgba(15, 118, 110, 0.5);
}

.structure-label.is-water {
  color: rgba(37, 99, 235, 0.38);
}

.structure-label.is-terrain {
  color: rgba(71, 84, 103, 0.34);
}

.map-toolbar {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 500;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  max-width: min(560px, calc(100% - 184px));
  gap: 8px;
}

.map-tool {
  min-height: 36px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.map-tool:hover,
.map-tool:focus-visible {
  border-color: rgba(15, 118, 110, 0.42);
  outline: 0;
}

.map-tool.is-active {
  border-color: rgba(15, 118, 110, 0.32);
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
}

.plant-icon-shell {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
}

.plant-map-marker {
  --marker-color: #d85b76;
  --marker-size: 15px;
  --marker-ring: 4px;
  position: relative;
  display: block;
  width: var(--marker-size);
  height: var(--marker-size);
  border-radius: 999px;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 255, 255, 0.88) 0 12%, transparent 24%),
    var(--marker-color);
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 0 0 var(--marker-ring) color-mix(in srgb, var(--marker-color) 12%, transparent),
    0 8px 18px rgba(15, 23, 42, 0.1);
  opacity: 0.82;
  transition: opacity 180ms ease, transform 180ms ease, box-shadow 180ms ease, width 180ms ease, height 180ms ease;
}

.plant-map-marker::after {
  position: absolute;
  left: 50%;
  top: 100%;
  width: 1px;
  height: 6px;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--marker-color) 30%, transparent), transparent);
  content: "";
  transform: translateX(-50%);
  opacity: 0.4;
  transition: height 180ms ease, opacity 180ms ease;
}

.map-stage.is-depth .plant-map-marker::after {
  height: 14px;
  opacity: 0.6;
}

.plant-map-marker:hover,
.plant-map-marker:focus-visible {
  outline: 2px solid rgba(17, 24, 39, 0.72);
  outline-offset: 5px;
  transform: scale(1.32);
  z-index: 10;
}

.plant-map-marker.is-dim {
  --marker-size: 10px;
  --marker-ring: 2px;
  opacity: 0.24;
  transform: scale(0.86);
  filter: saturate(0.72);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--marker-color) 8%, transparent);
}

.plant-map-marker.is-context {
  opacity: 0.22;
  filter: saturate(0.62) grayscale(0.12);
  transform: scale(0.82);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--marker-color) 6%, transparent);
}

.plant-map-marker.is-focus-plant:not(.is-selected) {
  filter: saturate(1.08);
}

.plant-map-marker.is-bloom {
  --marker-size: 18px;
  --marker-ring: 5px;
  opacity: 0.94;
  box-shadow:
    0 0 0 5px color-mix(in srgb, var(--marker-color) 15%, transparent),
    0 10px 22px rgba(15, 23, 42, 0.12);
}

.plant-map-marker.is-peak {
  --marker-size: 25px;
  --marker-ring: 8px;
  opacity: 1;
  filter: saturate(1.12);
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--marker-color) 18%, transparent),
    0 0 22px color-mix(in srgb, var(--marker-color) 22%, transparent),
    0 14px 28px rgba(15, 23, 42, 0.14);
}

.plant-map-marker.is-selected {
  --marker-size: 29px;
  opacity: 1;
  filter: saturate(1.18);
  outline: 2px solid rgba(17, 24, 39, 0.72);
  outline-offset: 6px;
  z-index: 20;
  animation: selectedMarkerBreath 2.4s ease-in-out infinite;
  box-shadow:
    0 0 0 8px color-mix(in srgb, var(--marker-color) 18%, transparent),
    0 0 0 17px color-mix(in srgb, var(--marker-color) 9%, transparent),
    0 0 32px color-mix(in srgb, var(--marker-color) 28%, transparent),
    0 16px 32px rgba(15, 23, 42, 0.16);
}

.plant-map-marker.is-hidden {
  display: none;
}

@keyframes selectedMarkerBreath {
  0%,
  100% {
    box-shadow:
      0 0 0 8px color-mix(in srgb, var(--marker-color) 18%, transparent),
      0 0 0 16px color-mix(in srgb, var(--marker-color) 8%, transparent),
      0 0 28px color-mix(in srgb, var(--marker-color) 24%, transparent),
      0 16px 32px rgba(15, 23, 42, 0.14);
    transform: scale(1);
  }

  50% {
    box-shadow:
      0 0 0 10px color-mix(in srgb, var(--marker-color) 20%, transparent),
      0 0 0 24px color-mix(in srgb, var(--marker-color) 4%, transparent),
      0 0 38px color-mix(in srgb, var(--marker-color) 32%, transparent),
      0 18px 36px rgba(15, 23, 42, 0.16);
    transform: scale(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  .plant-map-marker.is-selected {
    animation: none;
  }
}

.map-fallback {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.plant-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.chip-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--dot-color);
}

.control-panel {
  max-height: 100vh;
  overflow: auto;
  border-left: 1px solid var(--line);
  background: #fbfcfd;
  padding: 24px;
}

.panel-section {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.panel-section:first-child {
  padding-top: 0;
}

.current-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pollen-panel {
  padding-top: 18px;
}

.wind-flow-strip {
  position: relative;
  height: 34px;
  overflow: hidden;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(ellipse at 18% 50%, rgba(15, 118, 110, 0.12), transparent 42%),
    radial-gradient(ellipse at 72% 50%, rgba(37, 99, 235, 0.08), transparent 46%),
    #ffffff;
}

.wind-flow-strip::before,
.wind-flow-strip::after {
  position: absolute;
  inset: 0;
  content: "";
  background-image: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.4) 0 18%, transparent 60%);
  background-size: 88px 18px;
  background-repeat: repeat-x;
  mask-image: linear-gradient(to right, transparent, black 16%, black 84%, transparent);
  animation: windStripFlow 3.2s linear infinite;
}

.wind-flow-strip::after {
  opacity: 0.5;
  background-size: 126px 20px;
  animation-duration: 4.8s;
  transform: translateX(-20px);
}

@keyframes windStripFlow {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 88px 0;
  }
}

.pollen-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.pollen-metrics div {
  min-width: 0;
  padding: 11px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.pollen-metrics span,
.density-control span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.pollen-metrics strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 14px;
}

.density-control {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.density-control input[type="range"] {
  margin-top: 0;
}

.month-heading,
.section-title,
.spot-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

#monthLabel {
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

#seasonLabel {
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.1);
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  margin-top: 18px;
}

.month-ticks {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.plant-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.plant-chip {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  color: #344054;
  cursor: pointer;
  font-size: 13px;
}

.plant-chip.is-active {
  border-color: #111827;
  background: #111827;
  color: white;
}

.search-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.search-wrap {
  position: relative;
  display: grid;
}

.search-input {
  width: 100%;
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
}

.search-input::-webkit-search-cancel-button {
  display: none;
}

.search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(74, 94, 88, 0.16);
  color: rgba(74, 94, 88, 0.72);
  cursor: pointer;
  display: none;
  place-items: center;
  transform: translateY(-50%);
  transition: background 150ms ease;
}

.search-clear::before {
  content: "×";
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.search-clear.is-visible {
  display: grid;
}

.search-clear:hover {
  background: rgba(74, 94, 88, 0.26);
  color: rgba(23, 32, 29, 0.94);
}

.marker-hover-popup .maplibregl-popup-content {
  padding: 6px 11px;
  font-size: 12px;
  line-height: 1.4;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.1);
  background: rgba(255, 255, 255, 0.96);
  color: #24332f;
}

.detail-panel[open] {
  min-height: 142px;
}

.focus-ribbon {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--focus-ribbon-color) 18%, rgba(255, 255, 255, 0.46));
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    color-mix(in srgb, var(--focus-ribbon-color) 7%, rgba(255, 255, 255, 0.06));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.focus-ribbon span {
  color: color-mix(in srgb, var(--focus-ribbon-color) 72%, #35574f);
  font-size: 10px;
  font-weight: 680;
  letter-spacing: 0.16em;
}

.focus-ribbon strong {
  color: #17201d;
  font-size: 16px;
  line-height: 1.1;
}

.focus-ribbon small {
  color: rgba(74, 94, 88, 0.78);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.detail-hero {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
}

.detail-hero-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.42;
  isolation: isolate;
  border: 1px solid color-mix(in srgb, var(--detail-status-color) 16%, rgba(255, 255, 255, 0.48));
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 22%, color-mix(in srgb, var(--detail-hero-color) 14%, rgba(255, 255, 255, 0.42)), transparent 34%),
    radial-gradient(circle at 78% 26%, color-mix(in srgb, var(--detail-status-color) 12%, rgba(255, 255, 255, 0.32)), transparent 28%),
    radial-gradient(circle at 72% 76%, rgba(255, 255, 255, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04)),
    color-mix(in srgb, var(--detail-hero-color) 8%, rgba(255, 255, 255, 0.04));
  box-shadow: 0 16px 38px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.46);
  backdrop-filter: blur(18px) saturate(1.1);
  -webkit-backdrop-filter: blur(18px) saturate(1.1);
}

.detail-hero-frame::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 44%),
    linear-gradient(180deg, transparent 58%, color-mix(in srgb, var(--detail-status-color) 5%, transparent));
  content: "";
  pointer-events: none;
  z-index: 2;
}

.detail-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  mix-blend-mode: normal;
  opacity: 0.98;
  filter: saturate(0.94) contrast(1.02) brightness(1.01);
}

.detail-hero figcaption {
  display: grid;
  gap: 3px;
}

.detail-hero figcaption span {
  color: color-mix(in srgb, var(--detail-hero-color) 72%, #35574f);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

.detail-hero figcaption strong {
  color: rgba(23, 32, 29, 0.84);
  font-size: 13px;
  font-weight: 680;
  line-height: 1.35;
}

.detail-kicker {
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.detail-panel h2 {
  margin-top: 6px;
  font-size: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.detail-grid strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.detail-desc {
  margin-top: 14px;
  color: #475467;
  font-size: 14px;
  line-height: 1.65;
}

.muted {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.small-count {
  color: var(--muted);
  font-size: 13px;
}

.spot-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.spot-card {
  width: 100%;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.spot-card:hover,
.spot-card:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.24);
  outline-offset: 2px;
}

.spot-card.is-focus {
  border-color: color-mix(in srgb, var(--focus-plant-color) 16%, rgba(255, 255, 255, 0.42));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    color-mix(in srgb, var(--focus-plant-color) 5%, rgba(255, 255, 255, 0.04));
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.spot-title strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.status-pill {
  flex: 0 0 auto;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
}

.spot-meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.source-note p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.calendar-scroll {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.bloom-calendar {
  display: grid;
  grid-template-columns: minmax(76px, 1fr) repeat(12, 26px);
  min-width: 420px;
  padding: 10px;
  gap: 5px;
}

.calendar-head,
.calendar-plant {
  min-height: 24px;
  display: grid;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.calendar-plant {
  grid-template-columns: 10px 1fr;
  gap: 6px;
  color: #344054;
  overflow-wrap: anywhere;
}

.calendar-plant.is-context,
.calendar-cell.is-context {
  opacity: 0.28;
}

.calendar-plant.is-focus {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--focus-plant-color) 18%, transparent);
}

.calendar-cell {
  width: 26px;
  height: 24px;
  border: 0;
  border-radius: 5px;
  background: #edf0ee;
  cursor: pointer;
  position: relative;
}

.calendar-cell.is-active {
  background: color-mix(in srgb, var(--cell-color) 46%, white);
}

.calendar-cell.is-peak {
  background: var(--cell-color);
}

.calendar-cell.is-current {
  outline: 2px solid #111827;
  outline-offset: 1px;
}

.calendar-cell.is-focus {
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--focus-plant-color) 22%, transparent);
}

.calendar-cell:hover,
.calendar-cell:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.28);
  outline-offset: 2px;
}

@media (max-width: 720px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .map-workspace {
    min-height: 74vh;
    padding: 18px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-strip {
    justify-content: flex-start;
    width: 100%;
  }

  .summary-strip span {
    flex: 1 1 90px;
  }

  .map-stage {
    min-height: 520px;
  }

  .control-panel {
    max-height: none;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 1180px) and (min-width: 981px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .summary-strip {
    justify-content: flex-start;
    width: 100%;
  }

  .summary-strip span {
    flex: 1 1 120px;
  }
}

@media (max-width: 560px) {
  .map-workspace,
  .control-panel {
    padding: 14px;
  }

  h1 {
    font-size: 36px;
  }

  .map-stage {
    min-height: 440px;
  }

  .district-label {
    font-size: 22px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Immersive glass workspace */
body {
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(247, 248, 250, 0.96), rgba(232, 239, 237, 0.88));
}

.app-shell {
  position: relative;
  display: block;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
}

.map-workspace {
  position: fixed;
  inset: 0;
  display: block;
  padding: 0;
}

.topbar {
  position: absolute;
  left: 24px;
  top: 22px;
  z-index: 620;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass-fill), var(--glass-tint);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-shadow);
  pointer-events: none;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.topbar > * {
  pointer-events: auto;
}

.topbar-brand {
  margin: 0;
  font-size: inherit;
  font-weight: 680;
  line-height: 1;
  color: #17201d;
  letter-spacing: 0.02em;
}

.topbar-sep {
  width: 1px;
  height: 18px;
  background: rgba(15, 23, 42, 0.12);
}

.topbar-meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(74, 94, 88, 0.7);
  font-weight: 520;
}

.topbar-meta #topbarMonth {
  font-weight: 640;
  color: #1f2937;
}

.topbar-dot {
  color: rgba(15, 23, 42, 0.22);
}

.topbar-meta #topbarSeason {
  font-weight: 560;
  color: var(--accent);
}

.panel-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 10px 0 14px;
  padding: 0;
}

.stat-item {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 10px;
  border: 1px solid var(--glass-inner-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.12)),
    rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.24);
  -webkit-backdrop-filter: blur(18px) saturate(1.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.stat-item:first-child {
  border-radius: 8px 0 0 8px;
}

.stat-item:last-of-type {
  border-radius: 0 8px 8px 0;
}

.stat-item strong {
  font-size: 15px;
  font-weight: 720;
  line-height: 1;
  color: #111827;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.stat-item small {
  font-size: 10px;
  font-weight: 540;
  line-height: 1;
  color: rgba(74, 94, 88, 0.76);
  letter-spacing: 0.04em;
}

.stat-item strong.count-flip {
  animation: countFlip 300ms ease-out;
}

.stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(15, 23, 42, 0.07);
  flex: 0 0 auto;
}

.allergy-pill {
  display: inline;
  font-size: 10px;
  font-weight: 680;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #667085;
}

.map-stage {
  position: absolute;
  inset: 0;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 48% 52%, rgba(255, 255, 255, 0.38), transparent 28%),
    linear-gradient(180deg, rgba(248, 250, 249, 0.96), rgba(240, 245, 244, 0.98));
  box-shadow: none;
  perspective: none;
}

.map-stage::before,
.map-stage::after {
  display: none;
}

.real-map .maplibregl-ctrl-group {
  margin: 244px 0 0 24px;
  border-color: var(--glass-line);
  background: var(--glass-fill), rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(22px) saturate(1.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.08);
}

.wind-badge {
  border-color: var(--glass-line);
  background: var(--glass-fill), rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(24px) saturate(1.3);
  -webkit-backdrop-filter: blur(24px) saturate(1.3);
  box-shadow: var(--glass-shadow);
}


.season-timeline {
  position: absolute;
  left: 50%;
  bottom: 54px;
  z-index: 610;
  display: grid;
  width: min(620px, calc(100vw - 520px));
  min-width: 420px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 4px;
  padding: 9px;
  border: 1px solid var(--glass-line);
  border-radius: 8px;
  background: var(--glass-fill), rgba(245, 249, 248, 0.1);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  box-shadow: 0 20px 58px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transform: translateX(-50%);
}

.season-month {
  position: relative;
  display: grid;
  min-width: 0;
  height: 48px;
  place-items: center;
  gap: 3px;
  padding: 5px 3px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: rgba(23, 32, 29, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  transition: opacity 180ms ease, transform 180ms ease, color 180ms ease, background 180ms ease;
}

.season-month i {
  display: block;
  width: calc(10px + var(--month-intensity) * 22px);
  height: 4px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(15, 118, 110, 0.68), rgba(194, 65, 112, 0.58));
  opacity: calc(0.28 + var(--month-intensity) * 0.72);
  transition: width 180ms ease, opacity 180ms ease;
}

.season-month::after {
  position: absolute;
  inset: 5px;
  z-index: -1;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.42);
  opacity: 0;
  content: "";
  transition: opacity 180ms ease;
}

.season-month:hover::after,
.season-month:focus-visible::after,
.season-month.is-current::after {
  opacity: 1;
}

.season-month.is-current {
  color: #10201d;
}

.season-month.is-current i {
  width: 34px;
  height: 5px;
  opacity: 1;
  background: linear-gradient(90deg, #0f766e, #c24170);
}

.season-timeline.is-focus-mode .season-month {
  opacity: 0.34;
}

.season-timeline.is-focus-mode .season-month.is-focus-active,
.season-timeline.is-focus-mode .season-month.is-current {
  opacity: 1;
}

.season-timeline.is-focus-mode .season-month.is-focus-active {
  color: color-mix(in srgb, var(--focus-plant-color) 62%, #20302c);
}

.season-timeline.is-focus-mode .season-month.is-focus-active i {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--month-color) 86%, white), color-mix(in srgb, var(--month-color) 58%, rgba(255, 255, 255, 0.45)));
}

.season-timeline.is-focus-mode .season-month.is-focus-muted i {
  width: 10px;
  background: rgba(148, 163, 160, 0.18);
}

.season-timeline.is-focus-mode .season-month.is-current {
  transform: translateY(-1px);
}

.season-month.has-peak span::after {
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-left: 3px;
  border-radius: 999px;
  background: #c24170;
  vertical-align: top;
  content: "";
}

.panel-control-dock {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 670;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.panel-toggle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  flex: 0 0 auto;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1)),
    radial-gradient(circle at 30% 30%, rgba(194, 65, 112, 0.14), transparent 34%),
    radial-gradient(circle at 72% 74%, rgba(16, 185, 129, 0.12), transparent 32%),
    rgba(244, 248, 247, 0.16);
  color: #35574f;
  cursor: pointer;
  backdrop-filter: blur(22px) saturate(1.24);
  -webkit-backdrop-filter: blur(22px) saturate(1.24);
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition: background 220ms ease, border-color 220ms ease, color 220ms ease, transform 180ms ease, box-shadow 220ms ease;
}

.panel-toggle svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.panel-toggle:hover,
.panel-toggle:focus-visible {
  border-color: rgba(255, 255, 255, 0.68);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.38), rgba(255, 255, 255, 0.14)),
    radial-gradient(circle at 22% 28%, rgba(194, 65, 112, 0.16), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(16, 185, 129, 0.14), transparent 32%),
    rgba(244, 248, 247, 0.18);
  color: #0f766e;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.12), 0 0 0 4px rgba(255, 255, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.66);
  outline: 2px solid rgba(15, 118, 110, 0.2);
  outline-offset: 2px;
}

body:not(.panel-collapsed) .panel-toggle {
  border-color: rgba(255, 255, 255, 0.7);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0.14)),
    radial-gradient(circle at 22% 28%, rgba(194, 65, 112, 0.14), transparent 34%),
    radial-gradient(circle at 78% 72%, rgba(16, 185, 129, 0.14), transparent 32%),
    rgba(244, 248, 247, 0.18);
  color: #0f766e;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12), 0 0 0 5px rgba(255, 255, 255, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

body:not(.panel-collapsed) .season-timeline {
  left: calc((100vw - min(368px, calc(100vw - 36px))) / 2);
  width: min(520px, calc(100vw - 560px));
  min-width: 420px;
}

.control-panel {
  position: fixed;
  top: 76px;
  right: 18px;
  z-index: 650;
  width: min(368px, calc(100vw - 36px));
  max-height: calc(100vh - 98px);
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 14% 0%, rgba(194, 65, 112, 0.09), transparent 30%),
    radial-gradient(circle at 100% 35%, rgba(194, 65, 112, 0.12), transparent 36%),
    radial-gradient(circle at 58% 100%, rgba(16, 185, 129, 0.06), transparent 34%),
    rgba(244, 248, 247, 0.12);
  color: #24332f;
  backdrop-filter: blur(28px) saturate(1.2);
  -webkit-backdrop-filter: blur(28px) saturate(1.2);
  box-shadow:
    0 28px 70px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.6),
    inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transform: translateY(0) scale(1);
  transform-origin: top right;
  opacity: 1;
  visibility: visible;
  transition:
    transform 240ms ease,
    opacity 200ms ease,
    visibility 0s linear 0s,
    background 220ms ease,
    box-shadow 220ms ease;
}

body.panel-collapsed .control-panel {
  transform: translateY(-12px) scale(0.98);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  box-shadow: none;
  transition:
    transform 220ms ease,
    opacity 180ms ease,
    visibility 0s linear 220ms,
    background 220ms ease,
    box-shadow 220ms ease;
}

@media (max-width: 980px) {
  .season-timeline {
    left: 24px;
    right: 24px;
    width: auto;
    min-width: 0;
    transform: none;
  }
}

.control-panel::-webkit-scrollbar,
.calendar-scroll::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.control-panel::-webkit-scrollbar-thumb,
.calendar-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 118, 110, 0.18);
}

.panel-section {
  margin: 0 0 6px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.panel-section:first-child {
  padding-top: 0;
}

.panel-section[open] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.48);
}

.panel-section summary {
  position: relative;
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px 0 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(74, 94, 88, 0.62);
  cursor: pointer;
  font-size: 10px;
  font-weight: 640;
  letter-spacing: 0.18em;
  list-style: none;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.26);
}

.panel-section summary::-webkit-details-marker {
  display: none;
}

.panel-section summary::after {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 2px solid rgba(15, 118, 110, 0.68);
  border-bottom: 2px solid rgba(15, 118, 110, 0.68);
  content: "";
  transform: translateY(-65%) rotate(45deg);
  transition: transform 180ms ease;
}

.panel-section[open] summary::after {
  transform: translateY(-35%) rotate(225deg);
}

.panel-body {
  padding: 0 13px 13px;
  animation: panelReveal 180ms ease both;
}

@keyframes panelReveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.current-card {
  border-color: rgba(255, 255, 255, 0.42);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0.08)),
    rgba(255, 255, 255, 0.06);
}

.pollen-panel {
  padding-top: 0;
}

.control-panel .map-toolbar {
  position: static;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: none;
  gap: 8px;
}

.map-tool {
  min-width: 0;
  min-height: 38px;
  padding: 0 10px;
  color: rgba(44, 62, 57, 0.86);
  border-color: rgba(255, 255, 255, 0.38);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.07)),
    rgba(255, 255, 255, 0.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.44),
    0 0 0 1px rgba(255, 255, 255, 0.08);
}

.map-tool.is-active {
  color: #0f766e;
  border-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.32), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 15% 20%, rgba(194, 65, 112, 0.12), transparent 36%),
    radial-gradient(circle at 84% 70%, rgba(16, 185, 129, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    0 8px 24px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
}

.wind-flow-strip,
.pollen-metrics div,
.plant-chip,
.search-input,
.calendar-scroll,
.spot-card,
.current-card {
  border-color: rgba(255, 255, 255, 0.34);
  background-color: rgba(255, 255, 255, 0.08);
}

.plant-chip,
.spot-card,
.search-input {
  color: rgba(44, 62, 57, 0.86);
  backdrop-filter: blur(10px);
}

.spot-card:hover,
.spot-card:focus-visible,
.plant-chip:hover,
.plant-chip:focus-visible,
.search-input:focus-visible,
.map-tool:focus-visible {
  outline: 2px solid rgba(15, 118, 110, 0.22);
  outline-offset: 2px;
}

.source-note p,
.detail-desc,
.spot-meta,
.muted,
.small-count,
.search-label,
.pollen-metrics span,
.density-control span,
.month-ticks {
  color: rgba(74, 94, 88, 0.76);
}

.control-panel .section-title h2,
.source-note h2 {
  color: rgba(58, 77, 72, 0.72);
  font-size: 11px;
  font-weight: 680;
  letter-spacing: 0.12em;
}

.control-panel h2,
.detail-panel h2,
.pollen-metrics strong,
.detail-grid strong,
.spot-title strong {
  color: #17201d;
}

.control-panel #monthLabel {
  color: #17201d;
  font-weight: 720;
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.control-panel #seasonLabel,
.status-pill {
  background: rgba(15, 118, 110, 0.12);
  color: #0f766e;
}

.text-button {
  color: #0f766e;
}

.wind-badge strong,
.month-ticks,
.pollen-metrics strong,
.detail-grid strong,
.small-count,
#listCount {
  font-variant-numeric: tabular-nums lining-nums;
  font-feature-settings: "tnum" 1, "lnum" 1;
}

.search-input {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
  color: rgba(74, 94, 88, 0.38);
}

.plant-chip.is-active {
  border-color: rgba(255, 255, 255, 0.54);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.08)),
    radial-gradient(circle at 16% 20%, rgba(194, 65, 112, 0.12), transparent 34%),
    radial-gradient(circle at 84% 70%, rgba(16, 185, 129, 0.09), transparent 32%),
    rgba(255, 255, 255, 0.06);
  color: #0f766e;
}

.plant-chip.is-context {
  opacity: 0.42;
}

.plant-chip.is-focus:not(.is-active) {
  border-color: color-mix(in srgb, var(--focus-plant-color) 18%, rgba(255, 255, 255, 0.54));
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.control-panel input[type="range"] {
  accent-color: #0f766e;
}

.control-panel input[type="range"]::-webkit-slider-runnable-track {
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.control-panel input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin-top: -5px;
  border: 2px solid rgba(15, 118, 110, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 14px rgba(15, 118, 110, 0.24);
}

.control-panel input[type="range"]::-moz-range-track {
  height: 6px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.control-panel input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border: 2px solid rgba(15, 118, 110, 0.78);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 14px rgba(15, 118, 110, 0.24);
}

.wind-flow-strip {
  background:
    radial-gradient(ellipse at 18% 50%, rgba(15, 118, 110, 0.16), transparent 42%),
    radial-gradient(ellipse at 72% 50%, rgba(194, 65, 112, 0.08), transparent 46%),
    rgba(255, 255, 255, 0.08);
}

.wind-flow-strip::before,
.wind-flow-strip::after {
  background-image: radial-gradient(ellipse at center, rgba(15, 118, 110, 0.38) 0 18%, transparent 60%);
}

@media (max-width: 720px) {
  body {
    overflow: auto;
  }

  .app-shell {
    min-height: 100vh;
    overflow: visible;
  }

  .map-workspace {
    position: relative;
    height: 100vh;
    min-height: 760px;
  }

  .topbar {
    left: 14px;
    top: 14px;
    height: 34px;
    padding: 0 12px;
    gap: 8px;
    font-size: 13px;
  }

  .map-stage {
    min-height: 100vh;
  }

  .wind-badge {
    min-height: 36px;
    padding: 0 11px;
  }

  .real-map .maplibregl-ctrl-group {
    margin: 236px 0 0 14px;
  }

  .control-panel {
    position: fixed;
    left: 0;
    right: 0;
    top: auto;
    bottom: 0;
    z-index: 650;
    width: 100%;
    max-height: 72vh;
    margin: 0;
    padding: 10px 14px 18px;
    border: 0;
    border-radius: 14px 14px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.52);
    box-shadow: 0 -8px 40px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transform: translateY(0);
    transform-origin: bottom center;
    transition:
      transform 280ms cubic-bezier(0.34, 1.12, 0.64, 1),
      opacity 240ms ease,
      visibility 0s linear 0s,
      background 220ms ease;
  }

  body.panel-collapsed .control-panel {
    transform: translateY(24px) scale(1);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 220ms ease,
      opacity 200ms ease,
      visibility 0s linear 220ms,
      background 220ms ease;
  }

  .panel-control-dock {
    top: 18px;
    right: 14px;
    bottom: auto;
  }

  .season-timeline {
    left: 14px;
    right: 14px;
    bottom: 160px;
    width: auto;
    min-width: 0;
    padding: 8px;
  }

  .season-month {
    height: 42px;
    font-size: 11px;
  }
}

@media (max-width: 560px) {
  .map-workspace {
    padding: 0;
  }

  .topbar {
    height: 32px;
    padding: 0 10px;
    gap: 6px;
    font-size: 12px;
  }

  .topbar-sep {
    height: 14px;
  }

  .panel-control-dock {
    top: 14px;
    right: 10px;
    bottom: auto;
    gap: 8px;
  }

  .wind-badge {
    min-height: 44px;
    padding: 0 12px 0 10px;
    font-size: 10px;
  }

  .control-panel .map-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .season-timeline {
    left: 10px;
    right: 10px;
    bottom: 140px;
    gap: 2px;
    padding: 7px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(44px, 1fr);
    scroll-snap-type: x mandatory;
  }

  .season-month {
    height: 38px;
    padding: 4px 2px;
    scroll-snap-align: start;
  }

  .panel-section summary {
    min-height: 42px;
  }

  /* bottom sheet adjustments */
  .control-panel {
    padding: 10px 12px 16px !important;
    max-height: 80vh !important;
  }

  /* bigger tap targets for filter chips */
  .plant-chip {
    min-height: 38px;
  }
}

/* ─── Intro Animation ─── */
.intro-overlay {
  position: absolute;
  inset: 0;
  z-index: 500;
  pointer-events: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 22%;
}

.intro-backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(0, 0, 0, 0.08) 55%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
  transition: opacity 0.8s;
}

.intro-skip {
  position: absolute;
  bottom: 30px;
  right: 30px;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 8px 20px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
  font-family: inherit;
  letter-spacing: 1px;
}

.intro-skip:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.intro-label {
  position: relative;
  text-align: center;
  color: #fff;
  font-size: 28px;
  font-weight: 600;
  letter-spacing: 3px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
  padding: 14px 32px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.intro-label.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.is-intro .real-map {
  pointer-events: none;
}

.is-intro .panel-control-dock {
  pointer-events: none;
}

.is-intro .panel-toggle {
  opacity: 0.3;
  transition: opacity 0.4s;
}

.is-intro .wind-badge {
  opacity: 1;
  pointer-events: auto;
}

.is-intro .season-timeline {
  pointer-events: none;
  opacity: 0.3;
  transition: opacity 0.4s;
}

.is-intro .control-panel {
  pointer-events: none;
}

.is-intro .topbar {
  opacity: 0.3;
  transition: opacity 0.4s;
}

@media (max-width: 640px) {
  .intro-label {
    font-size: 20px;
    padding: 10px 20px;
    letter-spacing: 2px;
  }
  .intro-skip {
    bottom: 16px;
    right: 16px;
    padding: 6px 14px;
    font-size: 12px;
  }
}
