﻿/* WizReal Phase 2 - map search (P2-c). Scoped to body.wz2; colours come from wz-tokens.css.
   Layout: filter bar on top, results list (left) + map (right); stacked with a Map / List
   toggle below 992px. No !important. */

/* ---------------------------------------------------------------- page frame */
html,
body.wzm-page {
    /* WIZREALMA-398: the drawing manager puts a transform on an ancestor of fixed elements;
       "clip" (not "hidden") so no new scroll container is created. */
    overflow-x: clip;
}

body.wz2 .wzm {
    display: flex;
    flex-direction: column;
    height: calc(100vh - 55px - 36px);
    background: var(--wz-bg);
    font-family: var(--wz-font);
    color: var(--wz-ink);
}

@media (min-width: 769px) {
    body.wz2 .wzm { height: calc(100vh - 70px - 36px); }
}

body.wz2 .wzm-body {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    position: relative;
}

body.wz2 .wzm-list {
    flex: 0 0 100%;
    min-width: 0;
    overflow-y: auto;
    padding: 20px 16px 88px;
    background: var(--wz-bg);
}

body.wz2 .wzm-mapcol {
    flex: 1 1 auto;
    min-width: 0;
    position: relative;
}

/* 2026-11-18 design: one view at a time up to 1100 px, list first. The hidden map keeps its size
   (visibility, not display:none) so the map still has real bounds for the search behind the list. */
body.wz2 .wzm[data-view="map"] .wzm-list { display: none; }

body.wz2 .wzm[data-view="list"] .wzm-mapcol {
    position: absolute;
    inset: 0;
    z-index: -1;
    visibility: hidden;
    pointer-events: none;
}

@media (min-width: 1101px) {
    /* 2026-11-18 design: list 45 % / map 55 % up to 1180 px, then 40 / 60. */
    body.wz2 .wzm-list {
        flex: 0 0 45%;
        display: block;
        padding: 20px 18px 32px 24px;
        border-right: 1px solid var(--wz-line);
    }

    body.wz2 .wzm[data-view] .wzm-list { display: block; }

    body.wz2 .wzm[data-view] .wzm-mapcol {
        display: block;
        position: relative;
        inset: auto;
        z-index: auto;
        visibility: visible;
        pointer-events: auto;
    }
}

@media (min-width: 1181px) {
    body.wz2 .wzm-list { flex-basis: 40%; padding: 24px 24px 32px 32px; }
}

/* ---------------------------------------------------------------- filter bar */
/* 2026-11-18 design: never wraps; wz-map.js fitBar() folds filters, then turns Source into a dropdown,
   then lets the bar scroll sideways (.is-tight). The Residential / Commercial segment is gone (nav only). */
body.wz2 .wzm-bar {
    position: relative;
    z-index: 5;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--wz-bg);
    border-bottom: 1px solid var(--wz-line);
}

body.wz2 .wzm-bar > * { flex: none; }

@media (min-width: 769px) {
    body.wz2 .wzm-bar { gap: 10px; padding: 12px 24px; }
}

@media (min-width: 1281px) {
    body.wz2 .wzm-bar { padding: 12px 40px; }
}

body.wz2 .wzm-bar > .wzm-grow { flex: 1 1 0; min-width: 0; }

body.wz2 .wzm-sep {
    width: 1px;
    height: 28px;
    background: var(--wz-line);
    margin: 0 4px;
}

@media (max-width: 768px) {
    body.wz2 .wzm-sep { display: none; }
}

body.wz2 .wzm-fb { position: relative; }

body.wz2 .wzm-fbtn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--wz-line2); /* 2026-11-18 design: 1.5px, 13.5px */
    border-radius: 999px;
    background: var(--wz-bg);
    color: var(--wz-ink);
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease;
}

body.wz2 .wzm-fbtn:hover { border-color: var(--wz-ink2); }

body.wz2 .wzm-fbtn:focus-visible,
body.wz2 .wzm-pill:focus-visible,
body.wz2 .wzm-chip:focus-visible,
body.wz2 .wzm-apply:focus-visible,
body.wz2 .wzm-save:focus-visible {
    outline: none;
    box-shadow: var(--wz-focus-ring);
}

body.wz2 .wzm-fbtn.is-on,
body.wz2 .wzm-fb.is-open > .wzm-fbtn {
    border-color: var(--wz-p);
    background: var(--wz-tint);
    color: var(--wz-p-d);
}

body.wz2 .wzm-fbtn:disabled { opacity: .5; cursor: not-allowed; }

body.wz2 .wzm-chev { transition: transform .15s ease; }
body.wz2 .wzm-fb.is-open .wzm-chev { transform: rotate(180deg); }

body.wz2 .wzm-n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--wz-p);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
}

body.wz2 .wzm-n[hidden] { display: none; }

body.wz2 .wzm-srcdots { display: inline-flex; gap: 3px; }

body.wz2 .wzm-apply {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 18px;
    border: 1px solid var(--wz-p);
    border-radius: 999px;
    background: var(--wz-p);
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    white-space: nowrap;
}

body.wz2 .wzm-apply:hover { background: var(--wz-p-d); border-color: var(--wz-p-d); }

body.wz2 .wzm-apply:disabled {
    background: var(--wz-line);
    border-color: var(--wz-line);
    color: var(--wz-faint);
    cursor: not-allowed;
}

body.wz2 .wzm-apply-sm { height: 34px; padding: 0 16px; font-size: 13px; }
body.wz2 .wzm-apply-lg { height: 48px; padding: 0 28px; font-size: 15px; }

body.wz2 .wzm-save,
body.wz2 .wzm-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid var(--wz-line2);
    border-radius: 999px;
    background: var(--wz-bg);
    color: var(--wz-ink);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    white-space: nowrap;
}

body.wz2 .wzm-save:hover,
body.wz2 .wzm-btn-outline:hover { border-color: var(--wz-ink2); color: var(--wz-ink); }

body.wz2 .wzm-btn-outline:disabled { opacity: .45; cursor: not-allowed; }

body.wz2 .wzm-link {
    border: 0;
    background: none;
    padding: 0;
    color: var(--wz-ink);
    font-size: 14px;
    text-decoration: underline;
    cursor: pointer;
}

body.wz2 .wzm-link[hidden] { display: none; }

body.wz2 .wzm-muted { color: var(--wz-muted); font-size: 13px; }

