/* Kudu Lodge & Campsite — demo */

@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --char: #1F1611;
  --char-2: #2C2019;
  --clay: #B4462A;
  --clay-dark: #923619;
  --ember: #E8A23E;
  --sand: #F8F0E3;
  --sand-2: #F0E2CB;
  --ink: #2A1E17;
  --muted: #6A574A;
  --on-dark: #F4E9DA;
  --on-dark-muted: #C9B7A3;
  --line: rgba(42, 30, 23, 0.16);
  --line-dark: rgba(244, 233, 218, 0.18);
  --display: "Bricolage", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1200px;
  --sec: clamp(64px, 10vw, 128px);
  --radius: 14px;
}
@media (min-width: 700px) { :root { --gutter: 32px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 112px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
  overflow-x: hidden;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}
@media (min-width: 900px) { body { padding-bottom: 0; font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 0.45em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); line-height: 1.1; }
p { margin: 0 0 1em; max-width: 38em; }
figure { margin: 0; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 100; background: var(--char); color: var(--sand); padding: 8px 12px; }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; }

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

.eyebrow {
  font: 700 0.78rem/1 var(--body);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 14px;
}
.dark .eyebrow, .hero .eyebrow { color: var(--ember); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 2px solid var(--clay);
  border-radius: 999px;
  background: var(--clay);
  color: #fff;
  font: 700 1rem/1 var(--body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, border-color .15s;
}
.btn:hover { background: var(--clay-dark); border-color: var(--clay-dark); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.9rem; }
.btn-ghost { background: transparent; border-color: currentColor; color: inherit; }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: currentColor; }
.btn-ghost-dark { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); border-color: var(--ink); color: var(--sand); }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--char);
  color: var(--on-dark);
}
.top-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark {
  font: 800 1.9rem/1 var(--display);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--ember);
}
.brand-sub { font-size: 0.68rem; line-height: 1.25; letter-spacing: 0.12em; text-transform: uppercase; color: var(--on-dark-muted); }
.top-cta { display: none; }
@media (min-width: 900px) { .top-cta { display: inline-flex; } }

.chips { border-top: 1px solid var(--line-dark); }
.chips ul {
  display: flex;
  gap: 6px;
  margin: 0 auto;
  padding-block: 8px;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chips ul::-webkit-scrollbar { display: none; }
.chips a {
  display: block;
  white-space: nowrap;
  padding: 7px 13px;
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  font-size: 0.86rem;
  text-decoration: none;
  color: var(--on-dark);
}
.chips a:hover { border-color: var(--ember); color: var(--ember); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(calc(100svh - 108px - 72px), 760px);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--char);
  isolation: isolate;
}
.hero picture, .hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
}
.hero-img { object-fit: cover; object-position: 30% 40%; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(31,22,17,0) 15%, rgba(31,22,17,.6) 38%, rgba(31,22,17,.94) 100%);
}
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, rgba(31,22,17,.88) 0%, rgba(31,22,17,.55) 42%, rgba(31,22,17,0) 70%); }
}
.hero-copy { padding-block: 120px 28px; }
@media (min-width: 900px) {
  .hero { min-height: min(calc(100svh - 108px), 760px); }
  .hero-copy { padding-block: 120px 64px; }
}
.hero h1 {
  font-size: clamp(3.1rem, 13vw, 7rem);
  font-weight: 800;
  line-height: 0.9;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  max-width: 9ch;
}
.hero h1 span { display: block; color: var(--ember); font-size: 0.5em; letter-spacing: -0.01em; margin-top: 0.12em; }
.hero-lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 30em; color: #F6EDE2; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 24px; }
.hero-actions .btn { flex: 1 1 200px; }
@media (min-width: 700px) { .hero-actions .btn { flex: 0 0 auto; } }
.rating {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px 8px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.82rem;
  line-height: 1.25;
  text-decoration: none;
}
.rating b { font-weight: 700; }
.rating-score {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ember);
  color: var(--char);
  font: 800 1.3rem/1 var(--display);
}
.rating-score small { font-size: 0.55em; font-weight: 700; }
.rating-score { grid-auto-flow: column; align-content: center; }

