/* Chalet Vancouver - site shell (canon „Jeden kľúč“ §3-§6). Owner: site-shell.
   Order: tokens · base · primitives (type, bands, buttons, seg, dots, legend) · header + sheet · hero · facts ·
   dom · podlažia · guľatina · galéria + lightbox · okolie · ceny · pravidlá · cesta + map + 49° · rezervácia ·
   footer · pages · reveals + motion · QA hooks · print. */

/* ---------- 1. Tokens: canon §3a verbatim ---------- */
:root, [data-theme="den"] {
  --bg:        #E6EAE6; /* Inovať (rime) - page background */
  --surface:   #FFFFFF; /* Sneh (snow) - cards, booking sheet, inputs, calendar cells off-season */
  --band:      #D9DFDC; /* Hmla (fog) - quiet bands, Vianoce/Silvester cells, hover */
  --ink:       #1B1E21; /* Uhlík (charcoal) - text, logo, borders, footer background */
  --ink-2:     #56534C; /* Guľatina (weathered log) - secondary text, captions, cell prices */
  --line:      #C3CAC6; /* hairlines, decoration only - never the only boundary of a control */
  --accent:    #FFC247; /* Okno (lit window) - CTA fill, lit hole. Max 1 element per viewport, <= 5 % of a screen */
  --on-accent: #1B1E21; /* label on Okno */
  --error:     #A33D1A; /* Žeravie (ember) - validation text only */
  --tint-winter: #D3E1E6; /* Ľad (ice) - winter band + winter-season cells */
  --tint-summer: #EEE7CF; /* Seno (hay) - summer band + summer-season cells */
  --tint: var(--tint-winter); /* swapped by [data-season="leto"] */
  --footer-bg: #1B1E21; --footer-ink: #EEF1EE;
}
[data-season="leto"] { --tint: var(--tint-summer); }

[data-theme="noc"] {
  --bg:        #121517; /* Noc */
  --surface:   #1B1F22; /* Noc 2 - cards, booking sheet */
  --band:      #252A2E; /* Noc 3 - calendar cells, inputs, bands */
  --ink:       #EEF1EE; /* Sneh noc - text */
  --ink-2:     #A9AEA9; /* Popol (ash) - secondary text */
  --line:      #2F3539;
  --accent:    #FFC247; /* CTA stays FILLED at night, label Uhlík */
  --on-accent: #1B1E21;
  --error:     #F28E6B;
  --tint-winter: #18252C; /* Ľad noc */
  --tint-summer: #29261A; /* Seno noc */
  --tint: var(--tint-winter);
  --footer-bg: #0C0E10; --footer-ink: #EEF1EE;
  color-scheme: dark;
}
[data-theme="noc"][data-season="leto"] { --tint: var(--tint-summer); }

/* type scale §4a, motion §5c, layout */
:root {
  --fs-display: clamp(2.75rem, 1.55rem + 5.3vw, 6.25rem);
  --fs-h2:      clamp(2rem, 1.45rem + 2.45vw, 3.25rem);
  --fs-h3:      clamp(1.25rem, 1.15rem + 0.45vw, 1.5rem);
  --fs-body:    clamp(1.0625rem, 1.02rem + 0.19vw, 1.125rem);
  --fs-small:   0.9375rem;
  --fs-ui:      1.0625rem;
  --fs-num:     clamp(2.75rem, 2.1rem + 2.9vw, 4rem);
  --fs-data:    clamp(0.9375rem, 0.9rem + 0.1vw, 1rem);
  --fs-cell:    0.75rem;
  --fs-over:    0.8125rem;
  --ease:        cubic-bezier(.2,.7,.2,1);
  --ease-sheet:  cubic-bezier(.3,.8,.2,1);
  --ease-season: cubic-bezier(.45,0,.2,1);
  --t-micro:  120ms;
  --t-ui:     200ms;
  --t-sheet:  260ms;
  --t-season: 400ms;
  --t-reveal: 500ms;
  --hdr: 56px;
  --cut: 8px;                                   /* the tag's cut between bands */
  --pad: clamp(16px, 4.2vw, 56px);              /* side gutter */
  --maxw: 1360px;                               /* content width inside the gutter */
  --sec-y: clamp(64px, 8.5vw, 128px);           /* band padding */
  --r-tag: 4px;                                 /* the tag's bottom radius - CTA only */
  --font-sans: "Familjen Grotesk", "Familjen Grotesk Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Red Hat Mono", "Red Hat Mono Fallback", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scroll-padding-top: calc(var(--hdr) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: no-preference) { html:not(.static) { scroll-behavior: smooth; } }
body {
  margin: 0; min-width: 320px; overflow-x: clip;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-sans); font-size: var(--fs-body); line-height: 1.55; font-weight: 400;
  font-variant-numeric: lining-nums proportional-nums;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility;
}
img, svg, video, picture { max-width: 100%; }
img { height: auto; display: block; }              /* trap 1: attrs never beat CSS aspect boxes */
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .18em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--on-accent); }
strong, b { font-weight: 600; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

/* focus: 2 px ink ring + 2 px Okno halo (Deň); 2 px Okno ring (Noc) - canon §3b, §6i */
:focus { outline: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 0; box-shadow: 0 0 0 4px var(--accent); }
[data-theme="noc"] :focus-visible { outline-color: var(--accent); box-shadow: none; }
main:focus-visible { outline: none; box-shadow: none; }

/* season-only blocks (contract): hidden when the other season is active */
html[data-season="zima"] [data-only="leto"],
html[data-season="leto"] [data-only="zima"] { display: none !important; }

/* ---------- 3. Primitives ---------- */
.wrap { width: 100%; max-width: calc(var(--maxw) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }
.skip {
  position: fixed; left: 12px; top: 8px; z-index: 100; padding: 10px 16px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; border-radius: var(--r-tag);
  transform: translateY(-160%); transition: transform var(--t-ui) var(--ease);
}
.skip:focus-visible { transform: none; }

/* bands and cuts (§5a-2): stacked bands, an 8 px cut of --bg between them - never a drawn line */
main > section + section, main > section + .facts { margin-top: var(--cut); }
/* anchor jumps land the band flush under the header (html scroll-padding 72 px - 16 px = the 56 px header) */
main > section { scroll-margin-top: -16px; }
.band { background: var(--surface); }
.band--fog { background: var(--band); }
.band--tint { background: var(--tint); transition: background-color var(--t-season) var(--ease-season); }
.sec { padding-block: var(--sec-y); position: relative; }

/* type */
.over {
  font-family: var(--font-mono); font-weight: 500; font-size: var(--fs-over); line-height: 1.2;
  letter-spacing: .14em; color: var(--ink-2); text-transform: uppercase; /* canon §4a: mono overlines are caps; source strings may be sentence case (a11y) */
}
.h2 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.015em; font-weight: 600; text-wrap: balance; max-width: 20ch; }
.h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.005em; font-weight: 600; }
.lead { font-size: var(--fs-body); color: var(--ink-2); max-width: 34em; text-wrap: pretty; }
.prose p { max-width: 34em; text-wrap: pretty; }
.prose p + p { margin-top: .7em; }
.note { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); font-style: italic; max-width: 40em; }
.tag {
  display: inline-block; vertical-align: .2em; margin-left: .5em; padding: 3px 7px 2px;
  font: 500 var(--fs-cell)/1.1 var(--font-mono); letter-spacing: .08em; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 2px; white-space: nowrap;
}
.ln { text-decoration: underline; text-decoration-color: var(--line); text-decoration-thickness: 1.5px; transition: text-decoration-color var(--t-micro); }
@media (hover: hover) and (pointer: fine) { .ln:hover { text-decoration-color: currentColor; } }

