/* Appartement NaMoll – alpská paleta; rezervační box a okno podle kitu stylishapartments.cz */
:root {
  --ink: #1C2A33;
  --ink-2: #2D404C;
  --paper: #EEF1F0;
  --card: #FFFFFF;
  --line: #DCE2E1;
  --line-2: #C4CDCD;
  --muted: #5B6870;
  --wood: #A8744A;
  --wood-dark: #7A5130;
  --range: #E2E8E8;
  --ok: #2F6B45;
  --err: #A33A2B;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow: 0 16px 40px rgba(28, 42, 51, 0.09);
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); color: var(--ink); background: var(--paper); font-size: 17px; line-height: 1.6; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- záhlaví ---------- */
.top { position: absolute; inset: 0 0 auto; z-index: 10; color: #fff; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 76px; }
.brand { text-decoration: none; display: flex; flex-direction: column; line-height: 1.05; }
.brand b { font-family: var(--font-display); font-weight: 600; font-size: 28px; letter-spacing: .01em; }
.brand small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; opacity: .85; }
.top nav { display: flex; align-items: center; gap: 6px; }
.langs { display: flex; gap: 2px; margin-right: 6px; }
.langs a { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-decoration: none; padding: 8px 9px; border-radius: 8px; opacity: .8; }
.langs a[aria-current] { opacity: 1; background: rgba(255,255,255,.18); }
.langs a:hover { opacity: 1; }
.top .btn-ghost { border: 1px solid rgba(255,255,255,.7); background: transparent; color: #fff; border-radius: 999px; padding: 9px 18px; font-weight: 600; font-size: 14px; cursor: pointer; }
.top .btn-ghost:hover { background: rgba(255,255,255,.14); }

/* ---------- úvod ---------- */
.hero { position: relative; height: min(88vh, 820px); min-height: 520px; background: #31424d; color: #fff; overflow: hidden; }
.hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,24,30,.55) 0%, rgba(15,24,30,0) 30%, rgba(15,24,30,0) 50%, rgba(15,24,30,.72) 100%); }
.hero .wrap { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(36px, 7vh, 72px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; }
.hero .eyebrow { opacity: .9; margin-bottom: 10px; }
.hero h1 { font-family: var(--font-display); font-weight: 500; font-size: clamp(46px, 8vw, 92px); line-height: .98; letter-spacing: -.01em; }
.hero p.lead { font-size: clamp(17px, 2vw, 20px); max-width: 620px; margin-top: 14px; opacity: .95; }
.hero .hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .chips span { font-size: 14px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }
.btn-light { border: 0; background: #fff; color: var(--ink); border-radius: 999px; padding: 11px 20px; font-weight: 600; font-size: 15px; cursor: pointer; }

/* ---------- obsah + rezervace ---------- */
.layout { display: flex; gap: clamp(28px, 5vw, 64px); align-items: flex-start; padding-top: clamp(36px, 6vw, 64px); padding-bottom: 72px; }
.content { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: clamp(40px, 6vw, 64px); }
.content h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(32px, 4vw, 44px); line-height: 1.08; margin-bottom: 16px; }
.content h3 { font-size: 15px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 8px; }
.content p + p { margin-top: 12px; }
.intro p.big { font-family: var(--font-display); font-size: clamp(24px, 2.6vw, 30px); line-height: 1.3; font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 24px; }
.facts div { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.facts b { display: block; font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.facts span { font-size: 14px; color: var(--muted); }
.mosaic { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 200px 200px; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.mosaic button { border: 0; padding: 0; cursor: zoom-in; background: #cfd6d6; overflow: hidden; }
.mosaic button:first-child { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.mosaic button:hover img { transform: scale(1.03); }
.mosaic .btn-light { position: absolute; right: 14px; bottom: 14px; box-shadow: var(--shadow); }
ul.list { padding: 0; list-style: none; display: grid; gap: 8px; margin: 14px 0; }
ul.list li { padding-left: 22px; position: relative; }
ul.list li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 2px; background: var(--wood); transform: rotate(45deg); }
.note-soft { color: var(--muted); font-size: 15px; }
.seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.seasons div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.seasons p { font-size: 15px; }
.info { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.info div { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.info p { font-size: 15px; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.g-item { border: 0; padding: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; cursor: zoom-in; background: #cfd6d6; }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.map-link { display: inline-flex; margin-top: 14px; font-weight: 600; color: var(--wood-dark); }

/* ---------- lightbox ---------- */
dialog.lightbox { border: 0; padding: 0; background: rgba(10,15,18,.96); width: 100vw; height: 100dvh; max-width: none; max-height: none; color: #fff; }
dialog.lightbox::backdrop { background: rgba(10,15,18,.96); }
.lightbox img { position: absolute; inset: 56px 64px; width: calc(100% - 128px); height: calc(100% - 112px); object-fit: contain; }
.lightbox button { position: absolute; border: 0; background: rgba(255,255,255,.12); color: #fff; width: 48px; height: 48px; border-radius: 999px; font-size: 22px; cursor: pointer; }
.lb-x { top: 12px; right: 12px; }
.lb-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 10px; top: 50%; transform: translateY(-50%); }
.lb-n { position: absolute; top: 22px; left: 20px; font-size: 14px; opacity: .8; }

/* ---------- patička ---------- */
footer { background: var(--ink); color: #DDE5E8; padding: 48px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 15px; }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
footer b.f-brand { font-family: var(--font-display); font-size: 28px; font-weight: 600; color: #fff; display: block; }
footer h4 { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9FB0B8; margin-bottom: 8px; }
footer a { color: #fff; }
footer p + p { margin-top: 6px; }
.legal { max-width: 760px; padding-top: 120px; padding-bottom: 80px; }
.legal h1 { font-family: var(--font-display); font-weight: 500; font-size: 44px; margin-bottom: 20px; }
.legal h2 { font-size: 18px; margin: 24px 0 8px; }
.legal p + p { margin-top: 10px; }
.top.solid { position: static; background: var(--ink); }

/* ---------- rezervační box a platba (kit) ---------- */
.btn-dark { border: 0; border-radius: 10px; background: var(--ink); color: #fff; font-weight: 600; font-size: 16px; padding: 16px 24px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.btn-dark:hover { background: var(--ink-2); }
.field { display: flex; flex-direction: column; gap: 4px; padding: 10px 16px; border-radius: 10px; background: var(--paper); min-width: 0; }
.field-outline { background: var(--card); border: 1px solid var(--line-2); }
.field > span { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.field input { border: 0; background: transparent; font-weight: 500; font-size: 16px; padding: 0; min-height: 26px; width: 100%; }
.field input:focus { outline: none; }
.field:focus-within { box-shadow: 0 0 0 2px var(--wood); }
.form-error { color: var(--err); font-size: 14px; font-weight: 500; }
.linkbtn { align-self: flex-start; font-weight: 600; font-size: 15px; padding: 0; border: 0; background: transparent; color: var(--wood-dark); text-decoration: underline; cursor: pointer; }
.booking { flex: 0 0 380px; min-width: 0; position: sticky; top: 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.booking .price-from { font-size: 16px; color: var(--muted); }
.booking .price-from strong { font-family: var(--font-display); font-size: 32px; font-weight: 600; color: var(--ink); }
.booking h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; line-height: 1.1; }
.bk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; }
.bk-fields label { display: flex; flex-direction: column; gap: 4px; padding: 11px 14px; min-width: 0; }
.bk-fields label.full { grid-column: 1 / -1; }
.bk-fields span { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.bk-fields input { border: 0; font-weight: 500; font-size: 16px; padding: 0; width: 100%; background: transparent; min-height: 26px; cursor: pointer; user-select: none; -webkit-user-select: none; caret-color: transparent; }
.bk-fields input::placeholder { color: var(--muted); opacity: 1; }
.bk-fields input:focus { outline: none; }
.bk-fields label:focus-within { box-shadow: inset 0 0 0 2px var(--wood); }
.breakdown { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 9px 0; font-size: 15px; }
.breakdown[hidden] { display: none; }
.breakdown dt { color: var(--muted); }
.breakdown dd { margin: 0; text-align: right; white-space: nowrap; padding-left: 16px; }
.breakdown .disc { color: var(--ok); }
.breakdown .tot { font-weight: 600; color: var(--ink); padding-top: 12px; border-top: 1px solid var(--line); }
.breakdown dd.incl { grid-column: 1 / -1; text-align: left; white-space: normal; font-size: 13px; color: var(--muted); margin-top: -2px; padding-left: 0; }
.bk-status { font-size: 14px; color: var(--muted); }
.bk-status:empty { display: none; }
.bk-status.err { color: var(--err); font-weight: 500; }
.promo-row { display: flex; gap: 8px; }
.promo-row input { flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; font-size: 16px; text-transform: uppercase; }
.promo-row button { border: 1px solid var(--ink); background: var(--ink); color: #fff; border-radius: 10px; padding: 0 16px; font-weight: 600; cursor: pointer; min-height: 44px; }
.promo-msg { font-size: 14px; font-weight: 500; margin-top: 6px; }
.promo-msg:empty { display: none; }
.promo-msg.ok { color: var(--ok); }
.promo-msg.bad { color: var(--err); }
.booking .cta { padding: 16px; border-radius: 12px; width: 100%; }
.booking .note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.plans { border: 0; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 8px; }
.plans legend { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.plans[hidden] { display: none; }
.js-plans { display: flex; flex-direction: column; gap: 8px; }
.plan { display: grid; grid-template-columns: 20px 1fr auto; gap: 4px 10px; align-items: start; border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--card); }
.plan:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.plan input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ink); }
.plan-t { font-size: 15px; line-height: 1.35; }
.plan-t em { font-style: normal; color: var(--ok); font-size: 13px; font-weight: 600; }
.plan-p { font-weight: 600; font-size: 15px; white-space: nowrap; }
.plan-n { grid-column: 2 / 4; font-size: 13px; line-height: 1.45; color: var(--muted); }
.plan.single { display: flex; flex-direction: column; gap: 4px; cursor: default; border-color: var(--line); box-shadow: none; }
.guests-field { grid-column: 1 / -1; border-top: 1px solid var(--line-2); }
.gf-toggle { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; width: 100%; text-align: left; background: transparent; border: 0; padding: 11px 14px; cursor: pointer; gap: 4px 8px; align-items: center; }
.gf-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gf-sum { grid-row: 2; font-style: normal; font-weight: 500; font-size: 16px; min-height: 26px; line-height: 26px; }
.gf-toggle svg { grid-row: 1 / 3; grid-column: 2; transition: transform .15s; }
.gf-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.gf-toggle:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--wood); }
.gf-panel { padding: 4px 14px 14px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); }
.gf-panel[hidden] { display: none; }
.gf-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 8px; }
.gf-t { display: flex; flex-direction: column; }
.gf-t b { font-size: 15px; font-weight: 600; }
.gf-t small { font-size: 13px; color: var(--muted); }
.gf-step { display: flex; align-items: center; gap: 10px; }
.gf-step button { width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 18px; line-height: 1; cursor: pointer; }
.gf-step button:disabled { opacity: .35; cursor: default; }
.gf-step output { min-width: 18px; text-align: center; font-weight: 600; font-size: 16px; }
.gf-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.gf-done { align-self: flex-end; background: var(--ink); color: #fff; border: 0; border-radius: 999px; padding: 8px 18px; font-weight: 600; cursor: pointer; }

.flatpickr-calendar { font-family: var(--font-body); border-radius: 14px; box-shadow: 0 18px 50px rgba(28,42,51,.22); border: 1px solid var(--line); }
.flatpickr-calendar.arrowTop::before, .flatpickr-calendar.arrowTop::after { display: none; }
.flatpickr-months .flatpickr-month { height: 44px; }
.flatpickr-current-month { font-size: 16px; font-weight: 600; padding-top: 10px; }
.flatpickr-months .flatpickr-prev-month, .flatpickr-months .flatpickr-next-month { height: 44px; width: 44px; display: flex; align-items: center; justify-content: center; padding: 0; }
.flatpickr-day { border-radius: 10px; font-weight: 500; height: 40px; line-height: 40px; max-width: 40px; }
.flatpickr-day.today { border-color: var(--wood); }
.flatpickr-day.selected, .flatpickr-day.startRange, .flatpickr-day.endRange,
.flatpickr-day.selected:hover, .flatpickr-day.startRange:hover, .flatpickr-day.endRange:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.flatpickr-day.inRange { background: var(--range); border-color: var(--range); box-shadow: -5px 0 0 var(--range), 5px 0 0 var(--range); color: var(--ink); }
.flatpickr-day.flatpickr-disabled, .flatpickr-day.flatpickr-disabled:hover { color: #BCC4C5; text-decoration: line-through; text-decoration-color: #D3D9DA; }
.flatpickr-day:hover { background: var(--paper); border-color: var(--line); }
.flatpickr-day.fp-soft-disabled { color: #BCC4C5; }
.flatpickr-day.fp-soft-disabled:hover { background: transparent; border-color: transparent; cursor: not-allowed; }

dialog.checkout { border: 0; padding: 0; border-radius: var(--radius-lg); width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
dialog.checkout::backdrop { background: rgba(28, 42, 51, 0.6); }
.co-inner { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.co-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.co-head h2 { font-family: var(--font-display); font-weight: 500; font-size: 28px; }
.co-x { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 16px; cursor: pointer; }
.co-form { display: flex; flex-direction: column; gap: 12px; }
.co-sum { background: var(--paper); border-radius: var(--radius); padding: 14px 16px; }
.co-sum-t { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.co-sum-l { font-size: 15px; }
.co-sum .breakdown { margin-top: 10px; }
.co-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.co-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.co-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); flex: none; }
.co-submit { width: 100%; }
.co-submit:disabled { opacity: .6; cursor: progress; }
.co-ok { text-align: center; display: flex; flex-direction: column; gap: 10px; align-items: center; padding: 10px 0; }
.co-ok-ico { width: 56px; height: 56px; border-radius: 999px; background: var(--ok); color: #fff; font-size: 28px; display: grid; place-items: center; }
.co-ok h3 { font-family: var(--font-display); font-weight: 500; font-size: 26px; }
.co-codes { font-weight: 600; }
.co-ok[hidden], .co-form[hidden], .form-error[hidden] { display: none; }
.co-plan { font-size: 13px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
.mobile-book { display: none; }

@media (max-width: 980px) {
  .layout { flex-direction: column; }
  .content { display: contents; }
  .content > .intro { order: 1; }
  .booking { order: 2; position: static; flex-basis: auto; width: 100%; }
  .content > :not(.intro) { order: 3; }
  .layout > * + * { margin-top: 0; }
  .layout { gap: 44px; }
  .mobile-book { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; 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: 12px; box-shadow: 0 -8px 24px rgba(28,42,51,.08); }
  .mobile-book .p { font-size: 14px; color: var(--muted); }
  .mobile-book .p strong { font-size: 18px; color: var(--ink); }
  .mobile-book .btn-dark { padding: 13px 20px; }
  body { padding-bottom: 76px; }
  footer .wrap { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .brand small { font-size: 9.5px; letter-spacing: .12em; white-space: nowrap; }
  .top .btn-ghost { display: none; }
  .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 220px 130px; }
  .mosaic button:first-child { grid-column: 1 / 3; grid-row: 1; }
  .mosaic button:nth-child(n+4) { display: none; }
  .seasons, .info { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .lightbox img { inset: 56px 0; width: 100%; }
  .lb-prev, .lb-next { top: auto !important; bottom: 18px; transform: none !important; }
}
@media (max-width: 560px) { .co-grid { grid-template-columns: 1fr; } .co-inner { padding: 18px; } }
