/* =========================================================
   Vergalderie, Gargellen — Konzeptentwurf (VCSLV)
   Instrument Serif (Überschriften, Zahlen) · Jost (Text, Bedienung, die eigene Wortmarke)
   Schwarz und Weiß wie vergalderie.at, Montafoner Stein, Weißtanne, Bronze der Skulpturen
   ========================================================= */

@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url('../fonts/instrument-serif-italic.woff2') format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Jost'; src: url('../fonts/jost.woff2') format('woff2'); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --night: #0f0e0c;
  --coal: #181614;
  --coal-2: #23201c;
  --coal-3: #2e2a25;
  --ink: #171513;
  --paper: #f3f0ea;
  --paper-2: #e8e3d9;
  --paper-3: #fbfaf7;
  --stone: #8b857c;
  --stone-l: #cfc9bf;
  --bronze: #b98a4e;
  --bronze-l: #e2c38f;
  --bronze-d: #8a6431;
  --bronze-ink: #7a5627;
  --muted: #69635b;
  --ok: #9ccc8f;
  --line: rgba(23, 21, 19, .12);
  --line-2: rgba(23, 21, 19, .24);
  --line-inv: rgba(243, 240, 234, .14);
  --line-inv-2: rgba(243, 240, 234, .3);
  --muted-inv: rgba(243, 240, 234, .68);

  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Jost', 'Futura', 'Avenir Next', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);

  --gutter: clamp(16px, 4.2vw, 64px);
  --maxw: 1480px;
  --hdr-h: 76px;
  --r: 3px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-anchor: none; }
body { overflow-anchor: none; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.6; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
  overflow-x: clip; font-variant-numeric: lining-nums;
}
img, video, svg { display: block; max-width: 100%; }
svg { fill: currentColor; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4, p, ol, ul, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ol, ul { list-style: none; }
::selection { background: var(--bronze-l); color: var(--ink); }
:focus-visible { outline: 2px solid var(--bronze); outline-offset: 3px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 200; background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: var(--r); transition: top .2s; }
.skip:focus { top: 16px; }
@media (max-width: 719px) { .hide-s { display: none !important; } }
@media (min-width: 720px) { .show-s { display: none !important; } }

/* ---------- Type ---------- */
.h2 { font-family: var(--serif); font-weight: 400; line-height: 1; letter-spacing: -.005em; text-wrap: balance; }
.h2 em { font-style: italic; color: var(--bronze-ink); }
[data-theme="dark"] .h2 em { color: var(--bronze-l); }
.ln-mask { padding: 0 .22em .16em 0; margin: 0 -.22em -.16em 0; }
.h-label { display: inline-flex; align-items: center; gap: 14px; color: var(--bronze-ink); }
.h-label::before { content: ''; width: 18px; height: 1px; background: currentColor; }
.h-label--inv { color: var(--bronze-l); }

/* ---------- Buttons ---------- */
.btn {
  --h: 50px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  height: var(--h); padding: 0 22px 0 24px; border-radius: var(--r);
  font-size: 15px; font-weight: 500; letter-spacing: .01em; white-space: nowrap;
  border: 1px solid transparent; position: relative; overflow: hidden; isolation: isolate;
  transition: color .45s var(--ease), border-color .45s var(--ease), background-color .45s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease); }
.btn:hover::after { transform: scaleX(1); }
.btn--bronze { background: var(--bronze); color: var(--night); }
.btn--bronze::after { background: var(--bronze-l); }
.btn--dark { background: var(--coal); color: var(--paper); }
.btn--dark::after { background: var(--coal-3); }
.btn--line { border-color: currentColor; }
.btn--line::after { background: currentColor; opacity: .14; }
/* the wipe is a light tint of the button's own colour and the label keeps its colour, so it reads on any ground
   (a full currentColor fill plus a hover colour hid the label: the fill takes the hover colour too) */
.link-arrow { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 3px; transition: gap .4s var(--ease); }
.link-arrow svg { width: 16px; height: 16px; }
.link-arrow:hover { gap: 16px; }
.dot { position: relative; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex: none; }
.dot::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(156, 204, 143, .55); animation: pulse 2.4s infinite; }
.dot.is-off::after { animation-play-state: paused; }
@keyframes pulse { 0% { transform: scale(1); opacity: 1; } 70%, 100% { transform: scale(3.6); opacity: 0; } }

/* segmented control with sliding pill */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: 5px; background: rgba(23, 21, 19, .07); max-width: 100%; }
.seg button { position: relative; z-index: 1; height: 38px; padding: 0 16px; border-radius: var(--r); font-size: 14px; font-weight: 500; white-space: nowrap; color: var(--muted); transition: color .4s var(--ease); }
.seg button[aria-selected="true"] { color: var(--paper); }
.seg__pill { position: absolute; z-index: 0; top: 4px; left: 0; height: 38px; border-radius: var(--r); background: var(--coal); transition: transform .55s var(--ease), width .55s var(--ease); }
.seg--dark { background: rgba(243, 240, 234, .08); }
.seg--dark button { color: var(--muted-inv); }
.seg--dark button[aria-selected="true"] { color: var(--night); }
.seg--dark .seg__pill { background: var(--bronze-l); }

/* ---------- Header ---------- */
.hdr {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--hdr-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter); color: var(--paper);
  transition: color .5s var(--ease), transform .6s var(--ease), height .5s var(--ease), box-shadow .5s;
}
.hdr::before { content: ''; position: absolute; inset: 0; z-index: -1; background: transparent; transition: background-color .5s var(--ease); }
.hdr.is-solid { --hdr-h: 64px; color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.hdr.is-solid::before { background: rgba(243, 240, 234, .94); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); }
.hdr.is-solid.on-dark { color: var(--paper); box-shadow: 0 1px 0 var(--line-inv); }
.hdr.is-solid.on-dark::before { background: var(--hdr-dark, rgba(24, 22, 20, .93)); }
.hdr.is-hidden { transform: translateY(-100%); }
.hdr__brand { display: flex; align-items: center; gap: 12px; flex: none; transition: opacity .6s var(--ease); }
.hdr__v { width: 20px; height: 21px; color: var(--bronze-l); }
.hdr.is-solid:not(.on-dark) .hdr__v { color: var(--bronze-ink); }
.hdr__word { font-family: var(--sans); font-size: 15px; line-height: 1; font-weight: 500; letter-spacing: .3em; text-transform: uppercase; }
.hdr.has-crest .hdr__brand { opacity: 0; pointer-events: none; }
.hdr:not(.is-solid) { text-shadow: 0 1px 14px rgba(0, 0, 0, .35); }
.hdr__nav { display: flex; gap: clamp(18px, 2.2vw, 38px); font-size: 14.5px; font-weight: 500; transition: opacity .4s var(--ease); }
.hdr__nav a { position: relative; padding: 6px 0; opacity: .92; }
.hdr__nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr__nav a:hover::after, .hdr__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.hdr__actions { display: flex; align-items: center; gap: 14px; flex: none; }
.hdr__book { --h: 42px; font-size: 14px; padding: 0 18px 0 20px; }
.hdr__book svg { width: 15px; height: 15px; }
.hdr__menu { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 4px 0 10px; font-size: 14px; font-weight: 500; }
.hdr__burger { width: 26px; height: 10px; position: relative; display: block; }
.hdr__burger i { position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; transition: transform .5s var(--ease), top .5s var(--ease); }
.hdr__burger i:first-child { top: 0; }
.hdr__burger i:last-child { top: 8.5px; }
.menu-open .hdr__burger i:first-child { top: 4.25px; transform: rotate(45deg); }
.menu-open .hdr__burger i:last-child { top: 4.25px; transform: rotate(-45deg); }
.menu-open .hdr { color: var(--paper); }
.menu-open .hdr::before { background: var(--night) !important; backdrop-filter: none !important; }
.menu-open .hdr.is-solid { box-shadow: none; }
.menu-open .hdr__v { color: var(--bronze-l) !important; }
.menu-open .hdr__brand { opacity: 1 !important; pointer-events: auto !important; }
.menu-open .hdr__nav { opacity: 0; pointer-events: none; }
@media (max-width: 1100px) { .hdr__nav { display: none; } }
@media (max-width: 719px) {
  :root { --hdr-h: 64px; }
  .hdr.is-solid { --hdr-h: 56px; }
  .hdr__book { display: none; }
  .hdr__word { font-size: 13.5px; letter-spacing: .26em; }
  .hdr__menu-label { display: none; }
  .hdr__menu { width: 44px; justify-content: center; padding: 0; }
}