/* section heads: overline + H2 on a hairline of ink (the tag's cut line) */
.sec-head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4.5vw, 64px); }
.sec-head .over { padding-top: 14px; border-top: 1px solid var(--ink); }
.sec-head--row { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; column-gap: clamp(24px, 5vw, 96px); padding-top: 14px; border-top: 1px solid var(--ink); }
.sec-head--row .over { padding-top: 0; border-top: 0; }
.sec-head--row > div { display: grid; gap: 14px; }
.sec-head--row .lead { padding-bottom: .35em; }

/* icons (sprite brand/icons.svg: 24 grid, 2 px stroke, currentColor) */
.i { width: 24px; height: 24px; flex: none; display: inline-block; vertical-align: middle; }

/* buttons: Okno CTA always with a 1.5 px Uhlík outline on Deň (§3b), 4 px radius = the tag's bottom corner */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border: 1.5px solid var(--ink); border-radius: var(--r-tag);
  background: transparent; color: var(--ink); text-decoration: none; white-space: nowrap;
  font: 600 var(--fs-ui)/1 var(--font-sans); letter-spacing: .01em;
  transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease), transform var(--t-micro) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .i { width: 20px; height: 20px; }
.btn--okno { background: var(--accent); color: var(--on-accent); border-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn--okno:hover { box-shadow: inset 0 0 0 1.5px var(--on-accent); } }
[data-theme="noc"] .btn--okno { border-color: var(--accent); }
.btn--ink { background: var(--ink); color: var(--bg); }
@media (hover: hover) and (pointer: fine) { .btn--ink:hover { background: transparent; color: var(--ink); } }
@media (hover: hover) and (pointer: fine) { .btn--line:hover { background: var(--band); } }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: var(--fs-small); }
.btn--block { width: 100%; }
.icon-b {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 0; border-radius: var(--r-tag); background: transparent; color: var(--ink);
  transition: background-color var(--t-micro) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .icon-b:hover { background: var(--band); } }
.icon-b--line { border: 1.5px solid var(--ink); }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border: 1.5px solid var(--ink); border-radius: 2px; background: transparent; color: var(--ink);
  font: 600 var(--fs-small)/1 var(--font-sans); text-decoration: none;
  transition: background-color var(--t-micro) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .chip:hover { background: var(--surface); } }

/* segmented switch (Zima / Leto, Deň / Noc): state from <html> before JS, aria-pressed after */
.seg { display: inline-flex; padding: 2px; gap: 2px; border: 1.5px solid var(--ink); border-radius: var(--r-tag); background: var(--bg); }
.seg-b {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px 0 10px;
  border: 0; border-radius: 2px; background: transparent; color: var(--ink);
  font: 600 var(--fs-small)/1 var(--font-sans); letter-spacing: .01em;
  transition: background-color var(--t-micro) var(--ease), color var(--t-micro) var(--ease);
}
.seg-b .i { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) { .seg-b:hover { background: var(--band); } }
.seg-b[aria-pressed="true"],
html:not([data-season="leto"]) .seg-b[data-season-set="zima"],
html[data-season="leto"] .seg-b[data-season-set="leto"],
html:not([data-theme="noc"]) .seg-b[data-theme-set="den"],
html[data-theme="noc"] .seg-b[data-theme-set="noc"] { background: var(--ink); color: var(--bg); }

/* ten dots = ten beds (§5a-1). Reused by booking.js: .dots > .dot, .dot.is-on */
.dots { display: inline-flex; align-items: center; gap: 6px; line-height: 0; }
.dot {
  position: relative; display: block; flex: none; width: 10px; height: 10px;
  border: 1.5px solid currentColor; border-radius: 50%; background: transparent;
  transition: background-color var(--t-ui) var(--ease);
}
.dot.is-on { background: currentColor; }
.dots--sm { gap: 4px; }
.dots--sm .dot { width: 8px; height: 8px; }
/* the only hero motion (§6b): dots fill left to right once and settle empty */
.dots--intro .dot::after {
  content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: currentColor; opacity: 0;
  animation: vc-dot 240ms linear calc(400ms + var(--i, 0) * 40ms) both;
}
@keyframes vc-dot { 0%, 100% { opacity: 0; } 30%, 70% { opacity: 1; } }

