/*
  VOICE   calm, warm, a family home rather than a resort
  IDEA    a Wayanad hillside at sunset; colonial–Kerala materials (lime-washed walls, red-oxide floors, teak)
  PICTURE the house's own photos: sunset lounge view as the hero
  COLOUR  hill green dominant, white ground, red-oxide band, sunset gold accent
  TYPE    Marcellus (inscribed, colonial plaque feel) + Figtree for reading
  LAYOUT  full-bleed hero, then alternating white / green / oxide bands; stacks to one column under 760px
*/

:root {
  color-scheme: light;
  --hill: #23412f;
  --hill-2: #33503b;
  --oxide: #8a2c1f;
  --oxide-dk: #6e2318;
  --teak: #4a2f1c;
  --gold: #f0a43a;
  --gold-dk: #d88c22;
  --lime: #eef0ea;
  --white: #ffffff;
  --ink: #1d2420;
  --muted: #56605a;
  --line: #d9ddd6;
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 10px;
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 17px/1.6 var(--body);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.1; text-wrap: balance; margin: 0 0 .5em; }
h1 { font-size: clamp(42px, 7vw, 84px); letter-spacing: -.01em; }
h2 { font-size: clamp(30px, 4vw, 44px); }
h3 { font-size: 24px; }
p { margin: 0 0 1em; max-width: 62ch; }
a { color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: 1180px; margin: 0 auto; }
.wrap.narrow { max-width: 780px; }
.band { padding: clamp(56px, 8vw, 104px) max(5vw, 18px); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 12px 22px;
  background: var(--gold); color: #2a1a07;
  font: 600 16px/1.2 var(--body); text-decoration: none;
  border: 2px solid var(--gold); border-radius: 999px;
  transition: background .2s, border-color .2s;
}
.btn:hover { background: var(--gold-dk); border-color: var(--gold-dk); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.75); }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-line { background: transparent; color: var(--hill); border-color: var(--hill); }
.btn-line:hover { background: var(--hill); color: #fff; border-color: var(--hill); }
.btn-small { min-height: 40px; padding: 8px 18px; font-size: 15px; }
.btn-wide { width: 100%; }

/* ---------- navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px max(5vw, 18px);
  color: #fff;
  transition: background .25s, color .25s, box-shadow .25s;
}
.nav.solid { background: rgba(255,255,255,.97); color: var(--ink); box-shadow: 0 1px 0 var(--line); }
.brand { font-family: var(--display); font-size: 22px; text-decoration: none; white-space: nowrap; }
.brand span { opacity: .75; }
.links { display: flex; align-items: center; gap: 26px; }
.links a:not(.btn) { text-decoration: none; font-weight: 500; font-size: 16px; padding: 8px 0; }
.links a:not(.btn):hover { text-decoration: underline; text-underline-offset: 5px; }
.menu-btn { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: min(92svh, 860px);
  display: flex; align-items: flex-start;
  background: #2a1d14; color: #fff; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(20,14,10,.72) 0%, rgba(20,14,10,.35) 45%, rgba(20,14,10,0) 70%),
    linear-gradient(180deg, rgba(20,14,10,.45) 0%, rgba(20,14,10,0) 22%);
}
.hero-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 55% 60%; }
.hero-copy {
  position: relative; z-index: 2;
  width: 100%; max-width: 1180px; margin: 0 auto;
  padding: clamp(120px, 17vh, 180px) max(5vw, 18px) 40px;
}
.hero-copy h1 { max-width: 11ch; text-shadow: 0 2px 30px rgba(60,30,40,.35); }
.hero-copy p { font-size: clamp(18px, 2vw, 21px); max-width: 40ch; text-shadow: 0 1px 14px rgba(60,30,40,.45); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- quick facts ---------- */
.facts { background: #162c1e; color: #e8efe9; padding: 0 max(5vw, 18px) 34px; }
.facts ul {
  list-style: none; margin: 0 auto; padding: 26px 0 0; max-width: 1180px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.facts strong { display: block; font-family: var(--display); font-weight: 400; font-size: 24px; color: #fff; }
.facts span { font-size: 15px; color: #b9c7bc; }

/* ---------- photo placeholders ---------- */
.ph {
  position: relative; margin: 0; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3;
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 55%, rgba(35,65,47,.18) 100%),
    linear-gradient(160deg, #dfe5dc, #c7d1c4);
}
.ph::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%;
  background: #a9b8a6;
  clip-path: polygon(0 60%, 18% 30%, 34% 52%, 52% 18%, 70% 46%, 86% 26%, 100% 44%, 100% 100%, 0 100%);
}
.ph figcaption, .gallery figcaption {
  position: absolute; left: 14px; bottom: 12px;
  background: rgba(255,255,255,.92); color: var(--ink);
  font-size: 14px; font-weight: 500; padding: 5px 12px; border-radius: 999px;
}
.ph.tall { aspect-ratio: 4 / 5; }
.photo { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo.tall { aspect-ratio: 4 / 5; }

/* ---------- house ---------- */
.house .text p { color: #2f3833; }

/* ---------- gallery ---------- */
.photos { background: var(--lime); padding-left: 0; padding-right: 0; }
.photos .wrap, .gallery { max-width: none; padding-inline: max(5vw, 18px, calc((100vw - 1180px) / 2)); }
.row-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.row-head h2 { margin: 0; }
.arrows { display: flex; gap: 10px; flex: none; }
.arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--hill); background: transparent; color: var(--hill);
  font-size: 26px; line-height: 1; cursor: pointer;
}
.arrow:hover { background: var(--hill); color: #fff; }
.gallery {
  display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-block: 4px 12px; scroll-padding-inline: max(5vw, 18px, calc((100vw - 1180px) / 2));
  scrollbar-width: thin;
}
.gallery figure {
  position: relative; flex: 0 0 auto; scroll-snap-align: start; margin: 0;
  height: clamp(300px, 42vw, 460px); max-width: 88vw;
  border-radius: var(--radius); overflow: hidden; background: #d5dbd2;
}
.gallery img { height: 100%; width: auto; max-width: 88vw; object-fit: cover; }

/* ---------- good to know ---------- */
.info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 10px 0 0; border-top: 1px solid var(--line); }
.info div { padding: 22px 22px 22px 0; border-bottom: 1px solid var(--line); }
.info dt { font-weight: 600; color: var(--hill); margin-bottom: 4px; }
.info dd { margin: 0; color: #2f3833; }
.amenities { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.amenities li { background: var(--lime); padding: 8px 16px; border-radius: 999px; }

/* ---------- location ---------- */
.location { background: var(--lime); }
.addr { font-family: var(--display); font-size: 22px; line-height: 1.4; color: var(--hill); }
.two.top { align-items: start; }
@media (min-width: 761px) { .location .text { position: sticky; top: 90px; } }
.map { position: relative; aspect-ratio: 4 / 3; margin: 22px 0 18px; border-radius: var(--radius); overflow: hidden; background: #d5dbd2; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.location .actions { margin-top: 0; }
.nearby h3 { margin-bottom: 14px; color: var(--hill); }
.nearby h3.sub { margin-top: 34px; }
.dir { display: inline-block; margin-top: 6px; font-size: 14px; font-weight: 600; color: var(--hill); text-underline-offset: 3px; padding: 4px 0; }
.places { list-style: none; margin: 0; padding: 0; border-top: 1px solid #cdd3c9; }
.places li {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 16px 0; border-bottom: 1px solid #cdd3c9;
}
.pl strong { display: block; font-weight: 600; font-size: 17px; }
.pl small { display: block; font-size: 15px; color: var(--muted); margin-top: 2px; }
.km { flex: none; white-space: nowrap; font-family: var(--display); font-size: 22px; color: var(--oxide); }

/* ---------- booking ---------- */
.book { background: var(--oxide); color: #fff; }
.book .text p { color: #f6e4df; }
.contact a { color: #fff; font-weight: 600; }
.ask {
  background: #fff; color: var(--ink);
  padding: clamp(20px, 3vw, 32px); border-radius: 14px;
  display: grid; gap: 16px;
  box-shadow: 0 18px 40px -18px rgba(40,10,5,.55);
}
.ask label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.ask input, .ask select, .ask textarea {
  width: 100%; min-height: 48px; padding: 10px 12px;
  font: 16px var(--body); color: var(--ink);
  border: 1.5px solid #c9cfc6; border-radius: 8px; background: #fff;
}
.ask input:focus, .ask select:focus, .ask textarea:focus { border-color: var(--hill); outline: 3px solid rgba(240,164,58,.5); outline-offset: 0; }
.ask textarea { resize: vertical; min-height: 88px; line-height: 1.45; }
.count { margin: -10px 0 0; font-size: 13px; color: var(--muted); text-align: right; }
.count.near { color: var(--oxide); font-weight: 600; }
.send { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.send .btn { width: 100%; }
.err { color: var(--oxide); font-size: 15px; margin: 0; min-height: 0; }
.err:empty { display: none; }

/* ---------- faq ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-of-type { border-top: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-weight: 600; font-size: 18px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--hill); }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: #2f3833; padding-bottom: 18px; margin: 0; }

/* ---------- footer ---------- */
.foot { background: #162c1e; color: #cfdad2; padding: 48px max(5vw, 18px) 96px; }
.foot .brand { color: #fff; font-size: 26px; margin-bottom: 10px; }
.foot p { margin: 0 0 8px; }
.foot a { color: #fff; }
.small { font-size: 14px; color: #93a597; margin-top: 18px !important; }

/* ---------- floating WhatsApp (mobile) ---------- */
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: none; align-items: center; gap: 8px;
  min-height: 52px; padding: 12px 18px 12px 14px;
  background: var(--gold); color: #2a1a07; text-decoration: none; font-weight: 600;
  border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.45);
}

/* ---------- tablet ---------- */
@media (max-width: 960px) {
  .facts ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .info { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- phone ---------- */
@media (max-width: 760px) {
  body { font-size: 16px; }
  .menu-btn {
    display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px;
    font: 600 15px var(--body); color: inherit; background: transparent;
    border: 1.5px solid currentColor; border-radius: 999px; cursor: pointer;
  }
  .links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; color: var(--ink); padding: 8px max(5vw, 18px) 18px;
    box-shadow: 0 12px 24px -12px rgba(0,0,0,.25);
    display: none;
  }
  .links.open { display: flex; }
  .links a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .links .btn { margin-top: 14px; }
  .nav.menu-open { background: #fff; color: var(--ink); }

  .hero { min-height: 0; flex-direction: column; background: #162c1e; }
  .hero-photo { position: relative; height: auto; aspect-ratio: 4 / 3.3; object-position: 52% 45%; }
  .hero::after { inset: 0 0 auto 0; height: 110px; background: linear-gradient(180deg, rgba(20,14,10,.6), rgba(20,14,10,0)); }
  .hero-copy { padding-top: 26px; padding-bottom: 30px; }
  .hero-copy h1, .hero-copy p { text-shadow: none; }
  .hero-copy h1 { font-size: 44px; max-width: none; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .house .ph.tall, .house .photo.tall { aspect-ratio: 4 / 3; }
  .info { grid-template-columns: minmax(0, 1fr); }
  .info div { padding-right: 0; }
  .row-head h2 { font-size: 28px; }
  .wa-float { display: inline-flex; transition: opacity .2s, transform .2s; }
  .wa-float.hide { opacity: 0; transform: translateY(12px); pointer-events: none; }
  .gallery figure { height: 260px; }
}

@media (max-width: 420px) {
  .facts ul { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .field-row { grid-template-columns: minmax(0, 1fr); }
  .send { grid-template-columns: minmax(0, 1fr); }
  .actions .btn { width: 100%; }
  .brand { font-size: 19px; }
}
