/* Chata Šutračka – styly */
:root {
  --les: #1f3b2d;
  --les-2: #2c5240;
  --drevo: #c0661f;
  --drevo-2: #a55316;
  --kamen: #eceae4;
  --papir: #faf8f4;
  --text: #22261f;
  --text-2: #5b6157;
  --linka: #dcd8ce;
  --radius: 14px;
  --max: 1120px;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--papir);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--drevo-2); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--les); margin: 0 0 .5em; font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
section { padding: 88px 0; }
.eyebrow { font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--drevo); font-weight: 700; margin-bottom: .6em; }
.lead { font-size: 1.15rem; color: var(--text-2); max-width: 62ch; }

/* ---------- Hlavička ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .25s, box-shadow .25s;
}
.top.solid { background: rgba(250, 248, 244, .96); box-shadow: 0 1px 0 var(--linka); backdrop-filter: blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: #fff; text-decoration: none; display: flex; align-items: center; gap: .5em; }
.logo svg { width: 26px; height: 26px; }
.top.solid .logo { color: var(--les); }
.menu { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.menu a { display: block; padding: 8px 12px; border-radius: 8px; color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; }
.menu a:hover { background: rgba(255,255,255,.15); }
.top.solid .menu a { color: var(--text); }
.top.solid .menu a:hover { background: var(--kamen); }
.menu .cta a { background: var(--drevo); color: #fff !important; }
.menu .cta a:hover { background: var(--drevo-2); }
.burger { display: none; background: none; border: 0; padding: 8px; color: #fff; cursor: pointer; }
.top.solid .burger { color: var(--les); }

/* ---------- Úvod ---------- */
.hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  color: #fff; padding: 0 0 72px;
  background: var(--les) center 40% / cover no-repeat;
  background-image: image-set(url("img/chata-podzim-siroka.webp") type("image/webp"), url("img/chata-podzim-siroka.jpg") type("image/jpeg"));
}
.hero::before { content: ""; position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(12,24,18,.72) 0%, rgba(12,24,18,.45) 40%, rgba(12,24,18,0) 70%),
  linear-gradient(180deg, rgba(12,24,18,.55) 0%, rgba(12,24,18,0) 25%, rgba(12,24,18,.25) 50%, rgba(12,24,18,.88) 100%); }
.hero p { text-shadow: 0 1px 3px rgba(0,0,0,.6), 0 2px 16px rgba(0,0,0,.45); }
.hero .wrap { position: relative; width: 100%; }
.hero .eyebrow { color: #fff !important; opacity: 1; font-size: .9rem; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.hero h1 { color: #fff; font-size: clamp(2.6rem, 7vw, 4.6rem); margin-bottom: .2em; text-shadow: 0 2px 6px rgba(0,0,0,.5), 0 4px 28px rgba(0,0,0,.4); }
.hero p { font-size: clamp(1.05rem, 2vw, 1.3rem); max-width: 40ch; opacity: .95; }
.hero .btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-block; padding: 14px 24px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem; }
.btn-main { background: var(--drevo); color: #fff; }
.btn-main:hover { background: var(--drevo-2); }
.btn-ghost { border: 1.5px solid rgba(255,255,255,.8); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.12); }

