/* Penzion U Hyklů — mobile-first, bez frameworku (globální styly = jediný „main“ CSS soubor) */
:root {
  --color-primary: #7a1e2e;
  --color-bg: #ffffff;
  --color-bg-alt: #f9f6f2;
  --color-header-bg: #f5f0eb;
  /* Stejný odstín jako hover položky v menu (neprůhledný — submenu neprosvítá na tmavý obsah) */
  --color-nav-hover-bg: #ebe4e0;
  --color-text: #2a2a2a;
  --color-muted: #5c5c5c;
  --font-heading: "Jost", system-ui, sans-serif;
  --font-body: "Jost", system-ui, sans-serif;
  --max-width: 1360px;
  --header-h: 4.25rem;
  --shadow: 0 2px 12px rgba(42, 42, 42, 0.08);

  /*
   * Standard mezer (sekce / obsah):
   * --page-padding-* = vnější odsazení .content-wrap, patičky a hlavičky (sjednoceno mobil + desktop)
   * --content-box-padding-* = vnitřní padding bílých karet
   * --section-gap-after-hero = mezera pod úzkým „page hero“ pruhem před prvním .content-wrap
   * --content-wrap-bottom = spodní padding hlavního sloupce před patičkou
   */
  --page-padding-x: 1.25rem;
  --page-padding-y-block: 1.5rem;
  --content-wrap-bottom: 3rem;
  --section-gap-after-hero: 1.25rem;
  --content-box-padding-x: 1.25rem;
  --content-box-padding-y: 1.65rem;
  --section-alt-pad-top: 2rem;
  --section-alt-pad-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

@media (min-width: 768px) {
  :root {
    --page-padding-x: 1.5rem;
    --content-box-padding-x: 1.5rem;
    --content-box-padding-y: 1.75rem;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  padding-top: var(--header-h);
  overflow-x: hidden;
}

body.modal-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  vertical-align: middle;
}

iframe,
video {
  max-width: 100%;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  color: var(--color-primary);
  line-height: 1.25;
  font-weight: 700;
}

h1 {
  font-size: clamp(calc(1.75rem + 2px), 4vw, calc(2.25rem + 2px));
  margin-top: 0;
}

h2 {
  font-size: clamp(calc(1.35rem + 2px), 3vw, calc(1.65rem + 2px));
}

.content-box > h2 {
  margin-top: 0;
  margin-bottom: 1rem;
}

.content-box > h2.section-heading {
  margin-bottom: 1.75rem;
}

h3 {
  font-size: calc(1.15rem + 2px);
}

a {
  color: var(--color-primary);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.5rem 1rem;
  background: var(--color-primary);
  color: #fff;
  z-index: 2000;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Header & nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--color-header-bg);
  box-shadow: var(--shadow);
  min-height: var(--header-h);
}

.site-header__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0.65rem var(--page-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  box-sizing: border-box;
}

