/* Agency websites (layout_site.php): one shared multi-page structure for every template.
   Each template sets its own tokens and a few signature details (.fx-{template}).
   Colours come from the agency (--fx-primary / --fx-accent), fonts from the template. */

/* ---------- Tokens ---------- */
.fx {
    --fx-bg: #ffffff; --fx-surface: #ffffff; --fx-tint: #f5f6f7; --fx-text: #111827; --fx-muted: #5b6472; --fx-line: #e5e7eb;
    --fx-radius: 12px; --fx-radius-lg: 18px; --fx-shadow: 0 10px 30px rgba(15, 23, 42, .08); --fx-shadow-lg: 0 24px 60px rgba(15, 23, 42, .16);
    --fx-wrap: 1240px; --fx-pad: clamp(18px, 4vw, 40px); --fx-header-h: 76px;
    --fx-head-weight: 700; --fx-head-case: none; --fx-head-track: -0.02em; --fx-eyebrow-colour: var(--fx-accent);
    --fx-btn-radius: 999px; --fx-card-ratio: 4 / 3;
    margin: 0; background: var(--fx-bg); color: var(--fx-text); font-family: var(--fx-body); font-size: 16px; line-height: 1.6;
}
.fx-prestige {
    --fx-bg: #0b0b0c; --fx-surface: #141416; --fx-tint: #111113; --fx-text: #f3efe6; --fx-muted: #a39d93; --fx-line: #2a2724;
    --fx-radius: 2px; --fx-radius-lg: 2px; --fx-shadow: 0 18px 50px rgba(0, 0, 0, .45); --fx-shadow-lg: 0 30px 80px rgba(0, 0, 0, .6);
    --fx-head-weight: 600; --fx-head-track: 0; --fx-btn-radius: 0; --fx-card-ratio: 4 / 5; --fx-eyebrow-colour: var(--fx-ink);
}
.fx-horizon {
    --fx-bg: #fbfaf7; --fx-tint: #f3efe7; --fx-text: #1d2a30; --fx-muted: #5f6b70; --fx-line: #e8e2d6;
    --fx-radius: 16px; --fx-radius-lg: 26px; --fx-shadow: 0 12px 34px rgba(29, 42, 48, .08); --fx-head-weight: 400; --fx-head-track: -0.01em;
}
.fx-metro {
    --fx-tint: #f3f5f8; --fx-text: #0b1220; --fx-muted: #586174; --fx-radius: 10px; --fx-radius-lg: 14px;
    --fx-head-weight: 800; --fx-head-track: -0.035em; --fx-btn-radius: 10px; --fx-card-ratio: 3 / 2;
}

/* ---------- Visitor light/dark toggle ----------
   The toggle only applies the OPPOSITE of a template's native mode, so each
   template's default look is never changed. Light-by-default templates get a
   dark palette when data-theme=dark; the two dark templates (prestige, luxury)
   get a light palette when data-theme=light. Brand colours (--fx-primary /
   --fx-accent) and the per-template radius/fonts are kept either way. */
html[data-theme="dark"] .fx-maison, html[data-theme="dark"] .fx-skyline, html[data-theme="dark"] .fx-terra,
html[data-theme="dark"] .fx-horizon, html[data-theme="dark"] .fx-metro, html[data-theme="dark"] .fx-classic,
html[data-theme="dark"] .fx-modern, html[data-theme="dark"] .fx-coastal, html[data-theme="dark"] .fx-urban,
html[data-theme="dark"] .fx-heritage {
    --fx-bg: #0e1116; --fx-surface: #171b22; --fx-tint: #1b212b; --fx-text: #e9ecf1; --fx-muted: #9aa3b2; --fx-line: #2a313d;
    --fx-shadow: 0 10px 30px rgba(0,0,0,.5); --fx-shadow-lg: 0 24px 60px rgba(0,0,0,.65);
    --fx-ink: color-mix(in srgb, var(--fx-primary) 52%, #ffffff);
}
html[data-theme="light"] .fx-prestige, html[data-theme="light"] .fx-luxury {
    --fx-bg: #ffffff; --fx-surface: #ffffff; --fx-tint: #f5f6f7; --fx-text: #111827; --fx-muted: #5b6472; --fx-line: #e6e8ec;
    --fx-shadow: 0 10px 30px rgba(15,23,42,.08); --fx-shadow-lg: 0 24px 60px rgba(15,23,42,.16);
    --fx-ink: color-mix(in srgb, var(--fx-primary) 70%, #000000);
}

/* ---------- Base ---------- */
.fx *, .fx *::before, .fx *::after { box-sizing: border-box; }
.fx a { color: inherit; text-decoration: none; }
.fx img { max-width: 100%; display: block; }
.fx h1, .fx h2, .fx h3 { font-family: var(--fx-head); font-weight: var(--fx-head-weight); letter-spacing: var(--fx-head-track); line-height: 1.12; margin: 0; color: var(--fx-text); }
.fx h1 { font-size: clamp(2.2rem, 5vw, 4rem); }
.fx h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }
.fx h3 { font-size: 1.2rem; }
.fx-prestige h1, .fx-prestige h2 { font-weight: 500; }
.fx .icon { width: 18px; height: 18px; }
.fx-main { min-height: 50vh; }
.fx-eyebrow { display: inline-block; font-family: var(--fx-body); font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fx-eyebrow-colour); margin-bottom: 10px; }
.fx-horizon .fx-eyebrow { letter-spacing: .12em; }
.fx-prose { color: var(--fx-muted); font-size: 1.03rem; line-height: 1.75; }
.fx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fx-locked { overflow: hidden; }
.fx-preview-bar { background: #111827; color: #fff; text-align: center; font-size: .85rem; padding: 8px 12px; }

/* ---------- Buttons & links ---------- */
.fx .fx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 14px 24px; border: 1.5px solid transparent; border-radius: var(--fx-btn-radius);
    font-family: var(--fx-body); font-size: .95rem; font-weight: 700; line-height: 1.1; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease; box-shadow: none; white-space: nowrap; }