/* ---------------------------------------------------------------- popovers */
body.wz2 .wzm-pop {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 20;
    min-width: 280px;
    max-width: calc(100vw - 32px);
    padding: 18px;
    background: var(--wz-bg);
    border: 1px solid var(--wz-line);
    border-radius: var(--wz-r-pop);
    box-shadow: var(--wz-shadow-pop);
    cursor: default;
}

body.wz2 .wzm-pop-wide { width: 380px; }
body.wz2 .wzm-pop-tx { min-width: 200px; padding: 8px; }

body.wz2 .wzm-fb.is-open > .wzm-pop { display: block; }

body.wz2 .wzm-pop-title {
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

body.wz2 .wzm-pop-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--wz-line);
}

body.wz2 .wzm-txopt {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    border: 0;
    background: none;
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--wz-ink);
    text-align: left;
}

body.wz2 .wzm-txopt:hover,
body.wz2 .wzm-txopt.is-on { background: var(--wz-tint2); color: var(--wz-p-d); }

body.wz2 .wzm-col { display: flex; flex-direction: column; gap: 6px; }

body.wz2 .wzm-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 4px;
    font-size: 14px;
    cursor: pointer;
}

body.wz2 .wzm-check input { width: 18px; height: 18px; accent-color: var(--wz-p); }

/* 2026-11-18 design: a selected source option takes its own pin colour (border, 10 % tint, 75 % text). */
body.wz2 .wzm-srcopt {
    padding: 10px 12px;
    border-radius: 12px;
    border: 1.5px solid transparent;
    font-weight: 500;
}

body.wz2 .wzm-srcopt:hover { background: var(--wz-soft); }
body.wz2 .wzm-srcopt input { accent-color: var(--c, var(--wz-p)); margin: 0; }
body.wz2 .wzm-srcopt .wzm-dot { width: 10px; height: 10px; }

body.wz2 .wzm-srcopt.is-on {
    border-color: var(--c, var(--wz-p));
    background: color-mix(in srgb, var(--c, var(--wz-p)) 10%, #fff);
    color: color-mix(in srgb, var(--c, var(--wz-p)) 75%, #111418);
    font-weight: 600;
}

body.wz2 .wzm-note {
    margin-top: 10px;
    color: var(--wz-muted);
    font-size: 12px;
    line-height: 1.4;
}

body.wz2 .wzm-newtag {
    display: inline-block;
    margin-left: 4px;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--wz-purple-bg);
    color: var(--wz-purple);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .02em;
    vertical-align: middle;
}

/* chips + pills */
body.wz2 .wzm-chips { display: flex; flex-wrap: wrap; gap: 8px; }

body.wz2 .wzm-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border: 1px solid var(--wz-line2);
    border-radius: 999px;
    background: var(--wz-bg);
    color: var(--wz-ink);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
}

body.wz2 .wzm-chip:hover { border-color: var(--wz-ink2); }

body.wz2 .wzm-chip.is-on {
    border-color: var(--wz-p);
    background: var(--wz-tint);
    color: var(--wz-p-d);
}

body.wz2 .wzm-chip-static { cursor: default; padding-right: 6px; }

body.wz2 .wzm-chip-x {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font-size: 16px;
    line-height: 1;
}

body.wz2 .wzm-chip-x:hover { background: rgba(var(--wz-p-rgb), .15); }

body.wz2 .wzm-pills {
    display: inline-flex;
    flex-wrap: wrap;
    border: 1px solid var(--wz-line2);
    border-radius: 12px;
    overflow: hidden;
}

body.wz2 .wzm-pill {
    min-width: 48px;
    height: 40px;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid var(--wz-line2);
    background: var(--wz-bg);
    color: var(--wz-ink);
    font-weight: 600;
    font-size: 14px;
}

body.wz2 .wzm-pill:last-child { border-right: 0; }
body.wz2 .wzm-pill:hover { background: var(--wz-soft); }
body.wz2 .wzm-pill.is-on { background: var(--wz-ink); color: #fff; }

body.wz2 .wzm-seg .wzm-pill { min-width: 110px; }

body.wz2 .wzm-dot {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex: 0 0 auto;
}

body.wz2 .wzm-dot-mls { background: var(--wz-mls); }
body.wz2 .wzm-dot-fsbo { background: var(--wz-fsbo); }
body.wz2 .wzm-dot-precon { background: var(--wz-precon); }
body.wz2 .wzm-dot-sold { background: #A6A9A4; }

/* price slider (noUiSlider) */
body.wz2 .wzm-prs-vals {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

body.wz2 .wzm-prs-box {
    flex: 1 1 0;
    padding: 8px 12px;
    border: 1px solid var(--wz-line2);
    border-radius: 12px;
}

body.wz2 .wzm-prs-box span { display: block; font-size: 11px; color: var(--wz-muted); }
body.wz2 .wzm-prs-box b { font-size: 15px; }
body.wz2 .wzm-prs-dash { color: var(--wz-muted); }

body.wz2 .wzm-prs-slider { margin: 0 10px; height: 6px; border: 0; box-shadow: none; background: var(--wz-line); }
body.wz2 .wzm-prs-slider .noUi-connect { background: var(--wz-p); }

body.wz2 .wzm-prs-slider .noUi-handle {
    width: 22px;
    height: 22px;
    right: -11px;
    top: -9px;
    border-radius: 50%;
    border: 2px solid var(--wz-p);
    background: var(--wz-bg);
    box-shadow: var(--wz-shadow);
    cursor: grab;
}

body.wz2 .wzm-prs-slider .noUi-handle::before,
body.wz2 .wzm-prs-slider .noUi-handle::after { display: none; }

body.wz2 .wzm-prs-scale {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--wz-muted);
    font-size: 12px;
}

/* ---------------------------------------------------------------- results list */
body.wz2 .wzm-list-head { margin-bottom: 8px; }

body.wz2 .wzm-count {
    margin: 0;
    font-size: 30px; /* Design audit C30 (2026-11-27): design h1 30 px / 700 (was 24 / 800). */
    font-weight: 700;
    letter-spacing: -.01em;
}

@media (max-width: 600px) {
    body.wz2 .wzm-count { font-size: 24px; }
}

body.wz2 .wzm-q { margin-top: 4px; color: var(--wz-muted); font-size: 14px; }

body.wz2 .wzm-applied {
    display: none;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: 12px 0 4px;
}

body.wz2 .wzm-applied.has-filters { display: flex; }
body.wz2 .wzm-applied-l { font-size: 12px; }

body.wz2 .wzm-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px 18px;
    margin-top: 20px;
    transition: opacity .15s ease;
}

/* 2026-11-18 design: 2 cards per row, except 1 per row up to 600 px and from 901 to 1024 px. */
@media (min-width: 601px) {
    body.wz2 .wzm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 901px) and (max-width: 1024px) {
    body.wz2 .wzm-grid { grid-template-columns: minmax(0, 1fr); }
}

body.wz2 .wzm-grid.is-busy { opacity: .55; }

/* Legacy cards (until _WzListingCard ships) and the loading/empty states take a full row. */
body.wz2 .wzm-grid.is-legacy,
body.wz2 .wzm-grid:has(> [data-results-loading]),
body.wz2 .wzm-grid:has(> .wzm-empty) { grid-template-columns: minmax(0, 1fr); }

body.wz2 .wzm-card-cell { min-width: 0; border-radius: var(--wz-r-lg); transition: box-shadow .15s ease; }

body.wz2 .wzm-card-cell.is-hl,
body.wz2 .wzm-grid [data-property-id].is-hl { box-shadow: 0 0 0 2px var(--wz-p), var(--wz-shadow-pop); }

body.wz2 .wzm-empty {
    padding: 48px 16px;
    text-align: center;
    color: var(--wz-muted);
    border: 1px dashed var(--wz-line2);
    border-radius: var(--wz-r-lg);
}

body.wz2 .wzm-empty-t { font-weight: 700; color: var(--wz-ink); margin-bottom: 6px; }

body.wz2 .wzm-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-top: 28px;
}

