/* ── Tokens ─────────────────────────────────────────── */
:root {
  /* Dark forest palette */
  --forest-deep:   #0a1a14;
  --forest-dark:   #0f2318;
  --forest-mid:    #162e1f;
  --forest-card:   #1a3526;
  --moss:          #2d7a4f;
  --moss-bright:   #3da06a;
  --mist:          #4a9e7e;
  --mist-light:    #7ec4a6;
  --fog-white:     #c8e8da;
  --surface:       #e8f2ed;
  --surface-2:     #d4e9df;

  /* Data colours */
  --amber:         #d4a96a;
  --amber-dim:     #a07840;
  --teal-data:     #4a9ec8;
  --rain-blue:     #6ab4d8;

  /* Text */
  --text-hero:     #e8f2ed;
  --text-dim:      #8fbfaa;
  --text-dimmer:   #4a7a62;
  --text-dark:     #0f2318;
  --text-dark-2:   #2a4a38;

  /* Glow */
  --glow-fog:      0 0 20px rgba(45,122,79,0.5), 0 0 40px rgba(45,122,79,0.2);
  --glow-fog-sm:   0 0 12px rgba(45,122,79,0.4);
  --glow-drizzle:  0 0 20px rgba(74,158,200,0.45), 0 0 40px rgba(74,158,200,0.15);

  /* Type */
  --display: 'Cormorant Garant', Georgia, serif;
  --body:    'DM Sans', system-ui, sans-serif;
  --mono:    'JetBrains Mono', monospace;

  /* Space */
  --r:    12px;
  --r-lg: 20px;
}

/* ── Reset ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--surface);
  color: var(--text-dark);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── Ambient fog layers ─────────────────────────────── */
.fog-ambient {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  overflow: hidden;
}

.fog-1 {
  position: absolute;
  width: 140%; height: 60%;
  top: -10%; left: -20%;
  background: radial-gradient(ellipse, rgba(45,122,79,0.08) 0%, transparent 65%);
  animation: drift1 18s ease-in-out infinite alternate;
}

.fog-2 {
  position: absolute;
  width: 120%; height: 50%;
  bottom: 0; right: -15%;
  background: radial-gradient(ellipse, rgba(74,158,200,0.05) 0%, transparent 60%);
  animation: drift2 24s ease-in-out infinite alternate;
}

@keyframes drift1 { from { transform: translateX(0) translateY(0); } to { transform: translateX(4%) translateY(3%); } }
@keyframes drift2 { from { transform: translateX(0) translateY(0); } to { transform: translateX(-4%) translateY(-2%); } }

body > *:not(.fog-ambient) { position: relative; z-index: 1; }

/* ── Layout ─────────────────────────────────────────── */
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }

/* ── Hero header ────────────────────────────────────── */
.hero {
  background: linear-gradient(170deg, var(--forest-deep) 0%, var(--forest-mid) 60%, var(--forest-card) 100%);
  padding: 20px 0 22px;
  border-bottom: 1px solid rgba(45,122,79,0.25);
  position: sticky; top: 0; z-index: 200;
  overflow: hidden;
}

/* Subtle leaf-vein texture overlay */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(
      105deg,
      transparent 0px,
      transparent 80px,
      rgba(45,122,79,0.04) 80px,
      rgba(45,122,79,0.04) 81px
    );
  pointer-events: none;
}

.hero-inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  position: relative;
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--mist);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.hero-title {
  display: flex;
  align-items: baseline;
  gap: 14px;
  line-height: 1;
}

.hero-title-main {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300;
  color: var(--text-hero);
  letter-spacing: -0.02em;
}

.hero-title-sub {
  font-family: var(--display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 300;
  font-style: italic;
  color: var(--moss-bright);
  letter-spacing: -0.02em;
}

.hero-title-year {
  font-family: var(--mono);
  font-size: clamp(0.85rem, 2.2vw, 1.1rem);
  font-weight: 500;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  align-self: center;
}

.hero-desc {
  font-family: var(--body);
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-weight: 300;
}

.hero-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(45,122,79,0.2);
  border: 1px solid rgba(45,122,79,0.4);
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 4px;
}

.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--moss-bright);
  box-shadow: 0 0 6px var(--moss-bright);
  animation: livepulse 2s ease-in-out infinite;
}

@keyframes livepulse {
  0%,100% { opacity: 1; box-shadow: 0 0 6px var(--moss-bright); }
  50% { opacity: 0.5; box-shadow: none; }
}

