/*
 * Advance Realty — public website. Mobile first.
 * Colours and fonts come from the active design (CSS variables printed in <head>); the layout comes from body classes:
 *   hd-classic | hd-centered | hd-overlay | hd-strip | hd-side        header
 *   hero-image | hero-split | hero-minimal | hero-gradient | hero-boxed | hero-mosaic
 *   cards-grid | cards-list | cards-overlay | cards-minimal | cards-bordered
 *   cols-2 | cols-3 | cols-4                                            listing columns on wide screens
 *   ft-dark | ft-light | ft-centered                                    footer
 *   th-KEY                                                              small touches of one design
 */
:root {
    --accent: #f97316; --accent-ink: #fff; --bg: #f6f7fb; --surface: #fff; --surface-2: #eef1f6; --text: #0f172a; --muted: #556070; --line: #e2e7ef;
    --hfont: "Segoe UI", system-ui, sans-serif; --bfont: "Segoe UI", system-ui, sans-serif; --radius: 14px; --shadow: 0 6px 24px rgba(15,23,42,.08);
    --hero-from: #0f172a; --hero-to: #7c2d12; --foot: #0f172a; --cols: 3;
    --r-sm: calc(var(--radius) * .6); --header-h: 70px; --wrap: 1240px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body.site { margin: 0; font: 16px/1.6 var(--bfont); color: var(--text); background: var(--bg); overflow-x: hidden; }
img { max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--hfont); line-height: 1.2; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.9rem, 4.6vw, 3.1rem); } h2 { font-size: clamp(1.45rem, 3vw, 2.1rem); } h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; }
.ic { flex: none; vertical-align: -3px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; padding-left: max(18px, env(safe-area-inset-left)); padding-right: max(18px, env(safe-area-inset-right)); }
.narrow { max-width: 820px; } .center { text-align: center; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--accent); color: var(--accent-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }

/* ---------- Buttons and fields ---------- */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 18px; border-radius: var(--r-sm); border: 1px solid var(--line);
     background: var(--surface); color: var(--text); font: inherit; font-weight: 650; cursor: pointer; white-space: nowrap; text-decoration: none !important; transition: filter .15s, background .15s, transform .1s; }