/* ---------- Menu overlay ---------- */
.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--night); color: var(--paper);
  display: grid; grid-template-columns: 1fr 1.25fr; grid-template-rows: 1fr auto;
  padding: calc(var(--hdr-h) + 24px) var(--gutter) 28px; gap: 0 6vw; clip-path: inset(0 0 100% 0);
}
.menu[hidden] { display: none; }
.menu__media { position: relative; grid-row: 1 / 3; overflow: hidden; border-radius: var(--r); }
.menu__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .7s var(--ease), transform 1.2s var(--ease); }
.menu__media img.is-on { opacity: 1; transform: scale(1); }
.menu__nav { align-self: center; }
.menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line-inv); }
.menu__nav a { display: grid; grid-template-columns: 52px 1fr auto; align-items: baseline; gap: 12px; padding: 12px 0; font-family: var(--serif); font-weight: 400; font-size: clamp(2rem, min(3vw, 5.4svh), 3.3rem); line-height: 1.05; transition: color .4s, padding .5s var(--ease); }
.menu__nav a:hover { padding-left: 14px; color: var(--bronze-l); }
.menu__no { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--muted-inv); font-weight: 500; }
.menu__nav em { font-family: var(--sans); font-style: normal; font-size: 13px; letter-spacing: .02em; color: var(--muted-inv); text-align: right; }
.menu__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; font-size: 15px; padding-top: 24px; }
.menu__foot a:not(.btn) { display: inline-flex; align-items: center; gap: 10px; }
.menu__foot svg { width: 18px; height: 18px; }
.menu__foot .btn { margin-left: auto; }
@media (max-width: 899px) {
  .menu { grid-template-columns: 1fr; grid-template-rows: auto 1fr auto; padding-top: calc(var(--hdr-h) + 8px); overflow-y: auto; overscroll-behavior: contain; }
  .menu__media { grid-row: auto; height: 16vh; min-height: 90px; }
  .menu__nav a { grid-template-columns: 34px 1fr; font-size: clamp(1.8rem, 8vw, 2.5rem); padding: 9px 0; }
  .menu__nav em { grid-column: 2; text-align: left; margin-top: -2px; }
  .menu__foot { gap: 10px 20px; padding-top: 16px; }
  .menu__foot .btn { margin-left: 0; width: 100%; }
}