/* ---------- Facts ---------- */
.facts {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter);
  display: flex;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  background: var(--clay);
  color: #fff;
  scrollbar-width: none;
}
.facts::-webkit-scrollbar { display: none; }
.facts li {
  flex: 0 0 auto;
  scroll-snap-align: start;
  padding: 18px 22px 18px 0;
  margin-right: 22px;
  border-right: 1px solid rgba(255,255,255,.25);
  font-size: 0.82rem;
  line-height: 1.3;
}
.facts li:last-child { border-right: 0; }
.facts b { display: block; font: 800 1.5rem/1.05 var(--display); }
@media (min-width: 1000px) {
  .facts { justify-content: center; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--sec); }
.dark { background: var(--char); color: var(--on-dark); }
.dark p { color: var(--on-dark-muted); }
.head { margin-bottom: clamp(28px, 5vw, 56px); }
.head h2 { max-width: 18ch; }

/* About */
.about-grid { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .about-grid { grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
}
.about-text h2 { max-width: 16ch; }
.about-photo img { border-radius: var(--radius); width: 100%; }
.welcome {
  margin: clamp(48px, 8vw, 96px) 0 0;
  padding: 28px 0 0;
  border-top: 4px solid var(--clay);
  max-width: 54rem;
}
.welcome p {
  font: 600 clamp(1.25rem, 3.2vw, 1.85rem)/1.3 var(--display);
  letter-spacing: -0.01em;
  max-width: none;
  color: var(--ink);
}
.welcome footer { font-size: 0.85rem; color: var(--muted); letter-spacing: 0.04em; }
.aerial { margin-top: clamp(48px, 8vw, 96px); position: relative; }
.aerial img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
@media (min-width: 900px) { .aerial img { aspect-ratio: 1600 / 652; } }
.aerial figcaption { padding-top: 14px; font-size: 0.9rem; color: var(--muted); }

/* Rooms */
.rooms { background: var(--sand-2); }
.room-list { display: grid; gap: 28px; }
@media (min-width: 1000px) { .room-list { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.room {
  background: var(--sand);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 0 var(--line);
}
.strip {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  background: var(--char-2);
}
.strip::-webkit-scrollbar { display: none; }
.strip img {
  flex: 0 0 88%;
  width: 88%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  scroll-snap-align: start;
  border-right: 3px solid var(--sand);
}
.strip img:last-child { flex-basis: 100%; width: 100%; border-right: 0; }
.room-body { padding: 20px 20px 24px; display: flex; flex-direction: column; flex: 1; }
.room-body p { color: var(--muted); }
.tags { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; background: var(--sand-2); color: var(--ink); }
.link-wa { margin-top: auto; font-weight: 700; color: var(--clay); text-decoration: none; padding-block: 6px; }
.link-wa:hover { text-decoration: underline; }

.every {
  margin-top: clamp(36px, 6vw, 64px);
  padding: 24px;
  border: 2px dashed rgba(180, 70, 42, .45);
  border-radius: var(--radius);
}
.every h3 { color: var(--clay); }
.every ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px 24px; }
@media (min-width: 700px) { .every ul { grid-template-columns: repeat(3, 1fr); } }
.every li { position: relative; padding-left: 20px; font-size: 0.95rem; }
.every li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 8px; height: 8px; background: var(--clay); transform: rotate(45deg); }

/* Facilities */
.feature { display: grid; gap: 20px; margin-bottom: clamp(48px, 8vw, 88px); }
@media (min-width: 900px) {
  .feature { grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
  .feature.flip .feature-media { order: 2; }
}
.feature-media img { width: 100%; border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; }
.feature h3 { font-size: clamp(1.7rem, 3.6vw, 2.4rem); color: var(--on-dark); }
.stat { color: var(--on-dark) !important; font-size: 1.05rem; }
.stat b { display: block; font: 800 clamp(2.4rem, 7vw, 3.6rem)/1 var(--display); color: var(--ember); letter-spacing: -0.02em; }

.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
.tile {
  background: var(--char-2);
  border-radius: var(--radius);
  padding: 22px;
  border-top: 3px solid var(--ember);
}
.tile h3 { font-size: 1.3rem; color: var(--on-dark); }
.tile p { font-size: 0.95rem; margin: 0; }
.tile-photo { padding: 0; overflow: hidden; }
.tile-photo img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.tile-photo div { padding: 18px 22px 22px; }

/* Zigzag motif, after their decorative border */
.zigzag {
  height: 18px;
  background:
    linear-gradient(135deg, var(--char) 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(225deg, var(--char) 25%, transparent 25%) -9px 0 / 18px 18px,
    var(--ember);
}

/* Activities */
.act-grid { display: grid; gap: 32px; }
@media (min-width: 1000px) { .act-grid { grid-template-columns: 1.4fr 0.6fr; gap: 56px; align-items: start; } }
.act-list { list-style: none; margin: 0; padding: 0; counter-reset: act; display: grid; gap: 0; }
@media (min-width: 700px) { .act-list { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.act-list li { counter-increment: act; padding: 20px 0 16px; border-top: 1px solid var(--line); position: relative; padding-left: 44px; }
.act-list li::before {
  content: counter(act, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 22px;
  font: 800 0.95rem/1 var(--display);
  color: var(--clay);
}
.act-list h3 { font-size: 1.25rem; }
.act-list h3 span {
  display: inline-block;
  vertical-align: middle;
  margin-left: 6px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--ember);
  color: var(--char);
  font: 700 0.72rem/1.2 var(--body);
  letter-spacing: 0.02em;
}
.act-list p { font-size: 0.95rem; color: var(--muted); margin: 0; }
.act-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 1000px) { .act-photos { grid-template-columns: 1fr; position: sticky; top: 130px; } }
.act-photos img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

/* Gallery */
.gallery-sec { background: var(--sand-2); }
.gallery { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 8px; }
@media (min-width: 700px) { .gallery { columns: 3; column-gap: 12px; } }
@media (min-width: 1100px) { .gallery { columns: 4; } }
.gallery li { break-inside: avoid; margin-bottom: 8px; }
@media (min-width: 700px) { .gallery li { margin-bottom: 12px; } }
.gallery a { display: block; border-radius: 10px; overflow: hidden; }
.gallery img { width: 100%; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* Location */
.loc-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; } }
.info { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.info div { padding: 12px 14px; background: var(--sand-2); border-radius: 10px; }
.info dt { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--clay); }
.info dd { margin: 2px 0 0; font-weight: 600; font-size: 0.95rem; }
.sketch { max-width: 360px; }
.sketch img { border-radius: 10px; }
.sketch figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 6px; }
.map { display: grid; gap: 12px; }
.map-load, .map iframe {
  width: 100%;
  aspect-ratio: 4 / 5;
  border: 0;
  border-radius: var(--radius);
}
@media (min-width: 700px) { .map-load, .map iframe { aspect-ratio: 4 / 3; } }
.map-load {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  color: var(--ink);
  font: inherit;
  background:
    radial-gradient(circle at 50% 48%, rgba(180,70,42,.18) 0 70px, transparent 71px),
    repeating-linear-gradient(0deg, transparent 0 38px, rgba(42,30,23,.07) 38px 40px),
    repeating-linear-gradient(90deg, transparent 0 38px, rgba(42,30,23,.07) 38px 40px),
    var(--sand-2);
}
.map-pin { width: 30px; height: 30px; background: var(--clay); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 0 0 6px rgba(180,70,42,.25); }
.map-label { font: 800 1.3rem/1 var(--display); margin-top: 8px; }
.map-note { font-size: 0.85rem; color: var(--muted); }
.map .btn { justify-self: start; }

/* Booking */
.book-grid { display: grid; gap: 40px; }
@media (min-width: 1000px) { .book-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: start; } }
.book h2 { max-width: 16ch; }
.contacts { margin: 28px 0 0; display: grid; gap: 14px; }
.contacts div { border-top: 1px solid var(--line-dark); padding-top: 12px; }
.contacts dt { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); font-weight: 700; }
.contacts dd { margin: 4px 0 0; font-size: 1.05rem; overflow-wrap: anywhere; }
.book-grid > * { min-width: 0; }
.contacts a { text-decoration: none; border-bottom: 1px solid var(--line-dark); }
.contacts a:hover { color: var(--ember); border-color: var(--ember); }

