/* Karatu Villas Lodge — demo */

@font-face {
  font-family: "Jost";
  src: url("fonts/jost.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --linen: #F7F3EC;
  --white: #FFFFFF;
  --indigo: #1E2D5A;
  --indigo-2: #2B3F78;
  --honey: #B57A2C;
  --honey-soft: #F1E3CC;
  --ink: #1B2135;
  --muted: #5B6072;
  --line: rgba(30, 45, 90, 0.14);
  --wa: #1F8A4C;
  --sans: "Jost", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --gutter: 16px;
  --max: 1180px;
  --sec: clamp(64px, 10vw, 120px);
}
@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: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--linen);
  color: var(--ink);
  font: 400 1rem/1.65 var(--body);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--sans); font-weight: 400; line-height: 1.1; margin: 0 0 0.5em; text-wrap: balance; color: var(--indigo); }
h1 { font-size: clamp(2.4rem, 9vw, 4.6rem); font-weight: 300; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.9rem, 5.2vw, 3rem); font-weight: 300; letter-spacing: -0.015em; }
h3 { font-size: 1.3rem; font-weight: 500; }
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(--indigo); color: #fff; padding: 8px 12px; }
:focus-visible { outline: 2px solid var(--honey); outline-offset: 3px; }
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }

.label {
  font: 500 0.78rem/1 var(--sans);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--honey);
  margin-bottom: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1.5px solid var(--indigo);
  border-radius: 6px;
  background: var(--indigo);
  color: #fff;
  font: 500 1rem/1 var(--sans);
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
}
.btn:hover { background: var(--indigo-2); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 0.92rem; }
.btn-wa { background: var(--wa); border-color: var(--wa); }
.btn-wa:hover { background: #17703D; }
.btn-line { background: transparent; color: var(--indigo); }
.btn-line:hover { background: var(--indigo); color: #fff; }
.text-link { color: var(--indigo); font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }

/* Arch frames, after the villas' rounded doorways and roof lines */
.arch { border-radius: 999px 999px 6px 6px; overflow: hidden; }
.arch img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

/* Header */
.top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 243, 236, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.top-bar { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.brand { font: 500 1.15rem/1 var(--sans); color: var(--indigo); text-decoration: none; letter-spacing: 0.01em; margin-right: auto; }
.brand span { font-weight: 300; }
.nav { display: none; gap: 26px; }
.nav a { text-decoration: none; font: 400 0.98rem/1 var(--sans); color: var(--indigo); }
.nav a:hover { color: var(--honey); }
@media (min-width: 900px) { .nav { display: flex; } }

/* Hero */
.hero { display: grid; }
.hero-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; max-height: 62svh; }
.hero-card {
  position: relative;
  margin: -40px var(--gutter) 0;
  padding: 26px 22px 24px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(30, 45, 90, 0.12);
}
.hero-lede { color: var(--muted); font-size: 1.05rem; }
.score { display: flex; align-items: center; gap: 14px; padding: 14px 0; margin: 4px 0 18px; border-block: 1px solid var(--line); }
.score-num { font: 300 3rem/1 var(--sans); color: var(--indigo); letter-spacing: -0.03em; }
.score-text { font-size: 0.88rem; line-height: 1.35; color: var(--muted); }
.stars { display: block; color: var(--honey); letter-spacing: 0.12em; font-size: 0.95rem; }
.hero-actions { display: grid; gap: 10px; }
@media (min-width: 520px) { .hero-actions { grid-template-columns: 1.3fr 1fr; } }
@media (min-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 45fr) minmax(0, 55fr);
    align-items: center;
    max-width: var(--max);
    margin: 0 auto;
    padding: 48px var(--gutter) 0;
    gap: 0;
  }
  .hero-media { order: 2; }
  .hero-media img { aspect-ratio: 4 / 4.2; max-height: none; border-radius: 999px 999px 8px 8px; }
  .hero-card { margin: 0 -60px 0 0; z-index: 1; padding: 40px; }
}

