/* ============================================================
   HORIZON VILLAS — shared design system  (v2: proportional pass)
   Palette from the logo: cream #F7F0E6 + amber #C8843C.
   Display: Zilla Slab. Body: Mulish.
   Register: premium-not-luxury, restrained, IMAGE-LED (Canaves-grade scale).
   v2 changes: imagery is dominant everywhere, type scaled up, sections
   have controlled heights so text never floats in empty space.
   ============================================================ */

:root {
  --cream:       #F7F0E6;
  --paper:       #FFFDF9;
  --beige:       #EDE1CB;
  --beige-deep:  #E4D6BD;
  --amber:       #C8843C;
  --terracotta:  #AE6A28;
  --brown:       #3A3022;
  --ink:         #4A3F30;
  --text:        #5A4F3E;
  --muted:       #756A54;
  --line:        rgba(74,63,48,0.12);
  --line-strong: rgba(74,63,48,0.45);

  --font-display: 'Zilla Slab', Georgia, 'Times New Roman', serif;
  --font-body:    'Mulish', -apple-system, BlinkMacSystemFont, sans-serif;

  --maxw: 1280px;          /* was 1180 — content holds wide screens better */
  --radius: 10px;
  --radius-lg: 14px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---- Accessibility: skip link + visible keyboard focus ---- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100;
  background: #3A3022; color: #F7F0E6; padding: 12px 20px;
  font-size: 14px; letter-spacing: .5px; }
.skip-link:focus { left: 0; }
:focus-visible { outline: 2px solid #AE6A28; outline-offset: 3px; }
.bookbar .field:focus-within { border-color: #AE6A28; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--terracotta);
  line-height: 1.12;
  margin: 0;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 40px; }

/* ---- Eyebrow ---- */
.eyebrow {
  font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--terracotta); margin: 0 0 16px; font-weight: 500;
}
.eyebrow.on-beige { color: var(--terracotta); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-body);
  font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase;
  padding: 13px 24px; border-radius: var(--radius);
  cursor: pointer; border: 0.5px solid transparent;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--terracotta); color: var(--cream); }