.fx .fx-btn:hover { transform: translateY(-1px); }
.fx .fx-btn-primary { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx .fx-btn-primary:hover { box-shadow: 0 10px 24px color-mix(in srgb, var(--fx-primary) 35%, transparent); background: var(--fx-primary); }
.fx .fx-btn-accent { background: var(--fx-accent); color: var(--fx-on-accent); }
.fx .fx-btn-accent:hover { background: var(--fx-accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--fx-accent) 35%, transparent); }
.fx .fx-btn-ghost { background: transparent; color: var(--fx-text); border-color: var(--fx-line); }
.fx .fx-btn-ghost:hover { border-color: var(--fx-text); background: transparent; }
.fx .fx-btn-wa { background: #25d366; color: #fff; }
.fx .fx-btn-wa:hover { background: #1fb957; }
.fx .fx-btn-block { width: 100%; }
.fx-prestige .fx-btn { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; padding: 16px 26px; }
.fx-link { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--fx-text); border-bottom: 2px solid var(--fx-accent); padding-bottom: 2px; }
.fx-link .icon { width: 16px; height: 16px; }
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

/* ---------- Header ---------- */
.fx-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--fx-bg) 92%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--fx-line); transition: background .3s ease, border-color .3s ease, color .3s ease; }
.fx-header-inner { max-width: var(--fx-wrap); margin: 0 auto; height: var(--fx-header-h); padding: 0 var(--fx-pad); display: flex; align-items: center; gap: 24px; }
.fx-brand { display: flex; align-items: center; min-width: 0; margin-right: auto; }
.fx-brand-logo img { max-height: 46px; max-width: 220px; width: auto; }
.fx-brand-logo.on-white { background: #fff; padding: 6px 10px; border-radius: 8px; }
.fx-brand-name { font-family: var(--fx-head); font-size: 1.35rem; font-weight: var(--fx-head-weight); letter-spacing: var(--fx-head-track); }
.fx-nav { display: flex; align-items: center; flex-wrap: nowrap; gap: clamp(14px, 1.7vw, 26px); }
.fx-nav a { font-size: .92rem; font-weight: 600; color: var(--fx-text); opacity: .85; position: relative; padding: 6px 0; white-space: nowrap; }
.fx-nav a:hover, .fx-nav a[aria-current="page"] { opacity: 1; }
.fx-nav a[aria-current="page"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--fx-accent); }
.fx-nav .fx-nav-cta { padding: 10px 16px; border-radius: var(--fx-btn-radius); background: var(--fx-primary); color: var(--fx-on-primary); opacity: 1; }
.fx-prestige .fx-nav a { text-transform: uppercase; letter-spacing: .14em; font-size: .74rem; }
.fx-header-phone { display: none; align-items: center; gap: 8px; font-weight: 700; font-size: .92rem; }
.fx .fx-menu-btn { display: none; background: transparent; color: var(--fx-text); padding: 8px; border-radius: 8px; box-shadow: none; }
.fx .fx-menu-btn:hover { background: transparent; box-shadow: none; }
.fx .fx-menu-btn .icon { width: 26px; height: 26px; }
/* Over the homepage banner: see-through with white text until scrolled. */
/* Sticky with a negative margin: it lies over the banner, sits below any notice bar, and stays on screen when scrolling. */
.fx-over-hero .fx-header { position: sticky; margin-bottom: calc(-1 * var(--fx-header-h) - 1px); background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-nav a:not(.fx-nav-cta),
.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-brand-name,
.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-header-phone,
.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-theme-toggle,
.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-menu-btn { color: #fff; }
.fx-over-hero.fx-scrolled .fx-header { background: color-mix(in srgb, var(--fx-bg) 94%, transparent); border-color: var(--fx-line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); box-shadow: 0 6px 24px rgba(0, 0, 0, .06); }

/* ---------- Hero ---------- */
/* The photo is clipped inside its own layer (not the banner), so dropdowns in the search can open past the banner. */
.fx-hero { position: relative; min-height: min(92vh, 860px); display: flex; align-items: flex-end; color: #fff; background: #0b0b0c; }
.fx-hero-media { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; background-size: cover; background-position: center; }
.fx-hero-media::before { content: ''; position: absolute; inset: 0; background: inherit; background-size: cover; background-position: center; transform: scale(1.04); animation: fx-kenburns 18s ease-out forwards; }
.fx-hero::after { border-radius: inherit; }
.fx-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, calc(var(--fx-overlay) * .55)) 0%, rgba(0, 0, 0, calc(var(--fx-overlay) * .35)) 35%, rgba(0, 0, 0, calc(var(--fx-overlay) + .2)) 100%); }
@keyframes fx-kenburns { to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .fx-hero-media::before { animation: none; transform: none; } }
.fx-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--fx-wrap); margin: 0 auto; padding: calc(var(--fx-header-h) + 60px) var(--fx-pad) 70px; }
.fx .fx-hero h1 { color: #fff; max-width: 15ch; text-shadow: 0 2px 30px rgba(0, 0, 0, .25); }
.fx-kicker { display: inline-block; margin-bottom: 16px; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.fx-hero-sub { max-width: 560px; margin: 18px 0 34px; font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(255, 255, 255, .9); }
.fx-prestige .fx-hero { min-height: 100vh; align-items: center; text-align: center; }
.fx-prestige .fx-hero::after { background: radial-gradient(ellipse at center, rgba(0, 0, 0, calc(var(--fx-overlay) + .05)) 0%, rgba(0, 0, 0, calc(var(--fx-overlay) + .3)) 100%); }
.fx-prestige .fx-hero-inner { display: flex; flex-direction: column; align-items: center; }
.fx-prestige .fx-hero h1 { max-width: 18ch; font-size: clamp(2.6rem, 6.4vw, 5.2rem); font-weight: 500; }
.fx-prestige .fx-hero-sub { margin-left: auto; margin-right: auto; }
.fx-horizon .fx-hero { margin: 0 clamp(0px, 1.6vw, 22px); border-radius: 0 0 var(--fx-radius-lg) var(--fx-radius-lg); }
.fx-metro .fx-hero::after { background: linear-gradient(90deg, rgba(5, 10, 20, calc(var(--fx-overlay) + .3)) 0%, rgba(5, 10, 20, calc(var(--fx-overlay) * .5)) 60%, rgba(5, 10, 20, .05) 100%); }
.fx-metro .fx-hero { align-items: center; }

/* ---------- Search ---------- */
.fx-search { width: 100%; max-width: 940px; }
.fx-search-tabs { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 10px; background: rgba(255, 255, 255, .16); border-radius: var(--fx-btn-radius); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.fx-search-tabs label, .fx-seg label { position: relative; }
.fx-search-tabs input, .fx-seg input { position: absolute; inset: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.fx-search-tabs span { display: block; padding: 8px 22px; border-radius: var(--fx-btn-radius); font-weight: 700; font-size: .9rem; color: #fff; cursor: pointer; }
.fx-search-tabs input:checked + span { background: #fff; color: #111827; }
.fx-search-tabs input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.fx-search-fields { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 0; background: var(--fx-surface); border-radius: var(--fx-radius); padding: 8px; box-shadow: var(--fx-shadow-lg); }
.fx-search-field { display: flex; flex-direction: column; gap: 2px; padding: 8px 16px; border-right: 1px solid var(--fx-line); text-align: left; }
.fx-search-field:nth-child(3) { border-right: 0; }
.fx-search-field > span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fx-muted); }
.fx .fx-search-field select { border: 0; padding: 4px 0; background: transparent; color: var(--fx-text); font-size: 1rem; font-weight: 600; box-shadow: none; cursor: pointer; }
.fx .fx-search-field select:focus { box-shadow: none; }
.fx .fx-search-go { border-radius: calc(var(--fx-radius) - 4px); padding: 0 28px; min-height: 56px; }
.fx-prestige .fx-search-tabs { background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .15); }
.fx-prestige .fx-search-tabs input:checked + span { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx-prestige .fx-search-fields { background: rgba(14, 14, 16, .78); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.fx-prestige .fx-search-field { border-color: rgba(255, 255, 255, .12); }
.fx-prestige .fx-search-field select { color: #f3efe6; }
.fx-prestige .fx-search-field select option { color: #111; }

/* ---------- Sections ---------- */
.fx-section { max-width: var(--fx-wrap); margin: 0 auto; padding: clamp(56px, 8vw, 104px) var(--fx-pad); }
.fx-section-tight { padding-top: 34px; }
.fx-section-tint { max-width: none; background: var(--fx-tint); }
.fx-section-tint > * { max-width: calc(var(--fx-wrap) - 2 * var(--fx-pad)); margin-left: auto; margin-right: auto; }
.fx-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 34px; }
.fx-prestige .fx-section-head { flex-direction: column; align-items: center; text-align: center; }

.fx-page-head { background: var(--fx-tint); border-bottom: 1px solid var(--fx-line); }
.fx-page-head-inner { max-width: var(--fx-wrap); margin: 0 auto; padding: clamp(42px, 6vw, 76px) var(--fx-pad) clamp(34px, 5vw, 56px); }
.fx-page-head p { margin: 12px 0 0; color: var(--fx-muted); font-size: 1.08rem; }
.fx-prestige .fx-page-head { background: radial-gradient(900px 300px at 50% 0%, color-mix(in srgb, var(--fx-primary) 16%, transparent), transparent), var(--fx-bg); text-align: center; }

/* ---------- Cards ---------- */
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 30px); }
.fx-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fx-card { display: flex; flex-direction: column; background: var(--fx-surface); border-radius: var(--fx-radius); overflow: hidden; border: 1px solid var(--fx-line); transition: transform .25s ease, box-shadow .25s ease; }
.fx-card:hover { transform: translateY(-4px); box-shadow: var(--fx-shadow-lg); }
.fx-card-img { position: relative; aspect-ratio: var(--fx-card-ratio); background: var(--fx-tint); overflow: hidden; }
.fx-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.fx-card:hover .fx-card-img img { transform: scale(1.05); }
.fx-card-noimg { display: grid; place-items: center; height: 100%; color: var(--fx-muted); }
.fx-card-noimg .icon { width: 40px; height: 40px; }
.fx-tag { position: absolute; top: 14px; left: 14px; padding: 6px 11px; border-radius: var(--fx-btn-radius); background: var(--fx-surface); color: var(--fx-text); font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.fx-tag-status { left: auto; right: 14px; background: var(--fx-accent); color: var(--fx-on-accent); }
.fx-tag.static { position: static; display: inline-block; background: var(--fx-tint); }
.fx-tag.static.fx-tag-status { background: var(--fx-accent); color: var(--fx-on-accent); }
.fx-ribbon { position: absolute; top: 18px; left: -36px; transform: rotate(-35deg); width: 150px; text-align: center; padding: 6px 0; background: var(--fx-primary); color: var(--fx-on-primary); font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.fx-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.fx-card-price { font-family: var(--fx-head); font-size: 1.45rem; font-weight: var(--fx-head-weight); letter-spacing: var(--fx-head-track); color: var(--fx-text); }
.fx-horizon .fx-card-price { font-size: 1.55rem; }
.fx-prestige .fx-card-price { color: var(--fx-ink); font-size: 1.6rem; }
.fx .fx-card-title { font-family: var(--fx-body); font-size: .98rem; font-weight: 600; letter-spacing: 0; line-height: 1.4; color: var(--fx-text); }
.fx-card-place { display: flex; align-items: center; gap: 6px; color: var(--fx-muted); font-size: .88rem; }
.fx-card-place .icon { width: 15px; height: 15px; }
.fx-card-specs { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--fx-line); color: var(--fx-muted); font-size: .86rem; font-weight: 600; }
.fx-card-specs span { display: inline-flex; align-items: center; gap: 6px; }
.fx-card-specs .icon { width: 16px; height: 16px; }
.fx-card.is-sold .fx-card-img img { filter: saturate(.7); }
.fx-prestige .fx-card { border-color: transparent; background: transparent; }
.fx-prestige .fx-card-body { padding: 18px 2px 4px; }
.fx-prestige .fx-card-specs { border-color: var(--fx-line); }
.fx-metro .fx-card { border-color: var(--fx-line); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }

/* ---------- Stats, about, band, services, quotes ---------- */
.fx-stats { max-width: var(--fx-wrap); margin: 0 auto; padding: 0 var(--fx-pad); display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1px; }
.fx-stat { padding: 34px 20px; text-align: center; background: var(--fx-surface); border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); }
.fx-stat strong { display: block; font-family: var(--fx-head); font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: var(--fx-head-weight); line-height: 1; color: var(--fx-ink); letter-spacing: var(--fx-head-track); }
.fx-stat span { display: block; margin-top: 8px; color: var(--fx-muted); font-size: .85rem; font-weight: 600; letter-spacing: .04em; }
.fx-horizon .fx-stat strong, .fx-metro .fx-stat strong { color: var(--fx-text); }

.fx-about { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: center; }
.fx-about h2 { margin-bottom: 18px; }
.fx-about-media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--fx-radius-lg); box-shadow: var(--fx-shadow-lg); }
.fx-metro .fx-about-media img { aspect-ratio: 5 / 4; }

.fx-band { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx-band-inner { max-width: var(--fx-wrap); margin: 0 auto; padding: clamp(42px, 6vw, 70px) var(--fx-pad); display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.fx .fx-band h2 { color: var(--fx-on-primary); }
.fx-band p { margin: 10px 0 0; opacity: .85; max-width: 520px; }
.fx-band .fx-eyebrow { color: var(--fx-on-primary); opacity: .8; }
.fx-prestige .fx-band { background: linear-gradient(120deg, #17140f, #0b0b0c 60%); border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); color: var(--fx-text); }
.fx-prestige .fx-band h2 { color: var(--fx-text); }
.fx-prestige .fx-band .fx-eyebrow { color: var(--fx-ink); opacity: 1; }
.fx-horizon .fx-band { margin: 0 clamp(0px, 1.6vw, 22px); border-radius: var(--fx-radius-lg); }

.fx-services { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.fx-service { padding: 28px; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-surface); }
.fx-service-num { display: block; font-family: var(--fx-head); font-size: 1.6rem; color: var(--fx-ink); margin-bottom: 14px; }
.fx-service p { margin: 10px 0 0; color: var(--fx-muted); }
.fx-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.fx-quote { margin: 0; padding: 30px; background: var(--fx-surface); border-radius: var(--fx-radius); border: 1px solid var(--fx-line); }
.fx-quote blockquote { margin: 0; font-family: var(--fx-head); font-size: 1.22rem; line-height: 1.5; color: var(--fx-text); }
.fx-quote figcaption { margin-top: 16px; color: var(--fx-muted); font-weight: 700; font-size: .9rem; }

/* ---------- Team & agents ---------- */
.fx-team { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 26px; }
.fx-agent { display: flex; flex-direction: column; background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); overflow: hidden; }
.fx-agent-photo { aspect-ratio: 1; background: linear-gradient(160deg, color-mix(in srgb, var(--fx-primary) 22%, var(--fx-tint)), var(--fx-tint)); display: grid; place-items: center; }
.fx-agent-photo .fx-agent-img { width: 100%; height: 100%; object-fit: cover; }
.fx-agent-photo .fx-agent-img.avatar-fallback { width: 112px; height: 112px; border-radius: 50%; display: grid; place-items: center; background: var(--fx-primary); color: var(--fx-on-primary); font-family: var(--fx-head); font-size: 2.4rem; }
.fx-agent-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 3px; }
.fx-agent-name { font-family: var(--fx-head); font-size: 1.2rem; font-weight: var(--fx-head-weight); }
.fx-agent-role { color: var(--fx-muted); font-size: .86rem; }
.fx-agent-links { display: flex; gap: 8px; margin-top: 12px; }
.fx-agent-links a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--fx-line); color: var(--fx-text); transition: background .2s, color .2s, border-color .2s; }
.fx-agent-links a:hover { background: var(--fx-primary); color: var(--fx-on-primary); border-color: var(--fx-primary); }
.fx-agent-links .icon { width: 17px; height: 17px; }

.fx-profile { max-width: var(--fx-wrap); margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--fx-pad) 10px; display: grid; grid-template-columns: 340px 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.fx-profile-photo { aspect-ratio: 4 / 5; border-radius: var(--fx-radius-lg); overflow: hidden; background: linear-gradient(160deg, color-mix(in srgb, var(--fx-primary) 25%, var(--fx-tint)), var(--fx-tint)); display: grid; place-items: center; }
.fx-profile-photo .fx-agent-img { width: 100%; height: 100%; object-fit: cover; }
.fx-profile-photo .avatar-fallback { width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: var(--fx-primary); color: var(--fx-on-primary); font-family: var(--fx-head); font-size: 3.2rem; }
.fx-profile h1 { margin-bottom: 16px; }

/* ---------- Forms & panels ---------- */
.fx-panel { background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); padding: clamp(22px, 3vw, 34px); box-shadow: var(--fx-shadow); }
.fx-panel h2, .fx-panel h3 { margin-bottom: 18px; }
.fx-form { display: flex; flex-direction: column; gap: 14px; }
.fx-field { display: flex; flex-direction: column; gap: 6px; }
.fx-field > span { font-size: .8rem; font-weight: 700; color: var(--fx-muted); letter-spacing: .02em; }
.fx .fx-field input, .fx .fx-field select, .fx .fx-field textarea { background: var(--fx-bg); color: var(--fx-text); border: 1.5px solid var(--fx-line); border-radius: calc(var(--fx-radius) - 2px); padding: 12px 14px; font-size: .98rem; font-family: var(--fx-body); }
.fx-prestige .fx-field input, .fx-prestige .fx-field select, .fx-prestige .fx-field textarea { border-radius: 0; background: #0f0f11; }
.fx .fx-field input:focus, .fx .fx-field select:focus, .fx .fx-field textarea:focus { border-color: var(--fx-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fx-primary) 22%, transparent); outline: none; }
.fx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fx-privacy { margin: 0; font-size: .8rem; color: var(--fx-muted); text-align: center; }
.fx-contact-strip { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.fx-contact-intro h2 { margin-bottom: 12px; }
.fx-contact-intro p { color: var(--fx-muted); margin: 0 0 22px; }
.fx-contact-line { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--fx-line); font-weight: 600; }
.fx-contact-line .icon { color: var(--fx-accent); }
.fx-flash { max-width: var(--fx-wrap); margin: 18px auto 0; padding: 14px 18px; border-radius: var(--fx-radius); font-weight: 600; width: calc(100% - 2 * var(--fx-pad)); }
.fx-flash.success { background: #dcfce7; color: #14532d; }
.fx-flash.error { background: #fee2e2; color: #7f1d1d; }
.fx-flash.warning { background: #fef3c7; color: #78350f; }
.fx-over-hero .fx-flash { position: relative; z-index: 60; margin-top: calc(var(--fx-header-h) + 14px); }

/* ---------- Search page ---------- */
.fx-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 16px; margin-bottom: 30px; background: var(--fx-surface); border: 1px solid var(--fx-line); border-radius: var(--fx-radius-lg); box-shadow: var(--fx-shadow); }
.fx-seg { display: inline-flex; padding: 4px; background: var(--fx-tint); border-radius: var(--fx-btn-radius); align-self: center; }
.fx-seg span { display: block; padding: 9px 18px; border-radius: var(--fx-btn-radius); font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--fx-muted); }
.fx-seg input:checked + span { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx-filter { display: flex; flex-direction: column; gap: 4px; min-width: 130px; flex: 1 1 130px; max-width: 230px; }
.fx-filter > span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--fx-muted); }
.fx .fx-filter select { padding: 10px 12px; border: 1.5px solid var(--fx-line); border-radius: calc(var(--fx-radius) - 4px); background: var(--fx-bg); color: var(--fx-text); font-weight: 600; }
.fx-clear { align-self: center; font-weight: 700; font-size: .88rem; color: var(--fx-muted); text-decoration: underline; }
.fx-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.fx-pager a { display: inline-flex; align-items: center; gap: 4px; min-width: 44px; height: 44px; padding: 0 14px; justify-content: center; border: 1px solid var(--fx-line); border-radius: var(--fx-btn-radius); font-weight: 700; }
.fx-pager a[aria-current="page"] { background: var(--fx-primary); color: var(--fx-on-primary); border-color: var(--fx-primary); }
.fx-empty { text-align: center; padding: 70px 20px; max-width: 560px; margin: 0 auto; }
.fx-empty > .icon { width: 44px; height: 44px; color: var(--fx-accent); margin-bottom: 14px; }
.fx-empty p { color: var(--fx-muted); margin: 12px 0 24px; }

/* ---------- Listing page ---------- */
.fx-crumbs { max-width: var(--fx-wrap); margin: 0 auto; padding: 22px var(--fx-pad) 14px; display: flex; gap: 10px; flex-wrap: wrap; font-size: .86rem; color: var(--fx-muted); }
.fx-crumbs a:hover { color: var(--fx-text); }
.fx-mosaic { position: relative; max-width: var(--fx-wrap); margin: 0 auto; padding: 0 var(--fx-pad); display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 10px; }
.fx .fx-mosaic-item { padding: 0; border: 0; background: var(--fx-tint); border-radius: 0; overflow: hidden; cursor: zoom-in; box-shadow: none; }
.fx .fx-mosaic-item:hover { background: var(--fx-tint); box-shadow: none; }
.fx-mosaic-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .3s; }
.fx-mosaic-item:hover img { transform: scale(1.03); filter: brightness(1.05); }
.fx-mosaic-item:first-child { grid-row: span 2; border-radius: var(--fx-radius-lg) 0 0 var(--fx-radius-lg); }
.fx-mosaic-item:nth-child(3) { border-radius: 0 var(--fx-radius-lg) 0 0; }
.fx-mosaic-item:nth-child(5) { border-radius: 0 0 var(--fx-radius-lg) 0; }
.fx-mosaic-single { grid-template-columns: 1fr; grid-template-rows: 520px; }
.fx-mosaic-single .fx-mosaic-item:first-child { grid-row: auto; border-radius: var(--fx-radius-lg); }
.fx .fx-mosaic-all { position: absolute; right: calc(var(--fx-pad) + 16px); bottom: 16px; background: var(--fx-surface); color: var(--fx-text); border-radius: var(--fx-btn-radius); padding: 10px 16px; font-weight: 700; font-size: .88rem; box-shadow: var(--fx-shadow); border: 1px solid var(--fx-line); }
.fx .fx-mosaic-all:hover { background: var(--fx-surface); }
.fx-listing { max-width: var(--fx-wrap); margin: 0 auto; padding: 38px var(--fx-pad) 20px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: clamp(30px, 5vw, 64px); align-items: start; }
.fx-listing-tags { display: flex; gap: 8px; margin-bottom: 14px; }
.fx-listing-main h1 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.fx-listing-place { display: flex; align-items: center; gap: 8px; color: var(--fx-muted); margin: 12px 0 6px; }
.fx-listing-price { font-family: var(--fx-head); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: var(--fx-head-weight); letter-spacing: var(--fx-head-track); margin: 4px 0 26px; color: var(--fx-ink); }
.fx-horizon .fx-listing-price, .fx-metro .fx-listing-price { color: var(--fx-text); }
.fx-listing-main h2 { font-size: 1.5rem; margin: 40px 0 16px; }
.fx-facts { display: flex; flex-wrap: wrap; margin: 0; border: 1px solid var(--fx-line); border-radius: var(--fx-radius); overflow: hidden; background: var(--fx-surface); }
.fx-facts div { flex: 1 1 150px; margin: 0 -1px -1px 0; border-right: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); background: var(--fx-surface); padding: 16px 18px; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; }
.fx-facts .icon { grid-row: span 2; width: 24px; height: 24px; color: var(--fx-accent); }
.fx-facts dt { font-size: .76rem; font-weight: 700; color: var(--fx-muted); letter-spacing: .04em; text-transform: uppercase; }
.fx-facts dd { margin: 0; font-weight: 700; font-size: 1.05rem; }
.fx-features { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px 20px; }
.fx-features li { display: flex; align-items: center; gap: 10px; }
.fx-features .icon { color: var(--fx-accent); }
.fx-video { width: 100%; border-radius: var(--fx-radius); background: #000; }
.fx-listing-side { position: sticky; top: calc(var(--fx-header-h) + 20px); }
.fx-agent-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.fx-agent-head .fx-agent-img { width: 62px; height: 62px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.fx-agent-head .avatar-fallback { display: grid; place-items: center; background: var(--fx-primary); color: var(--fx-on-primary); font-weight: 800; }
.fx-agent-head strong { display: block; font-size: 1.08rem; }
.fx-agent-head span { color: var(--fx-muted); font-size: .86rem; }
.fx-agent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 24px; padding-bottom: 22px; border-bottom: 1px solid var(--fx-line); }
.fx-agent-actions .fx-btn { padding: 12px 10px; }
.fx-agent-panel h3 { font-size: 1.15rem; }
.fx-bond { border: 1px solid var(--fx-line); border-radius: var(--fx-radius); overflow: hidden; display: grid; grid-template-columns: 1.4fr 1fr; }
.fx-bond-inputs { padding: 20px; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; align-items: end; }
.fx-bond-result { background: var(--fx-tint); padding: 20px 24px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.fx-bond-result span { font-size: .8rem; font-weight: 700; color: var(--fx-muted); text-transform: uppercase; letter-spacing: .05em; }
.fx-bond-result strong { font-family: var(--fx-head); font-size: 1.9rem; color: var(--fx-text); letter-spacing: var(--fx-head-track); }
.fx-bond-result small { color: var(--fx-muted); font-size: .78rem; }

/* ---------- Bond calculator page (site/bond-calculator.php) ---------- */
.sbc { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 2.4vw, 26px); align-items: start; }
.sbc-inputs { display: flex; flex-direction: column; gap: 24px; padding: clamp(24px, 3vw, 36px); }
.sbc-field { display: flex; flex-direction: column; gap: 11px; }
.sbc-field-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 20px; }
.sbc-field-top label, .sbc-label { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--fx-muted); }
.sbc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.sbc-chip { font-size: .72rem; font-weight: 800; color: var(--fx-primary); background: color-mix(in srgb, var(--fx-primary) 12%, transparent); padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
.sbc-money { display: flex; align-items: center; gap: 4px; border: 1.5px solid var(--fx-line); border-radius: var(--fx-radius); background: var(--fx-surface); padding: 2px 16px; transition: border-color .15s ease, box-shadow .15s ease; }
.sbc-money:focus-within { border-color: var(--fx-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--fx-primary) 15%, transparent); }
.sbc-money > span { color: var(--fx-muted); font-weight: 600; font-size: .95rem; }
.sbc .sbc-money input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fx-text); font-family: var(--fx-head); font-size: 1.45rem; font-weight: 700; letter-spacing: var(--fx-head-track); padding: 13px 4px; outline: none; }
.sbc-money.sbc-suffix input { font-size: 1.2rem; }
.fx-prestige .sbc-money { border-radius: 0; background: #0f0f11; }
.sbc-range { -webkit-appearance: none; appearance: none; width: 100%; height: 19px; margin: 0; background: transparent; outline: none; cursor: pointer; }
.sbc-range::-webkit-slider-runnable-track { height: 5px; border-radius: 999px; background: linear-gradient(to right, var(--fx-primary) var(--sbc-fill, 10%), color-mix(in srgb, var(--fx-text) 13%, transparent) var(--sbc-fill, 10%)); }
.sbc-range::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; margin-top: -7px; width: 19px; height: 19px; border-radius: 50%; background: var(--fx-primary); border: 3px solid var(--fx-surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fx-primary) 30%, transparent), 0 2px 5px rgba(0,0,0,.28); transition: transform .12s ease; }
.sbc-range:hover::-webkit-slider-thumb { transform: scale(1.12); }
.sbc-range:active::-webkit-slider-thumb { transform: scale(1.12); box-shadow: 0 0 0 5px color-mix(in srgb, var(--fx-primary) 20%, transparent), 0 2px 5px rgba(0,0,0,.28); }
.sbc-range::-moz-range-track { height: 5px; border-radius: 999px; background: color-mix(in srgb, var(--fx-text) 13%, transparent); }
.sbc-range::-moz-range-progress { height: 5px; border-radius: 999px; background: var(--fx-primary); }
.sbc-range::-moz-range-thumb { width: 19px; height: 19px; border-radius: 50%; background: var(--fx-primary); border: 3px solid var(--fx-surface); box-shadow: 0 0 0 1px color-mix(in srgb, var(--fx-primary) 30%, transparent), 0 2px 5px rgba(0,0,0,.28); cursor: pointer; }
.sbc-hint { font-size: .78rem; color: var(--fx-muted); line-height: 1.5; }
.sbc-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 7px; }
.sbc-seg label { position: relative; display: flex; align-items: center; justify-content: center; padding: 12px 4px; cursor: pointer; border: 1.5px solid var(--fx-line); border-radius: calc(var(--fx-radius) - 4px); transition: background .14s ease, border-color .14s ease, box-shadow .14s ease; }
.sbc-seg label:hover { border-color: color-mix(in srgb, var(--fx-primary) 45%, var(--fx-line)); }
.sbc-seg input { position: absolute; opacity: 0; pointer-events: none; }
.sbc-seg span { font-size: .95rem; font-weight: 700; color: var(--fx-muted); }
.sbc-seg label:has(input:checked) { background: var(--fx-primary); border-color: var(--fx-primary); box-shadow: 0 5px 14px color-mix(in srgb, var(--fx-primary) 26%, transparent); }
.sbc-seg input:checked + span { color: var(--fx-on-primary); }
.fx-prestige .sbc-seg label { border-radius: 0; }
.sbc-check { display: flex; align-items: flex-start; gap: 11px; font-size: .85rem; color: var(--fx-muted); line-height: 1.5; cursor: pointer; padding-top: 2px; }
.sbc-check input { margin-top: 2px; width: 18px; height: 18px; accent-color: var(--fx-primary); flex: none; }
/* Results */
.sbc-results { display: flex; flex-direction: column; gap: clamp(16px, 2.4vw, 26px); }
.sbc-hero, .sbc-costs { padding: clamp(24px, 3vw, 36px); }
.sbc-cardhead { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.sbc-cardhead .icon { width: 17px; height: 17px; color: var(--fx-primary); }
.sbc-label { display: block; }
.sbc-monthly { display: block; font-family: var(--fx-head); font-weight: var(--fx-head-weight); letter-spacing: var(--fx-head-track); font-size: clamp(2.6rem, 5.5vw, 3.4rem); color: var(--fx-ink); line-height: 1; }
.sbc-sub { display: block; color: var(--fx-muted); font-size: .92rem; margin-top: 9px; }
.sbc-split { display: flex; gap: 3px; height: 10px; margin: 24px 0 15px; }
.sbc-split span { border-radius: 999px; min-width: 3px; transition: width .2s ease; }
.sbc-split-cap { background: var(--fx-primary); }
.sbc-split-int { background: color-mix(in srgb, var(--fx-primary) 26%, var(--fx-surface)); }
.sbc-legend { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.sbc-legend span { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--fx-muted); }
.sbc-legend b { color: var(--fx-text); font-weight: 700; margin-left: 2px; }
.sbc-legend i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.sbc-legend .is-cap { background: var(--fx-primary); }
.sbc-legend .is-int { background: color-mix(in srgb, var(--fx-primary) 26%, var(--fx-surface)); }
.sbc-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--fx-line); font-size: .9rem; color: var(--fx-muted); }
.sbc-total b { color: var(--fx-text); font-weight: 700; font-size: 1.05rem; }
.sbc-cost-rows { margin: 0; display: flex; flex-direction: column; }
.sbc-cost-rows > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-top: 1px solid var(--fx-line); }
.sbc-cost-rows > div:first-child { border-top: 0; padding-top: 2px; }
.sbc-cost-rows dt { color: var(--fx-muted); font-size: .93rem; display: inline-flex; align-items: center; gap: 8px; }
.sbc-cost-rows dd { color: var(--fx-text); font-weight: 700; font-size: 1.02rem; margin: 0; }
.sbc-est { font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--fx-primary); background: color-mix(in srgb, var(--fx-primary) 13%, transparent); padding: 2px 7px; border-radius: 5px; }
.sbc-upfront { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 17px 20px; border-radius: var(--fx-radius); background: color-mix(in srgb, var(--fx-primary) 9%, var(--fx-surface)); border: 1px solid color-mix(in srgb, var(--fx-primary) 22%, transparent); }
.fx-prestige .sbc-upfront { border-radius: 0; }
.sbc-upfront span { font-weight: 700; color: var(--fx-text); font-size: .98rem; }
.sbc-upfront strong { font-family: var(--fx-head); font-weight: var(--fx-head-weight); font-size: clamp(1.5rem, 3vw, 1.95rem); color: var(--fx-ink); letter-spacing: var(--fx-head-track); line-height: 1; }
.sbc-costs .sbc-hint { margin: 14px 0 0; }
.sbc-browse { margin-top: 2px; font-size: 1rem; padding: 17px 24px; }
.sbc-browse b { font-weight: 800; }
.sbc-disclaimer { max-width: 720px; margin: 26px auto 0; text-align: center; font-size: .8rem; color: var(--fx-muted); line-height: 1.65; }
.fx-sticky-cta { display: none; }

