/* ============================================================
   POLNAČKA — chalupa s duší dvou staletí
   Barvy vzaté přímo z domu: vápenná omítka, ořechové dřevo,
   červeň malovaných postelí, zeleň dveří a oken.
   ============================================================ */

:root {
  --paper:      #F2EEE2;   /* vápenná omítka */
  --paper-deep: #E9E4D1;   /* stín omítky — střídání sekcí */
  --ink:        #242B1D;   /* zelenočerná — smrkový les za soumraku */
  --ink-soft:   #555844;   /* světlejší text */
  --moss:       #4A5238;   /* vojenská / mechová zelená — hlavní akcent */
  --moss-dark:  #363D28;
  --oxide:      #8C3B2E;   /* červeň malovaných postelí — drobné detaily */
  --oxide-dark: #71291E;
  --sage:       #5E6B51;   /* zeleň dveří a okenních rámů */
  --line:       rgba(36, 43, 29, .16);

  --font-display: "Lora", Georgia, serif;
  --font-carved: "IM Fell English SC", "IM Fell English", Georgia, serif;
  --font-script: "Dancing Script", "Segoe Script", cursive;   /* psaný název v hero */
  --font-body: "Lora", Georgia, serif;

  --container: 1160px;
  --radius: 4px;
  --shadow-soft: 0 18px 50px -18px rgba(36, 43, 29, .35);
}