.btn-primary:hover { background: #98591F; }
.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-outline-light { background: transparent; border-color: #D9A969; color: #D9A969; }
.btn-outline-light:hover { background: #D9A969; color: var(--brown); }
.btn-sm { padding: 9px 16px; }

/* ---- Text link ---- */
.link {
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--ink); border-bottom: 0.5px solid var(--ink);
  padding-bottom: 2px; transition: color .2s var(--ease), border-color .2s var(--ease);
}
.link:hover { color: #905821; border-color: #905821; }
.link.amber { color: #905821; border-color: #905821; }

/* ---- Header / nav ---- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247,240,230,0.92); backdrop-filter: blur(6px);
  border-bottom: 0.5px solid var(--line);
  transition: background .3s var(--ease), border-color .3s var(--ease);
}
.site-header .brand .word, .site-header .brand .sub,
.site-header .menu-toggle, .site-header .lang,
.site-header .btn-outline { transition: color .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 22px 44px; gap: 18px; }
.nav-left { justify-self: start; }
.nav-right { justify-self: end; display: flex; align-items: center; gap: 20px; }
.brand { text-align: center; }
.brand .word { font-family: var(--font-display); font-weight: 500; font-size: 26px; letter-spacing: 5px; color: var(--amber); }
.brand .sub  { font-size: 10px; letter-spacing: 5px; color: var(--amber); margin-top: 2px; }
/* Logo asset, when present (public/logo.svg). The text wordmark above is the
   fallback: if the file is missing the <img> removes itself (onerror) and :has
   stops matching, so the text shows — no broken image. */
.brand-logo { display: none; height: clamp(46px, 5vw, 60px); width: auto; margin: 0 auto; }
.brand-logo.loaded { display: block; }   /* only shows once the file actually loads */
.brand:has(.brand-logo.loaded) .word, .brand:has(.brand-logo.loaded) .sub { display: none; }
.menu-toggle { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; }
.lang { font-size: 12px; letter-spacing: 1px; color: var(--muted); }
/* low-key auxiliary nav link (e.g. Blog) — quiet on the right, not attention-getting */
.nav-aux { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); transition: color .2s var(--ease); }
.nav-aux:hover { color: var(--amber); }
.navlinks { display: flex; justify-content: center; gap: 36px; margin-top: 16px; padding-bottom: 6px; }
.navlinks a { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: #6E6151; transition: color .2s var(--ease); }
.navlinks a:hover { color: var(--amber); }

/* Header transparent over a full-screen hero, solidifying on scroll (detail page) */
.site-header.over-hero {
  position: fixed; left: 0; right: 0; top: 0;
  background: transparent; backdrop-filter: none; border-bottom-color: transparent;
}
.site-header.over-hero .brand .word, .site-header.over-hero .brand .sub { color: #FFFDF9; }
.site-header.over-hero .menu-toggle, .site-header.over-hero .lang, .site-header.over-hero .nav-aux { color: rgba(255,253,249,.82); }
.site-header.over-hero .navlinks a { color: rgba(255,253,249,.78); }
.site-header.over-hero .navlinks a:hover { color: #FFFDF9; }
.site-header.over-hero .btn-outline { border-color: rgba(255,253,249,.7); color: #FFFDF9; }
.site-header.over-hero .btn-outline:hover { background: #FFFDF9; color: var(--ink); }
.site-header.over-hero.solid {
  background: rgba(247,240,230,0.92); backdrop-filter: blur(6px); border-bottom-color: var(--line);
}
.site-header.over-hero.solid .brand .word, .site-header.over-hero.solid .brand .sub { color: var(--amber); }
.site-header.over-hero.solid .menu-toggle, .site-header.over-hero.solid .lang, .site-header.over-hero.solid .nav-aux { color: var(--muted); }
.site-header.over-hero.solid .navlinks a { color: #6E6151; }
.site-header.over-hero.solid .btn-outline { border-color: var(--ink); color: var(--ink); }

/* ---- Mobile menu: hamburger + full-screen overlay (shared by all pages) ---- */
.bookbar .field input, .bookbar .field select { font-size: 16px; }   /* prevents iOS focus zoom */
.site-header .btn { white-space: nowrap; }
.menu-toggle { width: 44px; height: 44px; position: relative; padding: 0; margin: -8px 0; }
.hbar, .hbar::before, .hbar::after {
  content: ""; position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: currentColor; border-radius: 1px;
  transition: transform .35s var(--ease), top .35s var(--ease), background .25s var(--ease);
}
.hbar { top: 21px; }
.hbar::before { top: -7px; left: 0; right: 0; }
.hbar::after  { top: 7px;  left: 0; right: 0; }
body.menu-open .hbar { background: transparent; }
body.menu-open .hbar::before { top: 0; transform: rotate(45deg); }
body.menu-open .hbar::after  { top: 0; transform: rotate(-45deg); }
.menu-overlay {
  position: fixed; inset: 0; z-index: 49;
  background: rgba(247,240,230,.97); backdrop-filter: blur(10px);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease), visibility 0s linear .4s;
}
body.menu-open { overflow: hidden; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; transition: opacity .4s var(--ease); }
.menu-links { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.menu-links a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(26px, 6.5vw, 34px); color: var(--ink); padding: 9px 18px;
  opacity: 0; transform: translateY(16px);
  transition: opacity .5s var(--ease), transform .5s var(--ease), color .2s var(--ease);
}
.menu-links a:hover { color: var(--amber); }
body.menu-open .menu-links a { opacity: 1; transform: none; }
body.menu-open .menu-links a:nth-child(1) { transition-delay: .06s; }
body.menu-open .menu-links a:nth-child(2) { transition-delay: .11s; }
body.menu-open .menu-links a:nth-child(3) { transition-delay: .16s; }
body.menu-open .menu-links a:nth-child(4) { transition-delay: .21s; }
body.menu-open .menu-links a:nth-child(5) { transition-delay: .26s; }
body.menu-open .menu-links a:nth-child(6) { transition-delay: .31s; }
.menu-foot {
  margin-top: 34px; display: flex; flex-direction: column; align-items: center; gap: 18px;
  opacity: 0; transform: translateY(12px); transition: opacity .5s var(--ease) .4s, transform .5s var(--ease) .4s;
}
body.menu-open .menu-foot { opacity: 1; transform: none; }
body.menu-open .mobile-cta { opacity: 0; pointer-events: none; }
.mobile-cta { transition: opacity .3s var(--ease); }
body.menu-open .site-header.over-hero .brand .word, body.menu-open .site-header.over-hero .brand .sub { color: var(--amber); }
body.menu-open .site-header.over-hero .menu-toggle, body.menu-open .site-header.over-hero .lang,
body.menu-open .site-header.over-hero .nav-aux { color: var(--muted); }
body.menu-open .site-header.over-hero .btn-outline { border-color: var(--ink); color: var(--ink); }
@media (prefers-reduced-motion: reduce) {
  .menu-overlay, .menu-links a, .menu-foot, .hbar, .hbar::before, .hbar::after { transition: none !important; }
}

/* ---- Desktop header: logo on the left (in place of the menu), wordmark centred ---- */
@media (min-width: 901px) {
  .nav { position: relative; }
  /* the hamburger/menu button gives way to the logo on desktop */
  .site-header .menu-toggle { display: none; }
  /* logo pulled to the far left and made a touch larger */
  .brand-logo { position: absolute; left: 44px; top: 50%; transform: translateY(-50%); height: 72px; margin: 0; }
  /* keep the "Horizon Villas" wordmark in the centre even once the logo has loaded */
  .brand:has(.brand-logo.loaded) .word { display: block; }
  .brand:has(.brand-logo.loaded) .sub  { display: block; }
}

/* ---- Sections: generous, fluid vertical rhythm ---- */
.section { padding: clamp(64px, 8vw, 108px) 0; }
.section.tight { padding: clamp(44px, 5vw, 68px) 0; }
.band-beige { background: var(--beige); }
.band-beige .muted, .band-beige .offer .dates, .band-beige .acard .rt { color: #6E644F; }
.band-dark  { background: var(--brown); }
.center { text-align: center; }
.lead {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(21px, 2.2vw, 27px); line-height: 1.65; color: var(--ink);
  max-width: 660px; margin: 0 auto;
}

/* ---- Photo placeholder (swap for <img>/<picture>) — subtle depth so empties read less flat ---- */
.photo {
  background: linear-gradient(135deg, var(--beige-deep) 0%, #DCC9A8 100%);
  border-radius: var(--radius);
  display: flex; align-items: flex-end;
  color: #685C48; font-size: 11px; font-style: italic;
  padding: 14px; overflow: hidden;
}
/* the 14px padding is a mat for the caption placeholder; a real image fills the frame */
.photo:has(img) { padding: 0; }
.photo.cap-tr { align-items: flex-start; justify-content: flex-end; }
/* real images dropped in should fill their frame */
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---- Hero: immersive, confident headline ---- */
.hero {
  position: relative; min-height: 88vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--beige-deep) 0%, #D8C4A2 100%);
  padding: 40px;
}
.hero h1 { font-size: clamp(40px, 6.4vw, 78px); color: var(--amber); max-width: 14ch; margin: 0 0 30px; }
.hero .photo-note { position: absolute; bottom: 16px; font-size: 11px; font-style: italic; color: #9c8c70; }

/* ---- Hero trust badges (left rail): booking / Airbnb / Google scores ---- */
.hero-trust { position: absolute; left: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px; z-index: 3; }
.trust-badge { background: rgba(255,253,249,.92); border: 0.5px solid var(--line); border-radius: var(--radius); padding: 10px 16px; min-width: 124px; box-shadow: 0 8px 22px rgba(58,48,34,.12); text-align: left; }
.trust-badge .src { display: block; font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.trust-badge .score { display: block; font-family: var(--font-display); font-weight: 500; font-size: 21px; line-height: 1.1; color: var(--ink); }
.trust-badge .score .star { color: var(--amber); }
.trust-badge .score .count { font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); vertical-align: middle; }

/* ---- Split: IMAGE-DOMINANT, controlled height, contained copy ---- */
.split {
  display: grid; grid-template-columns: 1.3fr 1fr; align-items: stretch;
  min-height: clamp(460px, 60vh, 680px);
}
.split .photo { border-radius: 0; height: 100%; }
.split .copy { padding: clamp(40px, 5vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.split .copy > * { max-width: 480px; }     /* keeps text a tidy block, never sprawling */
.split .copy h2 { font-size: clamp(30px, 3.2vw, 44px); margin-bottom: 18px; }
.split.flip .photo { order: 2; }

/* ---- Landing: the local area (compact guide grid) ---- */
.local { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 30px 36px; max-width: 1040px; margin: 40px auto 0; text-align: left; }
.local > div { border-top: 0.5px solid var(--line); padding-top: 16px; }
.local h3, .local h4 { font-family: var(--font-display); font-weight: 500; font-size: 18px; color: var(--ink); margin: 0 0 8px; }
.local p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text); }

/* ---- Booking bar ---- */
.bookbar {
  background: var(--paper); border: 0.5px solid var(--line); border-radius: var(--radius-lg);
  padding: 12px; display: flex; gap: 12px; align-items: stretch; flex-wrap: wrap;
  max-width: 780px; margin: 0 auto; box-shadow: 0 14px 36px rgba(58,48,34,.10);
}
.bookbar .field {
  flex: 1; min-width: 150px; text-align: left;
  font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
  border: 0.5px solid var(--line-strong); border-radius: var(--radius); padding: 16px 18px;
  display: flex; align-items: center;
}
.bookbar .field.narrow { flex: 0 0 auto; min-width: 116px; }
.bookbar .btn { padding: 16px 30px; font-size: 13px; }

/* ---- House cards (preview / cross-sell): substantial images ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card {
  background: var(--paper); border: 0.5px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(58,48,34,.10); }
.card .photo { border-radius: 0; aspect-ratio: 3 / 2; height: auto; }
.card .meta { padding: 18px 20px; }
.card .meta h3 { font-size: 21px; margin-bottom: 4px; }
.card .meta .price { font-size: 13px; color: var(--muted); }

/* ---- Houses carousel (landing) — large image + description, swappable ---- */
.house-carousel { position: relative; margin-top: clamp(28px, 3vw, 44px); text-align: left; }
.hc-track { position: relative; }
.hc-slide { display: none; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 3vw, 52px); align-items: center; }
.hc-slide.active { display: grid; }
.hc-photo { aspect-ratio: 3 / 2; height: auto; border-radius: var(--radius); }
.hc-info h3 { font-size: clamp(26px, 2.8vw, 38px); color: var(--ink); line-height: 1.15; margin-bottom: 10px; }
.hc-facts { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.hc-info p { font-size: 16px; line-height: 1.7; color: var(--text); margin: 0 0 20px; max-width: 44ch; }
.hc-price { font-family: var(--font-display); font-size: 24px; color: var(--amber); margin: 0 0 22px; }
.hc-price span { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.hc-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; background: var(--paper); border: 0.5px solid var(--line); color: var(--ink); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 3; box-shadow: 0 8px 20px rgba(58,48,34,.14); transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease); }
.hc-arrow:hover { background: var(--terracotta); color: var(--cream); border-color: var(--terracotta); }
.hc-arrow.l { left: -12px; }
.hc-arrow.r { right: -12px; }
.hc-dots { display: flex; justify-content: center; gap: 9px; margin-top: 30px; }
.hc-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); cursor: pointer; transition: background .2s var(--ease), transform .2s var(--ease); }
.hc-dots span.active { background: var(--amber); transform: scale(1.25); }

/* ---- Accommodations rows: Canaves 3-column (image · body · facts) ---- */
/* rows span wider than the centred page header so they fill the width (Canaves) */
.container.listing { max-width: 1400px; }
.house-row {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.2fr) minmax(0, 0.5fr);
  gap: clamp(32px, 3.6vw, 60px); align-items: center;
  padding: clamp(36px, 4.5vw, 64px) 0; border-bottom: 0.5px solid var(--line);
}
.house-row:last-child { border-bottom: 0; }
/* listing photo doubles as a Canaves-style carousel (arrows on hover + count) */
.house-row .photo { position: relative; aspect-ratio: 3 / 2; height: auto; border-radius: var(--radius); overflow: hidden; }
.house-row .photo .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border-radius: 50%; background: rgba(255,253,249,.9); display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .25s var(--ease); }
.house-row .photo:hover .arrow { opacity: 1; }
.house-row .photo .arrow.l { left: 14px; }
.house-row .photo .arrow.r { right: 14px; }
.house-row .photo .count { position: absolute; top: 14px; right: 16px; font-size: 10px; letter-spacing: 1px; background: rgba(58,48,34,.5); color: #FFFDF9; padding: 3px 9px; border-radius: 20px; }
.house-row .body { min-width: 0; }
.house-row h2, .house-row h3 { font-size: clamp(24px, 2.4vw, 32px); margin-bottom: 16px; }

/* row tabs — Description / Highlights / Amenities */
.r-tabs { display: flex; gap: 24px; border-bottom: 0.5px solid var(--line); margin-bottom: 18px; }
.r-tabs button {
  font-family: var(--font-body); font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--muted); background: none; border: 0; cursor: pointer;
  padding: 0 0 10px; margin-bottom: -1px; border-bottom: 1.5px solid transparent;
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.r-tabs button:hover { color: var(--ink); }
.r-tabs button.active { color: var(--amber); border-bottom-color: var(--amber); }

/* row panels — only the active one is shown (toggled by the per-row script) */
.r-panel { display: none; }
.r-panel.active { display: block; }
.r-panel p { margin: 0; color: var(--text); }
.r-panel ul {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px 20px;
}
.r-panel li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text); }
.r-panel li::before { content: '\2713'; position: absolute; left: 0; color: var(--amber); }

/* row CTA */
.r-cta { display: flex; gap: 10px; margin-top: 24px; }

/* row facts — right-hand rail, label + value on one line (Canaves) */
.r-facts { display: flex; flex-direction: column; gap: 15px; }
.r-facts > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted);
}
.r-facts b {
  font-family: var(--font-display); font-weight: 500; font-size: 24px;
  letter-spacing: 0; text-transform: none; color: var(--ink);
}
.r-facts b.price { color: var(--amber); }
.filter { display: flex; justify-content: center; gap: 26px; padding: 6px 0 0; }
.filter span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); cursor: pointer; padding-bottom: 3px; }
.filter span.active { color: var(--amber); border-bottom: 0.5px solid var(--amber); }