/* At a glance */
.glance {
  list-style: none;
  margin: 32px auto 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
  padding: 0;
}
.glance li { background: var(--linen); padding: 16px var(--gutter); font-size: 0.88rem; color: var(--muted); }
.glance b { display: block; font: 300 1.9rem/1.1 var(--sans); color: var(--indigo); }
@media (min-width: 900px) {
  .glance { grid-template-columns: repeat(4, 1fr); margin-top: 56px; padding-inline: 0; max-width: calc(var(--max) - 2 * var(--gutter)); }
}

.section { padding-block: var(--sec); }
.head { margin-bottom: clamp(28px, 5vw, 52px); }
.head h2 { max-width: 20ch; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; }

/* About */
.about-grid { display: grid; gap: 32px; }
.about-img { max-width: 420px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; align-items: center; } }

/* Rooms */
.rooms { background: var(--white); }
.room-list { display: grid; gap: 40px; }
@media (min-width: 1000px) { .room-list { grid-template-columns: repeat(3, 1fr); gap: 32px; } }
.room .arch img { aspect-ratio: 5 / 6; }
.room h3 { margin-top: 18px; font-size: 1.6rem; font-weight: 400; }
.spec { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 0; font: 400 0.9rem/1 var(--sans); color: var(--honey); letter-spacing: 0.04em; }
.spec li + li::before { content: "·"; margin: 0 10px; color: var(--line); color: var(--muted); }
.room p { color: var(--muted); font-size: 0.97rem; }
.room-cta { font: 500 1rem/1 var(--sans); color: var(--wa); text-decoration: none; display: inline-block; padding: 8px 0; }
.room-cta:hover { text-decoration: underline; }

.in-room { margin-top: clamp(48px, 8vw, 88px); display: grid; gap: 28px; padding: clamp(20px, 4vw, 40px); background: var(--linen); border-radius: 14px; }
@media (min-width: 900px) { .in-room { grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; } }
.in-room-photos { display: grid; grid-template-columns: 0.8fr 1fr; grid-template-rows: 1fr 1fr; gap: 10px; }
.in-room-photos img { width: 100%; height: 100%; object-fit: cover; border-radius: 8px; }
.in-room-photos img:first-child { grid-row: span 2; }
.ticks { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 20px; }
.ticks li { break-inside: avoid; position: relative; padding: 0 0 10px 22px; font-size: 0.95rem; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 6px; border-left: 2px solid var(--honey); border-bottom: 2px solid var(--honey); transform: rotate(-45deg); }

