/* --------------------------------------------------------------------------
   Media — every photo on the site goes through this wrapper. Aspect ratio
   is set per-usage with an inline style or a --ratio modifier class, never
   assumed uniform across sections (see art-direction brief).
   -------------------------------------------------------------------------- */
.media {
  position: relative;
  overflow: hidden;
  background: var(--surface-alt);
}
/* <picture> sits between .media and <img> with no size of its own, so
   `height: 100%` on the <img> had nothing definite to resolve against
   and silently fell back to the image's natural aspect ratio — on a
   tall container (the hero) that left a visible gap of the .media
   placeholder color below a short-looking photo. Giving <picture> an
   explicit 100%/100% box fixes the percentage chain for every photo
   on the site, not just the hero. */
.media picture {
  display: block;
  width: 100%;
  height: 100%;
}
.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.media--r-hero { aspect-ratio: 16 / 10.5; }
.media--r-wide { aspect-ratio: 16 / 9; }
.media--r-classic { aspect-ratio: 4 / 3; }
.media--r-square { aspect-ratio: 1 / 1; }
.media--r-tall { aspect-ratio: 3 / 4; }
.media--r-portrait { aspect-ratio: 2 / 3; }
.media--radius { border-radius: var(--radius-lg); }

.obj-top { object-position: center top; }
.placeholder-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, var(--surface-alt), var(--cream));
}
.placeholder-media span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  letter-spacing: 0.03em;
}
.obj-bottom { object-position: center bottom; }
.obj-left { object-position: 25% center; }
.obj-right { object-position: 75% center; }

.media__zoom img { transition: transform var(--duration-slow) var(--ease); }
.media__zoom:hover img { transform: scale(1.045); }

.media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Dark-green-tinted (brand-dark, #21362a) rather than near-black, so a
   caption's shadow reads as "shade", not a grey/black filter over the
   photo underneath it. */
.media--scrim-bottom::after {
  background: linear-gradient(0deg, rgba(33, 54, 42, 0.56) 0%, rgba(33, 54, 42, 0.16) 45%, rgba(33, 54, 42, 0) 72%);
}
.media--scrim-top::after {
  background: linear-gradient(180deg, rgba(33, 54, 42, 0.46) 0%, rgba(33, 54, 42, 0) 45%);
}
.media--scrim-full::after {
  background: linear-gradient(180deg, rgba(33, 54, 42, 0.28) 0%, rgba(33, 54, 42, 0.46) 100%);
}

/* --------------------------------------------------------------------------
   Header
   -------------------------------------------------------------------------- */
/* Solid cream header everywhere by default (inner pages, and the
   fallback state here) — except the homepage, which has a real
   full-bleed photo behind it again and can go transparent over it
   at the very top, then settle to the same solid cream on scroll. */
.site-header {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 100;
  background: var(--cream);
  color: var(--brand-dark);
  padding-block: var(--sp-sm);
  border-radius: 0;
  box-shadow: var(--shadow-sm);
  transition: padding var(--duration-med) var(--ease), background var(--duration-med) var(--ease),
    box-shadow var(--duration-med) var(--ease), color var(--duration-med) var(--ease),
    inset-inline var(--duration-med) var(--ease), inset-block-start var(--duration-med) var(--ease),
    border-radius var(--duration-med) var(--ease);
}
.site-header__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}
/* Scrolled: not just a recolored full-width bar — it lifts off the
   edges into a floating rounded panel, like a card sitting on the
   page rather than a strip glued to the viewport. */
