/* =====================================================================
   RANGELOV PROPERTIES — site stylesheet
   Palette sampled from the logo (cream / ink / gold) and the Facebook
   banner (Maltese balcony green, limestone).
   ===================================================================== */

:root {
  --cream: #F6F0E4;
  --paper: #FCFAF5;
  --stone: #EDE5D5;
  --stone-2: #E4D8C2;
  --ink: #26272B;
  --ink-2: #3A3C41;
  --muted: rgba(38, 39, 43, 0.66);
  --faint: rgba(38, 39, 43, 0.44);
  --line: rgba(38, 39, 43, 0.12);
  --line-2: rgba(38, 39, 43, 0.2);
  --gold: #CCA45D;
  --gold-deep: #9E7C3A;
  --green: #2E5A3E;
  --green-deep: #1E3D2A;
  --on-dark: #F6F0E4;
  --on-dark-2: rgba(246, 240, 228, 0.72);
  --on-dark-3: rgba(246, 240, 228, 0.48);

  --display: "Playfair Display", "Times New Roman", Georgia, serif;
  --label: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(38,39,43,.06), 0 12px 32px -16px rgba(38,39,43,.28);
  --shadow-lg: 0 2px 4px rgba(38,39,43,.05), 0 30px 60px -28px rgba(38,39,43,.38);
  --ease: cubic-bezier(.2,.7,.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body); font-size: 16px; line-height: 1.65;
  color: var(--ink); background: var(--cream);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--gold-deep); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.01em; line-height: 1.08; }
.h-xl { font-size: clamp(2.4rem, 5.2vw, 4.1rem); }
.h-lg { font-size: clamp(2rem, 3.8vw, 3rem); }
.h-md { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.h-sm { font-size: 1.35rem; }
.lede { font-size: clamp(1.02rem, 1.3vw, 1.14rem); color: var(--muted); max-width: 56ch; }
.label {
  font-family: var(--label); font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-deep);
}
.label--split { display: inline-flex; gap: 0.7em; align-items: center; }
.label--split .alt { color: var(--faint); }
.label--rule::before { content: ""; width: 28px; height: 1px; background: var(--gold); display: inline-block; vertical-align: middle; margin-right: 0.8em; }
em.gold { font-style: italic; color: var(--gold-deep); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--label); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05em 1.8em; border-radius: 999px; border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn--ink { background: var(--ink); color: var(--on-dark); }
.btn--ink:hover { background: var(--ink-2); }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: #d8b16b; }
.btn--green { background: var(--green); color: var(--on-dark); }
.btn--green:hover { background: var(--green-deep); }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--line-light { border-color: rgba(246,240,228,.35); color: var(--on-dark); }
.btn--line-light:hover { border-color: var(--on-dark); }
.btn--block { width: 100%; }
.link-arrow { font-family: var(--label); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; display: inline-flex; gap: .5em; align-items: center; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-arrow svg { transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(246, 240, 228, 0.88); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; justify-content: space-between; height: 78px; gap: 1rem; }
.logo { display: flex; align-items: center; gap: 12px; }
.logo__mark { height: 42px; width: auto; }
.logo__word { height: 30px; width: auto; }
.nav { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); list-style: none; }
.nav a:not(.btn) {
  font-family: var(--label); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); position: relative; padding: 6px 0; transition: color .2s;
}
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a:not(.btn):hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 0.85em 1.4em; font-size: 0.72rem; }
.menu-btn { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; border: 1px solid var(--line-2); }

/* ---------- Hero (echoes the Facebook banner band) ---------- */
/* The photo is the client's Facebook banner. Its own text band sits at
   30.8%–71.6% height from 28% width; the glass band below covers it exactly. */
