/* Huisstijl Sneeuwtijd. Laadt na de paginastyles. */

body {
  background: var(--paper);
  color: var(--ink);
}

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

.ico {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.top {
  background: var(--navy);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.top-inner {
  min-height: 72px;
  padding: 10px 0;
  gap: 16px;
}

.brand {
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.brand-tld {
  color: var(--brand);
  font-weight: 800;
}

.brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  background: white;
  border-radius: 10px;
  padding: 3px;
}

.top-nav {
  align-items: center;
  gap: 4px;
}

.top-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d7e3f0;
  font-weight: 650;
  border-radius: 999px;
  padding: 8px 12px;
}

.top-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.top-nav a[aria-current="page"] {
  background: var(--brand);
  color: var(--navy);
}

.top-nav a[aria-current="page"]:hover {
  background: #3cc8ef;
  color: var(--navy);
}

.top-nav .nav-kaart,
.top-nav .nav-kaart:hover,
.top-nav .nav-kaart[aria-current="page"] {
  background: transparent;
  color: #d7e3f0;
  filter: none;
}

.top-nav .nav-kaart[aria-current="page"],
.top-nav a.nav-kaart[aria-current="page"] {
  background: var(--brand);
  color: var(--navy);
}

.nav-admin {
  color: #fff !important;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: white;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 800;
}

.nav-user-btn:hover,
.nav-account .nav-user-menu a:hover,
.nav-account .nav-user-menu button:hover {
  color: var(--navy);
  background: #e7f7fd;
}

a { color: #0b8fb8; }
a:hover { color: #08789c; }

.btn,
button[type="submit"],
#fav-only {
  background: var(--navy);
  color: white;
  border-radius: 12px;
  box-shadow: none;
  min-height: 44px;
}

.btn:hover,
button[type="submit"]:hover {
  background: #0c2c4e;
}

.btn-secondary,
#fav-only {
  background: white;
  color: var(--ink);
  border: 1px solid #d5e0eb;
  box-shadow: none;
}

.btn-secondary:hover,
#fav-only:hover {
  background: #f4f8fb;
  color: var(--ink);
}

.btn-accent,
.home-search .btn,
.hero-search .btn {
  background: var(--orange);
  color: white;
  border: 0;
}

.btn-accent:hover,
.home-search .btn:hover,
.hero-search .btn:hover {
  background: #dd7612;
  color: white;
}

.btn-light {
  background: white;
  color: var(--navy);
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.tip-btn:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

input, select {
  border: 1px solid #d5e0eb;
  border-radius: 12px;
  background: white;
}

input:focus, select:focus {
  border-color: var(--brand);
  outline: none;
  box-shadow: 0 0 0 3px rgba(19, 185, 232, 0.2);
}

.tip {
  position: relative;
  display: inline-flex;
  vertical-align: middle;
  margin-left: 4px;
}

.tip-btn {
  width: 18px;
  height: 18px;
  min-height: 0;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #c5d4e4;
  background: white;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: help;
  box-shadow: none;
}

.tip-bubble {
  display: none;
  position: absolute;
  z-index: 6;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  max-width: 240px;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--navy);
  color: white;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: normal;
}

.tip:hover .tip-bubble,
.tip:focus-within .tip-bubble {
  display: block;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e7f7fd;
  color: #0b6f8c;
  font-size: 0.75rem;
  font-weight: 750;
  line-height: 1.3;
}