.site-header.is-scrolled {
  inset-block-start: 0.85rem;
  inset-inline: clamp(0.75rem, 4vw, 2.5rem);
  padding-block: 0.65rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.site-header.is-open {
  padding-block: 0.7rem;
  box-shadow: var(--shadow-md);
}
.home-page .site-header:not(.is-scrolled):not(.is-open) {
  background: transparent;
  color: var(--cream);
  box-shadow: none;
  text-shadow: 0 1px 8px rgba(20, 30, 24, 0.5);
}
.home-page .site-header:not(.is-scrolled):not(.is-open) .brand__word { color: var(--cream); }

.brand {
  display: flex;
  align-items: center;
  gap: 0.7em;
  font-family: var(--font-display);
  font-size: var(--fs-md);
  font-weight: 600;
}
.brand img { height: 30px; width: auto; }
.brand__mark--dark { display: block; }
.brand__mark--light { display: none; }
.brand__word { color: var(--brand-dark); transition: color var(--duration-med) var(--ease); }
.home-page .site-header:not(.is-scrolled):not(.is-open) .brand__mark--dark { display: none; }
.home-page .site-header:not(.is-scrolled):not(.is-open) .brand__mark--light { display: block; }

.main-nav { display: none; }
.main-nav__list { display: flex; gap: var(--sp-md); font-size: var(--fs-sm); font-weight: 500; }
.main-nav__list a { position: relative; padding-block: 0.3em; }
.main-nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--duration-fast) var(--ease);
}
.main-nav__list a:hover::after, .main-nav__list a[aria-current]::after { transform: scaleX(1); transform-origin: left; }

.header__actions { display: flex; align-items: center; gap: var(--sp-sm); }
.header__cta { display: none; }
/* 44px square hit area (was a snug 38px) — a real thumb target, not
   just the icon's own visual size. */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
}
.nav-toggle span { width: 22px; height: 2px; background: currentColor; transition: transform var(--duration-fast) var(--ease), opacity var(--duration-fast) var(--ease); }
.site-header.is-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.is-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--cream);
  z-index: 99;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  transform: translateY(-100%);
  transition: transform var(--duration-med) var(--ease);
}
.mobile-nav.is-open { transform: translateY(0); }
.mobile-nav__list { display: flex; flex-direction: column; gap: 1.4rem; font-family: var(--font-display); font-size: var(--fs-lg); }
.mobile-nav__footer { margin-top: var(--sp-lg); display: flex; flex-direction: column; gap: 1rem; font-size: var(--fs-sm); }

/* Switched later than the content-grid breakpoints (900px) on purpose:
   logo + 5 nav links + CTA button genuinely start crowding a header
   bar (a tighter horizontal space than a 2-column section) right in
   the 900–1100px "small laptop / tablet landscape" range — better to
   keep the roomy mobile menu through that zone than squeeze a nav. */
@media (min-width: 1100px) {
  .main-nav { display: block; }
  .header__cta { display: inline-flex; }
  .nav-toggle { display: none; }
  .mobile-nav { display: none; }
}

/* --------------------------------------------------------------------------
   01 — Hero
   -------------------------------------------------------------------------- */
/* One full-bleed photo, no split, no color panel, no dark filter over
   the whole image. hero.jpg has the chata left-of-center; the text
   block anchors bottom-right, clear of the house itself — but that
   corner is mostly tall trees, not open sky/lawn as first assumed, so
   dark text was disappearing into dark foliage. Fix: light (cream)
   text again, with a real but *local* dark radial glow behind just
   the text block (.hero__text::before) — not a filter over the photo,
   just enough shade for the words to lift off whatever's behind them. */