/* ---------------------------------------------------------------- map overlays */
body.wz2 .wzm-map { min-height: 100%; }

body.wz2 .wzm-search {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 3;
    width: min(520px, calc(100% - 120px));
    transform: translateX(-50%);
}

body.wz2 .wzm-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    height: 48px;
    padding: 0 6px 0 16px;
    border: 1px solid var(--wz-line);
    border-radius: 999px;
    background: var(--wz-bg);
    box-shadow: var(--wz-shadow-pop);
    color: var(--wz-muted);
}

body.wz2 .wzm-search-input {
    flex: 1 1 auto;
    min-width: 0;
    border: 0;
    outline: none;
    background: transparent;
    color: var(--wz-ink);
    font-size: 15px;
}

body.wz2 .wzm-search-box:focus-within { border-color: var(--wz-p); box-shadow: var(--wz-focus-ring), var(--wz-shadow-pop); }

body.wz2 .wzm-askai {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--wz-ink);
    color: #fff;
    font-weight: 700;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

body.wz2 .wzm-askai:hover { background: var(--wz-ink2); color: #fff; }

body.wz2 .wzm-search .autocomplete-suggestions,
body.wz2 .wzm-recent {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    border: 1px solid var(--wz-line);
    border-radius: var(--wz-r-pop);
    background: var(--wz-bg);
    box-shadow: var(--wz-shadow-pop);
}

body.wz2 .wzm-recent { z-index: 4; padding: 8px; }
body.wz2 .wzm-recent[hidden] { display: none; }

body.wz2 .wzm-recent-h {
    display: flex;
    justify-content: space-between;
    padding: 4px 8px 8px;
    color: var(--wz-muted);
    font-size: 12px;
}

body.wz2 .wzm-recent-h .wzm-link { font-size: 12px; }

body.wz2 .wzm-recent-i {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--wz-ink);
    text-align: left;
}

body.wz2 .wzm-recent-i:hover { background: var(--wz-soft); }

body.wz2 .wzm-boundary {
    position: absolute;
    top: 72px;
    left: 50%;
    z-index: 2;
    transform: translateX(-50%);
}

body.wz2 .wzm-boundary .wzm-chip { background: var(--wz-bg); box-shadow: var(--wz-shadow-pop); }

body.wz2 .wzm-hint {
    position: absolute;
    left: 12px;
    bottom: 56px;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    max-width: 320px;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--wz-ink);
    color: #fff;
    font-size: 12px;
    line-height: 1.4;
    box-shadow: var(--wz-shadow-pop);
}

body.wz2 .wzm-hint[hidden] { display: none; }

body.wz2 .wzm-x {
    border: 0;
    background: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    padding: 0 2px;
}

body.wz2 .wzm-zoom {
    position: absolute;
    right: 12px;
    bottom: 56px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--wz-line);
    border-radius: 12px;
    overflow: hidden;
    background: var(--wz-bg);
    box-shadow: var(--wz-shadow-pop);
}

body.wz2 .wzm-zoom button {
    width: 38px;
    height: 38px;
    border: 0;
    background: var(--wz-bg);
    color: var(--wz-ink);
    font-size: 20px;
    line-height: 1;
}

body.wz2 .wzm-zoom button + button { border-top: 1px solid var(--wz-line); }
body.wz2 .wzm-zoom button:hover { background: var(--wz-soft); }

body.wz2 .wzm-legend {
    position: absolute;
    left: 12px;
    bottom: 14px;
    z-index: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--wz-bg);
    box-shadow: var(--wz-shadow-pop);
    font-size: 12px;
    font-weight: 600;
}

body.wz2 .wzm-legend span { display: inline-flex; align-items: center; gap: 6px; }

/* 2026-11-18 design: black "Map" / "List" pill, bottom centre, up to 1100 px. */
body.wz2 .wzm-viewtoggle {
    position: fixed;
    left: 50%;
    bottom: 28px;
    z-index: 6;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border: 0;
    border-radius: 999px;
    background: #111418;
    color: #fff;
    font: 700 15px/1 var(--wz-font);
    box-shadow: 0 10px 28px rgba(17, 20, 24, .30);
    transform: translateX(-50%);
}

body.wz2 .wzm-viewtoggle:focus-visible { outline: 3px solid rgba(var(--wz-p-rgb), .55); outline-offset: 3px; }

@media (min-width: 1101px) {
    body.wz2 .wzm-viewtoggle { display: none; }
}

@media (max-width: 1100px) {
    /* Keep the legend / zoom clear of the pill (pill top edge ~ 28 + 43 px). */
    body.wz2 .wzm-legend { bottom: 84px; }
    body.wz2 .wzm-zoom { bottom: 120px; }
    body.wz2 .wzm-hint { bottom: 124px; }
}

