/* ═══════════════════════════════════════════════════════════════════════════
   NEW ENGLAND SKI DECISION ENGINE — styles
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --bg: #f3f8fd;
  --panel: #ffffff;
  --panel-2: #edf4ff;
  --text: #1b2a3a;
  --muted: #667a96;
  --accent: #2b6de9;
  --accent-2: #22b38a;
  --accent-warm: #f59e0b;
  --border: #d6e1f0;
  --border-light: #c7d6ea;
  --danger: #d95b5b;
  --shadow: 0 12px 30px rgba(30,60,100,.08);
  --shadow-sm: 0 4px 16px rgba(30,60,100,.06);
  --radius: 20px;
  --radius-sm: 12px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'DM Sans', system-ui, sans-serif;
  background: linear-gradient(180deg, #f7fbff 0%, #eef5fb 100%);
  color: var(--text);
  line-height: 1.5;
}

/* ── Top Nav ────────────────────────────────────────────────────────────── */
.top-nav {
  position: sticky; top: 0; z-index: 1000;
  backdrop-filter: blur(14px);
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--border);
}
.top-nav-inner {
  width: calc(100vw - 24px);
  margin: 0 auto;
  display: flex; align-items: center; gap: 6px;
  overflow-x: auto; padding: 8px 0;
}
.nav-brand {
  font-weight: 800; font-size: 15px; letter-spacing: -.01em;
  padding: 8px 14px; white-space: nowrap; color: var(--accent);
  margin-right: 4px;
}
.top-nav a {
  text-decoration: none; color: var(--text); font-weight: 600; font-size: 13px;
  padding: 8px 12px; border-radius: 999px; border: 1px solid transparent;
  white-space: nowrap; transition: background .12s, color .12s;
}
.top-nav a:hover { background: #edf4ff; color: var(--accent); border-color: var(--border); }
.nav-share {
  margin-left: auto; flex-shrink: 0;
  background: var(--accent); color: #fff;
  border: none; border-radius: 999px;
  padding: 8px 14px; font: 600 13px/1 inherit;
  cursor: pointer; white-space: nowrap;
  transition: opacity .12s;
}
.nav-share:hover { opacity: .88; }
.btn-ghost {
  background: none; border: 1.5px solid var(--border-light);
  border-radius: 999px; padding: 8px 14px;
  font: 600 13px/1 inherit; cursor: pointer; white-space: nowrap;
  transition: background .12s;
}
.btn-ghost:hover { background: #edf4ff; }

/* ── Layout ─────────────────────────────────────────────────────────────── */
.container {
  width: calc(100vw - 24px);
  margin: 0 auto;
  padding: 20px 0 64px;
  display: grid; gap: 16px;
}
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.99), rgba(247,251,255,.98));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel { padding: 20px; }

/* Sticky-nav anchor offsets */
#plannerSection,
#verdictSection,
#stormSection,
#hiddenGemSection,
#compareSection,
#mapSection,
#detailSection {
  scroll-margin-top: 64px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.eyebrow {
  font-family: 'DM Mono', monospace; color: var(--accent);
  font-size: 10px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; margin-bottom: 4px;
}
h1 { font-size: clamp(26px, 3.5vw, 42px); line-height: 1.05; margin: 0 0 10px; }
h2 { font-size: 18px; line-height: 1.2; margin: 0; }
h3 { font-size: 15px; margin: 0; }
p, .muted, .helper-text { color: var(--muted); margin: 0; }
.small { font-size: 13px; }

/* ── Stats bar (top of page) ─────────────────────────────────────────────── */
.stats-bar { padding: 6px 20px; }
.stats-strip {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 0;
}
.stats-strip .summary-card {
  flex: 1; min-width: 80px;
  border-radius: 0; border: none;
  border-right: 1px solid var(--border);
  box-shadow: none; background: transparent;
  padding: 7px 12px; text-align: center;
}
.stats-strip .summary-card:last-child { border-right: none; }
.stats-strip .summary-label { font-size: 9px; margin-bottom: 2px; }
.stats-strip .summary-value { font-size: 15px; }
.stats-strip .summary-sub   { font-size: 10px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 26px 28px;
  background:
    radial-gradient(ellipse at 90% 0%, rgba(43,109,233,.1), transparent 50%),
    radial-gradient(ellipse at 10% 95%, rgba(34,179,138,.07), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.99), rgba(244,249,255,.98));
}
.hero-copy { display: flex; flex-direction: column; gap: 18px; }
.hero-text  { font-size: 14px; line-height: 1.6; max-width: 640px; }

/* step blocks inside hero */
.hero-block {
  background: rgba(43,109,233,.04);
  border: 1px solid rgba(43,109,233,.12);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.hero-block-label {
  font-size: 12px; font-weight: 700; color: var(--text);
  letter-spacing: .02em;
}
.hero-right {
  display: flex; flex-direction: column; gap: 10px;
  justify-content: center;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.location-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: flex-end;
  max-width: 460px;
}
.search-compare-row { display: flex; gap: 8px; align-items: flex-end; }

/* Summary stats */
.summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.summary-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 14px; padding: 14px; box-shadow: var(--shadow-sm);
}
.summary-label { font-size: 10px; font-family: 'DM Mono', monospace; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 5px; }
.summary-value { font-size: 20px; font-weight: 800; }
.summary-sub   { font-size: 11px; color: var(--muted); }