.hero {
  position: relative;
  min-height: clamp(560px, 92svh, 980px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.hero .media { position: absolute; inset: 0; }
.hero .media img { animation: hero-in 1.6s var(--ease) both; }
@keyframes hero-in { from { transform: scale(1.05); opacity: 0.9; } to { transform: scale(1); opacity: 1; } }
/* Override the shared .media--scrim-bottom (used elsewhere at a much
   stronger 0.56 peak) — the hero's real contrast work happens locally
   behind the text (.hero__text::before below); this general pass is
   just a faint, whole-photo-safe assist, not the main mechanism. */
.hero .media--scrim-bottom::after {
  background: linear-gradient(0deg, rgba(33, 54, 42, 0.2) 0%, rgba(33, 54, 42, 0) 38%);
}
/* Soft, short fade at the very bottom into the page's own cream —
   not a big white fog, just enough that the photo doesn't end on a
   hard horizon line against the next section. */
.hero::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  height: clamp(70px, 12vh, 150px);
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(0deg, var(--cream) 0%, rgba(250, 246, 238, 0) 100%);
}
.hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  justify-content: flex-end;
  padding-block-end: clamp(3rem, 7vw, 5.5rem);
  padding-block-start: clamp(7rem, 14vw, 10rem);
}
.hero__text { position: relative; max-width: 30ch; text-align: left; }
/* Local glow only — extends a bit beyond the text on every side and
   fades out before it reaches the house or the edges of the photo. */
.hero__text::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -14% -16% -18% -20%;
  background: radial-gradient(70% 80% at 78% 100%, rgba(33, 54, 42, 0.58) 0%, rgba(33, 54, 42, 0.3) 45%, rgba(33, 54, 42, 0) 76%);
  pointer-events: none;
}
.hero__eyebrow { color: var(--wood-light); text-shadow: 0 1px 8px rgba(20, 30, 24, 0.55); }
.hero__title {
  margin-top: 0.5em;
  max-width: 13ch;
  color: var(--cream);
  font-size: clamp(2.1rem, 1.7rem + 2vw, 3.25rem);
  text-shadow: 0 1px 2px rgba(20, 30, 24, 0.7), 0 4px 18px rgba(20, 30, 24, 0.5);
}
.hero__subtitle {
  margin-top: 1.1em;
  max-width: 34ch;
  font-size: var(--fs-base);
  color: var(--cream-soft);
  text-shadow: 0 1px 2px rgba(20, 30, 24, 0.6), 0 3px 14px rgba(20, 30, 24, 0.45);
}
.hero__actions { margin-top: var(--sp-md); display: flex; gap: 1rem; flex-wrap: wrap; }
.hero__actions .btn--ghost {
  border-color: rgba(250, 246, 238, 0.7);
  background: rgba(33, 54, 42, 0.2);
}
.hero__actions .btn--ghost:hover { background: rgba(33, 54, 42, 0.34); }
/* Two buttons genuinely don't both fit at ~375px without crowding —
   stack them full-width rather than let flex-wrap drop the second one
   onto its own line at an arbitrary, off-center width. */
@media (max-width: 480px) {
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
}
/* Small, centered, minimal — a cue, not a button. 44px tap target
   around a 22px glyph. */
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: clamp(0.6rem, 2vw, 1.4rem);
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--cream);
  animation: hero-scroll 3.2s ease-in-out infinite;
}
.hero__scroll svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 4px rgba(20, 30, 24, 0.55)); }
.hero__scroll:hover { color: var(--wood-light); }
@keyframes hero-scroll {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.75; }
  50% { transform: translateX(-50%) translateY(6px); opacity: 0.45; }
}

/* --------------------------------------------------------------------------
   02 — Místo (asymmetric photo + text)
   -------------------------------------------------------------------------- */
