﻿/* WizReal Phase 2 - Buying homepage + shared listing card (P2-b, 2026-11-04).
   Prototype: wizreal-home.js (hero, sticky pill), wizreal-core.js SCREENS.client.home (tabs, rows,
   preferences), wizreal-ui.js listingCard (+ open-house, guest-lock and pre-con overrides).
   Everything is scoped to body.wz2 and uses the Phase 0 tokens (wz-tokens.css). Mobile first:
   576 / 768 / 992 / 1200 / 1400. The .wz-lc block is the shared card; other pages that render
   _WzListingCard include this file. */

/* ======================================================================= hero */

body.wz2 .wz-hx {
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    margin: 12px 12px 0;
    min-height: 460px;
    border-radius: var(--wz-r-modal);
    color: #fff;
    isolation: isolate;
}

body.wz2 .wz-hx-media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    border-radius: inherit;
    background: #1E4A27 url("/img/p2/heroes/hero-home-wide.jpg") 58% 40% / cover no-repeat;
    pointer-events: none;
}

/* Hero photo framing as the design (wizreal-web.css "Buying hero, every screen size", 2026-12-02):
   heading, tabs and search sit at the top; the whole building sits in a "stage" just below the search,
   with a strip of lawn and the "Not sure where to start?" bar under it. The sky above the photo is a
   blue fill that fades into the photo. --F = photo width as a share of the hero, --B = space under
   the building, --hd = rendered photo height (both photos are 1920x1215, ratio 1.58).
   Commercial mode uses its own photo (design hero-home-commercial.jpg) with the same framing. */
body.wz2 .wz-hx {
    --wz-hx-img: url("/img/p2/heroes/hero-home-wide.jpg");
    container-type: inline-size;
}

body.wz2.commercial .wz-hx {
    --wz-hx-img: url("/img/p2/heroes/hero-home-commercial.jpg");
}

body.wz2 .wz-hx-media {
    --hd: calc(var(--F) * 100cqw / 1.58);
    background-color: #0e6fbf;
    background-image: linear-gradient(180deg, #0e6fbf 0, #0e6fbf calc(100% - .68 * var(--hd) - var(--B)), rgba(14, 111, 191, 0) calc(100% - .68 * var(--hd) - var(--B) + 120px)), var(--wz-hx-img);
    background-size: 100% 100%, calc(var(--F) * 100%) auto;
    background-position: 0 0, left 53% bottom calc(var(--B) - .32 * var(--hd));
    background-repeat: no-repeat, no-repeat;
}

    body.wz2 .wz-hx-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(14, 32, 58, .46) 0%, rgba(14, 32, 58, .26) 48%, rgba(14, 32, 58, .12) 100%);
    }

body.wz2 .wz-hx-in {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 16px 88px;
    text-align: center;
}

body.wz2 .wz-hx h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: 34px;
    font-weight: 600; /* Design audit C30 (2026-11-27): design headline weight 600. */
    line-height: 1.05;
    letter-spacing: -.035em;
    text-wrap: balance;
    text-shadow: 0 2px 24px rgba(17, 20, 24, .25);
}

/* Glass segmented tabs (For Sale / Sold · For Lease / Leased · Pre-construction). */
body.wz2 .wz-hx-tabs {
    display: inline-flex;
    max-width: 100%;
    gap: 2px;
    margin: 0 0 16px;
    padding: 4px;
    overflow-x: auto;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(17, 20, 24, .32);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    scrollbar-width: none;
}

    body.wz2 .wz-hx-tabs::-webkit-scrollbar {
        display: none;
    }

body.wz2 .wz-hx-tab {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, .92);
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: background .15s, color .15s;
}

    body.wz2 .wz-hx-tab .wz-ic {
        display: none;
    }

    body.wz2 .wz-hx-tab:hover {
        color: #fff;
        background: rgba(255, 255, 255, .12);
    }

    body.wz2 .wz-hx-tab.on {
        background: #fff;
        color: var(--wz-ink);
    }

    body.wz2 .wz-hx-tab:focus-visible,
    body.wz2 .wz-hx-go:focus-visible,
    body.wz2 .wz-hx-ai:focus-visible,
    body.wz2 .wz-hx-tert a:focus-visible,
    body.wz2 .wz-showmap:focus-visible {
        outline: 3px solid rgba(255, 255, 255, .7);
        outline-offset: 2px;
    }

/* Search row: white pill (form) + Ask AI pill. */
body.wz2 .wz-hx-search {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    max-width: 760px;
}