/* =========================================================
   Hero: the V draws in bronze, the wordmark rises,
   the stone gable appears in the snow
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; padding-top: var(--hdr-h);
  overflow: hidden; color: var(--paper); isolation: isolate; background: var(--night); overflow-anchor: none;
}
.hero__scene { position: absolute; inset: 0; }
.hero__scene picture { position: absolute; inset: 0; }
.hero__fg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; transform-origin: 50% 40%; will-change: transform; }
.js .hero__fg, .js .hero__shade { opacity: 0; }
.hero__shade { position: absolute; inset: 0; z-index: 3; pointer-events: none; background:
  radial-gradient(44% 34% at 50% var(--crest-y, 40%), rgba(12, 11, 9, .62), rgba(12, 11, 9, .28) 62%, rgba(12, 11, 9, 0) 100%),
  linear-gradient(180deg, rgba(12, 11, 9, .7) 0%, rgba(12, 11, 9, .34) 22%, rgba(12, 11, 9, .26) 44%, rgba(12, 11, 9, .36) 62%, rgba(12, 11, 9, .8) 82%, rgba(12, 11, 9, .95) 100%); }

.crest {
  position: relative; z-index: 4; flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: clamp(8px, 2.2svh, 30px) 16px clamp(18px, 3.6svh, 44px);
}
.crest__mark { width: clamp(64px, min(7vw, 11svh), 108px); height: auto; aspect-ratio: 67 / 70; overflow: visible; filter: drop-shadow(0 6px 22px rgba(0, 0, 0, .45)); }
.crest__club { margin-top: clamp(14px, 2.6svh, 28px); font-size: 12px; font-weight: 500; letter-spacing: .5em; padding-left: .5em; text-transform: uppercase; color: var(--bronze-l); text-shadow: 0 1px 10px rgba(0, 0, 0, .55); }
/* the wordmark keeps vergalderie.at's own lockup: Jost, capitals, wide spacing */
.crest__name { margin-top: clamp(8px, 1.4svh, 16px); font-family: var(--sans); font-weight: 450; font-size: clamp(2.6rem, min(5.6vw, 9.4svh), 5.6rem); line-height: 1; letter-spacing: .3em; padding-left: .3em; white-space: nowrap; color: #fbf9f4; text-shadow: 0 2px 30px rgba(0, 0, 0, .45); }
.crest__name span { display: inline-block; }
.crest__since { margin-top: clamp(14px, 2.4svh, 26px); display: flex; align-items: center; gap: 16px; font-size: 11px; font-weight: 500; letter-spacing: .34em; text-transform: uppercase; color: rgba(251, 249, 244, .92); text-shadow: 0 1px 10px rgba(0, 0, 0, .6); }
.crest__since span { padding-left: .34em; }
.crest__since i { width: 40px; height: 1px; background: rgba(226, 195, 143, .85); }
.crest__draw { stroke-dasharray: 1 1; stroke-dashoffset: 0; }
.js .crest__draw { stroke-dashoffset: 1; }
.js .crest__club, .js .crest__name, .js .crest__since { opacity: 0; }
.no-anim .crest__draw, .is-static .crest__draw { stroke-dashoffset: 0 !important; }
.no-anim .crest__club, .no-anim .crest__name, .no-anim .crest__since, .no-anim .hero__fg, .no-anim .hero__shade,
.is-static .crest__club, .is-static .crest__name, .is-static .crest__since, .is-static .hero__fg, .is-static .hero__shade { opacity: 1 !important; }

/* ---------- Stay console ---------- */
.stay {
  position: relative; z-index: 5; width: calc(100% - 2 * var(--gutter)); max-width: 1260px; margin: 0 auto clamp(16px, 3vh, 30px);
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.3fr) minmax(0, .8fr) minmax(280px, auto); grid-template-rows: auto auto;
  background: rgba(251, 250, 247, .97); color: var(--ink); border-radius: 4px; overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, .75), 0 0 0 1px rgba(255, 255, 255, .5) inset;
}
.stay > div:not(.stay__info) { padding: 15px 20px 17px; border-right: 1px solid var(--line); min-width: 0; }
.stay > .stay__go { border-right: 0; }
.stay__lab { display: block; margin-bottom: 9px; color: var(--muted); white-space: nowrap; }
.stay__btn { display: flex; align-items: center; gap: 12px; width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--r); text-align: left; transition: border-color .3s, background-color .3s; }
.stay__btn:hover, .stay__btn[aria-expanded="true"] { border-color: var(--bronze); background: rgba(185, 138, 78, .06); }
.stay__btn svg { width: 20px; height: 20px; color: var(--bronze-ink); flex: none; }
.stay__val { font-size: 15.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stay__btn small { margin-left: auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
/* the short name in the field (the label says what it is); the nights stand beside the price, so they go where the fields are narrow */
@media (min-width: 720px) and (max-width: 1100px) { .stay__btn small { display: none; } }
.stay__go { display: flex; flex-direction: column; justify-content: center; gap: 9px; }
.stay__price { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; line-height: 1; white-space: nowrap; }
.stay__price span { font-size: 12.5px; color: var(--muted); }
.stay__price strong { font-family: var(--serif); font-weight: 400; font-size: 2.4rem; letter-spacing: -.005em; }
.stay__price strong small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; margin-right: 2px; }
.stay__price strong b { font-weight: 400; }
.stay__cta { --h: 46px; width: 100%; }
.stay__info { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 10px 28px; flex-wrap: wrap; padding: 10px 20px 11px; border-top: 1px solid var(--line); background: rgba(232, 227, 217, .78); font-size: 13.5px; }
.stay__notes { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.stay__notes li { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.stay__notes svg { width: 17px; height: 17px; color: var(--bronze-ink); flex: none; }
.stay__notes b { font-weight: 600; }
.stay__more { display: flex; gap: 6px 20px; flex-wrap: wrap; }
.stay__more a { color: var(--muted); border-bottom: 1px solid var(--line-2); transition: color .3s, border-color .3s; }
.stay__more a:hover { color: var(--ink); border-color: var(--ink); }
.js .stay { opacity: 0; }
.no-anim .stay { opacity: 1 !important; }
@media (max-width: 1180px) {
  .stay { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, .8fr); }
  .stay > .stay__go { grid-column: 1 / -1; border-top: 1px solid var(--line); flex-direction: row; align-items: center; }
  .stay__price { flex: 1; }
  .stay__cta { width: auto; }
}

/* ---------- Popovers (apartment, calendar, guests) ---------- */
.pop {
  position: fixed; z-index: 80; top: 0; left: 0; width: min(680px, calc(100vw - 24px));
  background: var(--paper-3); color: var(--ink); border-radius: 5px; padding: 18px 20px 16px;
  box-shadow: 0 40px 90px -30px rgba(12, 11, 9, .55), 0 0 0 1px var(--line);
}
.pop[hidden], .pop__veil[hidden] { display: none; }
.pop--guests { width: min(380px, calc(100vw - 24px)); }
.pop--apt { width: min(460px, calc(100vw - 24px)); }
.pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.pop__title { font-family: var(--serif); font-size: 1.75rem; font-weight: 400; line-height: 1.05; }
.pop__x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); }
.pop__x svg { width: 16px; height: 16px; }
.pop__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.pop__legend { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.pop__ok { --h: 42px; font-size: 14px; flex: none; }
.pop__veil { position: fixed; inset: 0; z-index: 79; background: rgba(12, 11, 9, .45); }
.lg { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin: 0 6px 0 0; vertical-align: -1px; background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(23, 21, 19, .18); }

.cal { position: relative; }
.cal__months { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.cal__nav { position: absolute; top: -2px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--paper-3); }
.cal__nav svg { width: 16px; height: 16px; }
.cal__nav--prev { left: 0; }
.cal__nav--next { right: 0; }
.cal__nav:disabled { opacity: .3; pointer-events: none; }
.cal__m { min-width: 0; }
.cal__mt { height: 30px; display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 1.5rem; font-weight: 400; }
.cal__wd, .cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal__wd { margin: 8px 0 4px; }
.cal__wd span { text-align: center; color: var(--muted); }
.cal__d { position: relative; height: 42px; display: grid; place-items: center; border-radius: var(--r); font-size: 14.5px; font-weight: 500; line-height: 1; transition: background-color .2s; }
.cal__d:hover:not(:disabled) { background: rgba(185, 138, 78, .12); }
.cal__d.is-ski:not(.is-in):not(.is-start):not(.is-end) { background: var(--paper-2); }
.cal__d:disabled { color: rgba(23, 21, 19, .3); cursor: default; background: none !important; }
.cal__d.is-in { background: rgba(185, 138, 78, .2); border-radius: 0; }
.cal__d.is-start, .cal__d.is-end { background: var(--coal); color: var(--paper); }
.cal__d.is-start { border-radius: var(--r) 0 0 var(--r); }
.cal__d.is-end { border-radius: 0 var(--r) var(--r) 0; }
.cal__d.is-today::after { content: ''; position: absolute; left: 50%; top: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--bronze); }
.cal__blank { height: 42px; }

.gst { display: grid; gap: 4px; }
.gst__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.gst__row b { display: block; font-weight: 500; font-size: 15.5px; }
.gst__row small { display: block; font-size: 12.5px; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 8px; }
.stepper button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; transition: background-color .3s, color .3s; }
.stepper button:hover { background: var(--coal); color: var(--paper); border-color: var(--coal); }
.stepper button:disabled { opacity: .3; pointer-events: none; }
.stepper svg { width: 14px; height: 14px; }
.stepper output { min-width: 26px; text-align: center; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; }