.place {
  display: grid;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.place__media { border-radius: var(--radius-lg); }
.place__text p { margin-top: 1.1em; font-size: var(--fs-md); color: var(--text-muted); }
.place__facts { margin-top: var(--sp-md); display: grid; gap: 1.4rem; grid-template-columns: repeat(3, 1fr); }
.place__facts--2 { grid-template-columns: repeat(2, 1fr); }
.place__fact dt { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--brand); }
.place__fact dd { margin-top: 0.2em; font-size: var(--fs-xs); color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* Two columns from tablet portrait up, not just from laptop width —
   a single stacked column at 768–820px reads thin on that much
   horizontal room. */
@media (min-width: 760px) {
  .place { grid-template-columns: 1.1fr 0.9fr; }
  .place--reverse { direction: rtl; }
  .place--reverse > * { direction: ltr; }
}

/* --------------------------------------------------------------------------
   03 — Ubytování (listing rows, not identical cards)
   -------------------------------------------------------------------------- */
.stay-row {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  padding-block: var(--sp-lg);
}
.stay-row + .stay-row { border-top: 1px solid var(--line); }
.stay-row__media { border-radius: var(--radius-lg); }
.stay-row__tag { display: inline-flex; gap: 0.5em; align-items: center; font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.stay-row__body h3 { margin-top: 0.4em; }
.stay-row__body p { margin-top: 0.8em; color: var(--text-muted); }
.stay-row__meta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.2rem; }
.stay-row__meta span {
  font-size: var(--fs-xs);
  padding: 0.45em 0.9em;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
}
.stay-row__footer { margin-top: 1.6rem; display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; }
.stay-row__price { font-family: var(--font-display); font-size: var(--fs-lg); color: var(--brand); }
.stay-row__price small { display: block; font-family: var(--font-body); font-size: var(--fs-xs); color: var(--text-muted); font-weight: 400; }

@media (min-width: 760px) {
  .stay-row { grid-template-columns: 1.15fr 1fr; align-items: center; }
  .stay-row--reverse .stay-row__media { order: 2; }
}

/* --------------------------------------------------------------------------
   04 — Atmosféra (mosaic, mostly photo)
   -------------------------------------------------------------------------- */
/* Deliberately no row-spanning: an item spanning multiple auto-sized
   grid rows fights the other tiles sharing those rows for track height
   (each row's height is driven by whichever aspect-ratio tile is
   tallest), which produced a visibly broken, overlapping layout. Every
   tile instead owns its row cleanly — big tile on its own row, four
   even tiles below. */
.mosaic {
  display: grid;
  align-items: start;
  gap: var(--sp-sm);
  grid-template-columns: repeat(4, 1fr);
}
.mosaic > .media { border-radius: var(--radius-md); }
.mosaic__a { grid-column: span 4; }
.mosaic__b, .mosaic__c, .mosaic__d, .mosaic__e { grid-column: span 2; }
@media (min-width: 760px) {
  .mosaic__b, .mosaic__c, .mosaic__d, .mosaic__e { grid-column: span 1; }
}

/* --------------------------------------------------------------------------
   05 — Vybavení (thin line icons)
   -------------------------------------------------------------------------- */
.amenities {
  display: grid;
  gap: 2.2rem;
  grid-template-columns: repeat(2, 1fr);
}
.amenity { display: flex; gap: 1rem; align-items: flex-start; }
.amenity svg { flex: none; width: 28px; height: 28px; stroke: var(--brand); }
.amenity h4 { font-size: var(--fs-base); font-family: var(--font-body); font-weight: 600; }
.amenity p { margin-top: 0.3em; font-size: var(--fs-sm); color: var(--text-muted); }
@media (min-width: 700px) { .amenities { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   06 — Okolí (teaser grid linking to okoli.html)
   -------------------------------------------------------------------------- */
.explore-grid {
  display: grid;
  gap: var(--sp-sm);
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.explore-card { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.explore-card .media { aspect-ratio: 3 / 4; }
.explore-card__label {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--sp-sm);
  color: var(--cream);
}
.explore-card__label h3 { font-size: var(--fs-md); color: var(--cream); }
.explore-card__label p { font-size: var(--fs-xs); color: var(--cream-soft); margin-top: 0.3em; }

/* --------------------------------------------------------------------------
   07 — Sezóny (editorial split)
   -------------------------------------------------------------------------- */
.seasons { display: grid; grid-template-columns: 1fr; min-height: 640px; }
.season { position: relative; display: flex; align-items: flex-end; color: var(--cream); min-height: 320px; }
.season .media { position: absolute; inset: 0; }
.season__body { position: relative; z-index: 1; padding: var(--sp-md); }
.season__body h3 { color: var(--cream); }
.season__body p { margin-top: 0.4em; color: var(--cream-soft); font-size: var(--fs-sm); max-width: 32ch; }
@media (min-width: 800px) { .seasons { grid-template-columns: 1fr 1fr; } }

/* --------------------------------------------------------------------------
   09 — CTA banner
   -------------------------------------------------------------------------- */
.cta-banner { position: relative; color: var(--cream); overflow: hidden; }
.cta-banner .media { position: absolute; inset: 0; }
.cta-banner__inner { position: relative; z-index: 1; text-align: center; padding-block: var(--sp-2xl); }
.cta-banner h2 { color: var(--cream); }
.cta-banner p { color: var(--cream-soft); font-size: var(--fs-md); }
.cta-banner__actions { margin-top: var(--sp-md); display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }

/* --------------------------------------------------------------------------
   Contact / reservation CTA form (no calendar — text fields only)
   -------------------------------------------------------------------------- */
.contact-grid { display: grid; gap: var(--sp-lg); }
.contact-grid--single { max-width: 900px; }
.contact-grid--narrow { max-width: 420px; }
/* Its only usage (the reservation form on kontakt.html) sits on a
   section--alt (#F2ECE0) background, so the card itself uses the
   main cream (#FAF6EE) instead — same warm-cream family as the rest
   of the card system, just the member of the pair that actually
   separates from *this* section rather than blending into it. */
.contact-card { background: var(--surface); border-radius: var(--radius-lg); padding: var(--sp-md); box-shadow: var(--shadow-sm); }
.contact-card--form { max-width: 640px; }
.contact-list { display: flex; flex-direction: column; gap: 1.2rem; }
.contact-list li { display: flex; gap: 0.9rem; align-items: flex-start; }
.contact-list svg { flex: none; width: 22px; height: 22px; stroke: var(--brand); margin-top: 0.15em; }
.contact-list a:hover { text-decoration: underline; }

.form-field { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-field label { font-size: var(--fs-xs); font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-muted); }
.form-field input, .form-field textarea, .form-field select {
  padding: 0.85em 1em;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { border-color: var(--wood); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 620px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note { margin-top: 0.9rem; font-size: var(--fs-xs); color: var(--text-muted); }

.map-frame { border: 0; width: 100%; aspect-ratio: 16 / 11; border-radius: var(--radius-lg); }

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.site-footer { background: var(--brand-dark); color: var(--cream-soft); padding-block: var(--sp-lg) var(--sp-md); }
.footer-grid { display: grid; gap: var(--sp-md); }
.footer-brand { font-family: var(--font-display); font-size: var(--fs-md); color: var(--cream); }
.footer-brand p { margin-top: 0.8em; color: var(--cream-soft); font-size: var(--fs-sm); max-width: 34ch; }
.footer-col h4 { color: var(--cream); font-family: var(--font-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.footer-col ul { margin-top: 0.9rem; display: flex; flex-direction: column; gap: 0.3rem; font-size: var(--fs-sm); color: var(--cream-soft); }
.footer-col li > a { display: inline-block; padding-block: 0.4rem; }
.footer-col a:hover { color: var(--cream); }
.footer-bottom {
  margin-top: var(--sp-lg);
  padding-top: var(--sp-sm);
  border-top: 1px solid rgba(250, 246, 238, 0.14);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: rgba(242, 236, 224, 0.65);
}
.footer-bottom a:hover { color: var(--cream); }
/* Own tablet step instead of jumping straight from one column to
   four — a single column stretched across a tablet's width reads as
   thin and unbalanced. */
@media (min-width: 620px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

/* --------------------------------------------------------------------------
   Mobile sticky reservation CTA
   -------------------------------------------------------------------------- */
/* Small and out of the way, not a full-width bar — a thumb-reachable
   pill in the corner, not a UI element competing with page content. */
.sticky-cta {
  position: fixed;
  right: var(--sp-sm);
  bottom: var(--sp-sm);
  z-index: 90;
}
.sticky-cta .btn { box-shadow: var(--shadow-md); }
@media (min-width: 900px) { .sticky-cta { display: none; } }

/* --------------------------------------------------------------------------
   Simple page hero (interior pages)
   -------------------------------------------------------------------------- */
.page-hero { padding-block: clamp(7rem, 16vw, 9rem) var(--sp-lg); background: var(--surface-alt); }
.page-hero h1 { margin-top: 0.4em; }
.page-hero p { margin-top: 0.9em; font-size: var(--fs-md); color: var(--text-muted); max-width: 60ch; }

/* --------------------------------------------------------------------------
   Gallery grid (fotogalerie.html)
   -------------------------------------------------------------------------- */
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-bottom: var(--sp-md); }
.gallery-filters button {
  padding: 0.75em 1.2em;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: background var(--duration-fast) var(--ease), color var(--duration-fast) var(--ease);
}
.gallery-filters button.is-active, .gallery-filters button:hover { background: var(--brand); color: var(--cream); border-color: var(--brand); }
.gallery-grid { columns: 1; column-gap: var(--sp-sm); }
.gallery-grid figure { break-inside: avoid; margin-bottom: var(--sp-sm); border-radius: var(--radius-md); overflow: hidden; }
.gallery-grid button { display: block; width: 100%; }
@media (min-width: 620px) { .gallery-grid { columns: 2; } }
@media (min-width: 1000px) { .gallery-grid { columns: 3; } }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 32, 25, 0.93);
  padding: var(--gutter);
}
.lightbox.is-open { display: flex; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius-sm); }
.lightbox__close { position: absolute; top: var(--sp-sm); right: var(--sp-sm); color: var(--cream); width: 44px; height: 44px; }
.lightbox__close svg { width: 100%; height: 100%; stroke: currentColor; }

/* --------------------------------------------------------------------------
   Room detail gallery (pokoj.html)
   -------------------------------------------------------------------------- */
/* No row-spanning here either — see the mosaic comment above for why:
   a spanning tile fights same-row siblings for auto row height. Big
   photo owns its own row; the rest share an even row below it. */
.room-gallery { display: grid; align-items: start; gap: var(--sp-sm); grid-template-columns: repeat(4, 1fr); }
.room-gallery > *:first-child { grid-column: span 4; }
.room-gallery > *:not(:first-child) { grid-column: span 2; }
.room-gallery .media { border-radius: var(--radius-md); }
@media (min-width: 700px) {
  .room-gallery { grid-template-columns: repeat(4, 1fr); }
  .room-gallery > *:not(:first-child) { grid-column: span 1; }
}

.spec-list { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); margin-top: var(--sp-md); }
.spec-list dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); }
.spec-list dd { margin-top: 0.2em; font-family: var(--font-display); font-size: var(--fs-md); color: var(--brand-dark); }

/* --------------------------------------------------------------------------
   Pricing table (cenik.html)
   -------------------------------------------------------------------------- */
/* table-layout: fixed makes the 100% width a hard constraint — without
   it, a long row (e.g. "Rokytnice nad Jizerou") can force the whole
   table wider than its column on a narrow phone instead of wrapping. */
.price-table { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: var(--fs-sm); }
.price-table th, .price-table td { text-align: left; padding: 0.9em 0.4em; border-bottom: 1px solid var(--line); word-break: break-word; }
.price-table th { color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: var(--fs-xs); letter-spacing: 0.04em; }
.price-table td:last-child, .price-table th:last-child { text-align: right; font-family: var(--font-display); color: var(--brand); }
.notice-box { margin-top: var(--sp-md); padding: var(--sp-sm); border-radius: var(--radius-md); background: var(--surface-alt); border-left: 3px solid var(--wood); font-size: var(--fs-sm); }