/* Lightbox */
.fx-lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(6, 6, 8, .96); display: flex; align-items: center; justify-content: center; }
.fx-lightbox[hidden] { display: none; }
.fx-lightbox img { max-width: min(92vw, 1500px); max-height: 86vh; object-fit: contain; border-radius: 4px; }
.fx .fx-lb-close, .fx .fx-lb-prev, .fx .fx-lb-next { position: absolute; width: 52px; height: 52px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; padding: 0; display: grid; place-items: center; box-shadow: none; }
.fx .fx-lb-close:hover, .fx .fx-lb-prev:hover, .fx .fx-lb-next:hover { background: rgba(255, 255, 255, .2); }
.fx-lb-close { top: 20px; right: 20px; }
.fx-lb-prev { left: 20px; top: 50%; transform: translateY(-50%); }
.fx-lb-next { right: 20px; top: 50%; transform: translateY(-50%); }
.fx-lb-count { position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, .8); font-weight: 600; font-size: .9rem; }

/* ---------- Valuation ---------- */
.fx-valuation { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 70px); align-items: start; }
.fx-steps { list-style: none; counter-reset: fx-step; padding: 0; margin: 0 0 40px; display: flex; flex-direction: column; gap: 22px; }
.fx-steps li { counter-increment: fx-step; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.fx-steps li::before { content: counter(fx-step); grid-row: span 2; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--fx-primary); color: var(--fx-on-primary); font-family: var(--fx-head); font-size: 1.4rem; }
.fx-steps strong { font-size: 1.08rem; align-self: end; }
.fx-steps span { color: var(--fx-muted); }
.fx-valuation-info h3 { margin-bottom: 16px; }
.fx-mini-sold { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fx-mini-sold .fx-card-body { padding: 10px 12px 12px; }
.fx-mini-sold .fx-card-title { font-size: .82rem; }
.fx-mini-sold .fx-card-specs, .fx-mini-sold .fx-card-place { display: none; }
.fx-mini-sold .fx-ribbon { font-size: .6rem; top: 12px; left: -42px; }

/* ---------- Footer ---------- */
.fx-footer { margin-top: clamp(40px, 6vw, 80px); background: #0e1116; color: #c9ced6; }
.fx-prestige .fx-footer { background: #070708; border-top: 1px solid var(--fx-line); }
.fx-horizon .fx-footer { background: color-mix(in srgb, var(--fx-primary) 88%, #000); color: rgba(255, 255, 255, .78); }
.fx-footer-inner { max-width: var(--fx-wrap); margin: 0 auto; padding: 64px var(--fx-pad) 40px; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr; gap: 40px; }
.fx-footer h4 { margin: 0 0 16px; color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; }
.fx-footer-brand p { margin: 16px 0 0; line-height: 1.6; max-width: 300px; }
.fx-footer-brand .fx-brand-logo { display: inline-block; }
.fx-footer-name { color: #fff; font-family: var(--fx-head); font-size: 1.4rem; }
.fx-footer-col { display: flex; flex-direction: column; gap: 10px; }
.fx-footer-col a, .fx-footer-col span { display: inline-flex; align-items: center; gap: 10px; }
.fx-footer-col a:hover { color: #fff; }
.fx-footer-col .icon { width: 16px; height: 16px; opacity: .8; }
.fx-footer-cta p { margin: 0 0 18px; }
.fx-socials { display: flex; gap: 10px; margin-top: 20px; }
.fx-socials a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: #fff; }
.fx-socials a:hover { background: var(--fx-accent); color: var(--fx-on-accent); }
.fx-socials .icon { width: 17px; height: 17px; }
.fx-footer-base { max-width: var(--fx-wrap); margin: 0 auto; padding: 20px var(--fx-pad) 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .85rem; }
.fx-powered strong { color: #fff; }
.fx-powered strong span { color: #fdba74; }
.fx-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 12px 30px rgba(37, 211, 102, .4); transition: transform .2s; }
.fx-wa-float:hover { transform: scale(1.06); }
.fx-wa-float .icon { width: 30px; height: 30px; }

/* Theme toggle (in the header, top-right) */
.fx .fx-theme-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--fx-text); cursor: pointer; box-shadow: none; transition: background .15s ease, color .15s ease; }
.fx .fx-theme-toggle:hover { background: color-mix(in srgb, var(--fx-text) 9%, transparent); box-shadow: none; }
.fx-theme-toggle svg { width: 20px; height: 20px; }
html[data-theme="dark"] .fx-theme-toggle .fx-ic-moon { display: none; }
html:not([data-theme="dark"]) .fx-theme-toggle .fx-ic-sun { display: none; }
/* Over-hero colour is set alongside the nav links (base white rule + the dark-header
   templates classic/skyline/terra), so the toggle always matches the header text. */

/* Back-to-top button */
.fx-top { position: fixed; right: 20px; bottom: 20px; z-index: 59; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; padding: 0;
    border: 2px solid var(--fx-primary); background: var(--fx-surface); color: var(--fx-primary);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--fx-primary) 30%, transparent), 0 2px 6px rgba(0, 0, 0, .14);
    opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .2s ease, transform .2s ease, visibility .2s ease, background .15s ease, color .15s ease; }
.fx-top.is-on { opacity: 1; visibility: visible; transform: none; }
.fx-top:hover { background: var(--fx-primary); color: var(--fx-on-primary); transform: translateY(-2px); box-shadow: 0 10px 26px color-mix(in srgb, var(--fx-primary) 42%, transparent); }
.fx-top svg { width: 20px; height: 20px; }
.fx-top-stacked { bottom: 88px; }
.fx-page-listing .fx-top { bottom: 94px; }
@media (max-width: 680px) { .fx-top { right: 14px; bottom: 14px; } .fx-top-stacked { bottom: 78px; } }

/* ---------- Responsive ---------- */
@media (min-width: 1280px) { .fx-header-phone { display: inline-flex; } }
@media (max-width: 1100px) {
    .fx-grid, .fx-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fx-team { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .fx-footer-inner { grid-template-columns: 1fr 1fr; }
    .fx-listing { grid-template-columns: minmax(0, 1fr) 340px; }
    .fx-bond { grid-template-columns: 1fr; }
    .sbc { grid-template-columns: 1fr; }
}
/* The header nav collapses to the hamburger menu early (1180px), so a longer nav
   (now including Calculator) never crowds or wraps on a template with a wide logo. */
@media (max-width: 1180px) {
    .fx .fx-menu-btn { display: inline-flex; }
    .fx-nav { position: fixed; inset: var(--fx-header-h) 0 auto 0; flex-direction: column; align-items: stretch; gap: 0; padding: 10px var(--fx-pad) 24px;
        background: var(--fx-bg); border-bottom: 1px solid var(--fx-line); box-shadow: var(--fx-shadow-lg); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
    .fx-menu-open .fx-nav { opacity: 1; transform: none; pointer-events: auto; }
    .fx-nav a { padding: 14px 0; border-bottom: 1px solid var(--fx-line); font-size: 1.02rem; white-space: normal; }
    .fx-prestige .fx-nav a { font-size: .86rem; }
    .fx-nav a[aria-current="page"]::after { display: none; }
    .fx-nav .fx-nav-cta { margin-top: 14px; text-align: center; border-bottom: 0; }
    .fx-menu-open .fx-header { background: var(--fx-bg); }
}
@media (max-width: 960px) {
    .fx-listing, .fx-about, .fx-contact-strip, .fx-valuation, .fx-profile { grid-template-columns: 1fr; }
    .fx-listing-side { position: static; }
    .fx-profile-photo { max-width: 320px; }
    .fx-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 140px; }
    .fx-mosaic-item:first-child { grid-column: span 2; grid-row: auto; border-radius: var(--fx-radius-lg) var(--fx-radius-lg) 0 0; }
    .fx-mosaic-item:nth-child(n+4) { display: none; }
    .fx-mosaic-item:nth-child(2) { border-radius: 0 0 0 var(--fx-radius-lg); }
    .fx-mosaic-item:nth-child(3) { border-radius: 0 0 var(--fx-radius-lg) 0; }
    .fx-sticky-cta { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--fx-surface); border-top: 1px solid var(--fx-line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .08); }
    .fx-sticky-cta .fx-btn { padding: 13px 8px; }
    .fx-page-listing .fx-footer { padding-bottom: 72px; }
}
@media (max-width: 680px) {
    .fx { --fx-header-h: 64px; font-size: 15.5px; }
    .fx-brand-logo img { max-height: 38px; max-width: 170px; }
    .fx-grid, .fx-grid-4 { grid-template-columns: 1fr; }
    .fx-team { grid-template-columns: 1fr 1fr; gap: 14px; }
    .fx-agent-body { padding: 14px; }
    .fx-agent-name { font-size: 1.02rem; }
    .fx-search-fields { grid-template-columns: 1fr 1fr; padding: 6px; }
    .fx-search-field { border-right: 0; border-bottom: 1px solid var(--fx-line); padding: 8px 10px; }
    .fx-search-field:first-child { grid-column: span 2; }
    .fx-search-field:nth-child(3) { border-bottom: 1px solid var(--fx-line); }
    .fx .fx-search-go { grid-column: span 2; margin-top: 6px; min-height: 50px; }
    .fx-hero { min-height: 88vh; }
    .fx-hero-inner { padding-bottom: 36px; }
    .fx-prestige .fx-hero { min-height: 92vh; }
    .fx-horizon .fx-hero { margin: 0; border-radius: 0 0 var(--fx-radius-lg) var(--fx-radius-lg); }
    .fx-two, .fx-bond-inputs { grid-template-columns: 1fr; }
    .fx-footer-inner { grid-template-columns: 1fr; gap: 30px; }
    .fx-filters { padding: 12px; }
    .fx-filter { min-width: calc(50% - 6px); max-width: none; }
    .fx-seg { width: 100%; justify-content: stretch; }
    .fx-seg label { flex: 1; text-align: center; }
    .fx-mini-sold { grid-template-columns: 1fr 1fr; }
    .fx-mini-sold .fx-card:nth-child(3) { display: none; }
    .fx-wa-float { right: 14px; bottom: 14px; width: 52px; height: 52px; }
}

/* ==========================================================================
   Classic, Modern, Coastal, Luxury, Urban, Heritage: the same multi-page site,
   each with its own look. Tokens first, then each template's signature details.
   ========================================================================== */
.fx-classic {
    --fx-bg: #ffffff; --fx-tint: #f2f7f6; --fx-text: #0f1f1c; --fx-muted: #5a6b67; --fx-line: #e3ebe9;
    --fx-radius: 14px; --fx-radius-lg: 22px; --fx-btn-radius: 10px; --fx-head-weight: 800; --fx-head-track: -0.03em; --fx-card-ratio: 3 / 2;
}
.fx-modern {
    --fx-bg: #ffffff; --fx-tint: #f1f3f6; --fx-text: #0b1120; --fx-muted: #586174; --fx-line: #e2e6ec;
    --fx-radius: 4px; --fx-radius-lg: 6px; --fx-btn-radius: 4px; --fx-head-weight: 800; --fx-head-track: -0.01em; --fx-card-ratio: 16 / 11;
}
.fx-coastal {
    --fx-bg: #f6fbfc; --fx-surface: #ffffff; --fx-tint: #e7f4f6; --fx-text: #123138; --fx-muted: #557178; --fx-line: #d9ebee;
    --fx-radius: 22px; --fx-radius-lg: 30px; --fx-btn-radius: 999px; --fx-head-weight: 700; --fx-head-track: -0.02em; --fx-card-ratio: 4 / 3;
    --fx-shadow: 0 14px 40px rgba(14, 116, 144, .10);
}
.fx-luxury {
    --fx-bg: #0d0d0d; --fx-surface: #141414; --fx-tint: #111111; --fx-text: #f4f1ea; --fx-muted: #a8a296; --fx-line: #2b2823;
    --fx-radius: 0; --fx-radius-lg: 0; --fx-btn-radius: 0; --fx-head-weight: 600; --fx-head-track: -0.01em; --fx-card-ratio: 3 / 2;
    --fx-shadow: 0 18px 50px rgba(0, 0, 0, .45); --fx-shadow-lg: 0 30px 80px rgba(0, 0, 0, .6); --fx-eyebrow-colour: var(--fx-ink);
}
.fx-urban {
    --fx-bg: #fafafa; --fx-surface: #ffffff; --fx-tint: #f0f0f0; --fx-text: #0a0a0a; --fx-muted: #4b4b4b; --fx-line: #0a0a0a;
    --fx-radius: 0; --fx-radius-lg: 0; --fx-btn-radius: 0; --fx-head-weight: 700; --fx-head-track: -0.04em; --fx-card-ratio: 4 / 3;
    --fx-shadow: 6px 6px 0 #0a0a0a; --fx-shadow-lg: 10px 10px 0 #0a0a0a;
}
.fx-heritage {
    --fx-bg: #faf6ee; --fx-surface: #fffdf8; --fx-tint: #f2eadb; --fx-text: #2b2419; --fx-muted: #6d604c; --fx-line: #e4d8c0;
    --fx-radius: 4px; --fx-radius-lg: 6px; --fx-btn-radius: 4px; --fx-head-weight: 600; --fx-head-track: 0; --fx-card-ratio: 4 / 3;
    --fx-shadow: 0 10px 30px rgba(60, 45, 20, .08);
}

/* ---------- Classic: a split banner (words left, photo right) under a solid header ---------- */
.fx-classic.fx-over-hero .fx-header { margin-bottom: 0; background: color-mix(in srgb, var(--fx-bg) 94%, transparent); border-color: var(--fx-line); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); }
.fx-classic.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-nav a:not(.fx-nav-cta),
.fx-classic.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-brand-name,
.fx-classic.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-header-phone,
.fx-classic.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-theme-toggle,
.fx-classic.fx-over-hero:not(.fx-scrolled):not(.fx-menu-open) .fx-header .fx-menu-btn { color: var(--fx-text); }
.fx-classic .fx-hero { min-height: 640px; align-items: center; background: var(--fx-tint); color: var(--fx-text); }
.fx-classic .fx-hero::after { display: none; }
.fx-classic .fx-hero-media { left: 50%; border-radius: 0 0 0 56px; }
.fx-classic .fx-hero-media::before { animation: none; transform: none; }
.fx-classic .fx-hero-inner { padding: 70px var(--fx-pad); }
.fx-classic .fx-hero-inner > * { max-width: 560px; }
.fx-classic .fx-hero h1 { max-width: 12ch; font-size: clamp(2.2rem, 4vw, 3.5rem); color: var(--fx-text); text-shadow: none; }
.fx-classic .fx-kicker { color: var(--fx-ink); }
.fx-classic .fx-hero-sub { color: var(--fx-muted); }
.fx-classic .fx-search-tabs { background: #fff; border: 1px solid var(--fx-line); backdrop-filter: none; }
.fx-classic .fx-search-tabs span { color: var(--fx-muted); }
.fx-classic .fx-search-tabs input:checked + span { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx-classic .fx-search-fields { grid-template-columns: 1fr 1fr; box-shadow: var(--fx-shadow); border: 1px solid var(--fx-line); }
.fx-classic .fx-search-field:first-child { grid-column: span 2; border-right: 0; border-bottom: 1px solid var(--fx-line); }
.fx-classic .fx-search-field:nth-child(2) { border-right: 1px solid var(--fx-line); }
.fx-classic .fx-search-go { grid-column: span 2; margin-top: 8px; min-height: 52px; }
.fx-classic .fx-card { box-shadow: 0 1px 2px rgba(15, 31, 28, .05); }
.fx-classic .fx-tag { background: var(--fx-primary); color: var(--fx-on-primary); }

/* ---------- Modern: bold, full-bleed, capital headlines with an accent bar ---------- */
.fx-modern h1, .fx-modern h2 { text-transform: uppercase; }
.fx-modern h1 { font-size: clamp(2.4rem, 5.6vw, 4.6rem); line-height: 1.02; }
.fx-modern .fx-hero { min-height: 100vh; }
.fx-modern .fx-hero::after { background: linear-gradient(0deg, rgba(5, 8, 15, calc(var(--fx-overlay) + .35)) 0%, rgba(5, 8, 15, calc(var(--fx-overlay) * .4)) 55%, rgba(5, 8, 15, .25) 100%); }
.fx-modern .fx-kicker::before, .fx-modern .fx-eyebrow::before { content: ''; display: inline-block; width: 28px; height: 3px; margin-right: 10px; vertical-align: middle; background: var(--fx-accent); }
.fx-modern .fx-eyebrow { color: var(--fx-text); }
.fx-modern .fx-search-fields { border-radius: 4px; }
.fx-modern .fx-search-tabs { border-radius: 4px; }
.fx-modern .fx-search-tabs span { border-radius: 3px; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; }
.fx-modern .fx-btn { text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; }
.fx-modern .fx-nav a { text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; }
.fx-modern .fx-card { border: 0; box-shadow: 0 2px 6px rgba(11, 17, 32, .06), 0 14px 34px rgba(11, 17, 32, .06); }
.fx-modern .fx-tag { background: var(--fx-accent); color: var(--fx-on-accent); border-radius: 2px; }
.fx-modern .fx-card-price { font-size: 1.5rem; }
.fx-modern .fx-stat strong { color: var(--fx-text); }
.fx-modern .fx-band { background: #0b1120; color: #fff; }
.fx-modern .fx-band h2, .fx-modern .fx-band .fx-eyebrow { color: #fff; }

/* ---------- Coastal: soft, rounded and airy, with a pill-shaped search ---------- */
.fx-coastal .fx-hero { margin: 0 clamp(0px, 1.4vw, 18px); border-radius: 0 0 var(--fx-radius-lg) var(--fx-radius-lg); min-height: min(88vh, 820px); }
.fx-coastal .fx-hero::after { background: linear-gradient(180deg, rgba(8, 40, 48, calc(var(--fx-overlay) * .3)) 0%, rgba(8, 40, 48, calc(var(--fx-overlay) + .15)) 100%); }
.fx-coastal .fx-search-fields { border-radius: 999px; padding: 8px 8px 8px 14px; }
.fx-coastal .fx-search-go { border-radius: 999px !important; }
.fx-coastal .fx-eyebrow { padding: 5px 12px; border-radius: 999px; background: var(--fx-tint); color: var(--fx-ink); letter-spacing: .08em; }
.fx-coastal .fx-band .fx-eyebrow { background: rgba(255, 255, 255, .16); color: var(--fx-on-primary); }
.fx-coastal .fx-card { border: 0; box-shadow: var(--fx-shadow); }
.fx-coastal .fx-card-img { margin: 10px 10px 0; border-radius: calc(var(--fx-radius) - 6px); }
.fx-coastal .fx-tag { background: rgba(255, 255, 255, .92); }
.fx-coastal .fx-band { margin: 0 clamp(0px, 1.4vw, 18px); border-radius: var(--fx-radius-lg); }
.fx-coastal .fx-agent, .fx-coastal .fx-quote, .fx-coastal .fx-service { border: 0; box-shadow: var(--fx-shadow); }
.fx-coastal .fx-stat { border: 0; background: transparent; }
.fx-coastal .fx-stats { background: var(--fx-surface); border-radius: var(--fx-radius-lg); box-shadow: var(--fx-shadow); }

/* ---------- Luxury: dark and gold, left-aligned, with fine gold rules and a framed banner ---------- */
.fx-luxury h1, .fx-luxury h2 { font-weight: 600; }
.fx-luxury .fx-hero { min-height: 94vh; }
.fx-luxury .fx-hero::before { content: ''; position: absolute; inset: clamp(14px, 2vw, 26px); border: 1px solid color-mix(in srgb, var(--fx-ink) 55%, transparent); z-index: 1; pointer-events: none; }
.fx-luxury .fx-hero::after { background: linear-gradient(90deg, rgba(0, 0, 0, calc(var(--fx-overlay) + .35)) 0%, rgba(0, 0, 0, calc(var(--fx-overlay) * .5)) 70%); }
.fx-luxury .fx-hero h1 { font-style: italic; font-weight: 500; }
.fx-luxury .fx-kicker { color: var(--fx-ink); }
.fx-luxury .fx-btn, .fx-luxury .fx-nav a { text-transform: uppercase; letter-spacing: .14em; font-size: .76rem; }
.fx-luxury .fx-search-tabs { background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .15); border-radius: 0; }
.fx-luxury .fx-search-tabs span { border-radius: 0; }
.fx-luxury .fx-search-fields { background: rgba(13, 13, 13, .82); border: 1px solid color-mix(in srgb, var(--fx-ink) 45%, transparent); }
.fx-luxury .fx-search-field { border-color: rgba(255, 255, 255, .12); }
.fx-luxury .fx-search-field select { color: #f4f1ea; }
.fx-luxury .fx-search-field select option { color: #111; }
.fx-luxury .fx-section-head h2::after { content: ''; display: block; width: 56px; height: 1px; margin-top: 16px; background: var(--fx-ink); }
.fx-luxury .fx-card { border-color: var(--fx-line); border-top: 2px solid transparent; transition: border-color .3s, transform .25s, box-shadow .25s; }
.fx-luxury .fx-card:hover { border-top-color: var(--fx-ink); }
.fx-luxury .fx-card-price { color: var(--fx-ink); font-style: italic; }
.fx-luxury .fx-tag { background: rgba(13, 13, 13, .85); color: var(--fx-text); border: 1px solid color-mix(in srgb, var(--fx-ink) 60%, transparent); }
.fx-luxury .fx-band { background: linear-gradient(120deg, #18140c, #0d0d0d 65%); color: var(--fx-text); border-top: 1px solid var(--fx-line); border-bottom: 1px solid var(--fx-line); }
.fx-luxury .fx-band h2 { color: var(--fx-text); }
.fx-luxury .fx-band .fx-eyebrow { color: var(--fx-ink); opacity: 1; }
.fx-luxury .fx-field input, .fx-luxury .fx-field select, .fx-luxury .fx-field textarea { background: #101010; }
.fx-luxury .fx-footer { background: #080808; border-top: 1px solid var(--fx-line); }

/* ---------- Urban: bold colour blocks, thick black lines and hard shadows ---------- */
.fx-urban h1 { font-size: clamp(2.6rem, 6vw, 5rem); line-height: .98; }
.fx-urban .fx-header { border-bottom: 2px solid #0a0a0a; }
.fx-urban.fx-over-hero:not(.fx-scrolled) .fx-header { border-color: transparent; }
.fx-urban .fx-hero::after { background: linear-gradient(100deg, color-mix(in srgb, var(--fx-primary) 92%, transparent) 0%, color-mix(in srgb, var(--fx-primary) 88%, transparent) 46%, rgba(0, 0, 0, calc(var(--fx-overlay) * .4)) 46.1%); }
.fx-urban .fx-hero { align-items: center; }
.fx-urban .fx-hero-inner > *:not(.fx-search) { max-width: 46%; }
.fx-urban .fx-kicker { background: #0a0a0a; color: #fff; padding: 6px 10px; }
.fx-urban .fx-search-tabs { background: #0a0a0a; border-radius: 0; padding: 0; gap: 0; }
.fx-urban .fx-search-tabs span { border-radius: 0; }
.fx-urban .fx-search-fields { border: 2px solid #0a0a0a; box-shadow: 8px 8px 0 #0a0a0a; border-radius: 0; }
.fx-urban .fx-search-field { border-color: #0a0a0a; }
.fx-urban .fx-btn { border: 2px solid #0a0a0a; box-shadow: 4px 4px 0 #0a0a0a; text-transform: uppercase; letter-spacing: .04em; }
.fx-urban .fx-btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #0a0a0a; }
.fx-urban .fx-btn-ghost { background: #fff; }
.fx-urban .fx-hero .fx-btn, .fx-urban .fx-search-go { box-shadow: none; }
.fx-urban .fx-card { border: 2px solid #0a0a0a; box-shadow: 6px 6px 0 #0a0a0a; }
.fx-urban .fx-card:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 #0a0a0a; }
.fx-urban .fx-card-specs { border-top: 2px solid #0a0a0a; }
.fx-urban .fx-tag { background: #0a0a0a; color: #fff; border-radius: 0; }
.fx-urban .fx-eyebrow { background: var(--fx-primary); color: var(--fx-on-primary); padding: 5px 10px; }
.fx-urban .fx-panel, .fx-urban .fx-filters, .fx-urban .fx-agent, .fx-urban .fx-service, .fx-urban .fx-quote { border: 2px solid #0a0a0a; box-shadow: 6px 6px 0 #0a0a0a; }
.fx-urban .fx-stat { border: 2px solid #0a0a0a; margin: -1px; }
.fx-urban .fx-stat strong { color: var(--fx-text); }
.fx-urban .fx-band { background: #0a0a0a; color: #fff; }
.fx-urban .fx-band h2 { color: #fff; }
.fx-urban .fx-page-head { background: var(--fx-primary); border-bottom: 2px solid #0a0a0a; }
.fx-urban .fx-page-head h1, .fx-urban .fx-page-head p { color: var(--fx-on-primary); }
.fx-urban .fx-page-head .fx-eyebrow { background: #0a0a0a; color: #fff; }
.fx-urban .fx-field input, .fx-urban .fx-field select, .fx-urban .fx-field textarea, .fx-urban .fx-filter select { border: 2px solid #0a0a0a; }
.fx-urban .fx-link { border-bottom: 3px solid var(--fx-primary); }

/* ---------- Heritage: warm cream, serif type, framed photos and double rules ---------- */
.fx-heritage .fx-hero { margin: 14px clamp(10px, 1.6vw, 22px) 0; min-height: min(86vh, 800px); box-shadow: inset 0 0 0 10px var(--fx-bg), inset 0 0 0 11px color-mix(in srgb, #fff 60%, transparent); }
.fx-heritage.fx-over-hero .fx-header { margin-bottom: calc(-1 * var(--fx-header-h) - 15px); }
.fx-heritage .fx-hero::after { background: linear-gradient(180deg, rgba(30, 22, 10, calc(var(--fx-overlay) * .4)) 0%, rgba(30, 22, 10, calc(var(--fx-overlay) + .2)) 100%); }
.fx-heritage .fx-hero-inner { text-align: center; display: flex; flex-direction: column; align-items: center; }
.fx-heritage .fx-hero h1 { max-width: 18ch; }
.fx-heritage .fx-hero-sub { margin-left: auto; margin-right: auto; }
.fx-heritage .fx-section-head { flex-direction: column; align-items: center; text-align: center; }
.fx-heritage .fx-section-head h2 { padding-bottom: 14px; border-bottom: 3px double var(--fx-line); }
.fx-heritage .fx-eyebrow { color: var(--fx-ink); font-family: var(--fx-head); font-style: italic; text-transform: none; letter-spacing: 0; font-size: 1.02rem; font-weight: 500; }
.fx-heritage .fx-card { background: var(--fx-surface); padding: 8px; box-shadow: var(--fx-shadow); }
.fx-heritage .fx-card-img { border-radius: 2px; }
.fx-heritage .fx-card-body { padding: 16px 10px 10px; }
.fx-heritage .fx-tag { background: var(--fx-surface); color: var(--fx-text); border-radius: 2px; font-family: var(--fx-head); text-transform: none; letter-spacing: 0; font-size: .82rem; font-weight: 600; }
.fx-heritage .fx-band { background: var(--fx-primary); background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px); }
.fx-heritage .fx-page-head { border-bottom: 3px double var(--fx-line); text-align: center; }
.fx-heritage .fx-stat strong { color: var(--fx-ink); }
.fx-heritage .fx-footer { background: #2b2419; color: #d9cdb6; }

/* ---------- Phones: every template stays simple and readable ---------- */
@media (max-width: 960px) {
    .fx-classic .fx-hero { min-height: 0; background: #0b0b0c; color: #fff; }
    .fx-classic .fx-hero::after { display: block; background: linear-gradient(180deg, rgba(0, 0, 0, .5) 0%, rgba(0, 0, 0, .62) 100%); }
    .fx-classic .fx-hero-media { left: 0; border-radius: 0; }
    .fx-classic .fx-hero h1 { color: #fff; }
    .fx-classic .fx-hero-sub { color: rgba(255, 255, 255, .9); }
    .fx-classic .fx-kicker { color: rgba(255, 255, 255, .85); }
    .fx-classic .fx-hero-inner { padding: 60px var(--fx-pad) 40px; }
    .fx-urban .fx-hero::after { background: linear-gradient(180deg, color-mix(in srgb, var(--fx-primary) 85%, transparent) 0%, color-mix(in srgb, var(--fx-primary) 75%, transparent) 100%); }
    .fx-urban .fx-hero-inner > *:not(.fx-search) { max-width: none; }
    .fx-coastal .fx-search-fields { border-radius: var(--fx-radius); padding: 6px; }
    .fx-heritage .fx-hero { margin: 8px 8px 0; }
    .fx-heritage.fx-over-hero .fx-header { margin-bottom: calc(-1 * var(--fx-header-h) - 9px); }
}

/* ---------- Dropdowns in the site's own style (site.js; computers only, phones keep their own picker) ---------- */
.fx-select { position: relative; width: 100%; }
.fx .fx-select-native { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.fx .fx-select-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; padding: 10px 14px; margin: 0;
    background: var(--fx-bg); color: var(--fx-text); border: 1.5px solid var(--fx-line); border-radius: calc(var(--fx-radius) - 4px);
    font: 600 .95rem/1.2 var(--fx-body); text-align: left; cursor: pointer; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.fx .fx-select-btn:hover { background: var(--fx-bg); border-color: color-mix(in srgb, var(--fx-text) 35%, var(--fx-line)); box-shadow: none; }
.fx .fx-select-btn:focus-visible, .fx-select.is-open .fx-select-btn { outline: none; border-color: var(--fx-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fx-primary) 20%, transparent); }
.fx-select-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.fx-select-btn::after { content: ''; flex-shrink: 0; width: 8px; height: 8px; margin: -4px 2px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .55; transition: transform .2s, margin .2s; }
.fx-select.is-open .fx-select-btn::after { transform: rotate(-135deg); margin-top: 4px; }
.fx-select-list { position: absolute; z-index: 80; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: min(360px, 90vw); max-height: 320px; overflow-y: auto;
    margin: 0; padding: 6px; list-style: none; background: var(--fx-surface); color: var(--fx-text); border: 1px solid var(--fx-line); border-radius: var(--fx-radius);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .18), 0 2px 6px rgba(15, 23, 42, .06); animation: fx-drop .14s ease-out; scrollbar-width: thin; }
.fx-select.opens-up .fx-select-list { top: auto; bottom: calc(100% + 6px); }
@keyframes fx-drop { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.fx-select-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 9px 12px; border-radius: calc(var(--fx-radius) - 6px); cursor: pointer; font-size: .93rem; font-weight: 500; white-space: nowrap; }
.fx-select-list li.is-active { background: var(--fx-tint); }
.fx-select-list li[aria-selected="true"] { font-weight: 700; color: var(--fx-ink); }
.fx-select-list li[aria-selected="true"]::after { content: ''; width: 10px; height: 5px; margin-left: auto; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.fx-select-list li[aria-selected="true"] .fx-select-count { margin-left: 0; }
.fx-select-count { margin-left: auto; min-width: 26px; padding: 2px 8px; border-radius: 999px; background: var(--fx-tint); color: var(--fx-muted); font-size: .76rem; font-weight: 700; font-style: normal; text-align: center; }
.fx-select-list li.is-active .fx-select-count { background: var(--fx-surface); }
/* Inside the banner search: no box, like the field it sits in. */
.fx .fx-select-bare .fx-select-btn { min-height: 0; padding: 4px 0; border: 0; background: transparent; font-size: 1rem; }
.fx .fx-select-bare .fx-select-btn:hover, .fx .fx-select-bare .fx-select-btn:focus-visible, .fx .fx-select-bare.is-open .fx-select-btn { background: transparent; box-shadow: none; }
.fx-select-bare .fx-select-list { left: -16px; top: calc(100% + 14px); }
.fx-prestige .fx-select-bare .fx-select-btn, .fx-luxury .fx-select-bare .fx-select-btn { color: #f3efe6; }
/* Each template's character */
.fx-prestige .fx-select-list, .fx-luxury .fx-select-list { background: #121214; border-color: #2e2a25; box-shadow: 0 24px 60px rgba(0, 0, 0, .6); }
.fx-prestige .fx-select-list li.is-active, .fx-luxury .fx-select-list li.is-active { background: #1d1b18; }
.fx-urban .fx-select-btn { border: 2px solid #0a0a0a; border-radius: 0; }
.fx-urban .fx-select-list { border: 2px solid #0a0a0a; border-radius: 0; box-shadow: 6px 6px 0 #0a0a0a; animation: none; }
.fx-urban .fx-select-list li { border-radius: 0; }
.fx-urban .fx-select-list li.is-active { background: var(--fx-primary); color: var(--fx-on-primary); }
.fx-urban .fx-select-list li.is-active .fx-select-count { background: #0a0a0a; color: #fff; }
.fx-coastal .fx-select-list { border: 0; }
.fx-heritage .fx-select-list li[aria-selected="true"] { font-family: var(--fx-head); }
.fx-filter:has(select[name="area"]) { flex-grow: 1.7; max-width: 300px; }

/* Phone polish (24 Oct 2026). */
.fx-card-specs:not(:has(span)) { display: none; }
@media (max-width: 700px) {
    .fx-profile-photo { max-width: none; width: 100%; }
    .fx-profile-photo:has(.avatar-fallback) { aspect-ratio: auto; padding: 28px 0; display: grid; place-items: center; }
    .fx-profile-photo .avatar-fallback { width: 110px; height: 110px; font-size: 2rem; }
    .fx-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .fx-actions > .fx-btn { justify-content: center; }
    .fx-actions > :last-child:nth-child(odd) { grid-column: 1 / -1; }
    .fx .fx-mosaic-all { font-size: 0.8rem; padding: 7px 11px; bottom: 10px; right: calc(var(--fx-pad) + 10px); }
}

/* Listing photos: three or four photos fill the grid without gaps */
.fx-mosaic-3 { grid-template-columns: 2fr 1fr; }
.fx-mosaic-3 .fx-mosaic-item:nth-child(2) { border-radius: 0 var(--fx-radius-lg) 0 0; }
.fx-mosaic-3 .fx-mosaic-item:nth-child(3) { border-radius: 0 0 var(--fx-radius-lg) 0; }
.fx-mosaic-4 .fx-mosaic-item:nth-child(4) { grid-column: span 2; border-radius: 0 0 var(--fx-radius-lg) 0; }
@media (max-width: 960px) {
    .fx-mosaic-3, .fx-mosaic-4 { grid-template-columns: 1fr 1fr; }
    .fx-mosaic-3 .fx-mosaic-item:nth-child(2) { border-radius: 0 0 0 var(--fx-radius-lg); }
    .fx-mosaic-4 .fx-mosaic-item:nth-child(4) { grid-column: auto; }
}

/* A page that ends with the selling band runs straight into the footer (no white strip between them). */
.fx-main:has(> .fx-band:last-child) + .fx-footer { margin-top: 0; }