/* ---- Facts strip (detail page): clustered, not sprawled ---- */
.factstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; text-align: center; max-width: 920px; margin: 0 auto; border-top: 0.5px solid var(--line); border-bottom: 0.5px solid var(--line); padding: 26px 0; }
.factstrip .k { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.factstrip .v { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--ink); }
.factstrip .v.price { color: var(--amber); }

/* ---- Highlights / amenities ---- */
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; font-size: 15px; color: var(--text); max-width: 1000px; margin: 0 auto; }
.checks i { color: var(--amber); margin-right: 8px; }
.amen { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 14px; font-size: 14px; color: var(--ink); max-width: 1000px; }
.amen i { color: var(--terracotta); margin-right: 8px; font-size: 18px; vertical-align: -3px; }

/* ---- Gallery: larger tiles, proper ratio ---- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gallery .photo { aspect-ratio: 4 / 3; height: auto; border-radius: var(--radius); }

/* ---- Detail hero: full-screen, immersive, light caption over the image ---- */
.house-hero {
  position: relative; min-height: 92vh; display: flex; align-items: flex-end;
  padding: clamp(40px, 7vh, 96px) 0;
  background:
    linear-gradient(to bottom, rgba(58,48,34,0) 45%, rgba(58,48,34,.55) 100%),
    linear-gradient(135deg, #B9A07B 0%, #8A7253 100%);
}
.house-hero .hero-caption { max-width: var(--maxw); width: 100%; margin: 0 auto; padding: 0 40px; position: relative; z-index: 2; }
.house-hero h1 { font-size: clamp(38px, 6vw, 76px); color: var(--amber); margin: 6px 0 0; }
.house-hero .sub { color: rgba(255,253,249,.86); font-size: clamp(15px, 1.7vw, 20px); margin: 10px 0 0; }
.house-hero .arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; background: rgba(255,253,249,.88); display: flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; z-index: 2; }
.house-hero .arrow.l { left: 20px; } .house-hero .arrow.r { right: 20px; }
.house-hero .count { position: absolute; top: 88px; right: 24px; font-size: 11px; font-style: italic; color: rgba(255,253,249,.8); z-index: 2; }