/* ---------- Fakta ---------- */
.facts { background: var(--les); color: #fff; padding: 0; }
.facts ul { list-style: none; margin: 0; padding: 26px 20px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; max-width: var(--max); margin: 0 auto; }
.facts li { display: flex; flex-direction: column; }
.facts strong { font-family: var(--serif); font-size: 1.8rem; font-weight: 600; line-height: 1.1; }
.facts span { font-size: .9rem; opacity: .8; }

/* ---------- O chatě ---------- */
.about .grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about figure { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; }
.about figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; }
.rooms { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0 0; }
.room { background: #fff; border: 1px solid var(--linka); border-radius: 12px; padding: 16px; text-align: center; }
.room b { display: block; font-family: var(--serif); font-size: 1.9rem; color: var(--les); line-height: 1; }
.room small { color: var(--text-2); font-size: .85rem; }

/* ---------- Vybavení ---------- */
.equip { background: var(--kamen); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.card { background: #fff; border-radius: var(--radius); padding: 26px; }
.card svg { width: 30px; height: 30px; color: var(--drevo); margin-bottom: 12px; }
.card ul { margin: 0; padding-left: 1.1em; color: var(--text-2); font-size: .97rem; }
.card li { margin: .2em 0; }

/* ---------- Galerie ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters button { font: inherit; font-size: .92rem; font-weight: 600; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--linka); background: #fff; color: var(--text); cursor: pointer; }
.filters button:hover { border-color: var(--les-2); }
.filters button.active { background: var(--les); border-color: var(--les); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.gallery-grid a { display: block; border-radius: 10px; overflow: hidden; background: var(--kamen); aspect-ratio: 1 / 1; }
.gallery-grid a[hidden] { display: none; }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-grid a:hover img { transform: scale(1.04); }
.more-wrap { text-align: center; margin-top: 24px; }
.more-wrap[hidden] { display: none; }
.btn-outline { font: inherit; font-weight: 600; background: #fff; border: 1.5px solid var(--les); color: var(--les); cursor: pointer; }
.btn-outline:hover { background: var(--les); color: #fff; }
.lightbox { position: fixed; inset: 0; background: rgba(10,15,12,.92); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Ceník ---------- */
.prices { background: var(--kamen); }
.seasons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.season { background: #fff; border-radius: var(--radius); padding: 28px; border-top: 5px solid var(--les-2); }
.season.winter { border-top-color: #4b7a9c; }
.season.off { border-top-color: var(--drevo); }
.season .when { color: var(--text-2); font-size: .92rem; margin-bottom: 18px; }
.season dl { margin: 0; display: grid; grid-template-columns: 1fr auto; gap: 10px 14px; font-size: .97rem; }
.season dt { color: var(--text-2); }
.season dd { margin: 0; font-weight: 700; text-align: right; white-space: nowrap; }
.season .big { font-family: var(--serif); font-size: 2.2rem; color: var(--les); line-height: 1; }
.season .big small { font-family: var(--sans); font-size: .9rem; color: var(--text-2); font-weight: 400; }
.extras { margin-top: 24px; background: #fff; border-radius: var(--radius); padding: 24px 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 40px; font-size: .97rem; }
.extras div { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--linka); }
.extras b { white-space: nowrap; }
.note { font-size: .9rem; color: var(--text-2); margin-top: 18px; }

/* ---------- Termíny ---------- */
.dates table { width: 100%; border-collapse: collapse; margin-top: 28px; background: #fff; border-radius: var(--radius); overflow: hidden; }
.dates th, .dates td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--linka); }
.dates th { background: var(--les); color: #fff; font-weight: 600; font-size: .9rem; }
.dates tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.tag.free { background: #e1efe5; color: #1f6b3a; }
.tag.busy { background: #f6e3dc; color: #9a3b1c; }
.cal { margin-top: 28px; background: #fff; border-radius: var(--radius); padding: 16px; border: 1px solid var(--linka); }
.cal iframe { display: block; width: 100%; border: 0; min-height: 460px; }
.updated { font-size: .9rem; color: var(--text-2); margin-top: 12px; }

/* ---------- Okolí ---------- */
.area { background: var(--kamen); }
.area .grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 36px; }
.dist { list-style: none; padding: 0; margin: 0; }
.dist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linka); }
.dist li span:last-child { font-weight: 700; color: var(--les); white-space: nowrap; }

/* ---------- Časté dotazy ---------- */
.faq-list { margin-top: 28px; max-width: 820px; }
.faq details { background: #fff; border: 1px solid var(--linka); border-radius: 12px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--les); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--drevo); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--text-2); }

/* ---------- Kontakt ---------- */
.faq + .contact { padding-top: 0; }
.contact .grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 40px; align-items: stretch; }
.contact-box { background: var(--les); color: #fff; border-radius: var(--radius); padding: 36px; }
.contact-box h2 { color: #fff; }
.contact-box a { color: #fff; }
.contact-line { display: flex; gap: 14px; align-items: flex-start; margin: 18px 0; }
.contact-line svg { flex: none; width: 22px; height: 22px; margin-top: 3px; color: #f0a66a; }
.contact-line small { display: block; opacity: .75; font-size: .85rem; }
.contact-line big { font-size: 1.15rem; font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; min-height: 380px; background: var(--kamen); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

footer { background: #15281f; color: rgba(255,255,255,.7); padding: 28px 0; font-size: .9rem; }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
footer a { color: rgba(255,255,255,.9); }

/* ---------- Mobil ---------- */
@media (max-width: 900px) {
  section { padding: 64px 0; }
  .burger { display: block; }
  .menu { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; background: var(--papir); padding: 10px 16px 18px; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .menu.open { display: flex; }
  .menu a { color: var(--text) !important; padding: 12px; }
  .menu .cta a { text-align: center; margin-top: 6px; }
  .facts ul { grid-template-columns: repeat(2, 1fr); }
  .about .grid, .contact .grid, .area .grid { grid-template-columns: 1fr; gap: 32px; }
  .about figure { aspect-ratio: 4 / 3; }
  .about figure img { object-position: center 55%; }
  .room small { display: block; line-height: 1.3; margin-top: 4px; }
  .hero::before { background: linear-gradient(180deg, rgba(12,24,18,.55) 0%, rgba(12,24,18,0) 20%, rgba(12,24,18,.35) 45%, rgba(12,24,18,.92) 100%); }
  .hero { min-height: 88vh; background-position: 30% center; background-image: image-set(url("img/chata-podzim-vyska-maly.webp") type("image/webp"), url("img/chata-podzim-vyska-maly.jpg") type("image/jpeg")); }
  .cards, .seasons { grid-template-columns: 1fr; }
  .extras { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
  .dates th, .dates td { padding: 12px; font-size: .92rem; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .wrap { padding: 0 16px; }
  .rooms { gap: 8px; }
  .contact-box { padding: 26px; }
}
