/* SwissSkiArea — Swiss typographic style.
   One typeface, a strict grid, black rules, red as the only accent. */

@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #ffffff;
  --paper-2: #f4f4f2;
  --ink: #111111;
  --ink-2: #3d3d3d;
  --muted: #6e6e6e;
  --line: #e3e3e0;
  --rule: #111111;
  --accent: #e3000f;
  --accent-ink: #ffffff;
  --focus: #e3000f;

  --easy: #1f5fd6;
  --intermediate: #e3000f;
  --advanced: #111111;
  --freeride: #f39200;
  --unknown: #b9b9b5;
  --sled: #8a5cf6;
  --lift: #111111;

  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 2px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0f0f0f; --paper-2: #1a1a1a; --ink: #f2f2f0; --ink-2: #cfcfcb; --muted: #9a9a96;
    --line: #2a2a2a; --rule: #f2f2f0; --accent: #ff2d3a; --advanced: #f2f2f0; --lift: #f2f2f0;
    --easy: #4f8cff; --intermediate: #ff3b47; --unknown: #5e5e5a;
    color-scheme: dark;
  }
}
:root[data-theme='dark'] {
  --paper: #0f0f0f; --paper-2: #1a1a1a; --ink: #f2f2f0; --ink-2: #cfcfcb; --muted: #9a9a96;
  --line: #2a2a2a; --rule: #f2f2f0; --accent: #ff2d3a; --advanced: #f2f2f0; --lift: #f2f2f0;
  --easy: #4f8cff; --intermediate: #ff3b47; --unknown: #5e5e5a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 16px/1.5 var(--font); font-feature-settings: 'ss01', 'cv11';
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
button, input, select { font: inherit; color: inherit; }
.num, table, .figure b { font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.muted { color: var(--muted); }

/* ── header ─────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -0.02em; font-size: 19px; text-decoration: none; }
.brand:hover { color: inherit; }
.brand-mark { width: 22px; height: 22px; background: var(--accent); position: relative; flex: none; }
.brand-mark::after { content: ''; position: absolute; left: 4px; right: 4px; bottom: 5px; height: 9px; background: var(--paper); clip-path: polygon(0 100%, 38% 15%, 55% 50%, 70% 30%, 100% 100%); }
.brand small { font-weight: 500; color: var(--muted); font-size: 13px; letter-spacing: 0; }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); white-space: nowrap; }
.nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }
.theme-toggle { border: 0; background: none; padding: 6px; cursor: pointer; color: var(--ink-2); border-radius: var(--radius); }
.theme-toggle:hover { color: var(--accent); }
@media (max-width: 560px) { .site-header .wrap { gap: 14px; } .nav { gap: 14px; font-size: 14px; } .brand small { display: none; } .hero { padding-top: 28px; } .hero-grid { margin-top: 20px; gap: 22px; } .count-extra { display: none; } }

/* ── type ───────────────────────────────────────────────── */
h1, h2, h3 { margin: 0; letter-spacing: -0.025em; line-height: 1.05; font-weight: 700; }
.display { font-size: clamp(2.6rem, 8vw, 6.2rem); letter-spacing: -0.045em; line-height: 0.92; }
.h1 { font-size: clamp(2.2rem, 6vw, 4.4rem); letter-spacing: -0.04em; line-height: 0.95; }
.h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.h3 { font-size: 1.125rem; letter-spacing: -0.01em; }
.label { font-size: 13px; color: var(--muted); font-weight: 500; letter-spacing: 0.01em; }
.lead { font-size: clamp(1.05rem, 2vw, 1.3rem); color: var(--ink-2); max-width: 46ch; line-height: 1.45; }

/* ── sections ───────────────────────────────────────────── */
.section { padding: clamp(36px, 6vw, 72px) 0; }
.section + .section { padding-top: 0; }
.section-head { display: grid; grid-template-columns: 1fr; gap: 8px; border-top: 2px solid var(--rule); padding-top: 14px; margin-bottom: 28px; }
@media (min-width: 860px) { .section-head { grid-template-columns: 3fr 9fr; gap: 24px; } }
.section-head .h2 { font-size: 1.375rem; }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(24px, 4vw, 40px); }
.hero .display .accent { color: var(--accent); }
.hero-grid { display: grid; gap: 28px; margin-top: 28px; }
@media (min-width: 860px) { .hero-grid { grid-template-columns: 7fr 5fr; align-items: end; } }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--rule); }
.stats div { padding: 12px 0 0; }
.stats b { display: block; font-size: clamp(1.5rem, 3.4vw, 2.25rem); letter-spacing: -0.03em; line-height: 1; font-weight: 700; }
.stats span { font-size: 13px; color: var(--muted); }