.apick { display: grid; }
.apick button { width: 100%; display: grid; grid-template-columns: 18px 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); text-align: left; transition: background-color .25s; }
.apick button:hover:not(:disabled) { background: rgba(185, 138, 78, .07); }
.apick button i { width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.apick button[aria-checked="true"] i { box-shadow: inset 0 0 0 5px var(--coal); }
.apick img { width: 64px; height: 44px; object-fit: cover; border-radius: 2px; }
.apick b { font-weight: 500; font-size: 15px; display: block; }
.apick small { display: block; font-size: 12.5px; color: var(--muted); }
.apick .apick__p { font-family: var(--serif); font-size: 1.4rem; white-space: nowrap; }
.apick button:disabled { opacity: .45; cursor: default; }

@media (max-width: 719px) {
  .pop { left: 0 !important; right: 0; top: auto !important; bottom: 0; width: 100%; border-radius: 14px 14px 0 0; max-height: 88svh; overflow-y: auto; overscroll-behavior: contain; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
  .cal__months { grid-template-columns: 1fr; }
  .cal__m + .cal__m { display: none; }
}

/* =========================================================
   Heute in Gargellen: the board and the webcam
   ========================================================= */
.today { background: var(--paper); }
.today__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 60px; flex-wrap: wrap; }
.today__lead { max-width: 46ch; color: var(--muted); }
.today__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(16px, 2.6vw, 40px); align-items: stretch; }
.board { background: var(--coal); color: var(--paper); border-radius: 4px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 30px 70px -40px rgba(12, 11, 9, .6); }
.board__top { display: flex; align-items: center; gap: 16px; padding: 12px 20px; border-bottom: 1px solid var(--line-inv); }
.board__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.board__title small { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; color: var(--muted-inv); margin-left: 6px; }
.board__date { margin-left: auto; color: var(--muted-inv); white-space: nowrap; }
.board__clock { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-size: 1.5rem; line-height: 1; }
.board__rows { flex: 1; display: flex; flex-direction: column; }
/* rows share the board's height; an opened row grows, the others give way */
.brow { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; border-bottom: 1px solid var(--line-inv); }
.brow__head { width: 100%; display: grid; grid-template-columns: 104px minmax(0, 1fr) 20px; align-items: center; gap: 14px; padding: 8px 20px; text-align: left; }
.brow__lab { color: var(--bronze-l); }
.brow__plates { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 6px; min-width: 0; }
.plate { position: relative; display: flex; align-items: center; min-height: 38px; padding: 0 12px; border-radius: 3px; background: var(--coal-2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .05); overflow: hidden; white-space: nowrap; font-size: 15px; font-weight: 500; }
.plate::after { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .45); }
.plate > span { display: block; overflow: hidden; text-overflow: ellipsis; }
.plate--side { color: var(--muted-inv); font-weight: 400; }
.plate.is-flip > span { animation: flip .6s var(--ease); }
@keyframes flip { 0% { transform: translateY(-60%) rotateX(80deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.brow__ico { width: 18px; height: 18px; color: var(--muted-inv); transition: transform .5s var(--ease); }
.brow.is-open .brow__ico { transform: rotate(45deg); }
.brow__more { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.brow__more > .brow__in { overflow: hidden; visibility: hidden; transition: visibility 0s .5s; }
.brow.is-open .brow__more { grid-template-rows: 1fr; }
.brow.is-open .brow__more > .brow__in { visibility: visible; transition: none; }
.brow__in > * { margin: 0 20px 0 138px; }
.brow__in > *:first-child { padding-top: 2px; }
.brow__in > *:last-child { margin-bottom: 14px; }
.brow__txt { color: var(--muted-inv); max-width: 56ch; }
.brow__in .link-arrow { margin-top: 8px; color: var(--bronze-l); }
.fc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 12px 20px; border-bottom: 1px solid var(--line-inv); }
.fc:empty { display: none; }
.fc li { display: grid; justify-items: center; gap: 4px; padding: 10px 4px; border-radius: 3px; background: var(--coal-2); text-align: center; }
.fc svg { width: 22px; height: 22px; color: var(--bronze-l); }
.fc span { font-size: 13.5px; white-space: nowrap; }
.board__foot { padding: 8px 20px; font-size: 12px; color: var(--muted-inv); }
.cam { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cam__frame { position: relative; flex: none; aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; background: var(--coal-2); }
.cam__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; opacity: 0; transition: opacity 1.2s var(--ease); }
.tourpic { position: relative; flex: 1; min-height: 0; border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.tourpic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.tourpic::after { content: ''; position: absolute; inset: 45% 0 0; background: linear-gradient(180deg, rgba(12, 11, 9, 0), rgba(12, 11, 9, .62)); }
.tourpic__cap { z-index: 1; position: absolute; left: 14px; bottom: 12px; font-family: var(--serif); font-size: 1.5rem; line-height: 1; color: #fff; text-shadow: 0 1px 16px rgba(0, 0, 0, .55); }
.cam__img.is-in { opacity: 1; }
.cam__live { position: absolute; left: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: 10px; padding: 7px 12px; border-radius: 3px; background: rgba(15, 14, 12, .78); color: var(--paper); }
.cam__cap { display: flex; justify-content: space-between; gap: 12px; font-size: 13.5px; color: var(--muted); }
.cam__cap a { border-bottom: 1px solid var(--line-2); white-space: nowrap; }

/* =========================================================
   Apartments: tabs, the album, the facts and your price
   ========================================================= */
.apts { background: var(--paper-3); }
.apts__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 40px; flex-wrap: wrap; }
.atabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.atabs li { display: flex; }
.atabs button { display: grid; gap: 2px; padding: 6px 22px 12px 0; margin-right: 22px; text-align: left; position: relative; color: var(--muted); transition: color .4s; }
.atabs button::after { content: ''; position: absolute; left: 0; right: 22px; bottom: -1px; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease); }
.atabs button[aria-selected="true"] { color: var(--ink); }
.atabs button[aria-selected="true"]::after { transform: scaleX(1); }
.atabs b { font-family: var(--serif); font-weight: 400; font-size: 1.45rem; line-height: 1.05; white-space: nowrap; }
.atabs small { font-size: 12.5px; white-space: nowrap; }
.ax { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(320px, 1fr); gap: clamp(20px, 3.6vw, 60px); align-items: center; }
.album { min-width: 0; display: grid; gap: 10px; }
.album__stage { position: relative; height: clamp(300px, calc(var(--scr-h) - 150px), 700px); border-radius: 4px; overflow: hidden; background: var(--paper-2); }
.album__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.album__img.is-on { opacity: 1; }
.album__btn { position: absolute; top: 50%; z-index: 2; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; display: grid; place-items: center; background: rgba(251, 250, 247, .9); color: var(--ink); box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); transition: background-color .3s, transform .3s var(--ease); }
.album__btn:hover { background: #fff; transform: scale(1.06); }
.album__btn svg { width: 18px; height: 18px; }
.album__btn--prev { left: 14px; }
.album__btn--next { right: 14px; }
.album__count { position: absolute; right: 14px; bottom: 14px; z-index: 2; padding: 5px 10px; border-radius: 3px; background: rgba(15, 14, 12, .72); color: var(--paper); font-size: 13px; letter-spacing: .08em; }
.album__cap { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ax__info { min-width: 0; display: flex; flex-direction: column; }
.ax__no { color: var(--muted); }
.ax__name { margin-top: 6px; font-family: var(--serif); font-weight: 400; }
.ax__lead { margin-top: 6px; font-family: var(--serif); font-style: italic; color: var(--bronze-ink); }
.ax__facts { margin-top: clamp(12px, 2svh, 22px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.ax__facts div { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.ax__facts div:nth-child(odd) { border-right: 1px solid var(--line); }
.ax__facts div:nth-child(even) { padding-left: 14px; }
.ax__facts dt { color: var(--muted); }
.ax__facts dd { font-size: 15px; font-weight: 500; line-height: 1.35; margin-top: 2px; }
.ax__text { margin-top: clamp(12px, 2svh, 20px); color: var(--muted); }
.ax__calc { margin-top: clamp(14px, 2.4svh, 26px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; align-items: center; padding: 14px 16px; border-radius: 4px; background: var(--paper-2); }
.ax__dates { display: flex; align-items: center; gap: 12px; text-align: left; min-width: 0; }
.ax__dates svg { width: 22px; height: 22px; color: var(--bronze-ink); flex: none; }
.ax__dates > span { display: grid; min-width: 0; }
.ax__dates b { font-weight: 500; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-bottom: 1px solid var(--line-2); justify-self: start; max-width: 100%; }
.ax__cap { color: var(--muted); }
.ax__sum { display: grid; justify-items: end; line-height: 1; gap: 4px; }
.ax__sum strong { font-family: var(--serif); font-weight: 400; font-size: 2.2rem; white-space: nowrap; }
.ax__sum strong small { font-family: var(--sans); font-size: 13px; color: var(--muted); font-weight: 500; }
.ax__sum strong b { font-weight: 400; }
.ax__cta { grid-column: 1 / -1; }

/* =========================================================
   Galerie & Haus
   ========================================================= */
.art { background: var(--coal); color: var(--paper); }
.art__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.art__stage { position: relative; height: clamp(320px, var(--scr-h), 760px); border-radius: 4px; overflow: hidden; background: var(--coal-2); }
.art__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.art__img.is-on { opacity: 1; }
.art__dots { position: absolute; left: 16px; bottom: 16px; z-index: 2; display: flex; gap: 6px; }
.art__dots button { width: 38px; height: 26px; display: grid; align-items: center; }
.art__dots button::before { content: ''; height: 2px; border-radius: 1px; background: rgba(255, 255, 255, .45); transition: background-color .4s; }
.art__dots button[aria-current="true"]::before { background: var(--bronze-l); }
.art__info { min-width: 0; }
.art__seg { margin-top: clamp(14px, 2.6svh, 28px); }
.art__panel { margin-top: clamp(16px, 2.8svh, 30px); }
.art__title { font-family: var(--serif); font-weight: 400; }
.art__lead { margin-top: 10px; color: var(--muted-inv); max-width: 52ch; }
.art__facts { margin-top: clamp(14px, 2.6svh, 26px); display: grid; border-top: 1px solid var(--line-inv); }
.art__facts div { display: grid; grid-template-columns: minmax(118px, auto) minmax(0, 1fr); align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-inv); }
.art__facts dt { font-family: var(--serif); font-size: 1.85rem; line-height: 1; color: var(--bronze-l); white-space: nowrap; }
.art__facts dd { color: rgba(243, 240, 234, .86); }
.art__src { margin-top: 12px; font-size: 12.5px; color: var(--muted-inv); }

/* =========================================================
   Lage & Anreise: the village plan
   ========================================================= */
.lage { background: var(--paper); }
.lage__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.lage__map { position: relative; height: clamp(340px, var(--scr-h), 780px); border-radius: 4px; overflow: hidden; background: #e9e5dc; }
.map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* opaque (the old 16 % blue on the plan's ground): see-through strokes doubled up where pistes meet and read as dots */
.map__piste path { fill: none; stroke: #d2d6d5; stroke-width: 16; stroke-linecap: round; stroke-linejoin: round; }
.map__lake path { fill: #c6d8e0; stroke: #9fbccc; stroke-width: 1.5; fill-rule: evenodd; }
.map__bld path { fill: #d4cdc0; stroke: #c2baab; stroke-width: 1; }
.map__water path { fill: none; stroke: #9fbccc; stroke-width: 3; }
.map__water path.is-river { stroke-width: 7; }
.map__paths path { fill: none; stroke: rgba(23, 21, 19, .22); stroke-width: 1.4; stroke-dasharray: 4 5; }
.map__roads path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.map__roads path.is-tertiary, .map__roads path.is-secondary { stroke-width: 8; stroke: #fbf8f1; }
.map__lifts path { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 2 7; stroke-linecap: round; }
.map__house { fill: var(--bronze); stroke: var(--bronze-d); stroke-width: 2; }
.map__home circle { fill: var(--bronze); stroke: #fff; stroke-width: 3; }
.map__home .map__pulse { fill: rgba(185, 138, 78, .35); stroke: none; transform-box: fill-box; transform-origin: center; animation: mapPulse 2.6s infinite; }
.map__home.is-off .map__pulse { animation-play-state: paused; }
@keyframes mapPulse { 0% { transform: scale(.4); opacity: 1; } 80%, 100% { transform: scale(1.6); opacity: 0; } }
.lage__osm { position: absolute; right: 10px; bottom: 8px; font-size: 11px; color: rgba(23, 21, 19, .55); }
.map__lab { position: absolute; left: 0; top: 0; z-index: 3; pointer-events: none; padding: 4px 9px; border-radius: 3px; background: var(--coal); color: var(--paper); font-size: 12.5px; font-weight: 500; line-height: 1.4; white-space: nowrap; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }
.map__route { opacity: 0; transition: opacity .45s var(--ease); pointer-events: none; }
.map__route.is-on { opacity: 1; }
.map__route path { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.map__case { stroke: #fff; stroke-width: 7px; stroke-opacity: .85; }
.map__line { stroke: var(--bronze-ink); stroke-width: 3.5px; }
/* numbered places: HTML over the plan, so they keep their pixel size at every zoom (placed by lage() in main.js) */
.map__pins { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.map__pin, .near__no { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--coal); color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; transition: background-color .35s var(--ease), color .35s var(--ease), box-shadow .35s var(--ease), scale .35s var(--ease); }
.map__pin { position: absolute; left: 0; top: 0; margin: -11px 0 0 -11px; padding: 0; pointer-events: auto; box-shadow: 0 0 0 2px var(--paper-3), 0 4px 10px -4px rgba(0, 0, 0, .5); }
.map__pin::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; }
.map__pin.is-on, .is-on > .near__no { background: var(--bronze); color: var(--night); }
.map__pin.is-on { z-index: 1; scale: 1.15; box-shadow: 0 0 0 2px var(--paper-3), 0 0 0 4.5px rgba(185, 138, 78, .45), 0 6px 14px -6px rgba(0, 0, 0, .5); }
.is-on > .near__no { box-shadow: 0 0 0 3px rgba(185, 138, 78, .3); }
.near__no.is-none { background: none; box-shadow: none; }
.lage__tag { position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 3px; background: var(--coal); color: var(--paper); font-size: 13.5px; }
.lage__tag svg { width: 16px; height: 16px; color: var(--bronze-l); }
.lage__info { min-width: 0; }
.lage__lead { margin-top: clamp(10px, 1.8svh, 18px); color: var(--muted); max-width: 48ch; }
.near { margin-top: clamp(14px, 2.4svh, 26px); border-top: 1px solid var(--line); }
.near li { border-bottom: 1px solid var(--line); }
.near button, .near .near__row { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 0; text-align: left; transition: padding .4s var(--ease), background-color .3s; }
.near button:hover, .near button.is-on { padding-left: 8px; }
.near button.is-on .near__d { color: var(--bronze-ink); }
.near svg { width: 20px; height: 20px; color: var(--bronze-ink); }
.near b { display: block; font-weight: 500; font-size: 15px; line-height: 1.3; }
.near small { display: block; font-size: 13px; color: var(--muted); line-height: 1.35; }
.near__d { font-family: var(--serif); font-size: 1.5rem; line-height: 1; white-space: nowrap; text-align: right; }
.near__d small { margin-top: 3px; font-family: var(--sans); font-size: 12px; line-height: 1.2; text-align: right; }
.near .has-no { grid-template-columns: 22px 20px minmax(0, 1fr) auto; }
.lage__foot { margin-top: clamp(12px, 1.8svh, 18px); display: flex; align-items: center; justify-content: space-between; gap: 10px 20px; }
.lage__arrive { min-width: 0; display: grid; gap: 4px; font-size: 13px; line-height: 1.4; color: var(--muted); }
.lage__arrive li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; align-items: start; }
.lage__arrive svg { width: 18px; height: 18px; color: var(--bronze-ink); }
.lage__route { --h: 44px; flex: none; padding: 0 16px 0 20px; font-size: 14.5px; color: var(--ink); }
.lage__route svg { width: 16px; height: 16px; }
.lage__route::after { background: var(--coal); opacity: 1; }
.lage__route:hover { color: var(--paper); }
.lage__route:hover svg { transform: translate(2px, -2px); }

/* =========================================================
   Kontakt
   ========================================================= */
.contact { background: var(--night); color: var(--paper); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); gap: clamp(24px, 4vw, 72px); align-items: center; }
.contact__fig { height: clamp(320px, var(--scr-h), 760px); border-radius: 4px; overflow: hidden; }
.contact__fig img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.contact__info { min-width: 0; }
.ask { margin-top: clamp(16px, 2.8svh, 30px); padding: clamp(16px, 2.4svh, 24px) 22px; border-radius: 4px; background: var(--coal); box-shadow: inset 0 0 0 1px var(--line-inv); }
.ask__title { font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.ask__sum { margin-top: 10px; display: grid; }
.ask__sum div { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: baseline; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line-inv); }
.ask__sum dt { color: var(--muted-inv); }
.ask__sum dd { min-width: 0; }
.ask__sum dd button { font-weight: 500; text-align: left; border-bottom: 1px solid var(--line-inv-2); transition: border-color .3s, color .3s; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask__sum dd button:hover { color: var(--bronze-l); border-color: var(--bronze-l); }
.ask__price { font-family: var(--serif); font-size: 1.9rem; line-height: 1; white-space: nowrap; }
.ask__price b { font-weight: 400; }
.ask__price small { display: block; margin-top: 4px; font-family: var(--sans); font-size: 12.5px; color: var(--muted-inv); white-space: normal; }
.ask__note { margin-top: 12px; font-size: 13.5px; color: var(--muted-inv); }
.ask__go { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.ask__cta { flex: 1; }
.ask__call { color: var(--paper); }
.contact__lines { margin-top: clamp(14px, 2.4svh, 24px); display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 14.5px; color: rgba(243, 240, 234, .86); }
.contact__lines li { display: inline-flex; align-items: center; gap: 9px; }
.contact__lines svg { width: 17px; height: 17px; color: var(--bronze-l); flex: none; }
.contact__lines a { border-bottom: 1px solid var(--line-inv-2); }

/* ---------- Footer ---------- */
.foot { background: var(--night); color: var(--paper); padding: clamp(64px, 8vw, 120px) 0 calc(28px + env(safe-area-inset-bottom)); overflow: hidden; border-top: 1px solid var(--line-inv); }
.foot__big { display: flex; align-items: center; gap: .3em; font-family: var(--sans); font-weight: 450; font-size: clamp(2.2rem, 7.4vw, 8.4rem); line-height: 1; letter-spacing: .26em; white-space: nowrap; }
.foot__v { width: .62em; height: .65em; flex: none; color: var(--bronze); }
.foot__cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: clamp(40px, 5vw, 80px); padding-top: 32px; border-top: 1px solid var(--line-inv); }
.foot__cols h4 { color: var(--muted-inv); margin-bottom: 14px; }
.foot__cols a, .foot__cols p { display: block; font-size: 15px; padding: 3px 0; color: rgba(243, 240, 234, .86); hyphens: auto; -webkit-hyphens: auto; }
.foot__cols a:hover { color: var(--bronze-l); }
.foot__base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; font-size: 13px; color: var(--muted-inv); }
.foot__base a { border-bottom: 1px solid var(--line-inv-2); }
@media (max-width: 899px) { .foot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 719px) { .foot__big { font-size: clamp(1.4rem, 7.4vw, 2.4rem); letter-spacing: .2em; } }

/* ---------- Dock (phones) ---------- */
.dock { display: none; }
@media (max-width: 899px) {
  .dock {
    display: flex; gap: 6px; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
    padding: 6px; border-radius: 8px; background: rgba(15, 14, 12, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); transform: translateY(140%); transition: transform .6s var(--ease);
  }
  .dock.is-on { transform: none; }
  .dock__book { flex: 1; display: grid; place-items: center; height: 48px; border-radius: 5px; background: var(--bronze); color: var(--night); font-weight: 600; font-size: 15px; white-space: nowrap; min-width: 0; }
  .dock__ico, .dock__note { width: 48px; height: 48px; border-radius: 5px; display: grid; place-items: center; color: var(--paper); border: 1px solid var(--line-inv-2); flex: none; }
  .dock__ico svg { width: 20px; height: 20px; }
  .dock__note i { width: 7px; height: 7px; border-radius: 50%; background: var(--bronze-l); box-shadow: 0 0 0 4px rgba(226, 195, 143, .2); }
  .menu-open .dock { transform: translateY(140%); }
  .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
}

/* ---------- Concept note ---------- */
.note { position: fixed; left: max(10px, calc(var(--gutter) / 2 - 14px)); top: 50%; z-index: 52; font-size: 14px; opacity: 0; visibility: hidden; transform: translate(-6px, -50%); transition: opacity .5s var(--ease), transform .5s var(--ease), visibility .5s; }
.note.is-shown, .note.is-open { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.note__btn { display: inline-flex; align-items: center; gap: 10px; writing-mode: vertical-rl; transform: rotate(180deg); width: 28px; padding: 14px 0 12px; border-radius: 4px; background: rgba(15, 14, 12, .84); color: var(--paper); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 0 0 1px var(--line-inv); }
.note__btn i { width: 6px; height: 6px; border-radius: 50%; background: var(--bronze-l); }
.note__panel { position: absolute; left: 40px; top: 50%; transform: translateY(-50%); width: min(340px, calc(100vw - 32px)); background: var(--paper-3); color: var(--ink); border-radius: 4px; padding: 22px; box-shadow: 0 30px 70px -20px rgba(0, 0, 0, .45), 0 0 0 1px var(--line); display: grid; gap: 10px; font-size: 14.5px; line-height: 1.5; }
.note__panel[hidden] { display: none; }
.note__panel b { font-family: var(--serif); font-weight: 400; font-size: 1.6rem; }
.note__panel .btn { --h: 44px; margin-top: 6px; justify-self: start; }
.note__fine { font-size: 12px; line-height: 1.45; color: var(--muted); }
.note__fine a { text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 899px) {
  .note { left: 12px; right: 12px; top: auto; bottom: calc(76px + env(safe-area-inset-bottom)); transform: translateY(8px); }
  .note.is-open { transform: none; }
  .note.is-shown:not(.is-open) { opacity: 0; visibility: hidden; }
  .note__btn { display: none; }
  .note__panel { position: static; width: auto; transform: none; }
}

[data-img-reveal] { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* =========================================================
   Screens: every section fits one viewport. Big visuals take
   the height that is left; phones subtract the dock.
   ========================================================= */
:root {
  --scr-t: calc(var(--hdr-h) + clamp(14px, 3.4svh, 46px));
  --scr-b: clamp(18px, 3.8svh, 50px);
  --scr-h: calc(100svh - var(--scr-t) - var(--scr-b));
  --h2s: clamp(2.5rem, min(4vw, 6.6svh), 4.6rem);
}
@media (max-width: 899px) { :root { --scr-b: calc(86px + env(safe-area-inset-bottom)); } }
@media (max-width: 719px) { :root { --scr-t: calc(var(--hdr-h) + 12px); --h2s: clamp(2.2rem, 10vw, 2.75rem); } }

main .h2 { font-size: var(--h2s); }
main .h-label { margin-bottom: clamp(8px, 1.6svh, 18px); }
main > section:not(.hero) { padding-top: var(--scr-t); padding-bottom: var(--scr-b); }
@media (min-width: 900px) {
  main > section:not(.hero) { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; }
}
.today__head, .apts__head { margin-bottom: clamp(14px, 2.8svh, 40px); }
.today__grid { height: clamp(380px, calc(var(--scr-h) - var(--head-h, 150px)), 640px); }

/* ---- short viewports: small laptops, phones with toolbars ---- */
@media (min-width: 900px) and (max-height: 800px) {
  .ax__text { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .ax__facts div { padding-block: 7px; }
  .ax__calc { padding-block: 10px; }
  .today__lead { display: none; }
  .art__lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .art__facts div { padding-block: 7px; }
  .near button, .near .near__row { padding-block: 6px; }
  .brow[data-row="tour"] { display: none; }
  .fc li { padding: 6px 4px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .ax { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); }
  .ax__text { display: none; }
}

/* =========================================================
   Type system — one voice
   Instrument Serif: headlines, figures.
   Jost: text, controls and two label tiers —
   LABEL 600 · .18em (names a block) · CAPTION 500 · .14em (names a value)
   Brand lockups (header, crest, board title, menu, footer) keep their own set.
   ========================================================= */
:root {
  --t-lab: 11.5px; --t-cap: 11px; --t-lead: 17px; --t-body: 15px; --t-small: 14px;
  --h3m: clamp(2rem, 2.6vw, 2.7rem);
  --h3s: clamp(1.45rem, min(1.9vw, 3svh), 1.85rem);
}
@media (max-width: 719px) {
  :root { --t-lab: 11px; --t-cap: 10.5px; --t-lead: 15px; --t-body: 14.5px; --t-small: 13.5px; --h3m: 1.9rem; --h3s: 1.4rem; }
}
body { font-synthesis: none; }
b, strong { font-weight: 600; }

/* LABEL */
.h-label, .stay__lab, .brow__lab, .foot__cols h4, .note__btn, .cam__live, .ask__sum dt {
  font-family: var(--sans); font-size: var(--t-lab); font-weight: 600; letter-spacing: .18em; text-transform: uppercase; font-style: normal;
}
/* CAPTION */
.board__date, .ax__no, .ax__facts dt, .ax__cap, .cal__wd span, .fc b {
  font-family: var(--sans); font-size: var(--t-cap); font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-style: normal;
}
.fc b { font-weight: 600; }
/* Headings */
.ax__name, .art__title { font-size: var(--h3m); line-height: 1.02; letter-spacing: -.005em; }
.ax__lead { font-size: var(--h3s); line-height: 1.15; }
/* Text */
.today__lead, .lage__lead, .art__lead { font-size: var(--t-lead); }
.ax__text, .brow__txt, .art__facts dd { font-size: var(--t-body); }

/* ---------- Phone hero ---------- */
@media (max-width: 719px) {
  .hero__fg { object-position: 50% 42%; }
  .hero__shade { background:
    radial-gradient(90% 30% at 50% var(--crest-y, 34%), rgba(12, 11, 9, .72), rgba(12, 11, 9, .32) 62%, rgba(12, 11, 9, 0) 100%),
    linear-gradient(180deg, rgba(12, 11, 9, .7) 0%, rgba(12, 11, 9, .36) 20%, rgba(12, 11, 9, .3) 42%, rgba(12, 11, 9, .46) 58%, rgba(12, 11, 9, .86) 76%, rgba(12, 11, 9, .96) 100%); }
  .crest { padding: clamp(4px, 1.4svh, 18px) 12px clamp(12px, 2.4svh, 26px); }
  .crest__mark { width: clamp(52px, min(16vw, 9svh), 76px); }
  .crest__club { margin-top: 12px; font-size: 10.5px; letter-spacing: .44em; padding-left: .44em; }
  .crest__name { font-size: clamp(1.55rem, 8.2vw, 2.3rem); letter-spacing: .22em; padding-left: .22em; }
  .crest__since { margin-top: 12px; gap: 12px; font-size: 10px; letter-spacing: .3em; }
  .crest__since i { width: 24px; }
  .stay { width: auto; margin: 0 10px 10px; display: flex; flex-wrap: wrap; align-items: stretch; }
  .stay > div:not(.stay__info) { border: 0 !important; }
  .stay__f--dates { order: -1; flex: 0 0 100%; padding: 12px 12px 6px !important; }
  .stay__f--apt { flex: 1.35 1 0; min-width: 0; padding: 4px 4px 6px 12px !important; }
  .stay__f--guests { flex: 1 1 0; min-width: 0; padding: 4px 12px 6px 4px !important; }
  .stay__go { flex: 0 0 100%; padding: 6px 12px 12px !important; flex-direction: row; align-items: center; }
  .stay__lab { margin-bottom: 6px; font-size: 9.5px; }
  .stay__f--apt .stay__lab, .stay__f--guests .stay__lab { display: none; }
  .stay__btn { height: 44px; padding: 0 11px; gap: 9px; }
  .stay__btn svg { width: 18px; height: 18px; }
  .stay__val { font-size: 14px; }
  .stay__btn small { font-size: 12px; }
  .stay__price { flex-direction: column; align-items: flex-start; gap: 3px; flex: 0 0 auto; }
  .stay__price span { font-size: 11px; }
  .stay__price strong { font-size: 2rem; }
  .stay__cta { --h: 46px; flex: 1; width: auto; padding: 0 12px 0 14px; font-size: 14px; gap: 8px; }
  .stay__info { flex: 0 0 100%; padding: 7px 12px; font-size: 12px; }
  .stay__notes { flex-wrap: nowrap; overflow: hidden; gap: 14px; }
  .stay__notes li:nth-child(n+2) { display: none; }
  .stay__more { display: none; }
}
@media (max-width: 719px) and (max-height: 700px) { .crest__since { display: none; } }

/* ---------- Phone and tablet screens: keep each one above the dock ---------- */
@media (min-width: 900px) and (max-height: 820px) { .tourpic { display: none; } .cam__frame { flex: 1; aspect-ratio: auto; } }
@media (max-width: 899px) {
  .today__grid, .ax, .art__grid, .lage__grid, .contact__grid { grid-template-columns: minmax(0, 1fr); height: auto; }
  .today__grid { gap: 12px; }
  .cam__frame { flex: none; aspect-ratio: 16 / 9; height: auto; }
  .tourpic { display: none; }
  .album__stage, .art__stage, .lage__map { height: clamp(180px, 34svh, 420px); }
  .contact__fig { display: none; }
}
@media (max-width: 719px) {
  .today__head { margin-bottom: 12px; }
  .today__lead { display: none; }
  .board__top { padding: 9px 14px; }
  .board__title { font-size: 1.45rem; }
  .board__date { display: none; }
  .board__clock { margin-left: auto; font-size: 1.3rem; }
  .brow__head { grid-template-columns: 70px minmax(0, 1fr) 16px; gap: 8px; padding: 5px 12px; }
  .brow__lab { font-size: 9.5px; letter-spacing: .14em; }
  .brow__plates { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 4px; }
  .plate { min-height: 32px; padding: 0 9px; font-size: 13.5px; }
  .brow__in > * { margin: 0 14px 0 14px; }
  .brow--tour, .board__foot, .fc { display: none; }
  .fc span { font-size: 12.5px; }
  .cam { gap: 6px; }
  .cam__frame { aspect-ratio: auto; height: clamp(120px, 22svh, 220px); }
  .tourpic { display: none; }
  .cam__live { left: 10px; bottom: 10px; padding: 5px 9px; font-size: 9.5px; }
  .cam__cap { font-size: 12px; }

  .apts__head { margin-bottom: 10px; gap: 10px; }
  .atabs { width: calc(100% + 2 * var(--gutter)); margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter); overflow-x: auto; scrollbar-width: none; }
  .atabs::-webkit-scrollbar { display: none; }
  .atabs button { flex: none; padding: 2px 10px 8px 0; margin-right: 14px; }
  .atabs b { font-size: 1.2rem; }
  .atabs small { font-size: 11.5px; }
  .ax { gap: 10px; }
  .album { gap: 0; }
  .album__stage { height: clamp(150px, 25svh, 240px); }
  .album__cap { display: none; }
  .album__btn { width: 38px; height: 38px; margin-top: -19px; }
  .album__btn--prev { left: 8px; }
  .album__btn--next { right: 8px; }
  .album__count { right: 8px; bottom: 8px; font-size: 11.5px; padding: 3px 8px; }
  .ax__no, .ax__lead, .ax__text { display: none; }
  .ax__name { margin-top: 0; }
  .ax__facts { margin-top: 6px; }
  .ax__facts div { padding: 5px 8px 5px 0; }
  .ax__facts div:nth-child(even) { padding-left: 10px; }
  .ax__facts dd { font-size: 13.5px; }
  .ax__calc { margin-top: 10px; padding: 10px 12px; gap: 8px 12px; }
  .ax__sum .ax__cap { display: none; }
  .ax__sum strong { font-size: 1.8rem; }
  .ax__cta { --h: 44px; }

  .art__info { display: contents; }
  .art__grid { gap: 0; }
  .art__info > .h-label { order: 1; }
  .art__info > .h2 { order: 2; }
  .art__seg { order: 3; margin: 12px 0; justify-self: start; }
  .art__stage { order: 4; height: clamp(150px, 25svh, 240px); }
  .art__panel { order: 5; margin-top: 12px; }
  .art__lead { margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .art__facts { margin-top: 10px; }
  .art__facts div { grid-template-columns: 124px minmax(0, 1fr); gap: 10px; padding: 6px 0; }
  .art__facts dt { font-size: 1.25rem; }
  .art__facts dd { font-size: 13px; line-height: 1.4; }
  .art__src { display: none; }

  .lage__info { display: contents; }
  .lage__grid { gap: 0; }
  .lage__info > .h-label { order: 1; }
  .lage__info > .h2 { order: 2; }
  .lage__lead { display: none; }
  .lage__map { order: 3; margin-top: 12px; height: clamp(140px, 24svh, 230px); }
  .near { order: 5; margin-top: 8px; min-height: 0; }
  .lage__foot { order: 6; margin-top: 10px; }
  .lage__route { --h: 38px; padding: 0 12px 0 14px; gap: 8px; font-size: 13.5px; }
  .lage__foot { gap: 12px; }
  .lage__arrive { font-size: 12px; line-height: 1.35; gap: 3px; }
  .lage__arrive li { grid-template-columns: 16px minmax(0, 1fr); gap: 6px; }
  .lage__arrive svg { width: 16px; height: 16px; }
  .near button, .near .near__row { padding: 6px 0; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; }
  .near .has-no { grid-template-columns: 22px 20px minmax(0, 1fr) auto; }
  .near small { font-size: 12px; }
  .near__d { font-size: 1.25rem; }
  .lage__tag { display: none; }
  .map__lab { font-size: 11.5px; padding: 3px 8px; }

  .ask { padding: 14px 14px; }
  .ask__sum div { grid-template-columns: 86px minmax(0, 1fr); padding: 6px 0; }
  .ask__note { font-size: 12.5px; margin-top: 8px; }
  .ask__price { font-size: 1.6rem; }
  .ask__go { margin-top: 10px; }
  .ask__call { display: none; }
  .contact__lines { font-size: 13.5px; gap: 6px 18px; }
  .contact__lines li:first-child { display: none; }
}
@media (max-width: 719px) and (max-height: 760px) {
  .brow[data-row="sun"] { display: none; }
  .lage__map { margin-top: 10px; }
  .near button, .near .near__row { padding-block: 4px; }
  .lage__foot { margin-top: 6px; }
  .lage__route { --h: 34px; }
  .album__stage, .art__stage { height: clamp(140px, 22svh, 200px); }
  .ask__note { display: none; }
  .art__lead { -webkit-line-clamp: 2; }
}