::selection { background: var(--moss); color: #F2EEE2; }

/* ----- reset ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Plynulé rolování zapíná main.js až po načtení stránky (třídou .smooth).
   Kdyby platilo hned, prohlížeč by nedoskočil na kotvu z adresy — odkaz
   index.html#cenik skončil nahoře, protože animaci přerušilo dokreslování. */
html { scroll-behavior: auto; }
html.smooth { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* height:auto je nutné, protože fotky mají v HTML uvedené rozměry (kvůli tomu,
   aby stránka při načítání neposkakovala) — bez něj by se držely výšky z atributu. */
img { display: block; max-width: 100%; height: auto; }
a { color: var(--oxide); text-decoration: none; }

.container {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
}

/* ----- typografie ----- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: .01em;
}
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--oxide);
  margin-bottom: 1rem;
}
.section-eyebrow svg { width: 17px; height: 17px; color: var(--moss); }
/* Nadpisy sekcí jsou CELÉ psaným písmem (přání klienta, 14. 8. 2026 — dřív
   měly psané jen první slovo). Kaligrafie má menší optickou velikost, proto
   je stupeň větší a s volnějším prokladem. */
.section-title {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: clamp(2.3rem, 4.6vw, 3.4rem);
  line-height: 1.25;
  letter-spacing: .005em;
  padding-bottom: .08em;   /* dolní smyčky (ř, ý) se jinak ořežou */
  margin-bottom: 1.4rem;
  text-wrap: balance;
}
/* `.script` obaluje první slovo a zvětšuje ho o 22 % — uvnitř nadpisu, který
   je celý psaný, by z toho byl schod. Spany zůstaly v HTML pro případ návratu. */
.section-title .script { font-size: 1em; }
.section-title.title-script { font-family: var(--font-script); }
/* Psané slovo v nadpisu (Dancing Script). Vždy jen první slovo — celý nadpis
   psaným písmem by se v delších větách špatně četl. Zvětšeno, protože
   kaligrafie má menší optickou velikost než Lora. */
.script {
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.22em;
  letter-spacing: 0;
  line-height: 1;
  padding-right: .06em;
}
.section-lead {
  max-width: 62ch;
  color: var(--ink-soft);
}

/* ============================================================
   HLAVIČKA
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1.1rem 0;
  transition: background .35s ease, box-shadow .35s ease, padding .35s ease;
}
.site-header.scrolled {
  background: rgba(243, 238, 228, .94);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 var(--line), 0 12px 30px -18px rgba(46,37,25,.25);
  padding: .65rem 0;
}
.header-inner {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr; /* logo vždy přesně uprostřed */
  align-items: center;
  gap: 0;
}
.header-inner .mobile-brand { display: none; }
/* Logo Zlaté Jeseníky — jen na mobilu, na počítači zůstává psané "Polnačka" */
.brand-logo { display: none; }
.main-nav { display: contents; }
.nav-side {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}
.nav-left { grid-column: 1; justify-self: end; }
.nav-right { grid-column: 3; justify-self: start; }
.main-nav a.nav-brand {
  grid-column: 2;
  font-family: var(--font-script);
  font-weight: 600;
  font-size: 1.75rem;
  letter-spacing: 0;
  color: #fff;
  margin: 0 1.6rem;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  line-height: 1;
}
.main-nav a.nav-brand::after { display: none; }
/* Uprostřed hlavičky je logo Zlaté Jeseníky — na počítači i na mobilu.
   Psaný nápis „Polnačka" tu zůstal v HTML kvůli čtečkám a pro případ návratu. */
.main-nav a.nav-brand .brand-rosette,
.main-nav a.nav-brand > span { display: none; }
.main-nav a.nav-brand .brand-logo {
  display: block;
  height: 54px;
  width: auto;
  /* logo je širší než býval nápis, jinak by na něj menu nalepilo */
  margin-inline: 1.1rem;
  transition: height .35s ease;
}
.site-header.scrolled .main-nav a.nav-brand .brand-logo { height: 46px; }
.main-nav a.nav-brand:hover { color: #fff; }
.site-header.scrolled .main-nav a.nav-brand,
.site-header.scrolled .main-nav a.nav-brand:hover { color: var(--ink); }
/* přepínač jazyka — vlevo na okraji */
.header-inner > .lang-switch {
  position: absolute;
  left: 0;
  top: 50%;
  translate: 0 -50%;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-script);
  font-size: 1.7rem;
  font-weight: 600;
  letter-spacing: 0;
  color: #fff;
  transition: color .35s ease;
}
.brand-rosette { width: 21px; height: 21px; color: currentColor; }
.site-header.scrolled .brand { color: var(--ink); }

.main-nav a {
  font-family: var(--font-body);
  font-size: .92rem;
  color: rgba(255,255,255,.88);
  transition: color .25s ease;
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -4px;
  height: 1px;
  background: currentColor;
  transition: right .3s ease;
}
.main-nav a:hover::after { right: 0; }
.site-header.scrolled .main-nav a { color: var(--ink-soft); }
.main-nav a:hover { color: #fff; }
.site-header.scrolled .main-nav a:hover { color: var(--oxide); }

.header-right { display: flex; align-items: center; gap: 1.1rem; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .85rem;
  color: rgba(255,255,255,.85);
  transition: color .35s ease;
}
.site-header.scrolled .lang-switch { color: var(--ink-soft); }
.lang-active { font-weight: 600; }
.lang-sep { opacity: .5; }
.lang-link { color: inherit; opacity: .7; transition: opacity .25s ease; }
.lang-link:hover { opacity: 1; }

/* hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 6px 2px;
  cursor: pointer;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, background .3s ease;
}
.site-header.scrolled .nav-toggle span,
.site-header.nav-open .nav-toggle span { background: var(--ink); }
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   TLAČÍTKA
   ============================================================ */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: .04em;
  color: #F2EEE2;
  background: var(--moss);
  padding: .85rem 1.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: background .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover {
  background: var(--moss-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -12px rgba(54, 61, 40, .65);
}
.btn-paper {
  background: var(--paper);
  color: var(--ink);
}
.btn-paper:hover {
  background: #fff;
  box-shadow: 0 12px 24px -12px rgba(21, 26, 15, .55);
}
.btn-ghost {
  background: transparent;
  border-color: rgba(255,255,255,.55);
  color: #fff;
}
.btn-ghost:hover {
  background: rgba(255,255,255,.12);
  box-shadow: none;
}
/* hlavní tlačítko v hero: taky průhledné, jen o kousek výraznější okraj */
.btn-ghost.btn-lead {
  border-color: rgba(255,255,255,.9);
}
.btn-ghost.btn-lead:hover {
  background: rgba(255,255,255,.2);
}
.btn-small { padding: .5rem 1.15rem; font-size: .85rem; }
.header-cta { box-shadow: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* Výšku měří skript při načtení a dál ji drží (--hero-h), aby se hero při
     scrollu na telefonu nezvětšoval a nic se neposouvalo. Řádky nad tím jsou
     záloha, kdyby skript neběžel. */
  min-height: 100vh;
  min-height: 100svh;
  min-height: var(--hero-h, 100svh);
  /* Sloupec: obsah nahore, pás faktů dole jako běžný prvek. Dokud byl pás
     absolutně ukotvený, na nižších displejích do něj zajelo tlačítko
     „Poznat chalupu" a zmizel mu spodní okraj. */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: hero-drift 26s ease-out both;
}
@keyframes hero-drift {
  from { transform: scale(1.09); }
  to   { transform: scale(1); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to bottom,
      rgba(21, 26, 15, .55) 0%,
      rgba(21, 26, 15, .2) 35%,
      rgba(21, 26, 15, .28) 62%,
      rgba(21, 26, 15, .78) 100%);
}
/* Název drží nahoře nad hřebenem střechy a tlačítka klesají dolů k autu —
   mezi nimi tak zůstane vidět celá chalupa. Řeší to rozložení, ne posun
   transformem: obsah se roztáhne přes celou výšku hero a tlačítka odsune
   `margin-top: auto` (viz .hero-actions níž). */
.hero-content {
  width: 100%;
  max-width: 860px;
  margin-block: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 15vh 1.5rem 6rem;
}
.hero-rosette {
  width: 30px; height: 30px;
  color: #fff;
  opacity: .9;
  margin-inline: auto;
  margin-bottom: 2rem;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  font-size: .8rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  opacity: .9;
  margin-bottom: 1.6rem;
}
.hero-eyebrow::before,
.hero-eyebrow::after {
  content: "";
  width: clamp(30px, 6vw, 70px);
  height: 1px;
  background: rgba(255,255,255,.5);
}
.hero-title {
  /* Psané písmo Dancing Script — filtr „weathered" tu nechceme, tenké tahy
     kaligrafie by rozdrolil na cucky. */
  font-family: var(--font-script);
  font-size: clamp(3.6rem, 10.5vw, 7.2rem);
  font-weight: 600;
  letter-spacing: .01em;
  line-height: 1.15;
  padding-bottom: .12em;   /* aby se neořízly dolní smyčky (č, ž) */
  margin-bottom: 2.8rem;
  text-shadow: 0 4px 40px rgba(21, 26, 15, .5);
}
.hero-sub {
  font-style: italic;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.8;
  max-width: 54ch;
  margin-inline: auto;
  margin-bottom: 2.4rem;
  opacity: .93;
}
.hero-actions {
  display: flex;
  gap: .9rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: auto;   /* odsune tlačítka dolů, k autu na fotce */
}

/* pás faktů dole v hero */
.hero-facts {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: clamp(1.5rem, 5vw, 4.5rem);
  padding: 1.15rem 1rem;
  border-top: 1px solid rgba(255,255,255,.22);
  background: rgba(21, 26, 15, .25);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,.92);
  font-size: .86rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.hero-facts span { display: inline-flex; align-items: center; gap: .6rem; }
.hero-facts svg { width: 13px; height: 13px; opacity: .8; }

/* ============================================================
   SEKCE — společné
   ============================================================ */
.section { padding: 6.5rem 0; scroll-margin-top: 60px; }
.section-deep { background: var(--paper-deep); }

/* oddělovač s růžicí */
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(320px, 60%);
  margin: 0 auto;
  color: var(--oxide);
}
.divider::before, .divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.divider svg { width: 18px; height: 18px; flex: none; }

/* ============================================================
   O CHALUPĚ
   ============================================================ */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: center;
}
.about-text p + p { margin-top: 1.1rem; }
.dropcap::first-letter {
  font-family: var(--font-script);
  font-size: 3.9em;
  font-weight: 700;
  color: var(--oxide);
  float: left;
  line-height: .74;
  /* Dancing Script má u iniciálky dlouhý koncový tah — bez odsazení vpravo
     zajíždí do prvního normálního písmene. Lehký posun doleva ji zároveň
     odlepí od okraje textu. */
  margin-left: -.035em;
  padding-right: .13em;
  padding-top: .12em;
}
.about-facts {
  list-style: none;
  display: flex;
  gap: 2.2rem;
  flex-wrap: wrap;
  margin-top: 2.2rem;
  padding-top: 1.8rem;
  border-top: 1px solid var(--line);
}
.about-facts li { display: grid; gap: .1rem; }
.about-facts strong {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--oxide);
}
.about-facts span { font-size: .85rem; color: var(--ink-soft); }

.about-photos {
  position: relative;
  padding-bottom: 3.5rem;
  padding-right: 2.5rem;
}
.about-photo-main img,
.about-photo-accent img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.about-photo-main {
  width: 100%;
}
/* Fotka je letecký záběr na šířku — ořez na výšku by z něj usekl třetinu
   krajiny, tedy to hlavní. Proto poměr 4/3 a plná šířka sloupce. */