.b:hover { background: var(--surface-2); }
.b:active { transform: translateY(1px); }
.b-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.b-primary:hover { background: var(--accent); filter: brightness(1.08); }
.b-ghost { background: transparent; }
.b-sm { min-height: 36px; padding: 5px 12px; font-size: .9rem; }
.b-block { width: 100%; }
.icon-b { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-b:hover { background: var(--surface-2); text-decoration: none; }
.f { display: block; margin-bottom: 12px; }
.f > span { display: block; font-size: .82rem; font-weight: 650; color: var(--muted); margin-bottom: 4px; }
.f input, .f select, .f textarea, .news-form input {
    width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.f textarea { min-height: 90px; resize: vertical; }
.f input:focus, .f select:focus, .f textarea:focus, .news-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.f2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
select option { background: var(--surface); color: var(--text); }
.card-f { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }

/* ---------- Header ---------- */
.sh { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.sh-in { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; text-decoration: none !important; }
.logo .app-mark, .logo .app-logo { flex: none; --brand-fill: var(--accent); }
.logo-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.logo-text strong { font-family: var(--hfont); font-size: 1.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.logo-text small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.nav-toggle { margin-left: auto; display: inline-grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: var(--r-sm); background: transparent; color: inherit; cursor: pointer; }
.snav { display: none; }
.snav a { color: var(--text); font-weight: 600; text-decoration: none; }
.snav a.on { color: var(--accent); }
.nav-fav { display: inline-flex; align-items: center; gap: 6px; }
.fav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; }
.snav-extra { display: flex; align-items: center; gap: 12px; }
.admin-link { display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; color: var(--muted) !important; }
.side-contact { display: none; }
/* phones and tablets: the menu drops down under the bar */
@media (max-width: 1023px) {
    .nav-open .snav { display: flex; flex-direction: column; position: absolute; left: 0; right: 0; top: 100%; background: var(--surface); border-bottom: 1px solid var(--line);
        padding: 8px 18px 18px; box-shadow: var(--shadow); max-height: calc(100dvh - var(--header-h)); overflow: auto; }
    .nav-open .snav > a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
    .nav-open .snav-extra { padding-top: 14px; flex-wrap: wrap; }
    .logo-text small { display: none; }
}
@media (min-width: 1024px) {
    .nav-toggle { display: none; }
    .snav { display: flex; align-items: center; gap: 24px; margin-left: auto; }
    .snav > a { position: relative; padding: 6px 0; }
    .snav > a.on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--accent); border-radius: 2px; }
}
@media (min-width: 1024px) and (max-width: 1200px) { .snav { gap: 16px; } .snav-extra .b { display: none; } }

/* centred logo: logo row, then the menu row */
@media (min-width: 1024px) {
    .hd-centered .sh-in { flex-direction: column; gap: 6px; padding: 14px 0 0; }
    .hd-centered .logo { flex-direction: column; text-align: center; }
    .hd-centered .logo-text { align-items: center; }
    .hd-centered .snav { margin: 0; width: 100%; justify-content: center; border-top: 1px solid var(--line); padding: 10px 0; font-size: .93rem; letter-spacing: .04em; }
}
/* transparent over the hero (pages with a hero) */
.hd-overlay.has-hero .sh { position: absolute; left: 0; right: 0; background: transparent; border-color: rgba(255,255,255,.18); backdrop-filter: none; color: #fff; }
.hd-overlay.has-hero .sh .logo, .hd-overlay.has-hero .sh .logo-text small, .hd-overlay.has-hero .nav-toggle { color: #fff; }
@media (min-width: 1024px) { .hd-overlay.has-hero .snav > a, .hd-overlay.has-hero .admin-link { color: #fff !important; } .hd-overlay.has-hero .snav > a.on { color: #fff; } .hd-overlay.has-hero .snav > a.on::after { background: #fff; } }
.hd-overlay.has-hero .sh.solid { position: fixed; background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: var(--shadow); animation: drop .25s ease; }
.hd-overlay.has-hero .sh.solid .logo, .hd-overlay.has-hero .sh.solid .nav-toggle { color: var(--text); }
.hd-overlay.has-hero .sh.solid .logo-text small { color: var(--muted); }
@media (min-width: 1024px) { .hd-overlay.has-hero .sh.solid .snav > a { color: var(--text) !important; } .hd-overlay.has-hero .sh.solid .snav > a.on { color: var(--accent) !important; } .hd-overlay.has-hero .sh.solid .admin-link { color: var(--muted) !important; } }
@keyframes drop { from { transform: translateY(-100%); } to { transform: none; } }
/* contact strip on top */
.topstrip { background: var(--text); color: var(--bg); font-size: .85rem; }
.topstrip .wrap { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 38px; }
.topstrip a, .topstrip span { color: inherit; display: inline-flex; align-items: center; gap: 6px; }
.ts-l { display: flex; gap: 18px; flex-wrap: wrap; } .ts-r { display: flex; gap: 12px; }
@media (max-width: 719px) { .ts-hours, .topstrip a[href^="mailto"] { display: none !important; } }
.hd-strip .sh { border-bottom: 3px solid var(--accent); }
/* side menu on large screens */
@media (min-width: 1200px) {
    .hd-side { padding-left: 270px; }
    .hd-side .sh { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; border-right: 1px solid var(--line); border-bottom: 0; overflow-y: auto; }
    .hd-side .sh-in { flex-direction: column; align-items: stretch; padding: 28px 24px; min-height: 100%; max-width: none; }
    .hd-side .logo { flex-direction: column; align-items: flex-start; }
    .hd-side .logo-text small { white-space: normal; }
    .hd-side .snav { flex-direction: column; align-items: stretch; gap: 2px; margin: 26px 0 0; flex: 1; }
    .hd-side .snav > a { padding: 10px 12px; border-radius: var(--r-sm); }
    .hd-side .snav > a.on { background: color-mix(in srgb, var(--accent) 12%, transparent); }
    .hd-side .snav > a.on::after { display: none; }
    .hd-side .snav-extra { flex-direction: column; align-items: stretch; margin-top: 18px; }
    .hd-side .side-contact { display: flex; flex-direction: column; gap: 8px; margin-top: auto; padding-top: 20px; font-size: .85rem; color: var(--muted); }
    .hd-side .side-contact a, .hd-side .side-contact span { color: var(--muted); display: flex; align-items: center; gap: 6px; font-weight: 500; }
    .hd-side .side-social { gap: 12px !important; }
    .hd-side .preview-bar { margin-left: -270px; padding-left: 290px; }
}

/* Preview bar for website editors */
.preview-bar { position: sticky; top: 0; z-index: 60; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 8px 18px; background: #111827; color: #f9fafb; font-size: .9rem; }
.preview-bar span { display: inline-flex; align-items: center; gap: 6px; }
.preview-actions { flex-wrap: wrap; }
.preview-actions form { display: inline; }
.preview-bar .b { background: #1f2937; color: #fff; border-color: #374151; }
.preview-bar .b-primary { background: #f97316; border-color: #f97316; color: #111; }
.hd-overlay.has-hero .preview-bar ~ .sh { top: auto; }

/* Flash messages */
.flash { display: flex; align-items: flex-start; gap: 10px; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r-sm); background: #e2f5ec; color: #0f5f43; border: 1px solid #b8e5d1; }
.flash-error { background: #fde7e7; color: #9b2222; border-color: #f6c4c4; }
.flash-info { background: #dbeafe; color: #1e40af; border-color: #bfd4fb; }
.flash span { flex: 1; }
.flash-x { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0; }
.hd-overlay.has-hero .page > .wrap:first-child .flash { position: relative; z-index: 55; margin-top: calc(var(--header-h) + 12px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-in { position: relative; display: grid; gap: 30px; align-items: center; }
.hero-copy { position: relative; z-index: 2; min-width: 0; }
.hero h1 { margin-bottom: .35em; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 60ch; }
.eyebrow { display: inline-block; font-size: .78rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; font-size: .92rem; }
.hero-stats strong { font-size: 1.25rem; margin-right: 4px; }
.hero-media { display: none; position: relative; }
.hero-media img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.hm-1, .hm-2 { display: none; }
/* photo across the whole width, text and search over it */
.hero-image .hero, .hero-boxed .hero { min-height: min(82vh, 760px); display: flex; align-items: center; color: #fff; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); }
.hero-image .hero-bg::after, .hero-boxed .hero-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.55)); }
.hero-image .hero:not(.has-bg) .hero-bg, .hero-boxed .hero:not(.has-bg) .hero-bg, .hero-gradient .hero-bg { background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.18), transparent 40%), url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath d='M0 300V210h60v-50h40v-40h50v90h40v-120h70v70h50v-30h60v100h40V90h80v80h40v-60h60v100h50v-150h70v110h40v-40h70v80h50v-120h60v90h40v-50h50v50h60v-80h50v140H0z' fill='%23000' fill-opacity='.22'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center, bottom; background-size: cover, 100% 45%; }
.hero-image .hero-in, .hero-boxed .hero-in { padding: 64px 18px 64px; }
.hero-image .hero .lead, .hero-boxed .hero .lead { color: rgba(255,255,255,.9); }
.hero-image .hero .eyebrow { color: #fff; opacity: .9; }
.hero-image .hero-copy { max-width: 880px; }
.hero-image .hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); text-shadow: 0 2px 20px rgba(0,0,0,.25); }
.hd-overlay.hero-image .hero-in, .hd-overlay.hero-boxed .hero-in { padding-top: calc(var(--header-h) + 60px); }
/* framed card over the photo */
.hero-boxed .hero-copy { background: var(--surface); color: var(--text); padding: clamp(22px, 4vw, 44px); border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,.35); max-width: 640px; }
.hero-boxed .hero .lead { color: var(--muted); }
.hero-boxed .hero-stats { color: var(--muted); }
/* text beside one big photo */
.hero-split .hero, .hero-mosaic .hero { background: linear-gradient(180deg, var(--surface-2), var(--bg)); }
.hero-split .hero-bg, .hero-mosaic .hero-bg { display: none; }
.hero-split .hero-in, .hero-mosaic .hero-in { padding: 40px 18px 56px; }
.hero-split .hero-media, .hero-mosaic .hero-media { display: block; }
.hero-split .hm-0 { aspect-ratio: 4 / 3; box-shadow: var(--shadow); }
@media (min-width: 900px) {
    .hero-split .hero-in, .hero-mosaic .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding: 70px 18px 80px; }
    .hero-split .hm-0 { aspect-ratio: 4 / 4.2; border-radius: calc(var(--radius) * 2) var(--radius) calc(var(--radius) * 2) var(--radius); }
    .hd-overlay.hero-split .hero-in, .hd-overlay.hero-mosaic .hero-in { padding-top: calc(var(--header-h) + 50px); }
}
/* three photos in a mosaic */
.hero-mosaic .hero-media { display: grid; gap: 12px; grid-template-columns: 1.4fr 1fr; grid-template-rows: 1fr 1fr; height: 300px; }
.hero-mosaic .hm-0 { grid-row: span 2; }
.hero-mosaic .hm-1, .hero-mosaic .hm-2 { display: block; }
.hero-mosaic .hm-0:only-child { grid-column: span 2; }
@media (min-width: 900px) { .hero-mosaic .hero-media { height: 480px; } }
/* typographic headline, no photo */
.hero-minimal .hero { border-bottom: 1px solid var(--line); }
.hero-minimal .hero-bg, .hero-minimal .hero-media { display: none; }
.hero-minimal .hero-in { padding: 56px 18px 48px; }
.hero-minimal .hero h1 { font-size: clamp(2.4rem, 7vw, 5.2rem); letter-spacing: -.02em; max-width: 14ch; }
.hero-minimal .hero h1::after { content: ""; display: block; width: 90px; height: 6px; margin-top: 18px; background: var(--accent); }
.hero-minimal .lead { font-size: 1.2rem; }
@media (min-width: 900px) { .hero-minimal .hero-in { padding: 100px 18px 70px; } }
.hd-overlay.hero-minimal .hero-in { padding-top: calc(var(--header-h) + 50px); }
/* gradient with the search in the middle */
.hero-gradient .hero { color: #fff; background: linear-gradient(120deg, var(--hero-from), var(--hero-to)); text-align: center; }
.hero-gradient .hero.has-bg .hero-bg { opacity: .22; mix-blend-mode: luminosity; }
.hero-gradient .hero-in { padding: 70px 18px 100px; justify-items: center; }
.hd-overlay.hero-gradient .hero-in { padding-top: calc(var(--header-h) + 60px); }
.hero-gradient .hero-copy { max-width: 900px; }
.hero-gradient .hero .lead { color: rgba(255,255,255,.88); margin-inline: auto; }
.hero-gradient .hero .eyebrow { color: #fff; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 99px; }
.hero-gradient .hero-stats { justify-content: center; }
.hero-gradient .hero-media { display: none; }
.hero-gradient .hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60px; height: 120px; background: var(--bg); border-radius: 50% 50% 0 0; }

/* Quick search */
.qs { margin-top: 22px; background: var(--surface); color: var(--text); border-radius: var(--radius); padding: 14px; box-shadow: 0 18px 50px rgba(0,0,0,.18); text-align: left; }
.hero-split .qs, .hero-mosaic .qs, .hero-minimal .qs { box-shadow: var(--shadow); border: 1px solid var(--line); }
.hero-boxed .qs { box-shadow: none; padding: 0; margin-top: 18px; }
.qs-tabs { display: inline-flex; gap: 4px; margin-bottom: 10px; padding: 4px; background: var(--surface-2); border-radius: 99px; }
.qs-tabs input, .seg input { position: absolute; opacity: 0; pointer-events: none; }
.qs-tabs span, .seg span { display: inline-block; padding: 6px 16px; border-radius: 99px; font-weight: 650; font-size: .9rem; cursor: pointer; color: var(--muted); }
.qs-tabs input:checked + span, .seg input:checked + span { background: var(--accent); color: var(--accent-ink); }
.qs-tabs input:focus-visible + span, .seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.qs-fields { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.qs-f { display: block; min-width: 0; }
.qs-f span { display: block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 3px 2px; }
.qs-f input, .qs-f select { width: 100%; min-height: 46px; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; font-size: 16px; }
.qs-q { grid-column: 1 / -1; }
.qs-go { grid-column: 1 / -1; min-height: 48px; }
@media (min-width: 900px) {
    .qs-fields { grid-template-columns: 2fr 1fr 1fr 1fr auto; align-items: end; }
    .qs-q, .qs-go { grid-column: auto; }
    .hero-boxed .qs-fields, .hero-split .qs-fields, .hero-mosaic .qs-fields { grid-template-columns: 1fr 1fr; }
    .hero-boxed .qs-q, .hero-boxed .qs-go, .hero-split .qs-q, .hero-split .qs-go, .hero-mosaic .qs-q, .hero-mosaic .qs-go { grid-column: 1 / -1; }
}

/* ---------- Sections ---------- */
.sec { padding: 56px 0; }
.sec-tight { padding: 30px 0 0; }
.sec.alt { background: var(--surface-2); }
@media (min-width: 900px) { .sec { padding: 80px 0; } }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-head h2 { margin: 0; }
.sec-head.center { justify-content: center; text-align: center; }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.page-hero { padding: 34px 0 28px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin-bottom: .2em; }
.page-hero p { color: var(--muted); margin: 0; }
.crumbs { font-size: .85rem; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--muted); } .crumbs span { margin: 0 3px; }
.empty-state { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty-state .ic { color: var(--accent); margin-bottom: 8px; }
.empty-state h3, .empty-state h1 { color: var(--text); }
.empty-state .qs { box-shadow: var(--shadow); margin: 20px auto; max-width: 900px; }

/* ---------- Property cards ---------- */
.pgrid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 620px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .pgrid { grid-template-columns: repeat(min(var(--cols), 3), minmax(0, 1fr)); } }
@media (min-width: 1240px) { .pgrid { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); } }
.results-col .pgrid { --cols: min(3, var(--cols)); }
.pcard { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; min-width: 0; }
.pcard:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0,0,0,.12); }
.pcard-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.pcard:hover .pcard-img img { transform: scale(1.05); }
.pcard-tags { position: absolute; left: 12px; top: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; pointer-events: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: .74rem; font-weight: 750; letter-spacing: .02em; background: rgba(17,24,39,.78); color: #fff; }
.tag-sale { background: var(--accent); color: var(--accent-ink); } .tag-rent { background: #0e7490; color: #fff; }
.tag-st-reserved { background: #d97706; color: #fff; } .tag-st-sold { background: #b91c1c; color: #fff; } .tag-st-rented { background: #1d4ed8; color: #fff; } .tag-st-available { background: #15803d; color: #fff; }
.tag-feat { background: #fff; color: #92400e; }
.fav { position: absolute; right: 12px; top: 12px; z-index: 3; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: #334155; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.15); transition: transform .15s; }
.fav:hover { transform: scale(1.08); }
.fav.on { color: #e11d48; } .fav.on .ic { fill: currentColor; }
.fav-b { position: static; width: auto; height: auto; border-radius: var(--r-sm); background: var(--surface); box-shadow: none; border: 1px solid var(--line); color: var(--text); }
.pcard-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 14px; flex: 1; }
.pcard-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; }
.is-light .pcard-price { color: color-mix(in srgb, var(--accent) 82%, #000); }
.pcard-title { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.pcard-title a { color: var(--text); }
.pcard-title a::before { content: ""; position: absolute; inset: 0; z-index: 1; }       /* the whole card is clickable */
.pcard-loc { display: flex; align-items: center; gap: 5px; color: var(--muted); font-size: .88rem; }
.pcard-facts { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--text); font-size: .9rem; margin-top: 2px; }
.pcard-facts span { display: inline-flex; align-items: center; gap: 5px; } .pcard-facts .ic { color: var(--muted); } .pcard-facts small { color: var(--muted); }
.pcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.pcard-foot a { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.st-sold .pcard-img img, .st-rented .pcard-img img { filter: grayscale(.55); }

/* horizontal list cards */
@media (min-width: 620px) {
    .cards-list .pgrid { grid-template-columns: minmax(0, 1fr); }
    .cards-list .pcard, .results.view-list .pcard { flex-direction: row; }
    .cards-list .pcard-img, .results.view-list .pcard-img { flex: 0 0 42%; aspect-ratio: auto; min-height: 220px; }
    .results.view-list .pgrid { grid-template-columns: minmax(0, 1fr) !important; }
    .cards-list .pcard-body, .results.view-list .pcard-body { padding: 20px 22px; }
}
@media (min-width: 1100px) { .cards-list.cols-2 .pgrid, .cards-list.cols-3 .pgrid, .cards-list.cols-4 .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cards-list .results-col .pgrid { grid-template-columns: minmax(0, 1fr); } }
.cards-list .pcard-price { font-size: 1.45rem; }
.th-urban .pcard-img, .th-corporate .pcard-img { min-height: 240px; }
/* text over the photo */
.cards-overlay .pcard { min-height: 380px; border: 0; color: #fff; background: #111; }
.cards-overlay .pcard-img { position: absolute; inset: 0; aspect-ratio: auto; }
.cards-overlay .pcard-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.82)); }
.cards-overlay .pcard-body { position: relative; justify-content: flex-end; z-index: 1; padding: 20px; }
/* the free space goes above the text, so it sits on the dark end of the shade */
.cards-overlay .pcard-body > :first-child { margin-top: auto; }
.cards-overlay .pcard-foot { margin-top: 8px; }
.cards-overlay .pcard-title a, .cards-overlay .pcard-facts, .cards-overlay .pcard-loc, .cards-overlay .pcard-facts .ic, .cards-overlay .pcard-facts small { color: #fff; }
.cards-overlay .pcard-loc, .cards-overlay .pcard-foot { color: rgba(255,255,255,.82); }
.cards-overlay .pcard-price { color: var(--accent) !important; text-shadow: 0 1px 6px rgba(0,0,0,.5); }
.cards-overlay .pcard-foot { border-color: rgba(255,255,255,.2); }
.cards-overlay .pcard-foot a { color: #fff; }
.cards-overlay .results.view-list .pcard { min-height: 260px; }
/* minimal: no box */
.cards-minimal .pcard { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.cards-minimal .pcard:hover { transform: none; box-shadow: none; }
.cards-minimal .pcard-img { border-radius: var(--radius); aspect-ratio: 1 / 1; }
.cards-minimal .pcard-body { padding: 12px 2px 0; }
.cards-minimal .pcard-foot { display: none; }
.cards-minimal .pcard-price { order: 3; font-size: 1.05rem; }
.cards-minimal .pcard-title { font-weight: 600; }
.cards-minimal .fav { box-shadow: none; }
/* bordered */
.cards-bordered .pcard { box-shadow: none; border: 1px solid var(--line); border-top: 4px solid var(--accent); }
.cards-bordered .pcard:hover { box-shadow: 0 0 0 1px var(--accent); transform: none; }
.cards-bordered .pcard-img { margin: 10px 10px 0; border-radius: var(--r-sm); }
.cards-bordered .pcard-price { order: 4; margin-top: 6px; padding: 8px 10px; background: var(--surface-2); border-radius: var(--r-sm); font-size: 1.1rem; }
.cards-bordered .pcard-foot { order: 5; }

/* ---------- Search page ---------- */
.search-layout { display: grid; gap: 24px; padding-top: 26px; padding-bottom: 56px; }
@media (min-width: 1024px) { .search-layout { grid-template-columns: 290px minmax(0, 1fr); align-items: start; } }
.filters { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters-head strong { display: inline-flex; align-items: center; gap: 6px; }
.filters .b-block + .b-block { margin-top: 8px; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: 99px; }
.seg label { flex: 1; text-align: center; } .seg span { display: block; padding: 7px 4px; }
.filters-back { display: none; }
@media (max-width: 1023px) {
    .filters { position: fixed; inset: 0 auto 0 0; z-index: 80; width: min(360px, 90vw); border-radius: 0; overflow-y: auto; transform: translateX(-105%); transition: transform .25s ease; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
    .filters-open .filters { transform: none; box-shadow: var(--shadow); }
    .filters-open .filters-back { display: block; position: fixed; inset: 0; z-index: 75; background: rgba(0,0,0,.45); }
}
@media (min-width: 1024px) { .filters { position: sticky; top: calc(var(--header-h) + 16px); } .filters-head .icon-b, .show-filters { display: none !important; } .hd-side .filters { top: 16px; } }
.results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.sort-form { margin-left: auto; }
.sort-form label { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.sort-form select { min-height: 40px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--text); font: inherit; }
.view-toggle { display: flex; gap: 4px; }
.view-toggle .on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.pill { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: 99px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .85rem; font-weight: 600; }
.chip:hover { border-color: var(--accent); text-decoration: none; }
.results.view-grid .pgrid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important; }
.results.view-grid .pcard { flex-direction: column; }
.results.view-grid .pcard-img { flex: none; aspect-ratio: 4 / 3; min-height: 0; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 28px; }
.pg { padding: 9px 16px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); font-weight: 700; color: var(--text); }
.pg.off { border-color: transparent; background: transparent; color: var(--muted); font-weight: 500; }

/* ---------- Property page ---------- */
.prop-top { padding-top: 22px; }
.prop-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 30px; margin-bottom: 18px; }
.prop-head h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); margin: 8px 0 6px; }
.prop-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.prop-loc { display: flex; align-items: center; gap: 6px; color: var(--muted); margin: 0; }
.prop-price { text-align: left; }
.prop-price strong { display: block; font-size: clamp(1.6rem, 3.4vw, 2.2rem); color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.15; }
.is-light .prop-price strong { color: color-mix(in srgb, var(--accent) 82%, #000); }
.prop-price small { display: block; color: var(--muted); }
.prop-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
@media (min-width: 900px) { .prop-price { text-align: right; } .prop-actions { justify-content: flex-end; } }
.gallery { position: relative; display: grid; gap: 8px; grid-template-columns: 1fr; border-radius: var(--radius); overflow: hidden; }
.g-item { position: relative; display: block; padding: 0; border: 0; background: var(--surface-2); cursor: zoom-in; overflow: hidden; }
.g-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }
.g-0 { aspect-ratio: 16 / 10; }
.g-1, .g-2, .g-3, .g-4 { display: none; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.5); color: #fff; font-weight: 800; font-size: 1.1rem; }
.g-count { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 99px; background: rgba(0,0,0,.65); color: #fff; font-size: .82rem; pointer-events: none; }
@media (min-width: 760px) {
    .gallery[data-count="2"], .gallery[data-count="3"], .gallery[data-count="4"] { grid-template-columns: 2fr 1fr; }
    .gallery:not([data-count="1"]) { height: 480px; }
    .gallery:not([data-count="1"]) .g-0 { aspect-ratio: auto; grid-row: span 2; }
    .gallery .g-1, .gallery .g-2 { display: block; }
    .gallery[data-count="2"] .g-0 { grid-row: auto; }
    .gallery:not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]) { grid-template-columns: 2fr 1fr 1fr; }
    .gallery:not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]) .g-3, .gallery:not([data-count="1"]):not([data-count="2"]):not([data-count="3"]):not([data-count="4"]) .g-4 { display: block; }
}
.prop-layout { display: grid; gap: 22px; padding-top: 22px; padding-bottom: 40px; }
@media (min-width: 1000px) { .prop-layout { grid-template-columns: minmax(0, 1fr) 370px; align-items: start; } .prop-side { position: sticky; top: calc(var(--header-h) + 16px); } .hd-side .prop-side { top: 16px; } }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-bottom: 20px; }
.box h2 { font-size: 1.25rem; display: flex; align-items: center; gap: 8px; }
.facts { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fact { display: flex; gap: 10px; align-items: center; }
.fact .ic { color: var(--accent); width: 42px; height: 42px; padding: 9px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.fact small { display: block; color: var(--muted); font-size: .78rem; } .fact strong { display: block; }
.prose { line-height: 1.75; overflow-wrap: anywhere; }
.lead-prose { font-size: 1.08rem; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.feat-list li { display: flex; gap: 8px; align-items: center; } .feat-list .ic { color: var(--accent); }
.ratio { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; background: var(--surface-2); }
.ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ratio.map { aspect-ratio: 16 / 10; }
.calc { display: grid; gap: 0 14px; grid-template-columns: 1fr 1fr; }
.calc .small { grid-column: 1 / -1; margin: 6px 0 0; }
.calc-out { grid-column: 1 / -1; display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px; border-radius: var(--r-sm); background: var(--surface-2); }
@media (min-width: 640px) { .calc-out { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.calc-out small { display: block; color: var(--muted); font-size: .78rem; } .calc-out strong { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.calc-out div:first-child strong { color: var(--accent); font-size: 1.25rem; }
.agent-mini { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.agent-mini a { color: var(--text); } .agent-mini small { display: block; color: var(--muted); }
.av { display: block; flex: none; border-radius: 50%; object-fit: cover; }
.av-ini { display: grid; place-items: center; background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent); font-weight: 800; font-size: 1.4rem; }
.contact-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.contact-btns .b { flex: 1 1 120px; }
.form-tabs { display: flex; gap: 4px; padding: 4px; background: var(--surface-2); border-radius: var(--r-sm); margin-bottom: 14px; }
.form-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 0; border-radius: calc(var(--r-sm) - 2px); background: transparent; color: var(--muted); font: inherit; font-weight: 650; font-size: .88rem; cursor: pointer; }
.form-tabs button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.side-meta { display: flex; flex-direction: column; gap: 6px; }
.side-meta span { display: flex; align-items: center; gap: 6px; }
/* sticky contact bar on phones */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: flex; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px rgba(0,0,0,.08); padding-bottom: env(safe-area-inset-bottom); }
.mbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; color: var(--text); font-size: .78rem; font-weight: 700; text-decoration: none; }
.mbar .mbar-main { background: var(--accent); color: var(--accent-ink); }
body:has(.mbar) .sf { padding-bottom: 70px; }
@media (min-width: 1000px) { .mbar { display: none; } body:has(.mbar) .sf { padding-bottom: 0; } }
/* lightbox */
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(0,0,0,.94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(0,0,0,.9); }
.lightbox figure { margin: 0; max-width: 94vw; text-align: center; }
.lightbox img { max-width: 94vw; max-height: 84dvh; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.lightbox figcaption { margin-top: 8px; color: #d1d5db; font-size: .9rem; }
.lb-x, .lb-nav { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; }
.lb-x { right: 14px; top: 14px; } .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); } .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
.lb-x:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }

/* ---------- Home page parts ---------- */
.types { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .types { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.type-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); transition: border-color .15s, transform .15s; }
.type-tile:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.type-tile small { color: var(--muted); }
.type-ic, .why-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--accent) 13%, transparent); color: var(--accent); margin-bottom: 8px; flex: none; }
.why-grid { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.why-item { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.why-item p { color: var(--muted); margin: 0; }
.stats-band { background: linear-gradient(120deg, var(--hero-from), var(--hero-to)); color: #fff; padding: 46px 0; }
.stats { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); text-align: center; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats strong { display: block; font-family: var(--hfont); font-size: clamp(2rem, 4.5vw, 2.8rem); line-height: 1.1; }
.stats span { opacity: .85; font-size: .92rem; }
.agents { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .agents { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.agents-full { gap: 22px; } @media (min-width: 640px) and (max-width: 899px) { .agents-full { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.agent-card { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 24px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
a.agent-card:hover { border-color: var(--accent); text-decoration: none; }
.agent-card .av { margin-bottom: 10px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
.agent-card small { color: var(--muted); }
.agent-link { display: flex; flex-direction: column; align-items: center; color: var(--text); }
.lic { display: inline-flex; align-items: center; gap: 4px; }
.agent-n { margin-top: 6px; font-size: .82rem; font-weight: 700; color: var(--accent); }
.agent-btns { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.agent-hero { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.agent-hero h1 { margin-bottom: 4px; } .agent-hero .lead { margin-bottom: 14px; } .agent-hero .contact-btns .b { flex: none; }
.quotes { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { margin: 0; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.quote blockquote { margin: 0; font-size: 1.02rem; line-height: 1.7; flex: 1; }
.quote blockquote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 3rem; line-height: .6; color: var(--accent); margin-bottom: 8px; }
.quote figcaption small { display: block; color: var(--muted); }
.stars { color: #f59e0b; letter-spacing: 2px; }
.cta { background: var(--surface-2); }
.cta-in { display: grid; gap: 28px; align-items: center; }
@media (min-width: 900px) { .cta-in { grid-template-columns: 1fr 1fr; gap: 50px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ticks li { display: flex; align-items: center; gap: 8px; font-weight: 600; } .ticks .ic { color: var(--accent); }
.news { background: var(--accent); color: var(--accent-ink); padding: 36px 0; }
.news-in { display: grid; gap: 16px; align-items: center; }
.news h3 { font-size: 1.4rem; margin-bottom: 4px; } .news p { margin: 0; opacity: .9; }
.news-form { display: flex; gap: 8px; }
.news-form input { flex: 1; min-width: 0; border-color: transparent; }
.news .b-primary { background: var(--text); border-color: var(--text); color: var(--bg); }
@media (min-width: 900px) { .news-in { grid-template-columns: 1fr 1fr; } }
.about-grid { display: grid; gap: 30px; }
@media (min-width: 900px) { .about-grid { grid-template-columns: 1.4fr 1fr; gap: 60px; align-items: start; } }
.about-stats { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.about-stats div { padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.about-stats strong { display: block; font-family: var(--hfont); font-size: 2rem; color: var(--accent); }
.about-stats span { color: var(--muted); font-size: .9rem; }
.contact-grid { display: grid; gap: 26px; }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.3fr; align-items: start; } }
.contact-info { display: grid; gap: 12px; }
.ci { display: flex; gap: 14px; align-items: center; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); }
a.ci:hover { border-color: var(--accent); text-decoration: none; }
.ci .why-ic { margin: 0; } .ci small { display: block; color: var(--muted); } .ci strong { overflow-wrap: anywhere; }
.map-band iframe { display: block; width: 100%; height: 380px; border: 0; }

/* ---------- Footer ---------- */
.sf { background: var(--foot); color: var(--foot-ink, var(--text)); border-top: 1px solid var(--line); }
.sf-grid { display: grid; gap: 30px; padding-top: 50px; padding-bottom: 36px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .sf-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .sf-grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.sf h4 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.sf-col { display: flex; flex-direction: column; gap: 8px; }
.sf-col a, .sf-col span { color: inherit; opacity: .8; display: flex; align-items: flex-start; gap: 8px; font-size: .93rem; }
.sf-col a:hover { opacity: 1; }
.sf-brand p { opacity: .75; font-size: .9rem; margin-top: 14px; max-width: 42ch; }
.sf .logo { color: inherit; } .sf .logo-text small { color: inherit; opacity: .7; }
.sf-social { display: flex; gap: 8px; }
.sf-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; color: inherit; opacity: .75; }
.sf-social a:hover { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.sf-bottom { border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); font-size: .85rem; }
.sf-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 16px; padding-bottom: 18px; opacity: .75; }
.sf-bottom a { color: inherit; text-decoration: underline; }
.ft-dark .sf { border-top: 0; }
.ft-centered .sf { text-align: center; }
.ft-centered .sf-grid { grid-template-columns: minmax(0, 1fr) !important; justify-items: center; }
.ft-centered .sf-brand { display: flex; flex-direction: column; align-items: center; }
.ft-centered .sf-brand .logo { flex-direction: column; } .ft-centered .logo-text { align-items: center; }
.ft-centered .sf-col { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.ft-centered .sf-col h4 { width: 100%; margin-bottom: 4px; }
.ft-centered .sf-bottom .wrap { justify-content: center; flex-direction: column; align-items: center; }

/* Install button and toast */
.install-chip { position: fixed; left: 16px; bottom: 16px; z-index: 44; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 99px; background: var(--text); color: var(--bg); font: inherit; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
body:has(.mbar) .install-chip { bottom: 84px; }
@media (min-width: 1000px) { body:has(.mbar) .install-chip { bottom: 16px; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; padding: 10px 18px; border-radius: 99px; background: #111827; color: #fff; font-weight: 600; transition: .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
body:has(.mbar) .toast { bottom: 88px; }

/* ---------- Touches of individual designs ---------- */
.th-luxury h1, .th-luxury h2, .th-luxury .logo-text strong { font-weight: 400; letter-spacing: .04em; }
.th-luxury .eyebrow, .th-luxury .snav a, .th-luxury .b { letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.th-luxury .b { min-height: 46px; }
.th-luxury .sec-head h2::after, .th-heritage .sec-head h2::after { content: ""; display: block; width: 60px; height: 2px; background: var(--accent); margin-top: 12px; }
.th-luxury .sec-head.center h2::after, .th-heritage .sec-head.center h2::after { margin-inline: auto; }
.th-luxury .hero-boxed .hero-copy, .th-luxury.hero-boxed .hero-copy { border: 1px solid var(--accent); }
.th-urban h1, .th-urban h2, .th-urban h3, .th-urban .snav a, .th-urban .b, .th-urban .eyebrow { text-transform: uppercase; letter-spacing: .03em; }
.th-urban h1, .th-urban h2 { font-weight: 400; }
.th-urban .b-primary, .th-urban .tag-sale { box-shadow: 4px 4px 0 var(--text); }
.th-urban .pcard { border: 2px solid var(--text); }
.th-urban .hero-minimal .hero, .th-urban.hero-minimal .hero { background: repeating-linear-gradient(-45deg, transparent 0 22px, rgba(0,0,0,.025) 22px 44px); }
.th-minimal h1, .th-minimal h2 { font-weight: 300; letter-spacing: -.02em; }
.th-minimal .snav a { font-weight: 400; text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; }
.th-minimal .pcard-price { color: var(--text) !important; font-weight: 500; }
.th-minimal .eyebrow { color: var(--muted); }
.th-minimal .sec.alt { background: #fafafa; }
.th-sunset .b-primary, .th-sunset .news { background: linear-gradient(120deg, #f97316, #e11d48 55%, #7c3aed); border: 0; }
.th-sunset .stats-band { background: linear-gradient(120deg, #e11d48, #7c3aed); }
.th-heritage .pcard { outline: 1px solid var(--line); outline-offset: -6px; }
.th-heritage h1, .th-heritage h2 { font-style: italic; font-weight: 500; }
.th-heritage .page-hero { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16'%3E%3Cpath d='M0 8h16M8 0v16' stroke='%237f1d1d' stroke-opacity='.05'/%3E%3C/svg%3E"); }
.th-midnight .b-primary { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.th-midnight .pcard, .th-midnight .box, .th-midnight .why-item, .th-midnight .type-tile { border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.th-midnight h1 { background: linear-gradient(90deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.th-midnight .stats-band { background: linear-gradient(120deg, #0e1729, #4c1d95); }
.th-midnight .flash { background: #0e2a2f; color: #a5f3fc; border-color: #155e75; }
.th-tropical .sec.alt { background: linear-gradient(180deg, var(--surface-2), #ecfdf5); }
.th-tropical .news { background: linear-gradient(120deg, #047857, #f59e0b); color: #fff; }
.th-tropical .type-ic { border-radius: 50%; }
.th-rosegold .b-primary { background: linear-gradient(120deg, #b76e79, #e0a899); border: 0; }
.th-rosegold h1, .th-rosegold h2 { font-weight: 400; }
.th-rosegold .pcard-img { border-radius: 50% 50% var(--radius) var(--radius) / 30% 30% var(--radius) var(--radius); }
.th-blueprint body, body.th-blueprint { background-image: linear-gradient(color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent) 1px, transparent 1px); background-size: 28px 28px; }
.th-blueprint .pcard-price, .th-blueprint .eyebrow, .th-blueprint .stats strong { font-family: var(--hfont); }
.th-blueprint .hero-minimal .hero h1, .th-blueprint.hero-minimal .hero h1 { font-weight: 500; letter-spacing: -.04em; }
.th-blueprint .pcard-img { border-bottom: 1px dashed var(--accent); }
.th-terracotta .hero-split .hm-0, .th-terracotta.hero-split .hm-0 { border-radius: 999px 999px var(--radius) var(--radius); }
.th-terracotta .sec.alt { background: #f3e6d8; }
.th-coastal .hero-split .hero, .th-coastal.hero-split .hero { background: linear-gradient(180deg, #e3f3f4, #f4fbfb); }
.th-coastal .hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 60' preserveAspectRatio='none'%3E%3Cpath d='M0 30 Q150 0 300 30 T600 30 T900 30 T1200 30 V60 H0z' fill='%23ffffff'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; opacity: .8; }
.th-garden .hero .eyebrow { color: #86efac; } .th-garden .sec .eyebrow { color: var(--accent); }
.th-corporate .hero-split .hero, .th-corporate.hero-split .hero { background: linear-gradient(120deg, #e6ecf7 0 55%, var(--bg) 55%); }

/* Dark designs: form controls follow */
.is-dark { color-scheme: dark; }
.is-dark .fav { background: rgba(20,20,24,.85); color: #e5e7eb; }
.is-dark .tag-feat { background: var(--accent); color: var(--accent-ink); }
.is-dark .flash:not(.flash-error) { background: #11302a; color: #8ee6c0; border-color: #1d5545; }

/* Print a property */
@media print {
    .sh, .topstrip, .sf, .mbar, .prop-side form, .form-tabs, .contact-btns, .prop-actions, .install-chip, .preview-bar, #calc, .ratio, .sec:last-of-type, .fav { display: none !important; }
    body.site { background: #fff; color: #000; padding: 0 !important; }
    .prop-layout { display: block; } .box { border: 0; padding: 0; }
    .gallery { height: auto !important; grid-template-columns: 1fr 1fr !important; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; } }

/* ---------- Facebook Messenger ---------- */
.msgr-fab { position: fixed; right: 16px; bottom: 16px; z-index: 44; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 18px 0 14px; border-radius: 99px;
    background: linear-gradient(135deg, #0a7cff, #a033ff 70%, #ff5280); color: #fff !important; font-weight: 700; text-decoration: none !important; box-shadow: 0 8px 24px rgba(10,124,255,.35); transition: transform .15s; }
.msgr-fab:hover { transform: translateY(-2px); }
.msgr-fab .ic { stroke: #fff; }
@media (max-width: 599px) { .msgr-fab { width: 56px; padding: 0; justify-content: center; } .msgr-fab span { display: none; } }
body:has(.mbar) .msgr-fab { bottom: 84px; }
@media (min-width: 1000px) { body:has(.mbar) .msgr-fab { bottom: 16px; } }
.b.b-msgr { background: #0a7cff; border-color: #0a7cff; color: #fff; }
.b.b-msgr:hover { background: #0866d6; border-color: #0866d6; color: #fff; }
@media print { .msgr-fab { display: none !important; } }