:root {
  color-scheme: light;
  --ink: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --brand: #4f46e5;
  --brand-2: #667eea;
  --low: #0f766e;
  --warn: #9a3412;
  --ok: #166534;
  --radius: 18px;
  font-family: Inter, "Segoe UI", "Helvetica Neue", system-ui, sans-serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 420px at 10% -10%, #dbeafe 0%, transparent 60%),
    linear-gradient(180deg, #eef3f8 0%, #f7f8fb 240px);
  line-height: 1.5;
}
a { color: var(--brand); }
img { max-width: 100%; display: block; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: white; padding: 8px 12px; z-index: 5; }

.top {
  background: #0b1220;
  color: white;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
}
.top-inner, main, .foot { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-inner { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: white; text-decoration: none; font-size: 1.15rem; }
.brand img { width: 36px; height: 36px; object-fit: contain; background: white; border-radius: 10px; padding: 3px; }
.top-nav { display: flex; gap: 8px; }
.top-nav a { color: #e2e8f0; text-decoration: none; font-weight: 700; padding: 8px 12px; border-radius: 999px; }
.top-nav a[aria-current="page"], .top-nav a:hover { background: rgba(255,255,255,.12); color: white; }
main { padding: 22px 0 8px; }
.foot { color: var(--muted); font-size: 0.92rem; padding: 8px 0 40px; }

.crumbs { color: var(--muted); font-size: 0.92rem; margin: 4px 0 14px; }
.crumbs a { text-decoration: none; font-weight: 650; }
h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.05; margin: 0 0 12px; letter-spacing: -0.03em; }
h2 { margin: 0 0 8px; font-size: 1.55rem; letter-spacing: -0.02em; }
h3 { margin: 0 0 8px; }
.intro { font-size: 1.05rem; max-width: 68ch; }
.freshness, .note, .source, .meta { color: var(--muted); }
.note { font-size: 0.92rem; }
.eyebrow { margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.75rem; font-weight: 800; }

.hero-banner {
  position: relative;
  isolation: isolate;
  min-height: 440px;
  border-radius: 28px;
  overflow: hidden;
  padding: 36px;
  display: grid;
  grid-template-columns: 1.35fr 0.8fr;
  gap: 22px;
  align-items: end;
  color: white;
  background: #0b1c33 url("/images/sneeuwhoogte/landschap.jpg") center 40% / cover no-repeat;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.18);
}
.hero-banner.is-country { background-image: url("/images/sneeuwhoogte/chalets.jpg"); }
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(7, 16, 32, 0.82) 0%, rgba(7, 16, 32, 0.42) 52%, rgba(7, 16, 32, 0.18) 100%);
  z-index: -1;
}
.hero-copy .intro, .hero-copy .freshness, .hero-copy .eyebrow { color: rgba(255,255,255,.88); }
.stat-grid, .highlight-grid, .forecast, .zone-grid, .live-grid, .place-grid, .country-grid { display: grid; gap: 14px; }
.stat-grid { grid-template-columns: 1fr; }
.stat-grid div {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(10px);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.stat-grid dt { color: rgba(255,255,255,.78); font-size: 0.82rem; }
.stat-grid dd { margin: 6px 0 0; font-weight: 800; font-size: 1.35rem; }
.stat-grid a { color: white; }
.btn, button, select, input { font: inherit; }
.btn, button[type="submit"], #fav-only {
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white; text-decoration: none;
  border: 0; border-radius: 999px; padding: 12px 18px; font-weight: 750; cursor: pointer;
  box-shadow: 0 8px 18px rgba(79, 70, 229, 0.28);
}
.btn-secondary, #fav-only { background: white; color: var(--brand); border: 1px solid #c7d2fe; box-shadow: none; }
.hero-actions, .filter-top { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }

.scene-strip { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 0.9fr; gap: 12px; margin-top: 16px; }
.scene-strip figure { margin: 0; position: relative; border-radius: 18px; overflow: hidden; min-height: 150px; }
.scene-strip img { width: 100%; height: 170px; object-fit: cover; }
.scene-strip figcaption {
  position: absolute; left: 10px; bottom: 10px;
  background: rgba(15, 23, 42, 0.72); color: white;
  border-radius: 999px; padding: 4px 10px; font-size: 0.78rem; font-weight: 700;
}

.card-section, .filters, .highlights, .prose, section[aria-labelledby="faq"], section[aria-labelledby="uitleg"] {
  margin-top: 28px;
}
.filters, .highlights, .prose, section[aria-labelledby="faq"] {
  background: white;
  border-radius: 24px;
  padding: 22px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}
