/*
 * Look of the public website. Colours and font come from Admin → Website → Logo and colours
 * (served as theme.css); the values below are only the fallback.
 */
:root {
  --primary: #0f766e; --primary-hover: #0d655f; --primary-dark: #08413c; --primary-deep: #052623;
  --primary-soft: #ecf5f4; --primary-soft-2: #d4e8e6; --primary-ink: #0b5953; --on-primary: #fff;
  --accent2: #f59e0b; --accent2-hover: #d88b0a; --accent2-soft: #fef3e0; --accent2-ink: #7a4f05; --on-accent2: #1a1a1a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --bg: #fff; --bg-alt: #f6f7f5; --text: #17201e; --text-2: #56605d; --text-3: #8a938f;
  --border: #e5e8e4; --border-strong: #cfd4cf; --good: #1e8c4d; --good-soft: #e6f5ec; --err: #c0362c; --err-soft: #fdecea;
  --warn: #9a6b00; --warn-soft: #fdf3d7; --radius: 14px; --shadow: 0 1px 2px rgba(16, 24, 22, .05), 0 8px 24px rgba(16, 24, 22, .07);
  --shadow-lg: 0 20px 50px rgba(8, 20, 18, .18);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font: 400 16px/1.6 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
img, svg, iframe { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 4px; }
.i { width: 18px; height: 18px; flex: none; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 200; padding: 10px 14px; background: #fff; border-radius: 8px; box-shadow: var(--shadow); }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 800px; }
.center { text-align: center; justify-content: center; }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.lead { font-size: 18px; color: var(--text-2); }
.pad-lg { padding-top: 48px; padding-bottom: 72px; }
.pad-xl { padding-top: 96px; padding-bottom: 96px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: 10px; background: none; font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none; transition: background .15s, border-color .15s, color .15s, transform .1s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); color: var(--on-primary); }
.btn-accent { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent2); }
.btn-accent:hover { background: var(--accent2-hover); border-color: var(--accent2-hover); color: var(--on-accent2); }
.btn-ghost { border-color: var(--border-strong); background: #fff; color: var(--text); }
.btn-ghost:hover { background: var(--bg-alt); color: var(--text); }
.btn-danger { color: var(--err); border-color: #f1c4bf; }
.btn-danger:hover { background: var(--err-soft); color: var(--err); }
.btn-sm { height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .6; cursor: wait; }
.btn-app { height: 42px; flex: 1; border-color: var(--border-strong); background: #fff; color: var(--text); font-size: 14px; }
.app-viber .i { color: #7360f2; } .app-wa .i { color: #25a35a; } .app-msgr .i { color: #0a7cff; }
.btn-app:hover { background: var(--bg-alt); color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.link-btn, .more-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; background: none; border: 0; padding: 0; color: var(--primary); }
.more-link .i, .link-btn .i { width: 16px; height: 16px; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 80; background: rgba(255, 255, 255, .94); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -.02em; flex: none; }
.logo:hover { color: var(--text); }
.logo-img { height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: var(--on-primary); }
.logo-mark .i { width: 20px; height: 20px; stroke-width: 2.2; }
.logo-light, .logo-light:hover { color: #fff; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav > a { padding: 8px 12px; border-radius: 8px; color: var(--text-2); font-weight: 500; font-size: 15px; }
.nav > a:hover { background: var(--bg-alt); color: var(--text); }
.nav > a[aria-current="page"] { color: var(--primary); font-weight: 600; }
.nav-mobile { display: none; }
.hdr-right { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.hdr-login { padding: 8px 12px; font-weight: 600; font-size: 15px; color: var(--text); }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; color: var(--text-2); }
.icon-link:hover { background: var(--bg-alt); color: var(--primary); }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; place-items: center; }
.avatar { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-weight: 700; font-size: 14px; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 90; min-width: 230px; padding: 6px; background: #fff; border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg); }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font-size: 14px; font-weight: 500; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--bg-alt); }
.menu .i { width: 16px; height: 16px; color: var(--text-3); }
.menu form { margin: 4px 0 0; padding-top: 4px; border-top: 1px solid var(--border); }
.menu-head { display: grid; padding: 8px 10px 10px; margin-bottom: 4px; border-bottom: 1px solid var(--border); font-size: 14px; }
.menu-head span { color: var(--text-3); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- messages ---------- */
.flashes { padding-top: 16px; }
.flash { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; margin: 0 0 12px; border: 1px solid; border-radius: 10px; font-size: 14px; font-weight: 500; }
.flash .i { margin-top: 2px; }
.flash-ok { background: var(--good-soft); border-color: #bfe3cd; color: #17683a; }
.flash-err { background: var(--err-soft); border-color: #f3c7c2; color: #9b2a21; }
.flash-info { background: var(--primary-soft); border-color: var(--primary-soft-2); color: var(--primary-ink); }
.flash-warn { background: var(--warn-soft); border-color: #f0dca0; color: #7a5500; }
.flash a { color: inherit; text-decoration: underline; }

/* ---------- forms ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; min-width: 0; align-content: start; }
.field-label { font-size: 14px; font-weight: 600; color: var(--text); }
.field-label i { color: var(--err); font-style: normal; }
.field-label em { margin-left: 4px; color: var(--text-3); font-style: normal; font-weight: 400; font-size: 12px; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), .field select, .field textarea,
.filters select, .fl input, .calc input, .hs-f input, .hs-f select, .sort select {
  width: 100%; min-height: 46px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; font-size: 16px; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 110px; line-height: 1.55; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .filters select:focus, .fl input:focus, .calc input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft-2); }
.field input[type="color"] { width: 100%; height: 46px; padding: 4px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; cursor: pointer; }
.field input[type="file"] { width: 100%; padding: 9px; border: 1px dashed var(--border-strong); border-radius: 10px; background: var(--bg-alt); font-size: 14px; }
.field-hint { margin: 0; font-size: 13px; color: var(--text-2); }
.field-err { display: flex; gap: 6px; align-items: flex-start; margin: 0; font-size: 13px; font-weight: 500; color: var(--err); }
.field-err .i { width: 15px; height: 15px; margin-top: 2px; }
.has-err input, .has-err select, .has-err textarea { border-color: var(--err) !important; }
.affix { display: flex; align-items: stretch; }
.affix input { border-radius: 0 !important; }
.affix > :first-child { border-top-left-radius: 10px !important; border-bottom-left-radius: 10px !important; }
.affix > :last-child { border-top-right-radius: 10px !important; border-bottom-right-radius: 10px !important; }
.affix-pre, .affix-suf { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--bg-alt); color: var(--text-2); font-size: 14px; font-weight: 600; white-space: nowrap; }
.affix-pre { border-right: 0; } .affix-suf { border-left: 0; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid-1-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
.check span { display: grid; gap: 2px; }
.check b { font-weight: 500; }
.check small { color: var(--text-2); font-size: 13px; }
.check.has-err { color: var(--err); }
.form-link { margin: -6px 0 0; font-size: 14px; text-align: right; }
.form-h { margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 18px; }
.more summary { cursor: pointer; font-size: 14px; color: var(--text-2); }
.more[open] summary { margin-bottom: 12px; }

/* ---------- small labels ---------- */
.tag { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 6px; font-size: 12px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.tag .i { width: 12px; height: 12px; fill: currentColor; }
.tag-sale { background: var(--primary); color: var(--on-primary); }
.tag-rent { background: #fff; color: var(--primary-ink); box-shadow: inset 0 0 0 1.5px var(--primary); }
.tag-featured { background: var(--accent2); color: var(--on-accent2); }
.tag-done { background: #2a2f2d; color: #fff; }
.tag-plain { background: var(--bg-alt); color: var(--text-2); border: 1px solid var(--border); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-ink); font-size: 13px; font-weight: 600; }
.chip .i { width: 14px; height: 14px; }
.verified { display: inline-grid; vertical-align: -3px; margin-left: 4px; color: #1d7fe0; }
.verified .i { width: 18px; height: 18px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border: 1px solid #d9d8d2; border-radius: 999px; background: #f2f1ee; color: #3d3d3a; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill i { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.pill .i { width: 11px; height: 11px; }
.st-active { background: #e6f5ec; color: #17683a; border-color: #b7e3c8; }
.st-pending { background: #fbf1d6; color: #8a6800; border-color: #efd89a; }
.st-rejected { background: #fdecea; color: #b42318; border-color: #f6c6c1; }
.st-sold, .st-rented { background: #eaf0fb; color: #1e4fae; border-color: #c4d5f5; }
.st-new, .st-featured { background: var(--accent2-soft); color: var(--accent2-ink); border-color: transparent; }
.av { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 999px; background: var(--primary-soft-2); color: var(--primary-ink); font-size: 13px; font-weight: 700; overflow: hidden; }
.av img { width: 100%; height: 100%; object-fit: cover; }
.av-lg { width: 52px; height: 52px; font-size: 17px; }
.av-xl { width: 72px; height: 72px; font-size: 24px; }
.av-xxl { width: 104px; height: 104px; font-size: 34px; }
.empty { display: grid; justify-items: center; gap: 6px; padding: 56px 20px; text-align: center; color: var(--text-2); font-size: 15px; }
.empty b { color: var(--text); font-size: 17px; }
.empty .btn { margin-top: 12px; }
.empty-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px; border-radius: 14px; background: var(--primary-soft); color: var(--primary); }
.empty-ic .i { width: 24px; height: 24px; }
.empty-ic.big { width: 72px; height: 72px; margin: 0 auto 20px; }
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 36px; }
.pager a, .pager span { display: inline-flex; align-items: center; gap: 4px; min-width: 40px; height: 40px; padding: 0 12px; justify-content: center; border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-size: 14px; font-weight: 600; }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .is-on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.pager .is-off { opacity: .4; }
.pager .pager-gap { border: 0; min-width: 20px; padding: 0; }
.pager .i { width: 16px; height: 16px; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: #fff; background: var(--primary-deep); }
.hero-img, .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero-img { object-fit: cover; }
.hero.has-img::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4, 16, 14, .58), rgba(4, 16, 14, .72)); }
.hero-art { background:
  radial-gradient(900px 500px at 85% -10%, color-mix(in srgb, var(--accent2) 34%, transparent), transparent 62%),
  radial-gradient(800px 520px at 8% 110%, color-mix(in srgb, var(--primary) 85%, #fff 0%), transparent 65%),
  linear-gradient(135deg, var(--primary-dark), var(--primary-deep)); }
.hero-art::after { content: ""; position: absolute; inset: 0; opacity: .5; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 56px 56px; mask-image: linear-gradient(180deg, #000, transparent 85%); }
.hero-in { padding-top: 84px; padding-bottom: 92px; }
.hero h1 { max-width: 780px; font-size: clamp(34px, 5.2vw, 58px); font-weight: 800; letter-spacing: -.03em; line-height: 1.06; }
.hero-sub { max-width: 620px; margin: 18px 0 34px; font-size: clamp(16px, 1.6vw, 19px); color: rgba(255, 255, 255, .86); }
.hs { max-width: 980px; }
.hs-tabs { display: inline-flex; gap: 2px; padding: 4px 4px 0; border-radius: 12px 12px 0 0; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.hs-tabs label { cursor: pointer; }
.hs-tabs input { position: absolute; opacity: 0; pointer-events: none; }
.hs-tabs span { display: block; padding: 10px 26px; border-radius: 9px 9px 0 0; color: #fff; font-weight: 600; font-size: 15px; }
.hs-tabs input:checked + span { background: #fff; color: var(--text); }
.hs-tabs input:focus-visible + span { outline: 2px solid #fff; }
.hs-row { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 0; align-items: center; padding: 10px; border-radius: 0 16px 16px 16px; background: #fff; box-shadow: var(--shadow-lg); }
.hs-f { display: grid; gap: 0; padding: 4px 14px; border-right: 1px solid var(--border); color: var(--text); min-width: 0; }
.hs-f:nth-last-child(2) { border-right: 0; }
.hs-f span { font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text-3); }
.hs-f input, .hs-f select { min-height: 34px; padding: 0; border: 0; border-radius: 0; background: transparent; font-size: 16px; font-weight: 500; text-overflow: ellipsis; }
.hs-f input:focus, .hs-f select:focus { outline: 0; }
.hs-f:focus-within span { color: var(--primary); }
.hs-row .btn { margin-left: 8px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px 32px; margin-top: 28px; font-size: 15px; color: rgba(255, 255, 255, .82); }
.hero-stats b { color: #fff; font-size: 20px; font-weight: 800; margin-right: 4px; }

/* ---------- sections ---------- */
.sec { padding: 64px 0; }
.sec-tight { padding: 48px 0 16px; }
.sec-alt { background: var(--bg-alt); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.sec-head h2 { font-size: clamp(24px, 2.6vw, 32px); }
.sec-head p { margin: 6px 0 0; color: var(--text-2); }
.sec-head.center { justify-content: center; text-align: center; }
.page-head { padding: 44px 0; background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.page-head h1 { font-size: clamp(28px, 3.4vw, 40px); }
.page-head p { margin: 8px 0 0; max-width: 640px; color: var(--text-2); font-size: 17px; }

/* ---------- property cards ---------- */
.cards { display: grid; gap: 24px; }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; overflow: hidden; transition: box-shadow .2s, transform .2s, border-color .2s; }
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--border-strong); }
.card-media { position: relative; display: block; aspect-ratio: 3 / 2; background: var(--bg-alt); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-noimg { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-2)); color: var(--primary); }
.card-noimg .i { width: 44px; height: 44px; stroke-width: 1.4; }
.card-tags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.card-count { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; font-weight: 600; }
.card-count .i { width: 13px; height: 13px; }
.fav { position: absolute; right: 10px; top: 10px; z-index: 2; display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--text-2); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); transition: transform .15s; }
.fav:hover { transform: scale(1.08); color: #e0245e; }
.fav.is-on, .fav-btn.is-on { color: #e0245e; }
.fav.is-on .i, .fav-btn.is-on .i { fill: currentColor; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 16px; flex: 1; }
.card-price { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.card-price small, .l-price small { margin-left: 2px; font-size: 13px; font-weight: 500; color: var(--text-2); letter-spacing: 0; }
.card-title { font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-title a { color: var(--text); }
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-title a:hover { color: var(--primary); }
.card-loc { display: flex; gap: 5px; margin: 0; color: var(--text-2); font-size: 14px; }
.card-loc .i { width: 15px; height: 15px; margin-top: 3px; color: var(--text-3); }
.card-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: 13px; color: var(--text-2); }
.card-facts li { display: inline-flex; align-items: center; gap: 5px; }
.card-facts .i { width: 16px; height: 16px; color: var(--text-3); }
.card-facts b { color: var(--text); font-weight: 600; }

/* ---------- home page blocks ---------- */
.type-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.type-tile { display: grid; justify-items: start; gap: 4px; padding: 20px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s, transform .15s; }
.type-tile:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.type-tile b { font-size: 15px; font-weight: 600; }
.type-tile small { color: var(--text-2); font-size: 13px; }
.type-ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 8px; flex: none; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.type-ic .i { width: 22px; height: 22px; }
.city-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.city { position: relative; display: flex; align-items: flex-end; min-height: 170px; border-radius: var(--radius); overflow: hidden; color: #fff; isolation: isolate; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.city-1 { background: linear-gradient(135deg, #1d4ed8, #0b2a6f); } .city-2 { background: linear-gradient(135deg, #b45309, #6b2f04); }
.city-3 { background: linear-gradient(135deg, #7c3aed, #3c1a80); } .city-4 { background: linear-gradient(135deg, #0e7490, #083b4a); }
.city-5 { background: linear-gradient(135deg, #be185d, #5f0b2e); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s; }
.city::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, .62)); }
.city:hover img { transform: scale(1.05); }
.city:hover { color: #fff; }
.city-in { display: grid; padding: 18px; }
.city-in b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.city-in small { font-size: 13px; opacity: .88; }
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.why-item { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.why-ic { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 18px; border-radius: 14px; background: var(--primary); color: var(--on-primary); }
.why-ic .i { width: 24px; height: 24px; }
.why-item h3 { font-size: 19px; margin-bottom: 8px; }
.why-item p { margin: 0; color: var(--text-2); }
.cta { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 44px 48px; border-radius: 20px; color: #fff; background: radial-gradient(600px 300px at 90% 0%, color-mix(in srgb, var(--accent2) 30%, transparent), transparent 70%), linear-gradient(135deg, var(--primary), var(--primary-dark)); }
.cta h2 { font-size: clamp(24px, 2.6vw, 32px); }
.cta p { margin: 8px 0 0; max-width: 560px; color: rgba(255, 255, 255, .86); }

/* ---------- footer ---------- */
.ftr { margin-top: 32px; padding-top: 56px; background: #111715; color: rgba(255, 255, 255, .72); font-size: 14px; }
.ftr-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.ftr h3 { margin-bottom: 14px; color: #fff; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.ftr a, .ftr-contact span { display: flex; gap: 8px; padding: 5px 0; color: rgba(255, 255, 255, .72); }
.ftr a:hover { color: #fff; }
.ftr-contact .i { width: 16px; height: 16px; margin-top: 3px; color: rgba(255, 255, 255, .5); }
.ftr-about p { margin: 14px 0 16px; max-width: 300px; }
.ftr .logo { padding: 0; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; }
.social a:hover { background: var(--primary); }
.ftr-bottom { padding-top: 20px; padding-bottom: 24px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* ---------- search page ---------- */
.filters-bar { position: sticky; top: 68px; z-index: 40; padding: 14px 0; background: #fff; border-bottom: 1px solid var(--border); }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.filters select { width: auto; min-width: 150px; max-width: 200px; min-height: 44px; font-size: 15px; }
.fl { position: relative; display: block; flex: 1 1 220px; min-width: 180px; }
.fl > .i { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--text-3); pointer-events: none; }
.fl input { min-height: 44px; padding-left: 42px; font-size: 15px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--bg-alt); border: 1px solid var(--border); }
.seg label { cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 7px 16px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.seg input:checked + span { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }
.seg input:focus-visible + span { outline: 2px solid var(--primary); }
.fl-more { position: relative; }
.fl-more summary { list-style: none; cursor: pointer; }
.fl-more summary::-webkit-details-marker { display: none; }
.fl-more-in { position: absolute; right: 0; top: calc(100% + 8px); z-index: 50; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 12px; width: min(380px, 90vw); padding: 16px; border: 1px solid var(--border); border-radius: 14px; background: #fff; box-shadow: var(--shadow-lg); }
.fl-more-in label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.fl-more-in select { width: 100%; max-width: none; min-width: 0; }
.dot-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font-size: 12px; }
.results { padding-top: 32px; padding-bottom: 72px; }
.results-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.results-head h1 { font-size: clamp(22px, 2.6vw, 30px); }
.results-head p { margin: 6px 0 0; }
.sort { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-2); white-space: nowrap; }
.sort select { width: auto; min-height: 40px; font-size: 14px; }
.inline-search { display: flex; gap: 10px; max-width: 520px; margin-top: 20px; }

/* ---------- property page ---------- */
.listing { padding-top: 20px; padding-bottom: 48px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 16px; font-size: 14px; color: var(--text-2); }
.crumbs a { color: var(--text-2); }
.crumbs a:hover { color: var(--primary); }
.crumbs .i { width: 13px; height: 13px; color: var(--text-3); }
.gallery { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(520px, 56vw); border-radius: 18px; overflow: hidden; background: var(--bg-alt); }
.g-item { position: relative; display: block; overflow: hidden; background: var(--bg-alt); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.03); }
.g-main { grid-row: span 2; }
.g-hidden { display: none; }
.gallery-few { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.gallery-few .g-item:not(.g-main) { display: none; }
.g-more { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 700; font-size: 18px; }
.g-all { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 0; border-radius: 10px; background: #fff; color: var(--text); font-size: 14px; font-weight: 600; box-shadow: 0 4px 14px rgba(0, 0, 0, .25); }
.g-none { grid-column: 1 / -1; grid-row: 1 / -1; display: grid; place-content: center; justify-items: center; gap: 8px; color: var(--text-3); background: linear-gradient(135deg, var(--primary-soft), var(--primary-soft-2)); }
.g-none .i { width: 56px; height: 56px; stroke-width: 1.3; color: var(--primary); }
.gallery-none { height: 260px; }
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; margin-top: 28px; }
.l-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.l-head h1 { font-size: clamp(24px, 3vw, 34px); }
.l-loc { display: flex; gap: 6px; margin: 10px 0 0; color: var(--text-2); }
.l-loc .i { margin-top: 3px; color: var(--primary); }
.l-price-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.l-price { display: flex; align-items: center; gap: 10px; font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.03em; color: var(--primary); }
.l-acts { display: flex; gap: 8px; }
.l-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; margin: 24px 0 0; padding: 18px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-alt); }
.l-facts li { display: flex; align-items: center; gap: 12px; }
.l-facts .i { width: 26px; height: 26px; color: var(--primary); stroke-width: 1.6; }
.l-facts span { display: grid; line-height: 1.25; }
.l-facts b { font-size: 17px; font-weight: 700; }
.l-facts small { font-size: 13px; color: var(--text-2); }
.l-sec { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--border); }
.l-sec h2 { font-size: 22px; margin-bottom: 14px; }
.l-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.l-details div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.l-details dt { color: var(--text-2); }
.l-details dd { margin: 0; font-weight: 600; text-align: right; }
.l-pay { display: grid; gap: 10px; margin: 20px 0 0; font-size: 15px; }
.l-pay-list { display: flex; flex-wrap: wrap; gap: 8px; }
.l-amen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 20px; font-size: 15px; }
.l-amen li { display: flex; align-items: center; gap: 8px; }
.l-amen .i { width: 16px; height: 16px; color: var(--good); stroke-width: 2.4; }
.frame { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--bg-alt); }
.frame iframe { width: 100%; height: 100%; border: 0; }
.frame-map { height: 340px; margin-bottom: 8px; }
.frame-video { aspect-ratio: 16 / 9; }
.calc { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 20px; }
.calc-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.calc-in label { display: grid; gap: 5px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.calc-out { display: grid; align-content: center; gap: 4px; padding: 22px; border-radius: var(--radius); background: var(--primary-soft); color: var(--primary-ink); font-size: 14px; }
.calc-out > b { margin-bottom: 8px; font-size: 30px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); }
.calc-out small { font-size: 13px; font-weight: 600; }
.l-safety { display: flex; gap: 14px; margin-top: 36px; padding: 18px; border-radius: var(--radius); background: var(--warn-soft); color: #6b4a00; font-size: 14px; }
.l-safety .i { width: 24px; height: 24px; margin-top: 2px; }
.l-safety div { display: grid; gap: 2px; }
.listing-side { position: sticky; top: 88px; }
.contact-card { display: grid; gap: 18px; padding: 22px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.seller { display: flex; align-items: center; gap: 14px; color: var(--text); }
.seller > span:last-child { display: grid; line-height: 1.35; }
.seller small { font-size: 13px; color: var(--text-2); }
.seller:hover b { color: var(--primary); }
.contact-btns { display: grid; gap: 8px; }
.contact-apps { display: flex; flex-wrap: wrap; gap: 8px; }
.contact-apps .btn-app { flex: 1 1 auto; min-width: 0; padding: 0 12px; }
.contact-card, .contact-btns { grid-template-columns: minmax(0, 1fr); }
.contact-card > * { min-width: 0; }
.inquiry { gap: 12px; padding-top: 18px; border-top: 1px solid var(--border); }
.inquiry h3 { font-size: 17px; }
.inquiry .field input, .inquiry .field textarea { min-height: 44px; font-size: 15px; }
.inquiry p { margin: 0; }
.l-meta { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 14px; }
.l-meta .i { width: 15px; height: 15px; }
.sticky-cta { display: none; }
.lightbox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(8, 10, 10, .96); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: #000; }
.lightbox img { max-width: 94vw; max-height: 86vh; object-fit: contain; border-radius: 6px; }
.lb-close, .lb-nav { position: fixed; display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .28); }
.lb-close { right: 18px; top: 18px; }
.lb-prev { left: 18px; top: 50%; margin-top: -24px; }
.lb-next { right: 18px; top: 50%; margin-top: -24px; }
.lb-count { position: fixed; left: 0; right: 0; bottom: 18px; text-align: center; color: rgba(255, 255, 255, .8); font-size: 14px; }

/* ---------- text pages, contact, agents, log in ---------- */
.prose { font-size: 17px; line-height: 1.75; color: #2a3331; }
.prose h2 { margin: 1.8em 0 .5em; font-size: 24px; color: var(--text); }
.prose h3 { margin: 1.5em 0 .4em; font-size: 19px; color: var(--text); }
.prose ul { margin: 0 0 1em; padding-left: 22px; list-style: disc; }
.prose li { margin: .3em 0; }
.prose > :first-child { margin-top: 0; }
.prose a { text-decoration: underline; text-underline-offset: 3px; }
.l-sec .prose { font-size: 16px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 48px; align-items: start; }
.contact-info h2, .panel-card h2 { font-size: 22px; margin-bottom: 4px; }
.info-list { display: grid; gap: 18px; margin: 20px 0 24px; }
.info-list li { display: flex; align-items: center; gap: 14px; }
.info-list .type-ic { margin: 0; }
.info-list span:last-child { display: grid; font-weight: 600; line-height: 1.4; }
.info-list small { font-size: 13px; font-weight: 500; color: var(--text-2); }
.info-list a { color: var(--text); }
.panel-card, .auth-card { padding: 32px; border: 1px solid var(--border); border-radius: 18px; background: #fff; box-shadow: var(--shadow); }
.auth-page main { background: var(--bg-alt); min-height: 70vh; }
.auth-card { max-width: 460px; margin: 0 auto; }
.auth-card.wide { max-width: 640px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-card > .muted { margin-bottom: 22px; }
.auth-card > .logo { display: flex; margin-bottom: 8px; font-size: 24px; }
.auth-alt { margin: 22px 0 0; text-align: center; font-size: 15px; color: var(--text-2); }
.checks { display: grid; gap: 6px; margin: 0 0 22px; padding: 14px 16px; border-radius: 12px; background: var(--bg-alt); font-size: 14px; }
.checks li { display: flex; align-items: center; gap: 8px; }
.checks .ok .i { color: var(--good); } .checks .bad { color: var(--err); font-weight: 600; }
.agent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 18px; }
.agent-card { display: grid; justify-items: center; gap: 6px; padding: 26px 18px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; color: var(--text); text-align: center; transition: box-shadow .2s, transform .2s; }
.agent-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text); }
.agent-card small { color: var(--text-2); font-size: 13px; }
.agent-card .chip { margin-top: 6px; }
.agent-top { display: flex; align-items: center; gap: 24px; }
.agent-top .btn-row { margin-top: 14px; }
.agent-top p { margin: 6px 0 0; }
.agent-bio { margin-top: 24px; max-width: 760px; font-size: 16px; }

/* ---------- tablets and phones ---------- */
@media (max-width: 1100px) {
  .cards-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .type-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .listing-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
}
@media (max-width: 900px) {
  .burger { display: grid; }
  .hdr-in { gap: 12px; height: 62px; }
  .hdr-login, .hdr-post span { display: none; }
  .hdr-post { width: 42px; padding: 0; }
  .nav { position: fixed; inset: 62px 0 auto 0; z-index: 79; display: none; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg); max-height: calc(100dvh - 62px); overflow-y: auto; }
  .nav.is-open { display: flex; }
  .nav > a, .nav-mobile a { padding: 13px 12px; font-size: 16px; }
  .nav-mobile { display: grid; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border); }
  .nav-mobile a { display: flex; align-items: center; gap: 10px; border-radius: 8px; color: var(--text); font-weight: 500; }
  .filters-bar { top: 62px; }
  .cards-4, .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .type-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .city-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .why { grid-template-columns: minmax(0, 1fr); }
  .ftr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .listing-grid { grid-template-columns: minmax(0, 1fr); }
  .listing-side { position: static; }
  .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .cta { flex-direction: column; align-items: flex-start; padding: 32px; }
  .hs-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; border-radius: 0 16px 16px 16px; padding: 12px; }
  .hs-f { padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; }
  .hs-f:nth-last-child(2) { border: 1px solid var(--border); }
  .hs-q, .hs-row .btn { grid-column: 1 / -1; }
  .hs-row .btn { margin: 0; }
  .has-sticky { padding-bottom: 76px; }
  .sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; display: flex; align-items: center; gap: 8px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); }
  .sticky-cta > div { flex: 1; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
  .sticky-cta small { font-size: 12px; font-weight: 500; color: var(--text-2); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .sec { padding: 44px 0; }
  .hero-in { padding-top: 48px; padding-bottom: 56px; }
  .hs-tabs span { padding: 10px 22px; }
  .hs-row { grid-template-columns: minmax(0, 1fr); }
  .cards-4, .cards-3 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  /* phones: featured properties stack neatly like the rest (no half-hidden card at the edge); the first 3 show, "See all" opens the rest */
  .scroll-x > .card:nth-child(n+4) { display: none; }
  .type-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .type-tile { padding: 16px; }
  .city-grid { gap: 10px; }
  .city { min-height: 130px; }
  .city-in b { font-size: 17px; }
  .sec-head { margin-bottom: 20px; }
  .ftr-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .grid-2, .grid-3, .grid-1-2 { grid-template-columns: minmax(0, 1fr); }
  .filters select { flex: 1 1 46%; max-width: none; min-width: 0; }
  .filters .seg { width: 100%; }
  .filters .seg label { flex: 1; text-align: center; }
  .filters .btn-primary { flex: 1; }
  .fl-more-in { position: static; width: 100%; margin-top: 10px; box-shadow: none; }
  .fl-more[open] { width: 100%; }
  .filters-bar { position: static; }
  .results-head { flex-direction: column; align-items: stretch; }
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: 64vw; border-radius: 0; margin: 0 -16px; }
  .gallery .g-item:not(.g-main) { display: none; }
  .g-all { right: 12px; bottom: 12px; }
  .l-details, .calc, .calc-in { grid-template-columns: minmax(0, 1fr); }
  .l-amen { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .l-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel-card, .auth-card { padding: 22px; }
  .pad-lg { padding-top: 28px; padding-bottom: 48px; }
  .agent-top { flex-direction: column; align-items: flex-start; gap: 16px; }
  .inline-search { flex-direction: column; }
  .lb-nav { width: 40px; height: 40px; }
  .lb-prev { left: 8px; } .lb-next { right: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}

/* three or four photos: one big, two small */
@media (min-width: 641px) {
  .gallery-3 { grid-template-columns: 2fr 1fr; }
  .gallery-3 .g-item:nth-of-type(n+4) { display: none; }
}

/* ---------- single-agent pieces ---------- */
.hdr-dash { height: 40px; padding: 0 14px; font-size: 14px; }
.icon-link { position: relative; }
.saved-n { position: absolute; right: 2px; top: 2px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: #e0245e; color: #fff; font-size: 11px; font-weight: 700; line-height: 17px; text-align: center; }
.meet { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; }
.meet-photo { aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); box-shadow: var(--shadow-lg); display: grid; place-items: center; }
.meet-photo img { width: 100%; height: 100%; object-fit: cover; }
.meet-photo span { color: rgba(255, 255, 255, .92); font-size: 96px; font-weight: 800; letter-spacing: -.04em; }
.eyebrow { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--primary); }
.meet-text h2 { font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -.025em; }
.meet-role { margin: 10px 0 18px; color: var(--text-2); font-weight: 500; }
.meet-text .prose { margin-bottom: 24px; max-width: 600px; }
.meet-text .btn-app { flex: 0 0 auto; padding: 0 16px; height: 44px; }
.agent-stats { display: flex; flex-wrap: wrap; gap: 6px 24px; margin: 10px 0 0; color: var(--text-2); font-size: 15px; }
.agent-stats b { color: var(--text); font-size: 18px; }
.agent-top .btn-app { flex: 0 0 auto; padding: 0 16px; height: 44px; }
.ftr-bottom { display: flex; justify-content: space-between; gap: 16px; }
.ftr-bottom a { padding: 0; color: rgba(255, 255, 255, .5); }
@media (max-width: 900px) {
  .hdr-dash span { display: none; } .hdr-dash { width: 42px; padding: 0; }
  .meet { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .meet-photo { width: 100%; max-width: 380px; margin-inline: auto; aspect-ratio: 4 / 5; border-radius: 20px; }
  .meet-photo span { font-size: 72px; }
}

/* ---------- animations (same feel as the Sanare site) ----------
   Everything here is switched off for people who ask their device for less motion. */

/* Page change: when a link or button is clicked, a curtain in the brand colour sweeps up
   over the screen, then carries on up and away on the next page. Part 1 is assets/js/pt.js. */
html.pt-out body::after, html.pt-in body::after { content: ""; position: fixed; inset: 0; z-index: 300; background: var(--primary-deep); pointer-events: none; will-change: transform; }
html.pt-out body::after { transform: translateY(100%); animation: ptCover .42s cubic-bezier(.7, 0, .84, 0) forwards; }
html.pt-in body::after { transform: translateY(0); animation: ptReveal .45s cubic-bezier(.16, 1, .3, 1) .6s forwards; }
html.pt-in.pt-go body::after { animation-delay: .05s; }
@keyframes ptCover { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes ptReveal { from { transform: translateY(0); } to { transform: translateY(-100%); } }
@media (prefers-reduced-motion: reduce) { html.pt-out body::after, html.pt-in body::after { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* things blur in and rise as you scroll to them (the "reveal" class is added by app.js) */
  .reveal { opacity: 0; transform: translateY(30px); filter: blur(10px); transition: opacity .9s cubic-bezier(.22, 1, .36, 1), transform .9s cubic-bezier(.22, 1, .36, 1), filter .9s cubic-bezier(.22, 1, .36, 1), box-shadow .2s, border-color .2s; will-change: opacity, transform; }
  .reveal.reveal-left { transform: translateX(-40px); }
  .reveal.reveal-right { transform: translateX(40px); }
  .reveal.reveal-zoom { transform: scale(.94); }
  .reveal.is-in { opacity: 1; transform: none; filter: none; }
  .reveal.is-done { transition: box-shadow .2s, transform .2s, border-color .2s; will-change: auto; }

  /* top of the home page: the headline comes in word by word, the rest rises after it */
  @keyframes wordIn { to { opacity: 1; filter: blur(0); transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(24px); filter: blur(8px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
  .hero .hw { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(24px); animation: wordIn .9s cubic-bezier(.22, 1, .36, 1) forwards; }
  .hero-sub, .hero .hs, .hero-stats { animation: rise .9s cubic-bezier(.22, 1, .36, 1) both; }
  .hero-sub { animation-delay: .75s; }
  .hero .hs { animation-delay: .9s; }
  .hero-stats { animation-delay: 1.1s; }
  .page-head h1, .page-head p, .agent-top, .results-head { animation: rise .8s cubic-bezier(.22, 1, .36, 1) .15s both; }
  .page-head p { animation-delay: .25s; }
  .gallery { animation: rise .9s cubic-bezier(.22, 1, .36, 1) .1s both; }

  /* the home page photo or video drifts slowly; the plain-colour background glows and moves */
  .hero { overflow: hidden; }
  @keyframes kenBurns { 0% { transform: scale(1.05); } 100% { transform: scale(1.18); } }
  .hero-img { animation: kenBurns 20s ease-out infinite alternate; }
  @keyframes glow { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(-6%, 5%) scale(1.15); } 100% { transform: translate(4%, -4%) scale(1.05); } }
  .hero-art::before { content: ""; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; right: -12%; top: -45%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--accent2) 42%, transparent), transparent 62%); filter: blur(20px); animation: glow 16s ease-in-out infinite alternate; }
  .hero-video { opacity: 0; transition: opacity 1.2s ease-out; }
  .hero-video.is-ready { opacity: 1; }

  /* header gets a soft shadow once you scroll */
  .hdr { transition: box-shadow .3s, background .3s; }
  .hdr.is-stuck { box-shadow: 0 6px 24px rgba(16, 24, 22, .09); }

  /* buttons lift with a deeper shadow, press down on click, and a soft ring spreads from the click */
  .btn { position: relative; overflow: hidden; transition: background .3s cubic-bezier(.4, 0, .2, 1), color .3s, border-color .3s, box-shadow .3s, transform .3s cubic-bezier(.4, 0, .2, 1); }
  .btn-primary, .btn-accent { box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--primary) 70%, transparent); }
  .btn-accent { box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--accent2) 80%, transparent); }
  .btn:hover { transform: translateY(-2px); }
  .btn-primary:hover { box-shadow: 0 18px 44px -16px color-mix(in srgb, var(--primary) 85%, transparent); }
  .btn-accent:hover { box-shadow: 0 18px 44px -16px color-mix(in srgb, var(--accent2) 90%, transparent); }
  .btn-ghost:hover, .btn-app:hover { box-shadow: 0 12px 30px -16px rgba(16, 24, 22, .35); }
  .btn:active { transform: translateY(0) scale(.97); transition-duration: .08s; }
  .btn .ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .28; transform: scale(0); pointer-events: none; animation: ripple .6s cubic-bezier(.22, 1, .36, 1) forwards; }
  @keyframes ripple { to { transform: scale(1); opacity: 0; } }
  .btn.is-going { pointer-events: none; }
  .btn .i { transition: transform .3s; }
  .btn:hover .i:last-child:not(:first-child), .more-link:hover .i { transform: translateX(4px); }
  @keyframes softPulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent2) 50%, transparent); } 50% { box-shadow: 0 0 0 14px transparent; } }
  .hs .btn-accent, .cta .btn-accent { animation: softPulse 4.5s ease-out 2s infinite; }
  .hs .btn-accent:hover, .cta .btn-accent:hover { animation: none; }

  /* cards, tiles and links react when touched */
  .card-media img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
  .type-ic, .why-ic { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), background .3s, color .3s; }
  .type-tile:hover .type-ic { transform: scale(1.12) rotate(-6deg); background: var(--primary); color: var(--on-primary); }
  .why-item:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
  .why-item:hover .why-ic { transform: scale(1.1) rotate(-6deg); }
  .city:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
  .city img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
  .logo-mark { transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
  .logo:hover .logo-mark { transform: rotate(-8deg) scale(1.08); }
  .nav > a { position: relative; transition: color .3s, background .3s; }
  .nav > a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
  .nav > a:hover::after, .nav > a[aria-current="page"]::after { transform: scaleX(1); }
  .ftr a { transition: color .2s, transform .2s; }
  .ftr-grid a:hover { transform: translateX(3px); }

  /* the heart pops when you save a property */
  @keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
  .fav.just-saved, .fav-btn.just-saved .i { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); }

  /* the "Meet your agent" photo floats a little */
  @keyframes float { from { translate: 0 0; } to { translate: 0 -10px; } }
  .meet-photo { animation: float 5s ease-in-out 1.5s infinite alternate; }

  /* menus, messages and the photo viewer fade in */
  .menu:not([hidden]), .fl-more[open] .fl-more-in { animation: rise .22s ease-out both; }
  .flash { animation: rise .5s ease-out both; }
  .lightbox[open] { animation: fadein .3s ease-out; }
  .lightbox img { animation: rise .45s cubic-bezier(.22, 1, .36, 1); }
  .nav.is-open { animation: rise .25s ease-out both; }
  .sticky-cta { animation: rise .6s ease-out .8s both; }
}

/* home page video (uploaded in Website → Home page) sits where the photo would */
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -3; }

/* long website names shorten with … instead of pushing the menu button off a phone screen */
html, body.site { overflow-x: clip; }
.hdr .logo { flex: 0 1 auto; min-width: 0; }
.hdr .logo-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdr-right { flex: none; }
@media (max-width: 640px) { .hdr .logo { font-size: 17px; gap: 8px; } .hdr .logo-mark { width: 32px; height: 32px; flex: none; } .hdr-right { gap: 6px; } }

/* starter logo mark: a solid house on a soft gradient */
.logo-mark { background: linear-gradient(140deg, var(--primary), var(--primary-dark)); box-shadow: 0 4px 12px -4px color-mix(in srgb, var(--primary) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .22); }
.logo-mark .logo-glyph { width: 22px; height: 22px; stroke: none; }
.adm-brand .logo-mark .logo-glyph { width: 18px; height: 18px; }
.pv-hdr .logo-mark .logo-glyph { width: 14px; height: 14px; }
.meet-photo img, .av img { object-position: 50% 18%; }

/* area cards with photos: a darker fade at the bottom so the name always reads */
.city::after { background: linear-gradient(180deg, rgba(0, 0, 0, .05) 20%, rgba(0, 0, 0, .78)); }
.city-in b { text-shadow: 0 1px 8px rgba(0, 0, 0, .5); }

/* starter logo: a house shape with the first letter of the name, and a two-line name */
.logo-mark.logo-mark-house { width: 42px; height: 42px; flex: none; border-radius: 0; background: none; box-shadow: none; color: var(--primary); filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--primary) 35%, transparent)); }
.logo-house { display: block; width: 100%; height: 100%; fill: currentColor; }
.logo-letter { fill: var(--on-primary); font: 800 19px/1 var(--font); }
.logo-text { display: grid; min-width: 0; line-height: 1.08; }
.logo-text b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.logo-text small { margin-top: 3px; font-size: 10px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--primary); }
.logo-light .logo-text small { color: rgba(255, 255, 255, .7); }
.logo-light .logo-mark-house { color: #fff; filter: none; }
.logo-light .logo-letter { fill: var(--primary-deep); }
.hdr .logo-text { overflow: visible; }
.adm-brand .logo-mark.logo-mark-house { width: 32px; height: 32px; }
.adm-brand .logo-text b { font-size: 14px; }
.adm-brand .logo-text small { font-size: 8px; margin-top: 2px; }
.pv-hdr .logo-mark.logo-mark-house { width: 24px; height: 24px; filter: none; }
.pv-hdr .logo-text b { font-size: 12px; } .pv-hdr .logo-text small { font-size: 7px; margin-top: 1px; }
@media (max-width: 640px) { .hdr .logo-mark.logo-mark-house { width: 36px; height: 36px; } .logo-text b { font-size: 16px; } .logo-text small { font-size: 9px; } }

/* starter logo, final version: an arched doorway emblem with the initials, and the name in a classic serif */
.logo { gap: 12px; }
.logo-mark.logo-emblem { width: 38px; height: 45px; flex: none; border-radius: 0; background: none; box-shadow: none; filter: drop-shadow(0 4px 8px color-mix(in srgb, var(--primary) 30%, transparent)); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.logo:hover .logo-emblem { transform: translateY(-2px); }
.logo-emblem svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lg-door { fill: var(--primary-dark); }
.lg-line { stroke: var(--accent2); stroke-width: 1; opacity: .9; }
.lg-key { fill: var(--accent2); display: none; }
.lg-base { stroke: var(--accent2); stroke-width: 1; stroke-linecap: round; }
.lg-init { fill: #fff; font: 700 19px/1 "Playfair Display", Georgia, "Times New Roman", serif; letter-spacing: .02em; }
.lg-init.lg-two { font-size: 15.5px; letter-spacing: .04em; }
.logo-text b { font: 700 21px/1.05 "Playfair Display", Georgia, "Times New Roman", serif; letter-spacing: 0; color: var(--text); }
.logo-text small { margin-top: 5px; font: 600 9.5px/1 var(--font); letter-spacing: .32em; color: var(--text-2); }
.logo-light .logo-text b { color: #fff; }
.logo-light .lg-door { fill: rgba(255, 255, 255, .1); }
.logo-light .logo-emblem { filter: none; }
.adm-brand .logo { gap: 10px; }
.adm-brand .logo-mark.logo-emblem { width: 27px; height: 32px; filter: none; }
.adm-brand .logo-text b { font-size: 15px; }
.adm-brand .logo-text small { font-size: 7.5px; margin-top: 3px; letter-spacing: .26em; }
.pv-hdr .logo-mark.logo-emblem { width: 20px; height: 24px; filter: none; }
.pv-hdr .logo-text b { font-size: 12px; } .pv-hdr .logo-text small { font-size: 6px; margin-top: 2px; }
.hdr-in { height: 74px; }
.filters-bar { top: 74px; }
@media (max-width: 900px) { .hdr-in { height: 64px; } .nav { inset: 64px 0 auto 0; max-height: calc(100dvh - 64px); } .filters-bar { top: 64px; } }
@media (max-width: 640px) { .hdr .logo-mark.logo-emblem { width: 31px; height: 37px; } .logo-text b { font-size: 17px; } .logo-text small { font-size: 8px; letter-spacing: .26em; } }

/* starter logo, letters only: bold initials + a full stop in the highlight colour, a divider, the name in capitals */
.logo { gap: 11px; }
.lw-m { flex: none; font: 900 30px/1 "Montserrat", var(--font); letter-spacing: -.06em; color: var(--primary); }
.lw-m em { font-style: normal; color: var(--accent2); }
.lw-d { flex: none; width: 1.5px; height: 30px; background: var(--border-strong); }
.logo-text b { font: 800 15px/1 "Montserrat", var(--font); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.logo-text small { margin-top: 6px; font: 500 8.5px/1 "Montserrat", var(--font); letter-spacing: .42em; text-transform: uppercase; color: var(--text-2); }
.logo-light .lw-m { color: #fff; }
.logo-light .lw-d { background: rgba(255, 255, 255, .25); }
.logo-light .logo-text b { color: #fff; }
.logo-light .logo-text small { color: rgba(255, 255, 255, .65); }
.logo:hover .lw-m em { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1); display: inline-block; }
.adm-brand .logo { gap: 8px; }
.adm-brand .lw-m { font-size: 22px; }
.adm-brand .lw-d { height: 22px; }
.adm-brand .logo-text b { font-size: 11px; letter-spacing: .1em; }
.adm-brand .logo-text small { font-size: 7px; margin-top: 4px; letter-spacing: .3em; }
.pv-hdr .lw-m { font-size: 16px; } .pv-hdr .lw-d { height: 16px; } .pv-hdr .logo-text b { font-size: 8px; } .pv-hdr .logo-text small { font-size: 5px; margin-top: 3px; }
.hdr-in { height: 70px; } .filters-bar { top: 70px; }
@media (max-width: 900px) { .hdr-in { height: 62px; } .nav { inset: 62px 0 auto 0; max-height: calc(100dvh - 62px); } .filters-bar { top: 62px; } }
@media (max-width: 640px) { .lw-m { font-size: 25px; } .lw-d { height: 25px; } .logo-text b { font-size: 12px; letter-spacing: .1em; } .logo-text small { font-size: 7.5px; letter-spacing: .32em; } }

/* starter logo, chosen style: overlapping italic serif initials in two colours + the name in serif */
.logo { gap: 14px; }
.lw4 { position: relative; flex: none; width: 52px; height: 42px; font: italic 700 42px/1 "Playfair Display", Georgia, serif; }
.lw4 b, .lw4 s { position: absolute; top: 0; font-weight: 700; text-decoration: none; }
.lw4 b { left: 0; color: var(--primary); }
.lw4 s { left: 26px; top: 4px; color: var(--accent2); mix-blend-mode: multiply; }
.lw4.lw4-one { width: 34px; }
.logo-text b { font: 700 19px/1 "Playfair Display", Georgia, serif; letter-spacing: 0; text-transform: none; color: var(--text); }
.logo-text small { margin-top: 7px; font: 600 8.5px/1 var(--font); letter-spacing: .4em; text-transform: uppercase; color: var(--text-2); }
.logo-light .lw4 b { color: #fff; }
.logo-light .lw4 s { mix-blend-mode: normal; }
.logo-light .logo-text b { color: #fff; }
.logo:hover .lw4 s { transform: translate(2px, -1px); }
.lw4 s { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.adm-brand .logo { gap: 10px; }
.adm-brand .lw4 { width: 38px; height: 30px; font-size: 30px; }
.adm-brand .lw4 s { left: 19px; top: 3px; }
.adm-brand .logo-text b { font-size: 14px; letter-spacing: 0; }
.adm-brand .logo-text small { font-size: 7px; margin-top: 5px; letter-spacing: .3em; }
.pv-hdr .lw4 { width: 26px; height: 20px; font-size: 20px; } .pv-hdr .lw4 s { left: 13px; top: 2px; } .pv-hdr .logo-text b { font-size: 10px; } .pv-hdr .logo-text small { font-size: 5px; margin-top: 3px; }
@media (max-width: 640px) { .logo { gap: 10px; } .lw4 { width: 44px; height: 36px; font-size: 36px; } .lw4 s { left: 22px; top: 3px; } .logo-text b { font-size: 16px; letter-spacing: 0; } .logo-text small { font-size: 7.5px; letter-spacing: .3em; } }
.admin .lw4 b { color: var(--primary); }
.admin .logo-text b { color: var(--text); }


/* About me page: the same tidy two-column block as "Meet your agent" on the home page */
.about-head { padding: 56px 0 64px; }
.about-meet { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 56px; align-items: center; }
.about-meet h1 { font-size: clamp(32px, 4vw, 48px); letter-spacing: -.025em; }
.about-meet .meet-role { margin: 10px 0 18px; font-size: 16px; }
.about-meet .prose { max-width: 620px; margin-bottom: 22px; font-size: 17px; }
.about-meet .prose p { margin: 0 0 .9em; }
.about-stats { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0 0 26px; padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-stats li { display: grid; gap: 2px; }
.about-stats b { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--primary); line-height: 1; }
.about-stats span { font-size: 13px; color: var(--text-2); }
.about-meet .btn-app { flex: 0 0 auto; height: 44px; padding: 0 16px; }
@media (max-width: 900px) { .about-head { padding: 32px 0 40px; } .about-meet { grid-template-columns: minmax(0, 1fr); gap: 24px; } .about-meet .meet-photo { max-width: 320px; } }
.about-head .eyebrow { margin: 0 0 10px; max-width: none; font-size: 13px; color: var(--primary); }
.about-head .meet-role { max-width: none; color: var(--text-2); }

/* tidy-up pass */
/* the footer always sits at the bottom of the window, even on short pages */
body.site { min-height: 100vh; display: flex; flex-direction: column; }
body.site > main { flex: 1 0 auto; }
body.site > .ftr { margin-top: 0; }
/* search filters: everything on one line on a normal screen */
@media (min-width: 1100px) { .filters { flex-wrap: nowrap; } .filters select { min-width: 0; width: auto; flex: 0 1 170px; } .fl.fl-q { flex: 1 1 200px; min-width: 150px; } .filters .btn, .filters .seg, .filters .fl-more { flex: none; } }

/* ---- Google reviews ---- */
.stars { display: inline-flex; gap: 2px; vertical-align: middle; }
.star { width: 18px; height: 18px; fill: var(--accent2); }
.star-off { fill: #d9dedb; }
.rev-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); text-decoration: none; font-size: 15px; transition: border-color .2s, box-shadow .2s; }
.rev-badge:hover { border-color: var(--primary); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.rev-badge b { font-size: 16px; font-weight: 800; }
.rev-badge span { color: var(--text-2); }
.rev-badge-lg { padding: 10px 20px; font-size: 16px; }
.rev-badge-lg .star { width: 22px; height: 22px; }
.rev-badge-lg b { font-size: 20px; }
.about-meet .rev-badge { margin: 4px 0 18px; }
.reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.reviews-1 { grid-template-columns: minmax(0, 640px); justify-content: center; }
.reviews-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review { display: flex; flex-direction: column; gap: 16px; margin: 0; padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 8px 30px rgba(0, 0, 0, .04); }
.review blockquote { flex: 1; margin: 0; font-size: 16px; line-height: 1.65; color: var(--text); }
.review figcaption { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.review figcaption b { display: block; font-size: 15px; }
.review figcaption small { color: var(--text-2); font-size: 13px; }
.review-av { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-ink); font-weight: 700; font-size: 14px; }
.reviews-more { margin-top: 32px; text-align: center; }
.seller-rev { color: var(--accent2-ink); font-weight: 600; }
@media (max-width: 900px) { .reviews, .reviews-2 { grid-template-columns: minmax(0, 1fr); } }

/* Phones: things slide up into place, not in from the sides, so nothing looks off-centre while it moves */
@media (max-width: 640px) {
  .reveal.reveal-left, .reveal.reveal-right { transform: translateY(30px); }
  .reveal.is-in { transform: none; }
}

/* Footer "Same as the header": light background, dark text, the normal logo */
.ftr-light { background: var(--bg); color: var(--text-2); border-top: 1px solid var(--border); }
.ftr-light h3 { color: var(--text); }
.ftr-light a, .ftr-light .ftr-contact span { color: var(--text-2); }
.ftr-light a:hover { color: var(--text); }
.ftr-light .ftr-contact .i { color: var(--accent2); }
.ftr-light .ftr-bottom { border-top-color: var(--border); color: var(--text-3); }
.ftr-light .ftr-bottom a { color: var(--text-3); }
.ftr-light .social a { background: #fff; border: 1px solid var(--border-strong); color: var(--text); }
.ftr-light .social a:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }

/* Header "Dark": same dark colour as the footer, white logo and light menu text */
.hdr.hdr-dark { background: rgba(17, 23, 21, .97); border-bottom-color: rgba(255, 255, 255, .08); }
.hdr-dark .icon-link { color: rgba(255, 255, 255, .82); }
.hdr-dark .icon-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hdr-dark .hdr-dash { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
.hdr-dark .hdr-dash:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.hdr-dark .burger { background: transparent; border-color: rgba(255, 255, 255, .28); color: #fff; }
@media (min-width: 901px) {
  .hdr-dark .nav > a { color: rgba(255, 255, 255, .78); }
  .hdr-dark .nav > a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .hdr-dark .nav > a[aria-current="page"] { color: var(--accent2); }
  .hdr-dark .nav > a::after { background: var(--accent2); }
}

/* ---------- Our agents (team cards on the home page and /agents) ---------- */
.eyebrow-line { display: flex; align-items: center; gap: 14px; color: var(--accent2-ink, var(--accent2)); font-weight: 600; letter-spacing: .22em; font-size: 12px; }
.eyebrow-line::before { content: ""; width: 44px; height: 1px; background: currentColor; }
.team-title, .sec-head h2.team-title, .page-head h1.team-title { font-size: clamp(30px, 4vw, 52px); font-weight: 500; letter-spacing: -.01em; }
.team-title em { font-style: italic; color: var(--primary); }
.team-sec .sec-head { align-items: flex-end; }
.team-sec .more-link { color: var(--accent2-ink, var(--accent2)); text-transform: uppercase; letter-spacing: .14em; font-size: 12px; padding-bottom: 6px; border-bottom: 1px solid currentColor; white-space: nowrap; }
.tm-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px 24px; }
.tm-card { display: grid; gap: 14px; }
.tm-photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg-alt); }
.tm-photo::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 3px; background: var(--accent2); transition: width .5s cubic-bezier(.22, 1, .36, 1); }
.tm-card:hover .tm-photo::after { width: 100%; }
.tm-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s cubic-bezier(.22, 1, .36, 1); }
.tm-card:hover .tm-photo img { transform: scale(1.04); }
.tm-photo span { position: absolute; inset: 0; display: grid; place-items: center; font-size: 46px; font-weight: 700; color: var(--primary); background: var(--primary-soft); }
.tm-body h3 { font-size: 21px; font-weight: 500; line-height: 1.25; }
.tm-pos { margin: 6px 0 0; color: var(--accent2-ink, var(--accent2)); font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.tm-area { margin: 4px 0 0; color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .16em; }
.tm-prc { margin: 4px 0 0; color: var(--text-3); font-size: 12px; }
.tm-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tm-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border: 1px solid var(--border-strong); border-radius: 999px; color: var(--primary); background: #fff; transition: background .2s, color .2s, border-color .2s; }
.tm-btn .i { width: 17px; height: 17px; }
.tm-btn:hover { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.tm-grid-full { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 40px 28px; }
.tm-bio { margin: 12px 0 0; color: var(--text-2); font-size: 14px; line-height: 1.6; }
@media (max-width: 1000px) { .tm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .tm-grid, .tm-grid-full { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .team-sec .sec-head { flex-direction: column; align-items: flex-start; }
  .tm-body h3 { font-size: 17px; }
  .tm-pos { font-size: 11px; }
  .tm-area { font-size: 10px; letter-spacing: .1em; }
  .tm-btn { width: 32px; height: 32px; }
}
/* phones: a wide logo shrinks to the space left next to the header buttons instead of running under them */
@media (max-width: 640px) {
  .hdr .logo { flex: 1 1 0; min-width: 0; }
  .hdr .logo-img { max-width: 100%; object-position: left center; }
}
/* agent cards link to each agent's own page; names line up even when one card has more lines */
.tm-card { align-content: start; }
a.tm-photo { display: block; }
.tm-body h3 a { color: inherit; }
.tm-body h3 a:hover { color: var(--primary); }
.tm-back { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 18px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.tm-back .i { width: 16px; height: 16px; }
.tm-back:hover { color: var(--primary); }
.tm-profile .meet-photo img { object-position: center top; }
.tm-profile .team-title { font-size: clamp(32px, 4vw, 50px); }
/* business registrations under the footer logo (DTI, BIR, DHSUD, PRC) */
.ftr-regs { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 18px; padding: 0; list-style: none; max-width: 380px; }
.ftr-regs li { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 8px; font-size: 12px; line-height: 1.3; }
.ftr-regs b { color: var(--accent2); font-weight: 700; letter-spacing: .06em; }
.ftr-regs span { color: rgba(255, 255, 255, .78); }
.ftr-light .ftr-regs li { border-color: var(--border-strong); }
.ftr-light .ftr-regs span { color: var(--text-2); }
/* the business's own stamp or seal, next to the registrations */
.ftr-regs-wrap { display: flex; align-items: center; gap: 14px; margin: -4px 0 18px; max-width: 400px; }
.ftr-regs-wrap .ftr-regs { margin: 0; }
.ftr-stamp { flex: none; width: auto; height: 80px; max-width: 120px; object-fit: contain; }
/* "For Assume" (pasalo) label: the highlight colour, so it stands apart from For Sale and For Rent */
.tag-assume { background: var(--accent2); color: var(--on-accent2); }
/* menu words never break onto two lines; with many links (Assume, Our agents) they tighten up a little on smaller laptops */
.nav > a { white-space: nowrap; }
@media (max-width: 1440px) and (min-width: 1101px) { .nav > a { padding: 8px 9px; font-size: 14.5px; } .nav { gap: 0; } .hdr .hdr-in .logo:has(> .logo-img) { max-width: 250px; } }
@media (max-width: 1260px) and (min-width: 1101px) { .hdr-dash span { display: none; } .hdr-dash { padding: 0 10px; } }
/* pasalo: total contract price and monthly amortization under the assume price */
.l-tcp { margin: 4px 0 0; color: var(--text-2); font-size: 14px; }
.l-tcp b { color: var(--text); font-weight: 700; }
/* header logo picture: the link carries the size limit and the picture shrinks inside it, so a wide logo gets smaller
   instead of running under the menu when space is short (more menu links, the Dashboard button, smaller screens) */
.hdr .logo:has(> .logo-img) { max-width: 200px; }
.hdr .logo-img { max-width: 100%; object-position: left center; }
/* phones: search filters in tidy rows: tabs, keyword, type + province, city + more filters, then a full-width Search button */
@media (max-width: 640px) {
  .filters .fl.fl-q { flex: 1 1 100%; min-width: 0; }
  .filters select[name="city"], .filters .fl-more:not([open]) { flex: 1 1 calc(50% - 5px); min-width: 0; }
  .filters .fl-more summary { width: 100%; justify-content: center; padding-left: 10px; padding-right: 10px; white-space: nowrap; }
  .filters > .btn-primary { flex: 1 1 100%; justify-content: center; }
  .filters .seg span { padding: 7px 8px; text-align: center; }
}
