/* The Ezra Malo Group: shared site styles. Brand: navy #090c3a; greys #5b5b5b #999999 #c6cbcb. */
/* Fonts are self-hosted (SIL Open Font License, see assets/fonts/) so pages load without a third-party request. */
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/pinyon-script-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Pinyon Script'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/pinyon-script-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --navy: #090c3a;
  --navy-line: #2a2e5c;
  --ink: #2b2d3a;
  --body: #4a4c58;
  --grey: #5b5b5b;
  --grey-mid: #999999;
  --grey-light: #c6cbcb;
  --mist: #f4f5f5;
  --rule: #e3e6e6;
  --on-navy: #d7dbdb;
  --serif: Georgia, "Georgia Pro", serif;
  --sans: Montserrat, "Helvetica Neue", Arial, sans-serif;
  --script: "Pinyon Script", cursive;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
picture > source { display: none; }
a { color: var(--navy); }
a:hover { color: #3a3f7a; }
h1, h2, h3 { color: var(--navy); margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(36px, 6vw, 60px); }
h2 { font-size: clamp(28px, 4vw, 42px); }
h3 { font-size: 18px; font-weight: 600; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.section { padding: clamp(56px, 8vw, 96px) 0; }
.mist { background: var(--mist); }
.dark { background: var(--navy); color: #fff; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.dark p { color: var(--on-navy); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.intro { max-width: 760px; display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink); max-width: 780px; }
.muted { color: var(--body); }
.small { font-size: 13px; color: var(--grey); }
.script { font-family: var(--script); font-size: clamp(34px, 4vw, 42px); line-height: 1.1; color: var(--navy); }
.dark .script { color: var(--grey-light); }
.eyebrow { font-size: 12px; letter-spacing: 3px; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 280px)), 1fr)); }
.split { display: grid; gap: clamp(32px, 5vw, 56px); align-items: center; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* Skip link */
.skip { position: absolute; left: -999px; top: 8px; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: #fff; }
.site-header .wrap { display: flex; flex-wrap: wrap; gap: 14px 32px; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-mark { width: 50px; height: 50px; border: 2px solid var(--navy); display: flex; align-items: center; justify-content: center; font-family: var(--serif); font-size: 19px; color: var(--navy); letter-spacing: 1px; flex-shrink: 0; }
.brand-name { display: flex; flex-direction: column; }
.brand-name b { font-family: var(--serif); font-weight: 400; font-size: 20px; color: var(--navy); line-height: 1.2; }
.brand-name span { font-size: 11px; letter-spacing: 2.5px; text-transform: uppercase; color: var(--grey); }
.site-nav { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; font-size: 14px; font-weight: 500; }
.site-nav a { text-decoration: none; color: var(--ink); padding: 8px 0; }
.site-nav a[aria-current="page"] { color: var(--navy); font-weight: 700; }
.site-nav .phone { color: var(--navy); font-weight: 600; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 14px 26px; font: inherit; font-size: 15px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; }
.btn:hover { background: #1b1f5a; color: #fff; }
.btn.ghost { background: transparent; color: var(--navy); }
.btn.ghost:hover { background: var(--navy); color: #fff; }
.dark .btn { background: #fff; color: var(--navy); border-color: #fff; }
.dark .btn.ghost { background: transparent; color: #fff; }
.site-nav .btn { min-height: 44px; padding: 10px 20px; font-size: 14px; color: #fff; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.text-link { font-weight: 600; text-decoration: none; }

/* Hero */
.hero { background: var(--mist); }
.hero .wrap { padding-top: clamp(40px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 80px); }
.hero h1 .script-word { font-family: var(--script); font-size: 1.3em; line-height: 0.9; }
.crumbs { font-size: 13px; color: var(--grey); display: flex; flex-wrap: wrap; gap: 8px; }
.crumbs a { color: var(--grey); }
.answer b { color: var(--navy); }
.hero-photo { width: 100%; height: clamp(320px, 45vw, 520px); object-fit: cover; }

/* Stats band */
.stats .wrap { padding-top: 40px; padding-bottom: 40px; }
.stat { display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--navy-line); padding-left: 16px; }
.stat b { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.1; color: #fff; }
.stat span { font-size: 13px; color: var(--grey-light); }
.source { font-size: 12px; color: var(--grey-light); margin-top: 20px; }

/* Cards */
.card { border: 1px solid var(--rule); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.card .num { font-family: var(--serif); font-size: 28px; color: var(--navy); line-height: 1; }
.card p { font-size: 15px; color: var(--body); }
.card .grow { flex-grow: 1; }
.mist .card { border-color: #fff; }

/* Chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.chip { min-height: 44px; padding: 10px 18px; font: inherit; font-size: 14px; font-weight: 600; background: #fff; color: var(--navy); border: 1.5px solid var(--grey-light); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
[hidden] { display: none !important; }

/* Steps list */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 24px; }
.steps li { display: flex; gap: 18px; }
.steps .n { font-family: var(--serif); font-size: 30px; color: var(--navy); min-width: 40px; line-height: 1.1; }
.steps p { font-size: 15px; color: var(--body); margin-top: 6px; }

/* Team */
.person img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.person { display: flex; flex-direction: column; gap: 8px; }
.person .role { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey-light); }
.person b { font-family: var(--serif); font-weight: 400; font-size: 19px; }
.bio { display: grid; gap: 40px; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); padding-top: 48px; border-top: 1px solid var(--rule); }
.bio:first-child { border-top: 0; padding-top: 0; }
.bio img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.bio .role { font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); font-weight: 600; }

/* Tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { background: #fff; border: 1px solid var(--grey-light); color: var(--navy); padding: 8px 14px; font-size: 13px; }

/* FAQ */
.faq { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--rule); padding: 20px 0; }
.mist .faq details { border-color: var(--grey-light); }
.faq summary { font-size: 17px; font-weight: 600; color: var(--navy); cursor: pointer; list-style-position: outside; }
.faq details p { margin-top: 10px; font-size: 15px; line-height: 1.65; color: var(--body); }

/* Price tiles */
.tile { border: 1px solid var(--rule); padding: 22px; display: flex; flex-direction: column; gap: 4px; }
.tile .k { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.tile .v { font-family: var(--serif); font-size: 28px; color: var(--navy); }

/* Forms */
.form { background: var(--mist); padding: clamp(24px, 4vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.mist .form, .form.white { background: #fff; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form input[type="number"], .form select, .form textarea {
  min-height: 48px; border: 1px solid var(--grey-light); padding: 10px 14px; font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: var(--ink); width: 100%;
}
.form textarea { resize: vertical; }
.form .check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; line-height: 1.5; }
.form .check input { width: 20px; height: 20px; flex-shrink: 0; margin: 0; }
.form-note { border: 1.5px solid var(--navy); background: #fff; color: var(--ink); padding: 14px 18px; font-size: 14px; line-height: 1.6; }
.dark .form:not(.white) label { color: #fff; }
.dark .form:not(.white) { background: transparent; padding: 0; }
.dark .form:not(.white) input[type="email"] { border: 0; }
.dark .form.white .btn { background: var(--navy); color: #fff; border-color: var(--navy); }
.dark .form.white p { color: var(--grey); }

/* Calculator */
.result { padding: 36px; display: flex; flex-direction: column; gap: 8px; }
.result .big { font-family: var(--serif); font-size: clamp(44px, 7vw, 60px); line-height: 1; color: #fff; }
.figures { background: #fff; padding: 24px 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.figures div { display: flex; flex-direction: column; gap: 4px; }
.figures span { font-size: 12px; color: var(--grey); }
.figures b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--navy); }
.form input[type="range"] { width: 100%; accent-color: var(--navy); min-height: 32px; }

/* Footer */
.site-footer { background: var(--navy); color: var(--grey-light); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 24px; }
.site-footer h2 { font-size: 22px; color: #fff; margin-bottom: 10px; }
.site-footer h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #fff; font-weight: 600; margin-bottom: 6px; }
.site-footer a { color: var(--grey-light); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer .col { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.legal { border-top: 1px solid var(--navy-line); margin-top: 40px; padding-top: 20px; font-size: 11px; line-height: 1.6; color: #9ea3b5; }

:focus-visible { outline: 3px solid #3a3f7a; outline-offset: 2px; }
@media (max-width: 640px) {
  .site-nav { gap: 4px 18px; }
  .figures { grid-template-columns: 1fr; }
}

/* Data tables */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
table.data caption { text-align: left; font-size: 13px; color: var(--grey); padding-bottom: 10px; }
table.data thead tr { border-bottom: 2px solid var(--navy); }
table.data th, table.data td { padding: 12px 8px; text-align: right; }
table.data th:first-child { text-align: left; }
table.data thead th { color: var(--navy); }
table.data tbody tr { border-bottom: 1px solid var(--rule); }
table.data tbody th { font-weight: 500; }

/* Articles */
.article { max-width: 780px; margin: 0 auto; padding: 40px 24px 80px; display: flex; flex-direction: column; gap: 22px; }
.article h2 { font-size: 30px; margin-top: 16px; }
.article > p { font-size: 17px; line-height: 1.75; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--body); }
.byline img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 22%; }
.takeaways { background: var(--mist); padding: 24px 26px; }
.takeaways ul { margin: 10px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; }
.post-card { text-decoration: none; color: var(--ink); }
.post-card:hover h3 { text-decoration: underline; }
.issue { max-width: 640px; width: 100%; margin: 0 auto; background: #fff; }
.issue-head { background: var(--navy); color: #fff; padding: 28px 32px; display: flex; flex-direction: column; gap: 6px; }
.issue-body { padding: 28px 32px; display: flex; flex-direction: column; gap: 22px; font-size: 15px; }
.issue-body section { border-top: 1px solid var(--rule); padding-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.issue-label { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; font-weight: 700; color: var(--navy); }
.mini { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.mini div { background: var(--mist); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.mini b { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--navy); }
.mini span { font-size: 11px; color: var(--grey); }

/* ---------- Home search (calgary-homes-for-sale) ---------- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.search-hero { background: var(--navy) linear-gradient(135deg, #090c3a 0%, #13185a 60%, #1d2370 100%); color: #fff; }
.search-hero .wrap { padding-top: clamp(28px, 5vw, 56px); padding-bottom: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; gap: 18px; }
.search-hero .crumbs, .search-hero .crumbs a { color: var(--grey-light); }
.search-hero h1 { color: #fff; font-size: clamp(34px, 5vw, 54px); }
.search-hero .lead { color: var(--on-navy); font-size: 17px; }
.search-hero .answer b { color: #fff; font-weight: 600; }

.search-panel { background: #fff; color: var(--ink); padding: clamp(14px, 2.4vw, 22px); display: flex; flex-direction: column; gap: 16px; box-shadow: 0 24px 60px rgba(3, 5, 30, 0.35); margin-top: 8px; }
.search-main { display: flex; gap: 10px; }
.search-q { flex: 1; display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--grey-light); padding: 0 16px; min-height: 60px; color: var(--grey); }
.search-q:focus-within { border-color: var(--navy); }
.search-q input { border: 0; outline: 0; flex: 1; min-width: 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; min-height: 56px; }
.search-main .btn { min-height: 60px; padding: 0 30px; font-size: 16px; }
.search-filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; color: var(--grey); }
.field select, .sort select { min-height: 46px; border: 1px solid var(--grey-light); padding: 8px 34px 8px 12px; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23090c3a' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center; appearance: none; -webkit-appearance: none; border-radius: 0; width: 100%; cursor: pointer; }
.field input[type="text"] { min-height: 46px; border: 1px solid var(--grey-light); padding: 8px 12px; font: inherit; font-size: 15px; letter-spacing: 0; text-transform: none; font-weight: 500; color: var(--ink); background: #fff; border-radius: 0; width: 100%; }
.field input[type="text"]:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: -1px; }
.community-field { grid-column: span 2; }
.field .suggest { min-width: min(320px, 86vw); letter-spacing: 0; text-transform: none; font-weight: 400; font-size: 15px; }
.field select:focus, .sort select:focus { border-color: var(--navy); outline: 2px solid var(--navy); outline-offset: -1px; }
.quadrants { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0; }
.seg { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; font-size: 14px; font-weight: 600; border: 1px solid var(--grey-light); margin-left: -1px; color: var(--navy); }
.seg:first-of-type span { margin-left: 0; }
.seg input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); position: relative; }
.seg input:focus-visible + span { outline: 3px solid #3a3f7a; outline-offset: 2px; }
.picks { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--rule); }
.picks span { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); font-weight: 600; margin-right: 6px; }
.pick { font-size: 14px; font-weight: 500; text-decoration: none; padding: 7px 14px; background: var(--mist); color: var(--navy); }
.pick:hover, .pick.on { background: var(--navy); color: #fff; }

.results-wrap { background: #fff; }
.results-layout { max-width: 1200px; margin: 0 auto; padding: 28px 24px 64px; }
.results-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.results-bar .count { font-size: 15px; font-weight: 600; color: var(--navy); }
.sort { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--grey); margin-left: auto; }
.sort select { min-height: 42px; width: auto; }
.map-toggle { min-height: 42px; padding: 8px 18px; font: inherit; font-size: 14px; font-weight: 600; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.map-toggle[aria-pressed="true"] { background: var(--navy); color: #fff; }
.listings { display: grid; gap: 28px 24px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); transition: opacity 0.2s; }

.listing { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--rule); transition: box-shadow 0.2s, transform 0.2s; }
.listing:hover { box-shadow: 0 14px 36px rgba(9, 12, 58, 0.12); transform: translateY(-2px); }
.listing-link { text-decoration: none; color: inherit; display: flex; flex-direction: column; flex: 1; }
.photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--mist); }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.photo img.blur { object-fit: cover; filter: blur(18px) saturate(1.1); transform: scale(1.15); opacity: 0.85; }
.photo.none { display: flex; align-items: center; justify-content: center; color: var(--grey); font-size: 13px; }
.badge { position: absolute; top: 12px; left: 12px; background: #fff; color: var(--navy); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 5px 10px; }
.listing-body { padding: 16px 18px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-family: var(--serif); font-size: 27px; line-height: 1.1; color: var(--navy); }
.facts { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.facts li + li::before { content: ""; display: inline-block; width: 1px; height: 12px; background: var(--grey-light); margin: 0 10px; vertical-align: -1px; }
.addr { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.where { font-size: 13px; color: var(--grey); }
.listing-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 14px; border-top: 1px solid var(--rule); }
.brokerage { font-size: 13px; color: var(--body); line-height: 1.35; }
.powered { flex-shrink: 0; min-width: 90px; min-height: 32px; display: inline-flex; flex-direction: column; justify-content: center; align-items: center; padding: 4px 8px; border: 1px solid var(--grey-light); font-size: 9px; letter-spacing: 0.5px; text-transform: uppercase; color: var(--grey); text-decoration: none; line-height: 1.2; text-align: center; }
.powered b { font-size: 12px; letter-spacing: 0; text-transform: none; color: #c8102e; }
.terms-note { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 640px; margin: 0 auto; display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: #fff; border: 1px solid var(--grey-light); box-shadow: 0 8px 30px rgba(9, 12, 58, 0.18); font-size: 14px; }
.terms-note[hidden] { display: none; }
.terms-note p { margin: 0; }
.terms-note .btn { flex-shrink: 0; }
@media (max-width: 700px) { .terms-note { bottom: 72px; } }
.powered.logo { width: 90px; height: 90px; min-height: 0; padding: 0; border: 0; }
.powered.logo img { width: 90px; height: 90px; display: block; }
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 8px; margin-top: 40px; }
.pager .pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.pg { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--grey-light); color: var(--navy); font-size: 15px; font-weight: 600; text-decoration: none; background: #fff; }
.pg:hover { border-color: var(--navy); }
.pg.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pg.step { padding: 0 18px; }
.pager .gap { color: var(--grey); padding: 0 2px; }
.pager .small { flex-basis: 100%; text-align: center; color: var(--grey); margin: 4px 0 0; }
/* Home-style tabs above the results */
.cats { display: flex; gap: 8px; margin: 0 0 20px; padding-bottom: 2px; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px; border: 1.5px solid var(--grey-light); border-radius: 999px; color: var(--navy); font-size: 14px; font-weight: 600; text-decoration: none; background: #fff; }
.cat span { font-weight: 500; font-size: 13px; color: var(--grey); }
.cat:hover { border-color: var(--navy); }
.cat.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.cat.on span { color: var(--on-navy, #c6cbcb); }
.map-toggle .narrow { display: none; }
@media (max-width: 1099px) {
  .map-toggle .wide { display: none; }
  .map-toggle .narrow { display: inline; }
}
.empty { grid-column: 1 / -1; background: var(--mist); padding: 36px; display: flex; flex-direction: column; gap: 10px; }
.area-summary { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 16px 40px; background: var(--mist); padding: 20px 24px; margin-bottom: 26px; }
.area-summary div { display: flex; flex-direction: column; gap: 2px; }
.area-summary .k { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.area-summary b { font-family: var(--serif); font-weight: 400; font-size: 26px; color: var(--navy); }
.area-summary .small { flex-basis: 100%; }

.map { width: 100%; height: 100%; min-height: 320px; background: var(--mist); }
.pin { display: block; background: var(--navy); color: #fff; font: 600 12px/1 var(--sans); padding: 6px 8px; text-decoration: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); white-space: nowrap; cursor: pointer; }
.pin:hover, .pin:focus { background: #c8102e; color: #fff; z-index: 2; }
.pin.dot { width: 18px; height: 18px; padding: 0; border-radius: 50%; border: 3px solid #fff; }
@media (min-width: 1100px) {
  .map-open .results-layout { max-width: none; display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 42%); gap: 24px; padding-right: 0; }
  .map-open .results-map { position: sticky; top: 0; height: 100vh; }
  .map-open .listings { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}
@media (max-width: 1099px) {
  .map-open .results-map { position: fixed; inset: 0; z-index: 20; }
  .map-open .map-toggle { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 21; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
}
/* Filters fold behind a button on phones (search.js closes them there); always open on larger screens. */
.filters-box > summary { display: none; }
.filters-box .quadrants { margin-top: 16px; }
@media (max-width: 640px) {
  .search-q input { font-size: 16px; }
  .map-toggle:not([hidden]) { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); z-index: 21; border-radius: 999px; padding: 10px 26px; box-shadow: 0 8px 24px rgba(9, 12, 58, 0.3); }
  .filters-box > summary { display: flex; align-items: center; justify-content: center; min-height: 46px; border: 1.5px solid var(--navy); color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer; list-style: none; }
  .filters-box > summary::-webkit-details-marker { display: none; }
  .filters-box[open] > summary { margin-bottom: 16px; }
  .picks { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 14px 14px 2px; scrollbar-width: none; }
  .picks .pick, .picks span { flex-shrink: 0; }
  .search-main { flex-direction: column; }
  .search-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .seg span { padding: 8px 12px; }
  .sort { margin-left: 0; }
}

.ddf-notice { border-top: 1px solid var(--rule); }
.ddf-notice .wrap { padding-top: 28px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 12px; line-height: 1.6; color: var(--grey); }

/* Search box suggestions */
.has-suggest { position: relative; }
.suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 25; list-style: none; margin: 0; padding: 6px 0; background: #fff; border: 1px solid var(--rule); box-shadow: 0 18px 44px rgba(9, 12, 58, 0.18); max-height: min(70vh, 460px); overflow-y: auto; text-align: left; }
.suggest .s-head { padding: 10px 16px 4px; font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); font-weight: 600; }
.suggest [role="option"] { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; cursor: pointer; color: var(--ink); }
.suggest [role="option"][aria-selected="true"], .suggest [role="option"]:hover { background: var(--mist); }
.suggest .s-main { display: flex; flex-direction: column; min-width: 0; }
.suggest .s-label { font-size: 15px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest .s-sub { font-size: 12px; color: var(--grey); }
.suggest b { font-family: var(--serif); font-weight: 400; font-size: 17px; color: var(--navy); white-space: nowrap; }
.suggest em { font-style: normal; font-size: 12px; color: var(--grey); white-space: nowrap; }

/* Quick price and bedroom picks */
.quick { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 16px; }
.quick-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; border: 0; padding: 0; margin: 0; }
.quick-label { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--grey); font-weight: 600; margin-right: 6px; padding: 0; float: left; }
.qchip { min-height: 40px; padding: 8px 14px; font: inherit; font-size: 14px; font-weight: 600; background: #fff; color: var(--navy); border: 1px solid var(--grey-light); cursor: pointer; }
.qchip:hover { border-color: var(--navy); }
.qchip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.quick-group.beds .seg span { min-height: 40px; padding: 8px 13px; }

/* Filters in use, as removable pills */
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 20px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 12px; background: var(--mist); color: var(--navy); font-size: 13px; font-weight: 600; text-decoration: none; }
.pill span { font-size: 17px; line-height: 1; color: var(--grey); }
.pill:hover { background: var(--navy); color: #fff; }
.pill:hover span { color: #fff; }
.pill.clear { background: none; text-decoration: underline; }
.pill.clear:hover { color: var(--navy); background: none; }

/* Loading: a thin moving bar, results dim slightly */
.loading-bar { height: 3px; margin: -14px 0 11px; background: linear-gradient(90deg, transparent, var(--navy), transparent) no-repeat; background-size: 40% 100%; opacity: 0; }
.is-loading .loading-bar { opacity: 1; animation: slide 0.9s linear infinite; }
.is-loading .listings { opacity: 0.55; }
@keyframes slide { from { background-position: -40% 0; } to { background-position: 140% 0; } }
@media (prefers-reduced-motion: reduce) { .is-loading .loading-bar { animation: none; } }

.map-follow { position: absolute; top: 12px; left: 12px; z-index: 2; display: flex; align-items: center; gap: 8px; background: #fff; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--navy); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15); cursor: pointer; }
.map-follow input { width: 18px; height: 18px; accent-color: var(--navy); margin: 0; }
.results-map { position: relative; }
.show-results { display: none; }
@media (max-width: 640px) {
  .quick { gap: 12px; }
  .quick-group { flex-wrap: nowrap; overflow-x: auto; margin: 0 -14px; padding: 0 14px 4px; scrollbar-width: none; }
  .quick-group > * { flex-shrink: 0; }
  body:has(.filters-box[open]) .map-toggle { display: none; }
  .show-results { display: flex; width: 100%; margin-top: 16px; }
}

/* Home page search bar */
.home-search { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
.home-search .search-main { background: #fff; padding: 8px; box-shadow: 0 18px 50px rgba(9, 12, 58, 0.14); }
.home-search .search-q { border: 0; }
.home-search .picks { border: 0; padding-top: 0; }
.home-search .pick { background: #fff; }
.home-search .pick:hover { background: var(--navy); }

/* ---------- Listing page ---------- */
.listing-page .wrap { padding-top: 20px; padding-bottom: 64px; display: flex; flex-direction: column; gap: 24px; }
.gallery { position: relative; display: grid; gap: 6px; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); height: clamp(280px, 48vw, 540px); }
.gallery > button { padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; overflow: hidden; }
.gallery > button .photo { aspect-ratio: auto; height: 100%; }
.gallery .g0 { grid-row: 1 / 3; }
.gallery .g0:only-of-type { grid-column: 1 / -1; }
.gallery > .all-photos { position: absolute; right: 14px; bottom: 14px; background: #fff; color: var(--navy); border: 0; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2); }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 1fr; height: auto; }
  .gallery .g0 { grid-row: auto; }
  .gallery .g0 .photo { aspect-ratio: 4 / 3; }
  .gallery > button:not(.g0):not(.all-photos) { display: none; }
}
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(5, 6, 25, 0.96); color: #fff; }
.lightbox[open] { display: flex; align-items: center; justify-content: center; }
.lightbox::backdrop { background: rgba(5, 6, 25, 0.9); }
.lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 100px); object-fit: contain; }
.lb-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; font-size: 14px; }
.lb-top button, .lb-prev, .lb-next { background: none; border: 0; color: #fff; font: inherit; cursor: pointer; }
.lb-prev, .lb-next { position: absolute; top: 50%; transform: translateY(-50%); font-size: 56px; line-height: 1; padding: 10px 18px; }
.lb-prev { left: 4px; }
.lb-next { right: 4px; }
@media (max-width: 640px) { .lightbox img { max-width: 100vw; } }

.lp-layout { display: grid; gap: clamp(28px, 5vw, 56px); grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
@media (max-width: 960px) { .lp-layout { grid-template-columns: 1fr; } }
.lp-main { display: flex; flex-direction: column; gap: 28px; }
.lp-head { display: flex; flex-direction: column; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--rule); }
.lp-price { font-family: var(--serif); font-size: clamp(34px, 4.5vw, 46px); color: var(--navy); line-height: 1.05; }
.lp-head h1 { font-family: var(--sans); font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; color: var(--ink); line-height: 1.3; }
.lp-where { color: var(--grey); font-size: 15px; }
.facts.big { font-size: 16px; margin-top: 6px; }
.lp-brokerage { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.lp-brokerage .brokerage { font-size: 15px; font-weight: 600; color: var(--ink); }
.lp-section { display: flex; flex-direction: column; gap: 14px; }
.lp-section h2 { font-size: clamp(24px, 3vw, 30px); }
.remarks { font-size: 16px; line-height: 1.75; color: var(--body); white-space: pre-line; }
.details { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 0 32px; margin: 0; }
.details div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--rule); font-size: 14px; }
.details dt { color: var(--grey); }
.details dd { margin: 0; text-align: right; font-weight: 600; color: var(--ink); }
.small-map { height: 340px; }
.lp-side { position: sticky; top: 16px; }
.lp-card { border: 1px solid var(--rule); padding: 24px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 14px 40px rgba(9, 12, 58, 0.08); }
.lp-card h2 { font-size: 26px; }
.lp-card .form { padding: 0; }
.similar { padding-top: 28px; border-top: 1px solid var(--rule); }

/* ---------- Visual refresh (Oct 2026): sticky header, photo heroes, icon cards, area cards, agent card ---------- */
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* Sticky header; a soft shadow appears once the page scrolls. */
.site-header { position: sticky; top: 0; z-index: 30; transition: box-shadow 0.2s; }
.site-header.scrolled { box-shadow: 0 6px 24px rgba(9, 12, 58, 0.08); }
.map-open .site-header { position: relative; }
.lp-side { top: 96px; }
.site-nav a:not(.btn):not(.phone) { position: relative; }
.site-nav a:not(.btn):not(.phone)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--navy); transform: scaleX(0); transition: transform 0.2s; }
.site-nav a:not(.btn):not(.phone):hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; background: #fff; border: 1.5px solid var(--navy); color: var(--navy); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
@media (max-width: 1080px) {
  .js .site-header .menu-btn { display: inline-flex; }
  .js .site-header .wrap { flex-wrap: nowrap; }
  .js .site-header .site-nav { display: none; }
  .js .site-header.menu-open .wrap { flex-wrap: wrap; }
  .js .site-header.menu-open .site-nav { display: flex; flex-direction: column; align-items: stretch; flex-basis: 100%; gap: 0; padding: 8px 0 12px; border-top: 1px solid var(--rule); font-size: 16px; }
  .js .site-header.menu-open .site-nav a:not(.btn) { padding: 13px 0; border-bottom: 1px solid var(--rule); }
  .js .site-header.menu-open .site-nav a::after { display: none; }
  .js .site-header.menu-open .site-nav .btn { margin-top: 14px; min-height: 48px; }
}
@media (max-width: 420px) { .brand-mark { width: 44px; height: 44px; font-size: 17px; } }

/* Photo hero: text on the left, a framed photo with a small fact card on the right. */
.hero.has-photo .wrap { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); }
.hero.has-photo .wrap > * { min-width: 0; }
.hero-media { position: relative; margin: 0; }
.hero-media::before { content: ""; position: absolute; inset: 28px -18px -18px 28px; border: 2px solid var(--grey-light); pointer-events: none; }
.hero-media img { position: relative; width: 100%; height: clamp(340px, 42vw, 560px); object-fit: cover; box-shadow: 0 30px 60px rgba(9, 12, 58, 0.18); }
.hero-media figcaption { position: absolute; left: -24px; bottom: 28px; background: #fff; padding: 14px 18px; display: flex; align-items: center; gap: 12px; box-shadow: 0 14px 34px rgba(9, 12, 58, 0.16); font-size: 13px; line-height: 1.4; color: var(--body); max-width: 290px; }
.hero-media figcaption b { display: block; color: var(--navy); font-size: 14px; }
.hero-media figcaption .icon { width: 26px; height: 26px; color: var(--navy); }
@media (max-width: 900px) {
  .hero.has-photo .wrap { grid-template-columns: 1fr; }
  .hero-media::before { inset: 16px -10px -10px 16px; }
  .hero-media img { height: clamp(260px, 70vw, 420px); }
  .hero-media figcaption { left: 12px; bottom: 12px; }
}

/* Icon badge used on cards, steps and area cards. */
.ic { width: 52px; height: 52px; border-radius: 50%; background: var(--mist); color: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ic .icon { width: 24px; height: 24px; }
.mist .ic { background: #fff; }
.dark .ic { background: rgba(255, 255, 255, 0.08); color: #fff; }

/* Cards lift a little on hover when they hold a link. */
.card { transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; }
.card:has(a):hover { box-shadow: 0 16px 40px rgba(9, 12, 58, 0.1); transform: translateY(-3px); border-color: var(--grey-light); }
.card h3 { font-size: 18px; line-height: 1.35; }
.card .text-link { display: inline-flex; align-items: center; gap: 6px; }
.card .num { font-size: 44px; display: flex; align-items: center; gap: 14px; }
.card .num::after { content: ""; height: 2px; width: 32px; background: var(--grey-light); }
.card.pro { gap: 14px; }
.card.pro > div { display: flex; flex-direction: column; gap: 8px; flex: 1; }

/* Numbered steps get a navy disc. */
.steps .n { min-width: 48px; width: 48px; height: 48px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; }
.dark .steps .n { background: #fff; color: var(--navy); }

/* Stats band: larger figures. */
.stat b { font-size: clamp(36px, 4vw, 48px); }
.stat { border-left-width: 2px; border-left-color: var(--grey-mid); }

/* Area cards: navy head with icon and a sourced figure, white body. */
.area-card { display: flex; flex-direction: column; border: 1px solid var(--rule); background: #fff; text-decoration: none; color: var(--ink); transition: box-shadow 0.2s, transform 0.2s; }
.area-card:hover { box-shadow: 0 16px 40px rgba(9, 12, 58, 0.12); transform: translateY(-3px); color: var(--ink); }
.area-head { background: var(--navy) linear-gradient(135deg, #090c3a 0%, #151a5e 100%); color: #fff; padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.area-head::after { content: ""; position: absolute; right: -40px; top: -40px; width: 160px; height: 160px; border: 2px solid rgba(255, 255, 255, 0.08); border-radius: 50%; }
.area-head .eyebrow { color: var(--grey-light); }
.area-head h3 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 32px; }
.area-figure { display: flex; flex-direction: column; gap: 2px; }
.area-figure b { font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.1; }
.area-figure span { font-size: 12px; color: var(--grey-light); }
.area-body { padding: 22px 26px 26px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.area-body p { font-size: 15px; color: var(--body); }
.area-body .text-link { margin-top: auto; }

/* Agent card: photo, name and direct lines, used next to forms. */
.agent-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--rule); padding: 14px; max-width: 460px; }
.mist .agent-card { border-color: #fff; }
.agent-card img { width: 96px; height: 96px; object-fit: cover; object-position: 50% 22%; border-radius: 50%; }
.agent-card b { font-family: var(--serif); font-weight: 400; font-size: 21px; color: var(--navy); display: block; }
.agent-card span { font-size: 13px; color: var(--grey); }
.contact-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.contact-lines li { display: flex; align-items: center; gap: 12px; }
.contact-lines .ic { width: 42px; height: 42px; }
.contact-lines .ic .icon { width: 19px; height: 19px; }
.contact-lines a { font-weight: 600; text-decoration: none; }
.side-photo { width: 100%; height: clamp(240px, 30vw, 360px); object-fit: cover; }

/* FAQ: plus/minus marker instead of the default triangle. */
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 400; font-size: 26px; line-height: 1; color: var(--navy); width: 34px; height: 34px; flex-shrink: 0; border: 1.5px solid var(--grey-light); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: transform 0.2s, background 0.2s; }
.faq details[open] summary::after { content: "−"; background: var(--navy); border-color: var(--navy); color: #fff; }

/* Tags and chips. */
.tag { transition: background 0.15s, color 0.15s, border-color 0.15s; }
a.tag { text-decoration: none; }
a.tag:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
@media (max-width: 640px) {
  .chips { flex-wrap: nowrap; overflow-x: auto; margin-left: -24px; margin-right: -24px; padding: 0 24px 4px; scrollbar-width: none; }
  .chip { flex-shrink: 0; }
}

/* Price tiles get a navy rule on top. */
.tile { border-top: 3px solid var(--navy); background: #fff; }

/* Community byline in heroes. */
.hero .byline img { width: 52px; height: 52px; border: 2px solid #fff; box-shadow: 0 4px 12px rgba(9, 12, 58, 0.15); }
.byline b { color: var(--navy); }

@media (prefers-reduced-motion: reduce) {
  .card, .area-card, .listing, .site-nav a::after, .faq summary::after { transition: none !important; }
  .card:has(a):hover, .area-card:hover, .listing:hover { transform: none; }
}
.area-head h2 { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 32px; }

/* Areas map sketch (communities page). */
.area-map { margin: 0; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.area-map svg { width: 100%; max-width: 400px; height: auto; font-family: var(--sans); }
.area-map text { font-size: 15px; font-weight: 600; fill: var(--navy); text-anchor: middle; }
.area-map .q { fill: #fff; stroke: var(--grey-light); stroke-width: 1.5; transition: fill 0.15s; }
.area-map .q.home { fill: var(--navy); stroke: var(--navy); }
.area-map text.on { fill: #fff; }
.area-map a:hover .q:not(.home), .area-map a:focus .q:not(.home) { fill: #e9ecf6; }
.area-map .core { fill: var(--mist); stroke: var(--navy); stroke-width: 1.5; }
.area-map .town rect { fill: #fff; stroke: var(--navy); stroke-width: 1.5; }
.area-map .town a:hover rect { fill: #e9ecf6; }
.area-map .road { stroke: var(--grey-mid); stroke-width: 2; stroke-dasharray: 4 5; fill: none; }
.area-map .office circle { fill: #fff; stroke: var(--navy); stroke-width: 3; }
.area-map .office text { fill: #fff; font-size: 12px; font-weight: 600; }
.area-map .office text { text-anchor: end; }

/* Phone tweaks for the refresh. */
.brand-name b { white-space: nowrap; }
@media (max-width: 640px) {
  .card.pro { flex-direction: row; align-items: flex-start; padding: 18px; gap: 14px; }
  .card.pro .ic { width: 44px; height: 44px; }
  .card.pro .ic .icon { width: 20px; height: 20px; }
  .hero-media figcaption { padding: 10px 12px; font-size: 12px; max-width: 250px; }
  .hero-media figcaption b { font-size: 13px; }
  .area-head { padding: 22px; }
  .area-body { padding: 20px 22px 22px; }
}
@media (max-width: 420px) {
  .brand { gap: 10px; }
  .brand-name b { font-size: 17px; }
  .brand-name span { font-size: 9.5px; letter-spacing: 1.2px; }
}

/* "Homes for sale in <area>" strip under community and town guide heroes. */
.listings-strip { background: var(--navy) linear-gradient(135deg, #090c3a 0%, #151a5e 100%); color: #fff; }
.listings-strip .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding-top: 26px; padding-bottom: 26px; }
.listings-strip .stack { flex: 1 1 320px; }
.listings-strip h2 { color: #fff; font-size: clamp(22px, 2.6vw, 28px); }
.listings-strip p { color: var(--on-navy); font-size: 15px; }
.listings-strip .ic { background: rgba(255, 255, 255, 0.1); color: #fff; }
.listings-strip .btn { background: #fff; color: var(--navy); border-color: #fff; }
.listings-strip .btn:hover { background: var(--mist); color: var(--navy); }
.foot-searches { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.foot-searches h3 { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: #fff; font-weight: 600; margin: 0; }
.site-footer .tag { background: transparent; border-color: var(--navy-line); color: var(--grey-light); }
.site-footer a.tag:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* Home page hero: "What's your home worth?" form in place of a photo. */
.value-card { background: #fff; border-top: 4px solid var(--navy); box-shadow: 0 30px 60px rgba(9, 12, 58, 0.14); gap: 14px; }
.value-card h2 { font-size: clamp(26px, 3vw, 34px); }
.value-card .muted { font-size: 14px; }
.value-card .btn { width: 100%; }
.value-card label { gap: 4px; }
.value-card input[type="text"], .value-card input[type="email"], .value-card input[type="tel"], .value-card select { min-height: 46px; }

/* Home page: newest listings right under the hero (filled in by functions/index.js). */
.home-listings { padding-top: clamp(40px, 6vw, 64px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 24px; margin-bottom: 28px; }
.home-notice { margin-top: 24px; color: var(--grey); line-height: 1.6; }

/* Text and Call buttons that stay on screen while scrolling: a bar along the bottom on phones, two round buttons on larger screens. */
.quick-contact { position: fixed; z-index: 25; display: flex; }
.quick-contact a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15px; background: var(--navy); color: #fff; }
.quick-contact a:hover { background: #1b1f5a; color: #fff; }
.quick-contact .icon { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .quick-contact { left: 0; right: 0; bottom: 0; padding-bottom: env(safe-area-inset-bottom); background: var(--navy); box-shadow: 0 -6px 20px rgba(9, 12, 58, 0.18); }
  .quick-contact a { flex: 1; min-height: 56px; }
  .quick-contact a + a { border-left: 1px solid var(--navy-line); }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
  .map-open .quick-contact { display: none; }
}
@media (min-width: 761px) {
  .quick-contact { right: 22px; bottom: 22px; flex-direction: column; gap: 12px; }
  .quick-contact a { min-height: 52px; padding: 0 20px 0 16px; border-radius: 26px; box-shadow: 0 10px 28px rgba(9, 12, 58, 0.28); }
}
/* Home search on phones: the floating Map button sits above the Text/Call bar (the bar hides while the map is open). */
@media (max-width: 640px) {
  body:not(.map-open) .map-toggle:not([hidden]) { bottom: calc(70px + env(safe-area-inset-bottom)); }
}
/* Home page newest listings: always full rows (9 cards = 3 x 3 on a computer; 8 = 4 rows of 2 on a tablet). */
@media (min-width: 600px) { .home-listings .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 600px) and (max-width: 959px) { .home-listings .listing:nth-child(9) { display: none; } }
@media (min-width: 960px) { .home-listings .listings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Home: search bar with the 9 newest homes right under it (Ezra, Oct 29) */
.home-listings .home-search { max-width: none; margin-bottom: 36px; }
.home-listings .home-search .search-main { border: 1.5px solid var(--grey-light); box-shadow: 0 12px 34px rgba(9, 12, 58, 0.08); }
.home-listings .home-search .pick { background: var(--mist); }
.home-listings .home-search .pick:hover { background: var(--navy); }
.home-new h3 { font-size: 22px; margin: 0 0 18px; }
