:root {
    --navy: #132466;
    --navy-dark: #0a1648;
    --blue: #2448b8;
    --sky: #eaf0ff;
    --ink: #172033;
    --muted: #667085;
    --line: #e3e7ef;
    --surface: #ffffff;
    --canvas: #f5f7fb;
    --gold: #f5b942;
    --danger: #a52a2a;
    --success: #176b47;
    --radius-lg: 28px;
    --radius-md: 18px;
    --shadow: 0 18px 50px rgba(22, 37, 109, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--canvas);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
body.dialog-open { overflow: hidden; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }
main { min-height: 68vh; }

.site-header {
    position: sticky;
    z-index: 40;
    top: 0;
    display: grid;
    grid-template-columns: minmax(170px, 250px) 1fr auto;
    gap: 28px;
    align-items: center;
    padding: 14px clamp(18px, 4vw, 60px);
    background: rgba(255,255,255,.96);
    border-bottom: 1px solid rgba(227,231,239,.8);
    backdrop-filter: blur(12px);
}
.brand img { width: 220px; }
.primary-nav { display: flex; justify-content: center; gap: 28px; }
.primary-nav a, .footer-links a { color: #364152; text-decoration: none; font-weight: 700; }
.primary-nav a:hover, .footer-links a:hover { color: var(--navy); }

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--navy); box-shadow: 0 10px 25px rgba(19,36,102,.18); }
.button-primary:hover { background: var(--navy-dark); }
.button-secondary { color: var(--navy); background: var(--sky); border-color: #d5dfff; }
.button-light { color: var(--navy); background: #fff; }
.button-danger { color: var(--danger); background: #fff2f2; border-color: #ffd5d5; }
.button-small { min-height: 38px; padding: 8px 13px; font-size: 14px; }

.hero {
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 9vw, 128px) 20px 78px;
    color: #fff;
    text-align: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(76,114,230,.75), transparent 34%),
        radial-gradient(circle at 88% 10%, rgba(245,185,66,.24), transparent 22%),
        linear-gradient(140deg, #08133f 0%, #132466 55%, #1b388e 100%);
}
.hero::after {
    position: absolute;
    width: 480px;
    height: 480px;
    right: -190px;
    bottom: -300px;
    border: 70px solid rgba(255,255,255,.05);
    border-radius: 50%;
    content: "";
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 18px;
    color: #bfcdfb;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}
.eyebrow::before { width: 28px; height: 2px; content: ""; background: var(--gold); }
.hero h1, .page-hero h1 { max-width: 860px; margin: 0 auto; font-size: clamp(40px, 6vw, 74px); line-height: 1.05; letter-spacing: -.045em; }
.hero > p:not(.eyebrow) { max-width: 720px; margin: 24px auto 0; color: #dbe3ff; font-size: clamp(17px, 2vw, 21px); line-height: 1.7; }

.choice-section { position: relative; z-index: 2; max-width: 1180px; margin: -40px auto 0; padding: 0 24px 82px; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.choice-card {
    position: relative;
    min-height: 390px;
    overflow: hidden;
    padding: clamp(30px, 5vw, 52px);
    background: #fff;
    border: 1px solid rgba(227,231,239,.75);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}
.choice-card::after { position: absolute; width: 230px; height: 230px; right: -100px; bottom: -100px; border-radius: 50%; content: ""; background: var(--sky); }
.choice-card.property-choice::after { background: #fff3d6; }
.choice-icon { display: grid; width: 66px; height: 66px; place-items: center; margin-bottom: 40px; color: #fff; background: var(--navy); border-radius: 20px; font-size: 30px; }
.property-choice .choice-icon { color: var(--navy); background: var(--gold); }
.choice-card h2 { max-width: 420px; margin: 0; font-size: clamp(29px, 4vw, 42px); line-height: 1.12; letter-spacing: -.035em; }
.choice-card p { max-width: 470px; margin: 18px 0 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.choice-card .button { position: relative; z-index: 1; }

.trust-strip { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1120px; margin: 0 auto 84px; padding: 0 24px; }
.trust-item { padding: 10px 32px; text-align: center; border-right: 1px solid var(--line); }
.trust-item:last-child { border-right: 0; }
.trust-item strong { display: block; margin-bottom: 8px; color: var(--navy); font-size: 22px; }
.trust-item span { color: var(--muted); line-height: 1.5; }
.featured-home { margin-bottom: 84px; background: linear-gradient(145deg, #fff, #f8faff); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 12px 40px rgba(22,37,109,.06); }
.featured-home .eyebrow { margin-bottom: 12px; color: var(--blue); }

.page-hero { padding: 66px 24px 48px; color: #fff; text-align: center; background: linear-gradient(140deg, var(--navy-dark), var(--navy)); }
.page-hero h1 { font-size: clamp(36px, 5vw, 60px); }
.page-hero p { max-width: 680px; margin: 18px auto 0; color: #dbe3ff; font-size: 18px; line-height: 1.7; }
.page-hero .eyebrow { margin-bottom: 13px; }

.filter-shell { position: sticky; z-index: 30; top: 92px; padding: 14px clamp(14px, 3vw, 40px); background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.filter-row { display: flex; max-width: 1240px; align-items: center; gap: 10px; margin: auto; }
.filter-track { display: flex; flex: 1; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.filter-track::-webkit-scrollbar { display: none; }
.filter-pill { flex: 0 0 auto; padding: 11px 20px; color: var(--navy); background: var(--sky); border: 1px solid #d9e2ff; border-radius: 999px; font-size: 14px; font-weight: 800; text-decoration: none; }
.filter-pill.active { color: #fff; background: var(--navy); border-color: var(--navy); }
.filter-arrow { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; color: #fff; background: var(--navy); border: 0; border-radius: 50%; cursor: pointer; }

.section { max-width: 1280px; margin: auto; padding: 56px 24px 88px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.section-heading h2 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.03em; }
.section-heading p { max-width: 570px; margin: 8px 0 0; color: var(--muted); line-height: 1.6; }
.result-count { flex: 0 0 auto; color: var(--muted); font-weight: 700; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 390px)); justify-content: center; gap: 26px; }
.content-card { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: 0 12px 34px rgba(22,37,109,.07); transition: transform .2s ease, box-shadow .2s ease; }
.content-card.is-featured { border-color: rgba(245,185,66,.72); box-shadow: 0 14px 38px rgba(154,106,7,.12); }
.content-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.card-media { position: relative; }
.featured-badge { position: absolute; top: 14px; left: 14px; display: inline-flex; align-items: center; min-height: 34px; padding: 7px 12px; color: #2e2308; background: var(--gold); border: 2px solid rgba(255,255,255,.86); border-radius: 999px; box-shadow: 0 8px 22px rgba(46,35,8,.18); font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.card-image { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #e7ebf4; }
.person-card .card-image { aspect-ratio: 1/1; }
.image-placeholder { display: grid; width: 100%; aspect-ratio: 4/3; place-items: center; color: var(--navy); background: linear-gradient(145deg, #e9efff, #f8f9fd); font-size: 52px; }
.card-body { padding: 24px; }
.card-kicker { margin: 0 0 10px; color: var(--blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.card-body h2, .card-body h3 { margin: 0; font-size: 25px; line-height: 1.25; letter-spacing: -.025em; }
.card-body > p { min-height: 52px; margin: 14px 0 20px; color: var(--muted); line-height: 1.65; }
.tag-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 18px; }
.tag { padding: 6px 10px; color: #344054; background: #f2f4f8; border-radius: 999px; font-size: 12px; font-weight: 700; }
.price { margin: 10px 0 4px; color: var(--navy); font-size: 24px; font-weight: 800; }
.card-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.card-facts div { padding: 11px; background: var(--canvas); border-radius: 12px; }
.card-facts span { display: block; margin-bottom: 4px; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.card-facts strong { font-size: 14px; }
.card-actions { display: flex; gap: 10px; margin-top: 20px; }
.card-actions .button { flex: 1; }

.view-tabs { display: flex; max-width: 640px; gap: 8px; margin: -26px auto 0; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); }
.view-tabs a { flex: 1; padding: 14px; color: var(--navy); border-radius: 12px; font-weight: 800; text-align: center; text-decoration: none; }
.view-tabs a.active { color: #fff; background: var(--navy); }
.subfilters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.empty-state { max-width: 720px; margin: 28px auto; padding: 60px 28px; text-align: center; background: #fff; border: 1px dashed #cbd3e4; border-radius: 24px; }
.empty-state .empty-icon { display: grid; width: 70px; height: 70px; place-items: center; margin: 0 auto 22px; color: var(--navy); background: var(--sky); border-radius: 22px; font-size: 30px; }
.empty-state h2 { margin: 0 0 10px; }
.empty-state p { max-width: 520px; margin: 0 auto 22px; color: var(--muted); line-height: 1.7; }

.detail-dialog { width: min(760px, calc(100% - 24px)); max-height: 90vh; padding: 0; overflow: auto; border: 0; border-radius: 24px; box-shadow: 0 35px 100px rgba(0,0,0,.3); }
.detail-dialog::backdrop { background: rgba(5,12,40,.78); backdrop-filter: blur(4px); }
.dialog-image { width: 100%; max-height: 480px; object-fit: cover; background: #eef1f7; }
.dialog-body { position: relative; padding: 30px; }
.dialog-close { position: absolute; top: 18px; right: 18px; display: grid; width: 38px; height: 38px; place-items: center; border: 0; border-radius: 50%; cursor: pointer; font-size: 22px; }
.dialog-body h2 { margin: 6px 52px 10px 0; color: var(--navy); font-size: clamp(28px, 5vw, 40px); }
.dialog-kicker { color: var(--blue); font-weight: 800; }
.dialog-description { white-space: pre-line; color: #465166; line-height: 1.75; }
.dialog-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 24px 0; }
.dialog-facts div { padding: 13px 15px; background: var(--canvas); border-radius: 13px; }
.dialog-facts span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; }

.site-footer { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; padding: 52px clamp(24px, 6vw, 90px); color: #c9d3f5; background: #09133c; }
.site-footer img { width: 190px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.site-footer p { max-width: 500px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.footer-links a { color: #dce4ff; }

@media (max-width: 820px) {
    .site-header { grid-template-columns: 1fr auto; gap: 12px; padding: 10px 14px; }
    .brand img { width: 175px; }
    .primary-nav { display: none; }
    .header-call { min-height: 42px; padding: 9px 12px; font-size: 0; }
    .header-call::after { content: "Call"; font-size: 13px; }
    .choice-grid { grid-template-columns: 1fr; }
    .choice-card { min-height: auto; }
    .featured-home { margin-inline: 14px; }
    .trust-strip { grid-template-columns: 1fr; gap: 20px; }
    .trust-item { border-right: 0; border-bottom: 1px solid var(--line); }
    .trust-item:last-child { border-bottom: 0; }
    .filter-shell { top: 73px; }
    .section-heading { align-items: start; flex-direction: column; }
    .site-footer { grid-template-columns: 1fr; }
}

@media (max-width: 520px) {
    .hero { padding-top: 58px; }
    .choice-section { margin-top: -24px; padding-inline: 14px; }
    .choice-card { padding: 28px 24px; border-radius: 22px; }
    .choice-icon { margin-bottom: 26px; }
    .featured-home { padding-inline: 14px; border-radius: 22px; }
    .section { padding: 40px 14px 68px; }
    .card-grid { grid-template-columns: 1fr; }
    .view-tabs { width: calc(100% - 28px); }
    .view-tabs a { padding: 12px 8px; font-size: 13px; }
    .filter-arrow { display: none; }
    .dialog-body { padding: 22px; }
    .dialog-facts { grid-template-columns: 1fr; }
    .card-actions { flex-direction: column; }
    .footer-links { grid-template-columns: 1fr; }
}