@media (max-width: 767.98px) {
    body.wz2 .wzm-search { top: 10px; width: calc(100% - 64px); left: 10px; transform: none; }
    body.wz2 .wzm-askai span { display: none; }
    body.wz2 .wzm-hint { display: none; }
    body.wz2 .wzm-legend { bottom: 84px; }
    body.wz2 .wzm-zoom { bottom: 120px; }
    body.wz2 .wzm-boundary { top: 66px; }
}

/* hover preview (repliersMap.js popup, content from wz-map.js) */
body.wz2 .wzm-prev {
    width: 260px;
    overflow: hidden;
    border-radius: var(--wz-r);
    background: var(--wz-bg);
}

body.wz2 .wzm-prev + .wzm-prev,
body.wz2 .mb-2 > .wzm-prev { border-top: 1px solid var(--wz-line); }

body.wz2 .wzm-prev-link { display: block; color: var(--wz-ink); text-decoration: none; }
body.wz2 .wzm-prev-link:hover { color: var(--wz-ink); }

body.wz2 .wzm-prev-img {
    display: block;
    width: 100%;
    height: 130px;
    object-fit: cover;
    background: var(--wz-soft);
}

body.wz2 .wzm-prev-img.is-locked { filter: blur(6px); }

body.wz2 .wzm-prev-b { padding: 10px 14px 12px; }
body.wz2 .wzm-prev-price { font-weight: 800; font-size: 16px; }
body.wz2 .wzm-prev-addr { font-size: 13px; margin-top: 2px; }
body.wz2 .wzm-prev-meta { margin-top: 4px; color: var(--wz-muted); font-size: 12px; }

/* ---------------------------------------------------------------- modals */
body.wz2 .wzm-modal .modal-content { border: 0; border-radius: var(--wz-r-modal); box-shadow: var(--wz-shadow-lg); }
body.wz2 .wzm-modal .modal-header { border-bottom: 1px solid var(--wz-line); padding: 18px 24px; }
body.wz2 .wzm-modal .modal-title { font-size: 18px; font-weight: 800; margin: 0; }
body.wz2 .wzm-modal .modal-body { padding: 8px 24px 16px; }
body.wz2 .wzm-modal .modal-footer { border-top: 1px solid var(--wz-line); padding: 14px 24px; }
body.wz2 .wzm-modal-foot { justify-content: space-between; }

body.wz2 .wzm-sec { padding: 18px 0; border-bottom: 1px solid var(--wz-line); }
body.wz2 .wzm-sec:last-child { border-bottom: 0; }
body.wz2 .wzm-sec h3 { font-size: 15px; font-weight: 700; margin: 0 0 4px; }
body.wz2 .wzm-sub { color: var(--wz-muted); font-size: 13px; margin-bottom: 10px; }

@media (max-width: 575.98px) {
    body.wz2 .wzm-modal .modal-content { border-radius: 0; }
}

/* toast fallback (wz-ui.js is not loaded on the map layout) */
body.wz2 .wzm-toast {
    position: fixed;
    left: 50%;
    bottom: 32px;
    z-index: 1090;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--wz-ink);
    color: #fff;
    font-weight: 600;
    box-shadow: var(--wz-shadow-lg);
    transform: translateX(-50%);
    transition: opacity .4s ease;
}

body.wz2 .wzm-toast.is-out { opacity: 0; }

body.wz2 .wzm-loc-ic { width: 38px; height: 38px; }

/* ---------------------------------------------------------------- map buttons + help card
   (moved from the page's inline styles; unchanged except the help card) */
.map-edit-toggle-button {
    position: absolute;
    top: 176px;
    right: 10px;
    z-index: 2;
    color: #5f6b72;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #d5dbe0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.map-edit-toggle-button:hover {
    background-color: #f4f7fa;
    color: #1c7fa2;
    border-color: #9ec8d6;
}
.map-edit-toggle-button.active {
    background-color: #1c7fa2;
    color: #ffffff;
    border-color: #1c7fa2;
    box-shadow: 0 6px 14px rgba(16, 93, 122, 0.24);
}
.map-legend-toggle-button {
    position: absolute;
    top: 220px;
    right: 10px;
    z-index: 2;
    color: #5f6b72;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #d5dbe0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.map-legend-toggle-button:hover {
    background-color: #f4f7fa;
    color: #1c7fa2;
    border-color: #9ec8d6;
}
/* My-location control — matches the edit/legend toggle buttons, sits below them */
.map-locate-button {
    position: absolute;
    top: 264px;
    right: 10px;
    z-index: 2;
    color: #5f6b72;
    width: 36px;
    height: 36px;
    background-color: #ffffff;
    border: 1px solid #d5dbe0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
.map-locate-button:hover {
    background-color: #f4f7fa;
    color: #1c7fa2;
    border-color: #9ec8d6;
}
.map-locate-button.locating {
    color: #1c7fa2;
    border-color: #9ec8d6;
}
.map-locate-button.locating i {
    animation: wz-locate-spin 1s linear infinite;
}
@keyframes wz-locate-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.map-legend-card {
    position: absolute;
    top: 262px;
    right: 10px;
    width: min(320px, calc(100% - 20px));
    max-width: calc(100% - 20px);
    z-index: 2;
    background: #ffffff;
    border: 1px solid #d5dbe0;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(17, 49, 62, 0.16);
    padding: 0.9rem;
    max-height: min(72vh, 500px);
    overflow-y: auto;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.map-legend-card.is-hidden {
    opacity: 0;
    transform: translateY(-6px);
    pointer-events: none;
    visibility: hidden;
}
.map-legend-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #1f2d36;
}
.map-legend-subtitle {
    font-size: 0.8rem;
    color: #63717a;
    line-height: 1.35;
}
.map-legend-section-title {
    margin-top: 0.7rem;
    margin-bottom: 0.35rem;
    font-size: 0.74rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7b84;
}
.map-legend-list {
    margin: 0.75rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.45rem;
}
.map-legend-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-size: 0.82rem;
    color: #1f2d36;
    line-height: 1.3;
}
.map-legend-item-text {
    display: inline-flex;
    flex-direction: column;
}
.map-legend-key {
    font-weight: 600;
    color: #1f2d36;
}
.map-legend-desc {
    font-size: 0.75rem;
    color: #627079;
}
.map-legend-action-icon {
    width: 24px;
    height: 24px;
    border-radius: 8px;
    border: 1px solid #d6dde3;
    background-color: #f7fafc;
    color: #36505e;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
}
.map-legend-action-icon i {
    font-size: 0.82rem;
}
.map-legend-action-icon.polygon-tool-icon {
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M11.82 12.018H.18V.607L7.6 5.362 11.821.098v11.92zm-10.64-1h9.64V2.944L7.818 6.689 1.18 2.435v8.583z' fill='%2383888D'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 13px;
}
    margin-top: 0.7rem;
    padding-top: 0.7rem;
    border-top: 1px dashed #dce3e8;
    font-size: 0.77rem;
    color: #5d6b74;
    line-height: 1.35;
}
@media (max-width: 767.98px) {
    .map-legend-card {
        top: 68px;
        left: 10px;
        right: 10px;
        width: auto;
        max-width: none;
        max-height: min(62vh, 420px);
    }
    .map-legend-toggle-button {
        top: 16px;
        right: 10px;
    }
}
/* The old script placed the help card below the edit button at run time; fixed here. */
@media (min-width: 768px) {
    .map-legend-card { top: 264px; right: 54px; }
}

