:root {
    --navy: #0c3f8f;
    --navy-2: #0a3478;
    --blue: #1557d6;
    --red: #e10600;
    --ink: #10224a;
    --muted: #5d6d86;
    --line: #e6edf5;
    --ice: #f5f8fc;
    --white: #fff;
    --sans: "Segoe UI", system-ui, sans-serif;
    --serif: Georgia, "Times New Roman", serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: var(--sans); line-height: 1.5; }
img { max-width: 100%; display: block; }
a { color: var(--navy); text-decoration: none; }
h1, h2, h3 { margin: 0 0 .45rem; line-height: 1.12; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
p { margin: 0 0 .75rem; }
.wrap { width: min(1180px, calc(100% - 2.4rem)); margin: 0 auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; z-index: 9; padding: .4rem; }
.rule { display: block; width: 72px; height: 4px; background: var(--red); border-radius: 4px; margin: .7rem 0 1rem; }
.kicker { color: var(--red); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .78rem; }
.muted { color: var(--muted); }
.flash { background: #e8f7ee; color: #0d6b3a; margin: 0; padding: .75rem 1.2rem; font-weight: 700; }
.error { color: var(--red); font-weight: 700; }

.logo { flex: none; color: inherit; }
.brand { display: flex; flex-direction: column; line-height: 1; color: #1a56e8; }
.brand-row { display: flex; align-items: center; gap: .28rem; }
.brand-house { width: 30px; height: 30px; fill: currentColor; }
.brand-word { font-size: 1.72rem; font-weight: 800; letter-spacing: -.04em; }
.brand-word span { color: #e10600; }
.brand-tag { margin: .18rem 0 0 2.05rem; font-size: .68rem; color: #8b97a8; font-weight: 500; letter-spacing: .01em; }
.brand.light, .brand.light .brand-word span, .brand.light .brand-tag { color: #fff; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
    background: var(--blue); color: #fff; border: 0; border-radius: 10px;
    padding: .72rem 1.15rem; font-weight: 750; cursor: pointer; font: inherit;
}
.btn.pill { border-radius: 8px; padding: .62rem 1.05rem; background: #1d4ed8; flex: none; white-space: nowrap; }
.btn.red { background: var(--red); }
.btn.wide { width: 100%; }
.btn.ghost { background: #fff; color: var(--blue); border: 1.5px solid #c9d7ee; }
.btn:hover { filter: brightness(1.06); }

.hero {
    position: relative; min-height: 460px; color: #fff;
    background: #123 url("../img/terrace.jpg") center 40% / cover no-repeat;
    display: flex; align-items: flex-end;
}
.hero::before {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.2), rgba(255,255,255,.55) 45%, #fff 92%);
}
.hero-copy { position: relative; padding: 4.5rem 0 0; color: var(--ink); }
.hero h1 { max-width: 16ch; }
.search {
    display: grid; grid-template-columns: 1.3fr 1fr .7fr 1.5fr auto; gap: .6rem; align-items: end;
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    box-shadow: 0 10px 30px rgba(16, 34, 74, .08); padding: .85rem; margin: 1.2rem 0 1.6rem;
}
.search label, .stack label, .calc label { display: grid; gap: .3rem; font-size: .82rem; font-weight: 750; color: var(--muted); }
.price-range { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .45rem; }
input, select, textarea {
    width: 100%; border: 1px solid #d5e0ee; border-radius: 10px; padding: .68rem .75rem;
    font: inherit; color: var(--ink); background: #fff;
}
.section { padding: 2.2rem 0 2.6rem; }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 1rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.card-media { height: 190px; background-size: cover; background-position: center; display: block; position: relative; }
.card-body { padding: .9rem 1rem 1.05rem; }
.card h3 { font-size: 1.05rem; }
.price { font-size: 1.35rem; font-weight: 800; margin: 0; }
.meta { color: var(--muted); font-size: .92rem; }
.badge {
    position: absolute; top: .7rem; left: .7rem; background: var(--red); color: #fff;
    font-size: .72rem; font-weight: 800; border-radius: 999px; padding: .18rem .5rem;
}
.badge.quiet { left: auto; right: .7rem; background: #fff; color: var(--navy); }

.clubs { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; }
.club {
    background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem;
    box-shadow: 0 8px 24px rgba(16, 34, 74, .04);
}
.club h3 { font-size: 1rem; }
.bubble {
    width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
    color: #fff; font-weight: 800; margin-bottom: .6rem;
}
.bubble.blue { background: var(--blue); }
.bubble.red { background: var(--red); }
.icon-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.icon-row article, .mini { text-align: left; }

.band { background: var(--navy); color: #fff; border-radius: 16px; padding: 1.2rem 1.3rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.2rem; }
.band h2, .band p { color: #fff; }
.band .btn { background: #fff; color: var(--navy); }
.band.red { background: var(--red); }

.page-hero { padding: 1.6rem 0 0; }
.crumb { color: var(--muted); font-size: .92rem; margin-bottom: .6rem; }
.crumb a { color: var(--red); font-weight: 700; }
.lead { max-width: 62ch; color: #3d4d66; font-size: 1.05rem; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 1.1rem 1.2rem; box-shadow: 0 10px 28px rgba(16,34,74,.05); }
.split { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; align-items: start; }
.steps-line { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6rem; text-align: center; }
.steps-line span, .num {
    width: 46px; height: 46px; border-radius: 50%; background: var(--blue); color: #fff;
    display: inline-grid; place-items: center; font-weight: 800;
}
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: .7rem .75rem; border-bottom: 1px solid var(--line); }
th { background: #f7f9fc; font-size: .85rem; }
.fee { color: var(--red); font-weight: 800; font-size: 1.8rem; }

.property { display: grid; grid-template-columns: 1.4fr .75fr; gap: 1.2rem; padding: 1.4rem 0 2rem; }
.gallery { height: 360px; border-radius: 18px; background-size: cover; background-position: center; position: relative; }
.owner { position: sticky; top: 96px; }
.ticks { padding-left: 1.1rem; }
.narrow { width: min(640px, calc(100% - 2rem)); }
.stack { display: grid; gap: .75rem; }
.roles { border: 1px solid var(--line); border-radius: 12px; display: flex; gap: 1rem; padding: .8rem; }

.banner { position: relative; background: #fff; --banner-h: 520px; }
.banner > img { width: 100%; height: var(--banner-h); object-fit: cover; object-position: 78% 70%; display: block; }
.banner::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--banner-h); pointer-events: none;
    background: linear-gradient(90deg, rgba(247,247,248,1) 0%, rgba(247,247,248,.98) 28%, rgba(247,247,248,.7) 34%, rgba(247,247,248,.2) 40%, rgba(247,247,248,0) 45%);
}
.banner-copy { position: absolute; left: 0; right: 0; top: 100px; z-index: 1; }
.banner-copy h1 { display: flex; flex-direction: column; margin: 0; font-family: var(--serif); font-size: 68px; font-weight: 700; color: #0b1e4a; max-width: none; line-height: 87px; letter-spacing: -.015em; }
.banner-copy h1 span, .banner-copy p span { display: block; white-space: nowrap; }
.banner-copy p { display: flex; flex-direction: column; margin: 20px 0 0; font-size: 25px; color: #474747; max-width: none; font-weight: 400; line-height: 35px; }
.finder {
    position: relative; margin-top: -67px; z-index: 2;
    display: flex; align-items: center; gap: 0; box-sizing: border-box; height: 134px;
    background: #fff; border: 1px solid #e8ebf0; border-radius: 14px;
    box-shadow: 0 12px 30px rgba(16, 34, 74, .10); padding: 0 17px;
}
.finder-cluster {
    display: flex; align-items: stretch; flex: 1 1 auto; min-width: 0; height: 91px;
    border: 1px solid #e3e6eb; border-radius: 10px; overflow: hidden;
}
.fcell { display: flex; align-items: center; gap: 15px; padding: 0 14px; min-width: 0; position: relative; }
.fcell:not(:last-child)::after {
    content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 1px; background: #e3e6eb;
}
.fcell.loc { flex: 280 1 0; gap: 13px; }
.fcell.buy { flex: 190 1 0; padding-left: 19px; }
.fcell.beds { flex: 177 1 0; padding-left: 19px; }
.fico { flex: none; display: grid; place-items: center; color: #0b1e4a; }
.ftext { display: flex; flex-direction: column; justify-content: center; gap: 5px; min-width: 0; flex: 1; }
.flab { font-size: 15px; font-weight: 700; color: #16181d; line-height: 22px; }
.finder svg { width: 24px; height: 24px; fill: none; stroke: #16181d; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.finder .loc svg { width: 26px; height: 39px; stroke-width: 1.8; }
.finder .buy svg { width: 29px; height: 29px; }
.finder .beds svg { width: 43px; height: 29px; stroke-width: 1.5; }
.finder svg.fill { fill: #0b1e4a; stroke: none; }
.facts svg, .clubbar a svg { width: 18px; height: 18px; fill: none; stroke: #5d6d82; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.finder .ftext > input, .finder .ftext > select {
    border: 0; border-radius: 0; padding: 0; margin: 0; height: 22px; box-shadow: none;
    font-size: 14px; background: transparent; width: 100%; line-height: 22px;
}
.finder input[type="search"] { -webkit-appearance: none; appearance: none; color: #16181d; font-weight: 400; }
.finder input[type="search"]::-webkit-search-decoration,
.finder input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.finder .ftext > input::placeholder { color: #5f6368; font-weight: 400; font-size: 14px; opacity: 1; }
.finder .ftext > select.muted-val { color: #5f6368; font-size: 15px; font-weight: 400; appearance: none; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10'%3E%3Cpath fill='none' stroke='%2316181d' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1.5 1.5 8 8l6.5-6.5'/%3E%3C/svg%3E") right 2px center / 17px 11px no-repeat; padding-right: 26px; }
.finder input:focus, .finder select:focus { outline: none; }
.finder-price-panel {
    flex: 0 0 271px; box-sizing: border-box; height: 91px; margin-left: 17px;
    border: 1px solid #e3e6eb; border-radius: 10px; padding: 11px 9px 8px;
    display: flex; flex-direction: column; justify-content: space-between;
}
.price-head { display: flex; align-items: center; gap: 12px; padding-left: 7px; font-size: 15px; font-weight: 700; color: #16181d; line-height: 22px; }
.price-sym { font-family: var(--serif); font-size: 24px; font-weight: 700; color: #0b1e4a; line-height: 22px; }
.price-row { display: flex; align-items: center; gap: 8px; }
.price-box {
    display: flex; align-items: center; justify-content: space-between; gap: 8px; box-sizing: border-box;
    width: 121px; height: 44px; margin: 0; border: 1px solid #e3e6eb; border-radius: 6px;
    padding: 0 9px; background: #fff;
}
.price-box em { font-style: normal; color: #16181d; font-weight: 400; font-size: 14px; flex: none; }
.price-box input {
    border: 0; padding: 0; margin: 0; width: auto; min-width: 0; flex: 1; text-align: right;
    font-weight: 400; font-size: 14px; color: #16181d; background: transparent; box-shadow: none;
}
.finder-go {
    flex: 0 0 192px; align-self: center; margin-left: 15px; border-radius: 9px; white-space: nowrap; justify-content: center;
    background: #0a3a8f; padding: 0 16px; height: 61px; min-height: 0; font-weight: 600; font-size: 18px; gap: 11px;
}
.finder-go svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2.4; }
@media (max-width: 980px) {
    .finder-price-panel, .finder-go { margin-left: 0; }
    .finder { flex-wrap: wrap; height: auto; gap: 12px; padding: 14px; }
    .finder-cluster { flex: 1 1 100%; flex-wrap: wrap; }
    .fcell { flex: 1 1 45%; }
    .fcell:not(:last-child)::after { display: none; }
}
.homes { padding: 2.6rem 0 .6rem; }
.homes .section-head { align-items: center; margin-bottom: 20px; }
.homes h2 { margin: 0; font-family: var(--serif); font-size: 34px; font-weight: 700; color: #0b1a3c; letter-spacing: -.01em; }
.home-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.shot { display: flex; flex-direction: column; color: inherit; border: 1px solid #e5e7eb; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.shot-photo { display: block; aspect-ratio: 311 / 192; background-size: cover; background-position: center; position: relative; }
.shot-tag { position: absolute; top: 14px; left: 12px; height: 30px; display: inline-flex; align-items: center; background: #0a3a8f; color: #fff; font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: .01em; text-transform: uppercase; border-radius: 6px; padding: 0 10px; }
.shot-tag.rent { background: #0a3a8f; }
.shot-body { display: flex; flex-direction: column; padding: 16px 20px 18px 18px; gap: 0; }
.shot-body strong { font-family: var(--sans); font-size: 26px; font-weight: 700; color: #0b1426; line-height: 36px; letter-spacing: -.01em; }
.shot-title { color: #1c1c1f; font-size: 17px; font-weight: 400; line-height: 26px; margin-top: 2px; }
.shot-body em { color: #1c1c1f; font-style: normal; font-size: 17px; font-weight: 400; line-height: 26px; }
.facts { display: flex; align-items: center; gap: 0; color: #1c1c1f; margin-top: 14px; font-weight: 400; font-size: 18px; line-height: 1; }
.facts .fact { display: inline-flex; align-items: center; gap: 12px; }
.facts .fact.bath { margin-left: 38px; }
.facts .fact svg { width: 30px; height: 26px; fill: none; stroke: #1c1c1f; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.facts .fact.bath svg { width: 27px; height: 25px; }
.facts .heart { margin-left: auto; display: inline-flex; }
.facts .heart svg { width: 28px; height: 28px; fill: none; stroke: #1c1c1f; stroke-width: 1.5; stroke-linejoin: round; }
.view-all { display: inline-flex; align-items: center; gap: 10px; color: #0b1020; font-weight: 500; font-size: 17px; }
.listed { padding-top: 3rem; }
.listed-more { display: flex; justify-content: center; margin-top: 32px; }
.listed-btn {
    display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 28px; border-radius: 9px;
    background: #0a3a8f; color: #fff; font-size: 16px; font-weight: 600;
}
.listed-btn:hover { background: #082f75; }
.listed-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.view-all svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.clubbar {
    margin: 1.35rem 0 .5rem; border: 1px solid #e2e8f0; border-radius: 14px;
    display: grid; grid-template-columns: 220px repeat(5, 1fr) auto; gap: 0; align-items: stretch;
    padding: 1rem .75rem; background: #f3f5f8;
}
.clubbar-brand { display: flex; gap: .75rem; align-items: center; padding: .2rem .6rem .2rem .35rem; border-right: 1px solid #dde4ec; }
.clubbar-brand strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; color: #0a2347; display: block; }
.clubbar-brand p { margin: .35rem 0 0; color: #4d5d75; font-size: .78rem; line-height: 1.35; max-width: 16ch; }
.shield-svg { width: 56px; height: 56px; flex: none; }
.club-item {
    display: grid; gap: .35rem; align-content: start; color: var(--ink);
    border-left: 1px solid #dde4ec; padding: .35rem .65rem; min-width: 0;
}
.club-ico { width: 28px; height: 28px; display: grid; place-items: center; color: #023e9a; }
.club-item svg { width: 24px; height: 24px; fill: #023e9a; stroke: none; }
.club-item b { font-size: .82rem; font-weight: 700; color: #0a2347; line-height: 1.2; }
.club-desc { color: #5c6b80; font-size: .7rem; line-height: 1.3; }
.club-join { align-self: center; white-space: nowrap; border-radius: 8px; margin: 0 .25rem 0 .5rem; background: #023e9a; padding: .75rem .95rem; font-weight: 700; font-size: .92rem; }
.cms-block { padding: 48px 0; }
.cms-block.tone-ice { background: #f4f6fa; }
.cms-block.tone-blue { background: #0b3d9e; color: #fff; }
.cms-block.tone-red { background: #c8102e; color: #fff; }
.cms-block.tone-blue :where(h2, h3, p), .cms-block.tone-red :where(h2, h3, p) { color: #fff; }
.cms-block h2 { font-size: 32px; margin-bottom: 14px; }
.cms-rich { font-size: 17px; line-height: 1.7; color: #2f3747; }
.tone-blue .cms-rich, .tone-red .cms-rich { color: #fff; }
.cms-rich p { margin: 0 0 1em; }
.cms-center { text-align: center; }
.cms-sub { color: #5b6475; margin: -4px 0 24px; }
.cms-cta-in { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.cms-cta-in p { margin: 0; font-size: 17px; }
.tone-blue .btn, .tone-red .btn { background: #fff; color: #0b3d9e; }
.cms-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.cms-card { display: block; background: #fff; border: 1px solid #e3e7ee; border-radius: 12px; padding: 24px; color: inherit; }
.cms-card:hover { border-color: #0b3d9e; }
.cms-card-num { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #0b3d9e; color: #fff; font-weight: 700; margin-bottom: 12px; }
.cms-card h3 { font-size: 19px; color: #0b1a3c; }
.cms-card p { margin: 0; color: #4a5263; }
.cms-split { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.cms-split.flip img { order: 2; }
.cms-split img { width: 100%; border-radius: 12px; object-fit: cover; max-height: 420px; }
.pager { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 24px 0 0; }
.pager-btn { padding: 8px 16px; border: 1px solid #d5dce8; border-radius: 8px; color: #0b3d9e; font-weight: 600; }
.pager-btn.is-off { color: #9aa3b2; }
.pager-info { color: #5b6475; font-size: 14px; }
@media (max-width: 800px) {
    .cms-cta-in, .cms-split { display: grid; grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
    .finder, .home-grid, .clubbar { grid-template-columns: 1fr 1fr; }
    .banner { --banner-h: 400px; }
    .banner-copy { top: 48px; }
    .banner-copy h1 { font-size: 44px; line-height: 54px; }
    .banner-copy p { font-size: 18px; line-height: 26px; margin-top: 12px; }
}
.result-box { background: var(--navy); color: #fff; border-radius: 14px; padding: 1rem; }
.result-box strong { color: var(--red); font-size: 1.8rem; display: block; }
.donut { width: 120px; height: 120px; border-radius: 50%; margin: .4rem auto; background: conic-gradient(var(--red) 0 33%, var(--blue) 33% 100%); display: grid; place-items: center; }
.donut span { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: var(--ink); display: grid; place-items: center; font-size: .75rem; text-align: center; font-weight: 800; }

@media (max-width: 860px) {
    .search, .grid, .clubs, .icon-row, .split, .property, .footer-grid, .steps-line { grid-template-columns: 1fr 1fr; }
    .hero { min-height: 0; }
}
@media (max-width: 680px) {
    .search, .grid, .clubs, .icon-row, .split, .property, .footer-grid, .steps-line, .legal { grid-template-columns: 1fr; display: grid; }
    .band { flex-direction: column; align-items: flex-start; }
}

/* Saved homes and property contact form */
.heart[data-favorite] { cursor: pointer; }
.heart.is-saved svg { fill: #c8102e; stroke: #c8102e; }
.btn.is-saved { background: #c8102e; color: #fff; border-color: #c8102e; }
.prop-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.prop-desc { margin: .8rem 0; }
.thumbs { display: flex; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 0; }
.thumbs img { width: 96px; height: 66px; object-fit: cover; border-radius: 8px; }
.owner-form { margin-top: .8rem; }
.inline-check { display: flex !important; align-items: center; gap: .5rem; font-weight: 500; }
.inline-check input { width: auto !important; }