/* Rezidence Pakoměřická
   Teplý len, tmavý inkoust, červená smaltovaná cedule pražské ulice.  */

:root {
  --paper: #f4efe6;
  --paper-deep: #ebe3d5;
  --card: #fbf8f2;
  --ink: #2a2620;
  --ink-soft: #5e564b;
  --muted: #8b8274;
  --line: #ddd3c3;
  --line-soft: #e8e0d2;
  --sign: #a8382a;        /* smalt uličních cedulí */
  --sign-dark: #8d2d21;
  --plate: #24467a;       /* modrá orientační čísla domů */
  --moss: #556349;
  --moss-soft: #e3e6d8;
  --amber: #b07a2a;

  --serif: "Libre Caslon Display", "Iowan Old Style", Georgia, serif;
  --sans: "Karla", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 6px;
  --gutter: clamp(16px, 4vw, 48px);
  --max: 1240px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: #e9d6b7; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 400; line-height: 1.05; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); }
h2 { font-size: clamp(2rem, 3.8vw, 3.2rem); }
h3 { font-size: 1.7rem; line-height: 1.12; }
p { margin: 0 0 1em; }

.label {
  font: 600 12px/1.3 var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }

/* ---------- logo: smaltovaná cedule ---------- */
.sign {
  display: inline-flex; flex-direction: column; align-items: stretch;
  background: var(--sign);
  color: #fbf4ea;
  border-radius: 5px;
  padding: 3px;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.08), 0 1px 0 rgba(0,0,0,.06);
  line-height: 1;
}
.sign-in {
  border: 1.5px solid rgba(251,244,234,.92);
  border-radius: 3px;
  padding: 5px 11px 6px;
  display: grid; gap: 3px;
}
.sign-top {
  display: flex; justify-content: space-between; gap: 14px;
  font: 700 8.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase;
  opacity: .9;
}
.sign-name { font: 700 19px/1 var(--sans); letter-spacing: .01em; }
.sign.lg .sign-in { padding: 10px 22px 12px; gap: 6px; border-width: 2px; border-radius: 4px; }
.sign.lg { padding: 5px; border-radius: 8px; }
.sign.lg .sign-top { font-size: 12px; }
.sign.lg .sign-name { font-size: clamp(30px, 4.4vw, 46px); }

/* modrá cedulka s číslem bytu */
.plate {
  display: inline-grid; place-items: center;
  min-width: 30px; height: 26px; padding: 0 7px;
  background: var(--plate); color: #f6f1e8;
  border-radius: 4px;
  box-shadow: inset 0 0 0 2px var(--plate), inset 0 0 0 3.5px rgba(246,241,232,.85);
  font: 700 14px/1 var(--sans);
}