body.wz2 .wz-hx-form {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

body.wz2 .wz-hx-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 56px;
    padding: 0 6px 0 18px;
    border-radius: 999px;
    background: #fff;
    color: var(--wz-ink);
    box-shadow: 0 18px 48px rgba(0, 0, 0, .28);
    text-align: left;
}

    body.wz2 .wz-hx-box:focus-within {
        box-shadow: 0 18px 48px rgba(0, 0, 0, .28), var(--wz-focus-ring);
    }

    body.wz2 .wz-hx-box .wz-hx-box-ic {
        flex: none;
        color: var(--wz-muted);
    }

    body.wz2 .wz-hx-box input {
        flex: 1 1 auto;
        min-width: 0;
        height: 100%;
        padding: 0;
        border: 0;
        outline: 0;
        background: transparent;
        color: var(--wz-ink);
        font-size: 15px;
        text-overflow: ellipsis;
    }

        body.wz2 .wz-hx-box input::placeholder {
            color: var(--wz-muted);
        }

        body.wz2 .wz-hx-box input::-webkit-search-cancel-button {
            cursor: pointer;
        }

body.wz2 .wz-hx-go {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: var(--wz-p);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
}

    body.wz2 .wz-hx-go span {
        display: none;
    }

    body.wz2 .wz-hx-go:hover {
        background: var(--wz-p-d);
    }

body.wz2 .wz-hx-ai {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 56px;
    height: 56px;
    padding: 0;
    border: 1px solid var(--wz-line2);
    border-radius: 999px;
    background: #fff;
    color: var(--wz-ink);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 6px 20px rgba(17, 20, 24, .10);
    transition: background .15s, box-shadow .15s;
}

    body.wz2 .wz-hx-ai svg {
        color: var(--wz-p);
    }

    body.wz2 .wz-hx-ai span {
        display: none;
    }

    body.wz2 .wz-hx-ai:hover {
        background: var(--wz-soft);
        color: var(--wz-ink);
    }

/* Suggestions (repliersAutocomplete.js) and recent searches share the dropdown look. */
body.wz2 .wz-hx-sugg.autocomplete-suggestions,
body.wz2 .wz-hx-hist {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 30;
    max-height: 320px;
    overflow: auto;
    border: 1px solid var(--wz-line);
    border-radius: var(--wz-r-pop);
    background: #fff;
    color: var(--wz-ink);
    box-shadow: var(--wz-shadow-lg);
    text-align: left;
}

body.wz2 .wz-hx-hist {
    padding: 6px 0;
}

body.wz2 .wz-hx-hist-h {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 16px 6px;
    color: var(--wz-muted);
    font-size: 12px;
    font-weight: 600;
}

body.wz2 .wz-hx-hist-clear {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--wz-ink);
    font-size: 12px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
}

body.wz2 .wz-hx-hist-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

    body.wz2 .wz-hx-hist-list button {
        display: flex;
        align-items: center;
        gap: 10px;
        width: 100%;
        padding: 10px 16px;
        border: 0;
        background: transparent;
        color: var(--wz-ink);
        font-size: 14px;
        text-align: left;
        cursor: pointer;
    }

        body.wz2 .wz-hx-hist-list button:hover,
        body.wz2 .wz-hx-hist-list button:focus-visible {
            background: var(--wz-soft);
            outline: 0;
        }

        body.wz2 .wz-hx-hist-list button .wz-ic {
            flex: none;
            color: var(--wz-muted);
        }

        body.wz2 .wz-hx-hist-list button span {
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

body.wz2 .wz-hx-hist-none {
    margin: 0;
    padding: 8px 16px 10px;
    color: var(--wz-muted);
    font-size: 13px;
}

/* "Not sure where to start? View All Properties on Map" glass pill at the hero foot. */
body.wz2 .wz-hx-tert {
    position: absolute;
    left: 50%;
    bottom: 18px;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 4px 8px;
    width: max-content;
    max-width: calc(100% - 32px);
    padding: 9px 16px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(17, 20, 24, .40);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, .88);
    font-size: 13.5px;
    transform: translateX(-50%);
}

    body.wz2 .wz-hx-tert a {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        color: #fff;
        font-weight: 600;
        text-decoration: none;
    }

        body.wz2 .wz-hx-tert a:hover {
            text-decoration: underline;
            text-underline-offset: 3px;
        }

@media (min-width: 576px) {
    body.wz2 .wz-hx-tab {
        padding: 0 16px;
        font-size: 13.5px;
    }

        body.wz2 .wz-hx-tab .wz-ic {
            display: block;
        }
}

/* PM 2026-11-16 (design): the Search button is an icon on phones and tablets; the word comes back on desktop. */
@media (min-width: 1025px) {
    body.wz2 .wz-hx-go {
        width: auto;
        padding: 0 20px 0 16px;
    }

        body.wz2 .wz-hx-go span {
            display: inline;
        }
}