.hero { position: relative; container-type: inline-size; }
.hero__frame { position: relative; aspect-ratio: 3142 / 1333; overflow: hidden; background: var(--ink); }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__frame::after {
  content: ""; position: absolute; left: 25%; right: 0; top: 30.3%; height: 41.9%;
  background: linear-gradient(90deg, rgba(38,39,43,0.55) 0%, rgba(38,39,43,0.84) 18%, rgba(38,39,43,0.87) 100%);
  backdrop-filter: blur(16px) saturate(120%); -webkit-backdrop-filter: blur(16px) saturate(120%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 13%); mask-image: linear-gradient(90deg, transparent 0, #000 13%);
}
.hero__band { position: absolute; left: 25%; right: 0; top: 12.86cqw; height: 17.76cqw; display: flex; align-items: center; z-index: 2; }
.hero__copy { padding-left: 15%; padding-right: 6%; color: var(--on-dark); width: 100%; }
.hero__copy .label { color: var(--gold); font-size: clamp(0.58rem, 0.7vw, 0.72rem); }
.hero__copy .label .alt { color: var(--on-dark-3); }
.hero__title { font-size: clamp(1.9rem, 3.35vw, 3.6rem); font-weight: 500; line-height: 1.04; margin: 0.32em 0 0.34em; color: var(--on-dark); }
.hero__title em { font-style: italic; color: var(--gold); }
.hero__sub { font-size: clamp(0.85rem, 1.08vw, 1.12rem); color: var(--on-dark-2); max-width: 46ch; }
.hero__sync {
  position: absolute; left: var(--gutter); top: clamp(1rem, 2vw, 1.6rem); z-index: 3;
  display: inline-flex; align-items: center; gap: .6rem;
  background: rgba(252,250,245,.92); color: var(--ink); border-radius: 999px; padding: .5rem .95rem .5rem .75rem;
  font-family: var(--label); font-size: .66rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  box-shadow: var(--shadow);
}
.pulse { width: 8px; height: 8px; border-radius: 50%; background: #3f9a63; position: relative; flex: none; }
.pulse::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid #3f9a63; opacity: .5; animation: pulse 2.2s ease-out infinite; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.8); opacity: 0; } }

/* ---------- Search ---------- */
.search {
  position: relative; z-index: 5; margin: -46px auto 0; max-width: 1000px;
  background: var(--paper); border-radius: 999px; box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  display: grid; grid-template-columns: 1.25fr 1fr 1fr 0.9fr auto; align-items: center; padding: 8px;
}
.search__field { padding: 10px 22px; border-right: 1px solid var(--line); min-width: 0; }
.search__field:nth-child(4) { border-right: 0; }
.search__field label { display: block; font-family: var(--label); font-size: .62rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 2px; }
.search__field input, .search__field select { width: 100%; border: 0; background: transparent; font: inherit; font-size: .92rem; color: var(--muted); padding: 0; appearance: none; -webkit-appearance: none; }
.search__field input:focus, .search__field select:focus { outline: none; color: var(--ink); }
.search__btn { height: 60px; padding: 0 28px; border-radius: 999px; background: var(--ink); color: var(--on-dark); display: inline-flex; align-items: center; gap: .6rem; font-family: var(--label); font-size: .74rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; transition: background .25s var(--ease); }
.search__btn:hover { background: var(--green); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(4rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 4.5rem); }
.section--stone { background: var(--stone); }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: var(--on-dark); }
.section--green { background: var(--green-deep); color: var(--on-dark); }
.section--ink .lede, .section--green .lede { color: var(--on-dark-2); }
.section--ink .label, .section--green .label { color: var(--gold); }
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.head-row h2 { margin-top: .7rem; }
.head-row .lede { margin-top: .9rem; }

/* ---------- Sync strip ---------- */
.syncstrip { border-bottom: 1px solid var(--line); }
.syncstrip__in { display: flex; align-items: center; justify-content: center; gap: clamp(1rem, 3vw, 2.6rem); flex-wrap: wrap; padding-block: 2.2rem 1.6rem; }
.syncstrip__item { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--label); font-size: .7rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.syncstrip__item svg { color: var(--gold-deep); }

/* ---------- Stay cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.4rem, 2.4vw, 2rem); }
.card { position: relative; display: flex; flex-direction: column; }
.card[hidden] { display: none; }
.card__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3.4; background: var(--stone); }
.slides { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; transition: transform .6s var(--ease); }
.card:hover .slides img { transform: scale(1.03); }
.slides__nav { position: absolute; top: 50%; translate: 0 -50%; width: 32px; height: 32px; border-radius: 50%; background: rgba(252,250,245,.94); display: grid; place-items: center; opacity: 0; transition: opacity .2s; box-shadow: var(--shadow); z-index: 2; }
.slides__nav--prev { left: 10px; } .slides__nav--next { right: 10px; }
.card__media:hover .slides__nav { opacity: 1; }
.dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 2; pointer-events: none; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(252,250,245,.55); transition: background .2s, transform .2s; }
.dots i.on { background: #fff; transform: scale(1.15); }
.tag {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: rgba(252,250,245,.95); color: var(--ink); border-radius: 999px; padding: .38rem .75rem;
  font-family: var(--label); font-size: .6rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.tag--gold { background: var(--gold); }
.tag--green { background: var(--green); color: var(--on-dark); }
.card__body { padding: 1rem .15rem 0; display: flex; flex-direction: column; gap: .2rem; }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.card__area { font-family: var(--label); font-size: .64rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--faint); }
.card__direct { font-size: .74rem; color: var(--green); font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; white-space: nowrap; }
.card__title { font-family: var(--display); font-size: 1.42rem; line-height: 1.15; }
.card__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card__meta { font-size: .88rem; color: var(--muted); }
.card__price { margin-top: .35rem; font-size: .92rem; color: var(--muted); }
.card__price b { font-family: var(--display); font-weight: 600; font-size: 1.2rem; color: var(--ink); }
.card .slides__nav, .card .tag { z-index: 3; }

.empty { text-align: center; padding: 4rem 1rem; border: 1px dashed var(--line-2); border-radius: var(--radius); color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: .5rem; }

/* ---------- Direct-booking split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.statement { font-family: var(--display); font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; margin-top: 1rem; }
.statement em { font-style: italic; color: var(--gold-deep); }
.benefits { list-style: none; display: grid; gap: 1.6rem; }
.benefit { display: grid; grid-template-columns: 48px 1fr; gap: 1.1rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.benefit:last-child { border-bottom: 0; padding-bottom: 0; }
.benefit__icon { width: 48px; height: 48px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; color: var(--green); }
.benefit h3 { font-size: 1.25rem; margin-bottom: .3rem; }
.benefit p { color: var(--muted); font-size: .95rem; }

/* ---------- Feature (for sale) ---------- */
.feature { display: grid; grid-template-columns: 1.15fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; background: #2d2e33; }
.feature__media { position: relative; min-height: 460px; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature__body { padding: clamp(2rem, 4vw, 3.4rem); display: flex; flex-direction: column; gap: 1rem; }
.feature__body h3 { font-size: clamp(1.8rem, 3vw, 2.5rem); color: var(--on-dark); }
.feature__body p { color: var(--on-dark-2); }
.specs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(246,240,228,.14); border-bottom: 1px solid rgba(246,240,228,.14); margin: .6rem 0 .4rem; }
.specs div { padding: 1rem 0; }
.specs b { display: block; font-family: var(--display); font-size: 1.6rem; font-weight: 500; color: var(--on-dark); line-height: 1.1; }
.specs span { font-family: var(--label); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); }
.cgi-note { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: .6rem 1rem; font-size: .66rem; letter-spacing: .02em; color: var(--on-dark-2); background: linear-gradient(0deg, rgba(38,39,43,.85), rgba(38,39,43,0)); }

/* ---------- Family ---------- */
.family { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.family__mark { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); aspect-ratio: 1; display: grid; place-items: center; position: relative; overflow: hidden; }
.family__mark img { width: 58%; }
.family__mark::after { content: "Est. Malta"; position: absolute; bottom: 1.4rem; font-family: var(--label); font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--faint); }
.quote { font-family: var(--display); font-style: italic; font-size: clamp(1.45rem, 2.4vw, 2rem); line-height: 1.3; margin: 1.1rem 0 1rem; }
.quote-sr { color: var(--faint); font-size: .98rem; font-style: italic; margin-bottom: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.8rem; }
.chip { border: 1px solid var(--line-2); border-radius: 999px; padding: .42rem .9rem; font-family: var(--label); font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; align-items: center; }
.cta h2 { color: var(--on-dark); }
.cta__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: flex-end; }
.cta-bg { position: relative; overflow: hidden; }
.cta-bg::before { content: ""; position: absolute; inset: 0; background: url("../img/wide-balconies.jpg") center/cover; opacity: .14; mix-blend-mode: luminosity; }
.cta-bg > .wrap { position: relative; }

