/* =============================================================================
   Berk Real Estate — public site styles (layered on Bootstrap 5)
   Palette: deep navy + brass gold, Playfair Display headings / Inter body
============================================================================= */
:root {
    --navy: #112436;
    --navy-2: #0b1824;
    --navy-soft: #1d3650;
    --gold: #c79a4e;
    --gold-2: #b3863a;
    --gold-soft: #f3ead7;
    --ink: #18222e;
    --text: #44505d;
    --muted: #8a95a3;
    --line: #e6e9ee;
    --tint: #f6f3ec;
    --radius: 12px;
    --shadow-sm: 0 6px 18px rgba(17,36,54,.08);
    --shadow: 0 18px 44px rgba(17,36,54,.14);
    --ff-head: 'Playfair Display', Georgia, serif;
    --ff-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--ff-body);
    color: var(--text);
    background: #fff;
    margin: 0;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--ff-head); color: var(--ink); line-height: 1.18; margin: 0; }
p { margin: 0 0 1rem; }
a { color: var(--gold-2); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }
img { max-width: 100%; }
.site-main { display: block; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn { font-weight: 600; border-radius: 8px; padding: .7rem 1.4rem; letter-spacing: .2px; transition: all .2s ease; border: 2px solid transparent; }
.btn i { font-size: .92em; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #1c1407; }
.btn-gold:hover { background: var(--gold-2); border-color: var(--gold-2); color: #fff; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(199,154,78,.35); }
.btn-navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); border-color: var(--navy-2); color: #fff; transform: translateY(-2px); }
.btn-outline-navy { background: transparent; border-color: #cfd6de; color: var(--navy); }
.btn-outline-navy:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn-block-2 { width: 100%; display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: .6rem; }

/* ── Shared section furniture ─────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section--tint { background: var(--tint); }
.section--navy { background: var(--navy); color: #cdd6e0; }
.eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: .78rem; font-weight: 700; color: var(--gold-2); margin: 0 0 .5rem; }
.eyebrow--light { color: var(--gold); }
.section-title { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 700; }
.section-title--light { color: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.4rem; flex-wrap: wrap; }
.section-head--center { justify-content: center; text-align: center; }
.lead-text { font-size: 1.12rem; color: #5a6573; margin-bottom: 1.2rem; }
.text-light-soft { color: #aeb9c6; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 1.6rem; }
.check-list li { padding: .35rem 0; font-weight: 500; color: var(--ink); }
.check-list i { color: var(--gold-2); margin-right: .55rem; }

/* ── Header / topbar ──────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 1030; background: #fff; box-shadow: 0 2px 0 rgba(17,36,54,.04); transition: box-shadow .25s; }
.site-header.is-stuck { box-shadow: 0 8px 28px rgba(17,36,54,.12); }
.topbar { background: var(--navy); color: #b9c4d1; font-size: .85rem; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; padding: .45rem 0; }
.topbar__contact { display: flex; gap: 1.4rem; align-items: center; }
.topbar a { color: #c3cdd9; }
.topbar a:hover { color: var(--gold); }
.topbar__contact i { color: var(--gold); margin-right: .35rem; }
.topbar__area { color: #95a2b1; }
.topbar__social { display: flex; gap: .9rem; }
.topbar__social a { width: 26px; height: 26px; display: inline-grid; place-items: center; }

.site-nav { padding: .35rem 0; }
.site-nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; }
.brand__logo { height: 60px; width: auto; display: block; transition: height .25s ease; }
.site-header.is-stuck .brand__logo { height: 48px; }

.nav-menu { display: flex; align-items: center; gap: .15rem; list-style: none; margin: 0; padding: 0; }
.nav-menu .nav-link { display: block; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; font-size: .8rem; color: var(--ink); padding: .6rem .95rem; position: relative; }
.nav-menu .nav-link::after { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .2rem; height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav-menu .nav-link:hover, .nav-menu .nav-link.active { color: var(--gold-2); }
.nav-menu .nav-link:hover::after, .nav-menu .nav-link.active::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: .9rem; }
.btn-call { text-transform: uppercase; letter-spacing: .5px; font-size: .8rem; box-shadow: 0 6px 16px rgba(199,154,78,.3); }

/* Hamburger */
.nav-burger { display: none; flex-direction: column; justify-content: center; gap: 6px; width: 46px; height: 46px; padding: 0; background: none; border: 0; cursor: pointer; }
.nav-burger span { display: block; width: 28px; height: 2.5px; margin: 0 auto; background: var(--navy); border-radius: 3px; transition: transform .3s ease, opacity .25s ease; }

/* Full-screen mobile menu */
.mobile-nav { position: fixed; inset: 0; z-index: 2000; display: flex; flex-direction: column;
    background: radial-gradient(125% 80% at 85% 0%, #1c3e5d 0%, #112436 46%, #091522 100%);
    opacity: 0; visibility: hidden; transform: translateY(-12px);
    transition: opacity .4s ease, transform .45s ease, visibility .45s ease; }
body.menu-open { overflow: hidden; }
body.menu-open .mobile-nav { opacity: 1; visibility: visible; transform: none; }
.mobile-nav__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.4rem; border-bottom: 1px solid rgba(255,255,255,.09); }
.mobile-nav__logo { height: 58px; }
.mobile-nav__close { width: 50px; height: 50px; border: 0; background: rgba(255,255,255,.07); border-radius: 12px; color: #fff; font-size: 1.5rem; cursor: pointer; transition: background .2s, transform .3s, color .2s; }
.mobile-nav__close:hover { background: var(--gold); color: var(--navy); transform: rotate(90deg); }
.mobile-nav__menu { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: .1rem; padding: 1rem 1.7rem; }
.mobile-nav__menu a { display: flex; align-items: baseline; gap: .9rem; color: #fff; font-family: var(--ff-head); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; font-size: clamp(2rem, 11vw, 3.1rem); line-height: 1.3; padding: .45rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
    opacity: 0; transform: translateX(28px); transition: opacity .5s ease, transform .55s ease, color .2s ease; }
body.menu-open .mobile-nav__menu a { opacity: 1; transform: none; transition-delay: calc(.18s + var(--i) * .09s); }
.mobile-nav__menu a .idx { font-family: var(--ff-body); font-size: .85rem; font-weight: 700; color: var(--gold); letter-spacing: 0; }
.mobile-nav__menu a:hover, .mobile-nav__menu a.active { color: var(--gold); padding-left: .4rem; }
.mobile-nav__foot { padding: 1.3rem 1.7rem 2rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem;
    opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
body.menu-open .mobile-nav__foot { opacity: 1; transform: none; transition-delay: .6s; }
.mobile-nav__email { color: #b9c4d1; font-size: .98rem; }
.mobile-nav__email i { color: var(--gold); margin-right: .45rem; }
.mobile-nav__social { display: flex; gap: .7rem; }
.mobile-nav__social a { width: 44px; height: 44px; border-radius: 11px; background: rgba(255,255,255,.08); color: #fff; display: grid; place-items: center; transition: .2s; }
.mobile-nav__social a:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }
@media (min-width: 992px) { .mobile-nav { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { background-size: cover; background-position: center; color: #fff; padding: 110px 0 130px; }
.hero__inner { max-width: 820px; }
.hero__eyebrow { text-transform: uppercase; letter-spacing: 4px; font-size: .82rem; font-weight: 700; color: var(--gold); margin-bottom: 1rem; }
.hero__title { font-size: clamp(2.3rem, 5vw, 4rem); font-weight: 700; color: #fff; margin-bottom: 1.1rem; }
.hero__subtitle { font-size: 1.2rem; color: #dfe5ec; max-width: 640px; margin-bottom: 2rem; }
.hero__actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-search { background: rgba(255,255,255,.97); border-radius: 14px; padding: .55rem; display: flex; gap: .5rem; flex-wrap: wrap; box-shadow: var(--shadow); max-width: 920px; }
.hero-search__field { position: relative; flex: 1 1 170px; display: flex; align-items: center; }
.hero-search__field--grow { flex: 2 1 240px; }
.hero-search__field i { position: absolute; left: .85rem; color: var(--muted); font-size: .9rem; pointer-events: none; }
.hero-search__field input, .hero-search__field select { width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: .75rem .8rem .75rem 2.3rem; font-size: .95rem; color: var(--ink); appearance: none; }
.hero-search__field select { cursor: pointer; }
.hero-search input:focus, .hero-search select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,78,.18); }
.hero-search .btn { flex: 0 0 auto; padding-left: 1.3rem; padding-right: 1.3rem; }

/* ── Stats band ───────────────────────────────────────────────────────────── */
.stats-band { background: var(--navy); }
.stats-row { text-align: center; }
.stat { padding: 30px 12px; border-right: 1px solid rgba(255,255,255,.08); }
.col-6:nth-child(2n) .stat, .col-lg-3:last-child .stat { border-right: 0; }
.stat__value { display: block; font-family: var(--ff-head); font-size: 2.1rem; font-weight: 700; color: var(--gold); }
.stat__label { display: block; color: #9fabba; font-size: .82rem; letter-spacing: 1px; text-transform: uppercase; font-weight: 600; margin-top: .25rem; }

/* ── Listing cards ────────────────────────────────────────────────────────── */
.listing-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s, border-color .25s; }
.listing-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.listing-card__media { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--navy); }
.listing-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.listing-card:hover .listing-card__media img { transform: scale(1.06); }
.listing-card__noimg { position: absolute; inset: 0; display: grid; place-items: center; color: #3a546e; font-size: 2.4rem; }
.listing-card.is-closed .listing-card__media img { filter: grayscale(.35) brightness(.92); }
.badge-status { position: absolute; top: 12px; left: 12px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: .3rem .65rem; border-radius: 6px; color: #fff; background: var(--gold-2); }
.badge-status--for_sale { background: #1f7a3d; }
.badge-status--for_lease { background: #2563a8; }
.badge-status--sold { background: #b03333; }
.badge-status--leased { background: #6b4ba8; }
.listing-card__type { position: absolute; top: 12px; right: 12px; font-size: .7rem; font-weight: 600; background: rgba(11,24,36,.78); color: #fff; padding: .28rem .6rem; border-radius: 6px; backdrop-filter: blur(2px); }
.listing-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.listing-card__price { font-family: var(--ff-head); font-size: 1.42rem; font-weight: 700; color: var(--navy); }
.listing-card__title { font-size: 1.08rem; margin: .25rem 0 .4rem; line-height: 1.3; }
.listing-card__title a { color: var(--ink); }
.listing-card__title a:hover { color: var(--gold-2); }
.listing-card__addr { color: var(--muted); font-size: .92rem; margin-bottom: .9rem; }
.listing-card__addr i { color: var(--gold-2); margin-right: .3rem; }
.listing-card__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: #5d6875; font-size: .85rem; padding-top: .9rem; border-top: 1px solid var(--line); margin-top: auto; }
.listing-card__meta i { color: var(--gold-2); margin-right: .3rem; }
.listing-card__cta { margin-top: .9rem; font-weight: 700; font-size: .9rem; color: var(--navy); align-self: flex-start; }
.listing-card__cta i { transition: transform .2s; }
.listing-card__cta:hover { color: var(--gold-2); }
.listing-card__cta:hover i { transform: translateX(4px); }

/* ── Intro / about media ──────────────────────────────────────────────────── */
.intro-media { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.intro-media img { width: 100%; display: block; aspect-ratio: 5 / 4; object-fit: cover; }
.intro-media__badge { position: absolute; right: 18px; bottom: 18px; background: rgba(11,24,36,.85); color: #fff; border-radius: 12px; padding: .8rem 1rem; display: flex; align-items: center; gap: .7rem; font-weight: 700; line-height: 1.1; backdrop-filter: blur(3px); }
.intro-media__badge i { color: var(--gold); font-size: 1.4rem; }
.about-photo { position: relative; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.about-photo img { width: 100%; display: block; aspect-ratio: 1 / 1; object-fit: cover; }
.about-photo--lg img { aspect-ratio: 4 / 5; }
.about-photo__tag { position: absolute; left: 18px; bottom: 18px; right: 18px; background: rgba(255,255,255,.94); border-radius: 12px; padding: .8rem 1rem; display: flex; align-items: center; gap: .8rem; font-weight: 600; color: var(--navy); }
.about-photo__tag-num { width: 42px; height: 42px; border-radius: 10px; background: var(--gold); color: #fff; display: grid; place-items: center; font-size: 1.1rem; }
.about-para { color: #515d6b; margin-bottom: 1rem; }

/* ── Specialty / value cards ──────────────────────────────────────────────── */
.specialty { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; height: 100%; transition: .25s; }
.specialty:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }
.specialty__icon { width: 58px; height: 58px; border-radius: 14px; background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1.1rem; }
.specialty__title { font-size: 1.18rem; margin-bottom: .5rem; }
.specialty__text { color: #5d6875; font-size: .95rem; margin: 0; }
.value-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; height: 100%; box-shadow: var(--shadow-sm); }
.value-card__icon { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1.35rem; margin-bottom: 1.1rem; }
.value-card h3 { font-size: 1.2rem; margin-bottom: .55rem; }
.value-card p { color: #5d6875; margin: 0; }
.area-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.4rem; }
.area-list li { color: #cdd6e0; font-weight: 500; }
.area-list i { color: var(--gold); margin-right: .5rem; }

/* ── CTA band + footer ────────────────────────────────────────────────────── */
.cta-band { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; padding: 60px 0; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band__text h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .35rem; }
.cta-band__text p { color: #b9c4d1; margin: 0; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer { background: var(--navy-2); color: #97a4b3; padding: 64px 0 0; }
.footer-brand { display: inline-flex; align-items: center; margin-bottom: 1rem; }
.footer-brand__logo { height: 88px; width: auto; }
.footer-about { font-size: .92rem; color: #8a98a8; max-width: 320px; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer-social a { width: 38px; height: 38px; border-radius: 9px; background: rgba(255,255,255,.07); color: #cdd6e0; display: grid; place-items: center; transition: .2s; }
.footer-social a:hover { background: var(--gold); color: #fff; transform: translateY(-2px); }
.footer-col__title { color: #fff; font-family: var(--ff-body); font-weight: 700; font-size: .92rem; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 1.1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a { color: #97a4b3; }
.footer-links a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li { display: flex; gap: .7rem; margin-bottom: .8rem; font-size: .92rem; }
.footer-contact i { color: var(--gold); margin-top: .25rem; }
.footer-contact a { color: #cdd6e0; }
.footer-contact small { color: #7e8d9d; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 56px; padding: 20px 0; }
.footer-bottom__inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: #97a4b3; }
.footer-bottom a:hover { color: var(--gold); }
.footer-credit { color: #7e8d9d; }
.footer-credit a { color: var(--gold); font-weight: 600; position: relative; padding-bottom: 1px; transition: color .25s ease, text-shadow .25s ease; }
.footer-credit a::after { content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 1px; background: linear-gradient(90deg, var(--gold), #e6c982); transform: scaleX(0); transform-origin: right; transition: transform .3s ease; }
.footer-credit a:hover { color: #e6c982; text-shadow: 0 0 12px rgba(199,154,78,.55); }
.footer-credit a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Floating CTA ─────────────────────────────────────────────────────────── */
.float-cta { position: fixed; right: 18px; bottom: 18px; z-index: 1020; background: var(--gold); color: #1c1407; border-radius: 30px; padding: .7rem 1.15rem; font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; box-shadow: 0 10px 26px rgba(199,154,78,.5); }
.float-cta:hover { background: var(--gold-2); color: #fff; transform: translateY(-2px); }

/* ── Page banner ──────────────────────────────────────────────────────────── */
.page-banner { background: linear-gradient(120deg, var(--navy-2), var(--navy)); color: #fff; padding: 64px 0; }
.page-banner--sm { padding: 46px 0; }
.page-banner__title { font-size: clamp(1.9rem, 4vw, 2.9rem); color: #fff; }
.page-banner__sub { color: #b9c4d1; margin: .6rem 0 0; font-size: 1.08rem; }
.page-banner--image { min-height: 60vh; display: flex; align-items: center; background-size: cover; background-position: center right; background-repeat: no-repeat; padding: 120px 0; }
.page-banner--image .page-banner__title { font-size: clamp(2.3rem, 5.2vw, 3.6rem); }
.page-banner--image .container { max-width: 1140px; }
.page-banner__lead { color: #d4dce4; max-width: 540px; margin: .9rem 0 1.7rem; font-size: 1.08rem; }
.page-banner__cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* About hero — full-bleed cover, extra tall, anchored on Berk's face (right side) */
.page-banner--image.about-cover { min-height: 84vh; background-position: 68% 22%; }
@media (max-width: 991.98px) { .page-banner--image.about-cover { min-height: 66vh; background-position: 70% 18%; } }
@media (max-width: 767.98px) { .page-banner--image.about-cover { min-height: 82vh; background-position: 72% top; align-items: flex-end; padding-bottom: 48px; } }
@media (max-width: 767.98px) {
    .page-banner--image { min-height: 46vh; padding: 64px 0; background-position: 72% center; }
    .page-banner__lead { font-size: 1rem; }
}

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.filter-bar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 1010; padding: 14px 0; }
.is-stuck-offset .filter-bar { top: 0; }
.filter-form { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.filter-form__field { position: relative; flex: 1 1 150px; display: flex; align-items: center; }
.filter-form__field--grow { flex: 2 1 220px; }
.filter-form__field i { position: absolute; left: .8rem; color: var(--muted); font-size: .85rem; pointer-events: none; }
.filter-form__field input, .filter-form__field select { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font-size: .92rem; color: var(--ink); appearance: none; background: #fff; }
.filter-form__field--grow input { padding-left: 2.2rem; }
.filter-form__field select { padding-right: 1.6rem; cursor: pointer; }
.filter-form input:focus, .filter-form select:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,78,.16); }
.filter-clear { font-weight: 600; color: var(--muted); padding: 0 .4rem; }
.filter-clear:hover { color: var(--gold-2); }

/* ── Listings split (grid + map) ──────────────────────────────────────────── */
.listings-wrap { padding: 26px 0 80px; }
.listings-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.2rem; gap: 1rem; }
.listings-count { margin: 0; color: #5d6875; }
.listings-count strong { color: var(--navy); }
.view-toggle { display: inline-flex; background: #eef1f5; border-radius: 9px; padding: 3px; }
.view-toggle__btn { border: 0; background: none; padding: .45rem .9rem; border-radius: 7px; font-weight: 600; font-size: .88rem; color: #5d6875; }
.view-toggle__btn.is-active { background: #fff; color: var(--navy); box-shadow: var(--shadow-sm); }
.listings-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.listings-split__map { position: sticky; top: 90px; }
.map-canvas { width: 100%; height: calc(100vh - 130px); min-height: 460px; border-radius: var(--radius); overflow: hidden; background: #dfe5ec; border: 1px solid var(--line); }
.map-fallback { height: 100%; display: grid; place-items: center; text-align: center; color: #6b7888; padding: 2rem; }
.map-fallback i { font-size: 2.4rem; color: var(--gold-2); margin-bottom: .6rem; }
.empty-state { text-align: center; padding: 60px 20px; background: var(--tint); border-radius: var(--radius); }
.empty-state i { font-size: 2.6rem; color: var(--gold-2); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: .5rem; }
/* highlight card synced from the map */
.listings-split__list [data-listing-id].is-active .listing-card { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold), var(--shadow); }

/* Map info window */
.map-info { width: 220px; font-family: var(--ff-body); }
.map-info__img { width: 100%; height: 120px; object-fit: cover; border-radius: 8px; display: block; margin-bottom: 8px; background: var(--navy); }
.map-info__price { font-family: var(--ff-head); font-weight: 700; color: var(--navy); font-size: 1.05rem; }
.map-info__title { font-weight: 600; color: var(--ink); font-size: .9rem; margin: 2px 0; }
.map-info__addr { color: var(--muted); font-size: .8rem; margin-bottom: 6px; }
.map-info__link { font-weight: 700; color: var(--gold-2); font-size: .85rem; }

/* ── Detail page ──────────────────────────────────────────────────────────── */
.crumbs { padding: 16px 0; font-size: .88rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-2); }
.crumbs i { font-size: .7rem; margin: 0 .35rem; }
.crumbs span { color: var(--navy); font-weight: 600; }
.detail { padding-bottom: 80px; }
.gallery { margin-bottom: 2.4rem; }
.gallery__main { position: relative; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.gallery__media > img, .gallery__media > video, .gallery__media > iframe { width: 100%; height: clamp(320px, 56vh, 560px); display: block; border: 0; background: var(--navy); }
.gallery__media > img, .gallery__media > video { object-fit: cover; }
.gallery__caption { position: absolute; left: 16px; right: 16px; bottom: 16px; background: rgba(11,24,36,.78); color: #fff; border-radius: 8px; padding: .55rem .75rem; font-size: .9rem; }
.gallery__file { height: clamp(320px, 56vh, 560px); display: grid; place-items: center; align-content: center; gap: .7rem; color: #fff; font-weight: 700; }
.gallery__file i { font-size: 3rem; color: var(--gold); }
.gallery__placeholder { height: 420px; display: grid; place-items: center; color: #3a546e; font-size: 3rem; }
.gallery__badge { top: 16px; left: 16px; font-size: .82rem; padding: .4rem .8rem; }
.gallery__thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 4px; }
.gallery__thumb { position: relative; border: 2px solid transparent; border-radius: 10px; overflow: hidden; padding: 0; background: var(--navy); cursor: pointer; flex: 0 0 110px; height: 82px; color: #fff; }
.gallery__thumb img, .gallery__thumb video { width: 110px; height: 78px; object-fit: cover; display: block; opacity: .9; }
.gallery__thumb > span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(11,24,36,.42); color: #fff; font-size: 1.3rem; }
.gallery__thumb.is-active { border-color: var(--gold); }
.detail__head { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; align-items: flex-start; margin-bottom: 1.3rem; }
.detail__type { display: inline-block; text-transform: uppercase; letter-spacing: 2px; font-size: .74rem; font-weight: 700; color: var(--gold-2); margin-bottom: .4rem; }
.detail__title { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.detail__subtitle { color: #5a6573; font-size: 1.08rem; margin: .4rem 0 0; }
.detail__addr { color: var(--muted); margin: .5rem 0 0; }
.detail__addr i { color: var(--gold-2); margin-right: .35rem; }
.detail__price { font-family: var(--ff-head); font-size: 2rem; font-weight: 700; color: var(--navy); white-space: nowrap; }
.spec-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; padding: 0; margin: 0 0 2rem; }
.spec-strip li { background: #fff; padding: .9rem 1.2rem; flex: 1 1 120px; }
.spec-strip__k { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; }
.spec-strip__v { display: block; font-weight: 600; color: var(--navy); margin-top: .15rem; }
.detail__section { margin-bottom: 2.2rem; }
.detail__h2 { font-size: 1.45rem; margin-bottom: .9rem; padding-bottom: .6rem; border-bottom: 2px solid var(--gold); display: inline-block; }
.detail__body { color: #515d6b; font-size: 1.04rem; }
.detail__body--box { background: var(--tint); border-left: 3px solid var(--gold); border-radius: 8px; padding: 1rem; margin-top: .9rem; }
.highlight-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem 1.5rem; }
.highlight-grid li { color: var(--ink); font-weight: 500; }
.highlight-grid i { color: #1f7a3d; margin-right: .5rem; }
.detail-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin: 0; }
.detail-info-grid > div { background: #fff; padding: .85rem 1rem; }
.detail-info-grid dt { font-size: .72rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); font-weight: 700; margin-bottom: .2rem; }
.detail-info-grid dd { margin: 0; font-weight: 600; color: var(--navy); }
.detail-links { display: flex; flex-wrap: wrap; gap: .7rem; }
.detail-links a { display: inline-flex; align-items: center; gap: .5rem; border: 1px solid var(--line); border-radius: 9px; padding: .65rem .9rem; font-weight: 700; color: var(--navy); background: #fff; }
.detail-links a:hover { border-color: var(--gold); color: var(--gold-2); transform: translateY(-2px); }
.detail-map { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.detail-map iframe { display: block; }
.detail-map__link { display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem; font-weight: 600; }

/* Inquiry sidebar */
.inquire-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); position: sticky; top: 96px; }
.agent-mini { display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.agent-mini img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; border: 2px solid var(--gold); }
.agent-mini strong { display: block; color: var(--navy); font-size: 1.05rem; }
.agent-mini span { font-size: .82rem; color: var(--muted); }
.inquire-card__divider { text-align: center; position: relative; margin: 1.1rem 0; color: var(--muted); font-size: .82rem; }
.inquire-card__divider::before { content: ''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--line); }
.inquire-card__divider span { background: #fff; padding: 0 .7rem; position: relative; }
.ff { margin-bottom: .8rem; }
.ff label { display: block; font-weight: 600; font-size: .85rem; color: var(--ink); margin-bottom: .3rem; }
.ff label small { color: var(--muted); font-weight: 400; }
.ff input, .ff textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: .65rem .8rem; font-family: var(--ff-body); font-size: .95rem; color: var(--ink); }
.ff input:focus, .ff textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,78,.16); }
.inquire-form__note { font-size: .78rem; color: var(--muted); text-align: center; margin: .6rem 0 0; }
.detail__similar { margin-top: 64px; }

/* ── Contact page ─────────────────────────────────────────────────────────── */
.contact-info { padding-right: 1rem; }
.contact-phone { display: flex; align-items: center; gap: 1rem; background: var(--navy); color: #fff; border-radius: 14px; padding: 1.1rem 1.3rem; margin: 1.4rem 0; box-shadow: var(--shadow); }
.contact-phone:hover { color: #fff; transform: translateY(-2px); }
.contact-phone__icon { width: 50px; height: 50px; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 1.3rem; color: #fff; }
.contact-phone__text small { display: block; color: #b9c4d1; font-size: .78rem; text-transform: uppercase; letter-spacing: 1px; }
.contact-phone__text strong { font-family: var(--ff-head); font-size: 1.6rem; }
.contact-list { list-style: none; padding: 0; margin: 1.2rem 0; }
.contact-list li { display: flex; align-items: center; gap: .8rem; margin-bottom: .8rem; color: #515d6b; }
.contact-list i { width: 38px; height: 38px; border-radius: 10px; background: var(--gold-soft); color: var(--gold-2); display: grid; place-items: center; }
.contact-social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.contact-social a { width: 42px; height: 42px; border-radius: 10px; background: var(--navy); color: #fff; display: grid; place-items: center; transition: .2s; }
.contact-social a:hover { background: var(--gold); transform: translateY(-2px); }
.contact-form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.contact-form-card .ff label { font-size: .9rem; }

/* ── Alerts (lean on Bootstrap, minor tweaks) ─────────────────────────────── */
.alert { border-radius: 9px; }
.alert-success { background: #e8f6ec; color: #1c6b37; border: 1px solid #b6e2c3; }
.alert-danger { background: #fdecea; color: #9c2c20; border: 1px solid #f3c2bd; }

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .listings-split { grid-template-columns: 1fr; }
    .listings-split__map { position: static; }
    .map-canvas { height: 60vh; }
    /* mobile grid/map toggle */
    .page-listings .listings-split__map { display: none; }
    .page-listings.show-map .listings-split__list { display: none; }
    .page-listings.show-map .listings-split__map { display: block; }
    /* mobile nav */
    .nav-burger { display: flex; }
    .nav-menu { display: none; }
    .nav-actions .btn-call { display: none; }
    .brand__logo { height: 52px; }
    .site-header.is-stuck .brand__logo { height: 46px; }
}
@media (max-width: 767.98px) {
    .section { padding: 56px 0; }
    .stat { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
    .detail__price { font-size: 1.6rem; }
    .highlight-grid, .area-list { grid-template-columns: 1fr; }
    .cta-band__inner { flex-direction: column; text-align: center; }
    .cta-band__actions { justify-content: center; }
}

/* ── Newsletter sign-up band ─────────────────────────────────────────────── */
/* Soft cool blue-grey — a light tint of the navy family — so the band sits
   naturally between the dark CTA band above and the dark footer below.
   Hairlines at the seams keep the transitions crisp. */
.newsletter { background: #eaeef4; color: var(--text); padding: 4.75rem 0;
    border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.05); }
.newsletter__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2rem; }
.newsletter__text { max-width: 640px; }
.newsletter__eyebrow { color: var(--gold-2); text-transform: uppercase; letter-spacing: 3.5px; font-size: .76rem; font-weight: 700; margin: 0 0 .7rem; }
.newsletter__title { font-family: 'Playfair Display', serif; color: var(--navy); font-size: clamp(1.75rem, 3vw, 2.3rem); line-height: 1.18; letter-spacing: .4px; margin: 0 0 .8rem; }
.newsletter__sub { color: #55616e; margin: 0 auto; max-width: 52ch; font-size: 1.07rem; line-height: 1.65; letter-spacing: .3px; }
.newsletter__form { width: 100%; max-width: 820px; margin: 0 auto; }
/* Inline [name] [email] [Subscribe]; wraps gracefully, stacks on small screens */
.newsletter__row { display: flex; gap: .8rem; flex-wrap: nowrap; justify-content: center; align-items: stretch; }
.newsletter__row input {
    flex: 1 1 190px; min-width: 0; height: 58px; padding: 0 1.25rem; border-radius: 10px;
    border: 1px solid #d3dbe4; background: #fff; color: var(--ink); font-size: 1.05rem;
    box-shadow: 0 1px 2px rgba(17,36,54,.04); transition: border-color .18s, box-shadow .18s;
}
.newsletter__row input[type="email"] { flex: 1 1 300px; }
.newsletter__row input::placeholder { color: #98a3b0; }
.newsletter__row input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(199,154,78,.22); }
.newsletter__row .btn { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; height: 58px; padding: 0 2rem; font-size: .98rem; letter-spacing: .3px; white-space: nowrap; box-shadow: 0 8px 18px rgba(199,154,78,.26); }
.newsletter__fine { margin: 1.1rem 0 0; font-size: .82rem; color: var(--muted); }
.newsletter__fine i { color: var(--gold-2); margin-right: .35rem; }
.newsletter__msg { margin: 1.1rem auto 0; max-width: 440px; font-size: .93rem; padding: .7rem 1rem; border-radius: 9px; }
.newsletter__msg--ok  { background: #e6f6ec; color: #1f7a3d; border: 1px solid #b6e2c3; }
.newsletter__msg--err { background: #fdecea; color: #c0392b; border: 1px solid #f3c2bd; }
/* Subscribed / thank-you panel (shown once the visitor is on the list) */
.newsletter__done:not([hidden]) { display: flex; flex-direction: column; align-items: center; text-align: center; max-width: 620px; margin: 0 auto; }
.newsletter__done-icon { width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: #e6f6ec; color: #1f7a3d; font-size: 1.85rem; margin-bottom: 1.15rem; box-shadow: 0 6px 16px rgba(31,122,61,.18); }
.newsletter__done .newsletter__sub strong { color: var(--navy); }
.newsletter__again { margin-top: 1.7rem; }
@media (max-width: 560px) {
    .newsletter__row { flex-direction: column; flex-wrap: nowrap; gap: .7rem; }
    .newsletter__row input, .newsletter__row input[type="email"], .newsletter__row .btn { flex: 0 0 auto; width: 100%; height: 58px; }
}
/* Honeypot — visually hidden but present for bots */
.nl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* ── Unsubscribe page card ───────────────────────────────────────────────── */
.unsub-card { background: #fff; border: 1px solid #e6eaee; border-radius: 14px; padding: 3rem 2.4rem; text-align: center; box-shadow: 0 18px 40px rgba(16,32,48,.08); }
.unsub-card__icon { font-size: 2.6rem; color: var(--gold); margin-bottom: 1rem; }
.unsub-card__icon--ok { color: #2ea057; }
.unsub-card__title { font-family: 'Playfair Display', serif; color: var(--navy); margin: 0 0 .8rem; }
.unsub-card__text { color: #566572; margin: 0 0 1rem; }
.unsub-card__actions { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; margin-top: 1.4rem; }

/* ── Error page (404.php — also themes 403/500 via ErrorDocument) ─────────── */
.error-banner { padding: 88px 0; }
.error-banner__inner { display: flex; align-items: center; gap: 48px; }
.error-banner__code {
    font-family: 'Playfair Display', serif; font-weight: 700; line-height: 1;
    font-size: clamp(6rem, 16vw, 11rem); color: transparent;
    -webkit-text-stroke: 2px var(--gold); text-stroke: 2px var(--gold);
    opacity: .9; flex: 0 0 auto;
}
.error-banner__body { max-width: 640px; }
.error-banner__cta { margin-top: 1.4rem; }
.error-banner__search { display: flex; gap: .6rem; margin-top: 1.6rem; max-width: 480px; }
.error-banner__search input {
    flex: 1 1 auto; min-width: 0; border: 1px solid rgba(255,255,255,.25); border-radius: 8px;
    background: rgba(255,255,255,.08); color: #fff; padding: .7rem 1rem; font-size: .95rem;
}
.error-banner__search input::placeholder { color: #b9c4d1; }
.error-banner__search input:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,.12); }
@media (max-width: 767px) {
    .error-banner { padding: 56px 0; }
    .error-banner__inner { flex-direction: column; text-align: center; gap: 8px; }
    .error-banner__cta, .error-banner__search { justify-content: center; margin-left: auto; margin-right: auto; }
}