@media (min-width: 768px) {
    body.wz2 .wz-hx {
        margin: 16px var(--wz-page-x) 0;
        min-height: clamp(460px, calc(100vh - 160px), 640px);
    }

    body.wz2 .wz-hx-in {
        padding: clamp(56px, 10vh, 112px) 24px 96px;
    }

    body.wz2 .wz-hx h1 {
        margin-bottom: 24px;
        font-size: clamp(40px, 5vw, 60px);
    }

    body.wz2 .wz-hx-box {
        height: 64px;
        padding-left: 24px;
    }

    body.wz2 .wz-hx-go {
        height: 50px;
    }

    body.wz2 .wz-hx-ai {
        width: auto;
        height: 64px;
        padding: 0 22px 0 18px;
    }

        body.wz2 .wz-hx-ai span {
            display: inline;
        }

    body.wz2 .wz-hx-tert {
        bottom: 26px;
    }
}

/* Hero stage framing (design, 2026-12-02): content at the top, room under the search for the whole
   building (see the .wz-hx-media note above). Phone first: photo 1.9x wide, then 1.3x, then 1x. */
body.wz2 .wz-hx {
    --F: 1.9;
    --B: 104px;
    min-height: 0;
}

body.wz2 .wz-hx-in {
    justify-content: flex-start;
    padding-top: 40px;
    padding-bottom: calc(12px + .22 * var(--F) * 100cqw / 1.58 + var(--B));
}

body.wz2 .wz-hx-tert {
    bottom: 14px;
}

@media (min-width: 561px) {
    body.wz2 .wz-hx {
        --F: 1.3;
        --B: 112px;
    }

    body.wz2 .wz-hx-in {
        padding-top: 64px;
    }

    body.wz2 .wz-hx-tert {
        bottom: 20px;
    }
}

@media (min-width: 901px) {
    body.wz2 .wz-hx {
        --F: 1;
    }
}

@media (min-width: 1101px) {
    body.wz2 .wz-hx-in {
        padding-top: 84px;
    }
}

/* ====================================================== sticky pill + panel */

body.wz2 .wz-hx-dock {
    position: fixed;
    top: var(--wz-hx-top, 72px);
    left: 0;
    right: 0;
    z-index: 1025;
    background: #fff;
    border-bottom: 1px solid var(--wz-line);
    box-shadow: 0 6px 18px rgba(17, 20, 24, .06);
    animation: wzHxDockIn .18s ease-out;
}

body.wz2 .wz-hx-dock-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 8px 12px;
}

body.wz2 .wz-hx-pill {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
    height: 48px;
    padding: 0 4px 0 6px;
    overflow-x: auto;
    border: 1px solid var(--wz-line2);
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(17, 20, 24, .06), 0 4px 12px rgba(17, 20, 24, .06);
    scrollbar-width: none;
}

    body.wz2 .wz-hx-pill::-webkit-scrollbar {
        display: none;
    }

    body.wz2 .wz-hx-pill > button[data-wz-view-tab] {
        flex: none;
        height: 36px;
        padding: 0 12px;
        border: 0;
        border-radius: 999px;
        background: transparent;
        color: var(--wz-ink2);
        font-size: 13px;
        font-weight: 600;
        white-space: nowrap;
        cursor: pointer;
    }

        body.wz2 .wz-hx-pill > button[data-wz-view-tab]:hover {
            background: var(--wz-soft);
        }

        body.wz2 .wz-hx-pill > button[data-wz-view-tab].on {
            background: var(--wz-tint);
            color: var(--wz-p-d);
        }

body.wz2 .wz-hx-pill-go {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin-left: 4px;
    border: 0;
    border-radius: 50%;
    background: var(--wz-p);
    color: #fff;
    cursor: pointer;
}

    body.wz2 .wz-hx-pill-go:hover {
        background: var(--wz-p-d);
    }

body.wz2 .wz-hx-pill-ai {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--wz-line2);
    border-radius: 999px;
    background: #fff;
    color: var(--wz-ink);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 1px 2px rgba(17, 20, 24, .06), 0 4px 12px rgba(17, 20, 24, .06);
}

    body.wz2 .wz-hx-pill-ai svg {
        color: var(--wz-p);
    }

    body.wz2 .wz-hx-pill-ai span {
        display: none;
    }

    body.wz2 .wz-hx-pill-ai:hover {
        color: var(--wz-ink);
        background: var(--wz-soft);
    }

body.wz2 .wz-hx-panel {
    padding: 4px 16px 20px;
}