/* ---------- Page head ---------- */
.pagehead { padding-block: clamp(3rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); }
.pagehead h1 { margin: .9rem 0 1rem; max-width: 18ch; }
.crumbs { font-size: .84rem; color: var(--faint); display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.crumbs a:hover { color: var(--ink); }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1rem 0 2rem; border-top: 1px solid var(--line); }
.fchip { border: 1px solid var(--line-2); border-radius: 999px; padding: .55rem 1.05rem; font-family: var(--label); font-size: .66rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: all .2s; }
.fchip:hover { border-color: var(--ink); color: var(--ink); }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.filters__right { margin-left: auto; display: flex; align-items: center; gap: .6rem; font-size: .88rem; color: var(--muted); }
.filters select { font: inherit; font-size: .88rem; border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem 2rem .5rem 1rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2326272B' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right .9rem center; appearance: none; -webkit-appearance: none; color: var(--ink); }
.notice { display: none; margin-bottom: 1.6rem; padding: .85rem 1.1rem; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.notice.show { display: flex; gap: .6rem; align-items: center; }

/* ---------- Listing detail ---------- */
.detailhead { padding-top: clamp(1.6rem, 3vw, 2.4rem); }
.detailhead__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap; margin-top: 1rem; }
.detailhead h1 { font-size: clamp(2rem, 4vw, 3rem); margin-top: .5rem; }
.detailhead__meta { color: var(--muted); margin-top: .5rem; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: clamp(300px, 46vw, 520px); margin-top: 1.6rem; border-radius: var(--radius); overflow: hidden; position: relative; }
.gallery button { position: relative; overflow: hidden; background: var(--stone); padding: 0; }
.gallery button:first-child { grid-row: 1 / 3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery button:hover img { transform: scale(1.03); filter: brightness(.93); }
.gallery .gallery__all { position: absolute; grid-row: auto; overflow: visible; right: 16px; bottom: 16px; z-index: 2; background: var(--paper); border: 1px solid var(--ink); border-radius: 999px; padding: .6rem 1.1rem; font-family: var(--label); font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .5rem; box-shadow: var(--shadow); }
.cgi-band { margin-top: 1rem; display: flex; gap: .7rem; align-items: flex-start; font-size: .82rem; color: var(--muted); background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: var(--radius-sm); padding: .85rem 1.1rem; }
.cgi-band svg { flex: none; color: var(--gold-deep); margin-top: 2px; }

.detail { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 5.5rem); padding-block: clamp(2.4rem, 5vw, 3.5rem) clamp(4rem, 8vw, 6rem); align-items: start; }
.block { padding-block: 2rem; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: 0; }
.block:last-child { border-bottom: 0; }
.block h2 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.block p { color: var(--muted); margin-bottom: .9rem; max-width: 64ch; }
.host { display: flex; align-items: center; gap: 1rem; }
.host__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; flex: none; }
.host__avatar img { width: 34px; }
.host h3 { font-family: var(--body); font-weight: 600; font-size: 1rem; letter-spacing: 0; }
.host p { margin: 0; font-size: .9rem; }
.highlights { list-style: none; display: grid; gap: 1.3rem; }
.highlights li { display: grid; grid-template-columns: 28px 1fr; gap: 1rem; }
.highlights svg { color: var(--ink); margin-top: 2px; }
.highlights b { display: block; font-weight: 600; }
.highlights span { color: var(--muted); font-size: .92rem; }
.amen { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: .95rem 2rem; }
.amen li { display: flex; align-items: center; gap: .85rem; }
.amen svg { color: var(--ink-2); flex: none; }
.sleep { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .9rem; }
.sleep div { border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 1.1rem; background: var(--paper); }
.sleep svg { color: var(--ink-2); margin-bottom: .6rem; }
.sleep b { display: block; font-weight: 600; }
.sleep span { color: var(--muted); font-size: .9rem; }
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.rules div { padding: 1rem 0; }
.rules span { display: block; font-family: var(--label); font-size: .62rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: .2rem; }
.rules b { font-weight: 600; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8; background: var(--stone); position: relative; }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.55) sepia(.12) contrast(.96); }
.map__pin { position: absolute; left: 50%; top: 50%; translate: -50% -50%; width: 74px; height: 74px; border-radius: 50%; background: rgba(46,90,62,.18); display: grid; place-items: center; pointer-events: none; }
.map__pin::after { content: ""; width: 40px; height: 40px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(252,250,245,.9); }
.small { font-size: .85rem; color: var(--faint); margin-top: .8rem; }
.factrow { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; color: var(--ink-2); font-size: .95rem; }
.factrow span + span::before { content: "·"; margin-right: 1.2rem; color: var(--faint); }

