:root {
  --bg: #0b0b0c;
  --bg2: #121214;
  --panel: #17171a;
  --panel2: #1e1e22;
  --line: #2a2a2f;
  --text: #ecebe6;
  --muted: #9d9b93;
  --gold: #c8a96a;
  --gold2: #e2c98f;
  --olive: #8d9a5b;
  --danger: #e06c6c;
  --ok: #8fc27c;
  --radius: 14px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 300 16px/1.7 var(--sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--gold2); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; color: #fff; letter-spacing: .01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.55rem; color: var(--gold2); }
h4 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; color: #fff; }
.muted { color: var(--muted); }
.lead { color: var(--muted); font-size: 1.1rem; max-width: 760px; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Navigácia */
.topnav { position: sticky; top: 0; z-index: 50; background: rgba(11,11,12,.82); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.has-adminbar .topnav { top: 44px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: #fff; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--gold); border-radius: 50%; color: var(--gold); font-size: 1rem; letter-spacing: .08em; }
.nav-links { display: flex; gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a { color: var(--muted); font-size: .82rem; font-weight: 400; padding: 8px 9px; white-space: nowrap; border-radius: 999px; letter-spacing: .02em; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: var(--bg); background: var(--gold); }
.menu-btn { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.menu-btn span { display: block; height: 2px; background: #fff; margin: 6px 0; transition: .3s; }
@media (max-width: 1240px) {
  .menu-btn { display: block; }
  .nav-links { position: fixed; inset: 74px 0 auto 0; flex-direction: column; background: var(--bg); padding: 12px 16px 24px; border-bottom: 1px solid var(--line); transform: translateY(-120%); transition: transform .35s ease; }
  .has-adminbar .nav-links { top: 118px; }
  .nav-links.open { transform: none; }
  .nav-links a { font-size: 1.05rem; padding: 12px 14px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}

/* Hero */
.hero { position: relative; min-height: 42vh; display: flex; align-items: flex-end; padding: 120px 0 64px; background: radial-gradient(1200px 500px at 80% -10%, rgba(200,169,106,.16), transparent 60%), linear-gradient(180deg, #111113, var(--bg)); background-size: cover; background-position: center; border-bottom: 1px solid var(--line); }
.hero.has-img { min-height: 68vh; }
.hero.has-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,11,12,.35) 0%, rgba(11,11,12,.55) 50%, rgba(11,11,12,.96) 100%); }
.hero-inner { position: relative; width: min(1180px, 100% - 32px); margin-inline: auto; }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); max-width: 900px; margin-bottom: .35em; }
.hero p { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #d8d5cc; max-width: 640px; margin-bottom: 1.6em; }
.hero h1::before { content: ''; display: block; width: 56px; height: 2px; background: var(--gold); margin-bottom: 24px; }

/* Tlačidlá */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--gold); color: #111; border: 1px solid var(--gold); padding: 11px 22px; border-radius: 999px; font: 500 .95rem var(--sans); cursor: pointer; transition: .2s; }
.btn:hover { background: var(--gold2); border-color: var(--gold2); color: #111; transform: translateY(-1px); }
.btn-lg { padding: 15px 30px; font-size: 1rem; }
.btn-sm { padding: 6px 14px; font-size: .82rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel2); color: #fff; border-color: var(--muted); }
.btn:disabled { opacity: .5; cursor: wait; transform: none; }

/* Bloky */
.blocks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 28px; padding: 72px 0 96px; }
.block { grid-column: span 6; min-width: 0; }
.block.w-half { grid-column: span 3; }
.block.w-third { grid-column: span 2; }
@media (max-width: 960px) { .block.w-third { grid-column: span 3; } }
@media (max-width: 720px) { .block.w-half, .block.w-third { grid-column: span 6; } .blocks { gap: 20px; padding: 48px 0 64px; } }
.s-card { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 36px); }
.s-accent { border-left: 2px solid var(--gold); padding-left: 26px; }
.block-text .rich > :last-child { margin-bottom: 0; }
.rich ul, .rich ol { padding-left: 1.2em; margin: 0 0 1em; }
.rich li { margin-bottom: .4em; }
.rich li::marker { color: var(--gold); }
.rich blockquote { margin: 0 0 1em; padding: 12px 20px; border-left: 2px solid var(--gold); color: var(--muted); font-style: italic; }
.rich table { width: 100%; border-collapse: collapse; margin: 0 0 1em; }
.rich td, .rich th { padding: 12px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rich td:last-child { text-align: right; font-size: 1.15rem; }
.rich td:last-child strong { color: var(--gold2); font-family: var(--serif); font-size: 1.5rem; }
.rich img { border-radius: 10px; margin: 0 0 1em; }
.rich hr { border: 0; border-top: 1px solid var(--line); margin: 1.5em 0; }
.section-title { margin-bottom: .3em; }

.img-block img { width: 100%; border-radius: var(--radius); }
.img-block figcaption { color: var(--muted); font-size: .9rem; margin-top: 8px; }
.img-empty { border: 1px dashed var(--line); border-radius: var(--radius); padding: 48px; text-align: center; color: var(--muted); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 18px; }
.g-item { position: relative; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; background: var(--panel); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.g-item:hover img { transform: scale(1.06); }
.g-item span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 10px; background: linear-gradient(transparent, rgba(0,0,0,.8)); color: #fff; font-size: .85rem; text-transform: capitalize; }
.gallery-empty { margin-top: 8px; font-style: italic; }

.video { position: relative; width: 100%; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; height: 100%; min-height: 240px; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: clamp(28px, 5vw, 56px); border-radius: 20px; background: radial-gradient(600px 300px at 100% 0%, rgba(200,169,106,.22), transparent 70%), var(--panel); border: 1px solid var(--line); }
.cta h2 { margin-bottom: .2em; }
.cta p { margin: 0; color: var(--muted); }

.map { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 420px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(.9) hue-rotate(180deg) saturate(.6) brightness(.95); }
.map-link { position: absolute; right: 14px; bottom: 14px; background: var(--gold); color: #111; padding: 8px 16px; border-radius: 999px; font-weight: 500; font-size: .9rem; }

/* Rezervácia */
.reservation { background: linear-gradient(180deg, var(--panel), var(--bg2)); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 48px); scroll-margin-top: 110px; }
.res-form fieldset { border: 0; padding: 0; margin: 28px 0 0; min-width: 0; }
.res-form legend { font-family: var(--serif); font-size: 1.35rem; color: var(--gold2); margin-bottom: 14px; padding: 0; }
.room-group { margin-bottom: 14px; }
.room-group-title { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.room-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.room-chip { position: relative; cursor: pointer; }
.room-chip input { position: absolute; opacity: 0; }
.room-chip span { display: flex; flex-direction: column; padding: 12px 16px 12px 44px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg2); transition: .2s; position: relative; }
.room-chip span::before { content: ''; position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border: 1px solid var(--muted); border-radius: 5px; transition: .2s; }
.room-chip small { color: var(--muted); font-size: .8rem; }
.room-chip strong { font-weight: 500; }
.room-chip input:checked + span { border-color: var(--gold); background: rgba(200,169,106,.08); }
.room-chip input:checked + span::before { background: var(--gold); border-color: var(--gold); box-shadow: inset 0 0 0 3px var(--bg2); }
.room-chip input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.grid2, .grid3 { display: grid; gap: 14px 16px; }
.grid2 { grid-template-columns: 1fr 1fr; }
.grid3 { grid-template-columns: repeat(3, 1fr); }
.span2 { grid-column: span 2; }
@media (max-width: 640px) { .grid2, .grid3 { grid-template-columns: 1fr; } .span2 { grid-column: auto; } }
.res-form label { display: flex; flex-direction: column; gap: 6px; font-size: .85rem; color: var(--muted); }
.res-form input:not([type=checkbox]), .res-form textarea { width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 12px 14px; font: 400 1rem var(--sans); transition: border-color .2s; color-scheme: dark; }
.res-form input:focus, .res-form textarea:focus { outline: none; border-color: var(--gold); }
.res-form .consent { flex-direction: row; align-items: flex-start; gap: 10px; margin: 24px 0 18px; font-size: .9rem; }
.res-form .consent input { margin-top: 4px; accent-color: var(--gold); width: 16px; height: 16px; flex: none; }
.hp { position: absolute !important; left: -9999px; }
.form-msg { margin-bottom: 16px; }
.form-msg.err { color: var(--danger); }
.form-msg.ok { color: var(--ok); background: rgba(143,194,124,.08); border: 1px solid rgba(143,194,124,.3); padding: 16px 18px; border-radius: 12px; }

/* Päta */
.footer { border-top: 1px solid var(--line); background: var(--bg2); padding: 56px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { font-family: var(--sans); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.footer .brand { margin-bottom: 12px; }
.footer-links a { display: block; color: var(--muted); margin-bottom: 4px; }
.footer-links a:hover { color: #fff; }
.copy { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; color: var(--muted); font-size: .82rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,.94); display: flex; align-items: center; justify-content: center; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 92vw; max-height: 84vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.08); border: 0; color: #fff; font-size: 2rem; width: 52px; height: 52px; border-radius: 50%; cursor: pointer; }
.lightbox button:hover { background: rgba(255,255,255,.18); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-cap { position: absolute; bottom: 22px; left: 0; right: 0; text-align: center; color: var(--muted); text-transform: capitalize; }

/* Lišta prihláseného správcu */
.adminbar { position: sticky; top: 0; z-index: 60; height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 16px; background: #000; border-bottom: 1px solid var(--gold); font-size: .82rem; color: var(--muted); }
.adminbar > div { display: flex; gap: 8px; }
@media (max-width: 560px) { .adminbar > span { display: none; } .adminbar { justify-content: flex-end; } }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Fotka nad textom (napr. Tipy na výlety) */
.block-photo { margin: 0 0 20px; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 10; background: var(--panel2); }
.block-photo img { width: 100%; height: 100%; object-fit: cover; }
.s-card .block-photo { margin: calc(-1 * clamp(22px, 3vw, 36px)) calc(-1 * clamp(22px, 3vw, 36px)) 22px; border-radius: var(--radius) var(--radius) 0 0; }

/* Online check-in */
.ci-form .ci-person { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0 0 14px; background: var(--bg2); }
.ci-form .ci-person[hidden] { display: none; }
.ci-form fieldset.ci-sk, .ci-form fieldset.ci-foreign { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.ci-form fieldset.ci-sk[hidden], .ci-form fieldset.ci-foreign[hidden] { display: none; }
.ci-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ci-head strong { font-family: var(--serif); font-size: 1.25rem; color: #fff; font-weight: 600; }
.ci-remove { background: none; border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 4px 12px; font: 400 .8rem var(--sans); cursor: pointer; }
.ci-remove:hover { color: var(--danger); border-color: var(--danger); }
.ci-type { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.res-form .ci-type label { flex-direction: row; cursor: pointer; }
.res-form .ci-type input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; margin: 0; }
.res-form .ci-type label { position: relative; }
.ci-type span { padding: 7px 16px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: .9rem; transition: .2s; }
.ci-type input:checked + span { border-color: var(--gold); color: var(--gold2); background: rgba(200,169,106,.08); }
.ci-type input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.ci-add[hidden] { display: none; }

.grid2 > *, .grid3 > * { min-width: 0; }
.res-form input:not([type=checkbox]):not([type=radio]) { min-width: 0; max-width: 100%; }

/* Cookie lišta */
.ck-link { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ck-link:hover { color: var(--gold2); }
.ck-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; min-height: 33vh; max-height: 85vh; overflow-y: auto; background: rgba(18,18,20,.97); border-top: 1px solid var(--gold); box-shadow: 0 -12px 40px rgba(0,0,0,.6); backdrop-filter: blur(8px); display: flex; flex-direction: column; justify-content: center; }
.ck-bar[hidden], .ck-modal[hidden] { display: none; }
.ck-bar-inner { padding-top: 22px; padding-bottom: 22px; }
.ck-bar h3, .ck-dialog h3 { font: 600 1.5rem/1.2 var(--serif); color: var(--gold2); margin: 0 0 8px; }
.ck-bar p, .ck-dialog p { margin: 0 0 10px; font-size: .92rem; color: var(--text); }
.ck-sub { color: var(--muted) !important; margin-top: 4px !important; }
.ck-checks { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 4px 0 16px; }
.ck-check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: .95rem; white-space: nowrap; }
.ck-check input { width: 18px; height: 18px; accent-color: var(--gold); margin: 0; cursor: pointer; }
.ck-check input:disabled { cursor: default; }
.ck-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ck-more { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 14px; font-size: .92rem; }
.ck-modal { position: fixed; inset: 0; z-index: 950; background: rgba(0,0,0,.75); display: flex; align-items: center; justify-content: center; padding: 16px; }
.ck-dialog { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); width: min(760px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 30px 30px 24px; box-shadow: 0 30px 80px rgba(0,0,0,.7); }
.ck-x { position: absolute; top: 10px; right: 12px; background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; padding: 4px 8px; }
.ck-x:hover { color: var(--text); }
.ck-h { font-size: 1.25rem !important; margin-top: 20px !important; }
.ck-cat { border-top: 1px solid var(--line); padding: 14px 0 4px; }
.ck-cat h4 { margin: 0 0 6px; font: 500 1rem var(--sans); color: var(--text); }
.ck-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.ck-cat-head h4 { margin: 0; }
.ck-cat p { color: var(--muted); margin-top: 6px; }
.ck-cat a { color: var(--gold); }
.ck-always { color: var(--ok); font-size: .85rem; white-space: nowrap; }
.ck-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.ck-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ck-slider { width: 46px; height: 26px; border-radius: 999px; background: var(--line); position: relative; transition: .2s; }
.ck-slider::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--muted); transition: .2s; }
.ck-switch input:checked + .ck-slider { background: var(--gold); }
.ck-switch input:checked + .ck-slider::after { left: 23px; background: #111; }
.ck-switch input:focus-visible + .ck-slider { outline: 2px solid var(--gold2); outline-offset: 2px; }
.ck-state::before { content: 'vypnuté'; font-size: .82rem; color: var(--muted); min-width: 56px; display: inline-block; }
.ck-switch input:checked ~ .ck-state::before { content: 'zapnuté'; color: var(--gold2); }
.ck-dialog .ck-actions { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 10px; }
.ck-open { font-size: inherit; color: inherit; }
body.ck-lock { overflow: hidden; }
@media (max-width: 640px) {
  .ck-bar { min-height: 0; max-height: 75vh; }
  .ck-bar h3, .ck-dialog h3 { font-size: 1.25rem; }
  .ck-bar p { font-size: .85rem; }
  .ck-checks { gap: 8px 18px; }
  .ck-actions .btn { flex: 1 1 130px; white-space: nowrap; padding-inline: 14px; }
  .ck-dialog { padding: 24px 18px 18px; }
}