.about-photo-main img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}
.about-photo-accent img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.about-photo-accent {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 52%;
  border: 6px solid var(--paper);
  border-radius: calc(var(--radius) + 6px);
}

/* ============================================================
   UBYTOVÁNÍ
   ============================================================ */
.section-head { margin-bottom: 3rem; }
.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.room-card {
  background: #FDFBF6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease;
}
.room-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-soft);
}
.room-card figure { overflow: hidden; aspect-ratio: 3 / 2; position: relative; }
.room-card-featured { border-color: var(--moss); }
.room-badge {
  position: absolute;
  top: .9rem; left: .9rem;
  background: var(--moss);
  color: #F2EEE2;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: .35rem .75rem;
  border-radius: 3px;
  z-index: 2;
}
.room-card figure img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.room-card:hover figure img { transform: scale(1.045); }
.room-body { padding: 1.6rem 1.7rem 1.8rem; }
.room-body h3 {
  font-family: var(--font-script);
  font-size: 2rem;
  line-height: 1.2;
  padding-bottom: .06em;
  margin-bottom: .6rem;
}
.room-body p { font-size: .97rem; color: var(--ink-soft); }
.room-meta {
  margin-top: 1.1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--line);
  font-size: .85rem !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--moss) !important;
  font-weight: 600;
}
/* ============================================================
   DALŠÍ CHALUPY
   Karta = fotka přes celou plochu a přes ni papírová cedulka
   s dvojitou linkou a růžicovým medailonem — stejný motiv, jaký
   mají malované postele a skříně uvnitř Polnačky.
   ============================================================ */
.lodges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.lodge {
  position: relative;
  display: block;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
  color: inherit;
  transition: transform .45s ease, box-shadow .45s ease;
}
.lodge:hover { transform: translateY(-6px); box-shadow: var(--shadow-soft); }
.lodge-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .9s ease;
}
.lodge:hover .lodge-photo,
.lodge:focus-visible .lodge-photo { transform: scale(1.06); }
/* přítmí u spodní hrany, aby cedulka nesplývala s fotkou */
.lodge::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(36, 43, 29, .5), transparent 58%);
  pointer-events: none;
}
.lodge:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 4px;
}

/* ----- papírová cedulka ----- */
.lodge-plate {
  position: absolute;
  z-index: 2;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 1.6rem 1.1rem 1.3rem;
  text-align: center;
  background: var(--paper);
  border-radius: 3px;
  box-shadow: 0 20px 44px -22px rgba(36, 43, 29, .85);
  /* druhá, vnitřní linka — jako rám malovaného panelu */
  outline: 1px solid rgba(74, 82, 56, .35);
  outline-offset: -7px;
}
/* růžicový medailon sedí na horní hraně cedulky */
.lodge-rosette {
  position: absolute;
  top: 0;
  left: 50%;
  translate: -50% -50%;
  width: 34px;
  height: 34px;
  padding: 5px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--oxide);
  transition: color .35s ease, rotate .6s ease;
}
.lodge:hover .lodge-rosette { color: var(--moss); rotate: 45deg; }
.lodge-plate h3 {
  font-size: 1.32rem;
  line-height: 1.2;
  margin-bottom: .3rem;
}
.lodge-where {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
}
/* popis se rozbalí, až na kartu najedete */
.lodge-text {
  max-height: 0;
  margin-top: 0;
  opacity: 0;
  overflow: hidden;
  font-size: .89rem;
  line-height: 1.5;
  text-wrap: pretty;
  color: var(--ink-soft);
  transition: max-height .5s ease, opacity .35s ease, margin-top .5s ease;
}
.lodge:hover .lodge-text,
.lodge:focus-visible .lodge-text {
  max-height: 11rem;
  margin-top: .8rem;
  opacity: 1;
}
.lodge-go {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-top: .9rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--oxide);
}
.lodge-go em {
  font-style: normal;
  transition: translate .35s ease;
}
.lodge:hover .lodge-go em { translate: 4px 0; }

@media (max-width: 900px) {
  .lodges { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; }
}
/* Na dotyku není kam najet. Rozbalený popis ale zabral skoro celou kartu
   a zakryl fotku, tak ho na telefonech neukazujeme vůbec — karta vypadá
   stejně jako na počítači v klidovém stavu. Celý popis je na webu objektu. */
@media (hover: none) {
  .lodge-text { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lodge, .lodge-photo, .lodge-text, .lodge-rosette, .lodge-go em { transition: none; }
}

/* ============================================================
   VYBAVENÍ
   ============================================================ */
.amenities-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2.6rem 1.5rem;
  padding-top: 1rem;
}
.amenities-grid li {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: .85rem;
  font-size: .94rem;
  line-height: 1.45;
  color: var(--ink);
}
.amenities-grid svg {
  width: 34px; height: 34px;
  color: var(--moss);
  transition: transform .3s ease, color .3s ease;
}
.amenities-grid li:hover svg {
  transform: translateY(-4px);
  color: var(--oxide);
}
/* Popover s fotkou je taky <span> uvnitř položky, takže ho `.amenities-grid
   li span` ořezávalo na 21ch — proto se jeho vlastní šířka nikdy neprojevila.
   Musí mít vyšší specificitu než ten popisek. */
.amenities-grid li .am-pop { max-width: none; }
.amenities-grid li span {
  max-width: 21ch;
}
.amenities-grid li { position: relative; cursor: default; }
/* fotka po najetí myší */
.am-pop {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  translate: -50% 0;
  width: 220px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  overflow: hidden;
  background: #FDFBF6;
  border: 4px solid #FDFBF6;
  box-shadow: 0 22px 50px -18px rgba(36, 43, 29, .55);
  opacity: 0;
  scale: .9;
  transform-origin: bottom center;
  transition: opacity .3s ease, scale .3s ease;
  pointer-events: none;
  z-index: 20;
}
.am-pop::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  translate: -50% 0;
  border: 6px solid transparent;
  border-top-color: #FDFBF6;
}
.am-pop img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.am-pop-double {
  width: 300px;
  display: flex;
  gap: 3px;
}
.am-pop-double img { width: 50%; }
/* tři fotky vedle sebe — u „Dvě plně vybavené kuchyně".
   Popover je širší a nižší, jinak by z každé fotky zbyl jen úzký pruh. */
.am-pop-triple {
  width: 420px;
  aspect-ratio: 14 / 5;
  display: flex;
  gap: 3px;
}
/* Všechny tři stejně široké. Pozor: nestačí width: 33.333% — jakmile má
   některá fotka jiný poměr stran (třeba na výšku), flexbox ji zmenší jinak
   než ostatní a pruh se rozhodí. `flex: 1 1 0` drží stejnou šířku vždy. */