/* legend list with dotted leaders (§5a-3): label · 1 px dots every 4 px · mono value */
.lg { margin: 0; }
.lg li { display: flex; align-items: baseline; gap: 10px; padding: 9px 0; }
.lg li + li { border-top: 0; }
.lg-l { flex: 0 1 auto; min-width: 0; text-wrap: pretty; }
/* a wrapped label: leader + value line up with its last line, like a table of contents */
.lg li { align-items: last baseline; }
.lg li > .lg-d { align-self: last baseline; }
/* secondary clause of a value on its own line (Pravidlá) */
.lg li:has(> .lg-n) { flex-wrap: wrap; }
.lg-n { flex: 1 0 100%; text-align: right; font-size: var(--fs-small); line-height: 1.4; font-style: italic; color: var(--ink-2); margin-top: -2px; }
.lg-d {
  flex: 1 1 24px; min-width: 24px; height: 1px; align-self: baseline; position: relative; top: -.28em;
  background-image: linear-gradient(90deg, var(--ink-2) 1px, transparent 1px); background-size: 4px 1px; background-repeat: repeat-x;
  opacity: .9;
}
.lg-v {
  flex: 0 1 auto; max-width: 62%; text-align: right; color: var(--ink);
  font-family: var(--font-mono); font-size: var(--fs-data); line-height: 1.3; font-variant-numeric: tabular-nums;
  text-wrap: balance; /* multi-line values break evenly, no one-word orphan */
}
a.lg-v { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { a.lg-v:hover { text-decoration: underline; } }
.lg--map li[data-map] { cursor: default; border-radius: 2px; margin-inline: -8px; padding-inline: 8px; transition: background-color var(--t-micro) var(--ease); }
.lg--map li[data-map].is-active { background: var(--band); background: color-mix(in srgb, var(--ink) 6%, transparent); }
@media (hover: hover) and (pointer: fine) { .lg--map li[data-map]:hover { background: var(--band); background: color-mix(in srgb, var(--ink) 6%, transparent); } }

/* ---------- 4. Header (sticky 56 px, solid --bg, no blur) ---------- */
.hdr {
  position: sticky; top: 0; z-index: 40; height: var(--hdr);
  background: var(--bg); border-bottom: 1px solid var(--line);
}
.hdr-in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; max-width: none; }
.hdr-home { display: flex; align-items: center; color: var(--ink); text-decoration: none; padding: 6px 0; border-radius: 2px; }
.lk { display: block; height: 30px; width: auto; overflow: visible; }
.lk-lit { fill: var(--accent); opacity: 0; transition: opacity var(--t-ui) var(--ease); }
[data-theme="noc"] .hdr .lk-lit, [data-theme="noc"] .sheet .lk-lit { opacity: 1; }
.hdr-tools { display: flex; align-items: center; gap: 10px; }
/* outline, not a second filled button next to the Okno CTA (one signal, §3b) */
.hdr-cta { min-height: 40px; padding: 0 16px; font-size: var(--fs-small); background: transparent; color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .hdr-cta:hover { background: var(--ink); color: var(--bg); } }
.langsw { display: flex; align-items: center; }
.hdr-lang { gap: 0; margin-inline: 4px; }
.hdr-lang a {
  display: grid; place-items: center; min-width: 36px; height: 40px; padding: 0 4px;
  font: 500 var(--fs-over)/1 var(--font-mono); letter-spacing: .08em; color: var(--ink-2); text-decoration: none; border-radius: 2px;
}
@media (hover: hover) and (pointer: fine) { .hdr-lang a:hover { color: var(--ink); background: var(--band); } }
html[lang="sk"] [data-lang="sk"], html[lang="cs"] [data-lang="cs"], html[lang="en"] [data-lang="en"],
html[lang="pl"] [data-lang="pl"], html[lang="hu"] [data-lang="hu"], .langsw [aria-current="true"] {
  color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 6px;
}
.lamp {
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1.5px solid var(--ink); border-radius: var(--r-tag); background: transparent; color: var(--ink);
  transition: background-color var(--t-micro) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .lamp:hover { background: var(--band); } }
.lamp .i { width: 22px; height: 22px; --vc-okno: transparent; }
[data-theme="noc"] .lamp .i { --vc-okno: var(--accent); }
.menu-b {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 10px 0 8px;
  border: 0; border-radius: var(--r-tag); background: transparent; color: var(--ink); font: 600 var(--fs-small)/1 var(--font-sans);
}
@media (hover: hover) and (pointer: fine) { .menu-b:hover { background: var(--band); } }

/* menu sheet: native <dialog>, right panel on desktop, full screen on phones */
.sheet {
  margin: 0 0 0 auto; padding: 0; border: 0; width: min(440px, 100vw); max-width: 100vw;
  height: 100dvh; max-height: 100dvh; background: var(--bg); color: var(--ink);
  border-left: 1.5px solid var(--ink);
}
.sheet::backdrop { background: rgba(18, 21, 23, .45); }
.sheet[open] { animation: vc-sheet var(--t-sheet) var(--ease-sheet); }
@keyframes vc-sheet { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-in { min-height: 100%; display: flex; flex-direction: column; gap: 28px; padding: 8px var(--pad) 28px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.sheet-h { margin-bottom: 10px; }
.sheet-nav ol { display: grid; list-style: none; margin: 0; padding: 0; }
.sheet-nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 7px 0; text-decoration: none;
  font-size: clamp(1.25rem, 1.15rem + .5vw, 1.5rem); font-weight: 600; letter-spacing: -.01em; line-height: 1.15;
  border-bottom: 1px solid var(--line);
}
.sheet-nav a .n { font: 500 var(--fs-over)/1 var(--font-mono); color: var(--ink-2); letter-spacing: .08em; }
@media (hover: hover) and (pointer: fine) { .sheet-nav a:hover span:last-child { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .15em; } }
.sheet-set { display: grid; gap: 22px; }
.langsw--full { flex-wrap: wrap; gap: 6px; }
.langsw--full a {
  padding: 8px 12px; border: 1px solid var(--line); border-radius: 2px; text-decoration: none; font-size: var(--fs-small);
}
@media (hover: hover) and (pointer: fine) { .langsw--full a:hover { border-color: var(--ink); } }
.sheet .btn--block { margin-top: auto; min-height: 52px; }
html:has(dialog[open]) { overflow: hidden; }

/* ---------- 5. Hero (§6b): 5 : 7 split on desktop, photo first on phones ---------- */
.hero { --hero-h: clamp(560px, 88svh, 860px); position: relative; display: grid; grid-template-columns: 1fr; }
.hero-text { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 20px; padding: 28px var(--pad) 36px; }
.hero-h1 { display: grid; gap: 18px; font-weight: 600; }
.hero-eyebrow { display: block; color: var(--ink-2); }
.hero-eb-b { white-space: nowrap; }
@media (max-width: 767.98px), (min-width: 1024px) and (max-width: 1279.98px) { .hero-eb-sep { display: none; } .hero-eb-b { display: block; } } /* narrow hero column: the altitude on its own line, no dangling dot */
.hero-line {
  display: block; font-size: var(--fs-display); line-height: .95; letter-spacing: -.02em;
  text-wrap: balance;
}
.hero-heart { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.015em; font-weight: 600; color: var(--ink-2); text-wrap: balance; }
.hero-book { display: grid; gap: 14px; margin-top: 8px; }
.hero-media { position: relative; order: -1; overflow: hidden; background: var(--band); }
.hero-ph { position: relative; aspect-ratio: 4 / 5; max-height: 62svh; width: 100%; overflow: hidden; }
.hero-ph picture { position: absolute; inset: 0; opacity: 0; transition: opacity var(--t-season) var(--ease-season); }
.hero-ph picture.on { opacity: 1; }
.hero-ph img, .hero-nojs {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
  object-fit: cover; object-position: var(--mx, 50%) var(--my, 50%);
}
.grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background: url("../img/grain.webp") repeat; background-size: 256px 256px;
}
.seg--photo { position: absolute; left: 12px; bottom: 12px; z-index: 2; background: var(--surface); }

/* the price chip mount (booking.js renders it season-aware; the static line is the no-JS master line 3 + 3a) */
.bk-chip-mount { min-height: 3.1em; }
/* with JS the fallback is hidden and booking.js renders three lines (+ the Christmas line in winter): reserve that height up front,
   so the bottom-anchored hero-book does not jump (price 1.5rem x 1.55 + 2 x .9375rem x 1.55 + gaps .25rem) */
