.site-header {
    backdrop-filter: saturate(1.2) blur(10px);
    box-shadow: 0 1px 0 var(--line);
}
.site-footer {
    padding: 36px 0;
    background: #0d253d;
    color: rgba(255,255,255,.78);
    border-top: 0;
}
.site-footer-inner {
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(0, 1fr) auto;
    align-items: start;
    gap: 28px 40px;
}
.site-footer a { color: rgba(255,255,255,.86); }
.site-footer a:hover { color: #fff; }
.footer-brand img { filter: brightness(0) invert(1); }
.footer-copy { display: grid; gap: 8px; max-width: 42ch; }
.footer-copy strong { color: #fff; font-size: 1.05rem; }
.footer-nav { justify-self: end; }

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 72px 0 56px;
    background:
        radial-gradient(1000px 380px at 88% -20%, rgba(40, 103, 165, .4), transparent 55%),
        linear-gradient(165deg, #0d253d 0%, #173a5e 52%, #1d5489 100%);
    color: #fff;
}
.home-hero .eyebrow { color: #9ec4e8; }
.home-hero h1 { max-width: 14ch; margin: 10px 0 16px; color: #fff; font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.home-hero .hero-copy { max-width: 46ch; margin-bottom: 28px; color: rgba(255,255,255,.88); font-size: 1.15rem; }
.home-hero .ai-search,
.home-hero .search-panel {
    max-width: 980px;
    margin-bottom: 16px;
}
.home-hero .ai-search { box-shadow: 0 16px 40px rgba(8, 22, 38, .22); }
.partner-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}
.partner-strip p { max-width: 62ch; color: var(--ink-soft); }
.partner-strip strong { color: var(--ink); }
.lede { max-width: 58ch; color: var(--ink-soft); font-size: 1.05rem; }
.page-shell { padding: 56px 0 88px; }
.page-shell .page-intro { padding-top: 0; }
.page-split { display: grid; grid-template-columns: minmax(0, .95fr) minmax(280px, .85fr); gap: 40px; align-items: start; }
.page-panel {
    display: grid;
    gap: 16px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow);
}
.page-panel h2 { font-size: 1.35rem; }
.page-panel p { color: var(--ink-soft); }
.page-panel .button { justify-self: start; }
.pillar-list { display: grid; gap: 18px; margin-top: 28px; }
.pillar-list article {
    padding: 20px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.pillar-list h3 { margin-bottom: 8px; font-size: 1.2rem; }
.pillar-list p { color: var(--ink-soft); }
.listing-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.listing-toolbar.page-intro { padding-block: 8px 16px; }
.listing-toolbar.page-intro h1 { margin: 0 0 6px; font-size: clamp(1.55rem, 2.2vw, 2.15rem); }
.listing-toolbar .lede { margin: 0; font-size: 1rem; }
.listing-toolbar p { color: var(--ink-soft); }
.breadcrumbs-compact { padding-block: 8px; }
.breadcrumbs-compact a,
.breadcrumbs-compact span { min-height: 32px; }
.nearby-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
    max-width: 100%;
}
.nearby-links a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
    text-decoration: none;
    font-size: .92rem;
    font-weight: 650;
}
.nearby-links a:hover { border-color: var(--accent); color: var(--accent); }
.saved-page .saved-list { margin-top: 22px; }
.message-page { display: grid; gap: 8px; }
.message-page .button { justify-self: start; margin-top: 10px; }

@media (max-width: 899px) {
    .site-footer { padding: 28px 0; }
    .site-footer-inner { grid-template-columns: 1fr; }
    .footer-nav { justify-self: start; }
    .page-split { grid-template-columns: 1fr; }
    .home-hero { padding: 48px 0 36px; }
}

.search-area { max-width: 980px; }
.flix-listings { padding-top: 48px; }
.flix-cats {
    display: flex;
    gap: 22px;
    overflow-x: auto;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}
.flix-cats a {
    font-size: .95rem;
    white-space: nowrap;
    color: var(--ink-soft);
    text-decoration: none;
    font-weight: 650;
}
.flix-cats a:hover { color: var(--accent); }
.flix-row { margin-bottom: 32px; }
.flix-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; gap: 12px; }
.flix-heading h3 { font-size: 1.45rem; margin: 0; }
.flix-heading h3 a { color: var(--ink); text-decoration: none; }
.flix-heading h3 a:hover { color: var(--accent); }
.flix-heading span { font-size: .8rem; color: var(--ink-soft); font-weight: 400; margin-left: 10px; }
.flix-controls { display: flex; gap: 7px; }
.flix-controls button {
    display: grid;
    place-items: center;
    width: 33px;
    height: 33px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    cursor: pointer;
}
.flix-controls button:hover { border-color: var(--accent); color: var(--accent); }
.flix-controls button:disabled { opacity: .3; cursor: default; }
.flix-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #9eb6cc transparent;
    padding: 3px 0 13px;
    overscroll-behavior-x: contain;
}
.flix-track .property-card {
    flex: 0 0 300px;
    scroll-snap-align: start;
    background: #fff;
}
@media (max-width: 650px) {
    .flix-track .property-card { flex-basis: 270px; }
    .flix-cats { gap: 16px; }
}

.lost-page {
    padding: 48px 0 88px;
    background:
        radial-gradient(720px 280px at 12% -10%, rgba(40, 103, 165, .12), transparent 60%),
        var(--paper, #f4f7fb);
}
.lost-inner { max-width: 42rem; }
.lost-stage { margin: 8px 0 10px; color: #173a5e; }
.lost-house { display: block; width: min(280px, 70vw); height: auto; }
.lost-roof { color: #2867a5; }
.lost-wall { fill: #fff; stroke: #173a5e; stroke-width: 6; }
.lost-door { fill: #0d253d; }
.lost-knob { fill: #c9d8e8; }
.lost-window { fill: #e8f1fa; stroke: #173a5e; stroke-width: 4; }
.lost-mark { fill: #2867a5; font-size: 42px; font-weight: 800; font-family: inherit; }
.lost-page h1 { margin: 8px 0 12px; font-size: clamp(1.8rem, 3.4vw, 2.6rem); max-width: 16ch; }
.lost-aside { margin: 10px 0 22px; color: var(--ink-soft); font-weight: 650; }
.lost-actions { display: flex; flex-wrap: wrap; gap: 12px; }