/* Booking card */
.bookcard { position: sticky; top: 104px; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow-lg); }
.bookcard__price { display: flex; align-items: baseline; gap: .4rem; }
.bookcard__price b { font-family: var(--display); font-size: 2rem; font-weight: 600; }
.bookcard__price span { color: var(--muted); }
.bookcard__save { display: inline-flex; align-items: center; gap: .4rem; margin: .5rem 0 1.2rem; font-size: .8rem; font-weight: 600; color: var(--green); background: rgba(46,90,62,.08); border-radius: 999px; padding: .3rem .75rem; }
.bookcard__perks { list-style: none; margin-top: 1.2rem; display: grid; gap: .55rem; font-size: .86rem; color: var(--muted); }
.bookcard__perks li { display: flex; gap: .55rem; align-items: center; }
.bookcard__perks svg { color: var(--green); flex: none; }
.bookcard__wa { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); font-size: .88rem; font-weight: 600; color: var(--ink); }
.bookcard__wa:hover { color: var(--green); }

/* Smoobu slot + preview */
.smoobu { position: relative; border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; }
.smoobu__flag { position: absolute; top: -1px; right: -1px; background: var(--gold); color: var(--ink); font-family: var(--label); font-size: .55rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .6rem; border-bottom-left-radius: 8px; z-index: 2; }
.smoobu__dates { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line-2); }
.smoobu__dates div { padding: .7rem .9rem; }
.smoobu__dates div + div { border-left: 1px solid var(--line-2); }
.smoobu__dates label, .smoobu__guests label { display: block; font-family: var(--label); font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.smoobu__dates span, .smoobu__guests span { font-size: .9rem; color: var(--muted); }
.smoobu__guests { padding: .7rem .9rem; border-bottom: 1px solid var(--line-2); display: flex; justify-content: space-between; align-items: center; }
.cal { padding: .9rem .9rem 1rem; }
.cal__head { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.cal__head i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; color: var(--muted); }
.cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; font-size: .78rem; }
.cal__grid b { font-weight: 600; font-size: .66rem; color: var(--faint); padding-bottom: .3rem; }
.cal__grid span { aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; color: var(--ink); }
.cal__grid span.off { color: var(--faint); text-decoration: line-through; }
.cal__grid span.in, .cal__grid span.out { background: var(--ink); color: var(--on-dark); }
.cal__grid span.mid { background: var(--stone); border-radius: 0; }
.cal__legend { display: flex; gap: 1rem; font-size: .7rem; color: var(--faint); margin-top: .6rem; }
.smoobu__cta { padding: 0 .9rem .9rem; }