/* ── search & filters ───────────────────────────────────── */
.finder { position: sticky; top: 60px; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); padding: 12px 0; }
.finder .wrap { display: grid; gap: 10px; }
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search input { width: 100%; height: 50px; padding: 0 44px 0 44px; border: 1.5px solid var(--ink); border-radius: var(--radius); background: var(--paper); font-size: 17px; }
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.search .clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 34px; height: 34px; cursor: pointer; color: var(--muted); display: none; }
.search.has-value .clear { display: block; }
.controls { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin: 0 calc(var(--gutter) * -1); padding-left: var(--gutter); padding-right: var(--gutter); }
.controls::-webkit-scrollbar { display: none; }
.select, .chip, .seg button { height: 36px; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 0 14px; font-size: 14px; white-space: nowrap; cursor: pointer; flex: none; }
.select { appearance: none; -webkit-appearance: none; padding-right: 30px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.select:hover, .chip:hover { border-color: var(--ink); }
.select.active, .chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); border-color: var(--ink); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23fff' stroke-width='1.5'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E"); }
.chip[aria-pressed='true'] { background-image: none; }
.chip.near svg { display: inline; vertical-align: -2px; margin-right: 4px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; flex: none; }
.seg button { border: 0; height: 30px; padding: 0 14px; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
.result-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 10px; font-size: 14px; color: var(--muted); }
.rb-right { display: inline-flex; align-items: center; gap: 14px; flex: none; }
abbr[title] { text-decoration: none; }
.result-bar b { color: var(--ink); font-weight: 600; }
.reset { border: 0; background: none; color: var(--accent); cursor: pointer; padding: 0; font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* ── resort table / cards ───────────────────────────────── */
.resorts { width: 100%; border-collapse: collapse; }
.resorts thead th { position: sticky; top: 180px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px 10px 8px 0; border-bottom: 2px solid var(--rule); background: var(--paper); white-space: nowrap; }
.resorts th.r, .resorts td.r { text-align: right; }
.resorts th button { all: unset; cursor: pointer; }
.resorts th button:hover { color: var(--ink); }
.resorts th[aria-sort] button { color: var(--ink); font-weight: 600; }
.resorts th[aria-sort='descending'] button::after { content: ' ↓'; }
.resorts th[aria-sort='ascending'] button::after { content: ' ↑'; }
.resorts td { padding: 14px 10px 14px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.resorts tbody tr { cursor: pointer; transition: background .12s; }
.resorts tbody tr:hover { background: var(--paper-2); }
.resorts tbody tr:hover .name a { color: var(--accent); }
.resorts .rank { width: 36px; color: var(--muted); font-size: 13px; }
.resorts .name a { font-weight: 600; font-size: 17px; letter-spacing: -0.01em; text-decoration: none; }
.resorts .name small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 46ch; }
.resorts .big { font-size: 17px; font-weight: 600; }
.resorts .unit { color: var(--muted); font-size: 13px; font-weight: 400; margin-left: 2px; }
.ct { display: inline-block; min-width: 30px; text-align: center; font-size: 12px; font-weight: 600; border: 1px solid var(--ink); padding: 1px 5px; border-radius: var(--radius); letter-spacing: 0.04em; }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.03em; color: var(--muted); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 5px; margin-left: 6px; vertical-align: 2px; }
.bar { display: flex; height: 6px; width: 100%; min-width: 72px; background: var(--paper-2); overflow: hidden; border-radius: 1px; }
.bar i { display: block; height: 100%; }
.bar .easy { background: var(--easy); } .bar .intermediate { background: var(--intermediate); } .bar .advanced { background: var(--advanced); } .bar .freeride { background: var(--freeride); } .bar .unknown { background: var(--unknown); }
.dist { color: var(--accent); font-size: 13px; font-weight: 600; white-space: nowrap; }