/* Logo v horní liště (mobil i desktop) — není uvnitř vysunutého menu */
.site-logo.site-header__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.site-logo.site-header__logo img {
  display: block;
  max-height: 48px;
  width: auto;
  max-width: min(200px, 52vw);
  object-fit: contain;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 4px;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.nav-toggle__bar {
  display: block;
  height: 2px;
  width: 1.5rem;
  background: var(--color-primary);
  margin: 0 auto;
}

.site-nav {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-header-bg);
  padding: 1rem var(--page-padding-x) 2rem;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.site-nav.is-open {
  transform: translateX(0);
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.site-nav__list a {
  display: block;
  padding: 0.65rem 0.5rem;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 400;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.9rem;
}

.site-nav__list a:hover,
.site-nav__list a:focus-visible {
  background: var(--color-nav-hover-bg);
}

.site-nav__list a.is-active {
  font-weight: 700;
  color: var(--color-primary);
}

.site-nav__item--has-sub.is-active-branch > a:first-of-type {
  font-weight: 700;
  color: var(--color-primary);
}

.site-nav__sub {
  list-style: none;
  margin: 0.15rem 0 0;
  padding: 0 0 0.35rem 0.85rem;
  border-left: 0;
}

.site-nav__sub li {
  margin: 0;
}

.site-nav__sub a {
  padding: 0.45rem 0.5rem;
  font-size: 0.82rem;
}

/* Objednávka v podmenu — stejný styl jako ostatní odkazy (mobil i desktop) */
a.site-nav__cta {
  display: block;
  margin-top: 0.2rem;
  background: transparent;
  color: var(--color-text) !important;
  text-align: left;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.82rem;
  border-radius: 0;
  padding: 0.45rem 0.5rem;
}

a.site-nav__cta:hover,
a.site-nav__cta:focus-visible {
  filter: none;
  background: var(--color-nav-hover-bg);
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }

  /*
   * Celá výška lišty = hover zóna pro <li> — jinak mezera pod textem odkazu patří hlavičce,
   * ale už ne položce a submenu se zavře (kurzor „propadne“ na obsah stránky).
   */
  .site-header__inner {
    justify-content: flex-start;
    gap: 0;
    align-items: stretch;
    min-height: var(--header-h);
  }

  .site-logo.site-header__logo {
    margin-right: auto;
    align-self: center;
  }

  .site-logo.site-header__logo img {
    max-height: 56px;
    max-width: 220px;
  }

  .site-nav {
    position: static;
    transform: none !important;
    padding: 0;
    overflow: visible;
    background: transparent;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: flex-end;
    flex: 1;
    gap: 0.5rem 1.25rem;
    align-self: stretch;
  }

  .site-nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    justify-content: flex-end;
    gap: 0.15rem 0.5rem;
    align-self: stretch;
  }

  .site-nav__list > li {
    display: flex;
    align-items: stretch;
  }

  .site-nav__list > li > a {
    display: flex;
    align-items: center;
    padding: 0.4rem 0.55rem;
    font-size: 0.82rem;
    box-sizing: border-box;
  }

  .site-nav__item--has-sub {
    position: relative;
  }

  .site-nav__sub {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 0;
    margin-left: 0;
    padding: 0.35rem 0 0.4rem;
    min-width: 12rem;
    border-left: 0;
    background: var(--color-nav-hover-bg);
    border: 0;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: none;
    transition: opacity 0.15s ease, visibility 0.15s;
    z-index: 1100;
  }

  .site-nav__item--has-sub:hover .site-nav__sub,
  .site-nav__item--has-sub:focus-within .site-nav__sub {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  .site-nav__sub a {
    padding: 0.45rem 0.9rem;
    font-size: 0.72rem;
  }

  .site-nav__sub a:hover,
  .site-nav__sub a:focus-visible {
    background: rgba(122, 30, 46, 0.09);
  }

  a.site-nav__cta {
    margin: 0.35rem 0.5rem 0.45rem;
    padding: 0.45rem 0.75rem !important;
    font-size: 0.72rem;
  }

  .site-nav__sub a.site-nav__cta:hover,
  .site-nav__sub a.site-nav__cta:focus-visible {
    background: rgba(122, 30, 46, 0.09);
  }
}

/* Main layout */
.site-main {
  min-height: 50vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

/* Úzký hero pruh na všech podstránkách (kromě úvodu — řídí se v PHP) */
.page-hero {
  background: var(--color-primary);
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
}

.page-hero__inner {
  max-width: min(var(--max-width), 100%);
  margin: 0 auto;
  padding: clamp(0.65rem, 1.5vw, 0.95rem) var(--page-padding-x);
  min-height: clamp(110px, 12vh, 150px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.35rem;
  box-sizing: border-box;
}

.page-hero__title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(calc(1.45rem + 2px), 3.2vw, calc(1.85rem + 2px));
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.page-hero__perex {
  margin: 0;
  max-width: 42rem;
  font-size: clamp(0.9rem, 1.8vw, 1rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.92);
}

.content-wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--page-padding-y-block) var(--page-padding-x) var(--content-wrap-bottom);
  width: 100%;
  box-sizing: border-box;
}

.page-hero + .content-wrap {
  padding-top: var(--section-gap-after-hero);
}

.content-box {
  background: var(--color-bg);
  padding: var(--content-box-padding-y) var(--content-box-padding-x);
  border-radius: 6px;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
  max-width: 100%;
  box-sizing: border-box;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.content-wrap > .content-box:last-child {
  margin-bottom: 0;
}

.content-box--intro .lead {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-primary);
}

.intro-notice {
  padding: 0.85rem 1rem;
  border-left: 4px solid var(--color-primary);
  border-radius: 4px;
  background: var(--color-bg-alt);
}

.signature {
  font-style: italic;
  margin-bottom: 0;
}

.content-box__cta {
  margin-top: 1.75rem;
  margin-bottom: 0;
}

.content-box__cta--tight {
  margin-top: 1.25rem;
}

.content-box--thankyou {
  text-align: center;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.content-box--thankyou > .thankyou-lead {
  font-family: var(--font-heading);
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 600;
  color: var(--color-primary);
  margin: 0 0 0.75rem;
}

.content-box--thankyou > p:not(.thankyou-lead):not(.content-box__cta) {
  margin: 0 0 0.5rem;
}

.content-box--thankyou > .thankyou-note {
  font-size: 0.95rem;
  color: var(--color-muted);
  margin-top: 0.35rem;
}

.thankyou-banner {
  text-align: center;
  padding: 1rem 1.1rem;
  border-radius: 8px;
  margin: 0 0 1.25rem;
}

.thankyou-banner__text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
}

.thankyou-banner__text a {
  color: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.thankyou-banner--success {
  background: #e8f5e9;
  border: 1px solid #81c784;
  color: #1b5e20;
}

.thankyou-banner--warning {
  background: #fff8e1;
  border: 1px solid #ffb74d;
  color: #5d4037;
}

.gallery-empty {
  margin: 0;
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border: 1px dashed rgba(122, 30, 46, 0.22);
  border-radius: 8px;
}

.gallery-empty p {
  margin: 0;
  max-width: 28rem;
  margin-inline: auto;
  line-height: 1.55;
}

.gallery-empty code {
  font-size: 0.92em;
}

/* Stránka Akce / Okolí — flex; Okolí a Svatby 70 / 30; akce.php: seznamy 50/50 přes .akce-layout--split */
.akce-layout {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.akce-layout__main,
.akce-layout__col {
  min-width: 0;
}

.content-box--akce .akce-page-title {
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.content-box--akce .section-heading:not(.akce-page-title) {
  margin-top: 1.35rem;
  margin-bottom: 0.65rem;
}

.content-box--akce .akce-subheading {
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
  font-size: clamp(calc(1.1rem + 2px), 2.2vw, calc(1.25rem + 2px));
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--color-primary);
  line-height: 1.3;
}

.content-box--akce .akce-subheading:first-of-type {
  margin-top: 0.25rem;
}

.akce-divider {
  border: none;
  border-top: 1px solid rgba(122, 30, 46, 0.18);
  margin: 1.5rem 0 1.25rem;
}

.akce-list {
  margin: 0 0 1rem;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.akce-list li + li {
  margin-top: 0.45rem;
}

.akce-outro {
  margin-bottom: 0.5rem;
}

.akce-phone {
  margin: 0 0 0.25rem;
}

.akce-phone a {
  color: var(--color-primary);
  font-weight: 600;
  text-decoration: none;
}

.akce-phone a:hover {
  text-decoration: underline;
}

.akce-foot {
  margin-top: 0.35rem;
  text-align: center;
}

.akce-foot__band {
  border-top: 1px solid rgba(122, 30, 46, 0.18);
  border-bottom: 1px solid rgba(122, 30, 46, 0.18);
  padding: 1rem 0;
  margin-bottom: 1rem;
}

.akce-foot__band .akce-outro {
  margin: 0;
}

.akce-cta-row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.75rem;
}

.akce-cta-row .akce-phone {
  margin: 0;
}

.akce-cta-row .content-box__cta {
  margin: 0;
}

.akce-layout__aside {
  min-width: 0;
}

.akce-aside-photos {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.akce-aside-photos__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.akce-aside-photos__img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.akce-photo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 11rem;
  padding: 1.35rem 1rem;
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--color-muted);
  background: var(--color-bg-alt);
  border: 2px dashed rgba(122, 30, 46, 0.28);
  border-radius: 8px;
}

.akce-photo-placeholder p {
  margin: 0;
  max-width: 16rem;
}

.akce-photo-placeholder code {
  font-size: 0.88em;
}

@media (min-width: 768px) {
  .akce-layout {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-start;
    gap: clamp(1.25rem, 2.5vw, 2rem);
  }

  .akce-layout:not(.akce-layout--split) .akce-layout__main {
    flex: 7 1 0;
    min-width: 0;
  }

  .akce-layout:not(.akce-layout--split) .akce-layout__aside {
    flex: 3 1 0;
    min-width: 0;
  }

  .akce-layout--split .akce-layout__col {
    flex: 1 1 0;
    min-width: 0;
  }

  .akce-photo-placeholder {
    min-height: 14rem;
  }
}

/* Béžová sekce přes celou šířku okna; obsah zarovnaný jako v .content-wrap (max-width + padding) */
.section--alt {
  --section-alt-inline: calc((100vw - min(100vw, var(--max-width))) / 2 + var(--page-padding-x));
  background: var(--color-bg-alt);
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  box-sizing: border-box;
  padding: var(--section-alt-pad-top) var(--section-alt-inline) var(--section-alt-pad-bottom);
}

/* Mezera mezi béžovou sekcí a dalším bílým blokem (např. Ceník pod „Typy ubytování“) */
.content-wrap > .section--alt + .content-box {
  margin-top: clamp(1.5rem, 4vw, 2.5rem);
}

.section--alt .content-box {
  background: transparent;
  box-shadow: none;
  padding-left: 0;
  padding-right: 0;
}

.btn {
  display: inline-block;
  padding: 0.65rem 1.35rem;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: 1rem;
  line-height: 1.3;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff !important;
  border-color: var(--color-primary);
}

.btn--primary:hover {
  filter: brightness(1.06);
}

.btn--ghost {
  background: transparent;
  color: var(--color-primary) !important;
  border-color: rgba(122, 30, 46, 0.45);
}

.btn--ghost:hover {
  background: rgba(122, 30, 46, 0.06);
  border-color: var(--color-primary);
}

/* Footer */
.site-footer {
  background: var(--color-header-bg);
  padding: 2rem var(--page-padding-x);
  margin-top: auto;
  text-align: center;
  font-size: 0.95rem;
  color: var(--color-muted);
}

.site-footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-footer a {
  color: var(--color-primary);
}

.site-footer__fb {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 700;
}

.site-footer__credit {
  margin-top: 1.25rem;
  font-size: 0.85rem;
}

.site-footer__credit a {
  color: var(--color-muted);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 1.5rem;
  padding: clamp(1rem, 2.5vw, 1.5rem) clamp(0.75rem, 2.5vw, 1.75rem);
  max-width: 100%;
  box-sizing: border-box;
}

.price-table {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.price-table th,
.price-table td {
  border: 1px solid #e0d8cf;
  padding: 0.65rem 0.85rem;
  text-align: left;
  vertical-align: top;
}

.price-table thead {
  background: var(--color-bg-alt);
}

.price-table thead th {
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
}

/* Sekce „Typy ubytování“ */
.section-heading {
  position: relative;
  margin: 0 0 1.75rem;
  padding-bottom: 0.65rem;
  font-size: clamp(calc(1.4rem + 2px), 2.5vw, calc(1.75rem + 2px));
}

.section-heading::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 4rem;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--color-primary), rgba(122, 30, 46, 0.35));
}