/* For-sale enquiry */
.enq h3 { font-size: 1.6rem; margin-bottom: .3rem; }
.enq > p { color: var(--muted); font-size: .9rem; margin-bottom: 1.3rem; }
.field { margin-bottom: .9rem; }
.field label { display: block; font-family: var(--label); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .4rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: .95rem; padding: .8rem .95rem; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: #fff; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field select { appearance: none; -webkit-appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%2326272B' fill='none' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat right 1rem center; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-deep); box-shadow: 0 0 0 3px rgba(204,164,93,.2); }
.field textarea { min-height: 96px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.form-note { font-size: .76rem; color: var(--faint); margin-top: .8rem; }
.form-note a { text-decoration: underline; }
.form-ok { display: none; padding: .9rem 1rem; border-radius: var(--radius-sm); background: rgba(46,90,62,.1); border: 1px solid rgba(46,90,62,.35); color: var(--green-deep); font-size: .9rem; margin-bottom: 1rem; }
.form-ok.show { display: block; }

.steps { list-style: none; counter-reset: s; display: grid; gap: 0; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; font-family: var(--display); font-size: 1rem; color: var(--gold-deep); }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: .92rem; }
.planslot { border: 1px dashed var(--line-2); border-radius: var(--radius); aspect-ratio: 16/9; display: grid; place-items: center; text-align: center; color: var(--faint); background: var(--paper); font-size: .9rem; padding: 1rem; }
.keyfacts { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.keyfacts div { padding: 1.1rem 1.2rem; }
.keyfacts div + div { border-left: 1px solid var(--line); }
.keyfacts b { display: block; font-family: var(--display); font-size: 1.7rem; font-weight: 500; line-height: 1.1; }
.keyfacts span { font-family: var(--label); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }

/* Sale listing (wide card) */
.salecard { display: grid; grid-template-columns: 1.2fr 1fr; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.salecard__media { position: relative; min-height: 400px; }
.salecard__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.salecard__body { padding: clamp(1.8rem, 3.5vw, 3rem); display: flex; flex-direction: column; gap: .9rem; }
.salecard__body h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
.salecard__body h2 a::after { content: ""; position: absolute; inset: 0; }
.salecard .keyfacts { background: var(--cream); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; background: var(--cream); overflow-y: auto; display: none; }
.lightbox.open { display: block; }
.lightbox__bar { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; padding: 1rem var(--gutter); background: rgba(246,240,228,.94); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); z-index: 2; }
.lightbox__close { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; }
.lightbox__grid { max-width: 900px; margin: 0 auto; padding: 2rem var(--gutter) 4rem; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lightbox__grid img { width: 100%; border-radius: var(--radius-sm); }
.lightbox__grid img:nth-child(3n+1) { grid-column: 1 / 3; }

/* Mobile booking bar */
.mbar { display: none; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2.5rem, 6vw, 5rem); align-items: start; }
.clist { list-style: none; display: grid; gap: 0; margin-top: 2rem; }
.clist li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.15rem 0; border-top: 1px solid var(--line); align-items: center; }
.clist li:last-child { border-bottom: 1px solid var(--line); }
.clist__icon { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--green); }
.clist span { display: block; font-family: var(--label); font-size: .6rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.clist b, .clist a { font-weight: 600; }
.clist a:hover { color: var(--green); }
.formcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.5rem, 3.5vw, 2.5rem); box-shadow: var(--shadow); }