.am-pop-triple img { flex: 1 1 0; width: auto; min-width: 0; }
.am-pop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-deep);
}
.am-pop-icon svg {
  width: 56px !important;
  height: 56px !important;
  color: var(--moss);
}
/* Wi-Fi: v náhledu je název sítě. Heslo sem schválně nepatří — přečetl by si
   ho kdokoli, kdo web otevře, včetně lidí v dosahu signálu. */
.am-pop-wifi {
  flex-direction: column;
  gap: .35rem;
}
.am-pop-wifi svg {
  width: 34px !important;
  height: 34px !important;
}
.am-pop-wifi b {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--ink);
}
.am-pop-wifi i {
  font-style: normal;
  font-size: .62rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.amenities-grid li:hover .am-pop,
.amenities-grid li:focus-visible .am-pop {
  opacity: 1;
  scale: 1;
}
/* položky s fotkou jdou rozkliknout do velké fotky */
.amenities-grid li.am-zoom { cursor: zoom-in; }
.amenities-grid li.am-zoom:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 8px;
  border-radius: var(--radius);
}
/* lupa v rohu náhledu — napoví, že fotka jde zvětšit */
.am-zoom .am-pop::before {
  content: "";
  position: absolute;
  top: 8px; right: 8px;
  z-index: 2;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(36, 43, 29, .55) center / 13px 13px no-repeat
    url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2EEE2' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='M15.5 15.5 21 21M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
}
@media (hover: none) {
  .am-pop { display: none; } /* na dotykových zařízeních fotky nevyskakují */
}

/* ============================================================
   GALERIE
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(130px, 16vw, 215px);
  grid-auto-flow: dense;
  gap: .9rem;
}
.gallery-item {
  border: 0;
  padding: 0;
  background: var(--paper-deep);
  cursor: pointer;
  overflow: hidden;
  border-radius: var(--radius);
  position: relative;
}
/* mozaika: velká fotka + akcenty, vzor se opakuje po 12 */
.gallery-item:nth-child(12n + 1) {
  grid-column: span 2;
  grid-row: span 2;
}
.gallery-item:nth-child(12n + 8) {
  grid-column: span 2;
}
.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(21, 26, 15, .28), transparent 40%);
  opacity: 0;
  transition: opacity .45s ease;
  pointer-events: none;
}
.gallery-item:hover::after { opacity: 1; }
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 3px;
}
.gallery-more-item { display: none; }
.gallery-grid.expanded .gallery-more-item { display: block; }
.gallery-actions { text-align: center; margin-top: 2rem; }
.btn-outline {
  background: transparent;
  color: var(--moss);
  border-color: var(--moss);
  cursor: pointer;
}
.btn-outline:hover {
  background: var(--moss);
  color: #F2EEE2;
}

/* ----- lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(24, 18, 10, .93);
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox[hidden] { display: none; }
.lb-img {
  max-width: min(88vw, 1400px);
  max-height: 86vh;
  border-radius: var(--radius);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6);
}
.lb-close, .lb-prev, .lb-next {
  position: fixed;
  background: rgba(243, 238, 228, .08);
  color: #F3EEE4;
  border: 1px solid rgba(243, 238, 228, .25);
  border-radius: 50%;
  width: 52px; height: 52px;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s ease;
}
.lb-close:hover, .lb-prev:hover, .lb-next:hover {
  background: rgba(243, 238, 228, .22);
}
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; translate: 0 -50%; }
.lb-next { right: 1.4rem; top: 50%; translate: 0 -50%; }
.lb-counter {
  position: fixed;
  bottom: 1.3rem;
  left: 50%;
  translate: -50% 0;
  color: rgba(243, 238, 228, .75);
  font-size: .9rem;
  letter-spacing: .12em;
}
/* jediná fotka — šipky ani počítadlo nemají co ukazovat */
.lightbox.lb-single .lb-prev,
.lightbox.lb-single .lb-next,
.lightbox.lb-single .lb-counter { display: none; }

/* ============================================================
   PRO AKCE
   ============================================================ */
.events-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: center;
}
.events-photo img {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.events-text .section-title { margin-bottom: 1rem; }
.events-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
  display: grid;
  gap: .55rem;
}
.events-list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: .98rem;
}
.events-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .62em;
  width: .55em; height: .55em;
  border: 1.5px solid var(--oxide);
  rotate: 45deg;
}

/* ============================================================
   OKOLÍ
   ============================================================ */
.tips-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.8rem;
}
.tip-card {
  background: #FDFBF6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.9rem 1.6rem;
  display: grid;
  grid-template-rows: auto auto 1fr auto; /* foto, nadpis, text, meta dole */
  gap: .7rem;
  color: var(--ink);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
}
.tip-photo {
  margin: -1.9rem -1.9rem .6rem;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.tip-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.tip-card:hover .tip-photo img { transform: scale(1.05); }
.tip-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-soft);
  border-color: var(--moss);
}
.tip-card h3 { font-size: 1.45rem; }
.tip-card p { font-size: .95rem; color: var(--ink-soft); }
.tip-meta {
  margin-top: .4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
}
.tip-maps {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .3s ease, transform .3s ease;
}
.tip-card:hover .tip-maps { opacity: 1; transform: none; }
@media (hover: none) {
  .tip-maps { opacity: .85; transform: none; }
}
/* kreslená šipka místo znaku ↗ — ten iOS vykresluje jako barevnou emoji */
.tip-arrow {
  width: 1em;
  height: 1em;
  flex: none;
  margin-left: .1em;
  translate: 0 .04em;
}

/* ============================================================
   CENÍK
   Sazebník čte se jako účetní kniha: v levém sloupci vytesaná
   číslice počtu nocí, vpravo částka. Řádky jsou tabulka, protože
   ceny tabulková data opravdu jsou.
   ============================================================ */
.rates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.8rem;
  align-items: start;
}
/* ----- rám ve stylu malované truhly -----
   Lišta v mechové zeleni s dvojitou linkou a růžicemi v rozích i uprostřed
   horní hrany — motiv malovaného nábytku, který v Polnačce opravdu stojí.
   Používají ho panely sazebníku i blok doplňkových služeb. */