/* Mřížka typů ubytování: 3 sloupce — ř.1 text | A5 | A6, ř.2 2+ | 2 | D5 */
.room-grid--3 {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.room-grid__intro {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.5rem 0.75rem 1rem;
}

.room-grid__intro-text {
  margin: 0;
  max-width: 22rem;
  font-size: clamp(1.1rem, 2.4vw, 1.45rem);
  line-height: 1.45;
  font-weight: 600;
  color: var(--color-primary);
}

@media (min-width: 992px) {
  .room-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.75rem;
  }

  .room-grid__intro {
    justify-content: flex-start;
    align-items: center;
    text-align: left;
    padding: 1rem 1.25rem 1rem 0;
  }

  .room-grid__intro-text {
    max-width: none;
  }
}

@media (min-width: 1200px) {
  .room-grid--3 {
    gap: 2rem;
  }
}

.room-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(165deg, #fffefb 0%, #ffffff 45%, #faf8f6 100%);
  border: 1px solid rgba(122, 30, 46, 0.14);
  box-shadow:
    0 1px 1px rgba(42, 42, 42, 0.04),
    0 6px 20px rgba(42, 42, 42, 0.07);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.room-card:hover {
  transform: translateY(-5px);
  border-color: rgba(122, 30, 46, 0.28);
  box-shadow:
    0 2px 4px rgba(42, 42, 42, 0.05),
    0 14px 36px rgba(42, 42, 42, 0.12),
    0 0 0 1px rgba(122, 30, 46, 0.06);
}

.room-card__inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 1.1rem;
  padding: 1.35rem 1.45rem 1.55rem;
}