/* Prose */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.6rem; margin: 2.4rem 0 .8rem; }
.prose p, .prose li { color: var(--muted); margin-bottom: .9rem; }
.prose ul { padding-left: 1.2rem; }
.prose strong { color: var(--ink); }
.prose a { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: var(--on-dark-2); padding-block: clamp(3.5rem, 7vw, 5.5rem) 2rem; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__logo { width: 170px; margin-bottom: 1.4rem; }
.footer p { font-size: .92rem; max-width: 34ch; }
.footer h4 { font-family: var(--label); font-size: .64rem; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.footer ul { list-style: none; display: grid; gap: .6rem; font-size: .92rem; }
.footer a:hover { color: var(--on-dark); }
.footer__bar { margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(246,240,228,.12); display: flex; justify-content: space-between; flex-wrap: wrap; gap: .8rem; font-size: .8rem; color: var(--on-dark-3); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .search { grid-template-columns: 1fr 1fr; border-radius: 22px; gap: 0; padding: 6px; }
  .search__field { border-right: 0; border-bottom: 1px solid var(--line); }
  .search__field:nth-child(odd) { border-right: 1px solid var(--line); }
  .search__field:nth-child(3), .search__field:nth-child(4) { border-bottom: 0; }
  .search__btn { grid-column: 1 / -1; height: 52px; justify-content: center; margin-top: 6px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .family, .cta, .contact { grid-template-columns: 1fr; }
  .cta__actions { justify-content: flex-start; }
  .feature, .salecard { grid-template-columns: 1fr; }
  .feature__media, .salecard__media { min-height: 0; aspect-ratio: 16 / 10; }
  .detail { grid-template-columns: 1fr; }
  .bookcard { position: static; }
  .family__mark { max-width: 360px; }
}
@media (max-width: 860px) {
  .header__in { height: 68px; }
  .logo__mark { height: 36px; } .logo__word { height: 24px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--cream); border-bottom: 1px solid var(--line); padding: .5rem var(--gutter) 1.4rem; box-shadow: var(--shadow); }
  .nav.open { display: flex; }
  .nav li { border-bottom: 1px solid var(--line); }
  .nav li:last-child { border-bottom: 0; padding-top: 1rem; }
  .nav a:not(.btn) { display: block; padding: 1rem 0; }
  .nav a:not(.btn)::after { display: none; }
  .nav .btn { width: 100%; }
  /* Mobile hero: banner photo + band on top, copy below on ink */
  .hero__band { position: static; height: auto; background: var(--ink); padding: 2rem 0 4.6rem; }
  .hero__copy { padding-inline: var(--gutter); }
  .hero__title { font-size: clamp(2.2rem, 9vw, 3rem); }
  .hero__sub { font-size: 1rem; }
  .hero__copy .label { font-size: .64rem; }
  .hero__sync { display: none; }
  .search { margin: -34px var(--gutter) 0; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 440px; }
  .gallery button:first-child { grid-column: 1 / 3; grid-row: 1; }
  .gallery button:nth-child(n+4) { display: none; }
  .mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: var(--paper); border-top: 1px solid var(--line); padding: .8rem var(--gutter); align-items: center; justify-content: space-between; gap: 1rem; box-shadow: 0 -10px 30px -20px rgba(38,39,43,.4); }
  .mbar b { font-family: var(--display); font-size: 1.3rem; }
  .mbar span { color: var(--muted); font-size: .85rem; }
  body.has-mbar { padding-bottom: 76px; }
}
@media (max-width: 640px) {
  .cards { grid-template-columns: 1fr; }
  .amen { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; }
  .specs, .keyfacts { grid-template-columns: 1fr 1fr; }
  .keyfacts div:nth-child(3) { border-left: 0; }
  .keyfacts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .search { grid-template-columns: 1fr; }
  .search__field, .search__field:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
  .search__field:nth-child(3) { border-bottom: 1px solid var(--line); }
  .filters__right { margin-left: 0; width: 100%; }
  .lightbox__grid { grid-template-columns: 1fr; }
  .lightbox__grid img:nth-child(3n+1) { grid-column: auto; }
  .head-row { align-items: flex-start; }
}

/* =====================================================================
   SAVINGS SECTION + CALCULATOR
   ===================================================================== */
.savings { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.savings__copy .lede { margin-top: 1.2rem; }
.minis { list-style: none; display: grid; gap: 1.1rem; margin-top: 2rem; }
.minis li { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; align-items: center; }
.minis svg { width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line); color: var(--green); }
.minis b { display: block; font-weight: 600; }
.minis span { color: var(--muted); font-size: .92rem; }
.calc { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: clamp(1.5rem, 3vw, 2.2rem); box-shadow: var(--shadow-lg); }
.calc__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.calc__pill { font-family: var(--label); font-size: .56rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .65rem; }
.calc .field label { display: flex; justify-content: space-between; }
.calc output { font-family: var(--display); font-size: 1.05rem; letter-spacing: 0; text-transform: none; color: var(--ink); }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 4px; border-radius: 99px; background: linear-gradient(90deg, var(--green) var(--p, 20%), var(--stone-2) var(--p, 20%)); padding: 0; border: 0; margin: .9rem 0 .6rem; }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green); box-shadow: var(--shadow); cursor: grab; }
.calc input[type=range]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--green); cursor: grab; }
.calc input[type=range]:focus { box-shadow: none; }
.calc__bars { margin: 1.4rem 0 1.2rem; display: grid; gap: 1.1rem; }
.calc__row { display: grid; grid-template-columns: 1fr auto; row-gap: .5rem; align-items: baseline; }
.calc__row span { font-size: .9rem; color: var(--muted); }
.calc__row b { font-family: var(--display); font-weight: 500; font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.calc__bar { grid-column: 1 / -1; display: block; height: 12px; border-radius: 99px; background: var(--stone); overflow: hidden; }
.calc__bar::before { content: ""; display: block; height: 100%; width: var(--w); border-radius: inherit; transition: width .9s var(--ease); }
.calc__bar--plat::before { background: repeating-linear-gradient(135deg, #b8ab93 0 6px, #c7bba4 6px 12px); }
.calc__bar--direct::before { background: var(--green); }
.calc__save { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.calc__save span { font-family: var(--label); font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.calc__save b { font-family: var(--display); font-size: clamp(2.2rem, 4vw, 2.9rem); font-weight: 500; color: var(--green); line-height: 1; font-variant-numeric: tabular-nums; }
.calc__note { font-size: .78rem; color: var(--faint); margin-bottom: 1.3rem; }
@media (max-width: 960px) { .savings { grid-template-columns: 1fr; } }

/* =====================================================================
   MOTION — subtle, only when JS is on, off for reduced-motion users
   ===================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.hero__title .load { display: inline-block; }
.js .load { opacity: 0; animation: rise .95s var(--ease) var(--d, 0s) forwards; }
.js .hero__img { opacity: 0; animation: fade 1.4s ease .05s forwards; }
.js .hero__sync { opacity: 0; animation: drop .8s var(--ease) 1.2s forwards; }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease) var(--d, 0s), transform .9s var(--ease) var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
.label--rule::before { transition: width .8s var(--ease) .25s; }
.js .reveal:not(.in) .label--rule::before { width: 0; }
.js .calc:not(.in) .calc__bar::before { width: 0; }
.card.reveal.in:hover { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .load, .js .hero__img, .js .hero__sync, .js .reveal { opacity: 1 !important; transform: none !important; animation: none !important; }
  .js .reveal:not(.in) .label--rule::before { width: 28px; }
  .pulse::after { display: none; }
}
