:root {
  --navy: #0e2a5c;
  --navy-2: #163b7a;
  --gold: #c9a24a;
  --gold-2: #e8c873;
  --sky: #eaf3fd;
  --sky-2: #d6e8fb;
  --ink: #1b2433;
  --muted: #5d6b80;
  --line: #e3e8ef;
  --bg: #ffffff;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(14, 42, 92, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.55; }
h1, h2, h3 { font-family: Montserrat, Inter, sans-serif; line-height: 1.2; margin: 0 0 .4em; color: var(--navy); }
a { color: inherit; }
img { max-width: 100%; display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: Montserrat, sans-serif; font-weight: 700; color: var(--navy); }
.brand img { width: 38px; height: 38px; object-fit: contain; }
.brand small { display: block; font-weight: 500; font-size: .75rem; color: var(--gold); letter-spacing: .04em; }
.nav { display: flex; align-items: center; gap: 18px; font-weight: 500; font-size: .95rem; }
.nav a { text-decoration: none; color: var(--ink); }
.nav a:hover { color: var(--gold); }
.nav select { border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; font: inherit; background: #fff; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 12px 22px; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: 600 1rem Inter, sans-serif; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--navy); box-shadow: 0 4px 14px rgba(201,162,74,.35); }
.btn-gold:hover { filter: brightness(1.05); }
.btn-ghost { border: 1.5px solid var(--navy); color: var(--navy); background: #fff; }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 85% 20%, var(--sky-2), transparent 60%), linear-gradient(180deg, var(--sky), #fff); overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 24px; min-height: 520px; }
.hero-text { padding: 64px 0; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; font-weight: 600; color: var(--gold); margin: 0 0 12px; }
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 800; }
.hero h1 span { color: var(--gold); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.stats { list-style: none; padding: 0; margin: 0; display: flex; gap: 32px; }
.stats strong { display: block; font: 800 1.8rem Montserrat, sans-serif; color: var(--navy); }
.stats span { color: var(--muted); font-size: .9rem; }
.hero-portrait { align-self: end; display: flex; justify-content: center; }
.hero-portrait { padding: 32px 0; }
.hero-portrait img { max-height: 460px; width: auto; object-fit: contain; border-radius: 24px; border: 3px solid var(--gold-2); box-shadow: var(--shadow); background: #fff; }

/* Listings */
.listings { padding: 64px 0; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head h2 { font-size: 2rem; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0 28px; }
.filters select, .filters input { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: inherit; background: #fff; min-width: 0; }
.filters input { flex: 1 1 180px; }
.seg { display: inline-flex; background: var(--sky); border-radius: 999px; padding: 4px; }
.seg button { border: 0; background: transparent; padding: 8px 16px; border-radius: 999px; font: 600 .92rem Inter, sans-serif; color: var(--navy); cursor: pointer; }
.seg button.active { background: var(--navy); color: #fff; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; transition: transform .15s ease, box-shadow .15s ease; text-align: left; padding: 0; font: inherit; color: inherit; }
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(14,42,92,.14); }
.card-img { aspect-ratio: 1 / 1; background: var(--sky); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 14px 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.badge { align-self: flex-start; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 3px 10px; border-radius: 999px; }
.badge.sale { background: #fff4d9; color: #8a6510; }
.badge.rent { background: var(--sky-2); color: var(--navy); }
.card h3 { font-size: 1.05rem; margin: 6px 0 0; }
.card .area { color: var(--muted); font-size: .9rem; }
.price { font: 700 1.2rem Montserrat, sans-serif; color: var(--navy); margin-top: 6px; }
.price small { font: 500 .8rem Inter, sans-serif; color: var(--muted); }
.empty { text-align: center; padding: 40px 0; color: var(--muted); }

/* About */
.about { background: linear-gradient(135deg, var(--navy), var(--navy-2)); color: #fff; padding: 64px 0; }
.about h2 { color: #fff; font-size: 2rem; }
.about-inner { display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; }
.about-photo { width: 220px; height: 260px; object-fit: cover; object-position: top; border-radius: 18px; background: #fff; border: 3px solid var(--gold); }
.role { color: var(--gold-2); font-weight: 600; }
.about p { max-width: 40em; }

/* Enquiry */
.enquiry { padding: 64px 0; background: var(--sky); }
.enquiry h2 { font-size: 1.8rem; }
.enquiry-form { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 20px; }
.enquiry-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .9rem; }
.enquiry-form input, .enquiry-form select, .enquiry-form textarea { border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font: inherit; background: #fff; }
.enquiry-form .full { grid-column: 1 / -1; }

.footer { padding: 28px 0 90px; text-align: center; border-top: 1px solid var(--line); }
.footer p { margin: 4px 0; }

.wa-float { position: fixed; right: 18px; bottom: 64px; /* clear of the "Powered by Netlify" badge */ width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.2); z-index: 30; }

/* Detail dialog */
.detail { border: 0; border-radius: 18px; padding: 0; width: min(980px, 100% - 24px); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.detail::backdrop { background: rgba(10, 20, 40, .6); }
.detail .close { position: absolute; top: 10px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--navy); }
.detail-body { display: grid; grid-template-columns: 1.1fr .9fr; }
.gallery { background: #0b1830; }
.gallery-main { aspect-ratio: 1 / 1; display: grid; place-items: center; }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.thumbs button { flex: 0 0 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 8px; overflow: hidden; cursor: pointer; background: none; }
.thumbs button.active { border-color: var(--gold); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.info { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.info h3 { font-size: 1.4rem; }
.facts { margin: 6px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.facts li { display: flex; gap: 8px; }
.facts li::before { content: "✓"; color: var(--gold); font-weight: 700; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .93rem; margin: 4px 0 8px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }
.ref { font-size: .8rem; color: var(--muted); }
.share { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.share-main { padding: 9px 18px; }
.share-opt { display: none; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font: 500 .9rem Inter, sans-serif; color: var(--navy); text-decoration: none; cursor: pointer; }
.share.open .share-opt { display: inline-flex; }
.share-opt:hover { border-color: var(--gold); }

@media (max-width: 820px) {
  .nav a { display: none; }
  .hero-inner { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 40px 0 0; }
  .hero-portrait { display: none; }
  .hero-text { padding-bottom: 32px; }
  .about-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .detail-body { grid-template-columns: 1fr; }
  .enquiry-form { grid-template-columns: 1fr; }
  .stats { gap: 22px; }
}