/* ---------------------------------------------------------------- PM 2026-11-06: price pills + cluster hover list */
/* Popup chrome (hover preview and cluster list share the SDK popup). */
body.wz2 .atlas-map .popup-content-container {
    padding: 0 !important;
    border-radius: 14px !important;
    box-shadow: var(--wz-shadow-lg) !important;
    overflow: hidden;
}

/* Cluster hover: one compact row per listing (thumb · price / address / facts), scrolls after ~4. */
body.wz2 .wzm-prev-list {
    width: 340px;
    max-width: calc(100vw - 32px);
    max-height: 372px;
    overflow-y: auto;
    padding: 6px;
    scrollbar-width: thin;
}

body.wz2 .wzm-prev-head {
    padding: 8px 10px 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--wz-muted);
}

body.wz2 .wzm-prev-list .mb-2 { margin: 0 !important; }
body.wz2 .wzm-prev-list .mb-2 + .mb-2 { border-top: 1px solid var(--wz-line); }
body.wz2 .wzm-prev-list .wzm-prev { width: auto; border-radius: 10px; }
body.wz2 .wzm-prev-list .mb-2 > .wzm-prev { border-top: 0; }

body.wz2 .wzm-prev-list .wzm-prev-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: 10px;
}

body.wz2 .wzm-prev-list .wzm-prev-link:hover { background: var(--wz-soft); }

body.wz2 .wzm-prev-list .wzm-prev-ph {
    width: 96px;
    height: 72px;
    flex: 0 0 auto;
    border-radius: 8px;
}

body.wz2 .wzm-prev-list .wzm-prev-img { height: 72px; }
body.wz2 .wzm-prev-list .wzm-prev-b { padding: 0; min-width: 0; }
body.wz2 .wzm-prev-list .wzm-prev-price { font-size: 15px; }

body.wz2 .wzm-prev-list .wzm-prev-addr,
body.wz2 .wzm-prev-list .wzm-prev-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.wz2 .wzm-prev-more {
    padding: 10px;
    text-align: center;
    font-size: 12px;
    color: var(--wz-muted);
}

/* Hover preview photo box: shimmer until the picture arrives (wz-loading.js adds .wz-lz-wait). */
body.wz2 .wzm-prev-ph {
    display: block;
    position: relative;
    overflow: hidden;
    background: #EEEFEC linear-gradient(90deg, #EAEBE8 0%, #F6F6F4 40%, #EAEBE8 80%);
    background-size: 220% 100%;
}

body.wz2 .wzm-prev-ph:has(> img.wz-lz-wait) { animation: wz-sk-shimmer 1.3s ease-in-out infinite; }

/* Price pills (wz-map-pins.js HtmlMarkers): white pill, source dot, dark price - design .pinb. */
body.wz2 .wzm-pin {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 28px;
    padding: 0 11px 0 9px;
    border-radius: 999px;
    border: 1.5px solid #fff;
    background: #fff;
    color: var(--wz-ink);
    font-family: var(--wz-font);
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .16);
    transform: translateZ(0);
    transition: transform .15s ease, background-color .15s ease, color .15s ease;
    user-select: none;
}

body.wz2 .wzm-pin > i {
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--wz-mls);
}