.book-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  background: var(--sand);
  color: var(--ink);
  border-radius: calc(var(--radius) + 4px);
}
@media (min-width: 700px) { .book-form { padding: 32px; gap: 18px; } }
.field { grid-column: 1 / -1; display: grid; gap: 6px; min-width: 0; }
.field.half { grid-column: span 1; }
.field label { font-size: 0.85rem; font-weight: 700; }
.field label span { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  padding: 10px 12px;
  border: 1.5px solid rgba(42,30,23,.25);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font: 16px/1.4 var(--body);
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay); box-shadow: 0 0 0 3px rgba(180,70,42,.2); }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: 0.9rem; color: var(--clay-dark); font-weight: 600; }
.form-actions { grid-column: 1 / -1; display: grid; gap: 10px; }
@media (min-width: 700px) { .form-actions { grid-template-columns: 1.4fr 1fr; } }
.btn-wa { background: #1F8A4C; border-color: #1F8A4C; }
.btn-wa:hover { background: #17703D; border-color: #17703D; }
.book-form .btn-ghost { color: var(--ink); border-color: var(--ink); }
.book-form .btn-ghost:hover { background: var(--ink); color: var(--sand); }

/* Footer */
.foot { background: var(--char); color: var(--on-dark-muted); font-size: 0.92rem; }
.foot .zigzag {
  background:
    linear-gradient(135deg, var(--char) 25%, transparent 25%) -9px 0 / 18px 18px,
    linear-gradient(225deg, var(--char) 25%, transparent 25%) -9px 0 / 18px 18px,
    var(--clay);
  transform: scaleY(-1);
}
.foot-grid { display: grid; gap: 20px; padding-block: 48px 24px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
.foot-mark { font: 800 2.4rem/1 var(--display); text-transform: uppercase; color: var(--ember); margin-bottom: 10px; }
.foot a { color: var(--on-dark); }
.foot-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-block: 18px 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.8rem;
}
.demo-note { opacity: .85; }

/* Mobile booking dock */
.dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 45;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(31,22,17,.96);
  border-top: 1px solid var(--line-dark);
}
.dock a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.dock svg { width: 22px; height: 22px; }
.dock-wa { background: #1F8A4C; color: #fff; }
.dock-mail { padding: 0 18px; border: 2px solid var(--on-dark-muted); color: var(--on-dark); }
@media (min-width: 900px) { .dock { display: none; } }

/* Lightbox */
.lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(20,14,10,.96);
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(20,14,10,.9); }
.lightbox img { max-width: 94vw; max-height: 82dvh; border-radius: 8px; }
.lb-btn {
  position: absolute;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.14);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.lb-btn:hover { background: rgba(255,255,255,.28); }
.lb-close { top: 14px; right: 14px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 699px) {
  .lb-prev, .lb-next { top: auto; bottom: 24px; transform: none; }
  .lb-prev { left: calc(50% - 60px); }
  .lb-next { right: calc(50% - 60px); }
}