.section-head { margin-bottom: 14px; }
.section-head p, .section-more { color: var(--muted); margin: 0; }
.section-more { margin-top: 14px; }
.section-more a { font-weight: 800; text-decoration: none; }

.filters { margin-top: 22px; }
.filter-top label, .filter-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.92rem; font-weight: 700; }
.filter-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
input, select { border: 1px solid #cbd5e1; border-radius: 12px; padding: 11px 12px; background: #f8fafc; color: var(--ink); }
.filter-more { margin-top: 12px; }
.results-bar { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 18px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a, .text-btn { background: #e0e7ff; color: #312e81; text-decoration: none; border-radius: 999px; padding: 6px 10px; font-size: 0.9rem; font-weight: 700; }
.rows { display: flex; flex-direction: column; gap: 14px; }
.snow-row {
  display: grid;
  grid-template-columns: 156px minmax(190px, 1.15fr) minmax(250px, 0.85fr) minmax(190px, 0.9fr) minmax(148px, 0.6fr);
  gap: 16px;
  padding: 12px;
  border: 1px solid #e8eef5;
  border-radius: 22px;
  background: white;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.04);
}
.snow-row h2 { font-size: 1.2rem; margin: 0; }
.snow-row h2 a { color: var(--ink); text-decoration: none; }
.snow-row h2 a:hover { color: var(--brand); }
.snow-row-title { display: flex; justify-content: space-between; gap: 8px; align-items: start; }
.snow-photo { position: relative; display: block; border-radius: 16px; overflow: hidden; background: #dbe7f5; min-height: 132px; height: 100%; }
.snow-photo > img { width: 100%; height: 100%; object-fit: cover; min-height: 132px; }
.snow-photo .photo-fallback {
  display: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 38%, rgba(255,255,255,.95) 0 18%, transparent 19%),
    linear-gradient(165deg, #123a66 0%, #3b82c4 58%, #d7e7f8 100%);
}
.snow-photo .photo-fallback::before {
  content: "❄";
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  font-size: clamp(4.5rem, 8vw, 7rem);
  line-height: 1;
  color: rgba(255,255,255,.92);
  text-shadow: 0 10px 24px rgba(15, 23, 42, 0.25);
}
.snow-photo.is-fallback .photo-fallback,
.snow-photo:not(:has(> img)) .photo-fallback { display: block; }
.snow-photo .fallback-logo {
  position: absolute;
  left: 50%;
  top: 46%;
  width: 72px;
  height: 72px;
  min-height: 0;
  max-width: none;
  object-fit: contain;
  transform: translate(-50%, -54%);
  background: white;
  border-radius: 22px;
  padding: 8px;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.22);
}
.depths { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; align-content: center; }
.depths div { background: linear-gradient(180deg, #eef4ff, #f8fbff); border-radius: 16px; padding: 12px; }
.depths span, .facts dt { display: block; color: var(--muted); font-size: 0.75rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.depths span { text-transform: none; letter-spacing: 0; font-weight: 700; white-space: nowrap; }
.depths strong { display: block; font-size: 1.65rem; line-height: 1.05; color: #1d4ed8; letter-spacing: -0.03em; white-space: nowrap; }
.depths .depth-low { color: var(--low); }
.depths .is-missing, .hero-depths .is-missing { font-size: 0.95rem; color: var(--muted); font-weight: 700; white-space: normal; line-height: 1.25; }
.facts { display: grid; gap: 8px; margin: 0; align-content: center; }
.facts div { margin: 0; }
.facts dd { margin: 0; font-weight: 700; }
.badge { display: inline-block; border-radius: 999px; padding: 5px 10px; font-weight: 800; font-size: 0.82rem; }
.badge-gunstig { background: #dcfce7; color: var(--ok); }
.badge-wisselend { background: #fef3c7; color: #92400e; }
.badge-ongunstig { background: #ffedd5; color: var(--warn); }
.badge-onvoldoende { background: #e2e8f0; color: #334155; }
.warn { color: var(--warn); font-weight: 700; }
.fav { border: 0; background: #fff7ed; cursor: pointer; font-size: 1.15rem; color: #b45309; width: 34px; height: 34px; border-radius: 999px; }
.compare-pick { display: flex; gap: 6px; align-items: center; font-size: 0.92rem; }
.more { font-weight: 800; text-decoration: none; }
.snow-row-side { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.pager { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.empty { padding: 24px; background: var(--paper); border-radius: var(--radius); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.highlight-grid { grid-template-columns: repeat(4, 1fr); }
.highlight-card { background: linear-gradient(180deg, #f8fbff, #fff); border: 1px solid #e6eef8; border-radius: 18px; padding: 14px 16px; }
.highlight-grid ol { margin: 0; padding-left: 18px; }
.highlight-grid li { margin: 8px 0; }
.highlight-grid strong { display: inline-block; margin-left: 6px; color: #1d4ed8; }
.place-grid { grid-template-columns: repeat(3, 1fr); }
.place-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--ink);
  background: white; border-radius: 22px; overflow: hidden;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  min-height: 240px;
}
.place-card .snow-photo { border-radius: 0; min-height: 160px; height: 160px; }
.place-card-body { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.place-card-body em, .country-card em { font-style: normal; color: #e2e8f0; font-size: 0.9rem; }
.place-card-body em { color: var(--muted); }
.country-grid { grid-template-columns: repeat(4, 1fr); }
.country-card {
  position: relative;
  min-height: 168px;
  border-radius: 22px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  padding: 16px;
  text-decoration: none;
  color: white;
  background-position: center;
  background-size: cover;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}
.country-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 16, 32, 0.05), rgba(8, 16, 32, 0.78));
}
.country-card span { position: relative; display: flex; flex-direction: column; gap: 4px; }
.country-card strong { font-size: 1.08rem; }
.blog-links { list-style: none; padding: 0; display: grid; gap: 8px; margin-top: 16px; }
.blog-links a { display: block; background: white; border-radius: 14px; padding: 12px 14px; text-decoration: none; font-weight: 750; box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05); }
.prose { max-width: none; }
.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 750; }
.piste-split { font-size: 0.85rem; }

.resort-cover { border-radius: 28px; overflow: hidden; margin-bottom: 18px; box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14); }
.resort-cover .snow-photo { min-height: 320px; height: 360px; border-radius: 0; }
.resort-hero { display: grid; grid-template-columns: 1.4fr 0.8fr; gap: 24px; align-items: start; background: white; border-radius: 24px; padding: 22px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05); }
.hero-depths { background: linear-gradient(180deg, #eef4ff, #f8fbff); border-radius: 20px; padding: 16px; display: grid; gap: 12px; }
.hero-depths strong { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: #1d4ed8; letter-spacing: -0.04em; }
.hero-depths .depth-low { color: var(--low); }
.live-grid, .zone-grid { grid-template-columns: repeat(3, 1fr); }
.live-grid div, .zone-grid article, .forecast article {
  background: white; border-radius: var(--radius); padding: 14px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}
.forecast { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.forecast-snow { font-size: 1.35rem; font-weight: 800; color: #1d4ed8; margin: 0; }
.chart svg { width: 100%; height: auto; background: white; border-radius: 16px; }
.legend { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 0; list-style: none; color: var(--muted); }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 4px; margin-right: 6px; vertical-align: -2px; }
.swatch.peak { background: #1d4ed8; }
.swatch.valley { background: #0f766e; }
.swatch.fresh { background: #38bdf8; }
.swatch.forecast { background: #c084fc; }
.facts-block { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 980px) {
  .hero-banner, .resort-hero, .snow-row, .highlight-grid, .filter-grid, .live-grid, .zone-grid, .facts-block, .place-grid, .country-grid, .scene-strip {
    grid-template-columns: 1fr 1fr;
  }
  .snow-row { grid-template-columns: 140px 1fr; }
  .facts, .snow-row-side { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .top-inner, main, .foot { width: min(1180px, calc(100% - 20px)); }
  .top-inner { flex-wrap: wrap; gap: 8px; }
  .hero-banner, .resort-hero, .snow-row, .highlight-grid, .filter-grid, .live-grid, .zone-grid, .facts-block, .place-grid {
    grid-template-columns: 1fr;
  }
  .scene-strip, .country-grid { grid-template-columns: 1fr 1fr; }
  .scene-strip img { height: 120px; }
  .country-card { min-height: 132px; }
  .hero-banner { padding: 22px 16px; min-height: 0; }
  .snow-row { grid-template-columns: 1fr; }
  .snow-photo, .place-card .snow-photo { height: 180px; }
  .resort-cover .snow-photo { height: 220px; min-height: 220px; }
  .depths strong { font-size: 1.55rem; }
  .filters, .highlights, .prose, section[aria-labelledby="faq"] { padding: 16px; }
}