/* Dining */
.dining { background: var(--indigo); color: #E6E9F2; }
.dining h2 { color: #fff; }
.dining .label { color: #E2B46E; }
.dining p { color: #C9CFE0; }
.dining-grid { display: grid; gap: 36px; }
@media (min-width: 900px) { .dining-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; } }
.hours { margin: 24px 0 0; display: grid; gap: 0; border-top: 1px solid rgba(255,255,255,.18); }
.hours div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.hours dt { font: 500 0.95rem/1.4 var(--sans); color: #fff; }
.hours dd { margin: 0; text-align: right; color: #C9CFE0; font-size: 0.95rem; }
.dining-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dining-photos img { width: 100%; border-radius: 8px; object-fit: cover; }
.dining-photos .d1 { grid-column: 1 / -1; aspect-ratio: 3 / 2; }
.dining-photos .d2, .dining-photos .d3 { aspect-ratio: 4 / 5; }

/* Facilities */
.wide img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 14px; }
@media (min-width: 900px) { .wide img { aspect-ratio: 21 / 8; } }
.fac { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
@media (min-width: 900px) { .fac { grid-template-columns: repeat(4, 1fr); } }
.fac li { background: var(--linen); padding: 20px 16px; }
.fac h3 { font-size: 1.08rem; margin-bottom: 6px; }
.fac p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* Explore */
.explore { background: var(--honey-soft); }
.explore-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .explore-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; align-items: center; } }
.explore-img { max-width: 440px; }
.explore-list { list-style: none; margin: 0; padding: 0; counter-reset: x; }
.explore-list li { counter-increment: x; position: relative; padding: 14px 0 14px 40px; border-top: 1px solid rgba(181, 122, 44, .35); color: var(--muted); font-size: 0.97rem; }
.explore-list li::before { content: counter(x); position: absolute; left: 0; top: 13px; width: 26px; height: 26px; border: 1px solid var(--honey); border-radius: 50%; display: grid; place-items: center; font: 500 0.8rem/1 var(--sans); color: var(--honey); }
.explore-list b { display: block; font: 500 1.08rem/1.3 var(--sans); color: var(--indigo); }

/* Gallery */
.gallery { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; grid-auto-flow: dense; gap: 8px; }
@media (min-width: 700px) { .gallery { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 12px; } }
.gallery li.tall { grid-row: span 2; }
.gallery a { display: block; height: 100%; border-radius: 8px; overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.gallery a:hover img { transform: scale(1.03); }

/* Location */
.location { background: var(--white); }
.loc-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .loc-grid { grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center; } }
.addr { font: 500 1.05rem/1.4 var(--sans); color: var(--indigo); }
.map-load, .map iframe { width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: 14px; }
.map-load {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; font: inherit; color: var(--indigo);
  background:
    radial-gradient(circle at 50% 46%, rgba(30,45,90,.12) 0 64px, transparent 65px),
    linear-gradient(115deg, transparent 47%, rgba(181,122,44,.35) 47% 49%, transparent 49%),
    repeating-linear-gradient(0deg, transparent 0 46px, rgba(30,45,90,.06) 46px 47px),
    repeating-linear-gradient(90deg, transparent 0 46px, rgba(30,45,90,.06) 46px 47px),
    var(--linen);
}
.map-pin { width: 28px; height: 28px; background: var(--indigo); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.map-label { font: 500 1.2rem/1 var(--sans); margin-top: 8px; }
.map-note { font-size: 0.85rem; color: var(--muted); }

/* Booking */
.book-grid { display: grid; gap: 36px; }
@media (min-width: 1000px) { .book-grid { grid-template-columns: 0.85fr 1.15fr; gap: 64px; align-items: start; } }
.book-grid > * { min-width: 0; }
.direct { list-style: none; margin: 24px 0 0; padding: 0; }
.direct li { padding: 12px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.direct span { display: block; font: 500 0.75rem/1.4 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--honey); }
.direct a { color: var(--indigo); text-decoration: none; font-weight: 500; }
.direct a:hover { text-decoration: underline; }
.form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  padding: 22px;
  background: var(--white);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(30, 45, 90, 0.08);
}
@media (min-width: 700px) { .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: 500 0.9rem/1.2 var(--sans); color: var(--indigo); }
.field label span { font-weight: 300; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-width: 0; min-height: 48px; padding: 10px 12px;
  border: 1px solid rgba(30,45,90,.25); border-radius: 6px; background: var(--linen);
  color: var(--ink); font: 16px/1.4 var(--body);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(30,45,90,.15); }
.form-msg { grid-column: 1 / -1; margin: 0; min-height: 1.2em; font-size: 0.9rem; color: #A23A2A; 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; } }

/* Footer */
.foot { background: var(--indigo); color: #C9CFE0; font-size: 0.92rem; padding: 48px 0 calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { .foot { padding-bottom: 40px; } }
.foot a { color: #fff; }
.foot-grid { display: grid; gap: 24px; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 1fr auto; align-items: end; } }
.foot-brand { font: 300 1.8rem/1.1 var(--sans); color: #fff; margin-bottom: 10px; }
.foot-demo { font-size: 0.82rem; margin: 0; }

/* Floating booking button */
.fab {
  position: fixed;
  left: 50%;
  bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border-radius: 999px;
  background: var(--wa);
  color: #fff;
  font: 500 1.02rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.fab svg { width: 22px; height: 22px; }
@media (min-width: 900px) {
  .fab { left: auto; right: 24px; transform: none; }
}

/* Lightbox */
.lightbox { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; padding: 0; border: 0; background: rgba(18, 24, 44, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(18, 24, 44, .9); }
.lightbox img { max-width: 94vw; max-height: 82dvh; border-radius: 6px; }
.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-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); }
}
.fab { transition: opacity .2s, visibility .2s; }
.fab.is-hidden { opacity: 0; visibility: hidden; }
