:root {
  --forest: #2c4a3e;
  --forest-deep: #1c3129;
  --sage: #4a6b52;
  --wood: #8a6846;
  --cream: #f3eee4;
  --paper: #fbf8f2;
  --ink: #241f1a;
  --muted: #6b6359;
  --line: #e6dccb;
  --daisy: #e8c547;
  --white: #fffcf7;
  --shadow: 0 8px 28px rgba(36, 31, 26, 0.12);
  --radius: 16px;
  --nav: 72px;
  --max: 1120px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
.skip-link {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 100;
  background: var(--forest);
  color: var(--white);
  padding: 8px 14px;
  border-radius: 8px;
}
.skip-link:focus { top: 12px; }
:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 3px;
}
#chaloupka, #vybaveni, #okoli, #cenik, #kontakt, #faq, #osobni-udaje, #obsah {
  scroll-margin-top: calc(var(--nav) + 16px);
}

body {
  margin: 0;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 17px;
}

img { max-width: 100%; display: block; }

a { color: var(--forest); }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav);
  background: rgba(251, 248, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  font-family: "Great Vibes", "Segoe Script", "Apple Chancery", cursive;
  font-weight: 400;
  font-style: normal;
  letter-spacing: 0.02em;
  line-height: 0.9;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  min-width: 0;
}
.brand .wordmark {
  font-size: 1.62em;
  font-weight: 400;
  letter-spacing: 0.02em;
}
.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
}
.nav-links {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 15px;
}
.nav-links a:hover { color: var(--forest); }
.nav-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.nav-phone {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  font-weight: 650;
  font-size: 15px;
  border-radius: 999px;
  padding: 12px 20px;
  transition: transform 0.15s, background 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--forest);
  color: var(--white);
}
.btn-primary:hover { background: var(--forest-deep); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-full { width: 100%; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 210px 210px;
  gap: 8px;
  margin: 24px auto 28px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
}
.gallery a:first-child { grid-row: 1 / 3; }
.gallery a {
  position: relative;
  overflow: hidden;
  background: var(--cream);
}
.gallery picture, .gallery img {
  width: 100%;
  height: 100%;
  display: block;
}
.gallery img {
  object-fit: cover;
  object-position: center 58%;
  transition: transform 0.4s;
}
.gallery a:first-child img { object-position: 28% 52%; }
.gallery a:nth-child(2) img { object-position: center 42%; }
.gallery a:nth-child(3) img { object-position: center 55%; }
.gallery a:nth-child(4) img { object-position: center 45%; }
.gallery a:nth-child(5) img { object-position: center 40%; }
.gallery-extra, .gallery a[hidden] { display: none !important; }
.gallery a:hover img { transform: scale(1.03); }
.gallery-more {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: var(--white);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 650;
  font-family: inherit;
  cursor: pointer;
  z-index: 2;
}
.gallery-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 auto 28px;
}

/* Title */
.title-row { margin-bottom: 8px; }
h1, h2, h3 { font-family: "Fraunces", Georgia, serif; letter-spacing: -0.03em; }
h1 {
  font-size: clamp(32px, 4vw, 46px);
  font-weight: 550;
  margin: 0 0 8px;
  line-height: 1.15;
}
h1 .wordmark {
  font-size: 1.22em;
  display: inline-block;
  letter-spacing: 0.03em;
}
.lede-title {
  margin: 0 0 10px;
  font-size: 18px;
  color: var(--muted);
}
.footer h2 .wordmark {
  font-size: 1.42em;
  display: inline-block;
}
.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 15px;
  margin: 0 0 28px;
}
.meta strong { color: var(--ink); font-weight: 650; }

/* Layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 56px;
  align-items: start;
  padding-bottom: 80px;
}
.section {
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  font-size: 24px;
  font-weight: 550;
  margin: 0 0 14px;
}
.lede {
  font-size: 18px;
  margin: 0 0 16px;
}
.muted { color: var(--muted); }

.highlights {
  display: grid;
  gap: 14px;
  margin: 0;
}
.highlight {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  align-items: start;
}
.highlight strong { display: block; }
.highlight svg { margin-top: 4px; color: var(--forest); }

.sleep-grid, .amenity-grid, .near-grid {
  display: grid;
  gap: 12px;
}
.sleep-grid { grid-template-columns: 1fr 1fr; }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  background: var(--white);
}
.card h3 { margin: 0 0 6px; font-size: 18px; font-weight: 550; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.amenity-grid { grid-template-columns: 1fr 1fr; }
.amenity {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 15px;
}
.amenity::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.near-grid { grid-template-columns: 1fr 1fr; }
.near {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.near:last-child { border-bottom: 0; }
.near-kicker {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 700;
}
.near h3 { margin: 4px 0 4px; font-size: 17px; }
.rules { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.rules li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.rules li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--sage);
  flex-shrink: 0;
}

.map-frame {
  border: 0;
  width: 100%;
  height: 320px;
  border-radius: var(--radius);
  margin-top: 12px;
  filter: saturate(0.85);
}

/* Booking card */
.booking {
  position: sticky;
  top: calc(var(--nav) + 18px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 4px;
}
.price b {
  font-family: "Fraunces", Georgia, serif;
  font-size: 32px;
  font-weight: 550;
}
.price-note, .booking .muted { font-size: 14px; margin: 0 0 16px; }
.price-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 14px;
}
.price-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.form { display: grid; gap: 10px; position: relative; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
input, textarea, select {
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--paper);
}
textarea { min-height: 88px; resize: vertical; }
.consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  text-transform: none;
}
.consent input { margin-top: 3px; }
.consent a { color: inherit; }
.honey {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: 14px;
  min-height: 1.2em;
  margin: 0;
}
.host {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.host img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
}

/* Footer */
.footer {
  background: var(--forest-deep);
  color: #e7efe9;
  padding: 48px 0 28px;
}
.footer a { color: #e7efe9; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}
.footer h2, .footer h3 {
  color: var(--white);
  margin: 0 0 10px;
}
.footer p { margin: 0 0 8px; color: #c5d4cc; }
.footer-copy {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 16px;
  font-size: 13px;
  color: #9fb3a8;
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 80;
  padding: 24px;
}
.lightbox.open { display: flex; }
body.lightbox-lock { overflow: hidden; }
.lightbox img {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox button {
  position: absolute;
  background: var(--white);
  border: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 22px;
}
.lightbox-close { top: 18px; right: 18px; }
.lightbox-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 18px; top: 50%; transform: translateY(-50%); }
.lightbox-count {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 14px;
}

/* Mobile bar */
.mobile-bar {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 30;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow);
  padding: 8px;
  gap: 8px;
}
.mobile-bar .btn { flex: 1; }

.thanks-page { min-height: 100vh; display: grid; place-items: center; }
.thanks {
  text-align: center;
  padding: 40px 20px;
}
.thanks img { margin: 0 auto 16px; border-radius: 50%; }

.faq { display: grid; gap: 8px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  padding: 12px 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 650;
}
.faq details p { margin: 8px 0 0; color: var(--muted); }

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 22px;
  cursor: pointer;
  width: 44px;
  height: 44px;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; gap: 28px; }
  .booking { position: static; }
  .sleep-grid, .near-grid { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 120px 120px;
  }
  .gallery a:first-child { grid-column: 1 / 3; grid-row: auto; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-phone, .nav-cta .btn-primary { display: none; }
  .nav-toggle { display: block; }
  .brand .wordmark { font-size: 1.28em; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: var(--nav);
    left: 0;
    right: 0;
    background: var(--paper);
    flex-direction: column;
    padding: 16px 20px 20px;
    border-bottom: 1px solid var(--line);
  }
  .mobile-bar { display: flex; }
  body { padding-bottom: 84px; }
}

@media (max-width: 640px) {
  .wrap { width: min(var(--max), calc(100% - 28px)); }
  .form-row, .amenity-grid { grid-template-columns: 1fr; }
  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 200px 100px;
    height: auto;
  }
  .gallery > a:nth-child(n+4):not(.gallery-extra) { display: none; }
  .gallery-more { font-size: 12px; padding: 7px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
