/* Haven Prime Homes public site. Brand colours come from the logo; checked for readable contrast. */
:root {
    --navy: #011c36;
    --navy-2: #0b2d50;
    --gold: #bb7108;          /* logo gold: lines, icons, badges */
    --gold-deep: #9c5d05;     /* gold for text and buttons with white text (5.3:1) */
    --gold-soft: #f7efe2;
    --cream: #faf7f2;
    --ink: #14202e;
    --muted: #5b6672;
    --line: #e3e6ea;
    --bg: #ffffff;
    --good: #17663a;
    --good-soft: #e3f4ea;
    --hot: #b42318;
    --radius: 14px;
    --shadow: 0 10px 30px rgba(1, 28, 54, .10);
    --head: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bar: 0px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font: 16px/1.6 var(--body); color: var(--ink); background: var(--bg); padding-bottom: var(--bar); }
img { max-width: 100%; display: block; }
a { color: var(--gold-deep); }
h1, h2, h3 { font-family: var(--head); line-height: 1.2; margin: 0 0 .5em; color: var(--navy); letter-spacing: -.01em; }
h1 { font-size: clamp(1.6rem, 4.2vw, 2.7rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.8vw, 1.65rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.icon { flex: none; vertical-align: -3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 8px; background: #fff; padding: 8px 12px; z-index: 30; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--head); font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-deep); }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* Buttons: navy main action, gold for WhatsApp and booking. All at least 44px tall for thumbs. */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border: 2px solid var(--navy); background: var(--navy); color: #fff; padding: 10px 22px; border-radius: 999px; font: 700 .95rem/1.2 var(--head); text-decoration: none; cursor: pointer; transition: background .15s, transform .15s; }
.button:hover { background: var(--navy-2); }
.button:active { transform: translateY(1px); }
.button.gold { background: var(--gold-deep); border-color: var(--gold-deep); }
.button.gold:hover { background: #874f04; }
.button.ghost { background: transparent; color: var(--navy); }
.button.ghost:hover { background: var(--cream); }
.button.light { background: #fff; color: var(--navy); border-color: #fff; }
.button.small { min-height: 40px; padding: 7px 16px; font-size: .88rem; }
.button.block { width: 100%; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.header-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand img { height: 48px; width: auto; }
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a { color: var(--navy); text-decoration: none; font: 600 .92rem var(--head); padding: 6px 0; }
.main-nav a:hover, .main-nav a[aria-current] { box-shadow: inset 0 -2px var(--gold); }
.mobile-menu { display: none; position: relative; margin-left: auto; }
.mobile-menu summary { list-style: none; cursor: pointer; color: var(--navy); padding: 8px; display: grid; place-items: center; }
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu nav { position: absolute; right: 0; top: 52px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; min-width: 230px; display: grid; }
.mobile-menu nav a { padding: 12px 14px; color: var(--navy); text-decoration: none; font: 600 .95rem var(--head); border-radius: 10px; }
.mobile-menu nav a:hover { background: var(--cream); }
@media (max-width: 980px) {
    .main-nav, .header-cta { display: none; }
    .mobile-menu { display: block; }
    .header-row { min-height: 62px; }
    .brand img { height: 38px; }
}

/* Phones: fixed action bar at the bottom */
.action-bar { display: none; }
@media (max-width: 760px) {
    :root { --bar: 68px; }
    .action-bar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(1,28,54,.08); padding: 8px 8px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
    .action-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 50px; border-radius: 12px; text-decoration: none; color: var(--navy); font: 700 .78rem var(--head); }
    .action-bar a.primary { background: var(--gold-deep); color: #fff; }
}

/* Hero */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(1,28,54,.95) 0%, rgba(1,28,54,.75) 45%, rgba(1,28,54,.35) 100%); }
.hero .wrap { position: relative; z-index: 1; padding-top: 64px; padding-bottom: 72px; }
.hero h1 { color: #fff; max-width: 720px; }
.hero h1 em { font-style: normal; color: #e9a849; }
.hero .lead { color: #d8e1ea; max-width: 600px; font-size: 1.08rem; }
.hero .eyebrow { color: #e9a849; }
.hero .eyebrow::before { background: #e9a849; }
@media (max-width: 600px) { .hero .wrap { padding-top: 36px; padding-bottom: 40px; } }

/* Search with type tabs */
.search-box { margin-top: 28px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); color: var(--ink); max-width: 880px; overflow: hidden; }
.search-tabs { display: flex; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.search-tabs label { flex: 1 0 auto; margin: 0; }
.search-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search-tabs span { display: block; text-align: center; padding: 14px 16px; font: 700 .9rem var(--head); color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; }
.search-tabs input:checked + span { color: var(--navy); border-bottom-color: var(--gold); }
.search-tabs input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: -3px; }
.search-fields { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; padding: 16px; align-items: end; }
@media (max-width: 640px) { .search-fields { grid-template-columns: 1fr; } }

.trust-strip { background: var(--cream); border-bottom: 1px solid var(--line); }
.trust-strip ul { list-style: none; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; max-width: 1200px; }
.trust-strip li { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); font-size: .93rem; }
.trust-strip .icon { color: var(--gold); }

/* Forms */
label { display: block; font-size: .86rem; font-weight: 600; margin-bottom: 5px; color: var(--navy); }
input, select, textarea { width: 100%; font: inherit; min-height: 46px; padding: 10px 12px; border: 1.5px solid #cdd3da; border-radius: 10px; background: #fff; color: var(--ink); }
textarea { min-height: 0; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(187,113,8,.18); }
input[type="range"] { padding: 0; border: 0; min-height: 30px; accent-color: var(--gold-deep); box-shadow: none; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--gold-deep); }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; margin: 0; cursor: pointer; }
.phone-field { display: flex; }
.phone-field span { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid #cdd3da; border-right: 0; border-radius: 10px 0 0 10px; background: var(--cream); font-weight: 700; color: var(--navy); }
.phone-field input { border-radius: 0 10px 10px 0; }
.error { color: var(--hot); font-size: .86rem; margin: 4px 0 0; }
.alert { padding: 12px 14px; border-radius: 10px; background: #fdecea; color: #8a1c12; margin-bottom: 16px; }
.more-details summary { cursor: pointer; color: var(--gold-deep); font-weight: 600; font-size: .92rem; padding: 4px 0; }
.more-details[open] summary { margin-bottom: 10px; }
.more-details .form-grid { gap: 12px; }

/* Sections */
.section { padding-top: 56px; padding-bottom: 56px; }
.section.cream { background: var(--cream); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head a { font-weight: 700; text-decoration: none; }
@media (max-width: 600px) { .section { padding-top: 40px; padding-bottom: 40px; } }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.tile { display: block; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; transition: border-color .15s, box-shadow .15s; }
.tile:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.tile strong { display: block; font: 700 1.08rem var(--head); color: var(--navy); margin-bottom: 4px; }
.tile .count { color: var(--gold-deep); font-weight: 700; }
.quick-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 40px; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; color: var(--navy); font-weight: 600; font-size: .9rem; text-decoration: none; cursor: pointer; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"], .chip.on { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 760px) { .tiles { grid-template-columns: 1fr 1fr; } .tile { padding: 16px; } }

.promises { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.promise { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; border-top: 3px solid var(--gold); }
.promise .icon { color: var(--gold); margin-bottom: 8px; }
.promise p { margin: 0; font-weight: 600; color: var(--navy); }

/* Property cards */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 980px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-photo { position: relative; aspect-ratio: 4 / 3; background: var(--cream); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; }
.card-photo .placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); gap: 6px; }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { background: #fff; color: var(--navy); font: 700 .74rem var(--head); padding: 4px 10px; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.12); }
.badge.good { background: var(--good-soft); color: var(--good); }
.badge.offer, .badge.hot { background: var(--hot); color: #fff; }
.badge.plan { background: var(--navy); color: #fff; }
.badge.new { background: var(--gold-deep); color: #fff; }
.photo-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; background: rgba(1,28,54,.78); color: #fff; font-size: .78rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price { font: 800 1.3rem var(--head); color: var(--navy); }
.per-month { font-size: .88rem; color: var(--good); font-weight: 700; }
.card-body h3 { margin: 0; font-size: 1rem; }
.card-body h3 a { color: inherit; text-decoration: none; }
.card-body h3 a::after { content: ""; position: absolute; inset: 0; }
.card-location { display: flex; gap: 5px; align-items: center; color: var(--muted); font-size: .9rem; margin: 0; }
.facts-row { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 10px 0 0; border-top: 1px solid var(--line); list-style: none; font-size: .88rem; color: var(--ink); }
.facts-row li { display: inline-flex; align-items: center; gap: 5px; }
.facts-row .icon { color: var(--gold); }

/* Results */
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.filters { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); margin-bottom: 20px; }
.filters summary { display: none; }
.filters-body { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; padding: 16px; align-items: end; }
.price-chips { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.filters-actions { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
@media (max-width: 900px) {
    .filters summary { display: flex; align-items: center; gap: 8px; padding: 12px 16px; cursor: pointer; font: 700 .95rem var(--head); color: var(--navy); list-style: none; }
    .filters summary::-webkit-details-marker { display: none; }
    .filters-body { grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
}
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.active-filters a { padding: 5px 12px; border-radius: 999px; background: var(--gold-soft); color: var(--navy); text-decoration: none; font-size: .86rem; font-weight: 600; }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 32px; }
.pagination a, .pagination span { min-width: 44px; min-height: 44px; display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--navy); font-weight: 600; }
.pagination [aria-current] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Property page */
.gallery { position: relative; margin-top: 16px; }
.gallery-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; border-radius: var(--radius); scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track figure { flex: 0 0 100%; margin: 0; scroll-snap-align: start; aspect-ratio: 16 / 10; background: var(--cream); border-radius: var(--radius); overflow: hidden; }
.gallery-track img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; }
.gallery-count { position: absolute; right: 14px; bottom: 14px; background: rgba(1,28,54,.8); color: #fff; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: .85rem; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 12px; } .gallery-nav.next { right: 12px; }
@media (max-width: 600px) { .gallery-nav { display: none; } .gallery { margin: 0 -16px; } .gallery-track, .gallery-track figure { border-radius: 0; } }
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(1,14,28,.94); display: grid; place-items: center; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-height: 88vh; width: auto; border-radius: 8px; }
.lightbox button { position: absolute; top: 14px; right: 14px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: var(--navy); font-weight: 700; cursor: pointer; }

.property-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 36px; align-items: start; padding: 20px 0 56px; }
@media (max-width: 980px) { .property-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.property-head h1 { margin: 6px 0 6px; font-size: clamp(1.4rem, 3.4vw, 2.1rem); }
.price-panel { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.price-option { flex: 1 1 200px; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.price-option span { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.price-option strong { font: 800 1.45rem var(--head); color: var(--navy); }
.price-option small { display: block; color: var(--good); font-weight: 700; }
.price-option.highlight { border-color: var(--gold); background: var(--gold-soft); }
.key-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.key-facts li { display: flex; gap: 10px; align-items: center; background: var(--cream); border-radius: 12px; padding: 12px 14px; }
.key-facts .icon { color: var(--gold); }
.key-facts span { display: block; font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.key-facts strong { color: var(--navy); font-size: .95rem; }
.jump-nav { position: sticky; top: 72px; z-index: 5; display: flex; gap: 4px; overflow-x: auto; background: #fff; border-bottom: 1px solid var(--line); margin: 8px 0 20px; scrollbar-width: none; }
.jump-nav a { padding: 12px 14px; color: var(--muted); text-decoration: none; font: 700 .86rem var(--head); white-space: nowrap; border-bottom: 3px solid transparent; }
.jump-nav a:hover { color: var(--navy); border-bottom-color: var(--gold); }
@media (max-width: 980px) { .jump-nav { top: 62px; } }
.content-section { margin-bottom: 36px; }
.description { white-space: pre-line; }
.features { columns: 2; padding: 0; list-style: none; }
.features li { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; break-inside: avoid; }
.features .icon { color: var(--good); }
@media (max-width: 520px) { .features { columns: 1; } }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th, .detail-table td { text-align: left; padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail-table th { width: 42%; color: var(--muted); font-weight: 600; }
.video { aspect-ratio: 16 / 9; width: 100%; border: 0; border-radius: var(--radius); }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); }

.side { position: sticky; top: 90px; display: grid; gap: 16px; }
@media (max-width: 980px) { .side { position: static; } }
.panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.panel h2 { font-size: 1.2rem; }
.form-grid { display: grid; gap: 14px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.plan-box { background: var(--gold-soft); border-radius: var(--radius); padding: 22px; }
.plan-headline { font: 800 1.35rem var(--head); color: var(--navy); margin: 4px 0 14px; }
.slider-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; margin-bottom: 10px; }
.slider-row label { margin: 0; }
.slider-row output { font-weight: 800; color: var(--navy); }
.slider-row input { grid-column: 1 / -1; }
.plan-result { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.plan-result div { background: #fff; border-radius: 10px; padding: 10px 12px; }
.plan-result span { display: block; font-size: .78rem; color: var(--muted); font-weight: 600; }
.plan-result strong { font: 800 1.02rem var(--head); color: var(--navy); }
@media (max-width: 600px) { .plan-result { grid-template-columns: 1fr; } }
.pay-notice { display: flex; gap: 12px; align-items: flex-start; background: var(--good-soft); color: #0f3d24; border-radius: var(--radius); padding: 14px 16px; margin: 0 0 20px; }
.pay-notice p { margin: 0; font-size: .92rem; }
.pay-notice .icon { color: var(--good); margin-top: 2px; }

/* Thank-you page */
.thanks { max-width: 620px; margin: 0 auto; padding: 56px 16px; text-align: center; }
.reference { display: inline-block; font: 800 1.4rem var(--head); letter-spacing: .06em; background: var(--gold-soft); color: var(--navy); padding: 8px 20px; border-radius: 12px; }
.agent-card { display: flex; gap: 16px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 24px 0; box-shadow: var(--shadow); }
.agent-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: #e9a849; display: grid; place-items: center; font: 800 1.2rem var(--head); flex: none; }
.agent-card .actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* Text pages */
.prose { max-width: 760px; }
.prose h2 { margin-top: 1.6em; }

/* Footer */
.site-footer { background: var(--cream); border-top: 3px solid var(--gold); color: var(--ink); padding: 44px 0 20px; margin-top: 24px; }
.site-footer a { color: var(--navy); }
.site-footer h2 { font-size: .95rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-logo { height: 52px; width: auto; margin-bottom: 12px; }
.company-ids { font-size: .86rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 24px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.legal { font-size: .84rem; margin-top: 8px; color: var(--muted); }
.verified { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; padding: 10px 12px; background: var(--good-soft); color: #0f3d24; border-radius: 10px; font-size: .9rem; font-weight: 600; }
.verified .icon { color: var(--good); margin-top: 2px; }
.seller-box { border-top: 1px solid var(--line); padding-top: 16px; }

/* Developer directory */
.developer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 24px; }
.developer-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.developer-card:hover { border-color: var(--gold); box-shadow: var(--shadow); }
.developer-card strong { font: 700 1.05rem var(--head); color: var(--navy); }
.developer-card .count { color: var(--gold-deep); font-weight: 700; font-size: .9rem; margin-top: auto; }
.developer-logo { width: 72px; height: 72px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; overflow: hidden; margin-bottom: 6px; }
.developer-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.developer-logo span { font: 800 1.3rem var(--head); color: var(--gold-deep); }
.developer-logo.large { width: 104px; height: 104px; margin: 0; flex: none; }
.developer-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }

/* Phones: one clear column for the trust points; the price block gets its own call-to-action. */
@media (max-width: 600px) {
    .trust-strip ul { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 16px; }
    .price-panel .price-option { flex-basis: 100%; }
}
.mobile-cta { display: none; }
@media (max-width: 980px) { .mobile-cta { display: flex; gap: 10px; margin: 4px 0 8px; } .mobile-cta .button { flex: 1; } }
.tile .soon { color: var(--muted); font-weight: 600; }
/* Long words and links never push the page wider than the screen. */
.property-head h1, .detail-table td, .description, .pay-notice p { overflow-wrap: anywhere; }
.key-facts { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }

/* The hidden attribute always wins over display rules (flex/grid rows, buttons). */
[hidden] { display: none !important; }

/* Video tours: a thumbnail with a play button; the YouTube player loads only when pressed. */
.videos { display: grid; gap: 12px; }
.videos.many { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.video-facade { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; background: var(--navy); cursor: pointer; }
.video-facade img { width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: opacity .15s; }
.video-facade:hover img { opacity: 1; }
.video-facade .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: var(--gold-deep); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0,0,0,.3); }
.video-facade .play .icon { fill: currentColor; margin-left: 4px; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius); display: block; }

/* Blog */
.blog-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.blog-tabs a { padding: 9px 16px; border: 1.5px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--navy); font-weight: 700; font-size: .92rem; }
.blog-tabs a span { color: var(--muted); font-weight: 600; margin-left: 4px; }
.blog-tabs a[aria-current] { background: var(--navy); border-color: var(--navy); color: #fff; }
.blog-tabs a[aria-current] span { color: #cfd8e3; }
.post-card .card-photo { display: block; }
.post-initial { display: grid; place-items: center; height: 100%; font: 800 3rem var(--head); color: var(--gold); background: var(--navy); }
.post-meta { color: var(--muted); font-size: .86rem; margin: 0; }
.post-head { padding-top: 28px; padding-bottom: 20px; }
.post-head > * { max-width: 860px; }
.post-head h1 { margin: 10px 0; }
.breadcrumb { font-size: .88rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.post-lead { font-size: 1.15rem; color: var(--ink); margin: 14px 0 0; }
.post-cover { margin: 24px auto; }
.post-cover img { width: 100%; max-height: 560px; object-fit: cover; border-radius: var(--radius); }
.post-cover figcaption { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; padding-bottom: 48px; }
@media (max-width: 980px) { .post-layout { grid-template-columns: minmax(0, 1fr); } .post-contents-aside { display: none; } }
.post-main { max-width: 760px; }
.post-body { font-size: 1.06rem; line-height: 1.75; overflow-wrap: anywhere; }
.post-body h2 { margin: 1.8em 0 .5em; scroll-margin-top: 90px; }
.post-body h3 { margin: 1.4em 0 .4em; scroll-margin-top: 90px; }
.post-body img { border-radius: 10px; margin: 1em 0; height: auto; }
.post-body blockquote { margin: 1.2em 0; padding: 12px 18px; border-left: 4px solid var(--gold); background: var(--gold-soft); border-radius: 0 10px 10px 0; }
.post-body table { width: 100%; border-collapse: collapse; margin: 1em 0; display: block; overflow-x: auto; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.post-body th { background: var(--cream); }
.post-contents { background: var(--cream); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; }
.post-contents ol, .post-contents-aside ol { margin: 8px 0 0; padding-left: 20px; }
.post-contents li, .post-contents-aside li { margin-bottom: 4px; }
@media (min-width: 981px) { .post-main > .post-contents { display: none; } }
.post-cta { margin-top: 36px; padding: 22px; border-radius: var(--radius); background: var(--navy); color: #dbe5ef; }
.post-cta strong { display: block; color: #fff; font: 700 1.2rem var(--head); margin-bottom: 6px; }
.post-cta .button.ghost { color: #fff; border-color: #fff; }
.post-aside { position: sticky; top: 90px; display: grid; gap: 16px; }
@media (max-width: 980px) { .post-aside { position: static; } }
.post-aside h2 { font-size: 1.05rem; }
.aside-properties { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.aside-properties a { display: flex; gap: 12px; text-decoration: none; color: var(--ink); }
.aside-properties img { width: 96px; height: 72px; object-fit: cover; border-radius: 8px; flex: none; }
.aside-properties span { display: grid; gap: 2px; font-size: .9rem; }
.aside-properties strong { color: var(--navy); line-height: 1.3; }
.aside-properties small { color: var(--muted); }
.aside-properties em { font-style: normal; color: var(--gold-deep); font-weight: 700; }

/* About, FAQ and Contact pages */
.prose { max-width: 760px; }
.team { margin: 48px 0; }
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; margin-top: 20px; }
.team-card { text-align: center; padding: 24px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.team-card img, .team-card .agent-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: grid; place-items: center; }
.team-card h3 { margin: 0; }
.team-role { color: var(--gold-deep); font-weight: 700; font-size: .9rem; margin: 2px 0 8px; }
.team-card .muted { font-size: .92rem; margin: 0; }
.company-facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.company-facts dt { font-size: .8rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.company-facts dd { margin: 2px 0 0; font-weight: 700; color: var(--navy); }
.faq-list { max-width: 820px; display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font: 700 1.02rem var(--head); color: var(--navy); list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-deep); font-size: 1.4rem; line-height: 1; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .post-body { padding: 0 20px 16px; font-size: 1rem; }
.contact-ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.contact-way { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); background: #fff; }
a.contact-way[href]:hover { border-color: var(--gold); }
.contact-way .icon { color: var(--gold); }
.contact-way span { display: grid; gap: 2px; overflow-wrap: anywhere; }
.contact-way strong { color: var(--navy); font-family: var(--head); }
.contact-way small { color: var(--muted); }
.social-links { display: flex; gap: 10px; margin-top: 14px; }
.social-links a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; }
.social-links a:hover { background: var(--gold-deep); }
@media (min-width: 761px) and (max-width: 1000px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Card quick actions, offers and sold properties */
.card-actions { position: relative; z-index: 2; display: flex; gap: 8px; margin-top: 12px; }
.card-actions .button { flex: 1; }
.icon-button { width: 42px; height: 40px; flex: none; display: grid; place-items: center; border: 1.5px solid var(--line); border-radius: 999px; color: var(--navy); background: #fff; }
.icon-button:hover { border-color: var(--gold); color: var(--gold-deep); }
.badge.sold { background: var(--navy); color: #fff; }
.sold-price { color: var(--muted); }
.sold-banner { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; background: var(--navy); color: #fff; }
.sold-banner a { color: #e9a849; }
.offer-note { display: flex; gap: 8px; align-items: center; margin: 10px 0 0; color: var(--hot); font-weight: 700; font-size: .92rem; }
.header-phone { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.header-phone .icon { color: var(--gold); }

/* Track record, testimonials and title-deed handovers */
.stats-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px 48px; padding: 28px 16px; }
.stats-bar div { text-align: center; }
.stats-bar strong { display: block; font: 800 2rem var(--head); color: var(--gold-deep); line-height: 1.1; }
.stats-bar span { color: var(--muted); font-size: .9rem; }
.handover-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(150px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.handover-strip figure { margin: 0; }
.handover-strip img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 12px; }
.handover-strip figcaption { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.testimonial { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.testimonial blockquote { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.testimonial blockquote::before { content: "“"; display: block; font: 800 2.6rem/1 var(--head); color: var(--gold); height: 22px; }
.testimonial-person { display: flex; gap: 12px; align-items: center; margin-top: auto; }
.testimonial-person img, .testimonial-person .agent-avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; flex: none; }
.testimonial-person strong { display: block; color: var(--navy); }
.testimonial-person small { color: var(--muted); }
.google-rating { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; text-decoration: none; color: var(--ink); font-weight: 600; }
.google-rating .stars { color: #f4b400; letter-spacing: 1px; }
.main-nav a, .header-cta { white-space: nowrap; }
@media (max-width: 1180px) { .main-nav { gap: 16px; } .main-nav a { font-size: .88rem; } }
.brand { flex: none; }
.top-bar { background: var(--navy); color: #cfd8e3; font-size: .84rem; }
.top-bar .wrap { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 34px; }
.top-bar a { color: #fff; text-decoration: none; }
.top-bar a:hover { color: #e9a849; }
.top-bar .icon { color: #e9a849; }
@media (max-width: 980px) { .top-bar { display: none; } }

/* "Properties for sale" menu: every kind of property, grouped by type. */
.nav-drop { position: relative; }
.nav-drop summary { list-style: none; cursor: pointer; color: var(--navy); font: 600 .92rem var(--head); padding: 6px 0; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.nav-drop summary::-webkit-details-marker { display: none; }
.nav-drop summary:hover, .nav-drop summary[aria-current], .nav-drop[open] summary { box-shadow: inset 0 -2px var(--gold); }
.nav-drop .caret { width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); transition: transform .15s; }
.nav-drop[open] .caret { transform: rotate(-135deg) translateY(-1px); }
.mega { position: absolute; top: calc(100% + 18px); left: 50%; transform: translateX(-45%); width: min(860px, 92vw); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 18px 40px rgba(1,28,54,.16); padding: 22px 24px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 22px; z-index: 30; }
.mega-col { display: grid; align-content: start; gap: 2px; }
.mega .mega-head { font: 700 .95rem var(--head); color: var(--navy); padding: 4px 0 8px; margin-bottom: 4px; border-bottom: 2px solid var(--gold-soft); box-shadow: none; }
.mega a { color: var(--ink); text-decoration: none; font: 500 .9rem/1.3 system-ui, sans-serif; padding: 7px 0; white-space: normal; }
.mega a:hover { color: var(--gold-deep); box-shadow: none; }
.mega .mega-head:hover { color: var(--gold-deep); }
.mega-more { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 22px; border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; }
.mega-more a { font-weight: 600; color: var(--navy); }
.mega-more .all { margin-left: auto; color: var(--gold-deep); }
@media (max-width: 1180px) { .nav-drop summary { font-size: .88rem; } }

/* Sample listings: clearly marked so nobody mistakes them for real stock. */
.badge.sample { background: #fff4d6; color: #7a4b00; border: 1px dashed #b07a1a; }
.sample-note { background: #fff4d6; border: 1px dashed #b07a1a; color: #5c3a00; border-radius: 10px; padding: 10px 14px; font-size: .92rem; }

/* Property page top (title, facts, price and actions above the photos), like Haven Suites. */
.property-top { padding-top: 14px; }
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--gold-deep); }
.property-top h1 { margin: 6px 0 8px; font-size: clamp(1.55rem, 3.8vw, 2.5rem); }
.property-sub { color: var(--muted); margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.property-sub .icon { color: var(--gold); }
.top-badges { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.top-badges .badge { box-shadow: none; border: 1px solid var(--line); }
.top-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 14px 0 4px; border-top: 1px solid var(--line); margin-top: 4px; }
.top-price { margin: 0; display: grid; }
.top-price strong { font: 800 1.5rem var(--head); color: var(--navy); }
.top-price span { color: var(--good); font-weight: 700; font-size: .92rem; }
.top-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.top-buttons .button { min-height: 44px; padding: 8px 18px; font-size: .9rem; }
.link-button { background: none; border: 0; padding: 8px 4px; font: 700 .9rem var(--head); color: var(--navy); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--gold-deep); }
@media (max-width: 600px) {
    .top-buttons { width: 100%; }
    .top-buttons .button { flex: 1 1 auto; }
    .top-buttons .button.gold { flex-basis: 100%; }
}

/* Gallery: main photo, caption, counter, thumbnail strip, "View all photos". */
.gallery { margin-top: 14px; }
.gallery-main { position: relative; }
.gallery-track figure { aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .gallery { margin: 14px 0 0; } .gallery-main { margin: 0 -16px; } .gallery-track figure { aspect-ratio: 4 / 3; } }
.gallery-caption { position: absolute; left: 14px; bottom: 14px; max-width: 60%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: rgba(1,28,54,.72); color: #fff; padding: 5px 12px; border-radius: 999px; font-size: .85rem; pointer-events: none; }
.gallery-count { pointer-events: none; }
.gallery-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 12px 2px 6px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.gallery-thumbs button { flex: 0 0 auto; width: 108px; aspect-ratio: 3 / 2; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--cream); cursor: pointer; opacity: .78; transition: opacity .15s, border-color .15s, transform .15s; scroll-snap-align: start; }
.gallery-thumbs button:hover { opacity: 1; }
.gallery-thumbs button[aria-current] { border-color: var(--gold); opacity: 1; box-shadow: 0 0 0 2px var(--gold-soft); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .gallery-thumbs button { width: 76px; } }
.gallery-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding: 6px 0 4px; }
.gallery-foot-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-foot .button { min-height: 40px; padding: 6px 16px; font-size: .88rem; }

/* All photos grid */
.photo-grid-view { position: fixed; inset: 0; z-index: 45; background: #fff; overflow-y: auto; }
.photo-grid-view[hidden] { display: none; }
.photo-grid-bar { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 20px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.photo-grid-bar strong { font-family: var(--head); color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-grid-bar button, .lightbox-close { min-height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--navy); background: #fff; color: var(--navy); font: 700 .9rem var(--head); cursor: pointer; flex: none; }
.photo-grid { max-width: 1000px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.photo-grid button { padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--cream); }
.photo-grid button.wide { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid button:hover img { transform: scale(1.02); }
@media (max-width: 600px) { .photo-grid { grid-template-columns: 1fr; padding: 10px; } .photo-grid button, .photo-grid button.wide { aspect-ratio: 4 / 3; } }

/* Full-screen viewer */
.lightbox { z-index: 50; }
.lightbox img { max-width: min(1400px, 92vw); max-height: 84vh; object-fit: contain; }
.lightbox .lightbox-close { position: absolute; top: 14px; right: 14px; border-color: #fff; }
.lightbox-count { position: absolute; top: 22px; left: 20px; color: #fff; font: 700 .95rem var(--head); }
.lightbox .lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; min-height: 0; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.lightbox .lightbox-nav.prev { left: 16px; right: auto; }
.lightbox .lightbox-nav.next { right: 16px; left: auto; }
@media (max-width: 600px) { .lightbox .lightbox-nav { width: 42px; height: 42px; } .lightbox .lightbox-nav.prev { left: 6px; } .lightbox .lightbox-nav.next { right: 6px; } }
.property-head { margin-top: 6px; }
.property-sub { flex-wrap: nowrap; align-items: flex-start; margin-bottom: 4px; }
.property-sub .icon { margin-top: 4px; }
.property-facts { margin: 0 0 12px; font-weight: 600; color: var(--navy); }
.top-prices { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: flex-end; }
.top-price small { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.top-price em { font-style: normal; font-size: .95rem; }
.top-price.plan { padding-left: 22px; border-left: 2px solid var(--gold-soft); }
.top-price.plan strong { color: var(--gold-deep); }
.top-price.plan span { color: var(--muted); font-weight: 500; font-size: .86rem; }
@media (max-width: 600px) { .top-price.plan { padding-left: 0; border-left: 0; } }
.lightbox { background: rgba(1,14,28,.98); }

/* Staff bar: only for signed-in staff on the public site */
.staff-bar { background: #10151c; color: #cfd8e3; font-size: .86rem; }
.staff-bar .wrap { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; min-height: 44px; padding-top: 6px; padding-bottom: 6px; }
.staff-bar a { color: #fff; text-decoration: none; }
.staff-bar a:hover { text-decoration: underline; }
.staff-bar-label { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .74rem; color: #9aa6b4; }
.staff-bar .staff-bar-edit { background: var(--gold-deep); color: #fff; font-weight: 700; padding: 6px 14px; border-radius: 6px; }
.staff-bar .staff-bar-edit:hover { text-decoration: none; filter: brightness(1.1); }
@media (max-width: 640px) { .staff-bar .wrap { gap: 6px 14px; } .staff-bar-label { width: 100%; } }