/* ---- Detail: floating booking bar (Lodgify booking box mounts here) ---- */
.book-float {
  position: relative; z-index: 30;
  max-width: min(1040px, calc(100% - 48px)); margin: -42px auto 0;
  background: var(--paper); border: 0.5px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(58,48,34,.16);
  display: flex; align-items: stretch; flex-wrap: wrap; padding: 8px 10px;
}
.book-float .bf { flex: 1; min-width: 130px; display: flex; flex-direction: column; gap: 3px; padding: 12px 22px; }
.book-float .bf .l { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.book-float .bf .v { font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink); }
.book-float .bf .v.muted { color: var(--muted); }
.book-float .sep { width: 0.5px; background: var(--line); margin: 12px 0; }
.book-float .btn { align-self: center; margin: 6px 8px 6px auto; }
.book-float label.bf { cursor: pointer; }
.book-float .bf input, .book-float .bf select {
  border: 0; background: transparent; padding: 0; width: 100%; cursor: pointer;
  font-family: var(--font-display); font-weight: 500; font-size: 16px; color: var(--ink);
}

/* ---- Detail: description + facts row ---- */
.detail-intro { display: flex; flex-wrap: wrap; gap: 32px 52px; align-items: start; }
.detail-intro > div:first-child { flex: 1 1 420px; max-width: 660px; }
.detail-intro .k { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.detail-intro p { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(18px, 1.9vw, 23px); line-height: 1.6; color: var(--ink); }
.detail-intro .v { font-family: var(--font-display); font-weight: 500; font-size: 24px; color: var(--ink); }
.detail-intro .v.price { color: var(--amber); }

/* ---- Detail: grouped "what's included" + photo (Canaves suite pattern) ---- */
.detail-amen { display: grid; grid-template-columns: 1fr 1fr 1.05fr; gap: clamp(28px, 3vw, 56px); align-items: start; }
.detail-amen > div:not(.photo) { display: grid; gap: clamp(24px, 2.4vw, 36px); }
.detail-amen .photo { aspect-ratio: 3 / 4; height: auto; border-radius: var(--radius); }
.grp-title { font-family: var(--font-body); font-weight: 600; font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 14px; }
.grp ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.grp li { position: relative; padding-left: 20px; font-size: 14px; color: var(--text); }
.grp li::before { content: '\2713'; position: absolute; left: 0; color: var(--amber); }

/* ---- Detail: a note ---- */
.note-block { max-width: 760px; }
.note-block .eyebrow { margin-bottom: 8px; }
.note-block p:last-child { margin: 0; font-size: 15px; line-height: 1.75; color: var(--text); }

/* ---- Full-width media block (e.g. the pool page banner image) ---- */
.media { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-lg); }