html.js[data-season="leto"] .bk-chip-mount { min-height: 5.75rem; }
html.js[data-season="zima"] .bk-chip-mount { min-height: 7.4375rem; }
.chip-static { font-size: var(--fs-small); color: var(--ink-2); max-width: 36em; }
.chip-static strong { display: block; color: var(--ink); font-size: var(--fs-body); }
html.js #bk-chip > .bk-fallback { visibility: hidden; }

/* static booking bar = first paint of #bk-hero. It mirrors booking.css .bkh-bar / .bkh-q rule for rule (flex model, the same
   container queries, 40 px pills 12 px under the bar), so nothing moves when booking.js mounts the live bar (canon: CLS 0) */
.bk-hero-mount { position: relative; z-index: 3; container-type: inline-size; }
.bkx { display: flex; align-items: stretch; min-height: 64px; background: var(--surface); border: 1.5px solid var(--ink); }
.bkx-f {
  flex: 1 1 8.5rem; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: .3rem; padding: .5rem 1rem;
  color: var(--ink); text-decoration: none; border-right: 1px solid var(--line); transition: background-color var(--t-micro);
}
@media (hover: hover) and (pointer: fine) { .bkx-f:hover { background: var(--band); } }
.bkx-l { display: block; font: 500 var(--fs-over)/1.2 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }
.bkx-v { font-size: var(--fs-ui); font-weight: 400; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bkx .bkx-g { flex: none; min-width: 0; gap: .1rem; padding: .375rem .625rem .25rem; }
.bkx-g .bkx-l { padding-left: 9px; }
.bkx-g .dots { gap: 18px; padding: 9px; color: var(--ink); } /* ten 28 px cells, like the live radio dots */
.bkx-cta { flex: none; margin: 7px; min-height: 0; padding: 0 1.5rem; border-color: var(--accent); border-radius: 4px; }
.bkx-quick { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; }
.bkx-quick .chip { min-height: 40px; padding: 0 .875rem; border-radius: 0; background: var(--surface); }
@media (max-width: 1023.98px) {
  .bkx { flex-wrap: wrap; }
  .bkx-f { flex: 1 1 0; min-height: 56px; padding-block: 6px; gap: .2rem; border-bottom: 1px solid var(--line); }
  .bkx-v { line-height: 1.2; }
  .bkx .bkx-g { border-right: 0; border-bottom: 1px solid var(--line); padding-top: .375rem; padding-bottom: .375rem; }
  .bkx-cta { flex: 1 1 100%; margin: 0 7px 7px; min-height: 48px; }
}
@media (max-width: 767.98px) { .bkx-quick .chip { min-height: 44px; } } /* = .bk-pill touch target */
@media (max-width: 559.98px) {
  .bkx-f { flex: 1 1 45%; }
  .bkx-f:nth-child(2) { border-right: 0; }
  .bkx .bkx-g { flex: 1 1 100%; border-bottom: 0; }
}
@media (min-width: 1024px) {
  @container (max-width: 700px) {
    .bkx { flex-wrap: wrap; }
    .bkx-f { flex: 1 1 45%; min-height: 56px; padding-block: 6px; gap: .2rem; border-bottom: 1px solid var(--line); }
    .bkx-v { line-height: 1.2; }
    .bkx-f:nth-child(2) { border-right: 0; }
    .bkx .bkx-g { flex: 0 0 auto; border-right: 0; padding-top: .5rem; padding-bottom: .5rem; }
    .bkx-cta { flex: 1 1 9rem; margin: 7px; min-height: 48px; }
  }
  @container (min-width: 700.02px) and (max-width: 820px) {
    .bkx-f { padding: .5rem .75rem; }
    .bkx-cta { padding: 0 1rem; }
  }
}

/* ---------- 6. Fact row (§5a-4): mono label + mono number on a cut hairline ---------- */
.facts { padding-block: clamp(28px, 3.4vw, 48px) clamp(36px, 4.4vw, 64px); }
.facts-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px var(--cut); }
.fact { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--ink); min-width: 0; }
.fact dt { font: 500 var(--fs-over)/1.2 var(--font-mono); letter-spacing: .14em; color: var(--ink-2); text-transform: uppercase; }
/* every value ends on one baseline: the bed dots sit in a strip all facts reserve, out of the flow */
.fact dd { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; flex: 1; padding-bottom: 18px; }
.fact--big .dots { position: absolute; left: 0; bottom: 0; }
.fact-v2 { display: block; }
.fact-v { font: 500 clamp(1.125rem, .95rem + .6vw, 1.5rem)/1.15 var(--font-mono); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.fact--big .fact-v { font-size: var(--fs-num); line-height: .9; letter-spacing: -.03em; }

/* ---------- 7. Dom: the stove in the arch crop (§5a-5) ---------- */
.dom-grid { display: grid; gap: 40px; align-items: start; }
.dom-arch { max-width: 560px; }
.arch {
  aspect-ratio: 4 / 5; overflow: hidden; background: var(--band);
  border-radius: 50% 50% 0 0 / 40% 40% 0 0;              /* semicircle top = the tag's gable, square bottom */
}
.arch img { width: 100%; height: 100%; object-fit: cover; object-position: 84% 0; }   /* 012 crop 377,0,512,640 */
.dom-body { display: grid; gap: 28px; }
.dom-body .sec-head { margin-bottom: 0; }
.dom-season { display: grid; gap: 16px; padding-top: 8px; }
.dom-sh { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.dom-sh .tag { margin-left: 0; vertical-align: 0; }
.dom-ph { margin-top: 12px; aspect-ratio: 3 / 2; overflow: hidden; background: var(--band); }
.dom-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 8. Tri podlažia: tab bands = the tag's floors (§6c-2) ---------- */
.fl { display: grid; gap: var(--cut); }
.fl-tabs { display: grid; gap: var(--cut); align-content: start; }
.fl-tab { align-content: start; }
.fl-tab {
  position: relative; display: grid; gap: 8px; width: 100%; padding: 18px 20px 20px; text-align: left;
  border: 0; border-radius: 0; background: var(--surface); color: var(--ink);
  transition: background-color var(--t-ui) var(--ease), color var(--t-ui) var(--ease);
}
@media (hover: hover) and (pointer: fine) { .fl-tab:hover { background: var(--tint); } }
.fl-tab--top { border-radius: 50% 50% 0 0 / 44px 44px 0 0; padding-top: 34px; }       /* the gable */
.fl-tab--bottom { border-radius: 0 0 var(--r-tag) var(--r-tag); }                    /* the ground floor's corners */
.fl-tab[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.fl-tab-t { font-size: var(--fs-h3); line-height: 1.15; font-weight: 600; letter-spacing: -.005em; }
.fl-tab-beds { display: flex; align-items: center; gap: 12px; min-height: 24px; }
.fl-tab-num { font: 500 var(--fs-data)/1 var(--font-mono); }
.fl-tab-num--t { font-size: var(--fs-small); font-family: var(--font-sans); font-weight: 400; }
.fl-tab-s { font-size: var(--fs-small); line-height: 1.45; color: var(--ink-2); max-width: 36em; }
.fl-tab[aria-selected="true"] .fl-tab-s { color: inherit; opacity: .78; }
.i--stove { width: 26px; height: 26px; --vc-okno: transparent; }
[data-theme="noc"] .i--stove { --vc-okno: var(--accent); }
.fl-panel { display: grid; gap: 24px; padding: 20px; background: var(--surface); border-radius: 0 0 var(--r-tag) var(--r-tag); }
.fl-stage { position: relative; width: 100%; max-width: 520px; margin-inline: auto; aspect-ratio: 240 / 292; color: var(--ink); }
.fl-plan { position: absolute; inset: 0; display: none; }
.fl-plan img, .fl-plan svg { width: 100%; height: 100%; }
[data-theme="noc"] .fl-plan img { filter: invert(.93); }
.fl[data-active="upper"] .fl-plan[data-plan="upper"],
.fl[data-active="entry"] .fl-plan[data-plan="entry"],
.fl[data-active="ground"] .fl-plan[data-plan="ground"] { display: block; }
.fl-hot { position: absolute; inset: 0; }
/* hotspots (app.js): <button class="fl-spot" style="left:x%;top:y%"><span>1</span></button>; stove = .fl-spot--stove */
.fl-spot {   /* 44 px hit area (2.5.8 / touch), the 36 px disc is the inner span */
  position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--bg);
  font: 600 var(--fs-small)/1 var(--font-mono); transition: transform var(--t-micro) var(--ease);
}
.fl-spot > span { display: grid; place-items: center; width: 36px; height: 36px; border: 2px solid var(--surface); border-radius: 50%; background: var(--ink); color: var(--bg); }
.fl-spot[aria-expanded="true"] { transform: scale(1.12); }
@media (hover: hover) and (pointer: fine) { .fl-spot:hover { transform: scale(1.12); } }
.fl-spot--stove { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: var(--surface); color: var(--ink); border: 2px solid var(--ink); }
.fl-spot--stove .i { width: 26px; height: 26px; }
.fl-info { display: grid; gap: 18px; align-content: start; }
.fl-info .lg { display: none; }
.fl[data-active="upper"] [data-floor-info="upper"],
.fl[data-active="entry"] [data-floor-info="entry"],
.fl[data-active="ground"] [data-floor-info="ground"] { display: block; }
.fl-guests { display: grid; gap: 10px; padding: 16px 0 0; border-top: 1px solid var(--ink); }
.fl-free { font-size: var(--fs-small); color: var(--ink-2); }
.fl-hint { font-size: var(--fs-small); color: var(--ink-2); font-style: italic; }

/* floor card (app.js): <dialog id="fl-card"> - sheet on phones, centred card on desktop */
.flc {
  padding: 0; border: 1.5px solid var(--ink); border-radius: var(--r-tag); background: var(--surface); color: var(--ink);
  width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
}
.flc::backdrop { background: rgba(18, 21, 23, .5); }
.flc[open] { animation: vc-pop var(--t-sheet) var(--ease-sheet); }
@keyframes vc-pop { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.flc-in { position: relative; display: grid; }
.flc-ph { position: relative; aspect-ratio: 3 / 2; background: var(--band); overflow: hidden; }
.flc-img { width: 100%; height: 100%; object-fit: cover; }
.flc-none { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--ink-2); font-style: italic; }
.flc-nav { position: absolute; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 4px; padding: 2px; background: var(--surface); border-radius: var(--r-tag); }
.flc-count { font-size: var(--fs-cell); min-width: 4.5em; text-align: center; }
.flc-body { display: grid; gap: 8px; padding: 20px 22px 24px; }
.flc-close { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--surface); }
.lb-close { z-index: 2; }

/* ---------- 9. Guľatina: three tight crops, three lines ---------- */
.gul-grid { display: grid; gap: 28px var(--cut); counter-reset: none; }
.gul-item figure { display: grid; gap: 14px; }
.gul-ph { aspect-ratio: 4 / 5; overflow: hidden; background: var(--band); }
.gul-ph img { width: 100%; height: 100%; object-fit: cover; object-position: var(--ox, 50%) var(--oy, 50%);
  transform: scale(var(--z, 1)); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.gul-item figcaption { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; letter-spacing: -.005em; text-wrap: balance; }
.gul-n { font: 500 var(--fs-over)/1 var(--font-mono); letter-spacing: .1em; color: var(--ink-2); }

/* ---------- 10. Galéria: scroll-snap filmstrip + <dialog> lightbox (patterns §4) ---------- */
.gal .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.gal-ctrl { display: grid; gap: 14px; justify-items: start; }
.gal-hint { font-size: var(--fs-small); color: var(--ink-2); }
.gal-btns { display: flex; align-items: center; gap: 8px; }
.gal-count { font-size: var(--fs-data); min-width: 5.5em; }
.gal .gal-track {
  display: flex; gap: var(--cut); overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); padding: 0 var(--pad) 6px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.gal-track::-webkit-scrollbar { display: none; }
.gal-track::after { content: ""; flex: 0 0 calc(var(--pad) - var(--cut)); }
.shot { --shot-h: clamp(300px, 36vw, 540px); width: min-content; flex: none; scroll-snap-align: start; display: grid; gap: 12px; align-content: start; }
.shot-btn { display: block; padding: 0; border: 0; background: var(--band); cursor: zoom-in; border-radius: 0; }
.shot-img { position: relative; display: block; height: var(--shot-h); overflow: hidden; }
.shot-img::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .035;
  background: url("../img/grain.webp") repeat; background-size: 256px 256px;
}
.shot-img img { height: 100%; width: auto; max-width: none; transition: transform var(--t-sheet) var(--ease); }
@media (hover: hover) and (pointer: fine) { .shot-btn:hover .shot-img img { transform: scale(1.02); } }
.shot-cap { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; padding-right: 2px; }
.shot-tag { font: 500 var(--fs-cell)/1.2 var(--font-mono); letter-spacing: .12em; color: var(--ink); text-transform: uppercase; justify-self: start; }
/* counter first, tag after, both left: the caption never runs into the next slide's tag */
.shot-n { order: -1; font: 400 var(--fs-cell)/1.2 var(--font-mono); color: var(--ink-2); }
.shot-t { grid-column: 1 / -1; font-size: var(--fs-small); line-height: 1.4; font-style: italic; color: var(--ink-2); }

.lb {
  padding: 0; border: 0; margin: 0; width: 100vw; max-width: none; height: 100dvh; max-height: none;
  background: rgba(12, 14, 16, .96); color: #EEF1EE; overflow: hidden;
}
.lb::backdrop { background: rgba(12, 14, 16, .6); }
.lb[open] { display: grid; place-items: center; animation: vc-fade var(--t-sheet) var(--ease-sheet); }
@keyframes vc-fade { from { opacity: 0; } to { opacity: 1; } }
.lb-fig { display: grid; gap: 14px; justify-items: center; padding: 64px 72px 24px; width: 100%; max-width: 100%; }
.lb-img { max-width: min(100%, 1400px); max-height: calc(100dvh - 170px); width: auto; height: auto; object-fit: contain; }
.lb-cap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 6px 14px; max-width: 70ch; text-align: center; }
.lb .shot-tag, .lb-n { color: #A9AEA9; }
.lb-t { font-style: italic; }
.lb .icon-b { position: absolute; color: #EEF1EE; }
@media (hover: hover) and (pointer: fine) { .lb .icon-b:hover { background: rgba(238, 241, 238, .12); } }
.lb .icon-b:focus-visible { outline-color: var(--accent); box-shadow: none; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; margin-top: -22px; }
.lb-next { right: 12px; top: 50%; margin-top: -22px; }

/* ---------- 11. Okolie ---------- */
.ok-grid { display: grid; gap: 40px clamp(32px, 6vw, 112px); }
.ok-col { display: grid; gap: 14px; align-content: start; }
.ok-h { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.ok-more { display: grid; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--ink-2); }
.ok-more > * { max-width: 40em; }
.ok-more a { color: var(--ink); }

/* ---------- 12. Ceny ---------- */
.ceny-head .h2 { max-width: 16ch; }
.ceny-sub { display: grid; gap: 6px; padding-bottom: .35em; }
.ceny-cond { font: 400 var(--fs-data)/1.45 var(--font-mono); color: var(--ink-2); max-width: 60ch; }
.ceny-perhead { font-size: var(--fs-h3); line-height: 1.3; font-weight: 600; max-width: 34ch; }
.ceny-grid { display: grid; gap: 40px clamp(32px, 6vw, 112px); align-items: start; }
.ceny-main { display: grid; gap: 16px; min-width: 0; }
.bk-rates-mount { min-height: 120px; }
.rates-site { margin-top: 28px; max-width: 40em; }
.rates-static { padding: 20px 22px; border: 1.5px solid var(--ink); background: var(--bg); font-size: var(--fs-body); max-width: 40em; }
.ceny-side { display: grid; gap: 28px; }
.ceny-box { display: grid; gap: 10px; }
.ceny-box .h3 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.ticks { display: grid; gap: 6px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .i { width: 20px; height: 20px; margin-top: .2em; }
.ceny-pay p { max-width: 36em; }
.ceny-in { grid-template-columns: minmax(0, 1fr) 104px; column-gap: 20px; }
.ceny-in .h3 { grid-column: 1 / -1; }
.ceny-in .ticks { grid-column: 1; }
.ceny-foot { display: flex; }
.ceny-ph { grid-column: 2; grid-row: 2; align-self: start; margin-top: 2px; width: 104px; aspect-ratio: 2 / 3; overflow: hidden; background: var(--band); }
.ceny-ph img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 13. Pravidlá ---------- */
.pr-grid { display: grid; gap: 32px clamp(32px, 6vw, 112px); align-items: start; padding-top: 14px;
  /* the section rule spans both columns, inside the gutter (.pr-grid is also the .wrap) */
  background: linear-gradient(var(--ink), var(--ink)) var(--pad) 0 / calc(100% - 2 * var(--pad)) 1px no-repeat; }
.pr-head { margin-bottom: 0; }
.pr-head .over { border-top: 0; padding-top: 0; }
.pr-storno .lg li { padding-block: 6px; }
.pr-head .h2 { max-width: 14ch; }
.pr-ph { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: end; margin-top: 12px; }
.pr-ph img { width: 96px; aspect-ratio: 1; object-fit: cover; }
.pr-ph figcaption { font-size: var(--fs-small); font-style: italic; color: var(--ink-2); }
.pr-body { display: grid; gap: 24px; }
.lg--rules li { padding-block: 11px; }
.pr-storno { display: grid; gap: 8px; padding: 18px 20px; background: var(--surface); border-radius: 0 0 var(--r-tag) var(--r-tag); }
.pr-storno-v { font: 500 var(--fs-data)/1.5 var(--font-mono); }
.ln--doc { font-weight: 600; }

/* ---------- 14. Cesta: legend, address, map, name block, the 49° N hairline ---------- */
.cesta-grid { display: grid; gap: 40px clamp(32px, 5vw, 80px); align-items: start; }
.cesta-legend { display: grid; gap: 12px; }
.cesta-legend .h3 { padding-bottom: 10px; border-bottom: 1px solid var(--ink); }
.lg--gap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.addr { display: grid; gap: 14px; margin-top: 18px; padding: 20px; background: var(--bg); }
.addr-row { display: grid; gap: 4px; }
.addr-v { font-size: var(--fs-body); font-weight: 600; }
.addr-v.mono { font-weight: 500; font-size: var(--fs-data); }
.addr-btns { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.addr-ok { font-size: var(--fs-small); color: var(--ink-2); }
.cesta-map { display: grid; gap: 10px; min-width: 0; }
.map { position: relative; height: clamp(360px, 52vh, 560px); background: var(--band); overflow: hidden; isolation: isolate; }
.map-ph { position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: center; opacity: .9; }
.map-49 { position: absolute; left: 0; right: 0; top: 14%; border-top: 1px solid var(--ink); }
.map-49 span { position: absolute; left: 12px; top: 6px; font: 500 var(--fs-cell)/1.3 var(--font-mono); letter-spacing: .06em; color: var(--ink); background: var(--band); padding: 2px 6px; max-width: calc(100% - 24px); }
.map-pin { position: absolute; left: 50%; top: 56%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 4px var(--band), 0 0 0 5.5px var(--ink); }
.map-load { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2; background: var(--surface); }
.map-load:active { transform: translateX(-50%) translateY(1px); }
.map .leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }
[data-theme="noc"] .map .leaflet-tile-pane { filter: grayscale(1) invert(1) contrast(.86) brightness(.82); }
.map .leaflet-container, .map.leaflet-container { font-family: var(--font-sans); background: var(--band); }
.vc-pin { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px var(--ink); }
.name-block { display: grid; gap: 14px; margin-top: clamp(48px, 6vw, 88px); padding-top: 18px; border-top: 1px solid var(--ink); }
.name-h { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.015em; font-weight: 600; max-width: 22ch; text-wrap: balance; }
.name-p { max-width: 38em; color: var(--ink-2); }
.h49 { display: flex; align-items: center; gap: 14px; margin-top: 18px; font: 500 var(--fs-cell)/1.3 var(--font-mono); letter-spacing: .06em; }
.h49-l, .h49-r { flex: none; white-space: nowrap; }
.h49-line { position: relative; flex: 1; height: 1px; background: currentColor; min-width: 48px; }
.h49-m { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); white-space: nowrap; background: inherit; }
.h49-m { background: none; }

/* ---------- 15. Rezervácia ---------- */
.rez .sec-head { margin-bottom: clamp(24px, 3vw, 40px); }
.bk-root-mount { min-height: 240px; }
.rez-static { display: grid; gap: 20px; padding: clamp(20px, 3vw, 40px); background: var(--surface); border: 1.5px solid var(--ink); max-width: 760px; }
.rez-nojs { font-weight: 600; }
html.js .rez-nojs { display: none; }

/* ---------- 16. Footer (§6g) ---------- */
.ft { margin-top: var(--cut); background: var(--footer-bg); color: var(--footer-ink); padding-block: clamp(48px, 6vw, 88px) 28px; }
.ft .over { color: rgba(238, 241, 238, .72); }
.ft-in { display: grid; gap: 36px; }
.ft-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; }
.ft-logo { color: var(--footer-ink); display: inline-flex; border-radius: 2px; }
.ft-logo .lk { height: 40px; }
.ft .lk-lit { display: none; }
.ft-tag { font-size: var(--fs-h3); font-weight: 600; letter-spacing: -.005em; }
.h49--ft { margin-top: 0; color: var(--footer-ink); }
.ft-grid { display: grid; gap: 32px clamp(32px, 5vw, 80px); }
.ft-col { display: grid; gap: 12px; align-content: start; }
.lg--ft li { padding-block: 7px; font-size: var(--fs-small); }
.lg--ft .lg-d { background-image: linear-gradient(90deg, rgba(238, 241, 238, .55) 1px, transparent 1px); }
.lg--ft .lg-v { color: var(--footer-ink); font-size: var(--fs-small); }
.ft-imprint { font-size: var(--fs-small); line-height: 1.6; color: rgba(238, 241, 238, .86); max-width: 34em; }
.langsw--ft { flex-direction: column; align-items: flex-start; gap: 2px; }
.langsw--ft a { padding: 5px 0; text-decoration: none; font-size: var(--fs-small); color: rgba(238, 241, 238, .86); }
@media (hover: hover) and (pointer: fine) { .langsw--ft a:hover { color: var(--footer-ink); text-decoration: underline; } }
.ft .langsw a[data-lang] { color: rgba(238, 241, 238, .86); }
html[lang="sk"] .ft [data-lang="sk"], html[lang="cs"] .ft [data-lang="cs"], html[lang="en"] .ft [data-lang="en"],
html[lang="pl"] .ft [data-lang="pl"], html[lang="hu"] .ft [data-lang="hu"], .ft .langsw [aria-current="true"] { color: var(--footer-ink); }
.ft .langsw a[data-lang] { text-underline-offset: .25em; }
.ft-bottom {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px 28px; padding-top: 18px;
  border-top: 1px solid rgba(238, 241, 238, .22); font-size: var(--fs-small); color: rgba(238, 241, 238, .72);
}
.ft-bottom a { color: var(--footer-ink); }
.ft .ln { text-decoration-color: rgba(238, 241, 238, .4); }
@media (hover: hover) and (pointer: fine) { .ft .ln:hover { text-decoration-color: currentColor; } }
.ft-design { font-family: var(--font-mono); font-size: var(--fs-cell); letter-spacing: .06em; }
.ft-up { margin-left: auto; }
.ft :focus-visible { outline-color: var(--accent); box-shadow: none; }

/* ---------- 17. Pages: privacy + 404 ---------- */
.page { padding-block: clamp(48px, 7vw, 112px); }
.page-head { display: grid; gap: 16px; margin-bottom: clamp(32px, 4vw, 56px); }
.page-h1 { font-size: var(--fs-h2); line-height: 1.05; letter-spacing: -.015em; font-weight: 600; max-width: 20ch; }
.page-meta { font: 400 var(--fs-small)/1.4 var(--font-mono); color: var(--ink-2); }
.pp { display: grid; gap: 8px; max-width: 44em; }
.pp h2 { font-size: var(--fs-h3); line-height: 1.2; font-weight: 600; margin-top: 28px; padding-top: 14px; border-top: 1px solid var(--ink); }
.pp p, .pp li { text-wrap: pretty; }
.pp ul { display: grid; gap: 6px; padding-left: 1.1em; }
.pp .intro { font-size: var(--fs-h3); line-height: 1.35; }
.pp .pp-back { margin-top: 32px; }
.e404 { display: grid; gap: 22px; justify-items: start; min-height: calc(100svh - var(--hdr) - 200px); align-content: center; }
.e404-pic { width: clamp(96px, 14vw, 160px); height: auto; color: var(--ink); --vc-okno: transparent; }
[data-theme="noc"] .e404-pic { --vc-okno: var(--accent); }
.e404-code { font: 500 var(--fs-num)/1 var(--font-mono); letter-spacing: -.03em; color: var(--ink-2); }
.e404-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- 18. Responsive ---------- */
@media (max-width: 767.98px) {
  .hdr-seg, .hdr-lang, .lamp, .hdr-cta { display: none; }
  .lk { height: 26px; }
  .sheet { width: 100vw; border-left: 0; }
  .sec-head--row { grid-template-columns: 1fr; }
  .gal-ctrl { grid-template-columns: 1fr; }
  .lg li { flex-wrap: wrap; row-gap: 2px; }
  .lg-v { max-width: 100%; margin-left: auto; }
  .h49 { display: grid; grid-template-columns: 1fr; gap: 8px; }
  .h49-line { margin-top: 22px; }
  .h49-r { justify-self: end; }
  .ft-up { margin-left: 0; }
  .hero-eyebrow { font-size: .75rem; letter-spacing: .1em; }
  /* booking-first (§6b): the price chip starts inside a 664 px Safari viewport (photo cap stays under the canon's 62svh) */
  .hero-ph { max-height: 44svh; }
  .hero-text { padding-top: 20px; }
  /* touch targets >= 44 px (menu, switches, small buttons, footer links) */
  .menu-b { height: 44px; }
  .btn--sm { min-height: 44px; }
  .seg-b { height: 44px; padding: 0 14px 0 12px; }
  .sheet-nav a { min-height: 44px; padding: 10px 0; }
  .sheet .btn--okno { position: sticky; bottom: 0; box-shadow: 0 -16px 0 var(--bg); }  /* margin-top: auto (above) still pins it low */
  .sheet .btn--okno:focus-visible { box-shadow: 0 -16px 0 var(--bg), 0 0 0 4px var(--accent); }
  .ft a, .ft .lg-v { display: inline-flex; align-items: center; min-height: 44px; }
  .lg--ft li, .langsw--ft a { padding-block: 0; }
  /* the sticky booking bar (56 px, booking.js) never covers the footer's last row */
  .ft { padding-bottom: calc(28px + 56px + env(safe-area-inset-bottom, 0px)); }
  /* lightbox: the photo gets the full width, arrows move under it */
  .lb-fig { padding: 60px 0 84px; }
  .lb-img { max-width: 100%; max-height: calc(100dvh - 190px); }
  .lb-cap { padding: 0 16px; max-width: 100%; }
  .lb-prev, .lb-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-top: 0; }
}
@media (max-width: 559px) {
  .gul-grid { grid-template-columns: 1fr 1fr; }
  .gul-item:first-child { grid-column: 1 / -1; }
  .gul-item:first-child .gul-ph { aspect-ratio: 3 / 2; }
  .gul-ph img { transform: scale(calc(1 + (var(--z, 1) - 1) * .55)); }
  .gul-item:first-child .gul-ph img { transform: scale(1.9); transform-origin: 57% 8%; object-position: 57% 8%; } /* corners + roof edge, no wheelbarrow at the 3:2 bottom edge */
  .gul-item figcaption { font-size: 1.0625rem; grid-template-columns: 1fr; gap: 4px; }
  .shot { --shot-h: 58vw; }
}
@media (min-width: 560px) {
  .facts-in { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .gul-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .hero-ph { aspect-ratio: 16 / 10; max-height: 70svh; }
  .hero-ph img, .hero-nojs { object-position: var(--fx, 50%) var(--fy, 50%); }
  .dom-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(40px, 6vw, 112px); }
  .dom-arch { position: sticky; top: calc(var(--hdr) + 24px); }
  .fl-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; padding: clamp(20px, 3vw, 40px); }
  .ok-grid { grid-template-columns: 1fr 1fr; }
  /* row heads share the columns of the body below them (no steps down the page) */
  #okolie .sec-head--row { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 6vw, 112px); }
  .ft-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 2fr); }
  .gal-ctrl { justify-items: end; text-align: right; }
}
@media (max-width: 1179px) { .hdr-lang { display: none; } }
@media (min-width: 1024px) {
  .hero { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: var(--hero-h); }
  .hero-text { padding: clamp(28px, 3.4vw, 56px) clamp(28px, 3vw, 56px) clamp(28px, 3.2vw, 48px) var(--pad); justify-content: space-between; gap: 24px; }
  .hero-line { font-size: min(var(--fs-display), 6vw); }
  .hero-media { order: 0; height: var(--hero-h); }
  .hero-ph { aspect-ratio: auto; height: 100%; max-height: none; }
  .hero-book { margin-top: auto; }
  .bk-hero-mount { width: calc(100% + clamp(140px, 16vw, 300px)); }
  .seg--photo { left: auto; right: 16px; bottom: 16px; }
  .fl { grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr); }
  .fl-tabs { align-content: stretch; grid-template-rows: repeat(3, minmax(0, 1fr)); }  /* three floors as tall as the plan */
  .pr-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cesta-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .cesta-map { position: sticky; top: calc(var(--hdr) + 24px); }
  #cesta .sec-head--row { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 80px); }
  #rezervacia .sec-head--row { grid-template-columns: minmax(0, 1fr) minmax(18rem, 24rem); column-gap: 2.5rem; }
  #podlazia .sec-head--row { grid-template-columns: minmax(260px, 4fr) minmax(0, 8fr); column-gap: var(--cut); }
  #podlazia .sec-head--row .lead { padding-left: clamp(20px, 3vw, 40px); }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .hero-eyebrow { font-size: .75rem; letter-spacing: .1em; }
  /* narrower floor tabs so plan + legend both fit in the panel */
  .fl, #podlazia .sec-head--row { grid-template-columns: minmax(230px, 3fr) minmax(0, 9fr); }
  #pod-h { font-size: min(var(--fs-h2), 4vw); } /* the head keeps the tabs' column: sized so „Kto gdzie śpi.“ / „Ki hol alszik.“ stay on one line */
}
@media (min-width: 1280px) {
  .facts-in { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .fact:not(.fact--big) .fact-v { font-size: min(1.5rem, 1.45vw); white-space: nowrap; }
  /* the ceník table needs ~615 px: two columns only once it fits (1024 - 1279 stacks) */
  .ceny-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  #ceny .sec-head--row { column-gap: clamp(32px, 6vw, 112px); }
  .fl-panel { grid-template-columns: minmax(0, 7fr) minmax(220px, 5fr); }
}

/* ---------- 19. Reveals (IO in app.js adds .is-in once) - hidden states only under html.js (trap 2) ---------- */
html.js .rv { opacity: 0; transform: translateY(12px); }
html.js .rv.is-in {
  opacity: 1; transform: none;
  transition: opacity var(--t-reveal) var(--ease) var(--d, 0s), transform var(--t-reveal) var(--ease) var(--d, 0s);
}

/* failsafe: if app.js never runs (blocked, flaky network) the blocks still appear after 4 s.
   app.js marks the active season button pressed at boot; from then on the IO reveals own .rv */
html.js:not(:has(.seg-b[aria-pressed="true"])) .rv:not(.is-in) { animation: vc-rv-show 1ms linear 4s forwards; }
@keyframes vc-rv-show { to { opacity: 1; transform: none; } }

/* no content-visibility above #rezervacia (§6j deviation, booking-e2e): placeholder heights shrink mid-scroll
   and every anchor jump to #rezervacia (hero bar, header CTA, menu) landed ~700 px past the calendar */

/* ---------- 20. Reduced motion + QA hooks (?static, ?shots) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  html.js .rv { opacity: 1; transform: none; }
  .dots--intro .dot::after { animation: none; opacity: 0; }
}
html.static *, html.static *::before, html.static *::after { animation: none !important; transition: none !important; }
/* without JS: no controls that cannot work (switches, menu, copy, map, gallery arrows) */
html:not(.js) :is(.seg, .lamp, .menu-b, .gal-btns, [data-copy-gps], [data-map-load]) { display: none !important; }
html.static .rv, html.shots .rv { opacity: 1 !important; transform: none !important; }
html.shots .hero { --hero-h: 820px; }
html.shots .hero-ph { max-height: none; }
html.shots .hdr { position: relative; }

/* ---------- 21. Print ---------- */
@media print {
  .hdr, .sheet, .lb, .flc, .seg--photo, .gal-btns, .map, .map-hint, .bk-hero-mount, #bk-sticky, .grain, .shot-img::after { display: none !important; }
  body { background: #fff; color: #000; }
  .band, .band--fog, .band--tint { background: none; }
  .rv { opacity: 1 !important; transform: none !important; }
  .gal-track { flex-wrap: wrap; overflow: visible; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .8em; }
}