.room-card__header {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.room-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 12px;
  background: linear-gradient(145deg, #8f2434 0%, var(--color-primary) 48%, #5c1522 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  line-height: 1;
  box-shadow:
    0 2px 6px rgba(92, 21, 34, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.room-card__headtext {
  flex: 1;
  min-width: 0;
}

.room-card__title {
  margin: 0 0 0.45rem;
  font-size: clamp(calc(1.05rem + 2px), 2vw, calc(1.2rem + 2px));
  line-height: 1.28;
  color: var(--color-primary);
}

.room-card__meta {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-muted);
  line-height: 1.45;
}

.room-card__desc {
  margin: 0;
  flex: 1;
  padding-top: 1rem;
  border-top: 1px solid rgba(42, 42, 42, 0.08);
  font-size: 0.95rem;
  line-height: 1.65;
  color: #3a3a3a;
}

@media (prefers-reduced-motion: reduce) {
  .room-card {
    transition: none;
  }

  .room-card:hover {
    transform: none;
  }
}

.gallery-intro {
  margin-top: 0;
  margin-bottom: 1.15rem;
  line-height: 1.55;
  color: var(--color-text);
}

/* Photo grid + gallery */
.photo-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-width: 0;
}

@media (min-width: 768px) {
  .photo-grid--gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .photo-grid--gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .photo-grid--ub {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.photo-grid__link {
  display: block;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow);
}

.photo-grid__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.photo-grid__link:hover .photo-grid__img {
  transform: scale(1.03);
}

/* Contact */
.contact-info {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem clamp(1.5rem, 4vw, 2.75rem);
}

.contact-info > .contact-dl {
  flex: 1 1 260px;
  min-width: min(100%, 14rem);
  max-width: 100%;
}

.contact-dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  margin: 0;
}

.contact-dl dt {
  font-weight: 700;
  margin: 0;
}

.contact-dl dd {
  margin: 0;
}

.map-embed {
  position: relative;
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 16 / 10;
  max-height: 420px;
}

.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.dist-list li {
  margin-bottom: 0.35rem;
}

/* Okolí — dva sloupce odkazů */
.content-box--okoli-tips > h2.section-heading {
  margin-top: 0;
}

.okoli-tips {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1rem clamp(1.5rem, 4vw, 3rem);
}

.okoli-tips__list {
  flex: 1 1 260px;
  min-width: min(100%, 14rem);
  max-width: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}

.okoli-tips__list li {
  margin: 0 0 0.55rem;
  padding: 0;
  line-height: 1.45;
}

.okoli-tips__list li:last-child {
  margin-bottom: 0;
}

.okoli-tips__list a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.12em;
}