@media (max-width: 859px) {
  .resorts thead { display: none; }
  .resorts, .resorts tbody { display: block; }
  .resorts tr { display: grid; grid-template-columns: 1fr auto; grid-template-areas: 'name ct' 'facts facts' 'bar bar'; gap: 8px 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
  .resorts td { display: block; padding: 0; border: 0; }
  .resorts .rank, .resorts .c-vert { display: none; }
  .resorts .name { grid-area: name; min-width: 0; }
  .resorts .name small { max-width: none; white-space: normal; }
  .resorts .c-ct { grid-area: ct; }
  .resorts .facts-m { grid-area: facts; display: flex; gap: 18px; font-size: 14px; color: var(--ink-2); }
  .resorts .facts-m b { font-weight: 600; color: var(--ink); }
  .resorts .c-bar { grid-area: bar; }
  .resorts .c-top, .resorts .c-km, .resorts .c-lifts, .resorts .c-price { display: none; }
}
@media (min-width: 860px) { .resorts .facts-m { display: none; } }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

/* ── map ────────────────────────────────────────────────── */
.map { width: 100%; height: min(72vh, 720px); background: var(--paper-2); border: 1px solid var(--line); position: relative; z-index: 0; isolation: isolate; }
.map-wrap[hidden] { display: none; }
.leaflet-container { font: inherit !important; background: var(--paper-2) !important; }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; box-shadow: 0 6px 24px rgba(0,0,0,.18) !important; }
.leaflet-popup-content { margin: 12px 14px !important; font-size: 14px; line-height: 1.4; }
.leaflet-popup-content a.pop-title { font-weight: 700; font-size: 16px; text-decoration: none; color: var(--ink); }
.leaflet-control-attribution { font-size: 10px !important; }
.pin-label { background: none; border: 0; box-shadow: none; font-weight: 600; font-size: 12px; color: #111; text-shadow: 0 0 3px #fff, 0 0 3px #fff; padding: 0; }
.pin-label::before { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .tiles-dim { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); } }
:root[data-theme='dark'] .tiles-dim { filter: invert(1) hue-rotate(180deg) brightness(.85) contrast(.9); }