body.wz2 .wz-hx-panel-tabs {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

    body.wz2 .wz-hx-panel-tabs .wz-hx-tab {
        color: var(--wz-ink2);
    }

        body.wz2 .wz-hx-panel-tabs .wz-hx-tab:hover {
            background: var(--wz-soft);
            color: var(--wz-ink);
        }

        body.wz2 .wz-hx-panel-tabs .wz-hx-tab.on {
            background: var(--wz-tint);
            color: var(--wz-p-d);
        }

body.wz2 .wz-hx-panel-row {
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 900px;
    margin: 0 auto;
}

    body.wz2 .wz-hx-panel-row .wz-hx-box {
        flex: 1 1 auto;
        min-width: 0;
        border: 1px solid var(--wz-line2);
        box-shadow: 0 6px 20px rgba(17, 20, 24, .10);
    }

body.wz2 .wz-hx-scrim {
    position: fixed;
    inset: 0;
    z-index: 1020;
    background: rgba(17, 20, 24, .35);
}

@media (min-width: 768px) {
    body.wz2 .wz-hx-pill > button[data-wz-view-tab] {
        padding: 0 16px;
        font-size: 13.5px;
    }

    body.wz2 .wz-hx-pill-ai {
        width: auto;
        padding: 0 18px 0 15px;
    }

        body.wz2 .wz-hx-pill-ai span {
            display: inline;
        }
}

@keyframes wzHxDockIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

/* Floating "Show map" pill. */
body.wz2 .wz-showmap {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1010;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 20px;
    border-radius: 999px;
    background: var(--wz-ink);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: var(--wz-shadow-lg);
    transform: translateX(-50%);
    transition: transform .15s;
}

    body.wz2 .wz-showmap:hover {
        color: #fff;
        transform: translateX(-50%) scale(1.04);
    }

@media (prefers-reduced-motion: reduce) {
    body.wz2 .wz-hx-dock {
        animation: none;
    }

    body.wz2 .wz-showmap,
    body.wz2 .wz-lc-img > img {
        transition: none;
    }
}

/* ================================================================ tabs + rows */

body.wz2 .wz-home {
    max-width: var(--wz-page-max);
    margin: 0 auto;
    padding: 0 var(--wz-page-x) 96px;
}

body.wz2 .wz-home-alert {
    margin-top: 24px;
}

body.wz2 .wz-home-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin-top: 28px;
    scroll-margin-top: 140px;
}

    body.wz2 .wz-home-bar .wz-tabsx {
        max-width: 100%;
    }

body.wz2 .wz-home-prefs-r {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

body.wz2 .wz-home-prefs-sum {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    max-width: 100%;
    color: var(--wz-muted);
    font-size: 13px;
}

    body.wz2 .wz-home-prefs-sum > span {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.wz2 .wz-home-prefs-sum .wz-ic {
        flex: none;
    }

body.wz2 #wz-home-tabs {
    scroll-margin-top: 140px;
}

/* Preferences panel. */
body.wz2 .wz-prefs {
    margin-top: 16px;
    padding: 20px;
}

body.wz2 .wz-prefs-h {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

    body.wz2 .wz-prefs-h h3 {
        margin: 0;
    }

body.wz2 .wz-prefs-sub {
    margin: 4px 0 0;
    color: var(--wz-muted);
    font-size: 13px;
}

body.wz2 .wz-prefs fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

    body.wz2 .wz-prefs fieldset > legend {
        float: none;
        width: auto;
        margin: 0;
        padding: 0;
    }

body.wz2 .wz-prefs-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.wz2 .wz-prefs-chip:has(input:checked) {
    background: var(--wz-tint);
    border-color: var(--wz-p);
    color: var(--wz-p-d);
    font-weight: 600;
}

body.wz2 .wz-prefs-chip:has(input:focus-visible) {
    box-shadow: var(--wz-focus-ring);
}

body.wz2 .wz-prefs-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--wz-mls);
}

    body.wz2 .wz-prefs-dot.fsbo {
        background: var(--wz-fsbo);
    }

    body.wz2 .wz-prefs-dot.precon {
        background: var(--wz-precon);
    }

body.wz2 .wz-prefs-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

    body.wz2 .wz-prefs-price .form-select {
        flex: 1 1 0;
        min-width: 0;
    }

body.wz2 .wz-prefs-f {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--wz-line);
}

/* Rows: horizontal scroll on phones, grid from 768 px. */
body.wz2 .wz-row {
    margin-top: 40px;
}

body.wz2 .wz-row-h {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 16px;
}

body.wz2 .wz-row-t {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 10px;
    min-width: 0;
}

    body.wz2 .wz-row-t h2 {
        margin: 0;
        font-size: 19px;
    }

body.wz2 .wz-row-sub {
    margin: 4px 0 0;
    color: var(--wz-muted);
    font-size: 13px;
}