.okoli-tips__list a:hover {
  text-decoration: none;
}

/* Form */
.hp-wrap {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.booking-form .form-row {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .booking-form .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .booking-form .form-row--3 {
    grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) minmax(0, 1fr);
  }
}

.booking-form #prijezd,
.booking-form #odjezd,
.booking-form .flatpickr-alt-input {
  cursor: pointer;
}

/* Flatpickr — přizpůsobení designu */
.flatpickr-calendar {
  font-family: var(--font-body, sans-serif);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.flatpickr-day.selected,
.flatpickr-day.selected:hover {
  background: var(--color-primary, #6b1a2a);
  border-color: var(--color-primary, #6b1a2a);
}

.flatpickr-day:hover {
  background: color-mix(in srgb, var(--color-primary, #6b1a2a) 15%, white);
}

.flatpickr-months .flatpickr-month,
.flatpickr-weekdays,
span.flatpickr-weekday {
  background: var(--color-primary, #6b1a2a);
  color: #fff;
}

.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #fff;
}

.flatpickr-day.today {
  border-color: var(--color-primary, #6b1a2a);
}

.form-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 0.35rem;
  font-size: 0.95rem;
}

.req {
  color: var(--color-primary);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font: inherit;
  background: #fff;
}

.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
  border-color: rgba(122, 30, 46, 0.45);
}

.form-field input.is-invalid,
.form-field select.is-invalid,
.form-field textarea.is-invalid {
  border-color: #b00020;
  box-shadow: 0 0 0 1px #b00020;
}

.field-error {
  display: block;
  color: #b00020;
  font-size: 0.85rem;
  margin-top: 0.35rem;
}

.field-error[hidden] {
  display: none;
}

.form-field--checkbox {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: flex-start;
}

/* Chyba souhlasu VOP: vlastní řádek, výrazně větší text */
.form-field--checkbox .field-error--vop {
  flex-basis: 100%;
  font-size: 1.7rem;
  line-height: 1.35;
  margin-top: 0.5rem;
  padding-inline-start: calc(1.15rem + 0.5rem);
}

.form-field--checkbox input {
  width: auto;
  margin-top: 0.35rem;
}

.form-error--banner {
  background: #fdeaea;
  border: 1px solid #e0a0a0;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  color: #6a1212;
  margin-bottom: 1.25rem;
}

.form-actions {
  margin-top: 1.5rem;
}

/* Legal */
.content-box--legal ol {
  padding-left: 1.25rem;
}

.content-box--legal li {
  margin-bottom: 0.35rem;
}

.content-box--legal .content-box__cta {
  margin-top: 2rem;
}

.vop-content__title {
  margin-top: 0;
}

/* VOP modal trigger (vypadá jako odkaz) */
button.vop-modal__open {
  background: none;
  border: 0;
  padding: 0;
  margin: 0;
  font: inherit;
  font-weight: inherit;
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.15em;
  cursor: pointer;
  text-align: left;
}

button.vop-modal__open:hover,
button.vop-modal__open:focus-visible {
  text-decoration: none;
}

button.vop-modal__open:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Modal VOP */
.modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal:not([hidden]) {
  display: flex;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(42, 42, 42, 0.55);
  cursor: pointer;
}

.modal__panel {
  position: relative;
  z-index: 1;
  width: min(720px, 100%);
  max-height: min(88vh, 900px);
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border-radius: 8px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
  overflow: hidden;
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e8e0d8;
  flex-shrink: 0;
  background: var(--color-header-bg);
}

.modal__title {
  margin: 0;
  font-size: calc(1.15rem + 2px);
  color: var(--color-primary);
}

.modal__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 4px;
  background: transparent;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  color: var(--color-text);
}

.modal__close:hover {
  background: rgba(122, 30, 46, 0.1);
}

.modal__body {
  padding: 1.25rem 1.5rem 1.75rem;
  overflow-y: auto;
  box-shadow: none;
  margin: 0;
}

.modal__body .vop-content h2:first-of-type {
  margin-top: 0;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  cursor: zoom-out;
}

.lightbox__img {
  max-width: 100%;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--color-text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox__prev,
.lightbox__next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--color-text);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0 0.1rem;
}

.lightbox__prev {
  left: 0.75rem;
}

.lightbox__next {
  right: 0.75rem;
}

.lightbox__prev:hover,
.lightbox__next:hover,
.lightbox__close:hover {
  filter: brightness(0.95);
}

.lightbox__prev[hidden],
.lightbox__next[hidden] {
  display: none;
}