/* ── resort page ────────────────────────────────────────── */
.crumbs { font-size: 14px; color: var(--muted); padding-top: 28px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.resort-head { padding: 18px 0 32px; }
.resort-head .places { margin-top: 14px; font-size: clamp(1rem, 2vw, 1.2rem); color: var(--ink-2); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.badge { font-size: 13px; border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px; white-space: nowrap; text-decoration: none; }
.badge.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
a.badge:hover { border-color: var(--accent); color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.btn { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 18px; border: 1.5px solid var(--ink); border-radius: var(--radius); text-decoration: none; font-weight: 600; font-size: 15px; background: var(--paper); cursor: pointer; }
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.figures { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 2px solid var(--rule); }
@media (min-width: 620px) { .figures { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .figures { grid-template-columns: repeat(5, 1fr); } }
.figure { padding: 14px 16px 20px 0; border-bottom: 1px solid var(--line); }
.figure .label { display: block; margin-bottom: 6px; }
.figure b { display: block; font-size: clamp(2rem, 4.2vw, 3.1rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.figure b small { font-size: 0.42em; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: 3px; }
.figure .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }

.cols { display: grid; gap: clamp(28px, 4vw, 48px); }
@media (min-width: 980px) { .cols { grid-template-columns: 7fr 5fr; } }

/* conditions */
.wx { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--rule); }
.wx-cell { padding: 14px 12px 16px 0; border-bottom: 1px solid var(--line); }
.wx-cell + .wx-cell { padding-left: 16px; border-left: 1px solid var(--line); }
.wx-temp { font-size: clamp(2rem, 5vw, 2.75rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; margin: 6px 0; }
.wx-meta { font-size: 13px; color: var(--muted); display: grid; gap: 2px; }
.forecast { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin-top: 18px; }
.day { text-align: center; font-size: 12px; color: var(--muted); }
.day b { display: block; color: var(--ink); font-weight: 600; font-size: 13px; }
.day .snowbar { height: 64px; display: flex; align-items: flex-end; justify-content: center; margin: 6px 0; }
.day .snowbar i { display: block; width: 60%; max-width: 26px; background: var(--easy); min-height: 2px; border-radius: 1px 1px 0 0; }
.day .cm { color: var(--ink); font-weight: 600; }
.day .t { white-space: nowrap; }
.wx-note { font-size: 12px; color: var(--muted); margin-top: 14px; }
.skeleton { background: linear-gradient(90deg, var(--paper-2), var(--line), var(--paper-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); color: transparent !important; }
@keyframes sk { to { background-position: -200% 0; } }

/* pistes */
.piste-bar { display: flex; height: 14px; margin: 14px 0 16px; gap: 2px; }
.piste-bar i { display: block; height: 100%; }
.legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; font-size: 14px; }
.legend li { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.legend li span:last-child { margin-left: auto; font-weight: 600; font-variant-numeric: tabular-nums; }
.sw { width: 12px; height: 12px; border-radius: 1px; flex: none; }
.sw.easy { background: var(--easy); } .sw.intermediate { background: var(--intermediate); } .sw.advanced { background: var(--advanced); } .sw.freeride { background: var(--freeride); } .sw.unknown { background: var(--unknown); } .sw.sled { background: var(--sled); }

/* lift table */
.lift-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.lift-types span { font-size: 13px; padding: 4px 10px; background: var(--paper-2); border-radius: 999px; }
.lift-types b { font-weight: 700; margin-right: 4px; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 6px 8px 6px 0; border-bottom: 2px solid var(--rule); }
.table td { padding: 9px 8px 9px 0; border-bottom: 1px solid var(--line); }
.table .r { text-align: right; }
.table-scroll { overflow-x: auto; }
details.more summary { cursor: pointer; font-weight: 600; font-size: 14px; padding: 12px 0; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more summary::after { content: ' +'; color: var(--accent); }
details.more[open] summary::after { content: ' −'; }

/* facts list */
.facts { margin: 0; display: grid; grid-template-columns: max-content 1fr; border-top: 1px solid var(--rule); }
.facts dt, .facts dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.facts dt { color: var(--muted); padding-right: 20px; }

.resort-map { height: min(70vh, 620px); }
.map-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; margin-top: 10px; color: var(--ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend .ln { width: 18px; height: 3px; display: inline-block; }

.cards { display: grid; gap: 0; grid-template-columns: 1fr; border-top: 1px solid var(--rule); }
@media (min-width: 620px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .cards { grid-template-columns: repeat(4, 1fr); } }
.card { display: block; padding: 16px 16px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.card b { display: block; font-size: 17px; letter-spacing: -0.01em; }
.card span { font-size: 13px; color: var(--muted); }
.card:hover b { color: var(--accent); }

.note { font-size: 13px; color: var(--muted); max-width: 70ch; }
.prose { max-width: 68ch; font-size: 17px; }
.prose h2 { font-size: 1.375rem; margin: 2.2em 0 .6em; }
.prose p, .prose li { color: var(--ink-2); }
.prose code { font-size: .9em; background: var(--paper-2); padding: 1px 5px; border-radius: 2px; }

/* canton index */
.canton-grid { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--rule); }
@media (min-width: 620px) { .canton-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 980px) { .canton-grid { grid-template-columns: repeat(5, 1fr); } }
.canton-grid a { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.canton-grid a span { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }

/* ── footer ─────────────────────────────────────────────── */
.site-footer { margin-top: 80px; border-top: 2px solid var(--rule); padding: 28px 0 48px; font-size: 13px; color: var(--muted); }
.site-footer .wrap { display: grid; gap: 20px; }
@media (min-width: 860px) { .site-footer .wrap { grid-template-columns: 3fr 9fr; } }
.site-footer a { color: var(--ink-2); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ── home hero photo ────────────────────────────────────── */
.hero-photo { position: relative; isolation: isolate; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0 0 -1px; z-index: -1; pointer-events: none;
  background: url('/img/hero-1280.jpg') center 28% / cover no-repeat;
  background-image: image-set(url('/img/hero-1280.webp') type('image/webp'), url('/img/hero-1280.jpg') type('image/jpeg'));
  opacity: var(--hero-opacity, 0.26);
  filter: saturate(var(--hero-sat, 0.9));
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.75) 35%, rgba(0, 0, 0, 0.25) 70%, transparent 100%);
}
@media (min-width: 1400px) { .hero-bg { background-image: image-set(url('/img/hero-1672.webp') type('image/webp'), url('/img/hero-1280.jpg') type('image/jpeg')); } }
@media (max-width: 699px) { .hero-bg { background-image: image-set(url('/img/hero-800.webp') type('image/webp'), url('/img/hero-1280.jpg') type('image/jpeg')); background-position: 58% 20%; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) { --hero-opacity: 0.34; --hero-sat: 1; } }
:root[data-theme='dark'] { --hero-opacity: 0.34; --hero-sat: 1; }

/* ── generative resort illustration ─────────────────────── */
.resort-head { position: relative; isolation: isolate; }
.resort-art {
  position: absolute; z-index: -1; pointer-events: none; right: -3%; top: -18px; width: min(56%, 620px);
  opacity: 0.62;
  -webkit-mask-image: radial-gradient(farthest-side at 58% 42%, #000 50%, transparent 100%);
  mask-image: radial-gradient(farthest-side at 58% 42%, #000 50%, transparent 100%);
}
/* content after the header sits above the illustration that bleeds into it */
.resort-head ~ section { position: relative; z-index: 1; }
.resort-art .art { width: 100%; height: auto; overflow: visible; }
.resort-art .sun { transform-box: fill-box; transform-origin: center; animation: shine 7s ease-in-out infinite alternate; }
@keyframes shine { from { opacity: 0.45; transform: scale(0.92); } to { opacity: 0.9; transform: scale(1.08); } }
@media (max-width: 859px) { .resort-art { width: 86%; right: -18%; top: -10px; opacity: 0.32; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .resort-art { opacity: 0.6; } }
:root[data-theme='dark'] .resort-art { opacity: 0.6; }

/* ── prices, Magic Pass, live cams ──────────────────────── */
.mp { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: #5b2bbf; background: color-mix(in srgb, #7c4dff 13%, transparent); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
:root[data-theme='dark'] .mp { color: #c8b3ff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .mp { color: #c8b3ff; } }
.mp-fig { font-size: 15px; vertical-align: middle; padding: 6px 12px; }
.badge.mp-badge { border-color: transparent; background: color-mix(in srgb, #7c4dff 13%, transparent); color: inherit; }
.mp-block { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-2); margin: 16px 0 0; }
.c-price { white-space: nowrap; }
.cam-tag { display: inline-flex; align-items: center; color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); padding: 1px 4px; }
.chip svg.cam { display: inline; vertical-align: -3px; margin-right: 5px; }
.price-big { margin: 0 0 8px; }
.price-big .label { display: block; margin-bottom: 6px; }
.price-big b { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.price-big b small { font-size: 0.4em; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.price-big .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; }
.cam-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1.5px solid var(--ink); border-radius: var(--radius); text-decoration: none; transition: background .15s, color .15s; }
.cam-card > span:nth-child(2) { display: grid; gap: 2px; margin-right: auto; }
.cam-card b { font-size: 17px; }
.cam-card .muted { font-size: 13px; }
.cam-card:hover { background: var(--ink); color: var(--paper); }
.cam-card:hover .muted { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.cam-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 60%, transparent); animation: live 2s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 55%, transparent); } 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.btn .cam-dot { margin-right: 2px; }

/* six key figures */
@media (min-width: 1100px) { .figures { grid-template-columns: repeat(6, 1fr); } }
.summary { font-size: 16px; line-height: 1.6; color: var(--ink-2); max-width: 78ch; margin: 22px 0 0; }

/* FAQ */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 13px 28px 13px 0; font-weight: 600; font-size: 15px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 11px; color: var(--accent); font-weight: 500; font-size: 18px; }
.faq details[open] summary::after { content: '−'; }
.faq p { margin: 0 0 14px; font-size: 15px; color: var(--ink-2); }

/* share dialog */
.btn svg { flex: none; }
.share-dialog { border: 0; padding: 0; border-radius: 6px; background: var(--paper); color: var(--ink); width: min(600px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35); }
.share-dialog::backdrop { background: rgba(10, 10, 10, 0.55); backdrop-filter: blur(4px); }
.share-inner { padding: 18px; }
.share-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.icon-btn { border: 0; background: none; width: 36px; height: 36px; cursor: pointer; font-size: 18px; color: var(--muted); border-radius: var(--radius); }
.icon-btn:hover { color: var(--ink); background: var(--paper-2); }
.share-preview { aspect-ratio: 1; background: var(--paper-2); border: 1px solid var(--line); }
.share-preview img { width: 100%; height: 100%; display: block; }
.share-dialog .actions { margin-top: 16px; }

/* live-data reload */
.reload-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.reload { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 13px; font-weight: 600; cursor: pointer; flex: none; }
.reload:hover { border-color: var(--ink); }
.reload:disabled { cursor: progress; opacity: .7; }
.reload.spinning svg { animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* cookie consent */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 90; max-width: 560px; margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 18px; background: var(--paper); color: var(--ink); border: 1.5px solid var(--ink); border-radius: var(--radius); box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18); font-size: 14px; }
.consent p { margin: 0; flex: 1 1 260px; }
.consent-actions { display: flex; gap: 8px; }
.consent .btn { height: 38px; padding: 0 16px; font-size: 14px; }
.linklike { all: unset; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linklike:hover { color: var(--accent); }