/* PM 2026-11-16 (design): lock on a guest's sold / leased pin. */
body.wz2 .wzm-pin .wzm-pin-lock { flex: none; margin-right: 3px; opacity: .75; }
body.wz2 .wzm-pin.k-commercial > i { background: #2596BE; }
body.wz2 .wzm-pin.k-fsbo > i { background: var(--wz-fsbo); }
body.wz2 .wzm-pin.k-precon > i { background: var(--wz-precon); }
body.wz2 .wzm-pin.k-sold > i,
body.wz2 .wzm-pin.k-leased > i { background: #A6A9A4; }
body.wz2 .wzm-pin.k-sold,
body.wz2 .wzm-pin.k-leased { color: var(--wz-muted); }
body.wz2 .wzm-pin.is-oh { border-color: #FFC107; }

/* Overlapping pills collapse to a dot (prototype wzDot). */
body.wz2 .wzm-pin.is-dot {
    width: 16px;
    height: 16px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
}

body.wz2 .wzm-pin.is-dot > i { width: 8px; height: 8px; }
body.wz2 .wzm-pin.is-dot .wzm-pin-t { display: none; }

/* Hovered pin, or the card for it hovered in the list. */
body.wz2 .wzm-pin.is-hl {
    background: var(--wz-ink);
    border-color: var(--wz-ink);
    color: #fff;
    transform: translateZ(0) scale(1.08);
}

body.wz2 .wzm-pin.is-hl > i { box-shadow: 0 0 0 2px rgba(255, 255, 255, .55); }

@media (prefers-reduced-motion: reduce) {
    body.wz2 .wzm-pin { transition: none; }
    body.wz2 .wzm-prev-ph:has(> img.wz-lz-wait) { animation: none; }
}

/* PM 2026-11-06: the SDK keeps popups in .popup-collection-container, a sibling drawn BEFORE the canvas container that holds
   the HtmlMarker price pills, so a hover preview opened over a busy street was covered by neighbouring pills. Lift the popup layer. */
body.wz2 .wzm-map .popup-collection-container { z-index: 6; } /* above a hovered pill (z 5) too */

/* ---------------------------------------------------------------- PM 2026-11-06: fit the window + load on scroll */
/* The whole page is one viewport tall: nav + results/map + compact footer. Only the results column scrolls. */
body.wz2.wzm-page {
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body.wz2.wzm-page > .wz-site-nav,
body.wz2.wzm-page > .wz-footer { flex: 0 0 auto; }

body.wz2.wzm-page > main {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

body.wz2.wzm-page .wzm {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

body.wz2 .wzm-pager { display: none; }

body.wz2 .wzm-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    padding: 14px 0 6px;
    font-size: 13px;
    color: var(--wz-muted);
}

body.wz2 .wzm-more[hidden] { display: none; }

body.wz2 .wzm-more > i {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--wz-line);
    border-top-color: var(--wz-p);
    animation: wzm-more-spin .8s linear infinite;
}

@keyframes wzm-more-spin { to { transform: rotate(360deg); } }

/* PM 2026-11-06: popover flipped to the right edge of its button when it would overflow the viewport (wz-map.js openPop). */
body.wz2 .wzm-pop.is-end { left: auto; right: 0; }

/* UI sweep round 13 (UI-1) wrapped the bar between 768 and 1720 px so Apply / Save search stayed reachable;
   2026-11-18 design replaces that with the measured fold (wz-map.js fitBar) - see the block below. */

/* === 2026-11-18 design update: search page filter bar === */
/* Source chips: open toggle buttons in the pin colours (design .srcchip). */
body.wz2 .wzm-srcbar { display: flex; align-items: center; gap: 6px; }

body.wz2 .wzm-srcchip,
body.wz2 .wzm-src-mls { --c: var(--wz-mls); }
body.wz2 .wzm-srcchip[data-wzm-src="fsbo"],
body.wz2 .wzm-src-fsbo { --c: var(--wz-fsbo); }
body.wz2 .wzm-srcchip[data-wzm-src="precon"],
body.wz2 .wzm-src-precon { --c: var(--wz-precon); }

body.wz2 .wzm-srcchip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border: 1.5px solid var(--wz-line2);
    border-radius: 999px;
    background: var(--wz-bg);
    color: var(--wz-muted);
    font-family: inherit;
    font-size: 13.5px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}

body.wz2 .wzm-srcchip > i {
    flex: none;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--c);
    opacity: .35;
}

body.wz2 .wzm-srcchip:hover { border-color: var(--c); }

body.wz2 .wzm-srcchip.is-on {
    border-color: var(--c);
    background: color-mix(in srgb, var(--c) 10%, #fff);
    color: color-mix(in srgb, var(--c) 75%, #111418);
}

body.wz2 .wzm-srcchip.is-on > i { opacity: 1; }
body.wz2 .wzm-srcchip:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }

/* Commercial mode: pre-construction pins / chips turn purple (design body.commercial --precon). Page-scoped
   here; the shared token belongs in wz-tokens.css (reported to its owner). */
body.wz2.wzm-page.commercial { --wz-precon: #7D63C2; }

/* Folding (wz-map.js fitBar): folded filters, the Source dropdown in place of the chips, sideways scroll. */
body.wz2 .wzm-bar > .is-folded { display: none; }
body.wz2 .wzm-bar > .wzm-srcdd { display: none; }
body.wz2 .wzm-bar > .wzm-srcdd.is-on { display: block; }
body.wz2 .wzm-bar.is-tight { overflow-x: auto; scrollbar-width: none; }
body.wz2 .wzm-bar.is-tight::-webkit-scrollbar { display: none; }

/* An anchored pop-over of a sideways-scrolling bar is pinned to its button (wz-map.js openPop). */
body.wz2 .wzm-pop.is-float { position: fixed; }

/* Open house: calendar icon, count always shown (soft; filled when on). */
body.wz2 .wzm-oh .wzm-n { background: var(--wz-soft); color: var(--wz-ink2); }
body.wz2 .wzm-oh.is-on .wzm-n { background: var(--wz-p); color: #fff; }
body.wz2 .wzm-oh .wz-ic { flex: none; }

body.wz2 .wzm-note-top { margin: 0 0 12px; }

/* The bar (and its pop-overs) sits above the map overlays (they reach z-index 6), below the nav (1020). */
body.wz2 .wzm-bar { z-index: 30; }

/* Bottom panel for every bar pop-over at 760 px and below (2026-11-18 design round 2: the design CSS, phones only). */
@media (max-width: 760px) {
    body.wz2 .wzm-pop,
    body.wz2 .wzm-pop.is-end,
    body.wz2 .wzm-pop-wide,
    body.wz2 .wzm-pop-tx {
        position: fixed;
        left: 12px;
        right: 12px;
        top: auto;
        bottom: 12px;
        width: auto;
        min-width: 0;
        max-width: none;
        max-height: 70vh;
        overflow: auto;
        padding: 20px;
        border-radius: 20px;
        box-shadow: var(--wz-shadow-lg);
        z-index: 1050;
    }
}

/* Save search: 40 px icon button at 760 px and below. */
@media (max-width: 760px) {
    body.wz2 .wzm-save { width: 40px; padding: 0; gap: 0; }
    body.wz2 .wzm-save .wzm-save-t { display: none; }
}

/* Map search box: Search button inside, Ask AI pill next to it. */
body.wz2 .wzm-search { display: flex; align-items: center; gap: 8px; }
body.wz2 .wzm-search-box { flex: 1 1 auto; min-width: 0; }

body.wz2 .wzm-search-go {
    flex: none;
    height: 36px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: var(--wz-p);
    color: #fff;
    font-weight: 600;
    font-size: 13px;
}

body.wz2 .wzm-search-go:hover { background: var(--wz-p-d); }
body.wz2 .wzm-search-go:focus-visible { outline: none; box-shadow: var(--wz-focus-ring); }

body.wz2 .wzm-search > .wzm-askai {
    flex: none;
    height: 48px;
    padding: 0 18px 0 15px;
    gap: 8px;
    background: var(--wz-bg);
    color: var(--wz-ink);
    font-size: 14px;
    box-shadow: var(--wz-shadow-pop);
}

body.wz2 .wzm-search > .wzm-askai i { color: var(--wz-p); }
body.wz2 .wzm-search > .wzm-askai:hover { background: var(--wz-bg); color: var(--wz-ink); box-shadow: var(--wz-shadow-lg); }
body.wz2 .wzm-search > .wzm-askai:focus-visible { outline: 3px solid rgba(var(--wz-p-rgb), .45); outline-offset: 3px; }

@media (max-width: 767.98px) {
    body.wz2 .wzm-search > .wzm-askai { width: 48px; padding: 0; justify-content: center; }
}
/* === end === */

/* === 2026-11-18 design update: visual QA === */
/* 2026-11-18 design: once the bar scrolls sideways (.is-tight, overflow auto) the column flex of .wzm could
   shrink it to 26px and cut the 38px chips in half on phones; the bar keeps its own height. */
body.wz2 .wzm-bar { flex-shrink: 0; }
/* 2026-11-18 design: the Map / List pill sat on the compact footer (copyright + app badges, two lines on
   phones); it now floats at the bottom of the map / list area instead of the window. */
body.wz2 .wzm { position: relative; }
body.wz2 .wzm-viewtoggle { position: absolute; }
/* 2026-11-18 design: Azure Maps gives its container (.atlas-map) Helvetica Neue, which reached the search
   box, the Search button, the map tool buttons and the price pins; the design uses Inter everywhere. */
body.wz2 .wzm-map { font-family: var(--wz-font); }
/* === end === */

/* === 2026-11-18 round 2: search === */
/* The design's map page has no footer at any width (the list and the map run to the bottom of the window). */
body.wz2.wzm-page > .wz-footer { display: none; }

/* Title Case like the design's headings and buttons: "14 Homes", "Show 14 Homes", "14 Open Houses". */
body.wz2 .wzm-count,
body.wz2 [data-wzm-draftcount] { text-transform: capitalize; }

/* List gutter 20 px from 601 to 1100 px (design .maplist), 16 px on phones. */
@media (min-width: 601px) and (max-width: 1100px) {
    body.wz2 .wzm-list { padding: 20px 20px 120px; }
}

/* The map is an inset card: 16 px from the list / bar / window edges, radius 20 (design .mapside / .mapbox). */
body.wz2 .wzm-mapcol { padding: 16px; }
body.wz2 .wzm-map { border-radius: 20px; overflow: hidden; }

@media (min-width: 1101px) {
    body.wz2 .wzm[data-view] .wzm-mapcol { padding: 16px 16px 16px 0; }
    body.wz2 .wzm-list { border-right: 0; }
}

/* Search box top-left of the map (max 460 px), Ask AI next to it; no outline, only the shadow. */
body.wz2 .wzm-search,
body.wz2 .wzm-search[class] {
    top: 16px;
    left: 16px;
    right: 16px;
    width: auto;
    transform: none;
}

body.wz2 .wzm-search-box { flex: 0 1 460px; max-width: 460px; padding: 0 6px 0 18px; border-color: transparent; }

/* Tablet and phone: the Search button is a 44 px round magnifier (design, every search bar up to 1024 px). */
@media (max-width: 1024px) {
    body.wz2 .wzm-search-go {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        font-size: 0;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='19' height='19' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: center;
    }
    body.wz2 .wzm-search-box { padding-right: 2px; }
}

/* Phone: the box takes the full width and Ask AI (with its label) wraps below it, as in the design. */
@media (max-width: 767.98px) {
    body.wz2 .wzm-search { flex-wrap: wrap; }
    body.wz2 .wzm-search-box { flex: 1 1 100%; max-width: none; }
    body.wz2 .wzm-search > .wzm-askai { width: auto; height: 36px; padding: 0 14px 0 12px; }
    body.wz2 .wzm-search > .wzm-askai span { display: inline; }
}

/* Zoom: top right under the search row (design .mapctl), 40 px buttons, radius 14, shadow only. */
body.wz2 .wzm-zoom,
body.wz2 .wzm-zoom[role] {
    top: 80px;
    right: 16px;
    bottom: auto;
    border: 0;
    border-radius: 14px;
}

body.wz2 .wzm-zoom button { width: 40px; height: 40px; font-size: 18px; }

/* The site's extra map tools (drawing, get properties, edit, Map help, My location) move down below the zoom. */
body.wz2 .wzm-map .atlas-control-container .top-right { top: 166px; right: 6px; }
body.wz2 .wzm-map .map-filter-button { top: 276px; right: 16px; }
body.wz2 .wzm-map .map-edit-toggle-button { top: 314px; right: 14px; }
body.wz2 .wzm-map .map-legend-toggle-button { top: 358px; right: 14px; }
body.wz2 .wzm-map .map-locate-button { top: 402px; right: 14px; }
body.wz2 .wzm-map .map-legend-card { top: 402px; right: 58px; }

/* Hint: white card above the legend (design .maphint); legend: white pill bottom left. */
body.wz2 .wzm-hint,
body.wz2 .wzm-hint[id] {
    left: 16px;
    bottom: 64px;
    gap: 6px;
    max-width: 300px;
    padding: 10px 6px 10px 12px;
    border-radius: 14px;
    background: var(--wz-bg);
    color: var(--wz-ink2);
}

body.wz2 .wzm-hint .wzm-x { width: 24px; height: 24px; flex: none; font-size: 16px; color: var(--wz-ink); }

body.wz2 .wzm-legend,
body.wz2 .wzm-legend[aria-label] {
    left: 16px;
    bottom: 16px;
    gap: 14px;
    max-width: calc(100% - 32px);
    padding: 8px 16px;
    font-weight: 500;
}

/* Map / List pill: 88 px from the bottom (design .map-float), so it clears the legend on the map view. */
body.wz2 .wzm-viewtoggle { bottom: 88px; }

@media (max-width: 767.98px) {
    body.wz2 .wzm-hint[id] { display: flex; max-width: calc(100% - 32px); }
    body.wz2 .wzm-hint[hidden] { display: none; }
    body.wz2 .wzm-map .map-legend-toggle-button { top: 358px; }
}
/* === end === */
/* === 2026-11-18 round 2: search (pop-overs) === */
/* An open filter button keeps its normal look and chevron (design); only a set filter is green. */
body.wz2 .wzm-fb.is-open > .wzm-fbtn:not(.is-on) { border-color: var(--wz-line2); background: var(--wz-bg); color: var(--wz-ink); }
body.wz2 .wzm-fb.is-open .wzm-chev { transform: none; }

/* The bar's Apply waits as a pale green button (design .btn.primary.disabled), not grey. */
body.wz2 .wzm-bar > .wzm-apply:disabled { background: var(--wz-p); border-color: var(--wz-p); color: #fff; opacity: .4; }

@media (min-width: 761px) {
    /* Status: the note stays on one line, so the pop-over is as wide as the note (design). */
    body.wz2 [data-wzm-body="status"] .wzm-note { white-space: nowrap; }
    /* Price / Square feet: 336 px wide, the quick picks wrap onto a second row (design). */
    body.wz2 .wzm-pop-wide { width: 336px; }
}
/* === end === */
/* === 2026-11-18 round 2: search (dialogs) === */
/* Dialog titles and More Filters section headings in Title Case, sections 18 px like the design (.modal h4). */
body.wz2 .wzm-modal .modal-title,
body.wz2 .wzm-modal .wzm-sec h3 { text-transform: capitalize; }
body.wz2 #wzmMoreFilters .wzm-sec h3 { font-size: 18px; margin-bottom: 6px; }
/* Phone: More Filters is a sheet from 22 px below the top with rounded top corners (design), not a bare full screen. */
@media (max-width: 575.98px) {
    body.wz2 #wzmMoreFilters .modal-dialog { height: calc(100% - 22px); margin-top: 22px; }
    body.wz2 #wzmMoreFilters .modal-content { border-radius: 20px 20px 0 0; }
}
/* === end === */
/* === 2026-11-18 round 2: search (More Filters controls) === */
/* Rooms / parking / open house: separate round pills, on = green tint (design .pillrow). */
body.wz2 .wzm-pills { gap: 8px; border: 0; border-radius: 0; overflow: visible; }

body.wz2 .wzm-pills .wzm-pill {
    min-width: 56px;
    height: 42px;
    padding: 0 16px;
    border: 1.5px solid var(--wz-line2);
    border-radius: 999px;
    color: var(--wz-ink);
    font-size: 13.5px;
}

body.wz2 .wzm-pills .wzm-pill:last-child { border-right: 1.5px solid var(--wz-line2); }
body.wz2 .wzm-pills .wzm-pill:hover { background: var(--wz-bg); border-color: var(--wz-ink); }

/* Listing type: a pill segment in a rounded frame (design .seg). */
body.wz2 .wzm-seg {
    display: inline-flex;
    gap: 2px;
    padding: 3px;
    border: 1px solid var(--wz-line2);
    border-radius: 999px;
    background: var(--wz-bg);
}

body.wz2 .wzm-seg .wzm-pill {
    min-width: 0;
    height: auto;
    padding: 6px 14px;
    border: 1.5px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--wz-ink2);
    font-size: 13px;
}

body.wz2 .wzm-seg .wzm-pill:hover { background: var(--wz-soft); }

body.wz2 .wzm-pills .wzm-pill.is-on,
body.wz2 .wzm-pills .wzm-pill.is-on:last-child,
body.wz2 .wzm-seg .wzm-pill.is-on { background: var(--wz-tint); border-color: var(--wz-p); color: var(--wz-ok); }
/* === end === */

/* === 2026-11-29: Exclusive Assignment badge on the pin card (coordinator) === */
body.wz2 .wzm-prev-ph .wzm-prev-excl { position: absolute; top: 8px; left: 8px; z-index: 1; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
/* === end === */

/* lot size: frontage and depth sliders (PM 2026-11-30) */
body.wz2 .wzm-lot + .wzm-lot { margin-top: 22px; }
body.wz2 .wzm-lot-h { margin-bottom: 8px; font-size: 13px; font-weight: 600; }

/* === 2026-12-01: map (status badge on every cluster-list row, PM) === */
/* The result card's badge (.wz-lc-st .wz-badge: white pill, ink text, coloured dot) in a small size; list rows only,
   the single pin card stays as it was. */
body.wz2 .wzm-prev-st { display: none; }
/* Badge after the price on the same line; it drops under the price only when both do not fit (long price + long status). */
body.wz2 .wzm-prev-list .wzm-prev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
body.wz2 .wzm-prev-list .wzm-prev-st {
    display: inline-flex;
    gap: 5px;
    max-width: 100%;
    padding: 1px 8px;
    overflow: hidden;
    background: #fff;
    color: var(--wz-ink);
    box-shadow: 0 0 0 1px var(--wz-line), 0 1px 2px rgba(17, 20, 24, .06);
    font-size: 10.5px;
    line-height: 1.45;
    text-overflow: ellipsis;
}
body.wz2 .wzm-prev-list .wzm-prev-st.dot::before { flex: 0 0 auto; width: 6px; height: 6px; }
body.wz2 .wzm-prev-list .wzm-prev-st.ok::before { background: var(--wz-p); }
body.wz2 .wzm-prev-list .wzm-prev-st.warn::before { background: var(--wz-fsbo); }
body.wz2 .wzm-prev-list .wzm-prev-st.dark::before { background: var(--wz-ink); }
body.wz2 .wzm-prev-list .wzm-prev-st.err::before { background: var(--wz-err); }
body.wz2 .wzm-prev-list .wzm-prev-st.precon::before { background: var(--wz-precon); }
/* ListingsMap.js (by-owner / pre-construction clusters) opens the same list in a plain popup. */
body.wz2 .wzm-prev-list.wzm-db-list { max-width: min(340px, calc(100vw - 32px)); }
/* === end === */

/* === 2026-12-03: qa3 (QA BUG-122: the single pin card shows the status badge too, the same as the cluster list) === */
body.wz2 .wzm-prev .wzm-prev-top { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; min-width: 0; }
body.wz2 .wzm-prev .wzm-prev-st {
    display: inline-flex;
    gap: 5px;
    max-width: 100%;
    padding: 1px 8px;
    overflow: hidden;
    background: #fff;
    color: var(--wz-ink);
    box-shadow: 0 0 0 1px var(--wz-line), 0 1px 2px rgba(17, 20, 24, .06);
    font-size: 10.5px;
    line-height: 1.45;
    text-overflow: ellipsis;
}
body.wz2 .wzm-prev .wzm-prev-st.dot::before { flex: 0 0 auto; width: 6px; height: 6px; }
body.wz2 .wzm-prev .wzm-prev-st.ok::before { background: var(--wz-p); }
body.wz2 .wzm-prev .wzm-prev-st.warn::before { background: var(--wz-fsbo); }
body.wz2 .wzm-prev .wzm-prev-st.dark::before { background: var(--wz-ink); }
body.wz2 .wzm-prev .wzm-prev-st.err::before { background: var(--wz-err); }
body.wz2 .wzm-prev .wzm-prev-st.precon::before { background: var(--wz-precon); }
/* === end === */