.live-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--moss-bright);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.updated-time {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dim);
}

.next-update {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dimmer);
}

/* ── Zone section ───────────────────────────────────── */
.zone-section {
  background: linear-gradient(180deg, var(--forest-dark) 0%, var(--forest-mid) 100%);
  padding: 24px 0 30px;
  border-bottom: 1px solid rgba(45,122,79,0.15);
}

.zone-sort-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.zone-sort-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6a9a82;
  white-space: nowrap;
}

.zone-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 480px)  { .zone-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 720px)  { .zone-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .zone-grid { grid-template-columns: repeat(5, 1fr); } }

/* ── Zone card ──────────────────────────────────────── */
.zone-card {
  background: rgba(26,53,38,0.7);
  border: 1px solid rgba(45,122,79,0.2);
  border-radius: var(--r);
  padding: 16px 14px;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.18s, background 0.25s;
  backdrop-filter: blur(8px);
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

/* Moisture sheen on hover */
.zone-card::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(74,158,126,0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.zone-card:hover::before { opacity: 1; }

.zone-card:hover {
  border-color: rgba(45,122,79,0.5);
  transform: translateY(-2px);
}

.zone-card.active {
  border-color: var(--moss);
  background: rgba(26,53,38,0.9);
  box-shadow: var(--glow-fog-sm);
}

/* ✦ THE SIGNATURE ELEMENT — fog/drizzle glow ✦ */
.zone-card.is-foggy {
  border-color: var(--moss-bright);
  box-shadow: var(--glow-fog);
  animation: fogpulse 3s ease-in-out infinite;
}

.zone-card.is-drizzle {
  border-color: var(--teal-data);
  box-shadow: var(--glow-drizzle);
  animation: drizzlepulse 4s ease-in-out infinite;
}

.zone-card.is-foggy.is-drizzle {
  border-color: var(--mist-light);
  box-shadow: var(--glow-fog), var(--glow-drizzle);
}

@keyframes fogpulse {
  0%,100% { box-shadow: var(--glow-fog); }
  50% { box-shadow: 0 0 28px rgba(45,122,79,0.7), 0 0 56px rgba(45,122,79,0.25); }
}

@keyframes drizzlepulse {
  0%,100% { box-shadow: var(--glow-drizzle); }
  50% { box-shadow: 0 0 28px rgba(74,158,200,0.65), 0 0 56px rgba(74,158,200,0.2); }
}

.zone-card.skeleton { opacity: 0.35; pointer-events: none; }
.zone-card.hidden   { display: none; }

.zcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.zcard-icon { font-size: 1.1rem; line-height: 1; }

.zcard-group {
  font-family: var(--mono);
  font-size: 0.55rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.zcard-name {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.zcard-temp {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 300;
  color: var(--text-hero);
  line-height: 1;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.zcard-temp .temp-unit {
  font-size: 1.1rem;
  color: var(--text-dim);
}

.zcard-desc {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 10px;
  line-height: 1.4;
}

.zcard-badges { display: flex; gap: 4px; flex-wrap: wrap; }

.badge {
  padding: 2px 8px;
  border-radius: 20px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.badge-fog    { background: rgba(45,122,79,0.25); color: var(--mist-light); border: 1px solid rgba(45,122,79,0.4); }
.badge-drizzle{ background: rgba(74,158,200,0.2); color: var(--rain-blue);  border: 1px solid rgba(74,158,200,0.35); }
.badge-cool   { background: rgba(74,158,200,0.12); color: var(--teal-data); border: 1px solid rgba(74,158,200,0.2); }
.badge-hot    { background: rgba(212,169,106,0.15); color: var(--amber);    border: 1px solid rgba(212,169,106,0.3); }
.badge-humid  { background: rgba(45,122,79,0.15); color: var(--mist);      border: 1px solid rgba(45,122,79,0.25); }

/* ── Content sections (light) ───────────────────────── */
.content-section {
  padding: 32px 0;
  border-bottom: 1px solid var(--surface-2);
}

.content-section:last-of-type { border-bottom: none; }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.section-title {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.section-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--moss);
  text-transform: lowercase;
}

/* ── Best days ──────────────────────────────────────── */
.best-grid { display: flex; flex-direction: column; gap: 8px; }

.best-row {
  display: grid;
  grid-template-columns: 120px 70px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--surface-2);
  border-radius: var(--r);
  font-size: 0.78rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.best-row:hover { border-color: var(--mist-light); box-shadow: 0 2px 12px rgba(45,122,79,0.08); }

@media (min-width: 600px) {
  .best-row { grid-template-columns: 120px 70px 1fr 80px 80px 60px; }
  .best-row .br-fog, .best-row .br-driz, .best-row .br-score { display: flex; }
}

.best-row .br-fog, .best-row .br-driz, .best-row .br-score { display: none; }

.br-date { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dark-2); }
.br-temp { font-family: var(--display); font-size: 1.2rem; color: var(--text-dark); }
.br-cond { color: var(--text-dark-2); font-size: 0.74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-fog  { font-family: var(--mono); font-size: 0.65rem; color: var(--moss); }
.br-driz { font-family: var(--mono); font-size: 0.65rem; color: var(--teal-data); }

.score-dots { display: flex; gap: 3px; }
.sdot { width: 7px; height: 7px; border-radius: 50%; background: var(--surface-2); }
.sdot.on { background: var(--moss); }
.sdot.on.high { background: var(--teal-data); }

/* ── Controls ───────────────────────────────────────── */
.controls-bar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.control-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.bottom-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.ctrl-cluster {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ctrl-label {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.seg-group {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}

.seg {
  padding: 4px 11px;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-family: var(--body);
  font-size: 0.73rem;
  color: var(--text-dark-2);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.seg.active {
  background: var(--moss);
  color: #fff;
  font-weight: 500;
}

.seg:not(.active):hover { background: var(--surface-2); }

/* Zone pills */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.zpill {
  padding: 4px 12px;
  border: 1px solid var(--surface-2);
  border-radius: 20px;
  background: var(--surface);
  font-family: var(--body);
  font-size: 0.72rem;
  color: var(--text-dark-2);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.zpill.active {
  background: var(--forest-card);
  border-color: var(--moss);
  color: var(--mist-light);
}

.zpill:not(.active):hover { border-color: var(--moss); color: var(--moss); }

/* Compare pills */
.compare-pills { margin-bottom: 16px; }

.cpill {
  padding: 4px 12px;
  border: 1px solid var(--surface-2);
  border-radius: 20px;
  background: var(--surface);
  font-family: var(--body);
  font-size: 0.72rem;
  color: var(--text-dark-2);
  cursor: pointer;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
}

.cpill.active { color: #fff; border-color: transparent; }
.cpill:not(.active):hover { border-color: var(--moss); color: var(--moss); }

/* Toggle */
.toggle-wrap {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; font-family: var(--body); font-size: 0.72rem; color: var(--text-dark-2);
}

.toggle-input { display: none; }

.toggle-pill {
  width: 34px; height: 18px;
  background: var(--surface-2);
  border-radius: 9px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
}

.toggle-pill::after {
  content: '';
  position: absolute;
  left: 3px; top: 3px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.toggle-input:checked + .toggle-pill { background: var(--moss); }
.toggle-input:checked + .toggle-pill::after { transform: translateX(16px); }

/* ── Charts ─────────────────────────────────────────── */
.chart-canvas-wrap { position: relative; height: 280px; }
.chart-canvas-wrap.short { height: 110px; }

/* Centered empty/error message overlaid on a chart area */
.chart-msg {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 16px;
  font-family: var(--mono); font-size: 0.78rem; line-height: 1.5;
  color: var(--text-dimmer); pointer-events: none;
}

@media (min-width: 640px) { .chart-canvas-wrap { height: 320px; } }

/* ── Stats row ──────────────────────────────────────── */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 20px;
  background: var(--surface-2);
  border-radius: var(--r);
  overflow: hidden;
  border: 1px solid var(--surface-2);
}

@media (min-width: 640px) { .stats-row { grid-template-columns: repeat(6, 1fr); } }

.stat-cell {
  background: #fff;
  padding: 12px 14px;
  text-align: center;
}

.stat-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.stat-val {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  color: var(--text-dark);
}

.fog-stat .stat-val     { color: var(--moss); }
.drizzle-stat .stat-val { color: var(--teal-data); }

/* ── Heatmap ─────────────────────────────────────────── */
.heatmap-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-top: 8px;
}

.hm-cell {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--surface);
  border: 1px solid var(--surface-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-family: var(--mono);
  color: var(--text-dimmer);
  cursor: default;
  transition: transform 0.1s;
  position: relative;
}

.hm-cell:hover { transform: scale(1.08); z-index: 2; }

.hm-cell.fog-1 { background: rgba(45,122,79,0.18); border-color: rgba(45,122,79,0.3); }
.hm-cell.fog-2 { background: rgba(45,122,79,0.40); border-color: rgba(45,122,79,0.55); color: #fff; }
.hm-cell.fog-3 { background: rgba(45,122,79,0.68); border-color: rgba(45,122,79,0.8); color: #fff; box-shadow: 0 0 8px rgba(45,122,79,0.3); }
.hm-cell.driz-1 { background: rgba(74,158,200,0.18); border-color: rgba(74,158,200,0.3); }
.hm-cell.driz-2 { background: rgba(74,158,200,0.40); border-color: rgba(74,158,200,0.55); color: #fff; }
.hm-cell.driz-3 { background: rgba(74,158,200,0.68); border-color: rgba(74,158,200,0.8); color: #fff; box-shadow: 0 0 8px rgba(74,158,200,0.3); }
.hm-cell.both   { background: rgba(45,100,80,0.65); border-color: rgba(45,100,80,0.85); color: #fff; box-shadow: 0 0 10px rgba(45,158,126,0.35); }

.hm-day   { font-size: 0.6rem; line-height: 1; }
.hm-icons { font-size: 0.65rem; line-height: 1; margin-top: 2px; }

.heatmap-legend {
  display: flex; gap: 14px; margin-top: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.62rem; color: var(--text-dark-2);
}

.leg-item { display: flex; align-items: center; gap: 5px; }
.leg-sw { width: 10px; height: 10px; border-radius: 3px; }

/* ── Skeletons ──────────────────────────────────────── */
.skel-row {
  height: 46px;
  border-radius: var(--r);
  background: linear-gradient(90deg, var(--surface) 25%, var(--surface-2) 50%, var(--surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
  margin-bottom: 8px;
}

@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Footer ─────────────────────────────────────────── */
.site-footer {
  background: var(--forest-dark);
  padding: 20px 0 28px;
  border-top: 1px solid rgba(45,122,79,0.2);
  font-size: 0.7rem;
  color: var(--text-dimmer);
  text-align: center;
}

.site-footer a { color: var(--mist); text-decoration: none; }
.site-footer a:hover { color: var(--mist-light); }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 22px 0 26px; }
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .hero-meta { align-items: flex-start; flex-direction: row; flex-wrap: wrap; gap: 8px; }
  .content-section { padding: 22px 0; }
  .ctrl-cluster { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ── Forecast section ───────────────────────────────────── */
.forecast-section { background: var(--surface); }

.forecast-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

@media (min-width: 500px)  { .forecast-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 760px)  { .forecast-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1000px) { .forecast-grid { grid-template-columns: repeat(7, 1fr); } }

/* Forecast day card */
.fcast-card {
  background: #fff;
  border: 1.5px solid var(--surface-2);
  border-radius: var(--r);
  padding: 14px 12px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}

.fcast-card:hover {
  border-color: var(--mist-light);
  box-shadow: 0 4px 18px rgba(45,122,79,0.12);
  transform: translateY(-2px);
}

/* Glow for high-scoring days */
.fcast-card.score-great {
  border-color: var(--moss);
  box-shadow: 0 0 0 1px rgba(45,122,79,0.3), 0 4px 16px rgba(45,122,79,0.15);
}

.fcast-card.score-perfect {
  border-color: var(--moss-bright);
  box-shadow: 0 0 14px rgba(61,160,106,0.4), 0 0 28px rgba(61,160,106,0.15);
  animation: forecastpulse 3s ease-in-out infinite;
}

@keyframes forecastpulse {
  0%,100% { box-shadow: 0 0 14px rgba(61,160,106,0.4), 0 0 28px rgba(61,160,106,0.15); }
  50% { box-shadow: 0 0 22px rgba(61,160,106,0.6), 0 0 44px rgba(61,160,106,0.2); }
}

.fcast-card.score-decent { border-color: var(--surface-2); }

.fcast-date {
  font-family: var(--mono);
  font-size: 0.6rem;
  color: var(--text-dimmer);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.fcast-dow {
  font-family: var(--display);
  font-size: 1.1rem;
  color: var(--text-dark);
  font-weight: 400;
  margin-bottom: 8px;
  line-height: 1;
}

.fcast-temp {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 300;
  line-height: 1;
  margin-bottom: 2px;
  letter-spacing: -0.02em;
}

.fcast-temp-range {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dimmer);
  margin-bottom: 8px;
}

.fcast-desc {
  font-size: 0.68rem;
  color: var(--text-dark-2);
  margin-bottom: 8px;
  line-height: 1.3;
  min-height: 2em;
}

.fcast-indicators {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 8px;
}

.fcast-ind {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.6rem;
}

.fcast-ind.fog-ind   { color: var(--moss); }
.fcast-ind.driz-ind  { color: var(--teal-data); }
.fcast-ind.hum-ind   { color: var(--text-dimmer); }

.ind-bar-wrap {
  flex: 1;
  height: 3px;
  background: var(--surface-2);
  border-radius: 2px;
  overflow: hidden;
}

.ind-bar {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.fog-bar  { background: var(--moss); }
.driz-bar { background: var(--teal-data); }
.hum-bar  { background: var(--mist-light); }

.fcast-rating {
  font-family: var(--mono);
  font-size: 0.6rem;
  padding: 3px 7px;
  border-radius: 20px;
  display: inline-block;
  font-weight: 500;
}

.rating-perfect { background: rgba(45,122,79,0.18); color: var(--moss); border: 1px solid rgba(45,122,79,0.3); }
.rating-great   { background: rgba(74,158,200,0.15); color: var(--teal-data); border: 1px solid rgba(74,158,200,0.25); }
.rating-good    { background: rgba(143,191,170,0.2); color: var(--text-dark-2); border: 1px solid var(--surface-2); }
.rating-decent  { background: var(--surface); color: var(--text-dimmer); border: 1px solid var(--surface-2); }
.rating-poor    { background: var(--surface); color: var(--text-dimmer); border: 1px solid var(--surface-2); }

/* ── Hourly breakdown panel ──────────────────────────────── */
.hourly-panel {
  margin-top: 16px;
  background: var(--forest-dark);
  border-radius: var(--r);
  padding: 20px;
  color: var(--text-hero);
}

.hourly-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.hourly-title {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--fog-white);
}

.close-hourly {
  background: rgba(45,122,79,0.2);
  border: 1px solid rgba(45,122,79,0.3);
  border-radius: 6px;
  color: var(--mist-light);
  font-family: var(--mono);
  font-size: 0.68rem;
  padding: 4px 10px;
  cursor: pointer;
}

.hourly-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

@media (min-width: 600px)  { .hourly-grid { grid-template-columns: repeat(6, 1fr); } }
@media (min-width: 900px)  { .hourly-grid { grid-template-columns: repeat(8, 1fr); } }
@media (min-width: 1100px) { .hourly-grid { grid-template-columns: repeat(12, 1fr); } }

.hour-cell {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(45,122,79,0.15);
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
}

.hour-cell.is-fog   { border-color: rgba(45,122,79,0.5); background: rgba(45,122,79,0.12); }
.hour-cell.is-driz  { border-color: rgba(74,158,200,0.5); background: rgba(74,158,200,0.10); }
.hour-cell.is-both  { border-color: rgba(74,200,150,0.6); background: rgba(45,122,79,0.18); box-shadow: 0 0 8px rgba(61,160,106,0.2); }

.hour-time {
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--text-dimmer);
  margin-bottom: 3px;
}

.hour-temp {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--text-hero);
  line-height: 1;
  margin-bottom: 3px;
}

.hour-icon { font-size: 0.75rem; }

/* ── Forecast zone pills ─────────────────────────────────── */
.forecast-zone-pills .zpill { font-size: 0.7rem; padding: 3px 10px; }

/* ── Dashboard group tabs bar ───────────────────────────── */
.dash-tabs-bar {
  background: #fff;
  border-bottom: 2px solid var(--moss);
  padding: 10px 0;
}

.dash-tabs-bar .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dash-tabs-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}

.dash-tabs-row {
  display: flex;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.dash-tabs-row::-webkit-scrollbar { display: none; }

.dtab {
  padding: 5px 16px;
  border: 1.5px solid var(--surface-2);
  border-radius: 20px;
  background: var(--surface);
  font-family: var(--body);
  font-size: 0.73rem;
  color: var(--text-dark-2);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  -webkit-tap-highlight-color: transparent;
  font-weight: 400;
}

.dtab:hover {
  border-color: var(--moss);
  color: var(--moss);
  background: #fff;
}

.dtab.active {
  background: var(--moss);
  border-color: var(--moss);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(45,122,79,0.25);
}

/* ── Chart background panel ─────────────────────────────── */
.chart-bg {
  background: var(--forest-dark);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 0;
  border: 1px solid rgba(45,122,79,0.2);
}

/* Override tick and grid colors inside dark chart bg */
.chart-bg canvas { display: block; }

/* ── Fog container also needs bg when in bar mode ─────── */
#fog-container .chart-canvas-wrap {
  background: var(--forest-dark);
  border-radius: var(--r);
  padding: 14px;
  border: 1px solid rgba(45,122,79,0.2);
}

/* ── Request a location + Feedback forms ──────────────── */
.loc-request {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 760px) {
  .loc-request { grid-template-columns: 1fr; }
}

.loc-map-wrap {
  background: var(--forest-dark);
  border: 1px solid rgba(45,122,79,0.2);
  border-radius: var(--r);
  padding: 8px;
}
#loc-map {
  height: 320px;
  width: 100%;
  border-radius: 8px;
  z-index: 0;            /* keep Leaflet panes under sticky UI */
}
.loc-map-tip {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--text-dimmer);
  margin: 8px 2px 2px;
}

.loc-form {
  background: var(--forest-dark);
  border: 1px solid rgba(45,122,79,0.2);
  border-radius: var(--r);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.loc-field { display: flex; flex-direction: column; gap: 6px; }
.loc-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.loc-opt { color: var(--text-dimmer); text-transform: none; letter-spacing: 0; }

.loc-form input,
.loc-form textarea {
  font-family: var(--body);
  font-size: 0.9rem;
  color: var(--text-hero);
  background: var(--forest-mid);
  border: 1px solid rgba(45,122,79,0.3);
  border-radius: 8px;
  padding: 10px 12px;
  width: 100%;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.loc-form textarea { resize: vertical; min-height: 84px; }
.loc-form input::placeholder,
.loc-form textarea::placeholder { color: var(--text-dimmer); }
.loc-form input:focus,
.loc-form textarea:focus {
  border-color: var(--moss-bright);
  box-shadow: 0 0 0 3px rgba(61,160,106,0.15);
}

.loc-coords { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.loc-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.loc-btn {
  font-family: var(--body);
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, opacity 0.15s;
}
.loc-btn.primary { background: var(--moss); color: var(--surface); }
.loc-btn.primary:hover { background: var(--moss-bright); }
.loc-btn.ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: rgba(45,122,79,0.4);
}
.loc-btn.ghost:hover { color: var(--text-hero); border-color: var(--moss-bright); }
.loc-btn:disabled { opacity: 0.5; cursor: default; }

.loc-status { font-family: var(--mono); font-size: 0.74rem; min-height: 1em; }
.loc-status.ok  { color: var(--moss-bright); }
.loc-status.err { color: var(--amber); }

/* Submitted lists */
.loc-list-wrap { margin-top: 18px; }
.loc-list-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.loc-list-title {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
}
.loc-refresh {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid rgba(45,122,79,0.3);
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
}
.loc-refresh:hover { color: var(--text-hero); border-color: var(--moss-bright); }

.loc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.loc-empty { font-family: var(--mono); font-size: 0.74rem; color: var(--text-dimmer); }
.loc-item {
  background: var(--forest-dark);
  border: 1px solid rgba(45,122,79,0.2);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.loc-item-main { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.loc-item-name { font-family: var(--body); font-size: 0.9rem; font-weight: 500; color: var(--text-hero); }
.loc-item-coords { font-family: var(--mono); font-size: 0.68rem; color: var(--text-dim); white-space: nowrap; }
.loc-item-note { font-family: var(--body); font-size: 0.8rem; color: var(--text-dim); }
.loc-item-meta { font-family: var(--mono); font-size: 0.66rem; color: var(--text-dimmer); }
.loc-item-map { font-family: var(--mono); font-size: 0.68rem; color: var(--mist-light); text-decoration: none; }
.loc-item-map:hover { text-decoration: underline; }
.loc-item-rating { color: var(--amber); font-size: 0.8rem; letter-spacing: 1px; }

/* Feedback specifics */
.fb-top { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: start; }
@media (max-width: 520px) { .fb-top { grid-template-columns: 1fr; } }
.fb-stars { display: flex; gap: 2px; }
.fb-star {
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-dimmer);
  padding: 0 1px;
  transition: color 0.12s;
}
.fb-star:hover, .fb-star.on { color: var(--amber); }
