/* ==========================================================
   Barima Homes
   ========================================================== */

:root {
  --black: #16121a;
  --black-2: #1f1a24;
  --maroon: #7a1424;
  --red: #c8102e;
  --red-dark: #a50d26;
  --gold: #f5a623;
  --gold-2: #f2c94c;
  --cream: #faf6ef;
  --cream-2: #f1e9dc;
  --ink: #17151a;
  --muted: #6b6470;
  --line: #e9e2d6;
  --wa: #25d366;

  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 18px 44px -22px rgba(22, 18, 26, .35);
  --shadow-lg: 0 40px 80px -30px rgba(22, 18, 26, .55);

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --script: "Yellowtail", cursive;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; }
p { margin: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.brand__mark { stroke: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--sans); font-weight: 700; font-size: 15px; padding: 13px 22px; border-radius: 999px; border: 0; cursor: pointer; white-space: nowrap; transition: transform .2s, box-shadow .2s, background .2s, color .2s; }
.btn svg { width: 18px; height: 18px; }
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 16px 28px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--black); box-shadow: 0 10px 24px -10px rgba(245, 166, 35, .8); }
.btn--red { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(200, 16, 46, .8); }
.btn--red:hover { background: var(--red-dark); }
.btn--dark { background: var(--black); color: #fff; }
.btn--glass { background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.btn--glass:hover { background: rgba(255,255,255,.22); }
.btn--ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.btn--whatsapp { background: var(--wa); color: #08341b; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 50; background: rgba(22, 18, 26, .96); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); color: #fff; transition: background .3s, box-shadow .3s; }
.home .header { position: fixed; left: 0; right: 0; background: linear-gradient(to bottom, rgba(10,8,12,.55), rgba(10,8,12,0)); backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .header.is-scrolled, .home .header.is-open { background: rgba(22, 18, 26, .96); backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); box-shadow: 0 10px 30px -18px rgba(0,0,0,.6); }
.header__inner { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 50px; height: 38px; }
.brand__text { display: flex; align-items: baseline; gap: 6px; }
.brand__script { font-family: var(--script); font-size: 30px; color: #fff; text-shadow: 0 0 6px rgba(200, 16, 46, .9), 0 0 16px rgba(200, 16, 46, .5); line-height: 1; }
.brand__homes { font-family: var(--serif); font-weight: 800; font-size: 16px; letter-spacing: .08em; }
.nav { display: flex; gap: 2px; margin-left: auto; }
.nav a { font-size: 14.5px; font-weight: 600; color: rgba(255,255,255,.88); padding: 8px 14px; border-radius: 999px; transition: background .2s, color .2s; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.header__cta { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.3); background: rgba(0,0,0,.15); border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-toggle span { width: 18px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s, opacity .3s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-menu { background: var(--black); padding: 8px 24px 24px; display: grid; gap: 2px; border-top: 1px solid rgba(255,255,255,.08); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a:not(.btn) { padding: 13px 4px; font-weight: 600; color: #e6e1ea; border-bottom: 1px solid rgba(255,255,255,.07); }
.mobile-menu .btn { margin-top: 14px; }

/* ---------- Shared type ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.eyebrow--dark { color: var(--red); }
.section { padding: 100px 0; }
.section--cream { background: var(--cream); }
.section--dark { background: var(--black); color: #fff; }
.section__head { max-width: 820px; margin-bottom: 44px; }
.section__title, .cta__q { text-wrap: balance; }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section__head--center .eyebrow::after { content: ""; width: 26px; height: 2px; background: currentColor; }
.section__head--row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section__title { font-family: var(--serif); font-weight: 800; font-size: clamp(32px, 4.4vw, 50px); letter-spacing: -.02em; margin-top: 14px; color: var(--ink); }
.section__title em { font-style: italic; color: var(--maroon); }
.section__title--light { color: #fff; }
.section__title--light em { color: var(--gold); }
.section__lead { margin-top: 18px; font-size: 17px; color: var(--muted); }
.section__lead a { color: var(--red); font-weight: 700; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; overflow: hidden; background: var(--black); }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; animation: heroZoom 18s ease-out both; }
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__shade { position: absolute; inset: 0; background:
  linear-gradient(90deg, rgba(14,10,16,.82) 0%, rgba(14,10,16,.55) 42%, rgba(14,10,16,.1) 75%),
  linear-gradient(0deg, rgba(14,10,16,.75) 0%, rgba(14,10,16,0) 45%); }
.hero__inner { position: relative; width: 100%; padding-top: 150px; padding-bottom: 56px; }
.hero__copy { max-width: 640px; }
.hero__title { font-family: var(--serif); font-weight: 800; font-size: clamp(44px, 6.6vw, 82px); letter-spacing: -.025em; line-height: 1.02; margin-top: 18px; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.hero__title em { color: var(--gold); font-style: italic; }
.hero__lead { margin-top: 22px; font-size: 18.5px; color: rgba(255,255,255,.88); max-width: 520px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

/* Finder */
.finder { margin-top: 56px; display: grid; grid-template-columns: auto 1fr 1fr auto; align-items: end; gap: 0; background: #fff; color: var(--ink); border-radius: 22px; padding: 10px; box-shadow: var(--shadow-lg); max-width: 1000px; }
.finder__field { display: flex; flex-direction: column; gap: 4px; padding: 10px 20px; min-width: 0; }
.finder__field + .finder__field { border-left: 1px solid var(--line); }
.finder__label { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.finder input[type="text"] { border: 0; outline: 0; font: 600 16px var(--sans); color: var(--ink); padding: 6px 0; background: transparent; width: 100%; min-width: 0; }
.finder input::placeholder { color: #a7a0ab; font-weight: 500; }
.finder__btn { height: 60px; border-radius: 16px; padding: 0 26px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { position: relative; cursor: pointer; }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { display: inline-block; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; background: var(--cream-2); color: var(--ink); transition: background .2s, color .2s; }
.pill input:checked + span { background: var(--black); color: #fff; }
.pill input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }

/* ---------- Trust strip ---------- */
.trust { background: var(--black); color: #fff; padding: 26px 0; border-top: 1px solid rgba(255,255,255,.06); }
.trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.trust__item { display: flex; align-items: center; gap: 14px; min-width: 0; }
.trust__icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(245,166,35,.12); color: var(--gold); flex-shrink: 0; }
.trust__icon svg { width: 22px; height: 22px; }
.trust__item strong { display: block; font-size: 15px; }
.trust__item small { display: block; font-size: 13px; color: #b9b2be; }

/* ---------- Land & houses ---------- */
.duo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.duo__card { position: relative; display: block; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; color: #fff; box-shadow: var(--shadow); isolation: isolate; }
.duo__card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; z-index: -2; }
.duo__card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(14,10,16,.88) 0%, rgba(14,10,16,.25) 50%, rgba(14,10,16,0) 70%); z-index: -1; }
.duo__card:hover img { transform: scale(1.06); }
.duo__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px; }
.duo__body h3 { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); margin-top: 12px; }
.duo__body p { margin-top: 8px; color: rgba(255,255,255,.85); }
.duo__link { display: inline-flex; gap: 8px; margin-top: 16px; font-weight: 700; color: var(--gold); }
.tag { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; background: var(--gold); color: var(--black); }
.tag--red { background: var(--red); color: #fff; }
.tag--dark { background: #fff; color: var(--black); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 240px; gap: 18px; }
.gallery__item { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; background: var(--cream-2); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s ease; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.94); backdrop-filter: blur(6px); display: flex; flex-direction: column; line-height: 1.3; }
.gallery__item figcaption strong { font-size: 15px; }
.gallery__item figcaption span { font-size: 13px; color: var(--muted); }
.gallery__note { margin-top: 22px; font-size: 13.5px; color: var(--muted); text-align: center; }

/* ---------- Why ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 5.4; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.split__badge { position: absolute; right: -18px; bottom: 36px; background: var(--red); color: #fff; border-radius: 20px; padding: 18px 22px; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 12px; }
.split__badge strong { font-family: var(--serif); font-size: 38px; line-height: 1; }
.split__badge span { font-size: 13px; font-weight: 700; line-height: 1.3; }
.checks { list-style: none; padding: 0; margin: 26px 0 32px; display: grid; gap: 12px; }
.checks li { position: relative; padding-left: 36px; font-weight: 600; }
.checks li::before { content: ""; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat; }

/* ---------- Steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--black-2); border: 1px solid rgba(255,255,255,.07); transition: border-color .3s, transform .3s; }
.step:hover { border-color: rgba(245,166,35,.5); transform: translateY(-4px); }
.step__num { font-family: var(--serif); font-weight: 800; font-size: 40px; color: var(--gold); line-height: 1; }
.step h3 { font-size: 18px; margin-top: 18px; }
.step p { margin-top: 8px; color: #b9b2be; font-size: 15px; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.3fr; gap: 64px; align-items: start; }
.faq__img { margin-top: 30px; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius); }
.faq__list { display: grid; gap: 12px; }
.faq__list details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; transition: box-shadow .2s; }
.faq__list details[open] { box-shadow: var(--shadow); }
.faq__list summary { cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative; font-weight: 700; font-size: 16.5px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: var(--cream-2); display: grid; place-items: center; font-size: 18px; color: var(--red); transition: transform .2s; }
.faq__list details[open] summary::after { content: "–"; }
.faq__list details p { padding: 0 0 20px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta { position: relative; padding: 130px 0; color: #fff; text-align: center; overflow: hidden; background: var(--black); }
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(12,10,14,.72), rgba(12,10,14,.5) 75%), linear-gradient(0deg, rgba(12,10,14,.55), rgba(12,10,14,.2)); }
.cta__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta__q { font-family: var(--serif); font-size: clamp(26px, 3.6vw, 40px); font-weight: 700; max-width: 760px; line-height: 1.2; }
.cta__kindly { margin-top: 26px; font-family: var(--script); font-size: 30px; color: var(--gold); }
.cta__num { font-family: var(--serif); font-weight: 800; font-size: clamp(30px, 7vw, 72px); white-space: nowrap; letter-spacing: .01em; line-height: 1.05; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 30px; }
.cta__sub { margin-top: 18px; font-size: 14px; color: rgba(255,255,255,.75); }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #cfc9d3; padding-top: 72px; }
.footer__inner { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; padding-bottom: 48px; }
.footer__brand p { margin-top: 14px; color: #a8a1ad; max-width: 280px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer__cols h4 { color: #fff; font-size: 14px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.footer__cols a, .footer__cols .muted { display: block; padding: 4px 0; font-size: 15px; }
.footer__cols a:hover { color: var(--gold); }
.footer__cols .fcontact { display: flex; align-items: center; gap: 10px; }
.fcontact svg { flex: none; width: 17px; height: 17px; fill: none; stroke: var(--gold); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: #8d8692; }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding-top: 24px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.08); font-size: 14px; color: #8d8692; }
.footer:not(.legal-footer) .footer__bottom { padding-right: 88px; }
.footer__legal { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a:hover { color: #fff; }

/* ---------- WhatsApp FAB ---------- */
.fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(37, 211, 102, .8); transition: transform .2s; }
.fab:hover { transform: scale(1.06); }
.fab svg { width: 28px; height: 28px; stroke-width: 1.9; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .header__cta { margin-left: auto; }
  .finder { grid-template-columns: 1fr 1fr; }
  .finder__field--type { grid-column: 1 / -1; }
  .finder__field--type + .finder__field { border-left: 0; }
  .finder__field { border-top: 1px solid var(--line); }
  .finder__field--type { border-top: 0; }
  .finder__btn { grid-column: 1 / -1; margin-top: 8px; }
  .trust__grid { grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: span 2; }
  .split { gap: 48px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .section { padding: 72px 0; }
  .duo { grid-template-columns: 1fr; gap: 20px; }
  .split { grid-template-columns: 1fr; }
  .split__media { max-width: 520px; }
  .split__badge { right: 14px; bottom: 14px; }
  .faq { grid-template-columns: 1fr; gap: 32px; }
  .faq__img { display: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .header__inner { height: 66px; gap: 12px; }
  .brand__mark { width: 42px; height: 32px; }
  .brand__script { font-size: 26px; }
  .brand__homes { font-size: 14px; }
  .header__cta .btn span { display: none; }
  .header__cta .btn--sm { width: 44px; height: 44px; padding: 0; }
  .hero { min-height: auto; }
  .hero__bg { height: 62vh; min-height: 380px; bottom: auto; }
  .hero__inner { padding-top: max(300px, 46vh); padding-bottom: 28px; }
  .hero__shade { background: linear-gradient(0deg, var(--black) 0%, var(--black) calc(100% - max(380px, 62vh)), rgba(14,10,16,.55) calc(100% - max(380px, 62vh) + 200px), rgba(14,10,16,.05) 85%, rgba(14,10,16,.45) 100%); }
  .hero__title { font-size: clamp(38px, 11vw, 48px); }
  .hero__lead { font-size: 16.5px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .finder { margin-top: 32px; grid-template-columns: 1fr; padding: 8px; border-radius: 18px; }
  .finder__field { padding: 10px 14px; }
  .pill span { padding: 7px 12px; font-size: 13.5px; }
  .pills { gap: 5px; }
  .finder__field + .finder__field { border-left: 0; }
  .finder__btn { height: 54px; }
  .trust__grid { grid-template-columns: 1fr; gap: 16px; }
  .section__title { font-size: clamp(28px, 8.4vw, 36px); }
  .section__head { margin-bottom: 30px; }
  .duo__card { aspect-ratio: 4 / 3.6; }
  .duo__body { padding: 22px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 170px; gap: 10px; }
  .gallery__item--tall { grid-row: span 1; }
  .gallery__item:nth-child(5) { grid-column: span 2; }
  .gallery__item--wide { grid-column: span 2; }
  .gallery__item figcaption { left: 8px; right: 8px; bottom: 8px; padding: 8px 10px; border-radius: 10px; }
  .gallery__item figcaption strong { font-size: 13px; }
  .gallery__item figcaption span { display: none; }
  .steps { grid-template-columns: 1fr; gap: 12px; }
  .step { padding: 22px; display: grid; grid-template-columns: auto 1fr; column-gap: 18px; }
  .step__num { grid-row: span 2; font-size: 32px; }
  .step h3 { margin-top: 0; }
  .step p { margin-top: 4px; }
  .cta { padding: 90px 0; }
  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__cols > div:last-child { grid-column: 1 / -1; }
  .fab { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}

/* ---------- Listings page ---------- */
.nav a[aria-current="page"] { background: rgba(255,255,255,.12); color: #fff; }
.page-hero { position: relative; color: #fff; overflow: hidden; background: var(--black); }
.page-hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero__shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(14,10,16,.88), rgba(14,10,16,.5)); }
.page-hero__inner { position: relative; padding-top: 72px; padding-bottom: 64px; }
.page-hero__title { font-family: var(--serif); font-weight: 800; font-size: clamp(38px, 5.4vw, 64px); letter-spacing: -.02em; margin-top: 14px; }
.page-hero__title em { color: var(--gold); }
.page-hero__lead { margin-top: 16px; max-width: 560px; font-size: 17.5px; color: rgba(255,255,255,.86); }
.listings { padding-top: 48px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 30px; }
.filter { font: 700 14.5px var(--sans); padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.filter:hover { border-color: var(--ink); }
.filter.is-active { background: var(--black); border-color: var(--black); color: #fff; }
.filters__count { margin-left: auto; font-size: 14px; color: var(--muted); font-weight: 600; }
.listing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.listing { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .3s, transform .3s; min-width: 0; }
.listing:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.listing__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream-2); }
.listing__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.listing:hover .listing__media img { transform: scale(1.05); }
.listing__tag { position: absolute; left: 14px; top: 14px; }
.listing__tag--house { background: var(--red); color: #fff; }
.listing__tag--apartment { background: #fff; color: var(--black); }
.listing__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 3px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.listing__nav--prev { left: 12px; }
.listing__nav--next { right: 12px; }
.listing__nav:hover { background: #fff; }
.listing__count { position: absolute; right: 14px; bottom: 12px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(14,10,16,.7); color: #fff; }
.listing__flag { position: absolute; right: 14px; top: 14px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; background: rgba(14,10,16,.75); color: #fff; letter-spacing: .04em; }
.listing__flag--available { background: #1f8a4c; color: #fff; }
.listing__flag--sold { background: var(--black); color: #fff; }
.listing.is-sold { background: #fbfaf8; }
.listing.is-sold .listing__media img { filter: grayscale(.85) brightness(.92); }
.listing.is-sold .listing__body h3, .listing.is-sold .listing__price { color: var(--muted); }
.listing.is-sold:hover { transform: none; }
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn--outline:hover { border-color: var(--ink); }
.listing__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.listing__body h3 { font-family: var(--serif); font-size: 22px; }
.listing__loc { display: flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); font-size: 14.5px; }
.listing__loc svg { width: 16px; height: 16px; color: var(--red); }
.listing__specs { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.listing__specs li { font-size: 13px; font-weight: 600; padding: 5px 11px; border-radius: 8px; background: var(--cream); color: var(--ink); }
.listing__foot { margin-top: auto; padding-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.listing__price { font-weight: 800; font-size: 16px; color: var(--maroon); }
.listings__empty { grid-column: 1 / -1; padding: 44px 28px; text-align: center; background: var(--cream); border-radius: var(--radius); color: var(--muted); }
.listings__empty h3 { font-family: var(--serif); font-size: 26px; color: var(--ink); }
.listings__empty p { margin: 10px auto 0; max-width: 520px; }
.listings__empty-actions { margin-top: 22px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.lsearch { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 12px; align-items: end; padding: 16px; margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.lsearch__field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lsearch__field span { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.lsearch__field input { font: 600 15.5px var(--sans); padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); min-width: 0; width: 100%; }
.lsearch__field input:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.lsearch .btn { height: 48px; }
.lsearch__clear { height: 48px; padding: 0 12px; border: 0; background: none; font: 700 14px var(--sans); color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.lsearch__clear[hidden] { display: none; }
.listings__more { margin-top: 56px; padding: 36px 40px; border-radius: var(--radius-lg); background: var(--black); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.listings__more[hidden] { display: none; }
.listings__more h2 { font-family: var(--serif); font-size: 28px; }
.listings__more p { margin-top: 6px; color: #b9b2be; }
.listings__more-actions { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 1080px) { .listing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .listing-grid { grid-template-columns: 1fr; gap: 18px; }
  .page-hero__inner { padding-top: 48px; padding-bottom: 44px; }
  .filters { gap: 8px; }
  .filter { padding: 8px 13px; font-size: 13.5px; }
  .filters__count { width: 100%; margin-left: 0; }
  .listings__more { padding: 28px 22px; }
  .listings__more-actions, .listings__more-actions .btn { width: 100%; }
  .lsearch { grid-template-columns: 1fr 1fr; }
  .lsearch .btn, .lsearch__clear { grid-column: 1 / -1; }
  .lsearch__clear { height: auto; }
  .listings__empty-actions .btn { width: 100%; }
}

/* Enquiry form */
.enquire { background: #fff; }
.enquire__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }
.enquire__copy { margin-bottom: 0; }
.enquire__points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.enquire__points li { position: relative; padding-left: 30px; font-weight: 600; color: var(--ink); }
.enquire__points li::before { content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c8102e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center/12px no-repeat; }
.enquire__form { background: var(--cream); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); }
.enquire__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.efield { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.efield--full { grid-column: 1 / -1; }
.efield > span, .efield legend { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0; margin-bottom: 0; }
.efield legend { margin-bottom: 8px; }
.efield input, .efield textarea { width: 100%; min-width: 0; font: 500 16px var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 13px 14px; outline: 0; transition: border-color .2s, box-shadow .2s; }
.efield textarea { resize: vertical; min-height: 96px; }
.efield input::placeholder, .efield textarea::placeholder { color: #a7a0ab; }
.efield input:focus, .efield textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(200,16,46,.12); }
.efield input.is-invalid { border-color: var(--red); }
.echips { display: flex; flex-wrap: wrap; gap: 8px; }
.echips label { position: relative; cursor: pointer; }
.echips input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.echips span { display: inline-block; padding: 9px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--ink); transition: background .2s, color .2s, border-color .2s; }
.echips input:checked + span { background: var(--black); border-color: var(--black); color: #fff; }
.echips input:focus-visible + span { outline: 2px solid var(--red); outline-offset: 2px; }
.enquire__error { margin: -8px 0 14px; color: var(--red); font-weight: 600; font-size: 14px; }
.enquire__hint { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 900px) { .enquire__grid { grid-template-columns: 1fr; gap: 36px; } }
@media (max-width: 560px) {
  .enquire__form { padding: 20px; border-radius: 20px; }
  .enquire__fields { grid-template-columns: 1fr; }
  .enquire .btn--lg { white-space: normal; }
}
.listings__loading { grid-column: 1 / -1; text-align: center; padding: 60px 0; color: var(--muted); font-weight: 600; }