/* ---------- hlavička ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: rgba(244,239,230,.94);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--ink-soft); padding: 6px 0; }
.nav a:hover { color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border: 0; border-radius: var(--r);
  background: var(--ink); color: var(--paper);
  font: 600 15px/1 var(--sans); letter-spacing: .01em;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, transform .1s;
}
.btn:hover { background: #15130f; }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.red { background: var(--sign); }
.btn.red:hover { background: var(--sign-dark); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.block { width: 100%; }

.link { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: clamp(28px, 5vw, 64px) 0 0; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(28px, 5vw, 72px); align-items: end; }
.hero-copy { padding-bottom: 8px; }
.hero h1 { margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--sign); }
.hero-lead { font-size: 19px; color: var(--ink-soft); max-width: 30em; margin-bottom: 30px; }

.hero-photo { position: relative; margin: 0; }
.hero-photo img { width: 100%; aspect-ratio: 5 / 4.4; object-fit: cover; border-radius: var(--r); }
.hero-photo figcaption { display: flex; justify-content: space-between; gap: 16px; margin-top: 10px; font-size: 13px; color: var(--muted); }

/* vyhledávací lišta: příjezd | odjezd / hosté | tlačítko */
.finder {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 1px 0 rgba(42,38,32,.04), 0 12px 30px -18px rgba(42,38,32,.35);
  position: relative;
  max-width: 520px;
}
.field {
  background: none; border: 0; text-align: left;
  padding: 13px 18px 12px; min-width: 0;
  border-radius: 0;
}
.field:hover { background: #f6f1e8; }
.field.on { background: #f1ebe0; }
.field small { display: block; font: 600 11px/1.2 var(--sans); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.field span { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.field span.ph { color: var(--muted); font-weight: 400; }
.finder #fFrom { border-right: 1px solid var(--line-soft); border-radius: 10px 0 0 0; }
.finder #fTo { border-radius: 0 10px 0 0; }
.finder .guests { border-top: 1px solid var(--line-soft); border-right: 1px solid var(--line-soft); border-radius: 0 0 0 10px; }
.finder .btn { margin: 7px; height: auto; min-height: 46px; }

/* ---------- vyskakovací panely (kalendář, hosté) ---------- */
.pop {
  position: absolute; z-index: 30; top: calc(100% + 10px); left: 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px -24px rgba(42,38,32,.45);
  padding: 20px 22px 16px;
}
.pop[hidden] { display: none; }
.pop.guests-pop { left: auto; right: 0; width: 320px; }
.pop-head { display: none; }

/* ---------- kalendář ---------- */
.cal { user-select: none; -webkit-user-select: none; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.cal-arrow {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--card);
  display: grid; place-items: center;
}
.cal-arrow:hover { border-color: var(--ink); }
.cal-arrow[disabled] { opacity: .3; pointer-events: none; }
.cal-arrow svg { width: 14px; height: 14px; }
.cal-months { display: grid; grid-template-columns: repeat(var(--months, 2), 1fr); gap: 36px; }
.cal-month h4 { margin: -30px 0 14px; text-align: center; font: 600 15px/36px var(--sans); text-transform: capitalize; pointer-events: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 42px); }
.cal-dow { font: 600 11px/30px var(--sans); text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.cal-day {
  height: 42px; border: 0; background: none; padding: 0;
  font: 500 15px/1 var(--sans); font-variant-numeric: tabular-nums;
  position: relative;
}
.cal-day > span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; }
.cal-day:hover:not([disabled]) > span { box-shadow: inset 0 0 0 1.5px var(--ink); }
.cal-day[disabled] { color: #c4baa9; cursor: default; }
.cal-day.busy { color: #b9ae9c; text-decoration: line-through; text-decoration-color: #c9bfae; }
.cal-day.out-only { color: var(--ink-soft); }
.cal-day.short { color: #b9ae9c; }
.cal-day.range { background: #ece4d6; }
.cal-day.has-end { background: linear-gradient(90deg, transparent 50%, #ece4d6 50%); }
.cal-day.has-start { background: linear-gradient(90deg, #ece4d6 50%, transparent 50%); }
.cal-day.start > span, .cal-day.end > span { background: var(--ink); color: var(--paper); }
.cal-day.today::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--sign); }
.cal-day.start.today::after, .cal-day.end.today::after { background: var(--paper); }
.cal-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line-soft); font-size: 14px; min-height: 44px; }
.cal-foot .hint { color: var(--ink-soft); }
.cal-foot .hint b { color: var(--ink); font-weight: 600; }
.cal-foot .acts { display: flex; gap: 16px; align-items: center; }
.cal-legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 18px; height: 1.5px; background: #b9ae9c; vertical-align: middle; margin-right: 6px; }

/* hosté */
.stepper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }
.stepper-row + .stepper-row { border-top: 1px solid var(--line-soft); }
.stepper-row b { display: block; font-weight: 600; }
.stepper-row small { color: var(--muted); font-size: 13px; }
.stepper { display: flex; align-items: center; gap: 12px; }
.stepper button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); font-size: 18px; line-height: 1; display: grid; place-items: center; }
.stepper button:hover { border-color: var(--ink); }
.stepper button[disabled] { opacity: .3; pointer-events: none; }
.stepper output { min-width: 18px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- pruh: synchronizace s portály ---------- */
.channels-note {
  margin-top: clamp(40px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.channels-note .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding-top: 22px; padding-bottom: 22px; }
.channels-note p { margin: 0; color: var(--ink-soft); font-size: 15.5px; max-width: 62ch; }
.channels-note p b { color: var(--ink); font-weight: 600; }
.platforms { display: flex; gap: 8px; flex-wrap: wrap; }
.platforms span { font: 600 13px/1 var(--sans); padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); white-space: nowrap; }
.platforms span.us { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ---------- sekce ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: clamp(26px, 4vw, 44px); }
.section-head p { max-width: 34em; margin: 0; color: var(--ink-soft); }
.section-head .label { margin-bottom: 14px; }

/* byty */
.units { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(18px, 2.4vw, 32px); }
.unit { text-decoration: none; display: flex; flex-direction: column; }
.unit-media { position: relative; overflow: hidden; border-radius: var(--r); background: var(--paper-deep); }
.unit-media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.unit:hover .unit-media img { transform: scale(1.025); }
.unit-media .plate { position: absolute; top: 14px; left: 14px; }
.unit-state {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  background: var(--card); border-radius: 8px; padding: 10px 14px;
  font-size: 14px; display: flex; justify-content: space-between; gap: 12px; align-items: center;
  box-shadow: 0 8px 24px -14px rgba(0,0,0,.4);
}
.unit-state[hidden] { display: none; }
.unit-state.ok b { color: var(--moss); }
.unit-state.no { color: var(--ink-soft); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: currentColor; margin-right: 8px; vertical-align: 1px; }
.unit-body { padding: 18px 2px 0; display: grid; gap: 8px; }
.unit-body h3 { font-size: 1.75rem; }
.unit-meta { font-size: 14px; color: var(--muted); }
.unit-body p { margin: 2px 0 4px; color: var(--ink-soft); font-size: 16px; }
.unit-price { font-size: 15.5px; }
.unit-price b { font-weight: 700; }
.unit-price .arrow { float: right; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* dům */
.house { background: var(--paper-deep); }
.house-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.house-photos { display: grid; grid-template-columns: 1.25fr 1fr; gap: 14px; align-items: end; }
.house-photos img { width: 100%; object-fit: cover; border-radius: var(--r); }
.house-photos img:first-child { aspect-ratio: 3 / 4; }
.house-photos img:last-child { aspect-ratio: 3 / 3.6; margin-bottom: 38px; }
.house-copy h2 { margin: 16px 0 22px; }
.house-copy > p { color: var(--ink-soft); }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.facts li { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.facts li:nth-child(odd) { border-right: 1px solid var(--line); }
.facts li:nth-child(even) { padding-left: 20px; }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.1; margin-bottom: 4px; }
.facts span { font-size: 14px; color: var(--ink-soft); }

/* okolí */
.area-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: start; }
.area-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.area-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.area-list b { font-weight: 600; }
.area-list span { color: var(--muted); font-size: 14px; text-align: right; }
.area-list p { grid-column: 1 / -1; margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.area-photo { margin: 0; }
.area-photo img { width: 100%; aspect-ratio: 4 / 3.3; object-fit: cover; border-radius: var(--r); }
.area-photo figcaption { margin-top: 10px; font-size: 13px; color: var(--muted); }
.mini-map { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); }
.mini-map svg { display: block; width: 100%; height: auto; }

/* jak to chodí */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--ink); }
.steps li { padding: 22px 24px 4px 0; }
.steps li + li { padding-left: 24px; border-left: 1px solid var(--line); }
.steps em { font: 400 2.6rem/1 var(--serif); font-style: normal; color: var(--sign); display: block; margin-bottom: 14px; }
.steps b { display: block; font-size: 18px; font-weight: 600; margin-bottom: 6px; }
.steps p { color: var(--ink-soft); font-size: 15.5px; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: clamp(32px, 6vw, 88px); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; font-size: 17.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font: 300 28px/1 var(--sans); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--ink-soft); margin: -4px 0 20px; max-width: 60ch; }

/* patička */
.foot { background: var(--ink); color: #d9d0c1; padding: clamp(48px, 7vw, 84px) 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; align-items: start; }
.foot h4 { margin: 0 0 14px; font: 600 12px/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #9d9384; }
.foot p { margin: 0 0 6px; }
.foot a { color: #f4efe6; text-decoration: none; }
.foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .sign { margin-bottom: 22px; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid #423c33; font-size: 13px; color: #9d9384; }

/* ---------- detail bytu ---------- */
.crumbs { padding: 22px 0 0; font-size: 14px; }
.crumbs a { text-decoration: none; color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); }
.detail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; padding: 18px 0 24px; }
.detail-head h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.detail-head h1 .plate { font-size: 16px; height: 30px; min-width: 36px; }
.detail-meta { color: var(--ink-soft); margin-top: 10px; }

.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(62vh, 560px); position: relative; }
.gallery button { padding: 0; border: 0; background: var(--paper-deep); overflow: hidden; position: relative; }
.gallery button:first-child { grid-row: span 2; border-radius: var(--r) 0 0 var(--r); }
.gallery button:nth-child(3) { border-radius: 0 var(--r) 0 0; }
.gallery button:nth-child(5) { border-radius: 0 0 var(--r) 0; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: filter .2s; }
.gallery button:hover img { filter: brightness(.92); }
.gallery .all { position: absolute; right: 14px; bottom: 14px; height: 38px; background: var(--card); color: var(--ink); border: 1px solid var(--ink); border-radius: var(--r); padding: 0 14px; font-weight: 600; font-size: 14px; }
.gallery-count { display: none; }

.detail-grid { display: grid; grid-template-columns: 1fr 390px; gap: clamp(32px, 6vw, 88px); padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 8vw, 96px); align-items: start; }
.detail-main section { padding: 30px 0; border-bottom: 1px solid var(--line); }
.detail-main section:first-child { padding-top: 0; }
.detail-main section:last-child { border-bottom: 0; }
.detail-main h2 { font-size: 1.95rem; margin-bottom: 18px; }
.detail-main .lead { font-size: 19px; }
.detail-main p { color: var(--ink-soft); }
.spec { display: grid; grid-template-columns: 150px 1fr; gap: 10px 20px; margin: 0; }
.spec dt { color: var(--muted); font-size: 15px; }
.spec dd { margin: 0; }
.amen { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 32px; }
.amen li { padding: 7px 0 7px 22px; position: relative; break-inside: avoid; }
.amen li::before { content: ""; position: absolute; left: 0; top: 18px; width: 10px; height: 1.5px; background: var(--sign); }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r); }
.rules div { padding: 16px 18px; }
.rules div + div { border-left: 1px solid var(--line); }
.rules b { display: block; font: 400 1.6rem/1.1 var(--serif); }
.rules span { font-size: 14px; color: var(--muted); }