/* ---- Offers grid + cards ---- */
.offer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: clamp(20px, 2.4vw, 32px); text-align: left; }
.offer { background: var(--paper); border: 0.5px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.offer:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(58,48,34,.10); }
.offer .photo { aspect-ratio: 3 / 2; height: auto; border-radius: 0; }
.offer .body { padding: 24px 26px 26px; display: flex; flex-direction: column; flex: 1; }
.offer .tag { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 12px; }
.offer h2, .offer h3 { font-size: 23px; color: var(--ink); line-height: 1.2; margin-bottom: 6px; }
.offer .dates { font-size: 13px; letter-spacing: .5px; color: var(--muted); margin-bottom: 14px; }
.offer p { font-size: 15px; line-height: 1.65; color: var(--text); margin: 0 0 22px; }
.offer .cta { margin-top: auto; }

/* ---- About: principles intro + FAQ accordion (native <details>) ---- */
.faq { max-width: 760px; margin: 0 auto; text-align: left; }
.faq-item { border-bottom: 0.5px solid var(--line); }
.faq-item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 0; font-family: var(--font-display); font-weight: 500; font-size: clamp(17px, 1.8vw, 20px); color: var(--ink); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--amber); font-size: 24px; line-height: 1; flex: 0 0 auto; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: -4px 0 24px; font-size: 15px; line-height: 1.75; color: var(--text); max-width: 64ch; }