.rate-panel,
.extras {
  position: relative;
  padding: 30px;
  background:
    repeating-linear-gradient(96deg, rgba(0,0,0,.05) 0 3px, transparent 3px 11px),
    linear-gradient(160deg, #56603F, #414A31);
  border-radius: 3px;
  box-shadow: 0 24px 46px -28px rgba(38,45,26,.6);
}
.rate-panel::before, .rate-panel::after,
.extras::before, .extras::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border: 1px solid rgba(242,238,226,.55);
}
.rate-panel::before, .extras::before { inset: 9px; }
.rate-panel::after,  .extras::after  { inset: 14px; border-color: rgba(242,238,226,.3); }
.frame-rose {
  position: absolute;
  width: 22px; height: 22px;
  color: rgba(248,244,232,.92);
  z-index: 2;
}
.frame-rose-tl { top: 3px; left: 3px; }
.frame-rose-tr { top: 3px; right: 3px; }
.frame-rose-bl { bottom: 3px; left: 3px; }
.frame-rose-br { bottom: 3px; right: 3px; }
.frame-rose-top {
  top: 3px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 26px;
  color: rgba(248,244,232,.95);
}
/* papír uvnitř rámu */
.rate-paper {
  position: relative;
  padding: 2.1rem 2rem 2.3rem;
  background: linear-gradient(#FCF9F0, #F6F1E3);
  box-shadow: inset 0 2px 10px rgba(53,60,38,.14);
}
.rate-head h3 {
  font-family: var(--font-script);
  font-size: clamp(1.75rem, 2.9vw, 2.1rem);
  line-height: 1.2;
  padding-bottom: .06em;
  margin-bottom: .4rem;
}
.rate-meta {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--moss);
}
.rate-min {
  margin: 1.1rem 0 1.5rem;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: .88rem;
  font-style: italic;
  color: var(--ink-soft);
}

/* ----- sazebník ----- */
.rate-table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.rate-table thead th {
  padding: 0 0 .55rem;
  font-size: .67rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: right;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.rate-table thead th:first-child { text-align: left; }
.rate-table tbody th,
.rate-table tbody td {
  padding: .62rem .2rem;
  border-bottom: 1px solid rgba(36, 43, 29, .09);
  transition: background-color .25s ease;
}
.rate-table tbody tr:last-child th,
.rate-table tbody tr:last-child td { border-bottom: 0; }
.rate-table tbody th {
  text-align: left;
  font-weight: 400;
  font-size: .92rem;
  color: var(--ink-soft);
  white-space: nowrap;
  padding-left: .55rem;
}
/* vytesaná číslice — stejné písmo jako nadpis v hero */
.rate-n {
  font-family: var(--font-carved);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--moss);
  margin-right: .45rem;
  transition: color .25s ease;
}
.rate-table tbody td { text-align: right; }
.rate-per {
  font-size: .85rem;
  color: var(--ink-soft);
  white-space: nowrap;
}
.rate-total {
  font-weight: 600;
  white-space: nowrap;
  padding-right: .55rem !important;
}
/* měna drží krok s číslem, ale nepřetahuje ho na sebe */
.rate-cur {
  margin-left: .3em;
  font-size: .78em;
  font-weight: 400;
  color: var(--ink-soft);
}
.rate-per .rate-cur { font-size: .85em; }
/* zvýraznění řádku pod myší i při procházení klávesnicí */
.rate-table tbody tr:hover th,
.rate-table tbody tr:hover td { background: rgba(74, 82, 56, .06); }
.rate-table tbody tr:hover .rate-n { color: var(--oxide); }

/* ----- sváteční pobyty ----- */
.rate-sub {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin: 1.9rem 0 .4rem;
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--oxide);
}
.rate-sub::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.rate-name {
  text-align: left !important;
  font-size: .95rem;
  color: var(--ink);
}
.rate-table-feast .rate-total { color: var(--oxide); }

/* ----- celá chalupa: nabídka na míru ----- */
.rate-whole {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  margin-top: 1.8rem;
  background: #FDFBF6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.rate-whole-photo { position: relative; }
.rate-whole-photo img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  object-position: center 62%;
}
.rate-whole-text {
  align-self: center;
  padding: clamp(1.8rem, 3.4vw, 2.8rem);
}
.rate-whole-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--moss);
  margin-bottom: .7rem;
}
.rate-whole-text h3 {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.1vw, 2.25rem);
  line-height: 1.2;
  padding-bottom: .06em;
  margin-bottom: .8rem;
}
.rate-whole-text p {
  max-width: 52ch;
  font-size: .97rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}

/* ----- doplňkové služby ----- */
.extras { margin-top: 1.8rem; }
.extras .rate-paper { padding: clamp(1.8rem, 3.2vw, 2.6rem); }
.extras-head { margin-bottom: 1.6rem; }
.extras-title {
  font-family: var(--font-script);
  font-size: clamp(1.8rem, 3.1vw, 2.25rem);
  line-height: 1.2;
  padding-bottom: .06em;
  margin-bottom: .5rem;
}
.extras-lead {
  max-width: 56ch;
  font-size: .95rem;
  color: var(--ink-soft);
}
/* Skupiny jdou pod sebou přes celou šířku, ale položky uvnitř každé skupiny
   se sázejí do dvou sloupců — jinak by u nestejně velkých skupin (Wellness má
   dvě položky, Další služby pět) zůstala vlevo díra přes půl bloku. */