.badge .ico { width: 13px; height: 13px; }
.badge.is-navy { background: #e8eef6; color: var(--navy); }
.badge.is-green { background: #e7f6ee; color: #166534; }
.badge.is-amber { background: #fff4e8; color: #9a3412; }
.badge.is-photo {
  position: absolute;
  left: 12px;
  top: 12px;
  background: #5b3cc4;
  color: white;
}

body.page-snow .site-foot,
body.page-home .site-foot,
body.page-guide .site-foot,
body.page-stay .site-foot,
.site-foot {
  width: 100%;
  max-width: none;
  margin: 48px 0 0;
  padding: 0;
  background: var(--navy);
  color: #d5e2ef;
}

.site-foot-inner {
  width: min(1520px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 28px;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px 32px;
}

.site-foot .brand { color: white; }
.site-foot p { margin: 10px 0 0; max-width: 36ch; color: #b7c8da; }
.site-foot h2 {
  margin: 0 0 10px;
  color: white;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.site-foot nav a { color: #d5e2ef; text-decoration: none; font-weight: 650; }
.site-foot nav a:hover { color: var(--brand); }
.site-foot-note {
  grid-column: 1 / -1;
  max-width: none !important;
  margin: 0 !important;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.85rem;
}

/* Homepage: de balk en de hero gebruiken de viewport, secties blijven leesbaar. */
body.page-home main {
  width: 100%;
  max-width: none;
  padding: 0 0 24px;
}

body.page-home main > section {
  width: min(1520px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

body.page-home main > section.hero-banner {
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  min-height: clamp(520px, 68vh, 720px);
  padding: clamp(36px, 6vw, 72px) max(24px, calc((100% - 1520px) / 2));
  box-shadow: none;
}

body.page-home .home-doors {
  margin-top: -36px;
}

.home-search .btn { border-radius: 14px; }

/* Skigebieden */
body.page-guide { overflow-x: clip; }

body.page-guide .hero-banner.is-index,
body.page-guide .hero-banner.is-country {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border-radius: 0;
  min-height: 420px;
  align-items: center;
  box-shadow: none;
}

.hero-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 18px;
  padding: 8px;
  max-width: 720px;
  background: rgba(255, 255, 255, 0.96);
  border-radius: 16px;
}

.hero-search-field { flex: 1 1 240px; margin: 0; }

.hero-search input {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  min-height: 48px;
  padding: 0 12px;
  box-shadow: none;
}

.hero-search input:focus { box-shadow: none; }

.area-cats {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 18px 0 8px;
  padding-bottom: 4px;
}

.area-cats a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 48px;
  padding: 8px 14px;
  border-radius: 14px;
  background: white;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  border: 1px solid var(--line);
  box-shadow: 0 6px 16px rgba(7, 29, 53, 0.04);
}

.area-cats a b {
  color: var(--muted);
  font-weight: 700;
}

.area-cats a[aria-current="page"] {
  background: #e7f7fd;
  border-color: #9adff3;
  color: var(--navy);
}

.area-cats a[aria-current="page"] b { color: #0b8fb8; }

body.page-guide .stay-finder .stay-grid,
body.page-guide .stay-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.area-card {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 0;
  position: relative;
  background: white;
  border: 1px solid #e6eef5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(7, 29, 53, 0.05);
}

.area-card-photo {
  position: relative;
  display: block;
  min-height: 210px;
  background: #d7e4f2;
}

.area-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 210px;
}

.area-fav {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: calc(280px - 48px);
  width: 36px;
  height: 36px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: white;
  color: #64788d;
  box-shadow: 0 4px 12px rgba(7, 29, 53, 0.16);
  cursor: pointer;
}

.area-fav .ico { width: 18px; height: 18px; }
.area-fav[aria-pressed="true"] { color: #e11d48; }
.area-fav[aria-pressed="true"] .ico { fill: currentColor; }

.area-card-body { padding: 16px 18px 16px; min-width: 0; }

.area-where {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.area-where img { width: 18px; height: 14px; object-fit: cover; border-radius: 2px; }

.area-card h3 { margin: 0; font-size: 1.35rem; letter-spacing: -0.03em; }
.area-card-body > a { color: inherit; text-decoration: none; }
.area-card-body > a:hover h3 { color: #0b8fb8; }

.area-region { margin: 2px 0 8px; color: var(--muted); font-size: 0.92rem; }

.area-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }

.area-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.area-stats div { min-width: 0; }
.area-stats dt {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.area-stats dd { margin: 2px 0 0; font-weight: 800; font-size: 1.02rem; }
.area-stats small { display: block; color: var(--muted); font-weight: 650; font-size: 0.75rem; }

.area-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.area-actions .btn { min-height: 42px; padding: 10px 14px; }

.piste-split {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.piste-split span { display: inline-flex; align-items: center; gap: 6px; }
.piste-split i,
.piste-bar-key i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}
.piste-split b { color: var(--ink); }

.piste-bar-track { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: #e8eef5; }
.piste-bar-track i { display: block; height: 100%; }
.piste-bar .is-blue, .piste-split .is-blue { background: #2f7fe0; }
.piste-bar .is-red, .piste-split .is-red { background: #e23b3b; }
.piste-bar .is-black, .piste-split .is-black { background: #1c2430; }

.stay-range-slider {
  width: 100%;
  margin: 4px 0 8px;
  accent-color: var(--brand);
}

.stay-facet summary { display: flex; align-items: center; }

body.page-guide .stay-range { grid-template-columns: 1fr; }
body.page-guide .stay-range label { display: flex; flex-direction: column; gap: 6px; font-weight: 700; }
header.top { text-align: left; padding: 0; margin: 0; }
body.page-stay .stay-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

body.page-stay article.stay-row {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: stretch;
  height: auto;
  background: white;
  border: 1px solid #e6eef5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(7, 29, 53, 0.05);
}

body.page-stay article.stay-row:not(:has(.stay-card-media)) {
  grid-template-columns: 1fr;
}

body.page-stay .stay-row .stay-card-media {
  min-height: 210px;
  height: 100%;
}

body.page-stay .stay-row .stay-card-media img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

body.page-stay .stay-row .stay-card-body {
  padding: 16px 18px 16px;
}

body.page-stay .stay-row .stay-card-body div {
  padding: 0;
}

body.page-stay .stay-row h3 {
  min-height: 0;
  margin: 0 0 6px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  -webkit-line-clamp: unset;
  display: block;
}

body.page-stay .stay-row .area-actions {
  margin-top: 14px;
}

@media (max-width: 800px) {
  body.page-stay article.stay-row {
    grid-template-columns: 1fr;
  }
  body.page-stay .stay-row .area-actions .btn {
    width: 100%;
  }
}
body.page-guide .media-card {
  border-radius: 18px;
}

body.page-stay .hero-banner { border-radius: 24px; }

.resort-stage { border-radius: 24px; }
.resort-tabs a[aria-current="page"] { background: var(--navy); }

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .top { position: relative; }
  .top-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 16px;
    background: var(--navy);
    box-shadow: 0 16px 30px rgba(7, 29, 53, 0.28);
  }
  .top-nav.is-open { display: flex; }
  .top-nav a, .nav-user-btn { justify-content: flex-start; }
  .nav-account {
    margin: 8px 0 0;
    padding: 8px 0 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    flex-direction: column;
    align-items: stretch;
  }
  .nav-user-menu { position: static; min-width: 0; margin-top: 6px; }
}

@media (max-width: 800px) {
  .area-card { grid-template-columns: 1fr; }
  .area-fav { left: auto; right: 12px; }
  .area-stats { grid-template-columns: 1fr; }
  .area-actions .btn { flex: 1 1 100%; }
  .site-foot-inner { grid-template-columns: 1fr; }
  body.page-home main > section.hero-banner,
  body.page-guide .hero-banner.is-index,
  body.page-guide .hero-banner.is-country {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 28px 16px 32px;
  }
  .hero-search, .home-search { max-width: none; }
}

@media (min-width: 1920px) {
  .top-inner, main, .foot, .site-foot-inner {
    width: min(1600px, calc(100% - 64px));
  }
  body.page-home main,
  body.page-home .site-foot,
  .site-foot {
    width: 100%;
    max-width: none;
  }
}