body.wz2 .wz-row-more {
    color: var(--wz-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    white-space: nowrap;
}

    body.wz2 .wz-row-more:hover {
        color: var(--wz-p);
    }

body.wz2 .wz-row-cards {
    display: flex;
    gap: 16px;
    margin: 16px calc(-1 * var(--wz-page-x)) 0;
    padding: 0 var(--wz-page-x) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding: 0 var(--wz-page-x);
    scrollbar-width: thin;
}

body.wz2 .wz-row-cell {
    flex: 0 0 80%;
    min-width: 0;
    scroll-snap-align: start;
}

body.wz2 .wz-row-empty {
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px dashed var(--wz-line2);
    border-radius: var(--wz-r-pop);
    color: var(--wz-muted);
    font-size: 14px;
}

body.wz2 .wz-home-note,
body.wz2 .wz-home-foot {
    margin: 24px 0 0;
    color: var(--wz-muted);
    font-size: 12px;
}

body.wz2 .wz-home-foot {
    margin-top: 40px;
}

@media (min-width: 576px) {
    body.wz2 .wz-row-cell {
        flex-basis: 46%;
    }

    body.wz2 .wz-prefs {
        padding: 24px;
    }
}

@media (min-width: 768px) {
    body.wz2 .wz-row-t h2 {
        font-size: 20px;
    }

    body.wz2 .wz-row-cards {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 20px;
        margin: 18px 0 0;
        padding: 0;
        overflow: visible;
    }

    body.wz2 .wz-home-foot {
        margin-top: 56px;
    }
}

@media (min-width: 992px) {
    body.wz2 .wz-row-cards {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.wz2 .wz-row {
        margin-top: 48px;
    }
}


/* PM 2026-11-05 — Show map pill per the design (label, then pin) and lifted above the footer when it scrolls into view. */
body.wz2 .wz-showmap { bottom: calc(28px + var(--wz-showmap-lift, 0px)); height: 48px; padding: 0 18px 0 22px; font-size: 15px; gap: 10px; }
body.wz2 .wz-showmap .wz-ic { width: 17px; height: 17px; }

/* === 2026-11-18 round 2: marketing (home page) === */
/* 2026-11-18 design round 2, measured on the design screenshots: the hero sits right under the bar, inset 16px (8px on
   phones); the content column is 1114px at 1440 like the marketing pages; the section chips are outline pills with the
   active one tinted; row headings 20px with the row count on the right. */
@media (min-width: 768px) {
    body.wz2 .wz-hx {
        margin: 0 16px;
    }
}

@media (max-width: 767.98px) {
    body.wz2 .wz-hx {
        margin: 0 8px;
    }
}

@media (min-width: 768px) {
    body.wz2 .wz-home {
        max-width: 1194px;
        padding-inline: 40px;
        --wz-page-x: 40px;
    }
}

body.wz2 .wz-home-bar {
    margin-top: 40px;
}

body.wz2 .wz-home .wz-tabs {
    gap: 8px;
}

    body.wz2 .wz-home .wz-tabs .wz-tab {
        height: 36px;
        padding: 0 14px;
        border: 1.5px solid #E6E6E6;
        border-radius: 999px;
        background: #fff;
        color: var(--wz-ink);
        font-size: 13.5px;
        font-weight: 600;
    }

        body.wz2 .wz-home .wz-tabs .wz-tab:hover {
            border-color: #CFCFCC;
            background: #fff;
            color: var(--wz-ink);
        }

        body.wz2 .wz-home .wz-tabs .wz-tab.on {
            background: var(--wz-tint);
            border-color: var(--wz-p);
            color: var(--wz-ok);
        }

body.wz2 .wz-row-t h2 {
    font-weight: 600;
    letter-spacing: -.02em;
}

body.wz2 .wz-row-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

body.wz2 .wz-row-count {
    color: var(--wz-muted);
    font-size: 12.5px;
    white-space: nowrap;
}

body.wz2 .wz-row-more {
    font-size: 13px;
}

@media (min-width: 992px) {
    body.wz2 .wz-row {
        margin-top: 56px;
    }
}

/* Phones: the design stacks the cards of a row in one column (no sideways carousel). */
@media (max-width: 767.98px) {
    body.wz2 .wz-row-cards {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin: 16px 0 0;
        padding: 0;
        overflow: visible;
    }
}
/* === end === */

/* === 2026-11-18 round 2: final === */
/* Phones (design home-390): the headline wraps to two lines and the three tabs fit the width without scrolling. */
@media (max-width: 575.98px) {
    body.wz2 .wz-hx h1 { max-width: 300px; margin-left: auto; margin-right: auto; font-size: 34px; line-height: 1.12; }
    body.wz2 .wz-hx-tab { padding: 0 8px; font-size: 11.5px; gap: 4px; }
}
/* === end final === */

/* === 2026-11-18 wave 3: marketing (home page) === */
/* 2026-11-18 design wave 3, from the side-by-side pictures: hero search row 600px (pill 480 + Ask AI), Search button
   text only on desktop, headline lower in the hero; tablet hero 556px tall with text-only tabs and the "Not sure where to
   start?" pill on two lines; phone hero taller with the headline on two lines, the three tabs fitting the width and the
   short placeholder; phone row headings 24px with the source chip on the right and the count under them. */
body.wz2 .wz-hx-br {
    display: none;
}

body.wz2 .wz-hx-search {
    max-width: 600px;
}

body.wz2 .wz-hx-box input {
    font-size: 14px;
}

body.wz2 .wz-hx-tert a {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (min-width: 768px) {
    body.wz2 .wz-hx-in {
        padding-top: clamp(80px, 14vh, 128px);
    }

    body.wz2 .wz-hx-box {
        height: 56px;
    }

    body.wz2 .wz-hx-go {
        height: 42px;
    }

    body.wz2 .wz-hx-ai {
        height: 56px;
    }
}

@media (min-width: 1025px) {
    body.wz2 .wz-hx-go > .wz-ic {
        display: none;
    }

    body.wz2 .wz-hx-go {
        padding: 0 20px;
    }
}

@media (max-width: 1024px) {
    body.wz2 .wz-hx-tab .wz-ic {
        display: none;
    }

    body.wz2 .wz-hx-tert {
        flex-direction: column;
        gap: 2px;
        padding: 10px 32px;
        border-radius: 22px;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    body.wz2 .wz-hx {
        min-height: 556px;
    }
}

@media (max-width: 560px) {
    body.wz2 .wz-hx {
        min-height: 560px;
    }

    body.wz2 .wz-hx-in {
        padding: 112px 16px 112px;
    }

    body.wz2 .wz-hx h1 {
        font-size: 36px;
        line-height: 1.06;
    }

    body.wz2 .wz-hx-br {
        display: inline;
    }

    body.wz2 .wz-hx-tabs {
        overflow: visible;
    }

    body.wz2 .wz-hx-tab {
        height: 32px;
        padding: 0 8px;
        font-size: 11.5px;
    }

    body.wz2 .wz-hx-tert {
        width: max-content;
        padding: 10px 24px;
        font-size: 13px;
    }

        body.wz2 .wz-hx-tert a {
            white-space: nowrap;
        }


    /* Row headings: 24px bold, wrapping; source chip on the right; count + link under the heading. */
    body.wz2 .wz-row-h {
        display: block;
    }

    body.wz2 .wz-row-t {
        display: flex;
        flex-wrap: nowrap;
        align-items: flex-start;
        justify-content: space-between;
        gap: 8px 12px;
    }

        body.wz2 .wz-row-t h2 {
            flex: 1 1 auto;
            min-width: 0;
            font-size: 24px;
            font-weight: 700;
            line-height: 1.2;
        }

        body.wz2 .wz-row-t > .wz-src,
        body.wz2 .wz-row-t > .wz-badge {
            flex: none;
            margin-top: 6px;
        }

    body.wz2 .wz-row-meta {
        margin-top: 8px;
    }

    /* Section chips wrap instead of scrolling behind an arrow button. */
    body.wz2 .wz-home .wz-tabsx > .wz-tabs {
        flex-wrap: wrap;
        overflow: visible;
    }

    body.wz2 .wz-home .wz-tabsx-btn {
        display: none;
    }
}

/* Signed-in: "Recently Sold" group heading above the Sold Conditional / Sold rows (design client home). */
body.wz2 .wz-row-group {
    margin: 56px 0 0;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.02em;
}

body.wz2 .wz-row-group + .wz-row {
    margin-top: 16px;
}

/* Wave 3 (resumed): row headings 24px bold at every width (design ~24px, site was 19-20px); the tablet
   "Not sure where to start?" pill is wider (~360px) as in the design. */
body.wz2 .wz-row-t h2 {
    font-size: 24px;
    font-weight: 700;
}

body.wz2 .wz-row-group {
    font-size: 26px;
}

@media (min-width: 561px) and (max-width: 1024px) {
    body.wz2 .wz-hx-tert {
        min-width: 360px;
        padding: 12px 32px;
    }
}
/* === end === */

/* === 2026-11-18 wave 3: cross === */
/* Design home 1440: the whole placeholder "City, Neighbourhood, Address or MLS® number" is visible; the text needs 315px and the
   field had 316px, so the search field's cancel-button room cut it. A little more room from the gap and the Search button. */
@media (min-width: 1025px) {
    body.wz2 .wz-hx-box { gap: 8px; }
    body.wz2 .wz-hx-go { padding: 0 18px; }
    body.wz2 .wz-hx-box input::-webkit-search-decoration,
    body.wz2 .wz-hx-box input:placeholder-shown::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
}
/* === end === */
/* === 2026-11-19 round 5: public === */
/* Signed-in home: "Recently Sold" stands apart from the Sold Conditional row under it (design ~84px heading to heading). */
body.wz2 .wz-row-group + .wz-row { margin-top: 54px; }
/* Phones: the section chip strip fades its last chip, no round ">" button (design 390). */
@media (max-width: 560px) {
    /* PM 2026-11-27: the round ‹ › arrows show here too (they were hidden on phones). */
    body.wz2 .wz-home .wz-home-bar .wz-tabsx { --wz-tabsx-fade: #fff; }
}
/* === end === */
/* === 2026-11-19 round 6: public === */
/* Home: the Newly Listed / Open Houses chip row sits 24px under the hero (design: 26px hero to chips, was 42px).
   Phones: a row status badge (Sold Conditional / Sold) follows the heading as in the design; the source chip (MLS)
   stays at the right. */
body.wz2 .wz-home-bar { margin-top: 24px; }
@media (max-width: 560px) {
    body.wz2 .wz-row-t:has(> .wz-badge):not(:has(> .wz-src)) { justify-content: flex-start; align-items: center; }
        body.wz2 .wz-row-t:has(> .wz-badge):not(:has(> .wz-src)) h2 { flex: 0 1 auto; }
        body.wz2 .wz-row-t:has(> .wz-badge):not(:has(> .wz-src)) > .wz-badge { margin-top: 0; }
}
/* === end === */

/* === 2026-11-19 round 7: public === */
/* Home row headings wrap like the design's h2 { text-wrap: pretty } (390: "Newly Listed · MLS® / for Sale"). */
body.wz2 .wz-row-t h2 { text-wrap: pretty; }
/* Phone hero (design .hx at 390): 570px card (was 560), text block from 120px; "View All Properties on Map" 14px with
   4px / 2px padding, 8px under "Not sure where to start?" (pill 75px, was 63). */
@media (max-width: 560px) {
    body.wz2 .wz-hx { min-height: 570px; }
    body.wz2 .wz-hx-in { padding-top: 120px; }
    body.wz2 .wz-hx-tert a { margin-top: 6px; padding: 4px 2px; font-size: 14px; line-height: 1.2; }
}
/* === end === */
/* === 2026-11-19 round 8: public === */
/* Hero headline from 768px = design clamp(30px, 4.6vw, 60px) (35.3px at 768, was 40px; 60px at 1440 as before). */
@media (min-width: 768px) {
    body.wz2 .wz-hx h1 { font-size: clamp(30px, 4.6vw, 60px); }
    body.wz2 .wz-hx-in { padding-top: 120px; } /* design .hx-in 120px at any window height (was 14vh = 126px at 900) */
}
/* === end === */

/* === 2026-11-20: home === */
/* CG #31 ("do what is best"): below 641 px each home row is one sideways row (swipe, scroll snap, a card ~80% wide,
   no arrow buttons). The row bleeds to the screen edge inside the page gutter, so the page itself never scrolls sideways.
   641 px and up stays as it was. */
@media (max-width: 640.98px) {
    body.wz2 .wz-row-cards {
        display: flex;
        gap: 14px;
        margin: 16px calc(-1 * var(--wz-page-x)) 0;
        padding: 0 var(--wz-page-x) 8px;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-snap-type: x mandatory;
        scroll-padding: 0 var(--wz-page-x);
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    body.wz2 .wz-row-cards::-webkit-scrollbar { display: none; }
    body.wz2 .wz-row-cell { flex: 0 0 80%; min-width: 0; scroll-snap-align: start; }
    body.wz2 .wz-row-cards > .wz-row-cell:only-child { flex-basis: 100%; }
    body.wz2 .wz-home { overflow-x: clip; }
}

/* CG #32: Set Filters → Location (city search with suggestions), shown to guests too. */
body.wz2 .wz-prefs-loc { margin-top: 4px; }
body.wz2 .wz-prefs-loc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
body.wz2 .wz-prefs-loc-box { position: relative; flex: 1 1 280px; max-width: 440px; min-width: 0; }
body.wz2 .wz-prefs-loc-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--wz-line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16, 24, 40, .14); max-height: 300px; overflow-y: auto; }
body.wz2 .wz-prefs-loc-list li { display: flex; flex-direction: column; gap: 1px; padding: 9px 12px; border-radius: 8px; cursor: pointer; font-size: 14px; }
body.wz2 .wz-prefs-loc-list li span { color: var(--wz-muted); font-size: 12.5px; }
body.wz2 .wz-prefs-loc-list li:hover,
body.wz2 .wz-prefs-loc-list li.on { background: var(--wz-tint); }
body.wz2 .wz-prefs-loc-list li.wz-prefs-loc-none { cursor: default; color: var(--wz-muted); background: none; }
body.wz2 .wz-prefs-guest { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--wz-line); color: var(--wz-muted); font-size: 14px; }
body.wz2 .wz-prefs-guest a { color: var(--wz-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
    body.wz2 .wz-prefs-loc-row > .wz-btn { width: 100%; justify-content: center; }
}
/* === end === */
/* === 2026-11-23: design1 === */
/* Designer G1 / G2 (prototype .nav-hx / .nhx-dd, wizreal-web.css "merged sticky search in the nav"): once the hero has
   scrolled away the pill docks INSIDE the top bar (wz-home.js placeDock centres it between the logo and the actions),
   the nav links hide, and the Newly Listed / Open Houses tabs stick under the bar. One bar on every width. */
body.wz2.wz-hx-stuck .wz-hx-dock {
    top: var(--wz-hx-navtop, 0px);
    z-index: 1031;
    background: transparent;
    border-bottom: 0;
    box-shadow: none;
    pointer-events: none;
    animation: none;
}
body.wz2.wz-hx-stuck .wz-hx-dock-bar {
    position: absolute;
    top: 0;
    height: var(--wz-hx-navh, 72px);
    padding: 0;
    transform: translateX(-50%);
    pointer-events: auto;
}
body.wz2.wz-hx-stuck .wz-hx-panel {
    position: absolute;
    top: var(--wz-hx-navh, 72px);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--wz-line);
    box-shadow: 0 18px 30px -18px rgba(17, 20, 24, .25);
    pointer-events: auto;
}
body.wz2.wz-hx-stuck [data-wz-site-nav] .wz-nav-links { visibility: hidden; }
body.wz2 .wz-hx-dd { display: none; position: relative; align-items: center; flex: 0 1 auto; min-width: 0; height: 36px; border-radius: 999px; background: var(--wz-tint); color: var(--wz-p-d); cursor: pointer; }
body.wz2 .wz-hx-dd select { appearance: none; -webkit-appearance: none; height: 100%; min-width: 0; max-width: 100%; padding: 0 30px 0 14px; border: 0; border-radius: 999px; background: transparent; color: inherit; font-family: inherit; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; outline: 0; cursor: pointer; field-sizing: content; }
body.wz2 .wz-hx-dd svg { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); pointer-events: none; }
body.wz2 .wz-hx-dd:focus-within { box-shadow: 0 0 0 3px var(--wz-tint); }
body.wz2 .wz-hx-dock-bar.compact .wz-hx-pill > button[data-wz-view-tab] { display: none; }
body.wz2 .wz-hx-dock-bar.compact .wz-hx-dd { display: inline-flex; }
body.wz2 .wz-hx-dock-bar.compact .wz-hx-pill { height: 46px; padding: 0 5px; }
body.wz2 .wz-hx-dock-bar.compact .wz-hx-pill-ai { width: 46px; height: 46px; padding: 0; justify-content: center; }
body.wz2 .wz-hx-dock-bar.compact .wz-hx-pill-ai span { display: none; }
/* The content tabs stick under the top bar while the rows scroll (design: "tabs stick under it"). */
body.wz2.wz-hx-stuck .wz-home-bar {
    position: sticky;
    top: var(--wz-hx-top, 72px);
    z-index: 1020;
    margin-left: calc(-1 * var(--wz-page-x, 24px));
    margin-right: calc(-1 * var(--wz-page-x, 24px));
    padding: 10px var(--wz-page-x, 24px);
    background: #fff;
}
/* Tablet: the mode switch keeps its icon only so the dropdown has room (design, max-width 900). */
@media (max-width: 900px) {
    body.wz2.wz-hx-stuck [data-wz-site-nav] .wz-modebtn-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
/* Phone: the mode switch leaves the bar while docked (it is in the hero), the pill gets smaller. */
@media (max-width: 560px) {
    body.wz2.wz-hx-stuck [data-wz-site-nav] .wz-modebtn { display: none; }
    /* design 390: no logo at all in the docked bar (menu button, pill, account) */
    body.wz2.wz-hx-stuck [data-wz-site-nav] .wz-nav-logo { display: none; }
    /* the stuck tabs row stays one line: the place line hides, Set Filters keeps its icon */
    body.wz2.wz-hx-stuck .wz-home-bar { flex-wrap: nowrap; padding-top: 8px; padding-bottom: 8px; }
    body.wz2.wz-hx-stuck .wz-home-bar .wz-tabsx { min-width: 0; }
    body.wz2.wz-hx-stuck .wz-home-prefs-sum { display: none; }
    body.wz2.wz-hx-stuck .wz-home-prefs-r .wz-btn { width: 38px; padding: 0; justify-content: center; font-size: 0; gap: 0; flex: none; }
    body.wz2 .wz-hx-dock-bar.compact { gap: 6px; }
    body.wz2 .wz-hx-dock-bar.compact .wz-hx-pill { height: 42px; padding: 0 4px; }
    body.wz2 .wz-hx-dock-bar.compact .wz-hx-dd select { padding: 0 24px 0 11px; font-size: 12.5px; }
    body.wz2 .wz-hx-dock-bar.compact .wz-hx-dd svg { right: 8px; }
    body.wz2 .wz-hx-dock-bar.compact .wz-hx-pill-go { width: 34px; height: 34px; margin-left: 4px; }
    body.wz2 .wz-hx-dock-bar.compact .wz-hx-pill-ai { width: 40px; height: 40px; }
}
/* === end design1 === */

/* === 2026-11-26 PM: search panel opened from the top bar === */
/* The panel brings its own tabs and search box, so the top-bar pill hides while it is open (no third layer). */
body.wz2.wz-hx-panel-open .wz-hx-dock-bar { visibility: hidden; }
/* === end === */

/* CG testing (2026-11-27): home row headings are links to the same listings; they keep the heading look. */
body.wz2 .wz-row-h h2 .wz-row-link {
    color: inherit;
    text-decoration: none;
}

    body.wz2 .wz-row-h h2 .wz-row-link:hover,
    body.wz2 .wz-row-h h2 .wz-row-link:focus-visible {
        text-decoration: underline;
        text-underline-offset: 4px;
    }