.extras-group + .extras-group { margin-top: .5rem; }
.extras-group .rate-sub { margin-top: 1.5rem; }
.extras-group:first-child .rate-sub { margin-top: 0; }
.ex-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 3rem;
  align-items: start;
}
.ex-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: .4rem 1.4rem;
  padding: .95rem 0;
  border-bottom: 1px solid rgba(36, 43, 29, .09);
}
.ex-item:last-child { border-bottom: 0; }
.ex-main { flex: 1 1 14rem; }
.ex-name {
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: .18rem;
}
.ex-desc {
  font-size: .86rem;
  line-height: 1.5;
  color: var(--ink-soft);
}
.ex-desc a { text-decoration: underline; text-underline-offset: 3px; }
.ex-prices {
  flex: 0 0 auto;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.ex-row {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: .8rem;
}
.ex-row + .ex-row { margin-top: .2rem; }
.ex-row dt {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  white-space: nowrap;
}
.ex-row dd {
  margin: 0;
  min-width: 6.2rem;
  text-align: right;
  font-weight: 600;
  white-space: nowrap;
}
.ex-row-free dd { color: var(--oxide); font-style: italic; }
.extras-foot {
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px dashed var(--line);
  display: grid;
  gap: .7rem;
  font-size: .9rem;
  color: var(--ink-soft);
}
.extras-foot strong { color: var(--ink); font-weight: 600; }
.extras-foot a { text-decoration: underline; text-underline-offset: 3px; }
.ex-fee { font-style: italic; }

.rate-note {
  max-width: 68ch;
  margin: 2.4rem auto 0;
  text-align: center;
  font-size: .9rem;
  font-style: italic;
  color: var(--ink-soft);
}
.rate-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* řádky sazebníku naskakují po sobě, až se panel objeví */
.rate-panel.visible .rate-table tbody tr {
  animation: rate-row .55s ease both;
}
.rate-panel.visible .rate-table tbody tr:nth-child(2) { animation-delay: .05s; }
.rate-panel.visible .rate-table tbody tr:nth-child(3) { animation-delay: .1s; }
.rate-panel.visible .rate-table tbody tr:nth-child(4) { animation-delay: .15s; }
.rate-panel.visible .rate-table tbody tr:nth-child(5) { animation-delay: .2s; }
.rate-panel.visible .rate-table tbody tr:nth-child(6) { animation-delay: .25s; }
@keyframes rate-row {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   KONTAKT + MAPA
   ============================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}
.contact-block {
  font-style: normal;
  margin-bottom: 1.8rem;
  display: grid;
  gap: 1rem;
}
.contact-block a { font-weight: 500; }
.contact-block a:hover { text-decoration: underline; text-underline-offset: 3px; }
.btn-large { padding: 1rem 2.3rem; font-size: 1rem; }
.contact-note {
  margin-top: 1rem;
  font-size: .88rem;
  color: var(--ink-soft);
  max-width: 44ch;
}
/* rezervační kalendář */
.cal {
  background: #FDFBF6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem 1.1rem;
  max-width: 440px;
}
/* pole na domácí zvíře — odkryjí se po zaškrtnutí */
.bf-pet-box {
  display: grid;
  /* obě pole musí uvézt celý popisek — u užšího se text ořezával */
  grid-template-columns: 3fr 2fr;
  gap: .6rem;
  padding: .8rem;
  margin-top: -.2rem;
  background: rgba(74, 82, 56, .06);
  border-radius: calc(var(--radius) - 4px);
}
@media (max-width: 480px) {
  .bf-pet-box { grid-template-columns: 1fr; }
}

/* rámeček pro vložený formulář od e-chalupy.cz (zobrazí se až po zapnutí) */
.cal-form-embed {
  margin-top: 1.4rem;
  max-width: 440px;
}
.cal-form-embed iframe { width: 100%; border: 0; }

/* přepínač části objektu nad kalendářem */
.cal-switch {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: .9rem;
  background: var(--paper-deep, #EAE4D5);
  border-radius: calc(var(--radius) - 2px);
}
.cal-switch-btn {
  font-family: var(--font-body);
  font-size: .74rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: .01em;
  color: var(--ink-soft);
  background: none;
  border: 0;
  border-radius: calc(var(--radius) - 6px);
  padding: .5rem .3rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.cal-switch-btn:hover { color: var(--ink); }
.cal-switch-btn.is-active {
  background: var(--moss);
  color: #F2EEE2;
  box-shadow: 0 4px 10px -6px rgba(36, 43, 29, .6);
}
.cal-switch-btn:focus-visible {
  outline: 2px solid var(--moss);
  outline-offset: 2px;
}
.cal-note {
  font-size: .8rem;
  line-height: 1.5;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.cal-head strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: .02em;
}
.cal-head button {
  width: 34px; height: 34px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.cal-head button:hover:not(:disabled) {
  background: var(--moss);
  border-color: var(--moss);
  color: #F2EEE2;
}
.cal-head button:disabled { opacity: .35; cursor: not-allowed; }
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  text-align: center;
}
.cal-dow {
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--moss);
  padding: .3rem 0 .45rem;
}
.cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  border-radius: 4px;
  background: rgba(233, 228, 209, .5);
}
.cal-day-empty { background: none; }
.cal-day-past { opacity: .35; }
.cal-day-booked {
  background: rgba(140, 59, 46, .16);
  color: var(--ink-soft);
  text-decoration: line-through;
}
.cal-day-today { box-shadow: inset 0 0 0 1.5px var(--moss); font-weight: 600; }
.cal-day-free { cursor: pointer; transition: background .2s ease; }
.cal-day-free:hover { background: rgba(74, 82, 56, .18); }
.cal-day-sel {
  background: var(--moss) !important;
  color: #F2EEE2;
  font-weight: 600;
}
.cal-legend {
  display: flex;
  gap: 1.4rem;
  margin-top: .9rem;
  padding-top: .8rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  color: var(--ink-soft);
}
.cal-legend span { display: inline-flex; align-items: center; gap: .45rem; }
.cal-dot {
  width: 11px; height: 11px;
  border-radius: 3px;
  display: inline-block;
}
.cal-dot-free { background: rgba(233, 228, 209, .9); border: 1px solid var(--line); }
.cal-dot-booked { background: rgba(140, 59, 46, .45); }
.cal-dot-sel { background: var(--moss); }

/* poptávkový formulář pod kalendářem */
.cal-form {
  max-width: 440px;
  margin-top: 1.1rem;
  background: #FDFBF6;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.cal-form[hidden] { display: none; }
.cal-form-term {
  font-size: .92rem;
  margin-bottom: .9rem;
}
.cal-form-term strong { color: var(--moss); }
.cal-form-fields {
  display: grid;
  gap: .6rem;
  margin-bottom: .9rem;
}
.bf-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
.bf-check {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  font-size: .85rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.bf-check input {
  width: auto !important;
  margin-top: .25rem;
  accent-color: var(--moss);
  cursor: pointer;
}
.bf-captcha {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .88rem;
  padding: .7rem .9rem;
  background: var(--paper-deep);
  border-radius: var(--radius);
}
.bf-captcha input { max-width: 80px; }
.bf-captcha strong { color: var(--moss); }
/* Past na roboty: pole musí zůstat v HTML, ale nikdo ho nesmí vidět.
   Schválně ne display:none — část robotů skryté pole pozná a vynechá. */
.bf-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.cal-form-thanks {
  margin-top: .4rem;
  padding: .9rem 1rem;
  background: rgba(74, 82, 56, .12);
  border-left: 3px solid var(--moss);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: .93rem;
  color: var(--ink);
}
.cal-form select,
.cal-form input,
.cal-form textarea {
  font-family: var(--font-body);
  font-size: .93rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .65rem .8rem;
  width: 100%;
  resize: vertical;
}
.cal-form select { cursor: pointer; color: var(--ink); }
.cal-form select:invalid { color: rgba(85, 88, 68, .65); }
.cal-form select:focus,
.cal-form input:focus,
.cal-form textarea:focus {
  outline: 2px solid var(--moss);
  outline-offset: -1px;
}
.cal-form input::placeholder,
.cal-form textarea::placeholder { color: rgba(85, 88, 68, .65); }
.cal-form .btn { width: 100%; text-align: center; }
.cal-form-note {
  margin-top: .8rem;
  font-size: .8rem;
  color: var(--ink-soft);
}

.contact-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line);
  align-self: center; /* mapa svisle uprostřed sekce */
}
.contact-map iframe {
  display: block;
  width: 100%;
  height: 500px;
  border: 0;
}

/* ============================================================
   DALŠÍ CHALUPY — placeholder karty
   ============================================================ */
.section-head-center {
  text-align: center;
}
.section-head-center .section-eyebrow { justify-content: center; }
/* podnadpis má omezenou šířku, tak ho nad ním musíme sami vystředit */
.section-head-center .section-lead { margin-inline: auto; }

/* ============================================================
   PATIČKA
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(243, 238, 228, .85);
  padding: 3.5rem 0;
  text-align: center;
}
.footer-inner { display: grid; gap: .8rem; justify-items: center; }
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-script);
  font-size: 1.95rem;
  font-weight: 600;
  color: #F3EEE4;
}
.footer-note { font-size: .95rem; opacity: .8; }
.footer-operator {
  max-width: 60ch;
  font-size: .82rem;
  opacity: .55;
  margin-top: .15rem;
}
.footer-operator strong { font-weight: 600; }
.footer-social {
  display: flex;
  gap: .9rem;
  margin: .3rem 0;
}
.footer-social a {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 238, 228, .3);
  border-radius: 50%;
  color: rgba(243, 238, 228, .85);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.footer-social a:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.footer-social svg { width: 20px; height: 20px; }
.footer-credit { font-size: .85rem; opacity: .6; }
.footer-credit a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================
   PRÁVNÍ STRÁNKA (zásady zpracování osobních údajů)
   ============================================================ */
.legal-page { padding: 9rem 0 5rem; }
.legal { max-width: 78ch; margin-inline: auto; }
.legal-lead {
  margin-bottom: 2.6rem;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
}
.legal-updated {
  display: block;
  margin-top: 1rem;
  font-size: .85rem;
  font-style: italic;
}
.legal h2 {
  display: flex;
  align-items: baseline;
  gap: .8rem;
  font-size: 1.35rem;
  margin: 2.8rem 0 1rem;
}
.legal h2 .legal-num {
  flex: none;
  font-family: var(--font-carved);
  font-size: 1.5rem;
  color: var(--moss);
}
.legal h3 {
  font-size: 1.05rem;
  margin: 1.8rem 0 .5rem;
}
.legal p { margin-bottom: 1rem; }
.legal ul, .legal ol { margin: 0 0 1.2rem 1.3rem; }
.legal li { margin-bottom: .5rem; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal-box {
  background: #FDFBF6;
  border: 1px solid var(--line);
  border-left: 3px solid var(--moss);
  border-radius: var(--radius);
  padding: 1.5rem 1.7rem;
  margin-bottom: 1.4rem;
}
.legal-box p:last-child { margin-bottom: 0; }
.legal-todo {
  border-left-color: var(--oxide);
  font-size: .92rem;
  color: var(--ink-soft);
}
.legal-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--moss);
}
.legal-back:hover { color: var(--oxide); }
/* tabulka lhůt */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.4rem;
  font-size: .93rem;
}
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: .7rem .8rem .7rem 0;
  border-bottom: 1px solid var(--line);
}
.legal-table thead th {
  font-size: .68rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.legal-table tbody th { font-weight: 600; padding-right: 1.4rem; }

@media (max-width: 640px) {
  .legal-page { padding: 7rem 0 3.5rem; }
  .legal h2 { font-size: 1.2rem; }
  .legal-table, .legal-table tbody, .legal-table tr, .legal-table td, .legal-table th { display: block; }
  .legal-table thead { display: none; }
  .legal-table tr { padding: .6rem 0; border-bottom: 1px solid var(--line); }
  .legal-table th, .legal-table td { border: 0; padding: .15rem 0; }
}

/* ============================================================
   COOKIES
   ============================================================ */
.footer-volby {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.footer-volby:hover { color: #F2EEE2; }

.pn-bar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 250;
  background: var(--paper);
  border-top: 1px solid var(--line);
  box-shadow: 0 -18px 50px -25px rgba(36, 43, 29, .5);
  animation: pn-rise .45s ease both;
}
.pn-bar[hidden] { display: none; }
@keyframes pn-rise {
  from { transform: translateY(100%); }
  to   { transform: none; }
}
.pn-bar-inner {
  width: min(var(--container), 100% - 3rem);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem 0;
  flex-wrap: wrap;
}
.pn-bar-inner p { font-size: .93rem; max-width: 62ch; }
.pn-bar-actions {
  display: flex;
  align-items: center;
  gap: .7rem;
  flex-wrap: wrap;
}
.pn-link {
  background: none;
  border: 0;
  padding: .4rem .2rem;
  font: inherit;
  font-size: .88rem;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.pn-link:hover { color: var(--moss); }

.pn-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(21, 26, 15, .55);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.pn-modal[hidden] { display: none; }
.pn-box {
  position: relative;
  background: var(--paper);
  border-radius: var(--radius);
  max-width: 620px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 2.4rem 2.6rem 2.2rem;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
  animation: pn-pop .35s ease both;
}
@keyframes pn-pop {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}
.pn-box h3 {
  font-size: 1.9rem;
  margin-bottom: .9rem;
}
.pn-intro {
  font-size: .95rem;
  color: var(--ink-soft);
  margin-bottom: 1.6rem;
}
.pn-close {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--ink-soft);
  font-size: .95rem;
  cursor: pointer;
  transition: background .25s ease, color .25s ease;
}
.pn-close:hover { background: var(--paper-deep); color: var(--ink); }

.pn-cats { display: grid; gap: 1.1rem; margin-bottom: 1.8rem; }
.pn-cat {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.25rem;
  background: #FDFBF6;
}
.pn-cat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: .35rem;
}
.pn-cat-head strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
}
.pn-cat p { font-size: .88rem; color: var(--ink-soft); line-height: 1.6; }