/* About: structured "selling points" — left-aligned, rule-separated (Canaves) */
.usp { max-width: 760px; margin: 0 auto; text-align: left; }
.usp-list { margin-top: 22px; }
.usp-list > div { padding: 24px 0; border-top: 0.5px solid var(--line); }
.usp-list h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(19px, 2vw, 23px); color: var(--ink); margin: 0 0 8px; }
.usp-list p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--text); }

/* ============================================================
   JOURNAL (blog) — editorial, photography-led (Belmond-inspired)
   ============================================================ */
/* index: photography-led card grid (auto-collapses 3 → 2 → 1) */
.journal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(32px, 3vw, 52px) clamp(24px, 2.4vw, 36px); }
.acard { display: block; }
.acard .photo { aspect-ratio: 4 / 5; height: auto; border-radius: var(--radius); margin-bottom: 18px; transition: transform .4s var(--ease); }
.acard:hover .photo { transform: translateY(-5px); }
.acard .cat { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--terracotta); margin: 0 0 9px; }
.acard h2, .acard h3 { font-size: clamp(20px, 1.9vw, 24px); color: var(--ink); line-height: 1.25; transition: color .2s var(--ease); }
.acard:hover h2, .acard:hover h3 { color: var(--amber); }
.acard .rt { margin: 10px 0 0; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.journal-filter { flex-wrap: wrap; }

/* article detail: centred title block, then a narrow reading measure */
.article-head { max-width: 820px; margin: 0 auto; text-align: center; }
.article-head .cat { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--amber); margin: 0 0 18px; }
.article-head h1 { font-size: clamp(34px, 5vw, 60px); color: var(--ink); line-height: 1.1; }
.article-meta { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.article-hero { aspect-ratio: 16 / 9; height: auto; border-radius: var(--radius-lg); }
.article-body { max-width: 680px; margin: 0 auto; }
.article-body > * + * { margin-top: 26px; }
.article-body .standfirst { font-family: var(--font-display); font-weight: 400; font-size: clamp(20px, 2vw, 25px); line-height: 1.6; color: var(--ink); }
.article-body p { font-size: 17px; line-height: 1.8; color: var(--text); margin: 0; }
.article-body h2 { font-size: clamp(23px, 2.4vw, 30px); color: var(--amber); margin-top: 46px; }
.article-body figure { margin: 44px 0; }
.article-body figure .photo { aspect-ratio: 3 / 2; height: auto; border-radius: var(--radius); }
.article-body figcaption { font-size: 12px; color: var(--muted); font-style: italic; margin-top: 10px; text-align: center; }
.article-body blockquote { margin: 46px 0; padding-left: 26px; border-left: 2px solid var(--amber); font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.38; color: var(--ink); }
.article-body blockquote cite { display: block; margin-top: 14px; font-family: var(--font-body); font-size: 13px; font-style: normal; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.article-body ul { margin: 0; padding-left: 22px; }
.article-body li { font-size: 17px; line-height: 1.75; color: var(--text); margin-bottom: 8px; }
.article-foot { padding-top: 28px; border-top: 0.5px solid var(--line); }

/* ---- Footer ---- */
.footer { background: var(--brown); color: #C9BB9F; text-align: center; padding: 52px 40px; }
.footer .word { font-family: var(--font-display); font-weight: 500; font-size: 20px; letter-spacing: 4px; color: #D9A969; }
.footer .row { font-size: 13px; margin: 14px 0 6px; }
.footer .fine { font-size: 11px; letter-spacing: 1px; color: #A49780; }

/* ---- Mobile sticky CTA ---- */
.mobile-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(247,240,230,.96); backdrop-filter: blur(6px);
  border-top: 0.5px solid var(--line-strong); padding: 9px 14px; gap: 8px; align-items: center;
}
.mobile-cta .btn { flex: 1; justify-content: center; }
.mobile-cta .wa { width: 44px; height: 44px; border-radius: 50%; border: 0.5px solid var(--terracotta); color: var(--terracotta); display: flex; align-items: center; justify-content: center; }

/* ---- Reveal on scroll ---- */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.in { opacity: 1; transform: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .navlinks { display: none; }
  .split { grid-template-columns: 1fr; min-height: 0; }
  .split .photo { min-height: 0; aspect-ratio: 3 / 2; order: 0 !important; }
  .split .copy { padding: 40px 28px; }
  .split .copy > * { max-width: none; }
  .factstrip { grid-template-columns: repeat(3, 1fr); gap: 22px 12px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .container { padding: 0 24px; }
  .house-row { grid-template-columns: 1fr; gap: 22px; }
  .hero-trust { display: none; }
  .hc-slide { grid-template-columns: 1fr; }
  .hc-slide .hc-info { text-align: center; }
  .hc-info p { max-width: none; }
  .hc-arrow { display: none; }
  .house-hero { min-height: 60vh; }
  .book-float { flex-wrap: wrap; align-items: stretch; margin-top: -28px; }
  .book-float .sep { display: none; }
  .book-float .bf { flex: 1 1 100%; padding: 10px 18px; }
  /* check-in + check-out share one row */
  .book-float .bf.bf-date { flex: 1 1 calc(50% - 1px); }
  .book-float .bf.bf-date ~ .bf.bf-date { border-left: 0.5px solid var(--line); }
  .book-float .btn { flex: 1 1 100%; margin: 6px 18px 10px; }
  .detail-amen { grid-template-columns: 1fr; }
  .detail-amen .photo { aspect-ratio: 3 / 2; }
  .mobile-cta { display: flex; }
  body { padding-bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .card:hover { transform: none; }
}

/* ============================================================
   SHARED PAGE COMPONENTS
   Consolidated from per-page inline <style> blocks so each rule
   lives once: booking-bar internals, photo-hero kicker, prose
   column, dark-band text, plan helpers, and small-screen tweaks.
   ============================================================ */
.house-hero .kicker { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: rgba(255,253,249,.85); }

.bookbar .field input, .bookbar .field select {
  border: 0; background: transparent; width: 100%; outline: none;
  font-family: var(--font-body); font-size: 16px; letter-spacing: .5px; color: var(--ink);
}
.bookbar .field .l { display: block; font-size: 10px; letter-spacing: 1px; color: var(--muted); margin-bottom: 2px; }
.bookbar .field { flex-direction: column; align-items: stretch; justify-content: center; }

.prose { max-width: 780px; margin: 0 auto; }
.prose h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 0 0 16px; }
.prose p { margin: 0 0 18px; font-size: 16px; line-height: 1.8; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.prose + .prose { margin-top: clamp(36px, 4.4vw, 60px); }

.band-dark { color: #C9BB9F; }
.band-dark .eyebrow { color: #D9A969; }
.band-dark h2 { color: #FFFDF9; }
.band-dark .lead-dark { max-width: 640px; margin: 16px auto 0; font-size: 16px; line-height: 1.75; color: #C9BB9F; }

.plan-sub { max-width: 48ch; margin: 14px auto 34px; color: var(--text); }
.whats { margin-top: 24px; font-size: 14px; color: var(--text); }

@media (max-width: 900px) {
  .link { display: inline-block; padding: 8px 0 2px; }   /* tap targets */
}
@media (max-width: 720px) {
  .bookbar { padding: 10px; gap: 8px; }
  .bookbar .field, .bookbar .field.narrow { flex: 1 1 calc(50% - 8px); min-width: 0; padding: 12px 14px; }
  .bookbar .field.narrow { flex: 1 1 100%; }
  .bookbar .btn { flex: 1 1 100%; justify-content: center; padding: 16px; }
}
@media (max-width: 640px) {
  .nav { padding: 14px 16px; gap: 8px; }
  .nav .nav-aux, .nav .lang { display: none; }
  /* drop the "Book now" button and the TINOS sub on phones: keeps the bar
     compact and lets the wordmark sit truly centred between equal columns */
  .nav-right .btn { display: none; }
  .brand .sub { display: none; }
  .brand .word { font-size: 18px; letter-spacing: 2px; white-space: nowrap; }
}

/* ============================================================
   HOUSE HERO — carousel tools + full-screen lightbox gallery
   ============================================================ */
/* two stacked layers that crossfade between photos (smooth auto-advance) */
.house-hero .hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease;
}
.house-hero .arrow { cursor: pointer; transition: background .2s var(--ease); }
.house-hero .hero-tools {
  position: absolute; top: 80px; right: 20px; z-index: 4;
  display: flex; align-items: center; gap: 14px;
}
.house-hero .hero-tools .count { position: static; top: auto; right: auto; }
.house-hero .hero-zoom {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-body); font-size: 11px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase; color: #FFFDF9;
  background: rgba(58,48,34,.42); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  border: 0.5px solid rgba(255,253,249,.55); border-radius: 40px; padding: 10px 16px;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.house-hero .hero-zoom:hover { background: rgba(58,48,34,.72); }
.house-hero .hero-zoom:active { transform: scale(.97); }
.house-hero .hero-zoom i { font-size: 15px; }
/* desktop header carries a second nav row (~150px) — drop the tools below it
   so the fixed header doesn't sit over (and swallow clicks on) the button */
@media (min-width: 901px) { .house-hero .hero-tools { top: 164px; } }

/* Lightbox: image shown in full (object-fit contain), arrows + close + counter */
.lightbox {
  position: fixed; inset: 0; z-index: 200; display: none;
  align-items: center; justify-content: center;
  background: rgba(26,21,14,.93); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.lightbox.open { display: flex; }
.lightbox .lb-img {
  max-width: 92vw; max-height: 86vh; width: auto; height: auto;
  object-fit: contain; border-radius: 4px; box-shadow: 0 24px 70px rgba(0,0,0,.55);
}
.lightbox .lb-close, .lightbox .lb-arrow {
  position: absolute; border: 0; cursor: pointer; color: #FFFDF9;
  background: rgba(255,253,249,.12); display: flex; align-items: center; justify-content: center;
  transition: background .2s var(--ease);
}
.lightbox .lb-close:hover, .lightbox .lb-arrow:hover { background: rgba(255,253,249,.26); }
.lightbox .lb-close { top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; }
.lightbox .lb-arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%; font-size: 24px; }
.lightbox .lb-arrow.l { left: 20px; }
.lightbox .lb-arrow.r { right: 20px; }
.lightbox .lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255,253,249,.85); font-size: 12px; letter-spacing: 2px; }
body.lb-lock { overflow: hidden; }

@media (max-width: 640px) {
  .house-hero .hero-tools { top: 70px; right: 12px; gap: 10px; }
  .lightbox .lb-img { max-width: 96vw; max-height: 82vh; }
  .lightbox .lb-arrow { width: 42px; height: 42px; font-size: 20px; }
  .lightbox .lb-arrow.l { left: 8px; }
  .lightbox .lb-arrow.r { right: 8px; }
  .lightbox .lb-close { top: 14px; right: 14px; }
}
/* ---- Photo gallery presentation (house detail) ---- */
.gallery-title { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
.gallery-lead { color: var(--text); font-size: 15px; line-height: 1.6; margin: 0 0 26px; max-width: 60ch; }
.gallery button.photo {
  border: 0; padding: 0; margin: 0; cursor: pointer; font: inherit;
  background: linear-gradient(135deg, var(--beige-deep) 0%, #DCC9A8 100%);
}
.gallery button.photo img { transition: transform .5s var(--ease), opacity .3s var(--ease); }
.gallery button.photo:hover img { transform: scale(1.05); opacity: .92; }
.gallery button.photo:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .house-hero .hero-bg { transition: none; }
  .house-hero .hero-zoom, .lightbox .lb-close, .lightbox .lb-arrow,
  .gallery button.photo img { transition: none; }
}

/* ---- Guest quotes on house pages ---- */
.gq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; max-width: 980px; margin: 26px auto 0; }
@media (max-width: 800px) { .gq-row { grid-template-columns: 1fr; } }
.gq { margin: 0; background: var(--paper); border: 0.5px solid var(--line); border-radius: var(--radius-lg); padding: 26px 28px 22px; }
.gq blockquote { margin: 0 0 14px; font-family: var(--font-display); font-style: italic; font-size: clamp(17px, 1.8vw, 20px); line-height: 1.55; color: var(--ink); }
.gq figcaption { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* trust badges that link out */
a.trust-badge { display: block; transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
a.trust-badge:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(58,48,34,.18); }