.cal-inline { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 22px 22px 14px; }

/* rezervační karta */
.book-card {
  position: sticky; top: 96px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 18px 40px -28px rgba(42,38,32,.45);
}
.book-price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 18px; }
.book-price b { font: 400 2rem/1 var(--serif); }
.book-price span { color: var(--ink-soft); }
.book-fields { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; position: relative; }
.book-fields .field { border-right: 0; border-radius: 0; }
.book-fields .field:first-child { border-right: 1px solid var(--line); border-radius: 8px 0 0 0; }
.book-fields .field:nth-child(2) { border-radius: 0 8px 0 0; }
.book-fields .field.wide { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 8px 8px; }
.book-card .btn { margin-top: 14px; height: 52px; font-size: 16px; }
.book-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 10px 0 0; }
.breakdown { list-style: none; margin: 18px 0 0; padding: 0; font-size: 15.5px; }
.breakdown li { display: flex; justify-content: space-between; gap: 16px; padding: 5px 0; color: var(--ink-soft); }
.breakdown li span:last-child { font-variant-numeric: tabular-nums; white-space: nowrap; }
.breakdown li.disc { color: var(--moss); }
.breakdown li.total { color: var(--ink); font-weight: 700; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 14px; }
.msg { font-size: 14.5px; padding: 10px 12px; border-radius: 8px; background: #f3e4dc; color: var(--sign-dark); margin-top: 14px; }
.msg[hidden] { display: none; }
.msg.ok { background: var(--moss-soft); color: #3e4935; }

.mbar { display: none; }

/* lightbox */
.lightbox { border: 0; padding: 0; max-width: none; max-height: none; width: 100vw; height: 100dvh; background: rgba(28,25,21,.96); color: #f4efe6; }
.lightbox::backdrop { background: rgba(28,25,21,.9); }
.lightbox[open] { display: grid; grid-template-rows: auto 1fr auto; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px var(--gutter); font-size: 14px; }
.lb-close, .lb-arrow { background: none; border: 1px solid rgba(244,239,230,.35); color: inherit; border-radius: 50%; width: 42px; height: 42px; display: grid; place-items: center; }
.lb-close:hover, .lb-arrow:hover { border-color: #f4efe6; }
.lb-stage { display: grid; grid-template-columns: 64px 1fr 64px; align-items: center; min-height: 0; padding: 0 12px; }
.lb-stage img { max-width: 100%; max-height: calc(100dvh - 150px); margin: 0 auto; object-fit: contain; border-radius: 3px; }
.lb-cap { text-align: center; padding: 14px; font-size: 14px; color: #b9b0a2; }

/* ---------- rezervace ---------- */
.checkout { display: grid; grid-template-columns: 1fr 420px; gap: clamp(32px, 6vw, 88px); padding: clamp(28px, 4vw, 48px) 0 clamp(56px, 8vw, 96px); align-items: start; }
.checkout h1 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); margin: 10px 0 26px; }
.form { display: grid; gap: 16px; }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.input { display: grid; gap: 6px; }
.input > span { font-size: 14px; font-weight: 600; }
.input > span i { font-style: normal; font-weight: 400; color: var(--muted); }
.input input, .input textarea, .input select {
  width: 100%; border: 1px solid var(--line); background: var(--card);
  border-radius: 8px; padding: 13px 14px; font-size: 16px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.input textarea { min-height: 110px; resize: vertical; }
.input input:focus, .input textarea:focus, .input select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(42,38,32,.08); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-section { padding-top: 26px; margin-top: 10px; border-top: 1px solid var(--line); }
.form-section h2 { font-size: 1.6rem; margin-bottom: 8px; }
.form-section > p { color: var(--ink-soft); font-size: 15.5px; }

.summary { position: sticky; top: 96px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary-head { display: grid; grid-template-columns: 112px 1fr; gap: 16px; padding: 18px; border-bottom: 1px solid var(--line); align-items: center; }
.summary-head img { width: 112px; height: 92px; object-fit: cover; border-radius: 6px; }
.summary-head h3 { font-size: 1.4rem; }
.summary-head small { color: var(--muted); font-size: 13.5px; }
.summary-body { padding: 18px; }
.summary dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0 0 4px; font-size: 15.5px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; text-align: right; }
.summary .breakdown { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--line); }

/* stav rezervace */
.status-page { max-width: 760px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 8vw, 96px); }
.status-page h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin: 14px 0 16px; }
.status-page .lead { font-size: 19px; color: var(--ink-soft); max-width: 34em; }
.chip { display: inline-flex; align-items: center; gap: 8px; font: 600 13px/1 var(--sans); padding: 8px 12px; border-radius: 999px; background: var(--paper-deep); }
.chip.pending { background: #f3e7cf; color: #7c561b; }
.chip.confirmed { background: #e2e8f1; color: #24467a; }
.chip.paid { background: var(--moss-soft); color: #3e4935; }
.chip.cancelled, .chip.expired { background: #f1e1dc; color: var(--sign-dark); }
.timeline { list-style: none; margin: 30px 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 2px solid var(--line); }
.timeline li { padding: 14px 12px 0 0; position: relative; font-size: 14.5px; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--line); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { background: var(--ink); border-color: var(--ink); }
.timeline li.now::before { background: var(--sign); border-color: var(--sign); }
.timeline b { display: block; font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 18px; }
.card h2 { font-size: 1.6rem; margin-bottom: 12px; }
.pay-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.pay-grid dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 18px; margin: 0; }
.pay-grid dt { color: var(--muted); }
.pay-grid dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.qr { width: 156px; height: 156px; padding: 8px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.qr img, .qr canvas { width: 100% !important; height: 100% !important; }

.empty { padding: 80px 0; text-align: center; color: var(--ink-soft); }

/* ---------- mobil ---------- */
@media (max-width: 1080px) {
  .units { grid-template-columns: 1fr 1fr; }
  .units .unit:last-child { grid-column: 1 / -1; }
  .units .unit:last-child .unit-media img { aspect-ratio: 16 / 9; }
  .detail-grid, .checkout { grid-template-columns: 1fr 360px; }
}

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .nav { display: none; }
  .top .wrap { height: 64px; justify-content: space-between; }
  .hero-grid { grid-template-columns: 1fr; gap: 26px; }
  .hero-photo { order: -1; margin: 0 calc(-1 * var(--gutter)); }
  .hero-photo img { border-radius: 0; aspect-ratio: 4 / 3; }
  .hero-photo figcaption { padding: 0 var(--gutter); }
  .hero h1 { margin-top: 12px; }
  .hero-lead { font-size: 17.5px; margin-bottom: 24px; }
  .finder { max-width: none; }

  /* vyskakovací panely jako spodní list */
  .pop, .pop.guests-pop {
    position: fixed; left: 0; right: 0; top: auto; bottom: 0; width: auto;
    border-radius: 16px 16px 0 0; padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: 88dvh; overflow: auto; z-index: 60;
    box-shadow: 0 -20px 60px -20px rgba(0,0,0,.45);
  }
  .pop-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 0 12px; font-weight: 600; }
  .pop-head button { border: 0; background: none; font-size: 26px; line-height: 1; padding: 4px 8px; }
  .scrim { position: fixed; inset: 0; background: rgba(28,25,21,.45); z-index: 55; }
  .cal-months { --months: 1 !important; }
  .cal-grid { grid-template-columns: repeat(7, 1fr); }
  .cal-day { height: auto; aspect-ratio: 1; }

  .channels-note .wrap { grid-template-columns: 1fr; gap: 14px; }
  .channels-note .sign-mini { display: none; }
  .section-head { display: block; }
  .section-head p { margin-top: 14px; }
  .units { grid-template-columns: 1fr; }
  .units .unit:last-child { grid-column: auto; }
  .unit-media img, .units .unit:last-child .unit-media img { aspect-ratio: 4 / 3.4; }
  .house-grid, .area-grid, .faq-grid { grid-template-columns: 1fr; }
  .house-photos img:last-child { margin-bottom: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; border-top: 0; }
  .steps li, .steps li + li { padding: 20px 16px 4px 0; border-left: 0; border-top: 1px solid var(--line); }
  .steps li:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }

  .detail-head { display: block; padding-bottom: 18px; }
  .gallery {
    display: flex; height: auto; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); scrollbar-width: none;
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery button { flex: 0 0 100%; scroll-snap-align: start; border-radius: 0 !important; aspect-ratio: 4 / 3; }
  .gallery .all { display: none; }
  .gallery-wrap { position: relative; }
  .gallery-count { display: block; position: absolute; right: 12px; bottom: 12px; background: rgba(28,25,21,.72); color: #fff; font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; pointer-events: none; }
  .detail-grid, .checkout { grid-template-columns: 1fr; }
  .book-card { display: none; }
  .book-card.sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 58; border-radius: 16px 16px 0 0; padding: 18px 18px calc(18px + env(safe-area-inset-bottom)); max-height: 90dvh; overflow: auto; }
  .amen { columns: 1; }
  .spec { grid-template-columns: 120px 1fr; }
  .rules { grid-template-columns: 1fr 1fr 1fr; }
  .rules div { padding: 12px; }
  .rules b { font-size: 1.3rem; }
  .cal-inline { padding: 14px 12px 8px; margin: 0 -4px; }
  .detail-main { padding-bottom: 72px; }

  .mbar {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    background: var(--card); border-top: 1px solid var(--line);
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom));
    align-items: center; justify-content: space-between; gap: 14px;
  }
  .mbar b { font: 400 1.35rem/1 var(--serif); }
  .mbar small { display: block; color: var(--ink-soft); font-size: 13px; margin-top: 3px; }

  .summary { position: static; order: -1; }
  .checkout-form { order: 2; }
  .form .row2 { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 22px; }
  .pay-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .sign-name { font-size: 17px; }
  .sign-top { font-size: 8px; gap: 10px; }
  .facts b { font-size: 1.3rem; }
  .steps { grid-template-columns: 1fr; }
  .steps li:nth-child(even) { padding-left: 0; border-left: 0; }
  .foot-grid { grid-template-columns: 1fr; }
}