/* přepínač */
.switch { position: relative; display: inline-block; flex: none; }
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%; height: 100%;
  margin: 0;
  cursor: pointer;
}
.switch span {
  display: block;
  width: 46px; height: 26px;
  border-radius: 13px;
  background: #CFC9B6;
  transition: background .25s ease;
  pointer-events: none;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  transition: translate .25s ease;
}
.switch input:checked + span { background: var(--moss); }
.switch input:checked + span::after { translate: 20px 0; }
.switch input:focus-visible + span { outline: 2px solid var(--moss); outline-offset: 2px; }
.switch-locked span { opacity: .55; }
.switch-locked input { cursor: not-allowed; }

.pn-box-actions {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .pn-box { padding: 1.8rem 1.4rem 1.6rem; }
  .pn-bar-inner { padding: 1rem 0; }
  .pn-box-actions .btn { width: 100%; text-align: center; }
}

/* ============================================================
   ANIMACE PŘI SCROLLU
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html, html.smooth { scroll-behavior: auto; }
  .hero-bg img { animation: none; }
  .scroll-hint span { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .rate-panel.visible .rate-table tbody tr { animation: none; }
}

/* ============================================================
   RESPONSIVITA
   ============================================================ */
@media (max-width: 960px) {
  .header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.1rem;
  }
  /* Na mobilu je uprostřed hlavičky logo Zlaté Jeseníky, ne nápis Polnačka
     (ten je hned pod ním v hero — nemá tam být dvakrát).

     Logo je vystředěné čistě flexboxem, ne přes position:absolute + translate.
     Absolutní centrování uvnitř fixní hlavičky se při pinch zoomu na telefonu
     rozjelo — prohlížeč přepočítává fixed prvky vůči vizuálnímu viewportu
     a po odzoomování logo zůstalo posunuté, dokud se stránka nenačetla znovu.
     Krajní prvky mají shodné `flex: 1 1 0`, takže střed vychází přesně. */
  .header-inner .mobile-brand {
    display: inline-flex;
    position: static;
    flex: 0 0 auto;
    translate: none;
    margin: 0;
  }
  .mobile-brand .brand-rosette,
  .mobile-brand > span { display: none; }
  .mobile-brand .brand-logo {
    display: block;
    height: 52px;
    width: auto;
  }
  /* CZ/EN úplně vlevo */
  .header-inner > .lang-switch {
    position: static;
    translate: none;
    flex: 1 1 0;
    margin: 0;
  }
  .nav-toggle {
    flex: 1 1 0;
    align-items: flex-end;
  }
  .main-nav .nav-brand { display: none !important; }
  .nav-side { display: contents; }
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(320px, 82vw);
    background: var(--paper);
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 5.5rem 2rem 2rem;
    box-shadow: -20px 0 60px -30px rgba(46,37,25,.4);
    transform: translateX(105%);
    transition: transform .35s ease;
    z-index: -1;
  }
  .site-header.nav-open .main-nav { transform: none; }
  .main-nav a {
    color: var(--ink) !important;
    font-size: 1.1rem;
    padding: .8rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
}
@media (max-width: 960px) {
  .about-grid,
  .events-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .about-photos { max-width: 520px; }
  .events-photo { order: -1; }
  .rooms-grid { grid-template-columns: 1fr 1fr; }
  .rates { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
  .extras { max-width: 580px; margin-inline: auto; }
  .ex-list { grid-template-columns: 1fr; gap: 0; }
  .rate-whole { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
  .rate-whole-photo img { min-height: 0; aspect-ratio: 16 / 9; }
  .amenities-grid { grid-template-columns: repeat(3, 1fr); }
  .tips-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: clamp(130px, 24vw, 210px); }
}
@media (max-width: 640px) {
  .section { padding: 4.5rem 0; }
  /* Na telefonech je obrazovka nízká — hero se musí vejít i s pásem faktů,
     jinak by přetekl a pás by zůstal pod okrajem displeje. */
  /* Na telefonu drží název nahoře nad hřebenem a tlačítka klesnou až dolů
     k autu — mezi nimi tak zůstane vidět celá chalupa. Místo posunu
     transformem se obsah roztáhne přes celou výšku hero a tlačítka odsune
     `margin-top: auto`; hero si tak dál měří výšku ve svém (viz --hero-h). */
  /* na telefonu se vejde míň, tak je spodní odsazení menší */
  .hero-content { padding: 15vh 1.5rem 2rem; }
  /* Pomalé oddalování fotky patří na velkou obrazovku. Na telefonu se při
     scrollu mísilo s prací prohlížeče a působilo to jako trhání. */
  .hero-bg img { animation: none; transform: none; }
  .hero-rosette { margin-bottom: 1.4rem; }
  .hero-eyebrow { margin-bottom: 1.1rem; }
  .hero-title { margin-bottom: 2rem; }
  .hero-sub { line-height: 1.65; margin-bottom: 1.8rem; }
  .hero-actions { gap: .7rem; }
  .hero-actions .btn { width: 100%; max-width: 320px; }
  .hero-facts { padding: .9rem 1rem; font-size: .78rem; gap: 1.2rem; }
  .rooms-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  /* Na telefonu je lišta rámu užší, ať zbyde místo na obsah. */
  .rate-panel, .extras { padding: 20px 14px 16px; }
  .rate-panel::before, .extras::before { inset: 6px; }
  .rate-panel::after,  .extras::after  { inset: 10px; }
  .frame-rose { width: 17px; height: 17px; top: 2px; }
  .frame-rose-tl, .frame-rose-tr { top: 2px; }
  .frame-rose-bl, .frame-rose-br { top: auto; bottom: 2px; }
  .frame-rose-tl, .frame-rose-bl { left: 2px; }
  .frame-rose-tr, .frame-rose-br { right: 2px; }
  .frame-rose-top { width: 20px; height: 20px; }
  .rate-paper { padding: 1.7rem 1.3rem 1.9rem; }
  .extras .rate-paper { padding: 1.7rem 1.3rem 1.9rem; }
  /* Na úzkém displeji se cena schová pod název, ne vedle něj.
     `.ex-main` musí zpátky na `flex: 0 0 auto` — ve sloupcovém směru by se
     z jeho desktopového `flex-basis: 14rem` stala VÝŠKA 14 rem a mezi popisem
     a cenou zela díra přes půl obrazovky. Ze stejného důvodu tu nesmí zůstat
     `flex-wrap: wrap`, jinak se obsah zalamuje do dalšího sloupce. */
  .ex-item {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: .55rem;
  }
  .ex-main { flex: 0 0 auto; }
  .ex-prices { width: 100%; }
  .ex-row { justify-content: space-between; }
  .ex-row dd { min-width: 0; }
  .rate-table thead th { font-size: .6rem; letter-spacing: .1em; }
  .rate-n { font-size: 1.3rem; margin-right: .3rem; }
  .rate-table tbody th { font-size: .85rem; padding-left: .2rem; }
  .rate-per { font-size: .78rem; }
  .rate-total { font-size: .95rem; padding-right: .2rem !important; }
  .contact-map iframe { height: 320px; }
  .about-photos { padding-right: 1rem; }
  .gallery-grid { gap: .6rem; }
  .lb-prev, .lb-next { width: 42px; height: 42px; }
  .lb-prev { left: .6rem; }
  .lb-next { right: .6rem; }
}