/* ── Search suggest panel ───────────────────────────────────────────────── */
.search-suggest-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(30,60,100,.12);
  overflow: hidden;
  margin-top: 2px;
}
.sg-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 11px 14px;
  border-bottom: 1px solid rgba(0,0,0,.05);
  cursor: pointer; transition: background .1s;
}
.sg-row:last-child { border-bottom: none; }
.sg-row:hover { background: #f4f8ff; }
.sg-info { flex: 1; min-width: 0; }
.sg-name { font-weight: 700; font-size: 14px; display: block; }
.sg-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sg-pass { font-weight: 600; }
.sg-pass-epic { color: #2b6de9; }
.sg-pass-ikon { color: #8a4dff; }
.sg-pass-indy { color: #22b38a; }
.sg-pass-independent { color: #90a4be; }
.sg-drive { color: var(--muted); }
.sg-actions { display: flex; gap: 7px; flex-shrink: 0; }
.sg-btn {
  font: 600 11px/1 inherit; border-radius: 999px;
  padding: 5px 11px; cursor: pointer; border: 1px solid var(--border);
  transition: background .1s, border-color .1s, color .1s;
}
.sg-view    { background: #fff; color: var(--text); }
.sg-view:hover { background: #edf4ff; border-color: var(--accent); color: var(--accent); }
.sg-compare { background: #fff; color: var(--accent); border-color: rgba(43,109,233,.35); }
.sg-compare:hover { background: rgba(43,109,233,.08); }
.sg-compare-active {
  background: rgba(43,109,233,.1) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
}

/* ── Form elements ──────────────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; }
.field-grow { flex: 1; }
.field-mini { width: 110px; }
label {
  font-size: 11px; font-weight: 700; color: var(--muted);
  margin-bottom: 5px; font-family: 'DM Mono', monospace;
  text-transform: uppercase; letter-spacing: .07em;
}
input, select {
  width: 100%; font: inherit; color: var(--text);
  background: #fff; border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: 10px 12px;
  transition: border-color .12s;
}
input:focus, select:focus { outline: none; border-color: var(--accent); }
button { font: inherit; }
.btn, .map-mode-btn {
  cursor: pointer; border-radius: 999px;
  border: 1px solid var(--border-light);
  padding: 10px 16px; background: #fff; color: var(--text); font-weight: 700;
  transition: background .12s, border-color .12s, color .12s;
}
.btn-primary  { background: linear-gradient(135deg, #2b6de9, #4a92ff); color: #fff; border: none; }
.btn-primary:hover { opacity: .9; }
.btn-secondary { background: #fff; }
.btn-secondary:hover { background: #f0f6ff; border-color: var(--accent); color: var(--accent); }
.btn-outline {
  background: #fff; color: var(--text); border: 1.5px solid #d1d5db;
  font-weight: 500;
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: #f0f6ff; }
/* Resort name links in Also Consider / Also in the Running */
.verdict-resort-link {
  background: none; border: none; padding: 0; margin: 0;
  font: inherit; text-align: left; cursor: pointer;
  color: var(--accent); text-decoration: underline;
  text-decoration-color: transparent;
  transition: text-decoration-color 0.15s;
}
.verdict-resort-link:hover { text-decoration-color: currentColor; }
.btn-secondary[aria-pressed="true"] {
  background: rgba(43,109,233,.1); border-color: rgba(43,109,233,.4); color: var(--accent);
}

/* ── Planner section ────────────────────────────────────────────────────── */
.weight-summary { font-size: 12px; color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.weight-summary strong { color: var(--text); }
.score-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.score-control {
  background: rgba(255,255,255,.8); border: 1px solid var(--border);
  border-radius: 14px; padding: 13px 14px;
}
.score-control-label {
  font-family: 'DM Sans', system-ui, sans-serif;
  color: var(--text); font-size: 13px; font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.score-desc { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.5; font-weight: 400; }
.slider-hint { font-size: 11px; color: var(--muted); margin-top: 7px; line-height: 1.4; }

/* Priority buttons — default stacked layout (overridden in planner-col) */
.priority-btns {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.priority-btn {
  flex: 1;
  padding: 7px 11px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.3;
  white-space: nowrap;
}
.priority-btn:hover { border-color: var(--accent); color: var(--accent); }
.priority-btn.active {
  background: var(--accent); border-color: var(--accent);
  color: #fff;
}

/* ── Toolbar (filters only) ─────────────────────────────────────────────── */
.toolbar { padding: 14px 18px; }
.toolbar-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.toolbar-label {
  font-size: 11px; font-weight: 700; font-family: 'DM Mono', monospace;
  text-transform: uppercase; letter-spacing: .1em; color: var(--muted);
  white-space: nowrap; flex-shrink: 0;
}
.toolbar-controls {
  display: flex; flex-wrap: wrap; gap: 10px; flex: 1;
}
.toolbar-controls .field { min-width: 120px; flex: 1; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.active-filters:empty { display: none; margin: 0; }
.filter-pill, .metric-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border-radius: 999px;
  background: rgba(43,109,233,.08); color: var(--accent);
  font-size: 12px; font-weight: 700;
}
button.metric-chip {
  border: none; cursor: pointer; font: inherit;
  transition: background 0.15s, opacity 0.15s;
}
button.metric-chip:hover { background: rgba(43,109,233,.18); }

/* ── Verdict / Should I Go ──────────────────────────────────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════
   VERDICT CARD — full redesign
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Placeholder (before results load) ─────────────────────────────────── */
.vcard-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 44px 28px;
  gap: 10px;
  min-height: 200px;
}
.vcard-placeholder-icon { font-size: 36px; line-height: 1; opacity: .4; }
.vcard-placeholder-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  opacity: .6;
}
.vcard-placeholder-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 28ch;
  line-height: 1.55;
}

/* ── Card wrapper ───────────────────────────────────────────────────────── */
.vcard {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  border-radius: inherit;
  overflow: hidden;
}

/* ── Hero header — full-bleed, tinted by condition tier ─────────────────── */
.vcard-hero {
  position: relative;
  padding: 20px 22px 18px;
  border-bottom: 1px solid transparent;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Tier-tinted wash backgrounds */
.vcard-hero--great   { background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%); border-bottom-color: #bbf7d0; }
.vcard-hero--good    { background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%); border-bottom-color: #bfdbfe; }
.vcard-hero--marginal{ background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%); border-bottom-color: #fde68a; }
.vcard-hero--bad     { background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%); border-bottom-color: #fecdd3; }

/* "YOUR RECOMMENDED MOUNTAIN" eyebrow */
.vcard-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1;
}

/* Mountain name — the dominant element */
.vcard-name {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--text);
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  transition: color .12s;
  letter-spacing: -.02em;
}
.vcard-name:hover { color: var(--accent); }

/* Condition badge — pill in bottom-right of hero */
.vcard-condition-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  padding: 5px 12px 5px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid transparent;
}
.vcard-condition-badge--great   { background: #dcfce7; border-color: #86efac; color: #15803d; }
.vcard-condition-badge--good    { background: #dbeafe; border-color: #93c5fd; color: #1d4ed8; }
.vcard-condition-badge--marginal{ background: #fef3c7; border-color: #fcd34d; color: #92400e; }
.vcard-condition-badge--bad     { background: #ffe4e6; border-color: #fca5a5; color: #be123c; }
.vcard-condition-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── Body — content column below hero ──────────────────────────────────── */
.vcard-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px 22px 18px;
  overflow-y: auto;
}

.vcard-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}
.vcard-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 11px;
  background: rgba(255,255,255,.7);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  backdrop-filter: blur(4px);
}
.vcard-chip--pass {
  font-weight: 700;
  /* inline style sets brand color */
}
.vcard-chip--link {
  text-decoration: none;
  font-weight: 700;
  transition: background .12s;
}
.vcard-chip--link:hover { background: rgba(255,255,255,.95); }

/* ── AI write-up slot ───────────────────────────────────────────────────── */
.vcard-writeup {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.65;
  padding: 12px 14px;
  background: var(--panel-2);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
}
.vcard-writeup--loading {
  min-height: 3em;
  border-left-color: var(--border);
  background: linear-gradient(90deg, #f3f4f6 25%, #e9ecf0 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ── Verdict: condition headline + detail ───────────────────────────────── */
.vcard-verdict { display: flex; flex-direction: column; gap: 8px; }

.vcard-headline {
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.25;
}
.vcard-headline--great   { color: #15803d; }
.vcard-headline--good    { color: #1d4ed8; }
.vcard-headline--marginal{ color: #b45309; }
.vcard-headline--bad     { color: #dc2626; }

.vcard-detail {
  font-size: 0.88rem;
  color: #374151;
  line-height: 1.7;
}

.vcard-points {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 0.83rem;
  color: #6b7280;
}
.vcard-points li { margin-bottom: 3px; }

/* ── 3-day forecast strip ───────────────────────────────────────────────── */
.vcard-forecast {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.vcard-fc-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  text-align: center;
}
.vcard-fc-day  { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vcard-fc-amt  { font-size: 16px; font-weight: 800; color: var(--text); line-height: 1; }
.vcard-fc-temps{ font-size: 10px; color: var(--muted); }

.vcard-fc-pow  { background: rgba(29,78,216,.07); border-color: rgba(29,78,216,.25); }
.vcard-fc-pow .vcard-fc-amt { color: #1d4ed8; }
.vcard-fc-snow { background: rgba(59,130,246,.05); border-color: rgba(59,130,246,.2); }
.vcard-fc-snow .vcard-fc-amt { color: #2b6de9; }
.vcard-fc-dry  .vcard-fc-amt { color: var(--muted); font-size: 14px; }

/* ── No-origin nudge ────────────────────────────────────────────────────── */
.vcard-no-origin {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #fefce8;
  border: 1px solid #fde68a;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  color: #92400e;
}
.vcard-no-origin-icon { font-size: 14px; flex-shrink: 0; }

/* ── Also in the running ────────────────────────────────────────────────── */
.vcard-alts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
/* Header row: "Also in the running" label + range selector */
.vcard-alts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.vcard-alts-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.vcard-alts-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
}
.vcard-alt {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.vcard-alt:hover {
  border-color: var(--accent);
  background: #eef5ff;
}
.vcard-alt-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 4px;
}
.vcard-alt-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.vcard-alt-snow {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}
.vcard-alt-snow--good { color: #2b6de9; }
.vcard-alt-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.vcard-alt-pass {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.vcard-alt-drive {
  font-size: 12px;
  color: var(--muted);
}

.vcard-compare-link {
  background: none;
  border: none;
  padding: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  cursor: pointer;
  text-align: left;
  transition: opacity .12s;
}
.vcard-compare-link:hover { opacity: .75; text-decoration: underline; }

/* Range selector — lives in .vcard-alts-header */
.vcard-range {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.vcard-range-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-right: 2px;
}
.vcard-range-btn {
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--panel-2);
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
}
.vcard-range-btn:hover { border-color: var(--accent); color: var(--accent); }
.vcard-range-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* ── Actions — share button only ────────────────────────────────────────── */
.vcard-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
  margin-top: auto;
}
.vcard-share-btn {
  font-size: 13px;
  padding: 8px 16px;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .vcard-hero { padding: 18px 18px 16px; }
  .vcard-name { font-size: 1.7rem; }
  .vcard-alts-list { grid-template-columns: 1fr 1fr; }
  .vcard-forecast  { grid-template-columns: repeat(3, 1fr); }
  .vcard-alts-header { flex-wrap: wrap; gap: 6px; }
  .vcard-body { padding: 16px 18px 16px; }
  .planner-col .score-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .vcard-name { font-size: 1.5rem; }
  .vcard-alts-list { grid-template-columns: 1fr; }
  .planner-col .score-grid { grid-template-columns: 1fr; }
}

/* ── Feature grid ───────────────────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.planner-card, .calc-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 15px; padding: 14px; box-shadow: var(--shadow-sm);
}
.planner-card.top {
  border-color: rgba(43,109,233,.3);
  background: linear-gradient(160deg, rgba(43,109,233,.06), #fff 60%);
}
.planner-title { font-size: 17px; font-weight: 800; margin-bottom: 3px; line-height: 1.2; }
.planner-meta  { font-size: 12px; color: var(--muted); margin-bottom: 10px; }
.breakdown {
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid rgba(0,0,0,.06);
  display: grid; gap: 4px; font-size: 12px; color: var(--muted);
}
.breakdown strong { color: var(--text); }

/* ── Compare table ──────────────────────────────────────────────────────── */
.table-wrap { overflow: auto; }
.comparison-table { width: 100%; border-collapse: collapse; }
.comparison-table th,
.comparison-table td { padding: 11px 10px; border-bottom: 1px solid rgba(0,0,0,.05); font-size: 13px; text-align: left; }
.comparison-table thead th {
  position: sticky; top: 0; background: #f8fbff; z-index: 1;
  font-size: 11px; font-weight: 700; font-family: 'DM Mono', monospace;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  border-bottom: 2px solid var(--border);
}
.comparison-table tbody tr:hover  { background: #f4f8ff; cursor: pointer; }
.comparison-table tbody tr.active-row { background: #eef5ff; }
.row-name { font-weight: 700; }
.hist-cell { font-variant-numeric: tabular-nums; font-weight: 700; color: #1d4ed8; }
.result-count { font-size: 13px; font-weight: 700; }
.price-disclaimer { font-size: 12px; color: var(--muted); margin-top: 10px; }

/* ── Compare tray + panel ───────────────────────────────────────────────── */
.compare-tray { position: sticky; bottom: 12px; z-index: 800; }
.compare-tray-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(27, 42, 58, .96); color: #fff;
  border-radius: 18px; box-shadow: 0 8px 30px rgba(0,0,0,.22);
}
.tray-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.compare-pills { display: flex; flex-wrap: wrap; gap: 7px; }
.compare-pill {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 5px 10px; background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px; font-size: 12px; font-weight: 700; color: #fff;
}
.compare-pill button { border: none; background: none; cursor: pointer; color: rgba(255,255,255,.7); font-size: 13px; }

/* ── Detail card ────────────────────────────────────────────────────────── */
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: start; }
.sub-card { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 12px 13px; }
.sub-card-title { margin: 0 0 10px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.metric-box { background: #fff; border: 1px solid var(--border); border-radius: 13px; padding: 12px; }
.metric-label { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: 'DM Mono', monospace; margin-bottom: 5px; }
.metric-value { font-size: 20px; font-weight: 800; }
.metric-value.detail-sm { font-size: 14px; line-height: 1.3; }
.bar-row { display: grid; grid-template-columns: 90px 1fr 36px; gap: 8px; align-items: center; margin-top: 9px; font-size: 12px; }
.bar { height: 9px; border-radius: 999px; background: #eef3fb; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, #2b6de9, #22b38a); }

/* History & forecast rows in detail card */
.history-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.history-label { font-size: 12px; color: var(--muted); width: 80px; flex-shrink: 0; }
.history-total { font-size: 15px; font-weight: 700; color: #1d4ed8; width: 44px; flex-shrink: 0; }
.forecast-rows { display: flex; flex-direction: column; gap: 4px; }
.forecast-row { display: flex; align-items: center; gap: 10px; font-size: 13px; padding: 4px 0; }
.forecast-day  { width: 36px; font-weight: 700; }
.forecast-snow { flex: 1; }
.forecast-snow.snow-big { color: #1d4ed8; font-weight: 700; }
.forecast-snow.snow-med { color: #2b6de9; }
.forecast-temps { color: #9ca3af; font-size: 12px; white-space: nowrap; }

/* ── Snow sparkline ─────────────────────────────────────────────────────── */
.snow-sparkline { display: inline-block; vertical-align: middle; border-radius: 3px; flex-shrink: 0; }

/* ── Map ────────────────────────────────────────────────────────────────── */
.map-mode-row { display: flex; gap: 8px; flex-wrap: wrap; }
.map-mode-btn { padding: 8px 14px; font-size: 13px; }
.map-mode-btn.active { background: rgba(43,109,233,.12); border-color: rgba(43,109,233,.4); color: var(--accent); }
.map-legend { display: flex; flex-wrap: wrap; gap: 12px; padding-bottom: 12px; color: var(--muted); font-size: 12px; }
.legend-chip { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 10px; height: 10px; border-radius: 999px; display: inline-block; }
.leaflet-map { height: 520px; border-radius: 16px; overflow: hidden; }

/* ── Crowd colors ───────────────────────────────────────────────────────── */
.crowd-light          { color: #12805f; font-weight: 700; }
.crowd-light-moderate { color: #4a7a30; font-weight: 700; }
.crowd-moderate       { color: #b97900; font-weight: 700; }
.crowd-heavy          { color: #c44a4a; font-weight: 700; }
/* Legacy aliases (kept for any cached renders) */
.crowd-low            { color: #12805f; font-weight: 700; }
.crowd-high           { color: #c44a4a; font-weight: 700; }

/* ── Utility ────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.toast {
  position: fixed; top: 70px; right: 16px; z-index: 1200;
  background: #10203a; color: #fff;
  padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--shadow); opacity: 0;
  transform: translateY(-6px); pointer-events: none;
  transition: .18s; font-size: 13px; font-weight: 600;
}
.toast.show { opacity: 1; transform: translateY(0); }
.back-to-top {
  position: fixed; right: 18px; bottom: 18px;
  display: none; z-index: 999; border-radius: 999px;
  padding: 10px 14px; background: rgba(255,255,255,.96);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); cursor: pointer;
}
.back-to-top.show { display: block; }
.helper-text { font-size: 12px; color: var(--muted); }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1400px) {
  .score-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .container { width: calc(100vw - 14px); }
  .planner-col { padding: 20px 18px 18px; }
  .planner-main-title { font-size: 19px; }
  .planner-subtitle { font-size: 13px; }
  .top-nav-inner { padding-inline: 6px; }
  .hero { padding: 18px; }
  .score-grid, .card-grid, .metric-grid { grid-template-columns: 1fr; }
  .stats-strip { flex-wrap: wrap; }
  .stats-strip .summary-card { min-width: calc(25% - 1px); }
  .toolbar-controls { gap: 8px; }
  .toolbar-controls .field { min-width: calc(50% - 4px); }
  .detail-grid { grid-template-columns: 1fr; }
  .comparison-table th,
  .comparison-table td { font-size: 12px; padding: 9px 7px; }
}

/* ─── Sortable Table Headers ─────────────────────────────────────────────── */
.sortable-th {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.sortable-th:hover {
  color: var(--accent);
  background: rgba(43, 109, 233, 0.06);
}
.sortable-th.sort-active {
  color: var(--accent);
}
.sort-indicator {
  font-size: 0.7em;
  opacity: 0.8;
  display: inline-block;
  min-width: 12px;
}


/* Score breakdown tooltip in table — show normalized factors */
.score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ─── Table Search + View All toolbar ───────────────────────────────────────── */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0 0.25rem;
  flex-wrap: wrap;
}

.table-search-wrap {
  position: relative;
  flex: 1;
  min-width: 180px;
  max-width: 380px;
}


.table-search-input {
  width: 100%;
  padding: 0.45rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: 0.5rem;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.table-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,109,233,0.12);
}

.table-search-input::placeholder {
  color: var(--muted);
  opacity: 0.8;
}

#tableViewAllBtn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Pass Preference Buttons ────────────────────────────────────────────── */
.pass-pref-row {
  flex-wrap: wrap;
}

.pass-pref-btn {
  padding: 0.45rem 1.0rem;
  border-radius: 2rem;
  border: 2px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.pass-pref-btn:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
}

/* Any — neutral */
.pass-pref-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 2px 8px rgba(43,109,233,0.22);
}

/* Epic — deep blue */
.epic-btn:hover  { border-color: #1a4fa8; color: #1a4fa8; }
.epic-btn.active { background: #1a4fa8; border-color: #1a4fa8; color: #fff; box-shadow: 0 2px 8px rgba(26,79,168,0.3); }

/* Ikon — dark charcoal / gold accent */
.ikon-btn:hover  { border-color: #c8a84b; color: #c8a84b; }
.ikon-btn.active { background: #1a1a1a; border-color: #c8a84b; color: #c8a84b; box-shadow: 0 2px 8px rgba(200,168,75,0.3); }

/* Indy — forest green */
.indy-btn:hover  { border-color: #2d7a3a; color: #2d7a3a; }
.indy-btn.active { background: #2d7a3a; border-color: #2d7a3a; color: #fff; box-shadow: 0 2px 8px rgba(45,122,58,0.3); }

/* Independent — warm slate */
.indep-btn:hover  { border-color: #6b5e7a; color: #6b5e7a; }
.indep-btn.active { background: #6b5e7a; border-color: #6b5e7a; color: #fff; box-shadow: 0 2px 8px rgba(107,94,122,0.3); }

/* ─── Nav upgrades: CTAs + divider + active state ─────────────────────────── */
.nav-divider {
  width: 1px; height: 22px;
  background: var(--border);
  flex-shrink: 0; margin: 0 4px;
}

/* Primary CTA nav links */
.nav-cta {
  text-decoration: none;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 7px 14px !important;
  border-radius: 999px !important;
  border: 2px solid var(--accent) !important;
  color: var(--accent) !important;
  white-space: nowrap;
  transition: background .12s, color .12s !important;
  flex-shrink: 0;
}
.nav-cta:hover, .nav-cta.nav-active {
  background: var(--accent) !important;
  color: #fff !important;
}
.nav-cta-db {
  border-color: #2d7a3a !important;
  color: #2d7a3a !important;
}
.nav-cta-db:hover, .nav-cta-db.nav-active {
  background: #2d7a3a !important;
  color: #fff !important;
}

/* Secondary nav links */
.nav-secondary {
  font-size: 12px !important;
  color: var(--muted) !important;
  font-weight: 500 !important;
  padding: 6px 10px !important;
}
.nav-secondary:hover, .nav-secondary.nav-active {
  background: #f0f4ff !important;
  color: var(--accent) !important;
  border-color: transparent !important;
}

/* ─── Collapsible planner ─────────────────────────────────────────────────── */
.planner-summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.planner-summary-left .eyebrow { margin-bottom: 2px; }
.planner-summary-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}
.planner-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font: 600 13px/1 inherit;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: border-color .12s, background .12s, color .12s;
}
.planner-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: #edf4ff;
}
.planner-toggle-btn[aria-expanded="true"] {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

/* Collapsed state: tighten padding */
.planner-collapsed { padding-bottom: 14px !important; }

/* Details wrapper — no animation needed, hidden attr handles show/hide */
.planner-details { margin-top: 4px; }

/* ─── Responsive nav ──────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .nav-secondary { display: none; }
  .nav-divider:last-of-type { display: none; }
}

/* ─── Compact hero ────────────────────────────────────────────────────────── */
/* ── Centered search hero (Google-style) ───────────────────────────────── */
.hero-search {
  padding: 32px 24px 28px !important;
  background:
    radial-gradient(ellipse at 60% 0%, rgba(43,109,233,.07), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(244,249,255,.98)) !important;
}
.hero-search-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
  width: 100%;
}
.hero-search-inner .hero-headline {
  font-size: clamp(22px, 3vw, 32px);
  margin-bottom: 10px;
}
.hero-search-inner .hero-subhead {
  font-size: 14px;
  margin-bottom: 20px;
  max-width: 420px;
}

/* The big pill search bar */
.hero-search-bar {
  display: flex;
  width: 100%;
  max-width: 560px;
  border-radius: 999px;
  border: 2px solid var(--border);
  background: #fff;
  box-shadow: 0 4px 24px rgba(43,109,233,.10);
  overflow: hidden;
  transition: border-color .15s, box-shadow .15s;
}
.hero-search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 4px 28px rgba(43,109,233,.18);
}
.hero-search-input {
  flex: 1;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 15px 20px !important;
  font-size: 15px !important;
  color: var(--text);
  width: 100% !important;
  box-shadow: none !important;
}
.hero-search-input::placeholder { color: #9ca3af; }
.hero-search-input:focus { outline: none; border: none !important; }
.hero-search-btn {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 0 999px 999px 0;
  padding: 0 24px;
  font: 700 14px/1 inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s;
}
.hero-search-btn:hover { background: #1a4fa8; }

/* Secondary row: locate + remember */
.hero-search-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.hero-locate-link {
  background: none;
  border: none;
  color: var(--accent);
  font: 600 13px/1 inherit;
  cursor: pointer;
  padding: 0;
  transition: opacity .12s;
}
.hero-locate-link:hover { opacity: .7; }
.hero-meta-divider {
  color: var(--muted);
  font-size: 12px;
  opacity: .5;
}
.hero-location-status {
  margin-top: 8px;
  font-size: 13px;
}

/* AI chat — quiet secondary row below the main bar */
.hero-ai-row {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  width: 100%;
  max-width: 560px;
  text-align: left;
}
.hero-ai-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 8px;
  text-align: center;
}
.hero-ai-input-row {
  display: flex;
  gap: 8px;
}
.hero-ai-input {
  flex: 1;
  font-size: 13px !important;
  padding: 10px 14px !important;
}

@media (max-width: 600px) {
  .hero-search { padding: 32px 16px 28px !important; }
  .hero-search-bar { max-width: 100%; }
  .hero-search-btn { padding: 0 16px; font-size: 13px; }
  .hero-ai-row { max-width: 100%; }
}

.hero-compact-label {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.eyebrow-inline {
  font-family: 'DM Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.hero-compact-tagline {
  font-size: 12px;
  color: var(--muted);
}

/* ─── Customize button — prominent, right-anchored ───────────────────────── */
.planner-summary-row {
  align-items: center;
}
.planner-toggle-btn {
  margin-left: auto;
  padding: 9px 20px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  background: var(--accent) !important;
  color: #fff !important;
  border-color: var(--accent) !important;
  box-shadow: 0 2px 8px rgba(43,109,233,.25);
}
.planner-toggle-btn:hover {
  opacity: .88;
  background: var(--accent) !important;
  color: #fff !important;
}
.planner-toggle-btn[aria-expanded="true"] {
  background: #1a4fa8 !important;
  border-color: #1a4fa8 !important;
  box-shadow: none;
}

@media (max-width: 480px) {
  .hero-compact-label { flex-direction: column; gap: 2px; }
}

/* ─── Weight summary + Customize button row ──────────────────────────────── */
.weight-summary-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 6px;
}
.weight-summary-row .weight-summary {
  flex: 1;
  margin-bottom: 0;
}
.weight-summary-row .planner-toggle-btn {
  flex-shrink: 0;
  align-self: flex-start;
  margin-top: 2px;
}

/* Remove the old margin-left: auto now that button is in the summary row */
.planner-summary-row .planner-toggle-btn {
  margin-left: 0;
}

/* ─── Zip code hint ───────────────────────────────────────────────────────── */
.location-best-results {
  font-size: 12px;
  color: var(--text);
  line-height: 1.5;
  padding: 6px 10px;
  background: rgba(43,109,233,.05);
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}
.location-best-results strong { color: var(--accent); }

/* Location meta row — hint + remember checkbox on the same line */
.location-meta-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
  margin-top: 8px;
}
.remember-location-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--muted); cursor: pointer;
  white-space: nowrap; user-select: none;
  flex-shrink: 0;
}
.remember-location-label input[type="checkbox"] {
  width: 14px; height: 14px; cursor: pointer; accent-color: var(--accent);
}
/* Privacy info tooltip */
.location-privacy-tip {
  position: relative; display: inline-flex; align-items: center;
  width: 16px; height: 16px;
  font-size: 13px; color: var(--muted); cursor: pointer;
  line-height: 1;
}
.location-privacy-tip:hover .location-privacy-tooltip,
.location-privacy-tip:focus .location-privacy-tooltip {
  opacity: 1; pointer-events: auto; transform: translateY(0);
}
.location-privacy-tooltip {
  position: absolute; bottom: calc(100% + 6px); right: 0;
  width: 230px;
  background: #1e293b; color: #f1f5f9;
  font-size: 11.5px; line-height: 1.5; font-weight: 400;
  padding: 8px 10px; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0; pointer-events: none;
  transform: translateY(4px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 100; white-space: normal;
}
.location-privacy-tooltip::after {
  content: ''; position: absolute; top: 100%; right: 6px;
  border: 5px solid transparent; border-top-color: #1e293b;
}

/* ─── Customize button — left-aligned ────────────────────────────────────── */
.weight-summary-row {
  justify-content: flex-start;
}
.weight-summary-row .planner-toggle-btn {
  margin-left: 0;
  margin-right: auto;
  order: -1; /* appears before the summary text */
}
.weight-summary-row .weight-summary {
  order: 1;
}

/* ─── AI compare box ──────────────────────────────────────────────────────── */
.compare-ai-box {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 14px;
  padding: 18px 22px;
  margin-bottom: 18px;
  border: 1px solid rgba(43,109,233,.3);
  position: relative;
  overflow: hidden;
}
.compare-ai-box::before {
  content: '🤖 AI Pick';
  position: absolute;
  top: 12px; right: 16px;
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: rgba(255,255,255,.4);
  font-family: 'DM Mono', monospace;
}
.ai-thinking {
  color: rgba(255,255,255,.6);
  font-size: 14px;
  font-style: italic;
}
.ai-verdict-inner {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ai-verdict-text {
  font-size: 14px;
  line-height: 1.65;
  color: #e2eaf8;
  font-weight: 400;
}

/* ─── Database summary footer ─────────────────────────────────────────────── */
.db-summary-section {
  margin-top: 8px;
  padding: 24px 28px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  border-radius: 18px;
  border: 1px solid rgba(43,109,233,.2);
}
.db-summary-label {
  font-family: 'DM Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 18px;
}
.db-summary-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
.db-stat {
  padding: 0 20px 0 0;
  border-right: 1px solid rgba(255,255,255,.08);
  margin-right: 20px;
}
.db-stat:last-child {
  border-right: none;
  margin-right: 0;
  padding-right: 0;
}
.db-stat-value {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -.02em;
}
.db-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: rgba(255,255,255,.65);
  margin-top: 3px;
}
.db-stat-sub {
  font-size: 10px;
  color: rgba(255,255,255,.35);
  margin-top: 1px;
}

@media (max-width: 900px) {
  .db-summary-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }
  .db-stat { border-right: none; margin-right: 0; padding-right: 0; }
}
@media (max-width: 500px) {
  .db-summary-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRIORITY 1 — Hero value prop + how-it-works
   ═══════════════════════════════════════════════════════════════════════════ */

/* Value proposition block */
.hero-value-prop {
  padding: 0;
  margin-bottom: 2px;
}
.hero-headline {
  font-size: clamp(15px, 2.2vw, 20px);
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
  margin-bottom: 5px;
  letter-spacing: -.01em;
}
.hero-subhead {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

/* How it works - 3 step row */
.how-it-works {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(43,109,233,.05);
  border: 1px solid rgba(43,109,233,.12);
  border-radius: 10px;
}
.how-step {
  display: flex;
  align-items: center;
  flex: 0 1 auto;
}
.how-icon {
  font-size: 1.3rem;
  flex-shrink: 0;
}
.how-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.3;
  white-space: nowrap;
}
.how-arrow {
  font-size: 12px;
  color: var(--muted);
  flex-shrink: 0;
  opacity: .5;
}
@media (max-width: 500px) {
  .how-it-works { gap: 6px; padding: 7px 10px; }
  .how-arrow    { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   PRIORITY 2 — AI Natural Language Chat Widget
   ═══════════════════════════════════════════════════════════════════════════ */

.ai-chat-widget {
  margin-top: 6px;
  padding: 14px 16px;
  background: #EEF2F7;
  border-radius: 14px;
  border: 1px solid var(--border);
  position: relative;
}

.ai-chat-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.ai-chat-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
}
.ai-chat-hint {
  font-size: 11px;
  color: var(--muted);
  font-family: 'DM Mono', monospace;
  letter-spacing: .04em;
}
.ai-chat-row {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.ai-chat-input {
  flex: 1;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 14px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: border-color .14s, background .14s;
  min-width: 0;
}
.ai-chat-input::placeholder { color: var(--muted); }
.ai-chat-input:focus {
  outline: none;
  border-color: rgba(43,109,233,.7);
  background: rgba(255,255,255,.13);
}
.btn-ai {
  background: linear-gradient(135deg, #2b6de9, #4a92ff);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font: 700 13px/1 inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .12s, transform .1s;
  flex-shrink: 0;
}
.btn-ai:hover   { opacity: .9; transform: translateY(-1px); }
.btn-ai:active  { transform: translateY(0); }
.btn-ai:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* AI Result States */
.ai-chat-result {
  margin-top: 10px;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: 13px;
  transition: all .2s;
}
.ai-chat-loading {
  background: rgba(0,0,0,.04);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: italic;
}
.ai-chat-success {
  background: rgba(34,179,138,.12);
  border: 1px solid rgba(34,179,138,.25);
}
.ai-chat-error {
  background: rgba(217,91,91,.12);
  border: 1px solid rgba(217,91,91,.25);
  color: #fca5a5;
}
.ai-result-header {
  font-weight: 700;
  color: #e2eaf8;
  margin-bottom: 5px;
}
.ai-result-text {
  color: rgba(226,234,248,.85);
  line-height: 1.6;
}
.ai-result-actions {
  margin-top: 10px;
}
.ai-result-jump-btn {
  background: rgba(43,109,233,.2);
  border: 1px solid rgba(43,109,233,.45);
  border-radius: 999px;
  color: #93c5fd;
  font: 600 12px/1 inherit;
  padding: 6px 14px;
  cursor: pointer;
  transition: background .12s;
}
.ai-result-jump-btn:hover { background: rgba(43,109,233,.35); }

/* Spinner */
.ai-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border: 2px solid rgba(255,255,255,.25);
  border-top-color: rgba(255,255,255,.7);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Highlighted row from AI pick */
@keyframes aiHighlight {
  0%   { background: rgba(43,109,233,.25); }
  100% { background: transparent; }
}
.ai-highlight { animation: aiHighlight 2.5s ease-out forwards; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRIORITY 3 — Mobile card grid
   ═══════════════════════════════════════════════════════════════════════════ */

/* Desktop: hide mobile cards; show table */
.mobile-card-grid { display: none; }

/* Mobile (≤ 760px): hide table, show cards */
@media (max-width: 760px) {
  .table-wrap      { display: none; }
  .mobile-card-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 10px;
  }
}

.mob-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 13px 14px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: border-color .12s, box-shadow .12s;
  -webkit-tap-highlight-color: transparent;
}
.mob-card:hover,
.mob-card:focus { border-color: var(--accent); box-shadow: 0 4px 20px rgba(43,109,233,.12); outline: none; }
.mob-card-selected { border-color: var(--accent); background: #f0f6ff; }

.mob-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.mob-card-name  { font-size: 16px; font-weight: 800; line-height: 1.2; }
.mob-card-score {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  background: rgba(43,109,233,.1);
  border-radius: 999px;
  padding: 3px 10px;
  white-space: nowrap;
  flex-shrink: 0;
}
.mob-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.mob-chip {
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f8fbff;
}
.mob-card-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}
.mob-card-stats > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mob-stat-label { font-size: 9px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-family: 'DM Mono', monospace; }
.mob-stat-val   { font-size: 14px; font-weight: 700; }
.mob-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mob-compare-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-family: 'DM Mono', monospace;
}
.mob-compare-label input { width: 15px; height: 15px; cursor: pointer; }
.mob-card-detail-btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font: 600 12px/1 inherit;
  cursor: pointer;
  transition: opacity .12s;
}
.mob-card-detail-btn:hover { opacity: .88; }

/* ═══════════════════════════════════════════════════════════════════════════
   PRIORITY 4 — Best Day to Go section
   ═══════════════════════════════════════════════════════════════════════════ */

.best-day-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 4px;
}
@media (max-width: 900px) { .best-day-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .best-day-grid { grid-template-columns: 1fr; } }

.best-day-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
}
.best-day-resort-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
}
.best-day-resort {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 3px;
}
.best-day-meta { font-size: 12px; color: var(--muted); }
.best-day-drive { flex-shrink: 0; }

.best-day-days {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.best-day-day {
  position: relative;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  transition: border-color .12s;
}
.best-day-day.best {
  background: linear-gradient(160deg, rgba(43,109,233,.08), rgba(34,179,138,.06));
  border-color: rgba(43,109,233,.35);
  box-shadow: 0 2px 8px rgba(43,109,233,.1);
}
.bdd-best-badge {
  position: absolute;
  top: -9px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  letter-spacing: .06em;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.bdd-day-name {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 5px;
  margin-top: 2px;
}
.bdd-snow {
  font-size: 12px;
  font-weight: 700;
  color: #1d4ed8;
  margin-bottom: 4px;
}
.bdd-no-snow { color: var(--muted); font-weight: 400; }
.bdd-temps   { font-size: 11px; color: var(--muted); }

/* ═══════════════════════════════════════════════════════════════════════════
   PRIORITY 6 — Enhanced share button
   ═══════════════════════════════════════════════════════════════════════════ */

/* The share button already exists; just ensure it has good mobile tap size */

/* ─── Resort website links ───────────────────────────────────────────────────── */
.resort-link {
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  transition: color .12s;
}
.resort-link:hover {
  color: var(--accent);
  text-decoration: underline;
}

.detail-website-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  padding: 9px 16px;
  text-decoration: none;
  border-radius: 999px;
}
.detail-website-btn:hover { opacity: .88; }

.mob-website-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  font-size: 16px;
  text-decoration: none;
  transition: background .12s;
  flex-shrink: 0;
}
.mob-website-btn:hover { background: #deeaff; }

/* ─── Verdict: context headline + reason chips + top-5 strip ─────────────────── */
/* ═══════════════════════════════════════════════════════════════════════════════
   TWO-COLUMN PLANNER + VERDICT LAYOUT
   ═══════════════════════════════════════════════════════════════════════════════ */

.planner-verdict-row {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 18px;
  align-items: stretch;
}

/* ── Left column — planner ──────────────────────────────────────────────── */
.planner-col {
  padding: 26px 28px 24px;
  display: flex;
  flex-direction: column;
}

.planner-col-header {
  margin-bottom: 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

/* plannerDetails fills remaining height so score grid expands to match verdict card */
.planner-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Header top row: title + edit button */
.planner-header-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

/* "Your Ski Preferences — Boston, MA" */
.planner-main-title {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
  letter-spacing: -.01em;
}

/* " — City, ST" suffix */
#plannerFromLabel {
  color: var(--accent);
  font-weight: 800;
}

/* "Select what matters…" subtitle */
.planner-subtitle {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0;
}

/* Edit location button */
.planner-edit-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .12s, color .12s;
  flex-shrink: 0;
}
.planner-edit-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Score grid — 2 columns in planner, fills available height */
.planner-col .score-grid {
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  margin-bottom: 0;
  flex: 1;
  align-content: start;
}

/* Each control card — equal height within row */
.planner-col .score-control {
  padding: 14px 15px 12px;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
}

/* Section label */
.planner-col .score-control-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 9px;
  letter-spacing: -.01em;
}

/* Priority buttons — horizontal wrapping pills */
.planner-col .priority-btns {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 5px;
}

.planner-col .priority-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background .12s, border-color .12s, color .12s;
  font-family: 'DM Sans', system-ui, sans-serif;
  line-height: 1.2;
  text-align: center;
}
.planner-col .priority-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.planner-col .priority-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Hint text */
.planner-col .slider-hint {
  font-size: 11px;
  font-style: normal;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 8px;
}

/* Hide old desc text */
.planner-col .score-desc { display: none; }

/* Quick Settings rows */
.quick-settings {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.qs-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.qs-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  min-width: 60px;
  flex-shrink: 0;
}

.qs-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.qs-btns .pass-pref-btn {
  font-size: 11px;
  padding: 4px 9px;
  height: auto;
}

.qs-hint {
  font-size: 10px;
  color: var(--muted);
  opacity: .7;
}


/* ── Verdict cleanup overrides ─────────────────────────────────────────── */
/* Both columns must be flex columns so inner content can fill the full height */
.verdict-col {
  padding: 0;
  display: flex;
  flex-direction: column;
}
/* #verdictCard must grow to fill the section, then vcard fills #verdictCard */
#verdictCard {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}


/* ===== 2026 hero + decision-flow overrides ===== */
.top-nav-inner { width: 100%; padding: 10px 18px; }
.container { width: 100%; padding: 18px 0 64px; gap: 18px; }
.card { border-radius: 22px; }
.hero-search-centered { padding: 40px 20px 34px !important; }
.hero-search-shell { width: 100%; display:flex; justify-content:center; }
.hero-search-inner { max-width: 1120px; margin: 0 auto; display:flex; flex-direction:column; align-items:center; text-align:center; gap: 14px; }
.hero-brand-row-centered { display:flex; flex-direction:column; gap:2px; align-items:center; }
.hero-brand-name { font-size: 16px; font-weight: 800; color: var(--accent); letter-spacing: -.02em; }
.hero-brand-tag { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; }
.hero-search-centered .hero-headline { font-size: clamp(34px, 5.1vw, 62px); line-height: 1.02; max-width: 14ch; margin: 4px auto 0; letter-spacing: -.03em; }
.hero-search-centered .hero-subhead { font-size: 17px; line-height: 1.55; max-width: 760px; margin: 0 auto 8px; }
.hero-search-bar-unified { width: min(100%, 1040px); max-width: 1040px; border-radius: 999px; display:grid; grid-template-columns: minmax(280px,1.6fr) minmax(170px,.7fr) minmax(170px,.7fr) auto; align-items:center; overflow:hidden; border:1px solid rgba(27,42,58,.12); box-shadow: 0 18px 50px rgba(43,109,233,.12); }
.hero-search-bar-unified > * { min-width: 0; }
.hero-search-bar-unified .hero-search-input { height: 64px; padding: 0 22px !important; font-size: 16px !important; }
.hero-search-select { height: 64px; border: 0; border-left: 1px solid var(--border); border-radius: 0; background:#fff; padding: 0 18px; font: 700 14px/1 inherit; color: var(--text); appearance:none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 28px, calc(100% - 14px) 28px; background-size: 6px 6px, 6px 6px; background-repeat:no-repeat; }
.hero-search-select:focus { outline:none; }
.hero-search-bar-unified .hero-search-btn { height: 64px; padding: 0 28px; border-radius: 0 999px 999px 0; font-size: 15px; }
.hero-search-meta-premium { margin-top: 2px; }
.hero-proof-card-centered { width: min(100%, 760px); margin: 10px auto 0; padding: 24px 28px; text-align: left; border: 1px solid rgba(43,109,233,.14); background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%); box-shadow: 0 14px 36px rgba(30,60,100,.08); }
.hero-proof-kicker { font-size: 12px; font-weight: 800; color: var(--accent); text-transform: uppercase; letter-spacing: .14em; margin-bottom: 14px; }
.hero-proof-list-stacked { display: grid; gap: 12px; }
.hero-proof-item { display:grid; gap: 3px; }
.hero-proof-item strong { font-size: 15px; color: var(--text); }
.hero-proof-item span { font-size: 15px; line-height: 1.55; color: var(--muted); }
.hero-ai-row-premium { width: min(100%, 760px); max-width: 760px; text-align:left; margin-top: 8px; }
.hero-ai-row-premium .hero-ai-label { text-align:left; }
.planner-verdict-row { grid-template-columns: minmax(0,1.16fr) minmax(360px,.84fr); }
@media (max-width: 1040px) { .hero-search-bar-unified { grid-template-columns: 1fr 1fr; border-radius: 24px; } .hero-search-bar-unified .hero-search-input { grid-column: 1 / -1; border-bottom:1px solid var(--border); } .hero-search-select { border-left:0; border-top:0; border-right:1px solid var(--border); } .hero-search-select:last-of-type { border-right:0; } .hero-search-bar-unified .hero-search-btn { grid-column: 1 / -1; border-radius:0 0 24px 24px; } .planner-verdict-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .hero-search-centered { padding: 26px 14px 24px !important; } .hero-search-centered .hero-headline { max-width: 11ch; font-size: clamp(30px, 9vw, 42px); } .hero-search-centered .hero-subhead { font-size: 15px; } .hero-search-bar-unified { grid-template-columns: 1fr; } .hero-search-bar-unified .hero-search-input { border-bottom:1px solid var(--border); } .hero-search-select { border-right:0; border-top:1px solid var(--border); } .hero-search-bar-unified .hero-search-btn { border-radius:0 0 24px 24px; } .hero-proof-card-centered { padding: 18px 18px; } }


/* ── Filter UX cleanup ─────────────────────────────────────────────────── */
.filter-role-note {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.55;
  color: var(--muted);
}
.hidden-pass-filter {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.database-filter-note { display: none; }
.planner-col .score-grid { margin-top: 4px; }

/* ═══════════════════════════════════════════════════════════════════════════
   AUDIT FIXES — appended block
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Skip to content (accessibility) ───────────────────────────────────── */
.skip-to-content {
  position: absolute; top: -100px; left: 12px; z-index: 9999;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-weight: 700; font-size: 14px; text-decoration: none;
  transition: top .15s;
}
.skip-to-content:focus { top: 12px; }

/* ── Visually hidden (screen reader only) ───────────────────────────────── */
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Score badge with color tiers ───────────────────────────────────────── */
.score-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  font-family: 'DM Mono', monospace;
  background: #f1f5f9;
  color: #475569;
}
.score-badge.score-great {
  background: rgba(34,179,138,.14);
  color: #0f7060;
}
.score-badge.score-good {
  background: rgba(245,158,11,.13);
  color: #92400e;
}
.score-badge.score-low {
  background: rgba(217,91,91,.12);
  color: #991b1b;
}

/* ── Mobile filter bar + trigger ────────────────────────────────────────── */
.mobile-filter-bar {
  display: none;
  padding: 8px 0 4px;
}
.mobile-filter-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--panel);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font: 700 14px/1 'DM Sans', sans-serif;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s;
}
.mobile-filter-trigger:hover {
  border-color: var(--accent);
  background: #edf4ff;
}
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

/* ── Mobile filter drawer ───────────────────────────────────────────────── */
.filter-drawer {
  position: fixed;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}
.filter-drawer.open { pointer-events: auto; }

.filter-drawer-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15,25,40,.55);
  opacity: 0;
  transition: opacity .3s ease;
}
.filter-drawer.open .filter-drawer-overlay { opacity: 1; }

.filter-drawer-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  max-height: 88vh;
  background: var(--panel);
  border-radius: 22px 22px 0 0;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform .3s cubic-bezier(.32,.72,0,1);
  overflow: hidden;
  box-shadow: 0 -8px 40px rgba(0,0,0,.18);
}
.filter-drawer.open .filter-drawer-panel { transform: translateY(0); }

.filter-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.filter-drawer-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text);
}
.filter-drawer-close {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 14px;
  cursor: pointer;
  color: var(--muted);
  transition: background .12s;
}
.filter-drawer-close:hover { background: #fee2e2; color: #991b1b; }

.filter-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  -webkit-overflow-scrolling: touch;
}

/* Hide duplicate planner-col-header inside drawer (it's already in the planner section) */
.filter-drawer-body .planner-col-header { display: none; }

.filter-drawer-footer {
  display: flex;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
  background: var(--panel);
}
.filter-drawer-footer .btn { flex: 1; justify-content: center; }

/* ── Responsive: mobile filter bar visibility ───────────────────────────── */
@media (max-width: 760px) {
  .mobile-filter-bar { display: flex; }
  /* On mobile hide the desktop planner column's filter controls
     since they live in the drawer instead */
  .planner-col .planner-details .score-grid { display: none; }
}
@media (min-width: 761px) {
  .mobile-filter-bar { display: none; }
  .filter-drawer { display: none !important; }
  /* Always show planner details on desktop */
  .planner-col .planner-details .score-grid { display: grid; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   COMPARE SECTION — redesigned filter panel
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Section header ────────────────────────────────────────────────────── */
.compare-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.compare-section-title-block {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}
.compare-section-title-block h2 { margin: 0; }
.result-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Filter & Sort toggle button ───────────────────────────────────────── */
.filter-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  font: 600 13px/1 'DM Sans', sans-serif;
  color: var(--text);
  cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
  white-space: nowrap;
  flex-shrink: 0;
}
.filter-toggle-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.filter-toggle-btn--open {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.filter-toggle-icon { flex-shrink: 0; }
.filter-chevron {
  transition: transform .2s ease;
  flex-shrink: 0;
}
.filter-toggle-btn--open .filter-chevron {
  transform: rotate(180deg);
}

/* ── Collapsible filter panel ──────────────────────────────────────────── */
.filter-panel {
  padding: 16px 0 18px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  animation: fp-open .18s ease;
}
@keyframes fp-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* 6-column grid: 5 filter fields + 1 action column */
.filter-panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto auto;
  gap: 12px 16px;
  align-items: end;
}

/* Each filter field */
.fp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.fp-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.fp-select {
  width: 100%;
  padding: 8px 10px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font: 600 13px/1.3 'DM Sans', sans-serif;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23667a96' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  transition: border-color .12s, box-shadow .12s;
}
.fp-select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(43,109,233,.1);
}

/* Night skiing toggle column */
.fp-field--toggle {
  align-items: flex-start;
}
.fp-toggle-btn {
  padding: 8px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  font: 600 13px/1.3 'DM Sans', sans-serif;
  color: var(--muted);
  cursor: pointer;
  transition: border-color .12s, background .12s, color .12s;
  white-space: nowrap;
}
.fp-toggle-btn[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.fp-toggle-btn:hover:not([aria-pressed="true"]) {
  border-color: var(--accent);
  color: var(--accent);
}

/* Clear all filters — action column */
.fp-field--action {
  justify-content: flex-end;
  padding-bottom: 2px;
}
.fp-clear-btn {
  background: none;
  border: none;
  padding: 0 2px;
  font: 600 12px/1.4 'DM Sans', sans-serif;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color .12s;
}
.fp-clear-btn:hover { color: var(--danger); }

/* ── Compare toolbar: search + view-all ────────────────────────────────── */
.compare-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.compare-toolbar .table-search-wrap {
  flex: 1;
  min-width: 0;
}

/* Active filter pills — below search bar */
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 4px;
}
.active-filters:empty { display: none; margin: 0; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .filter-panel-grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .fp-field--action { grid-column: 3; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .filter-panel-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fp-field--toggle { grid-column: 1; }
  .fp-field--action { grid-column: 2; align-items: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════════════════
   AUDIT FIXES — appended
   ═══════════════════════════════════════════════════════════════════════════ */

/* PERFORMANCE: Prevent CLS — verdictCard has stable minimum height */
#verdictCard {
  min-height: 380px;
}

/* FILTERING: Empty state in compare table */
.compare-empty-state {
  padding: 48px 24px !important;
  text-align: center;
  border: none !important;
}
.ces-icon  { font-size: 36px; margin-bottom: 10px; opacity: .4; }
.ces-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ces-sub   { font-size: 14px; color: var(--muted); line-height: 1.55; }
.ces-reset-link {
  background: none; border: none; padding: 0;
  font-size: 14px; color: var(--accent); cursor: pointer;
  text-decoration: underline; font: inherit;
}
.ces-reset-link:hover { opacity: .75; }

/* Hidden gems: human-readable reasons strip */
.gem-reasons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.gem-breakeven {
  margin-top: 8px; padding: 5px 10px;
  background: #f0fdf4; border: 1px solid #86efac;
  border-radius: 8px; font-size: 12px; font-weight: 600; color: #15803d;
}

/* SECURITY: Crowd colors for all variants generated by crowdClass() */
.crowd-light         { color: #15803d; font-weight: 700; }
.crowd-light-moderate{ color: #2b6de9; font-weight: 700; }
.crowd-moderate      { color: #d97706; font-weight: 700; }
.crowd-heavy         { color: #dc2626; font-weight: 700; }

/* Score badges */
.score-badge { display: inline-block; padding: 2px 8px; border-radius: 6px; font-weight: 800; font-size: 13px; }
.score-great { background: #dcfce7; color: #15803d; }
.score-good  { background: #dbeafe; color: #1d4ed8; }
.score-low   { background: #fee2e2; color: #dc2626; }
