@import url('https://fonts.googleapis.com/css2?family=Ubuntu:wght@400;500;700&display=swap');
:root {
    --bg: #f3f5f7;
    --surface: #ffffff;
    --ink: #14202b;
    --muted: #6b7785;
    --line: #dfe5ea;
    --soft: #eef2f5;
    --brand: #146c5b;
    --brand-dark: #0d4e42;
    --shadow: 0 16px 40px rgba(20,32,43,.12);
    --shadow-soft: 0 8px 24px rgba(20,32,43,.08);
    --radius: 18px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.is-hidden { display: none !important; }

.topbar { height: 70px; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: relative; z-index: 1100; backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand); color: white; font-weight: 850; box-shadow: 0 5px 14px rgba(20,108,91,.18); }
.brand strong, .brand small { display: block; }
.brand strong { font-size: .96rem; letter-spacing: -.015em; }
.brand small { color: var(--muted); font-size: .7rem; margin-top: 2px; }
.admin-link { padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--muted); border: 1px solid var(--line); font-size: .82rem; background: #fff; }

.search-shell { height: calc(100vh - 70px); display: grid; grid-template-columns: minmax(410px, 43%) 1fr; overflow: hidden; }
.search-panel { overflow-y: auto; padding: 24px 26px 34px; background: var(--bg); }
.search-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.eyebrow { margin: 0 0 4px; color: var(--brand); font-size: .7rem; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1.05; letter-spacing: -.04em; }
.mobile-map-toggle { display: none; }

.filters { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 4px 16px rgba(20,32,43,.045); }
.filters-compact { padding: 8px; }
.filter-primary-row { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px; align-items: stretch; }
.search-box { display: grid; grid-template-columns: 1fr auto; border: 1px solid #cfd8df; border-radius: 11px; overflow: hidden; background: #fff; min-width: 0; }
.search-box input { min-width: 0; border: 0; padding: 10px 11px; outline: 0; font-size: .82rem; background: transparent; }
.search-box button { border: 0; background: var(--brand); color: white; padding: 0 13px; font-size: .76rem; font-weight: 800; }
.search-box:focus-within { border-color: #78ad9f; box-shadow: 0 0 0 3px rgba(20,108,91,.08); }
.show-filters-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; border: 1px solid var(--line); background: #fff; color: #34424e; border-radius: 11px; min-width: 104px; padding: 0 11px; font-size: .74rem; font-weight: 800; white-space: nowrap; }
.show-filters-btn:hover { background: #f7f9fa; }
.show-filters-btn b { min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; background: #e5f3ef; color: var(--brand-dark); font-size: .65rem; }
.advanced-filters { padding: 9px 3px 3px; border-top: 1px solid var(--soft); margin-top: 8px; }
.category-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 1px 1px 8px; scrollbar-width: none; }
.category-tabs::-webkit-scrollbar { display: none; }
.category-tab { flex: 0 0 auto; border: 1px solid var(--line); background: var(--surface); color: #4f5d69; border-radius: 999px; padding: 6px 9px; font-size: .7rem; }
.category-tab.is-active { background: #e7f4f0; color: var(--brand-dark); border-color: #b9ddd3; font-weight: 800; }
.filter-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 3px; }
.filter-grid label { min-width: 0; }
.filter-grid label > span { display: block; font-size: .63rem; color: var(--muted); font-weight: 800; margin: 0 0 4px 2px; }
.filter-grid input, .filter-grid select { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 9px; padding: 0 9px; background: #fff; color: var(--ink); outline: none; font-size: .75rem; }
.filter-grid input:focus, .filter-grid select:focus { border-color: #78ad9f; box-shadow: 0 0 0 3px rgba(20,108,91,.07); }
.residential-type-group { grid-column: 1 / -1; min-width: 0; margin: 0; padding: 0; border: 0; }
.residential-type-group legend { display: block; width: 100%; font-size: .63rem; color: var(--muted); font-weight: 800; margin: 0 0 5px 2px; padding: 0; }
.residential-type-options { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 7px; }
.residential-type-choice { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 38px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); cursor: pointer; user-select: none; transition: border-color .16s ease, background .16s ease, box-shadow .16s ease; }
.residential-type-choice:hover { border-color: #a8c9c0; background: #fbfdfc; }
.residential-type-choice:has(input:checked) { border-color: #78ad9f; background: #f0f8f5; box-shadow: 0 0 0 3px rgba(20,108,91,.05); }
.residential-type-choice input { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 17px; height: 17px; margin: 0; padding: 0; border: 1.5px solid #aab8b3; border-radius: 5px; background: #fff; display: grid; place-content: center; }
.residential-type-choice input::before { content: ''; width: 8px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0); margin-top: -2px; transition: transform .12s ease; }
.residential-type-choice input:checked { border-color: var(--brand); background: var(--brand); }
.residential-type-choice input:checked::before { transform: rotate(-45deg) scale(1); }
.residential-type-choice span { min-width: 0; font-size: .72rem; font-weight: 800; line-height: 1.15; }
.filter-actions { display: flex; align-items: center; gap: 7px; margin-top: 10px; }
.primary-btn, .ghost-btn { border-radius: 9px; height: 35px; padding: 0 12px; font-size: .73rem; font-weight: 800; }
.primary-btn { border: 1px solid var(--brand); background: var(--brand); color: white; }
.ghost-btn { border: 1px solid var(--line); background: white; color: var(--muted); }
.map-bounds-status { margin-left: auto; color: var(--brand); font-size: .67rem; }

.results-heading { display: flex; align-items: center; justify-content: space-between; padding: 17px 2px 10px; }
.results-heading strong { font-size: .92rem; }
.results-heading span { font-size: .73rem; color: var(--muted); margin-left: 3px; }
.loading-dot { width: 10px; height: 10px; border: 2px solid #c5d0d8; border-top-color: var(--brand); border-radius: 999px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.property-card { overflow: hidden; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; min-width: 0; }
.property-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); border-color: #cfd9df; }
.property-image { aspect-ratio: 1.52 / 1; background: #dfe5e8; overflow: hidden; position: relative; }
.property-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.property-image .no-photo { height: 100%; display: grid; place-items: center; color: #71808c; font-size: .75rem; }
.property-tag { position: absolute; top: 8px; left: 8px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 4px 7px; font-size: .6rem; font-weight: 850; text-transform: capitalize; backdrop-filter: blur(8px); }
.property-body { padding: 11px; }
.property-price { font-size: 1rem; font-weight: 875; letter-spacing: -.025em; }
.property-address { margin-top: 4px; min-height: 32px; color: #3e4b56; font-size: .75rem; line-height: 1.34; }
.property-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; color: var(--muted); font-size: .65rem; }
.property-meta span { padding-right: 6px; border-right: 1px solid var(--line); }
.property-meta span:last-child { border-right: 0; }
.property-type { margin-top: 7px; color: var(--brand-dark); font-size: .65rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-state { text-align: center; padding: 38px 15px; border: 1px dashed #cad4db; border-radius: 14px; background: rgba(255,255,255,.55); color: var(--muted); }
.empty-state strong { color: var(--ink); display: block; margin-bottom: 6px; }
.empty-state p { margin: 0; font-size: .8rem; }
.pagination { display: flex; justify-content: center; gap: 7px; padding: 18px 0 8px; }
.pagination button { border: 1px solid var(--line); background: #fff; border-radius: 9px; padding: 8px 11px; color: var(--ink); font-size: .75rem; }
.pagination button:disabled { opacity: .4; cursor: default; }

.map-panel { position: relative; min-width: 0; }
#map { width: 100%; height: 100%; background: #dbe2e5; }
.search-area-btn { position: absolute; z-index: 900; top: 16px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 999px; background: #182630; color: white; padding: 9px 15px; font-size: .76rem; font-weight: 800; box-shadow: 0 8px 22px rgba(0,0,0,.16); }
.map-note { position: absolute; z-index: 850; bottom: 20px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.94); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 6px 10px; font-size: .64rem; white-space: nowrap; backdrop-filter: blur(8px); }
.price-marker { background: transparent; border: 0; }
.price-marker span { display: inline-block; transform: translate(-50%,-50%); background: #fff; border: 2px solid #182630; color: #182630; border-radius: 999px; padding: 5px 8px; min-width: 45px; text-align: center; font-size: 10px; font-weight: 900; white-space: nowrap; box-shadow: 0 3px 10px rgba(0,0,0,.16); transition: transform .15s ease; }
.price-marker:hover span { transform: translate(-50%,-54%) scale(1.04); }
.modern-property-popup .leaflet-popup-content-wrapper { border-radius: 17px; box-shadow: 0 18px 48px rgba(20,32,43,.24); padding: 0; overflow: hidden; border: 1px solid rgba(20,32,43,.08); }
.modern-property-popup .leaflet-popup-content { margin: 0; width: 300px !important; }
.modern-property-popup .leaflet-popup-tip { box-shadow: 3px 3px 8px rgba(20,32,43,.08); }
.modern-property-popup .leaflet-popup-close-button { width: 28px; height: 28px; line-height: 26px; top: 8px; right: 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: #263541; font-size: 17px; z-index: 2; box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.map-popup-card { display: block; text-decoration: none; background: #fff; color: var(--ink); }
.map-popup-media { height: 154px; background: #e4e9ec; overflow: hidden; position: relative; }
.map-popup-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.map-popup-no-photo { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: .74rem; }
.map-popup-badge { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.94); color: #34424e; font-size: .61rem; font-weight: 850; text-transform: capitalize; backdrop-filter: blur(7px); }
.map-popup-content { padding: 12px 13px 13px; }
.map-popup-price-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.map-popup-price-row strong { font-size: 1.05rem; letter-spacing: -.02em; }
.map-popup-price-row span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; background: #edf5f2; color: var(--brand-dark); font-weight: 900; }
.map-popup-content p { margin: 5px 0 0; color: #52606b; font-size: .73rem; line-height: 1.35; }
.map-popup-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; color: #53616d; font-size: .66rem; }
.map-popup-meta span { padding-right: 6px; border-right: 1px solid var(--line); }
.map-popup-meta span:last-child { border-right: 0; }
.map-popup-content small { display: block; margin-top: 9px; color: var(--brand-dark); font-size: .65rem; font-weight: 800; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background: rgba(20,108,91,.22); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background: var(--brand); color: white; font-weight: 850; }
.server-cluster-icon { background: transparent; border: 0; }
.server-cluster-icon span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 999px; background: #146c5b; color: #fff; border: 5px solid rgba(255,255,255,.86); box-shadow: 0 7px 20px rgba(20,32,43,.24); font-size: 11px; font-weight: 900; }

/* Listing detail */
.detail-page { min-height: 100%; background: #f4f6f7; }
.detail-wrap { max-width: 1380px; margin: 0 auto; padding: 24px 26px 70px; }
.detail-gallery-shell { position: relative; }
.detail-gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 235px 235px; gap: 7px; border-radius: 22px; overflow: hidden; background: #dfe4e7; box-shadow: 0 7px 24px rgba(20,32,43,.06); }
.detail-gallery button { border: 0; padding: 0; background: #dfe4e7; overflow: hidden; position: relative; }
.detail-gallery button:first-child { grid-row: 1 / 3; }
.detail-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s ease; }
.detail-gallery button:hover img { transform: scale(1.015); }
.detail-gallery.single { grid-template-columns: 1fr; grid-template-rows: min(65vh, 620px); }
.detail-gallery.single button:first-child { grid-row: auto; }
.detail-photo-empty { min-height: 430px; display: grid; place-items: center; color: var(--muted); grid-column: 1 / -1; }
.gallery-all-btn { position: absolute; right: 14px; bottom: 14px; border: 1px solid rgba(20,32,43,.12); background: rgba(255,255,255,.94); color: var(--ink); border-radius: 10px; padding: 9px 12px; font-size: .73rem; font-weight: 850; box-shadow: 0 6px 18px rgba(20,32,43,.12); backdrop-filter: blur(8px); }
.detail-summary { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: start; padding: 27px 4px 22px; border-bottom: 1px solid var(--line); }
.detail-kicker { color: var(--brand); font-weight: 850; text-transform: capitalize; font-size: .7rem; letter-spacing: .05em; }
.detail-price { font-size: clamp(2rem, 4vw, 3.4rem); margin: 7px 0 4px; letter-spacing: -.05em; }
.detail-address { color: #52606b; margin: 0; font-size: .97rem; line-height: 1.45; }
.detail-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 17px; }
.detail-stats span { background: #fff; border: 1px solid var(--line); border-radius: 11px; padding: 8px 10px; font-size: .76rem; }
.detail-stats strong { margin-right: 3px; }
.detail-summary-side { min-width: 220px; display: grid; gap: 8px; }
.detail-summary-side a, .detail-summary-side div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; text-decoration: none; font-size: .72rem; }
.detail-summary-side small { display: block; color: var(--muted); font-size: .62rem; margin-bottom: 3px; }
.detail-summary-side strong { display: block; }
.detail-content-grid { display: grid; grid-template-columns: minmax(0,1fr) 345px; gap: 28px; align-items: start; padding-top: 25px; }
.detail-primary { min-width: 0; }
.detail-section { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px; margin-bottom: 14px; }
.detail-section h2 { margin: 0 0 14px; font-size: 1rem; letter-spacing: -.02em; }
.detail-section-sub { margin: -7px 0 14px; color: var(--muted); font-size: .73rem; line-height: 1.5; }
.detail-remarks p { margin: 0; color: #4f5d68; line-height: 1.75; font-size: .9rem; }
.open-house-list { display: grid; gap: 9px; }
.open-house-card { display: grid; grid-template-columns: 72px minmax(0,1fr) auto; gap: 12px; align-items: center; border: 1px solid #d9e8e3; background: #f7fbfa; border-radius: 13px; padding: 11px; }
.open-house-date { width: 64px; height: 60px; display: grid; place-items: center; align-content: center; border-radius: 11px; background: #fff; border: 1px solid #dbe7e3; }
.open-house-date b { font-size: 1.2rem; line-height: 1; }
.open-house-date span { margin-top: 3px; color: var(--muted); font-size: .62rem; text-transform: uppercase; font-weight: 850; }
.open-house-copy strong { display: block; font-size: .83rem; }
.open-house-copy p { margin: 4px 0 0; color: var(--muted); font-size: .69rem; line-height: 1.4; }
.open-house-link { text-decoration: none; border-radius: 9px; padding: 7px 9px; background: var(--brand); color: #fff; font-size: .66rem; font-weight: 800; white-space: nowrap; }
.fact-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 22px; }
.fact-row { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-top: 1px solid var(--soft); font-size: .73rem; min-width: 0; }
.fact-row:nth-child(-n+2) { border-top: 0; }
.fact-row span { color: var(--muted); min-width: 0; }
.fact-row strong { text-align: right; font-weight: 750; overflow-wrap: anywhere; }
.fact-row a { color: var(--brand-dark); text-decoration: underline; text-underline-offset: 2px; }
.detail-sidebar { position: sticky; top: 14px; }
.detail-sidebar .detail-section { margin-bottom: 12px; }
.detail-sidebar .fact-grid { grid-template-columns: 1fr; }
.detail-sidebar .fact-row:nth-child(2) { border-top: 1px solid var(--soft); }
.detail-map-card { overflow: hidden; padding: 0; }
.detail-map-placeholder { min-height: 180px; display: grid; place-items: center; background: linear-gradient(145deg,#e7ecee,#f7f9fa); color: var(--muted); text-align: center; padding: 20px; font-size: .74rem; }
.detail-data-groups { display: grid; gap: 12px; }
.detail-data-group { border-top: 1px solid var(--soft); padding-top: 13px; }
.detail-data-group:first-child { border-top: 0; padding-top: 0; }
.detail-data-group h3 { margin: 0 0 7px; font-size: .81rem; }
.detail-data-group .fact-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.detail-data-empty { color: var(--muted); font-size: .74rem; }
.detail-system-note { margin-top: 10px; color: var(--muted); font-size: .64rem; }

.gallery-lightbox[hidden] { display: none; }
.gallery-lightbox { position: fixed; inset: 0; z-index: 3000; background: rgba(8,13,18,.94); display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.gallery-lightbox-top { display: flex; align-items: center; justify-content: space-between; padding: 13px 16px; color: white; }
.gallery-lightbox-top span { font-size: .76rem; color: #d3d9de; }
.gallery-lightbox-close { width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.08); color: white; border-radius: 999px; font-size: 1.25rem; }
.gallery-stage { min-height: 0; display: grid; grid-template-columns: 58px minmax(0,1fr) 58px; align-items: center; gap: 10px; padding: 0 12px; }
.gallery-stage img { width: 100%; height: 100%; max-height: calc(100vh - 190px); object-fit: contain; }
.gallery-nav { width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.09); color: white; border-radius: 999px; font-size: 1.5rem; }
.gallery-thumbs { display: flex; gap: 7px; overflow-x: auto; padding: 12px 16px 15px; justify-content: flex-start; }
.gallery-thumbs button { flex: 0 0 auto; width: 76px; height: 52px; padding: 0; border: 2px solid transparent; border-radius: 7px; overflow: hidden; background: #222; opacity: .65; }
.gallery-thumbs button.is-active { border-color: #fff; opacity: 1; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
body.gallery-open { overflow: hidden; }

.detail-not-found { max-width: 700px; margin: 90px auto; padding: 30px; text-align: center; }
.detail-not-found p { color: var(--muted); }
.detail-not-found a { color: var(--brand); }

@media (max-width: 1180px) {
    .search-shell { grid-template-columns: minmax(390px, 48%) 1fr; }
    .results-grid { grid-template-columns: 1fr; }
    .detail-content-grid { grid-template-columns: minmax(0,1fr) 310px; }
}
@media (max-width: 900px) {
    .detail-wrap { padding: 14px 14px 50px; }
    .detail-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 260px 145px; }
    .detail-gallery button:first-child { grid-column: 1 / -1; grid-row: 1; }
    .detail-gallery button:nth-child(n+4) { display: none; }
    .detail-summary { grid-template-columns: 1fr; }
    .detail-summary-side { grid-template-columns: repeat(2,minmax(0,1fr)); min-width: 0; }
    .detail-content-grid { grid-template-columns: 1fr; }
    .detail-sidebar { position: static; }
}
@media (max-width: 760px) {
    .topbar { height: 64px; padding: 0 14px; }
    .brand small { display: none; }
    .search-shell { display: block; height: calc(100vh - 64px); position: relative; }
    .search-panel { height: 100%; padding: 17px 13px 30px; }
    .map-panel { display: none; position: absolute; inset: 0; z-index: 1000; }
    .search-shell.map-open .map-panel { display: block; }
    .mobile-map-toggle { display: inline-flex; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 11px; font-size: .74rem; font-weight: 800; }
    .search-shell.map-open .mobile-map-toggle { position: fixed; z-index: 1200; top: 76px; right: 12px; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .results-grid { grid-template-columns: 1fr; }
    .property-card { display: grid; grid-template-columns: 128px 1fr; }
    .property-image { aspect-ratio: auto; height: 100%; min-height: 136px; }
    .map-note { bottom: 14px; }
    .fact-grid, .detail-data-group .fact-grid { grid-template-columns: 1fr; }
    .fact-row:nth-child(2) { border-top: 1px solid var(--soft); }
    .gallery-stage { grid-template-columns: 44px minmax(0,1fr) 44px; padding: 0 5px; }
    .gallery-nav { width: 38px; height: 38px; }
}
@media (max-width: 500px) {
    .search-head h1 { font-size: 1.35rem; }
    .filter-primary-row { grid-template-columns: minmax(0,1fr) auto; }
    .search-box button { padding: 0 10px; }
    .show-filters-btn { min-width: 92px; padding: 0 8px; }
    .filter-grid { grid-template-columns: 1fr; }
    .residential-type-options { grid-template-columns: 1fr; }
    .property-card { grid-template-columns: 108px 1fr; }
    .property-address { min-height: 0; }
    .detail-gallery { grid-template-rows: 235px 110px; }
    .detail-summary-side { grid-template-columns: 1fr; }
    .open-house-card { grid-template-columns: 62px minmax(0,1fr); }
    .open-house-link { grid-column: 1 / -1; text-align: center; }
}

/* V1.2 viewport-first map + richer listing page */
.detail-mini-kicker { margin: 0 0 5px; color: var(--brand); font-size: .62rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.section-title-row h2 { margin-bottom: 3px; }
.section-title-row > span { color: var(--muted); font-size: .66rem; white-space: nowrap; }
.important-specs-section { background: linear-gradient(180deg,#fff,#fbfcfc); }
.important-spec-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; }
.important-spec-card { min-width: 0; border: 1px solid var(--line); border-radius: 14px; padding: 13px; background: #fff; }
.important-spec-card small, .important-spec-card strong, .important-spec-card span { display: block; }
.important-spec-card small { color: var(--muted); font-size: .61rem; font-weight: 800; }
.important-spec-card strong { margin-top: 5px; font-size: .92rem; letter-spacing: -.015em; overflow-wrap: anywhere; }
.important-spec-card span { margin-top: 3px; color: #78848d; font-size: .61rem; overflow-wrap: anywhere; }
.feature-chip-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 13px; }
.feature-chip-list span { border: 1px solid #d9e6e2; background: #f3f9f7; color: #315a50; border-radius: 999px; padding: 6px 9px; font-size: .64rem; line-height: 1.15; }

.property-story-section { padding: clamp(22px,4vw,34px); background: linear-gradient(145deg,#ffffff 0%,#f7faf9 100%); }
.story-heading { max-width: 780px; margin-bottom: 20px; }
.story-heading h2 { font-size: clamp(1.3rem,2.2vw,2rem); line-height: 1.15; margin-bottom: 7px; }
.story-heading small { color: var(--muted); font-size: .66rem; }
.property-story-copy { max-width: 820px; }
.property-story-copy p { margin: 0 0 14px; color: #46545f; line-height: 1.78; font-size: .91rem; }
.property-story-copy h3 { margin: 25px 0 8px; font-size: 1rem; letter-spacing: -.015em; }
.property-story-copy ul { margin: 8px 0 0; padding-left: 19px; color: #4c5963; }
.property-story-copy li { margin: 7px 0; padding-left: 3px; font-size: .82rem; line-height: 1.55; }

.listing-map-section { padding-bottom: 18px; overflow: hidden; }
.listing-map { width: 100%; height: 390px; border-radius: 14px; overflow: hidden; background: #dce4e7; border: 1px solid var(--line); }
.map-search-link { flex: 0 0 auto; text-decoration: none; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 10px; color: var(--brand-dark); font-size: .67rem; font-weight: 850; }
.detail-property-marker { background: transparent; border: 0; }
.detail-property-marker span { position: relative; display: block; width: 34px; height: 34px; background: var(--brand); border: 5px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 8px 22px rgba(20,32,43,.3); }
.detail-property-marker span::after { content: ''; position: absolute; inset: 7px; background: #fff; border-radius: 999px; }

.sidebar-pricing-card { background: #17252f; color: #fff; border-color: #17252f; }
.sidebar-pricing-card .detail-mini-kicker { color: #9bd0c3; }
.sidebar-pricing-card h2 { font-size: 1.45rem; margin-bottom: 7px; }
.sidebar-transaction { color: #c8d3d9; font-size: .68rem; text-transform: capitalize; margin-bottom: 14px; }
.sidebar-price-line { display: flex; justify-content: space-between; gap: 10px; padding-top: 9px; margin-top: 9px; border-top: 1px solid rgba(255,255,255,.12); font-size: .68rem; }
.sidebar-price-line span { color: #aebbc2; }
.sidebar-price-line strong { text-align: right; }

.remainder-specs-section .detail-data-groups { gap: 8px; }
.remainder-specs-section .detail-data-group { border: 1px solid var(--line); border-radius: 13px; padding: 0; background: #fff; overflow: hidden; }
.remainder-specs-section .detail-data-group:first-child { border-top: 1px solid var(--line); padding-top: 0; }
.remainder-specs-section .detail-data-group summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 12px 13px; cursor: pointer; list-style: none; background: #fafbfc; }
.remainder-specs-section .detail-data-group summary::-webkit-details-marker { display: none; }
.remainder-specs-section .detail-data-group summary span { font-size: .78rem; font-weight: 850; }
.remainder-specs-section .detail-data-group summary b { color: var(--muted); font-size: .61rem; font-weight: 750; }
.remainder-specs-section .detail-data-group[open] summary { border-bottom: 1px solid var(--line); background: #f6f9f8; }
.remainder-specs-section .detail-data-group .fact-grid { padding: 8px 12px 12px; }
.remainder-specs-section .fact-row { border-top: 1px solid var(--soft); }
.remainder-specs-section .fact-grid .fact-row:nth-child(1), .remainder-specs-section .fact-grid .fact-row:nth-child(2) { border-top: 0; }

@media (max-width: 1050px) {
  .important-spec-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .important-spec-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .listing-map { height: 310px; }
  .section-title-row { gap: 10px; }
}

/* V1.6 shared widget branding + lead card */
.widget-map-frame { overflow:hidden; }
.widget-map-topbar { height:64px; padding:0 16px; }
.widget-map-frame .search-shell { height:calc(100vh - 64px); }
.widget-map-brand { display:flex; align-items:center; gap:10px; min-width:0; }
.widget-map-brand img { display:block; max-width:170px; max-height:42px; object-fit:contain; }
.widget-map-brand strong { font-size:.88rem; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.widget-map-close { width:38px; height:38px; border:1px solid var(--line); border-radius:999px; background:#fff; color:#28353f; font-size:1.35rem; line-height:1; display:grid; place-items:center; box-shadow:0 4px 14px rgba(20,32,43,.07); }
.widget-map-close:hover { background:#f6f8f9; }
.widget-realtor-card { border:1px solid var(--line); background:#fff; border-radius:15px; padding:13px; box-shadow:0 5px 18px rgba(20,32,43,.05); }
.map-realtor-card { margin:0 0 12px; }
.widget-realtor-intro { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:10px; align-items:center; }
.widget-realtor-intro > img:not(.widget-realtor-logo) { width:48px; height:48px; border-radius:999px; object-fit:cover; background:#eef2f4; }
.widget-realtor-intro small, .widget-realtor-intro strong, .widget-realtor-intro a { display:block; }
.widget-realtor-intro small { color:var(--muted); font-size:.62rem; }
.widget-realtor-intro strong { margin-top:2px; font-size:.82rem; }
.widget-realtor-intro a { margin-top:3px; color:var(--brand-dark); text-decoration:none; font-size:.7rem; font-weight:750; }
.widget-realtor-logo { max-width:72px; max-height:34px; object-fit:contain; }
.widget-realtor-card > p { margin:10px 0; color:#596773; font-size:.72rem; line-height:1.5; }
.widget-lead-form { display:grid; gap:7px; }
.lead-grid { display:grid; grid-template-columns:1fr 1fr; gap:6px; }
.lead-grid input, .lead-grid textarea { width:100%; border:1px solid #dbe2e7; border-radius:9px; background:#fff; padding:8px 9px; color:var(--ink); font:inherit; font-size:.7rem; outline:none; }
.lead-grid textarea { grid-column:1/-1; min-height:58px; resize:vertical; }
.lead-grid input:focus, .lead-grid textarea:focus { border-color:var(--brand); box-shadow:0 0 0 3px color-mix(in srgb, var(--brand) 10%, transparent); }
.widget-lead-form button { justify-self:start; border:0; border-radius:9px; background:var(--brand); color:#fff; padding:8px 11px; font-size:.69rem; font-weight:800; }
.widget-lead-form button:disabled { opacity:.55; }
.map-realtor-card .map-lead-grid { grid-template-columns:1fr 1fr; }
.map-realtor-card .lead-connect-btn { width:100%; min-height:34px; justify-self:stretch; display:flex; align-items:center; justify-content:center; }
.lead-status { color:var(--muted); font-size:.62rem; line-height:1.35; }
.lead-hp { position:absolute !important; left:-9999px !important; width:1px !important; height:1px !important; opacity:0 !important; pointer-events:none !important; }
@media (max-width:760px) {
  .widget-map-frame .search-shell { height:calc(100vh - 64px); }
  .widget-map-frame .search-panel { padding-top:13px; }
  .widget-map-brand img { max-width:125px; max-height:36px; }
  .lead-grid:not(.map-lead-grid) { grid-template-columns:1fr; }
  .lead-grid textarea { grid-column:auto; }
  .map-realtor-card .map-lead-grid { grid-template-columns:1fr 1fr; }
}
.widget-property-frame { background:transparent; }
.widget-property-frame .detail-wrap { padding-top:4px; }
.property-realtor-card { padding:16px; }
.property-realtor-card .lead-grid { grid-template-columns:1fr; }
.property-realtor-card .lead-grid textarea { grid-column:auto; }
@media(max-width:900px){.widget-property-frame .detail-wrap{padding-left:2px;padding-right:2px}.property-realtor-card{order:-1}}
.property-card-main { display:block; color:inherit; text-decoration:none; }
.realtor-powered-link { display:block; padding:0 11px 10px; color:#71808c; font-size:.56rem; font-weight:750; text-decoration:none; }
.realtor-powered-link:hover { color:var(--brand-dark); text-decoration:underline; }
.map-popup-main { display:block; color:inherit; text-decoration:none; }
.map-popup-powered { display:block; padding:0 12px 10px; color:#73808b; font-size:.56rem; font-weight:750; text-decoration:none; }
.map-popup-powered:hover { color:var(--brand-dark); text-decoration:underline; }
@media (max-width:760px){
  .property-card{display:block;}
  .property-card-main{display:grid;grid-template-columns:128px 1fr;}
}
@media (max-width:500px){
  .property-card-main{grid-template-columns:108px 1fr;}
}

/* V1.8 listing-photo normalization
   Many board/agent uploads contain screenshots or baked-in white margins. Display
   tiles intentionally crop 18% from the top and bottom while the full-screen
   gallery keeps the original image available with object-fit: contain. */
.property-image img,
.map-popup-media img,
.detail-gallery button > img {
    position: absolute;
    left: 0;
    top: -18%;
    width: 100%;
    height: 136%;
    object-fit: cover;
    object-position: center center;
}
.gallery-thumbs button { position: relative; }
.gallery-thumbs img {
    position: absolute;
    left: 0;
    top: -18%;
    width: 100%;
    height: 136%;
    object-fit: cover;
    object-position: center center;
}
/* Do not crop the actual full-size lightbox image. */
.gallery-stage > img,
#galleryMainImage {
    position: static;
    width: 100%;
    height: 100%;
    max-height: calc(100vh - 190px);
    object-fit: contain;
    object-position: center center;
}

/* V1.9 broken-media cleanup */
.gallery-all-btn[hidden] { display: none !important; }
.detail-gallery .detail-photo-empty[data-runtime-empty] { min-height: 430px; }

/* V1.10 property taxonomy + complete room/full-feed presentation */
.rooms-section .section-title-row { align-items:flex-end; }
.room-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; }
.room-card { border:1px solid var(--line); border-radius:13px; background:#fff; padding:13px; min-width:0; }
.room-card-head { display:flex; align-items:flex-start; justify-content:space-between; gap:10px; margin-bottom:8px; }
.room-card-head strong { font-size:.82rem; line-height:1.25; }
.room-card-head span { flex:0 0 auto; color:var(--muted); background:#f3f6f7; border-radius:999px; padding:4px 7px; font-size:.58rem; font-weight:800; }
.room-measure { display:flex; flex-wrap:wrap; align-items:baseline; gap:8px; margin-bottom:8px; }
.room-measure b { font-size:.8rem; }
.room-measure small { color:var(--muted); font-size:.62rem; }
.room-card p { display:grid; grid-template-columns:60px minmax(0,1fr); gap:8px; margin:7px 0 0; color:#52616c; font-size:.67rem; line-height:1.45; }
.room-card p span { color:var(--muted); font-size:.58rem; font-weight:850; text-transform:uppercase; letter-spacing:.04em; }
.remainder-specs-section .detail-data-group summary span:first-child { text-transform:none; }
@media (max-width:760px) { .room-grid { grid-template-columns:1fr; } }

/* V1.15 location-first Map Search */
.map-location-wrap { position: relative; z-index: 30; }
.map-location-shell { display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; min-height:44px; border:1px solid #cfd8df; border-radius:11px; background:#fff; overflow:visible; transition:border-color .15s ease,box-shadow .15s ease; }
.map-location-shell:focus-within { border-color:#78ad9f; box-shadow:0 0 0 3px rgba(20,108,91,.08); }
.map-location-pin { width:17px; height:17px; margin-left:11px; display:grid; place-items:center; color:var(--brand); }
.map-location-pin svg { width:17px; height:17px; display:block; }
.map-location-shell input { min-width:0; width:100%; border:0; padding:10px 9px; outline:0; font-size:.82rem; background:transparent; color:var(--ink); }
.map-location-shell input::placeholder { color:#88949d; }
.map-location-shell > button { align-self:stretch; border:0; border-radius:0 10px 10px 0; background:var(--brand); color:#fff; padding:0 15px; font-size:.76rem; font-weight:820; }
.map-location-shell > button:hover { background:var(--brand-dark); }
.map-location-suggestions { position:absolute; left:0; right:0; top:50px; z-index:1500; overflow:hidden; background:#fff; border:1px solid #dfe5e8; border-radius:11px; box-shadow:0 14px 34px rgba(20,32,43,.16); }
.map-location-suggestions[hidden] { display:none !important; }
.map-location-suggestion { width:100%; display:flex; align-items:center; gap:9px; border:0; border-bottom:1px solid #f0f3f5; background:#fff; padding:10px 11px; text-align:left; color:#2b3944; font-size:.75rem; }
.map-location-suggestion:last-child { border-bottom:0; }
.map-location-suggestion:hover,.map-location-suggestion.is-active { background:#f2f8f6; color:var(--brand-dark); }
.map-location-suggestion svg { width:14px; height:14px; flex:0 0 auto; color:var(--brand); }
.primary-search-options { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:7px; }
.map-transaction-tabs { display:flex; align-items:center; gap:3px; padding:3px; border-radius:10px; background:#f1f4f6; min-width:0; }
.map-transaction-tabs button { border:0; background:transparent; color:#65727c; border-radius:8px; padding:7px 10px; font-size:.69rem; font-weight:800; line-height:1; white-space:nowrap; transition:background .15s ease,color .15s ease,box-shadow .15s ease; }
.map-transaction-tabs button:hover { color:#34434d; }
.map-transaction-tabs button.is-active { background:#fff; color:var(--brand-dark); box-shadow:0 2px 8px rgba(20,32,43,.08); }
.primary-search-options .show-filters-btn { min-height:34px; }

@media (max-width:500px) {
    .map-location-shell > button { padding:0 11px; }
    .primary-search-options { align-items:stretch; }
    .map-transaction-tabs { flex:1 1 auto; display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
    .map-transaction-tabs button { padding:7px 4px; text-align:center; }
    .primary-search-options .show-filters-btn { min-width:90px; }
}
@media (max-width:380px) {
    .primary-search-options { display:grid; grid-template-columns:1fr; }
    .primary-search-options .show-filters-btn { width:100%; min-height:36px; }
}

/* V1.15.1 filter balance + mobile form focus safety */
.commercial-business-filter { grid-column: 1 / -1; }

/*
   iPhone/Safari may magnify focused controls when their rendered text is too
   small. Keep interactive form controls at a practical 16px minimum on phone
   layouts while preserving the compact desktop UI.
*/
@media (max-width: 760px) {
    form input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="hidden"]),
    form select,
    form textarea,
    form button {
        font-size: 16px;
    }
    .filter-grid input,
    .filter-grid select,
    .lead-grid input,
    .lead-grid textarea,
    .map-location-shell input,
    .map-location-shell > button,
    .map-location-suggestion,
    .map-transaction-tabs button,
    .show-filters-btn,
    .category-tab,
    .primary-btn,
    .ghost-btn,
    .widget-lead-form button {
        font-size: 16px;
    }
    .residential-type-choice span { font-size: 16px; }
    .residential-type-choice input { width: 20px; height: 20px; }
}

/* V1.16 lightweight Market Analysis */
.market-analysis-section { background: linear-gradient(180deg,#fff 0%,#fbfcfd 100%); }
.market-analysis-heading { display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px; }
.market-analysis-heading h2 { margin-bottom:3px; }
.market-analysis-heading .detail-section-sub { margin:0;color:var(--muted); }
.market-analysis-count { flex:0 0 auto;border:1px solid var(--line);background:#f7f9fa;border-radius:999px;padding:6px 9px;color:#52606b;font-size:.65rem;font-weight:800;white-space:nowrap; }
.market-analysis-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.market-analysis-card { min-width:0;border:1px solid var(--line);border-radius:14px;background:#fff;padding:14px; }
.market-analysis-card > small,.market-analysis-card > strong,.market-analysis-card > em { display:block; }
.market-analysis-card > small { color:var(--muted);font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.055em; }
.market-analysis-card > strong { margin-top:5px;font-size:1rem;letter-spacing:-.02em;color:var(--ink); }
.market-analysis-card > p { margin:5px 0 0;color:#586672;font-size:.72rem;line-height:1.45; }
.market-analysis-card > em { margin-top:8px;color:#86919a;font-size:.59rem;font-style:normal;font-weight:700; }
.market-analysis-card.is-inventory { background:#f8fafb; }
.market-range { position:relative;height:18px;margin-top:10px; }
.market-range::before { content:'';position:absolute;left:0;right:0;top:8px;height:3px;border-radius:999px;background:#e3e8eb; }
.market-range-typical { position:absolute;left:var(--market-typical-left);width:var(--market-typical-width);top:6px;height:7px;border-radius:999px;background:#cbd5dc; }
.market-range-marker { position:absolute;left:var(--market-marker);top:3px;width:12px;height:12px;border-radius:999px;background:#334155;border:2px solid #fff;box-shadow:0 0 0 1px #334155;transform:translateX(-50%); }
.market-analysis-footer { display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-top:14px;padding-top:13px;border-top:1px solid var(--soft); }
.market-analysis-footer p { margin:0;color:#64717b;font-size:.65rem;line-height:1.45; }
.market-analysis-footer small { display:block;margin-top:3px;color:#89939b;font-size:.59rem;line-height:1.45; }
.market-comparable-link { flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:38px;border:1px solid #cfd8dd;border-radius:10px;background:#fff;color:var(--ink);padding:8px 11px;text-decoration:none;font-size:.68rem;font-weight:850;white-space:nowrap; }
.market-comparable-link:hover { border-color:#9eabb3;background:#f8fafb; }
@media (max-width: 620px) {
    .market-analysis-heading,.market-analysis-footer { flex-direction:column;align-items:flex-start; }
    .market-analysis-grid { grid-template-columns:1fr; }
    .market-comparable-link { width:100%; }
}

/* V1.16.1 Market Analysis completion card + similar active properties */
.market-contact-card { background:linear-gradient(145deg,#f7fbfa 0%,#fff 72%);border-color:#cfe2dc; }
.market-contact-person { display:grid;grid-template-columns:42px minmax(0,1fr) auto;align-items:center;gap:9px; }
.market-contact-person>img:not(.market-contact-logo) { width:42px;height:42px;border-radius:50%;object-fit:cover;background:#e9efed; }
.market-contact-avatar { width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:var(--brand);color:#fff;font-weight:900;font-size:.9rem; }
.market-contact-person div small,.market-contact-person div strong { display:block; }
.market-contact-person div small { color:var(--brand);font-size:.57rem;text-transform:uppercase;letter-spacing:.055em;font-weight:850; }
.market-contact-person div strong { margin-top:2px;color:var(--ink);font-size:.84rem;line-height:1.25; }
.market-contact-logo { width:46px;max-height:30px;object-fit:contain; }
.market-contact-logo-fallback { width:28px;height:28px;border-radius:8px;display:grid;place-items:center;background:var(--brand);color:#fff;font-size:.72rem;font-weight:900; }
.market-contact-card>p { margin-top:8px; }
.market-contact-form { margin-top:9px; }
.market-contact-fields { display:grid;grid-template-columns:1fr 1fr 1fr;gap:6px; }
.market-contact-fields input { width:100%;min-width:0;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);padding:8px 9px;font-size:.64rem;outline:none; }
.market-contact-fields input:focus { border-color:var(--brand);box-shadow:0 0 0 2px rgba(20,108,91,.10); }
.market-contact-action { display:flex;align-items:center;gap:8px;min-height:34px; }
.market-contact-form button { min-height:34px;padding:7px 11px; }
.market-contact-action .lead-status { min-width:0; }

.similar-properties-section { overflow:hidden; }
.similar-property-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px; }
.similar-property-card { min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px;background:#fff;color:inherit;text-decoration:none;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease; }
.similar-property-card:hover { transform:translateY(-2px);box-shadow:var(--shadow-soft);border-color:#cfd9df; }
.similar-property-media { position:relative;height:150px;background:linear-gradient(145deg,#e7ecee,#f7f9fa);overflow:hidden; }
.similar-property-media img { width:100%;height:100%;object-fit:cover;display:block; }
.similar-property-media>span { position:absolute;left:10px;top:10px;padding:5px 8px;border-radius:999px;background:rgba(255,255,255,.94);border:1px solid rgba(210,219,224,.95);color:#334155;font-size:.61rem;font-weight:900;box-shadow:0 3px 12px rgba(15,23,42,.08); }
.similar-property-copy { padding:12px; }
.similar-property-copy>strong { display:block;color:var(--ink);font-size:.95rem;letter-spacing:-.02em; }
.similar-property-copy>p { margin:4px 0 0;color:#4f5f6b;font-size:.69rem;font-weight:700;line-height:1.4; }
.similar-property-copy>div { margin-top:7px;color:#65737e;font-size:.64rem; }
.similar-property-copy>small { display:block;margin-top:6px;color:#87919a;font-size:.59rem;line-height:1.35; }
.similar-properties-note { margin:9px 0 0;color:#87919a;font-size:.59rem;line-height:1.4; }

@media (max-width: 760px) {
    .market-contact-fields { grid-template-columns:1fr; }
    .market-contact-fields input,.market-contact-form button { font-size:16px; }
}
@media (max-width: 620px) {
    .similar-property-grid { grid-template-columns:1fr; }
    .similar-property-media { height:180px; }
}

/* V1.16.2 Market Analysis visual clarity + accessible positioning */
.market-analysis-section {
    --market-green:#147d64;
    --market-green-soft:#eaf6f2;
    --market-blue:#2563a6;
    --market-blue-soft:#eef5fc;
    --market-orange:#b96816;
    --market-orange-soft:#fff4e8;
    overflow:visible;
}
.market-analysis-heading-meta { display:flex;align-items:flex-end;flex-direction:column;gap:7px; }
.market-status-badge,.market-analysis-count,.market-info-button,.market-valid-count,.market-range button { font:inherit; }
.market-status-badge { display:inline-flex;align-items:center;gap:7px;border:1px solid currentColor;border-radius:999px;padding:7px 10px;background:#fff;font-size:.67rem;font-weight:900;line-height:1.1;cursor:help; }
.market-status-badge>span,.market-analysis-count>span,.market-valid-count>span { width:15px;height:15px;border-radius:50%;display:inline-grid;place-items:center;background:var(--market-info-dot,#647481);color:#fff;font-size:.52rem;font-weight:900;line-height:1; }
.market-status-badge.market-tone-favorable { --market-info-dot:var(--market-green);color:var(--market-green);background:var(--market-green-soft); }
.market-status-badge.market-tone-typical { --market-info-dot:var(--market-blue);color:var(--market-blue);background:var(--market-blue-soft); }
.market-status-badge.market-tone-premium { --market-info-dot:var(--market-orange);color:var(--market-orange);background:var(--market-orange-soft); }
.market-analysis-count { --market-info-dot:#657681;display:inline-flex;align-items:center;gap:6px;cursor:help; }

.market-visual-legend { display:flex;align-items:center;gap:15px;flex-wrap:wrap;margin:0 0 12px;padding:8px 10px;border:1px solid #e4e9ec;border-radius:10px;background:#f9fbfc;color:#667582;font-size:.61rem;font-weight:750; }
.market-visual-legend>span { display:inline-flex;align-items:center;gap:6px; }
.market-legend-dot { width:10px;height:10px;border-radius:50%;background:#334155;border:2px solid #fff;box-shadow:0 0 0 1px #334155; }
.market-legend-median { width:3px;height:14px;border-radius:3px;background:#485866; }
.market-legend-band { width:25px;height:8px;border-radius:999px;background:linear-gradient(90deg,#d8e7f5,#b9d2ea); }
.market-legend-note { margin-left:auto;color:#7a8791;font-weight:650; }

.market-analysis-card { position:relative;overflow:visible;padding:16px;transition:border-color .15s ease,box-shadow .15s ease,background .15s ease; }
.market-analysis-card.market-tone-favorable { border-color:#cce5dc;background:linear-gradient(180deg,var(--market-green-soft) 0,#fff 48%);box-shadow:inset 0 3px 0 var(--market-green); }
.market-analysis-card.market-tone-typical { border-color:#d4e2f0;background:linear-gradient(180deg,var(--market-blue-soft) 0,#fff 48%);box-shadow:inset 0 3px 0 var(--market-blue); }
.market-analysis-card.market-tone-premium { border-color:#efd9bf;background:linear-gradient(180deg,var(--market-orange-soft) 0,#fff 48%);box-shadow:inset 0 3px 0 var(--market-orange); }
.market-card-label-row { display:flex;align-items:center;justify-content:space-between;gap:10px; }
.market-card-label-row>small { color:var(--muted);font-size:.62rem;font-weight:850;text-transform:uppercase;letter-spacing:.055em; }
.market-info-button { flex:0 0 auto;width:22px;height:22px;border-radius:50%;border:1px solid #d8e0e5;background:#fff;color:#647481;display:grid;place-items:center;padding:0;font-size:.62rem;font-weight:900;cursor:help; }
.market-info-button:hover,.market-info-button:focus-visible { border-color:#9eacb6;color:#273746;outline:none; }
.market-card-summary { display:block;margin-top:6px;font-size:1.04rem;letter-spacing:-.025em;color:var(--ink);line-height:1.2; }
.market-tone-favorable .market-card-summary { color:#0f6954; }
.market-tone-typical .market-card-summary { color:#1f568a; }
.market-tone-premium .market-card-summary { color:#99520e; }
.market-value-pair { display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:11px; }
.market-value-pair>div { min-width:0;border:1px solid #e3e8eb;border-radius:10px;background:rgba(255,255,255,.82);padding:8px 9px; }
.market-value-pair span { display:block;color:#778590;font-size:.57rem;font-weight:800;text-transform:uppercase;letter-spacing:.045em; }
.market-value-pair b { display:block;margin-top:3px;color:var(--ink);font-size:.78rem;line-height:1.25;overflow-wrap:anywhere; }
.market-difference { margin:7px 0 0!important;color:#53636f!important;font-size:.66rem!important;font-weight:800; }
.market-percentile-note { margin:3px 0 0!important;color:#7c8993!important;font-size:.59rem!important; }
.market-comparable-basis { color:#7a8791!important;font-size:.61rem!important;font-weight:700; }
.market-valid-count { --market-info-dot:#74838e;position:relative;display:inline-flex;align-items:center;gap:5px;margin-top:9px;border:0;background:transparent;color:#7b8791;padding:0;font-size:.59rem;font-weight:750;cursor:help;text-align:left; }
.market-valid-count>span { width:13px;height:13px;font-size:.47rem; }
.market-valid-count:hover,.market-valid-count:focus-visible { color:#40515e;outline:none;text-decoration:underline;text-decoration-style:dotted;text-underline-offset:2px; }

.market-range-shell { margin-top:10px;padding-top:2px; }
.market-range { position:relative;height:34px;margin:0;overflow:visible; }
.market-range::before { display:none!important; }
.market-range button { appearance:none;-webkit-appearance:none;padding:0;margin:0;cursor:help;outline:none; }
.market-range-track { position:absolute;left:0;right:0;top:15px;height:4px;border:0;border-radius:999px;background:#dce3e7;z-index:1; }
.market-range-typical { position:absolute!important;left:var(--market-typical-left)!important;width:var(--market-typical-width)!important;top:11px!important;height:12px!important;border:0!important;border-radius:999px!important;background:linear-gradient(90deg,#d7e7f5,#b9d2ea)!important;z-index:2; }
.market-range-median { position:absolute;left:var(--market-median);top:6px;width:3px;height:22px;border:0;border-radius:3px;background:#485866;transform:translateX(-50%);z-index:4; }
.market-range-marker { position:absolute!important;left:var(--market-marker)!important;top:8px!important;width:18px!important;height:18px!important;border-radius:50%!important;background:#334155!important;border:3px solid #fff!important;box-shadow:0 0 0 2px #334155,0 2px 5px rgba(15,23,42,.18)!important;transform:translateX(-50%)!important;z-index:5; }
.market-tone-favorable .market-range-marker { background:var(--market-green)!important;box-shadow:0 0 0 2px var(--market-green),0 2px 5px rgba(15,23,42,.16)!important; }
.market-tone-typical .market-range-marker { background:var(--market-blue)!important;box-shadow:0 0 0 2px var(--market-blue),0 2px 5px rgba(15,23,42,.16)!important; }
.market-tone-premium .market-range-marker { background:var(--market-orange)!important;box-shadow:0 0 0 2px var(--market-orange),0 2px 5px rgba(15,23,42,.16)!important; }
.market-range button:focus-visible { outline:3px solid rgba(37,99,166,.22);outline-offset:3px; }
.market-range-axis { display:grid;grid-template-columns:1fr auto 1fr;align-items:start;gap:7px;margin-top:-1px;color:#87939c;font-size:.54rem;font-weight:700; }
.market-range-axis span:last-child { text-align:right; }
.market-range-axis strong { color:#556570;font-size:.55rem;font-weight:850; }

.market-tip { position:relative; }
.market-tip::after { content:attr(data-tip);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%) translateY(3px);width:max-content;max-width:min(270px,calc(100vw - 36px));padding:8px 9px;border-radius:8px;background:#17212b;color:#fff;font-size:.59rem;font-weight:650;line-height:1.4;text-transform:none;letter-spacing:0;text-align:left;white-space:normal;box-shadow:0 8px 24px rgba(15,23,42,.22);opacity:0;visibility:hidden;pointer-events:none;z-index:80;transition:opacity .12s ease,transform .12s ease; }
.market-tip::before { content:'';position:absolute;left:50%;bottom:calc(100% + 3px);width:8px;height:8px;background:#17212b;transform:translateX(-50%) rotate(45deg);opacity:0;visibility:hidden;pointer-events:none;z-index:79;transition:opacity .12s ease; }
.market-tip:hover::after,.market-tip:focus::after,.market-tip:focus-visible::after,.market-tip:hover::before,.market-tip:focus::before,.market-tip:focus-visible::before { opacity:1;visibility:visible;transform:translateX(-50%) translateY(0); }
.market-tip:hover::before,.market-tip:focus::before,.market-tip:focus-visible::before { transform:translateX(-50%) rotate(45deg); }
.market-tip.tip-left::after { left:0;transform:translateY(3px); }
.market-tip.tip-left:hover::after,.market-tip.tip-left:focus::after,.market-tip.tip-left:focus-visible::after { transform:translateY(0); }
.market-tip.tip-left::before { left:10px;transform:rotate(45deg); }
.market-tip.tip-left:hover::before,.market-tip.tip-left:focus::before,.market-tip.tip-left:focus-visible::before { transform:rotate(45deg); }
.market-tip.tip-right::after { left:auto;right:0;transform:translateY(3px); }
.market-tip.tip-right:hover::after,.market-tip.tip-right:focus::after,.market-tip.tip-right:focus-visible::after { transform:translateY(0); }
.market-tip.tip-right::before { left:auto;right:10px;transform:rotate(45deg); }
.market-tip.tip-right:hover::before,.market-tip.tip-right:focus::before,.market-tip.tip-right:focus-visible::before { transform:rotate(45deg); }

@media (max-width:760px) {
    .market-analysis-heading-meta { width:100%;align-items:flex-start; }
    .market-status-badge,.market-analysis-count { font-size:.72rem; }
    .market-visual-legend { gap:10px 13px; }
    .market-legend-note { width:100%;margin-left:0; }
    .market-value-pair { grid-template-columns:1fr; }
    .market-value-pair b { font-size:.8rem; }
    .market-info-button { width:28px;height:28px;font-size:.72rem; }
    .market-valid-count { min-height:28px;font-size:.64rem; }
    .market-tip::after { font-size:.66rem;padding:9px 10px; }
}

/* V1.17.0 unified visual system: modern public UI, customer-colour aware */
:root {
    --v17-brand-soft: #edf8f5;
    --v17-brand-soft: color-mix(in srgb, var(--brand) 10%, white);
    --v17-brand-faint: #f7fbfa;
    --v17-brand-faint: color-mix(in srgb, var(--brand) 4%, white);
    --v17-brand-border: #cfe4de;
    --v17-brand-border: color-mix(in srgb, var(--brand) 24%, #dfe5ea);
    --v17-brand-shadow: rgba(20,108,91,.18);
    --v17-brand-shadow: color-mix(in srgb, var(--brand) 24%, transparent);
    --v17-brand-lift: color-mix(in srgb, var(--brand) 92%, white);
    --v17-brand-deep: color-mix(in srgb, var(--brand) 90%, black);
    --v17-card-shadow: 0 12px 34px rgba(18,31,42,.075);
    --v17-card-shadow-hover: 0 20px 46px rgba(18,31,42,.13);
    --v17-radius-xl: 24px;
    --v17-radius-lg: 18px;
    --v17-radius-md: 13px;
}

body {
    background:
        radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--brand) 5%, transparent) 0, transparent 30%),
        linear-gradient(180deg, #f7f9fa 0%, #f2f5f7 100%);
}

.topbar {
    background: rgba(255,255,255,.9);
    border-bottom-color: rgba(215,224,230,.9);
    box-shadow: 0 8px 28px rgba(18,31,42,.045);
    backdrop-filter: blur(18px) saturate(150%);
}
.brand-mark {
    border-radius: 14px;
    background: linear-gradient(145deg, var(--brand), var(--v17-brand-deep));
    box-shadow: 0 8px 20px var(--v17-brand-shadow);
}
.admin-link,.mobile-map-toggle,.widget-map-close {
    border-color: #d8e1e6;
    background: rgba(255,255,255,.92);
    box-shadow: 0 4px 14px rgba(18,31,42,.05);
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease, background .16s ease;
}
.admin-link:hover,.mobile-map-toggle:hover,.widget-map-close:hover {
    transform: translateY(-1px);
    border-color: var(--v17-brand-border);
    background: #fff;
    box-shadow: 0 8px 20px rgba(18,31,42,.08);
}

/* Search experience */
.search-panel {
    background:
        linear-gradient(180deg, rgba(255,255,255,.46), transparent 190px),
        var(--bg);
}
.search-head { margin-bottom: 17px; }
.search-head h1 { font-weight: 820; letter-spacing: -.045em; }
.filters {
    border-color: #dbe3e8;
    border-radius: var(--v17-radius-xl);
    box-shadow: var(--v17-card-shadow);
}
.filters-compact { padding: 12px; }
.map-location-shell {
    min-height: 52px;
    border-radius: 16px;
    border-color: #d5dfe5;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.8);
}
.map-location-shell:focus-within,
.search-box:focus-within {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 12%, transparent), 0 8px 20px rgba(18,31,42,.06);
}
.map-location-pin { margin-left: 15px; width: 20px; height: 20px; }
.map-location-pin svg { width: 20px; height: 20px; }
.map-location-shell input { padding: 13px 11px; font-size: .9rem; font-weight: 580; }
.map-location-shell > button {
    border-radius: 0 15px 15px 0;
    padding: 0 20px;
    font-size: .82rem;
    font-weight: 850;
    background: linear-gradient(145deg, var(--brand), var(--v17-brand-deep));
    box-shadow: inset 1px 0 rgba(255,255,255,.15);
    transition: filter .15s ease, transform .15s ease;
}
.map-location-shell > button:hover { filter: brightness(.96); }
.map-location-suggestions {
    top: 58px;
    border-radius: 16px;
    border-color: #d9e2e7;
    box-shadow: 0 22px 50px rgba(18,31,42,.17);
}
.map-location-suggestion { padding: 12px 14px; font-size: .8rem; }
.map-location-suggestion:hover,.map-location-suggestion.is-active { background: var(--v17-brand-soft); }
.primary-search-options { margin-top: 10px; gap: 10px; }
.map-transaction-tabs {
    padding: 4px;
    gap: 4px;
    border-radius: 14px;
    background: #edf1f3;
}
.map-transaction-tabs button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 11px;
    font-size: .76rem;
    transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.map-transaction-tabs button:hover { transform: translateY(-1px); }
.map-transaction-tabs button.is-active {
    color: var(--brand-dark);
    background: #fff;
    box-shadow: 0 5px 14px rgba(18,31,42,.09), inset 0 -2px 0 var(--brand);
}
.show-filters-btn {
    min-height: 42px;
    border-radius: 13px;
    border-color: #d8e1e6;
    background: #fff;
    box-shadow: 0 3px 10px rgba(18,31,42,.04);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.show-filters-btn:hover {
    transform: translateY(-1px);
    border-color: var(--v17-brand-border);
    background: #fff;
    box-shadow: 0 7px 18px rgba(18,31,42,.07);
}
.show-filters-btn b { background: var(--v17-brand-soft); color: var(--brand-dark); }
.advanced-filters { padding: 14px 3px 4px; margin-top: 11px; }
.category-tabs { gap: 7px; padding-bottom: 11px; }
.category-tab {
    min-height: 36px;
    padding: 0 13px;
    border-radius: 999px;
    border-color: #d8e1e6;
    background: #fff;
    font-size: .75rem;
    font-weight: 720;
    transition: transform .15s ease, border-color .15s ease, background .15s ease, color .15s ease;
}
.category-tab:hover { transform: translateY(-1px); border-color: var(--v17-brand-border); }
.category-tab.is-active {
    background: var(--v17-brand-soft);
    color: var(--brand-dark);
    border-color: var(--v17-brand-border);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 7%, transparent);
}
.filter-grid { gap: 12px; }
.filter-grid label:not(.residential-type-choice) > span,.residential-type-group legend {
    margin: 0 0 6px 3px;
    color: #60707d;
    font-size: .66rem;
    letter-spacing: .015em;
}
.filter-grid input,.filter-grid select {
    height: 44px;
    border-radius: 12px;
    border-color: #d8e1e6;
    padding: 0 12px;
    font-size: .79rem;
    box-shadow: inset 0 1px 0 rgba(18,31,42,.015);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.filter-grid input:hover,.filter-grid select:hover { border-color: #c7d3da; }
.filter-grid input:focus,.filter-grid select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 10%, transparent);
}
.residential-type-options { gap: 10px; }
.residential-type-choice {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 13px;
    border-color: #d8e1e6;
    box-shadow: 0 2px 7px rgba(18,31,42,.025);
}
.residential-type-choice:hover { border-color: var(--v17-brand-border); background: var(--v17-brand-faint); }
.residential-type-choice:has(input:checked) {
    border-color: var(--brand);
    background: var(--v17-brand-soft);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 7%, transparent);
}
.residential-type-choice span { font-size: .76rem; }
.filter-actions { gap: 9px; margin-top: 14px; }
.primary-btn,.ghost-btn {
    min-height: 42px;
    height: auto;
    border-radius: 12px;
    padding: 0 16px;
    font-size: .77rem;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease, border-color .15s ease;
}
.primary-btn {
    background: linear-gradient(145deg, var(--brand), var(--v17-brand-deep));
    box-shadow: 0 8px 18px var(--v17-brand-shadow);
}
.primary-btn:hover { transform: translateY(-1px); filter: brightness(.98); box-shadow: 0 11px 23px var(--v17-brand-shadow); }
.ghost-btn:hover { transform: translateY(-1px); border-color: #c7d3da; color: var(--ink); }

/* Listing cards used by map search and iframe widgets */
.results-grid { gap: 15px; }
.property-card {
    border-radius: 20px;
    border-color: #dbe3e8;
    box-shadow: 0 7px 22px rgba(18,31,42,.055);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.property-card:hover {
    transform: translateY(-4px);
    border-color: var(--v17-brand-border);
    box-shadow: var(--v17-card-shadow-hover);
}
.property-image { background: #e4eaed; }
.property-image::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(8,16,22,0) 58%, rgba(8,16,22,.11) 100%);
}
.property-tag {
    top: 10px;
    left: 10px;
    z-index: 2;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.72);
    background: rgba(255,255,255,.9);
    box-shadow: 0 5px 16px rgba(18,31,42,.1);
    font-size: .61rem;
}
.property-body { padding: 14px 14px 13px; }
.property-price { font-size: 1.12rem; font-weight: 900; letter-spacing: -.035em; }
.property-address { margin-top: 6px; min-height: 35px; font-size: .78rem; line-height: 1.42; color: #34434f; font-weight: 620; }
.property-meta { gap: 6px 9px; margin-top: 10px; font-size: .66rem; }
.property-meta span { padding-right: 0; border-right: 0; }
.property-meta span:not(:last-child)::after { content: '•'; margin-left: 9px; color: #b1bbc2; }
.property-type {
    margin-top: 10px;
    padding-top: 9px;
    border-top: 1px solid #edf1f3;
    color: var(--brand-dark);
    font-size: .66rem;
}
.realtor-powered-link,.map-popup-powered {
    padding-top: 1px;
    color: #87939c;
}
.pagination button {
    min-width: 40px;
    min-height: 40px;
    border-radius: 12px;
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.pagination button:not(:disabled):hover { transform: translateY(-1px); border-color: var(--v17-brand-border); box-shadow: 0 6px 15px rgba(18,31,42,.07); }

/* Map overlays + popup cards */
.search-area-btn {
    padding: 11px 18px;
    background: linear-gradient(145deg,#182630,#263944);
    box-shadow: 0 12px 28px rgba(0,0,0,.18);
    transition: transform .15s ease, box-shadow .15s ease;
}
.search-area-btn:hover { transform: translateX(-50%) translateY(-1px); box-shadow: 0 16px 32px rgba(0,0,0,.22); }
.modern-property-popup .leaflet-popup-content-wrapper { border-radius: 22px; box-shadow: 0 24px 56px rgba(18,31,42,.25); }
.modern-property-popup .leaflet-popup-content { width: 315px !important; }
.map-popup-media { height: 176px; }
.map-popup-badge { top: 11px; left: 11px; padding: 6px 9px; box-shadow: 0 5px 16px rgba(18,31,42,.1); }
.map-popup-content { padding: 14px 15px 15px; }
.map-popup-price-row strong { font-size: 1.16rem; font-weight: 900; }
.map-popup-price-row span { background: var(--v17-brand-soft); color: var(--brand-dark); }
.map-popup-content p { margin-top: 6px; font-size: .77rem; font-weight: 620; }
.map-popup-meta { margin-top: 10px; gap: 7px 10px; }
.map-popup-meta span { border: 0; padding: 0; }
.map-popup-content small { margin-top: 10px; padding-top: 9px; border-top: 1px solid #eef1f3; }
.marker-cluster div { box-shadow: 0 8px 18px color-mix(in srgb, var(--brand) 24%, transparent); }

/* Property detail page */
.detail-page {
    background:
        radial-gradient(circle at 12% 2%, color-mix(in srgb, var(--brand) 5%, transparent), transparent 30%),
        #f4f7f8;
}
.detail-wrap { padding-top: 28px; }
.detail-gallery {
    gap: 8px;
    border-radius: 28px;
    box-shadow: 0 20px 48px rgba(18,31,42,.12);
}
.gallery-all-btn {
    border-radius: 13px;
    padding: 10px 14px;
    border-color: rgba(255,255,255,.72);
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 24px rgba(18,31,42,.15);
    transition: transform .15s ease, box-shadow .15s ease;
}
.gallery-all-btn:hover { transform: translateY(-1px); box-shadow: 0 14px 28px rgba(18,31,42,.19); }
.detail-summary {
    margin-top: 16px;
    padding: clamp(22px,3vw,30px);
    border: 1px solid #dce4e8;
    border-radius: var(--v17-radius-xl);
    background: rgba(255,255,255,.94);
    box-shadow: var(--v17-card-shadow);
}
.detail-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid var(--v17-brand-border);
    border-radius: 999px;
    background: var(--v17-brand-soft);
    color: var(--brand-dark);
    font-size: .64rem;
    letter-spacing: .055em;
}
/* The listing address is intentionally the semantic page H1. */
.detail-address {
    margin: 10px 0 0;
    color: var(--ink);
    font-size: clamp(1.55rem,2.7vw,2.45rem);
    line-height: 1.08;
    letter-spacing: -.045em;
    font-weight: 850;
    text-wrap: balance;
}
.detail-price {
    margin: 10px 0 0;
    color: var(--brand-dark);
    font-size: clamp(1.75rem,3.4vw,2.85rem);
    line-height: 1;
    letter-spacing: -.05em;
    font-weight: 930;
}
.detail-stats { gap: 9px; margin-top: 19px; }
.detail-stats span {
    border-radius: 999px;
    padding: 9px 12px;
    border-color: #dce4e8;
    background: #f9fbfb;
    font-size: .75rem;
}
.detail-summary-side { min-width: 240px; gap: 9px; }
.detail-summary-side a,.detail-summary-side div {
    border-radius: 14px;
    border-color: #dce4e8;
    padding: 12px 14px;
    background: linear-gradient(180deg,#fff,#fafcfc);
    box-shadow: 0 4px 14px rgba(18,31,42,.035);
}
.detail-summary-side a:hover { border-color: var(--v17-brand-border); background: var(--v17-brand-faint); }
.detail-content-grid { gap: 30px; padding-top: 20px; }
.detail-section {
    border-radius: 22px;
    border-color: #dce4e8;
    padding: 22px;
    box-shadow: 0 8px 26px rgba(18,31,42,.05);
}
.detail-section h2 { font-size: 1.08rem; font-weight: 850; }
.detail-mini-kicker { color: var(--brand); }
.important-specs-section,.property-story-section,.market-analysis-section { background: linear-gradient(145deg,#fff,var(--v17-brand-faint)); }
.important-spec-grid { gap: 11px; }
.important-spec-card {
    border-radius: 16px;
    border-color: #dce4e8;
    padding: 15px;
    box-shadow: 0 4px 13px rgba(18,31,42,.035);
}
.important-spec-card strong { font-size: .98rem; }
.feature-chip-list span { background: var(--v17-brand-soft); border-color: var(--v17-brand-border); color: var(--brand-dark); }
.open-house-card,.room-card {
    border-radius: 16px;
    border-color: var(--v17-brand-border);
    background: var(--v17-brand-faint);
}
.open-house-link,.map-search-link,.widget-lead-form button {
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.open-house-link,.widget-lead-form button {
    background: linear-gradient(145deg,var(--brand),var(--v17-brand-deep));
    box-shadow: 0 7px 16px var(--v17-brand-shadow);
}
.open-house-link:hover,.widget-lead-form button:hover { transform: translateY(-1px); filter: brightness(.98); }
.map-search-link {
    border-radius: 12px;
    padding: 9px 12px;
    border-color: var(--v17-brand-border);
    background: var(--v17-brand-soft);
}
.map-search-link:hover { transform: translateY(-1px); }
.listing-map { border-radius: 18px; border-color: #d7e1e6; box-shadow: 0 8px 22px rgba(18,31,42,.06); }

.sidebar-pricing-card {
    border-color: var(--v17-brand-border);
    background: linear-gradient(145deg,var(--v17-brand-faint),var(--v17-brand-soft));
    color: var(--ink);
    box-shadow: 0 12px 30px color-mix(in srgb,var(--brand) 12%,rgba(18,31,42,.07));
}
.sidebar-pricing-card .detail-mini-kicker { color: var(--brand); }
.sidebar-pricing-card h2 { color: var(--v17-brand-deep); font-size: 1.6rem; }
.sidebar-pricing-card .sidebar-transaction { color: var(--v17-brand-deep); background: color-mix(in srgb,var(--brand) 10%,white); }
.sidebar-pricing-card .sidebar-price-line { border-top-color: var(--v17-brand-border); }
.sidebar-pricing-card .sidebar-price-line span { color: #6a7984; }
.detail-sidebar .detail-section:not(.sidebar-pricing-card) { background: rgba(255,255,255,.96); }
.fact-row { padding: 11px 0; }
.remainder-specs-section .detail-data-group { border-radius: 15px; border-color: #dce4e8; }
.remainder-specs-section .detail-data-group summary { padding: 14px 15px; background: #fbfcfd; transition: background .15s ease; }
.remainder-specs-section .detail-data-group summary:hover { background: var(--v17-brand-faint); }

/* Similar property cards */
.similar-property-grid { gap: 14px; }
.similar-property-card {
    border-radius: 18px;
    border-color: #dce4e8;
    box-shadow: 0 7px 20px rgba(18,31,42,.055);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.similar-property-card:hover { transform: translateY(-3px); border-color: var(--v17-brand-border); box-shadow: 0 17px 36px rgba(18,31,42,.11); }
.similar-property-media > span { border-color: rgba(255,255,255,.78); background: rgba(255,255,255,.92); }
.similar-property-copy { padding: 14px; }
.similar-property-copy > strong { font-size: 1rem; }

/* Realtor/contact cards + forms */
.widget-realtor-card {
    border-radius: 20px;
    border-color: #dce4e8;
    box-shadow: 0 10px 28px rgba(18,31,42,.07);
}
.widget-realtor-intro > img:not(.widget-realtor-logo) {
    width: 52px;
    height: 52px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px var(--v17-brand-border), 0 7px 18px rgba(18,31,42,.1);
}
.lead-grid { gap: 9px; }
.lead-grid input,.lead-grid textarea {
    min-height: 42px;
    border-radius: 12px;
    border-color: #d8e1e6;
    padding: 10px 12px;
    background: #fbfcfd;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.lead-grid textarea { min-height: 82px; }
.lead-grid input:focus,.lead-grid textarea:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 4px color-mix(in srgb,var(--brand) 10%,transparent);
}
.widget-lead-form button {
    min-height: 42px;
    border-radius: 12px;
    padding: 0 16px;
    font-weight: 850;
}

/* Market Analysis gets the same cleaner card language without changing its math. */
.market-analysis-section { border-color: #d7e2e6; }
.market-analysis-card { border-radius: 18px; box-shadow: 0 5px 16px rgba(18,31,42,.04); }
.market-visual-legend { border-radius: 13px; background: #fafcfd; }
.market-value-pair > div { border-radius: 12px; }
.market-contact-card { border-radius: 18px; }
.market-contact-fields input { min-height: 42px; border-radius: 12px; }

/* Accessible, consistent focus across public controls. */
:where(a,button,input,select,textarea):focus-visible {
    outline: 3px solid color-mix(in srgb,var(--brand) 25%,transparent);
    outline-offset: 2px;
}

@media (max-width: 900px) {
    .detail-summary { grid-template-columns: 1fr; }
    .detail-summary-side { min-width: 0; grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 760px) {
    .search-panel { padding-top: 18px; }
    .filters-compact { padding: 10px; }
    .map-location-shell { min-height: 54px; }
    .map-transaction-tabs button,.show-filters-btn,.primary-btn,.ghost-btn { min-height: 44px; }
    .filter-grid input,.filter-grid select { height: 48px; }
    .residential-type-choice { min-height: 50px; }
    .property-card { border-radius: 18px; }
    .property-body { padding: 13px; }
    .detail-wrap { padding: 16px 13px 56px; }
    .detail-gallery { border-radius: 20px; }
    .detail-summary { margin-top: 12px; padding: 20px 17px; border-radius: 20px; }
    .detail-address { font-size: clamp(1.42rem,7vw,1.9rem); }
    .detail-price { font-size: clamp(1.65rem,8vw,2.15rem); }
    .detail-section { padding: 18px 16px; border-radius: 19px; }
    .detail-summary-side { grid-template-columns: 1fr; }
    .widget-realtor-card { border-radius: 18px; }
}
@media (max-width: 500px) {
    .primary-search-options { gap: 7px; }
    .map-transaction-tabs button { padding: 0 5px; }
    .show-filters-btn { min-width: 96px; }
    .property-price { font-size: 1.04rem; }
    .property-address { font-size: .76rem; }
    .similar-property-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .property-card,.similar-property-card,.primary-btn,.ghost-btn,.category-tab,.show-filters-btn,.map-transaction-tabs button,.admin-link,.mobile-map-toggle,.widget-map-close,.gallery-all-btn,.open-house-link,.map-search-link,.widget-lead-form button { transition: none !important; }
}

/* V1.17.1 baby hotfix: keep Residential Type checkbox controls compact and square.
   Generic filter input sizing must never stretch these custom checkbox controls. */
.filter-grid .residential-type-choice input[type="checkbox"][data-residential-type] {
    width: 20px !important;
    height: 20px !important;
    min-width: 20px;
    min-height: 20px;
    max-width: 20px;
    max-height: 20px;
    flex: 0 0 20px;
    padding: 0 !important;
    border-radius: 6px;
    align-self: center;
}

@media (max-width: 760px) {
    .filter-grid .residential-type-choice input[type="checkbox"][data-residential-type] {
        width: 22px !important;
        height: 22px !important;
        min-width: 22px;
        min-height: 22px;
        max-width: 22px;
        max-height: 22px;
        flex-basis: 22px;
    }
}

/* V1.17.3 micro polish: exact Residential Type alignment + same-hue button gradients. */
.residential-type-choice > span {
    display: inline-flex;
    align-items: center;
    align-self: center;
    margin: 0;
    line-height: 1.15;
    transform: none;
}


/* V1.17.4 brand-derived tone scope fix.
   Customer sites set --brand on <body>. Recompute derived tones on that same
   scope so a red/gold/etc. Primary never inherits V7's default green deep tone. */
body {
    --v17-brand-deep: color-mix(in srgb, var(--brand) 90%, black);
    --v17-brand-shadow: color-mix(in srgb, var(--brand) 24%, transparent);
}

/* V1.18 location + address autocomplete ----------------------------------- */
.map-location-group-label {
    padding: 9px 14px 5px;
    background: #fbfcfd;
    color: #7b8994;
    font-size: .58rem;
    font-weight: 850;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.map-location-suggestion {
    min-height: 48px;
}
.map-location-suggestion-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
    flex: 1 1 auto;
}
.map-location-suggestion-copy strong {
    overflow: hidden;
    color: inherit;
    font-size: .78rem;
    font-weight: 780;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.map-location-suggestion-copy small {
    overflow: hidden;
    color: #81909a;
    font-size: .62rem;
    font-weight: 620;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.map-location-suggestion.is-listing svg { color: var(--brand-dark); }
.map-location-open {
    flex: 0 0 auto;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 999px;
    background: var(--v17-brand-soft);
    color: var(--brand-dark);
    font-size: .72rem;
    font-weight: 900;
}

/* V1.18 compact map-agent lead pill -------------------------------------- */
.map-agent-connect-wrap {
    margin: 0 0 12px;
}
.map-agent-connect-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px;
    border: 1px solid #d9e2e7;
    border-radius: 999px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 8px 24px rgba(18,31,42,.07);
}
.map-agent-connect-avatar {
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    border: 2px solid #fff;
    border-radius: 999px;
    object-fit: cover;
    background: var(--v17-brand-soft);
    box-shadow: 0 0 0 1px var(--v17-brand-border);
}
.map-agent-connect-initial {
    display: grid;
    place-items: center;
    color: var(--brand-dark);
    font-size: .78rem;
    font-weight: 900;
}
.map-connect-form {
    display: block;
    min-width: 0;
    flex: 1 1 auto;
}
.map-connect-fields {
    display: grid;
    grid-template-columns: minmax(58px,.78fr) minmax(74px,1.05fr) minmax(64px,.85fr) auto;
    align-items: center;
    min-width: 0;
}
.map-connect-fields input {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    margin: 0;
    border: 0;
    border-right: 1px solid #e2e8ec;
    border-radius: 0;
    outline: 0;
    background: transparent;
    padding: 0 10px;
    color: var(--ink);
    font: inherit;
    font-size: .69rem;
    font-weight: 590;
}
.map-connect-fields input::placeholder { color: #82909a; }
.map-connect-fields input:focus {
    background: var(--v17-brand-faint);
    box-shadow: inset 0 -2px 0 color-mix(in srgb,var(--brand) 42%,transparent);
}
.widget-lead-form .map-connect-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    margin-left: 7px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(145deg,var(--brand),var(--v17-brand-deep));
    box-shadow: 0 7px 16px var(--v17-brand-shadow);
    color: #fff;
    padding: 0 14px;
    font-size: .68rem;
    font-weight: 850;
    line-height: 1;
    white-space: nowrap;
}
.widget-lead-form .map-connect-btn:hover { filter: brightness(.97); }
.map-connect-status {
    display: block;
    margin: 5px 8px 0;
    color: #687782;
    font-size: .61rem;
    line-height: 1.3;
}
.map-connect-status:empty { display: none; }

@media (max-width: 760px) {
    .map-location-suggestion { font-size: 16px; }
    .map-location-suggestion-copy strong { font-size: 16px; }
    .map-location-suggestion-copy small { font-size: 12px; }
    .map-connect-fields input { font-size: 16px; }
    .widget-lead-form .map-connect-btn { font-size: 14px; }
}
@media (max-width: 540px) {
    .map-agent-connect-pill {
        align-items: flex-start;
        border-radius: 22px;
        padding: 7px;
    }
    .map-agent-connect-avatar { margin-top: 2px; }
    .map-connect-fields {
        grid-template-columns: 1fr 1fr;
        gap: 5px;
    }
    .map-connect-fields input {
        min-height: 42px;
        border: 1px solid #e0e7eb;
        border-radius: 11px;
        padding: 0 10px;
    }
    .map-connect-fields input[name="phone"] { grid-column: 1 / -1; }
    .widget-lead-form .map-connect-btn {
        grid-column: 1 / -1;
        min-height: 42px;
        margin-left: 0;
    }
}

/* DDF V1.18.1 MAP LEAD STATUS OUTSIDE PILL START */
/* Keep the compact map contact pill visually unchanged after submit.
   The success/error line lives underneath the entire pill instead of
   becoming a new row inside it. */
.map-realtor-card .widget-lead-form {
    position: relative;
    overflow: visible !important;
}
.map-realtor-card .widget-lead-form:has(.lead-status:not(:empty)) {
    margin-bottom: 30px;
}
.map-realtor-card .lead-status {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    width: 100%;
    margin: 0 !important;
    padding: 0 12px;
    min-height: 0;
    display: block;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: var(--muted);
    font-size: .70rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
}
.map-realtor-card .lead-status:empty {
    display: none;
}
@media (max-width: 760px) {
    .map-realtor-card .widget-lead-form:has(.lead-status:not(:empty)) {
        margin-bottom: 34px;
    }
    .map-realtor-card .lead-status {
        top: calc(100% + 7px);
        padding-inline: 8px;
        font-size: .68rem;
    }
}
/* DDF V1.18.1 MAP LEAD STATUS OUTSIDE PILL END */

/* DDF V1.18.2 MAP LEAD DONE OVERLAY START */
/* Keep the compact map-agent contact control pill-shaped after submit.
   A successful send gets a temporary full-pill confirmation cover instead
   of adding another row or changing the card height. */
.map-realtor-card {
    position: relative;
}
.map-realtor-card.ddf-map-lead-done-active {
    overflow: hidden !important;
}
.map-realtor-card .ddf-map-lead-done-overlay {
    position: absolute;
    inset: 0;
    z-index: 80;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: inherit;
    background: linear-gradient(145deg, #21856f 0%, #146954 100%);
    color: #fff;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18);
    opacity: 0;
    transform: scale(.992);
    animation: ddfMapLeadDoneIn .2s ease forwards;
    pointer-events: none;
}
.map-realtor-card .ddf-map-lead-done-check {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.42);
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
}
.map-realtor-card .ddf-map-lead-done-overlay strong {
    color: #fff;
    font-size: .93rem;
    font-weight: 900;
    letter-spacing: .01em;
}
.map-realtor-card .ddf-map-lead-done-overlay.is-leaving {
    animation: ddfMapLeadDoneOut .32s ease forwards;
}
@keyframes ddfMapLeadDoneIn {
    from { opacity: 0; transform: scale(.992); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes ddfMapLeadDoneOut {
    from { opacity: 1; transform: scale(1); }
    to   { opacity: 0; transform: scale(.996); }
}
@media (prefers-reduced-motion: reduce) {
    .map-realtor-card .ddf-map-lead-done-overlay,
    .map-realtor-card .ddf-map-lead-done-overlay.is-leaving {
        animation-duration: .01ms;
    }
}
/* DDF V1.18.2 MAP LEAD DONE OVERLAY END */

/* DDF V1.18.3 COMPACT MAP LEAD STATUS OUTSIDE PILL START */
/* The compact Map Search status is a sibling of the white pill. Every state,
   including Sending, success, cooldown, and errors, stays below the pill. */
.map-agent-connect-wrap > .map-connect-status {
    display: block;
    margin: 7px 12px 0 !important;
    padding: 0 8px;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #687782;
    font-size: .66rem;
    font-weight: 650;
    line-height: 1.35;
    text-align: center;
}
.map-agent-connect-wrap > .map-connect-status:empty {
    display: none;
}
@media (max-width: 540px) {
    .map-agent-connect-wrap > .map-connect-status {
        margin-top: 6px !important;
        padding-inline: 6px;
        font-size: .68rem;
    }
}
/* DDF V1.18.3 COMPACT MAP LEAD STATUS OUTSIDE PILL END */

/* DDF V1.18.4 MOBILE CARDS + REALTOR ATTRIBUTION START */
/* Official REALTOR.ca badge: minimum visual footprint, one badge per listing. */
.ddf-realtor-badge img {
    display: block;
    width: 90px;
    height: auto;
    max-width: none;
}
.property-card { position: relative; }
.realtor-powered-link {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 4;
    display: block;
    width: 90px;
    padding: 0;
    line-height: 0;
    text-decoration: none;
}
.property-card:has(.realtor-powered-link) .property-body { padding-bottom: 58px; }
.map-popup-powered {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding: 3px 12px 11px;
    line-height: 0;
    text-decoration: none;
}
.map-popup-powered img { width: 90px; height: auto; }
.full-feed-source-meta {
    display: grid;
    justify-items: end;
    gap: 8px;
    flex: 0 0 auto;
}
.full-feed-source-meta > span {
    color: var(--muted);
    font-size: .66rem;
    white-space: nowrap;
}
.detail-source-attribution,
.detail-source-fallback {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    min-width: 0;
}
.detail-source-attribution small,
.detail-source-fallback small {
    color: var(--muted);
    font-size: .58rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.detail-source-fallback {
    margin: 0 2px 14px;
    padding: 10px 0;
}
.similar-property-card { position: relative; }
.similar-property-main { display: block; color: inherit; text-decoration: none; }
.similar-property-card:has(.similar-realtor-badge) .similar-property-copy { padding-bottom: 58px; }
.similar-realtor-badge {
    position: absolute;
    right: 12px;
    bottom: 10px;
    z-index: 3;
    width: 90px;
    line-height: 0;
}

/* Mobile Map Search contact card. Desktop keeps the compact horizontal pill. */
.map-connect-mobile-title { display: none; }
@media (max-width: 540px) {
    .map-agent-connect-pill {
        display: grid;
        grid-template-columns: 46px minmax(0,1fr);
        align-items: center;
        gap: 9px 10px;
        padding: 11px;
        border-radius: 20px;
        background: #fff;
        box-shadow: 0 8px 24px rgba(18,31,42,.065);
    }
    .map-agent-connect-avatar {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
        margin: 0;
    }
    .map-connect-mobile-title {
        display: block;
        min-width: 0;
    }
    .map-connect-mobile-title strong {
        display: block;
        overflow: hidden;
        color: var(--ink);
        font-size: 15px;
        font-weight: 850;
        line-height: 1.15;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .map-connect-mobile-title span {
        display: block;
        margin-top: 3px;
        color: var(--muted);
        font-size: 12px;
        line-height: 1.25;
    }
    .map-connect-form { grid-column: 1 / -1; }
    .map-connect-fields {
        grid-template-columns: 1fr 1fr;
        gap: 7px;
    }
    .map-connect-fields input {
        min-height: 44px;
        border: 1px solid #dce4e8;
        border-radius: 12px;
        background: #fbfcfd;
        padding: 0 11px;
    }
    .map-connect-fields input:focus { background: #fff; }
    .map-connect-fields input[name="phone"] { grid-column: 1 / -1; }
    .widget-lead-form .map-connect-btn {
        grid-column: 1 / -1;
        min-height: 44px;
        margin-left: 0;
        border-radius: 13px;
    }
}

/* Phone result-list thumbnails are square. Keep the existing image crop exactly
   as-is; only the containing tile changes to 1:1. */
@media (max-width: 760px) {
    .property-card-main { align-items: start; }
    .property-card-main .property-image {
        width: 100%;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        align-self: start;
    }
    .property-card:has(.realtor-powered-link) .property-body { padding-bottom: 56px; }
}
@media (max-width: 620px) {
    .section-title-row { gap: 10px; }
    .full-feed-source-meta { gap: 6px; }
}
/* DDF V1.18.4 MOBILE CARDS + REALTOR ATTRIBUTION END */

/* DDF V1.18.5 MINIMAL REALTOR ATTRIBUTION + MOBILE CARD FIT START */
.ddf-realtor-text {
    color: #7d8992;
    font-size: .58rem;
    font-weight: 400;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}
.ddf-realtor-text:hover {
    color: var(--brand-dark);
    text-decoration: underline;
}
.realtor-powered-link {
    right: 13px;
    bottom: 10px;
    width: auto;
    padding: 0;
    color: #7d8992;
    font-size: .58rem;
    font-weight: 400;
    line-height: 1.2;
}
.property-card:has(.realtor-powered-link) .property-body { padding-bottom: 32px; }
.map-popup-powered {
    justify-content: flex-end;
    width: 100%;
    padding: 2px 12px 10px;
    color: #7d8992;
    font-size: .56rem;
    font-weight: 400;
    line-height: 1.2;
}
.full-feed-source-meta { gap: 6px; }
.detail-source-attribution,
.detail-source-fallback { gap: 6px; }
.detail-source-attribution small,
.detail-source-fallback small {
    color: #7d8992;
    font-size: .58rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.detail-source-attribution .ddf-realtor-text,
.detail-source-fallback .ddf-realtor-text { font-size: .6rem; }
.similar-realtor-badge {
    right: 12px;
    bottom: 10px;
    width: auto;
    color: #7d8992;
    font-size: .56rem;
    font-weight: 400;
    line-height: 1.2;
}
.similar-property-card:has(.similar-realtor-badge) .similar-property-copy { padding-bottom: 30px; }

@media (max-width: 760px) {
    .property-card { position: relative; }
    .property-card-main {
        --ddf-mobile-card-size: clamp(142px, 34vw, 176px);
        display: grid;
        grid-template-columns: var(--ddf-mobile-card-size) minmax(0,1fr);
        height: var(--ddf-mobile-card-size);
        align-items: stretch;
        overflow: hidden;
    }
    .property-card-main .property-image {
        width: var(--ddf-mobile-card-size);
        height: var(--ddf-mobile-card-size) !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1 !important;
        align-self: stretch;
    }
    .property-card-main .property-body {
        min-width: 0;
        height: 100%;
        overflow: hidden;
        padding: 12px 13px 28px;
    }
    .property-price {
        font-size: 1rem;
        line-height: 1.06;
    }
    .property-address {
        display: -webkit-box;
        min-height: 0;
        margin-top: 5px;
        overflow: hidden;
        font-size: .72rem;
        line-height: 1.3;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
    }
    .property-meta {
        flex-wrap: nowrap;
        gap: 5px 7px;
        margin-top: 8px;
        overflow: hidden;
        font-size: .6rem;
        white-space: nowrap;
    }
    .property-meta span:not(:last-child)::after { margin-left: 7px; }
    .property-type {
        margin-top: 7px;
        padding-top: 7px;
        font-size: .6rem;
        line-height: 1.2;
    }
    .property-card:has(.realtor-powered-link) .property-body { padding-bottom: 28px; }
    .realtor-powered-link {
        right: 13px;
        bottom: 9px;
        font-size: .54rem;
    }
}
@media (max-width: 390px) {
    .property-card-main { --ddf-mobile-card-size: 138px; }
    .property-card-main .property-body { padding-left: 11px; padding-right: 11px; }
    .realtor-powered-link { right: 11px; }
}
/* DDF V1.18.5 MINIMAL REALTOR ATTRIBUTION + MOBILE CARD FIT END */

/* DDF V1.18.6 RICH PROPERTY MEDIA + OPEN HOUSE EXPERIENCE START */
.property-resources-section .section-title-row,
.open-house-section .section-title-row,
.property-activity-section .section-title-row { align-items:flex-start; }
.property-video-frame {
    position:relative;
    width:100%;
    aspect-ratio:16 / 9;
    overflow:hidden;
    margin:14px 0;
    border:1px solid var(--line);
    border-radius:16px;
    background:#111;
}
.property-video-frame iframe { position:absolute;inset:0;width:100%;height:100%;border:0;display:block; }
.property-resource-grid { display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:14px; }
.property-resource-card {
    min-width:0;
    display:grid;
    grid-template-columns:38px minmax(0,1fr) auto;
    gap:10px;
    align-items:center;
    min-height:70px;
    padding:12px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    text-decoration:none;
    box-shadow:0 4px 14px rgba(20,32,43,.045);
}
.property-resource-card:hover { border-color:#b9c8cf;box-shadow:0 7px 18px rgba(20,32,43,.07); }
.property-resource-icon { width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:var(--soft);color:var(--brand-dark);font-size:1rem;font-weight:850; }
.property-resource-icon::before { content:'↗'; }
.resource-video .property-resource-icon::before { content:'▶';font-size:.8rem; }
.resource-virtual_tour .property-resource-icon::before { content:'360°';font-size:.62rem; }
.resource-floor_plan .property-resource-icon::before { content:'⌗'; }
.resource-brochure .property-resource-icon::before,
.resource-feature_sheet .property-resource-icon::before,
.resource-document .property-resource-icon::before { content:'▤'; }
.property-resource-copy { min-width:0; }
.property-resource-copy strong { display:block;font-size:.76rem;line-height:1.2; }
.property-resource-copy small { display:block;margin-top:4px;color:var(--muted);font-size:.61rem;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis; }
.property-resource-arrow { color:var(--muted);font-size:.8rem; }

.open-house-list { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px; }
.open-house-card {
    display:grid;
    grid-template-columns:78px minmax(0,1fr);
    gap:0;
    align-items:stretch;
    overflow:hidden;
    min-height:118px;
    padding:0;
    border:1px solid var(--line);
    border-radius:16px;
    background:#fff;
    box-shadow:0 4px 14px rgba(20,32,43,.045);
}
.open-house-date {
    width:auto;
    height:auto;
    min-height:118px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1px;
    padding:12px 8px;
    border:0;
    border-radius:0;
    background:var(--brand);
    color:#fff;
}
.open-house-date span { margin:0;color:rgba(255,255,255,.8);font-size:.58rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase; }
.open-house-date b { font-size:1.55rem;line-height:1;font-weight:850; }
.open-house-date small { margin-top:2px;font-size:.61rem;font-weight:800;text-transform:uppercase;letter-spacing:.05em; }
.open-house-copy { min-width:0;padding:14px; }
.open-house-copy strong { display:block;font-size:.86rem;line-height:1.2; }
.open-house-copy p { margin:5px 0 0;color:var(--muted);font-size:.68rem;line-height:1.4; }
.open-house-actions { display:flex;flex-wrap:wrap;gap:7px;margin-top:12px; }
.open-house-calendar,
.open-house-calendar-secondary {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:29px;
    padding:6px 9px;
    border-radius:9px;
    font-size:.62rem;
    font-weight:750;
    line-height:1.1;
    text-decoration:none;
}
.open-house-calendar { background:var(--brand);color:#fff; }
.open-house-calendar-secondary { border:1px solid var(--line);background:#fff;color:var(--ink); }
.open-house-calendar-provider {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:6px;
    min-height:32px;
    padding:6px 10px;
    border:1px solid var(--line);
    border-radius:9px;
    background:#fff;
    color:var(--ink);
    font-size:.62rem;
    font-weight:700;
    line-height:1.1;
    text-decoration:none;
    white-space:nowrap;
}
.open-house-calendar-provider:hover { border-color:color-mix(in srgb,var(--brand) 35%,var(--line));background:#fbfcfd; }
.calendar-provider-icon { width:16px;height:16px;flex:0 0 16px;display:block; }
.calendar-provider-icon-apple { width:17px;height:17px;flex-basis:17px; }
.calendar-apple { color:#111827; }

.property-activity-timeline { position:relative;display:grid;gap:0;margin-top:6px; }
.property-activity-row { position:relative;display:grid;grid-template-columns:18px 92px minmax(0,1fr);gap:10px;align-items:start;min-height:54px;padding:9px 0; }
.property-activity-row:not(:last-child)::before { content:'';position:absolute;left:8px;top:27px;bottom:-10px;width:1px;background:var(--line); }
.property-activity-dot { width:9px;height:9px;margin:5px 0 0 4px;border-radius:999px;background:var(--brand);box-shadow:0 0 0 4px #e8f3f0; }
.activity-tracking .property-activity-dot { background:#7d8992;box-shadow:0 0 0 4px #eef1f3; }
.property-activity-date { padding-top:1px;color:var(--muted);font-size:.64rem;font-weight:700; }
.property-activity-copy strong { display:block;font-size:.74rem;line-height:1.2; }
.property-activity-copy span { display:block;margin-top:4px;color:#4e5b65;font-size:.68rem;line-height:1.35; }

@media (max-width: 980px) {
    .property-resource-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .open-house-list { grid-template-columns:1fr; }
}
@media (max-width: 620px) {
    .property-resource-grid { grid-template-columns:1fr; }
    .property-resource-card { min-height:64px; }
    .open-house-card { grid-template-columns:70px minmax(0,1fr);min-height:110px; }
    .open-house-date { min-height:110px; }
    .open-house-copy { padding:12px; }
    .open-house-actions { gap:6px; }
    .open-house-calendar,.open-house-calendar-secondary,.open-house-calendar-provider { font-size:.6rem; }
    .open-house-calendar-provider { min-height:31px;padding:6px 9px;gap:5px; }
    .calendar-provider-icon { width:15px;height:15px;flex-basis:15px; }
    .property-activity-row { grid-template-columns:18px 78px minmax(0,1fr);gap:8px; }
}
/* DDF V1.18.6 RICH PROPERTY MEDIA + OPEN HOUSE EXPERIENCE END */


/* DDF V1.18.9 OPEN HOUSE 2x2 CALENDAR GRID START */
.open-house-actions { display:block; margin-top:12px; }
.open-house-calendar-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:7px; width:100%; }
.open-house-calendar-grid .open-house-calendar-provider { width:100%; min-width:0; min-height:36px; padding:7px 10px; }
.open-house-calendar-grid .open-house-calendar-provider span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calendar-other { color:var(--ink); }
.open-house-livestream { margin-top:7px; width:100%; }
@media (max-width:620px) {
    .open-house-calendar-grid { gap:6px; }
    .open-house-calendar-grid .open-house-calendar-provider { min-height:34px; padding:6px 7px; font-size:.59rem; }
    .open-house-calendar-grid .calendar-provider-icon { width:14px; height:14px; flex-basis:14px; }
}
/* DDF V1.18.9 OPEN HOUSE 2x2 CALENDAR GRID END */

/* V1.19 saved Market Intelligence */
.market-analysis-footer{align-items:flex-end}.market-report-link{display:inline-flex;flex:0 0 auto;align-items:center;justify-content:center;border:1px solid #d5dfdc;border-radius:10px;padding:8px 11px;color:var(--ddf-primary,#146c5b);font-size:.72rem;font-weight:700;text-decoration:none;background:#fff}.market-report-link:hover{border-color:var(--ddf-primary,#146c5b)}@media(max-width:650px){.market-analysis-footer{align-items:flex-start;flex-direction:column}.market-report-link{width:100%}}

/* V1.19.1 RealtySuite product branding */
.realtysuite-main-brand{display:inline-flex;align-items:center;text-decoration:none;color:var(--ink)}
.realtysuite-main-brand img{display:block;width:220px;max-width:38vw;height:46px;object-fit:contain;object-position:left center}
.realtysuite-platform-credit{width:min(1180px,calc(100% - 32px));margin:18px auto 30px;color:#7b8893;font-size:11px;line-height:1.45;text-align:center}
.realtysuite-platform-credit a{color:inherit;text-decoration:none}
.realtysuite-platform-credit a:first-of-type{display:inline-flex;align-items:center;gap:4px;font-weight:750;vertical-align:sub;margin-left:2px}
.realtysuite-platform-credit img{width:20px;height:15px;object-fit:contain;vertical-align:middle}
.search-platform-credit{margin:18px 4px 2px;color:#89949c;font-size:10px;text-align:center}
.search-platform-credit a{color:inherit;text-decoration:none}
.search-platform-credit a:first-of-type{display:inline-flex;align-items:center;gap:4px;font-weight:750}
.search-platform-credit img{width:18px;height:14px;object-fit:contain}
@media(max-width:640px){.realtysuite-main-brand img{width:175px;max-width:62vw;height:40px}.realtysuite-platform-credit{width:min(100% - 22px,1180px);font-size:10px}}


/* V1.19.2 credit polish + persistent Map Search platform bar */
.realtysuite-platform-credit,.search-platform-credit{
    color:#000!important;
    font-family:"Ubuntu",Arial,sans-serif!important;
    font-weight:400;
}
.realtysuite-platform-credit a,.search-platform-credit a{color:#000!important}
.realtysuite-platform-credit a:first-of-type,.search-platform-credit a:first-of-type{font-weight:500}
.search-platform-credit.map-platform-bar{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1700;
    min-height:44px;
    margin:0;
    padding:8px 18px;
    border-top:1px solid #d8e0e5;
    background:rgba(255,255,255,.97);
    box-shadow:0 -6px 22px rgba(18,31,42,.08);
    backdrop-filter:blur(14px) saturate(140%);
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px 8px;
    flex-wrap:wrap;
    line-height:1.35;
}
.map-platform-made,.map-platform-source{display:inline-flex;align-items:center;gap:3px;flex-wrap:wrap;justify-content:center}
.map-platform-divider{opacity:.45;margin:0 2px}
.map-platform-source a{font-weight:400;text-decoration:none}
.map-platform-source a:hover,.search-platform-credit a:hover{text-decoration:underline;text-underline-offset:2px}
.search-panel{padding-bottom:82px}
.map-panel .map-note{bottom:64px}
.map-panel .leaflet-bottom{bottom:44px}
@media(max-width:760px){
    .search-platform-credit.map-platform-bar{min-height:52px;padding:7px 10px;font-size:9px;gap:2px 6px}
    .search-panel{padding-bottom:92px!important}
    .map-panel .map-note{bottom:72px}
    .map-panel .leaflet-bottom{bottom:52px}
}
@media(max-width:520px){
    .map-platform-divider{display:none}
    .map-platform-made,.map-platform-source{width:100%}
}

/* V1.20.1 MARKET VALUE PROFILE
   Purple is reserved for high-end individual metric cards.
   The whole-picture high-value badge is emerald. */
.market-analysis-section{
    --market-purple:#7441a8;
    --market-purple-soft:#f6f0fb;
    --market-emerald:#08785f;
    --market-emerald-soft:#eaf8f3;
}
.market-status-badge.market-tone-high-value{--market-info-dot:#e5f8f0;color:#f3fff9;background:#075b46;border-color:#044836;box-shadow:0 6px 18px rgba(4,72,54,.22)}
.market-status-badge.market-tone-high-value>span{background:#e5f8f0;color:#075b46}
.market-analysis-card.market-tone-premium{border-color:#d9c3ea;background:linear-gradient(180deg,var(--market-purple-soft) 0,#fff 48%);box-shadow:inset 0 3px 0 var(--market-purple)}
.market-tone-premium .market-card-summary{color:#64328f}
.market-tone-premium .market-range-marker{background:var(--market-purple)!important;box-shadow:0 0 0 2px var(--market-purple),0 2px 5px rgba(15,23,42,.16)!important}
/* V1.20.2 MARKET VALUE COLOR REFINEMENT
   Dark emerald is reserved for the higher-end whole-picture outcome. */

/* DDF V1.21 Listing Showcase Takeover */
html:has(dialog.ddf-showcase-dialog[open]), body.ddf-showcase-open{overscroll-behavior:none}
dialog.ddf-showcase-dialog{
    all:initial;box-sizing:border-box;position:fixed;inset:0;width:100vw;max-width:none;height:100dvh;max-height:none;margin:0;padding:0;border:0;background:#f5f7f8;color:#162630;font-family:Ubuntu,Arial,sans-serif;z-index:2147483647;overflow:hidden;color-scheme:light;
}
dialog.ddf-showcase-dialog[open]{display:block}
dialog.ddf-showcase-dialog::backdrop{background:rgba(9,22,31,.48);backdrop-filter:blur(3px)}
.ddf-showcase-dialog,.ddf-showcase-dialog *,.ddf-showcase-dialog *::before,.ddf-showcase-dialog *::after{box-sizing:border-box}
.ddf-showcase-dialog a{color:inherit;text-decoration:none}
.ddf-showcase-dialog button,.ddf-showcase-dialog input,.ddf-showcase-dialog textarea{font:inherit}
.ddf-showcase-frame{height:100%;min-height:0;display:flex;flex-direction:column;background:#f5f7f8;isolation:isolate}
.ddf-showcase-header{flex:0 0 auto;min-height:78px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:12px max(22px,env(safe-area-inset-right)) 12px max(22px,env(safe-area-inset-left));background:rgba(255,255,255,.98);border-bottom:1px solid #dce4e8;box-shadow:0 6px 24px rgba(18,38,48,.07);z-index:6}
.ddf-showcase-brand-side,.ddf-showcase-header-actions{display:flex;align-items:center;min-width:0}
.ddf-showcase-brand-side{gap:11px}
.ddf-showcase-header-actions{gap:8px;justify-content:flex-end}
.ddf-showcase-owner-photo,.ddf-showcase-owner-initials{width:48px;height:48px;border-radius:50%;flex:0 0 48px;object-fit:cover;background:#e8efed;display:grid;place-items:center;color:#173c33;font-weight:800;font-size:15px}
.ddf-showcase-owner-copy{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.ddf-showcase-owner-copy small,.ddf-showcase-kicker,.ddf-showcase-listed-by>div:first-child small,.ddf-showcase-contact-head small,.ddf-showcase-highlights>div:first-child small{font-size:11px;line-height:1.2;text-transform:uppercase;letter-spacing:.075em;font-weight:800;color:#647680}
.ddf-showcase-owner-copy strong{font-size:16px;line-height:1.2;color:#142630;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ddf-showcase-owner-copy span{font-size:12px;line-height:1.25;color:#647680;margin-top:3px}
.ddf-showcase-association-mark{font-size:20px;color:#87979f;margin:0 2px;font-weight:400}
.ddf-showcase-site-logo{width:auto;height:42px;max-width:150px;object-fit:contain;display:block}
.ddf-showcase-home-link,.ddf-showcase-standard-button,.ddf-showcase-close-button{border:1px solid #d6e0e4;background:#fff;color:#19313c;border-radius:12px;min-height:42px;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;font-weight:750}
.ddf-showcase-home-link,.ddf-showcase-standard-button{padding:0 14px;font-size:13px}
.ddf-showcase-close-button{width:42px;padding:0;font-size:24px;font-weight:400;line-height:1}
.ddf-showcase-home-link:hover,.ddf-showcase-standard-button:hover,.ddf-showcase-close-button:hover{border-color:#aebdc4;background:#f7f9fa}
.ddf-showcase-home-link:focus-visible,.ddf-showcase-standard-button:focus-visible,.ddf-showcase-close-button:focus-visible,.ddf-showcase-dialog a:focus-visible,.ddf-showcase-dialog button:focus-visible,.ddf-showcase-dialog input:focus-visible,.ddf-showcase-dialog textarea:focus-visible{outline:3px solid color-mix(in srgb,var(--ddf-showcase-accent,#146c5b) 34%,transparent);outline-offset:2px}
.ddf-showcase-scroller{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:max(24px,env(safe-area-inset-bottom))}
.ddf-showcase-intro,.ddf-showcase-listed-by,.ddf-showcase-highlights,.ddf-showcase-content-slot,.ddf-showcase-footer{width:min(1460px,calc(100% - 44px));margin-left:auto;margin-right:auto}
.ddf-showcase-intro{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(340px,.65fr);align-items:stretch;gap:22px;padding:34px 0 22px}
.ddf-showcase-intro-copy{display:flex;flex-direction:column;justify-content:center;min-width:0;padding:18px 6px}
.ddf-showcase-kicker{margin:0 0 10px;color:var(--ddf-showcase-accent,#146c5b)}
.ddf-showcase-intro h2{font-family:Ubuntu,Arial,sans-serif;font-size:clamp(28px,3vw,48px);line-height:1.03;letter-spacing:-.035em;margin:0;color:#142630;font-weight:800}
.ddf-showcase-intro-copy>p:last-child{font-size:16px;line-height:1.65;color:#536872;max-width:820px;margin:14px 0 0}
.ddf-showcase-contact-card{background:#fff;border:1px solid #dce5e8;border-radius:22px;padding:18px;box-shadow:0 14px 34px rgba(18,38,48,.08);align-self:stretch}
.ddf-showcase-contact-head{display:flex;align-items:center;gap:12px;margin-bottom:14px}
.ddf-showcase-contact-head>img,.ddf-showcase-contact-head>span{width:48px;height:48px;border-radius:50%;object-fit:cover;flex:0 0 48px;background:#edf3f1;display:grid;place-items:center;font-weight:800;color:#17443a}
.ddf-showcase-contact-head>div{display:flex;flex-direction:column;min-width:0}
.ddf-showcase-contact-head strong{font-size:17px;color:#152a34;line-height:1.3}
.ddf-showcase-contact-head a{font-size:13px;color:#526872;margin-top:2px}
.ddf-showcase-lead-form{margin:0}
.ddf-showcase-lead-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.ddf-showcase-lead-form input,.ddf-showcase-lead-form textarea{width:100%;border:1px solid #d4dfe3;border-radius:11px;background:#fbfcfc;color:#142630;padding:10px 11px;min-height:42px;font-size:13px;line-height:1.3;outline:0}
.ddf-showcase-lead-form textarea{min-height:70px;resize:vertical;margin-top:8px}
.ddf-showcase-lead-action{display:flex;align-items:center;gap:10px;margin-top:8px}
.ddf-showcase-lead-action button{border:0;border-radius:11px;background:var(--ddf-showcase-accent,#146c5b);color:#fff;min-height:42px;padding:0 17px;cursor:pointer;font-size:13px;font-weight:800}
.ddf-showcase-lead-action .lead-status{font-size:12px;line-height:1.35;color:#566d76}
.ddf-showcase-listed-by,.ddf-showcase-highlights{background:#fff;border:1px solid #dce5e8;border-radius:20px;padding:18px 20px;margin-top:0;margin-bottom:18px;display:grid;grid-template-columns:minmax(180px,.34fr) minmax(0,1fr);gap:20px;align-items:center}
.ddf-showcase-listed-by>div:first-child,.ddf-showcase-highlights>div:first-child{display:flex;flex-direction:column;gap:4px}
.ddf-showcase-listed-by>div:first-child strong,.ddf-showcase-highlights h3{font-size:18px;line-height:1.2;color:#172d37;margin:0}
.ddf-showcase-highlights>div:first-child p{font-size:12px;line-height:1.45;color:#687b84;margin:3px 0 0}
.ddf-showcase-rep-list{display:flex;gap:12px;flex-wrap:wrap;justify-content:flex-end}
.ddf-showcase-rep{display:flex;align-items:center;gap:9px;background:#f7f9fa;border:1px solid #e1e7ea;border-radius:14px;padding:8px 10px;min-width:190px}
.ddf-showcase-rep>img,.ddf-showcase-rep>span{width:36px;height:36px;border-radius:50%;object-fit:cover;flex:0 0 36px;background:#e8eeef;display:grid;place-items:center;font-size:11px;font-weight:800}
.ddf-showcase-rep>div{display:flex;flex-direction:column;min-width:0}
.ddf-showcase-rep strong{font-size:13px;line-height:1.25;color:#1c333d}
.ddf-showcase-rep small{font-size:11px;line-height:1.25;color:#6a7b84;margin-top:2px}
.ddf-showcase-highlight-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.ddf-showcase-highlight-grid article{background:#f3f8f6;border:1px solid #d8e7e2;border-radius:14px;padding:13px;display:flex;flex-direction:column;gap:4px;min-height:90px}
.ddf-showcase-highlight-grid article small{font-size:10px;text-transform:uppercase;letter-spacing:.055em;color:#647a72;font-weight:800}
.ddf-showcase-highlight-grid article strong{font-size:15px;line-height:1.25;color:#173f35}
.ddf-showcase-highlight-grid article span{font-size:11px;line-height:1.35;color:#62746f}
.ddf-showcase-content-slot{margin-top:0}
.ddf-showcase-content-slot>.detail-wrap{width:100%;max-width:none;margin:0;padding:0 0 26px;background:transparent}
.ddf-showcase-dialog .detail-gallery-shell{border-radius:24px;overflow:hidden;box-shadow:0 12px 35px rgba(14,34,44,.11);background:#fff}
.ddf-showcase-dialog .detail-gallery{min-height:clamp(430px,56vh,760px);height:56vh;max-height:760px}
.ddf-showcase-dialog .detail-summary,.ddf-showcase-dialog .detail-content-grid{max-width:none}
.ddf-showcase-dialog .detail-summary{background:#fff;border:1px solid #dce5e8;border-radius:20px;margin-top:18px;padding:22px}
.ddf-showcase-dialog .detail-content-grid{gap:18px}
.ddf-showcase-dialog .detail-section{border-color:#dce5e8;box-shadow:0 7px 22px rgba(18,38,48,.045)}
.ddf-showcase-dialog .property-realtor-card,.ddf-showcase-dialog .market-contact-card{display:none!important}
.ddf-showcase-dialog .market-status-badge{display:none!important}
.ddf-showcase-dialog .market-analysis-header-copy>p:first-child{color:#60717a}
.ddf-showcase-office-listing .market-analysis-card:not(.is-inventory){background:#f7f9fb!important;border-color:#d8e1e6!important;box-shadow:none!important}
.ddf-showcase-office-listing .market-analysis-card:not(.is-inventory)::before{background:#7b93a0!important}
.ddf-showcase-office-listing .market-analysis-card:not(.is-inventory) .market-analysis-card-status,.ddf-showcase-office-listing .market-analysis-card:not(.is-inventory) .market-analysis-card-value{color:#29434f!important}
.ddf-showcase-office-listing .market-position-track .market-position-fill{background:#7b93a0!important}
.ddf-showcase-own-listing .market-analysis-card{box-shadow:none}
.ddf-showcase-footer{margin-top:4px;background:#111b20;color:#f2f5f6;border-radius:20px;padding:18px 20px;display:flex;align-items:center;justify-content:space-between;gap:20px;font-family:Ubuntu,Arial,sans-serif;font-size:12px;line-height:1.5}
.ddf-showcase-footer p{margin:0;color:#cbd5d9;max-width:820px}
.ddf-showcase-footer>div{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:4px;color:#fff}
.ddf-showcase-footer a{display:inline-flex;align-items:center;gap:4px;color:#fff;font-weight:750}
.ddf-showcase-footer img{width:16px;height:16px;object-fit:contain;filter:brightness(0) invert(1)}
@media (max-width:980px){
    .ddf-showcase-header{min-height:70px;padding-top:max(9px,env(safe-area-inset-top));gap:10px}
    .ddf-showcase-owner-copy span,.ddf-showcase-home-link{display:none}
    .ddf-showcase-site-logo{max-width:110px;height:34px}
    .ddf-showcase-intro{grid-template-columns:1fr;padding-top:20px}
    .ddf-showcase-contact-card{max-width:none}
    .ddf-showcase-listed-by,.ddf-showcase-highlights{grid-template-columns:1fr}
    .ddf-showcase-rep-list{justify-content:flex-start}
    .ddf-showcase-highlight-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ddf-showcase-footer{align-items:flex-start;flex-direction:column}
    .ddf-showcase-footer>div{justify-content:flex-start}
}
@media (max-width:640px){
    .ddf-showcase-header{padding-left:max(10px,env(safe-area-inset-left));padding-right:max(10px,env(safe-area-inset-right));min-height:64px}
    .ddf-showcase-owner-photo,.ddf-showcase-owner-initials{width:40px;height:40px;flex-basis:40px}
    .ddf-showcase-owner-copy small{font-size:9px}.ddf-showcase-owner-copy strong{font-size:13px;max-width:115px}
    .ddf-showcase-association-mark,.ddf-showcase-site-logo{display:none}
    .ddf-showcase-standard-button{padding:0 10px;min-height:38px;font-size:11px}
    .ddf-showcase-close-button{width:38px;min-height:38px}
    .ddf-showcase-intro,.ddf-showcase-listed-by,.ddf-showcase-highlights,.ddf-showcase-content-slot,.ddf-showcase-footer{width:min(100% - 20px,1460px)}
    .ddf-showcase-intro{gap:10px;padding:15px 0 12px}
    .ddf-showcase-intro-copy{padding:8px 2px}
    .ddf-showcase-intro h2{font-size:27px}
    .ddf-showcase-intro-copy>p:last-child{font-size:14px;line-height:1.55;margin-top:9px}
    .ddf-showcase-contact-card{border-radius:16px;padding:13px}
    .ddf-showcase-lead-fields{grid-template-columns:1fr}
    .ddf-showcase-lead-form textarea{min-height:62px}
    .ddf-showcase-lead-action{align-items:flex-start;flex-direction:column}
    .ddf-showcase-lead-action button{width:100%}
    .ddf-showcase-listed-by,.ddf-showcase-highlights{padding:14px;border-radius:16px;gap:12px;margin-bottom:12px}
    .ddf-showcase-rep-list{display:grid;grid-template-columns:1fr;width:100%}
    .ddf-showcase-highlight-grid{grid-template-columns:1fr 1fr;gap:7px}
    .ddf-showcase-highlight-grid article{min-height:82px;padding:10px}
    .ddf-showcase-dialog .detail-gallery{height:auto;min-height:0;max-height:none;aspect-ratio:1/1}
    .ddf-showcase-dialog .detail-gallery-shell{border-radius:16px}
    .ddf-showcase-dialog .detail-summary{border-radius:16px;padding:16px;margin-top:10px}
    .ddf-showcase-footer{border-radius:15px;padding:14px;margin-top:0}
}
@media (prefers-reduced-motion:reduce){.ddf-showcase-dialog *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
.ddf-showcase-only{display:none}
.ddf-showcase-dialog .ddf-showcase-only{display:block}

/* DDF V1.21.1 LISTING LANDING START */
/* V1.21.1 Listing Showcase Landing Page
   A real server-rendered landing-page presentation. No modal/takeover shell. */
.ddf-showcase-page{
    --showcase-ink:#102026;--showcase-muted:#60727a;--showcase-line:#dde5e7;--showcase-soft:#f3f5f4;--showcase-paper:#fff;
    position:relative;width:100%;max-width:none;margin:0;background:#f6f7f5;color:var(--showcase-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;overflow:clip;
}
.ddf-native-property .ddf-showcase-page{width:100vw;max-width:100vw;margin-left:calc(50% - 50vw)}
.ddf-showcase-page *{box-sizing:border-box}
.ddf-showcase-page a{text-decoration:none}
.ddf-showcase-sitebar{position:sticky;top:0;z-index:90;background:rgba(255,255,255,1);backdrop-filter:blur(18px);border-bottom:1px solid rgba(211,221,224,.88);box-shadow:0 8px 28px rgba(13,35,43,.05)}
.ddf-showcase-sitebar-inner{width:min(1500px,calc(100% - 48px));min-height:78px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:22px}
.ddf-showcase-presenter,.ddf-showcase-sitebar-actions{display:flex;align-items:center;min-width:0}
.ddf-showcase-presenter{gap:11px}
.ddf-showcase-presenter-photo,.ddf-showcase-presenter-initials{width:50px;height:50px;flex:0 0 50px;border-radius:50%;object-fit:cover;background:#e8efed;display:grid;place-items:center;font-family:Ubuntu,Arial,sans-serif;font-weight:800;color:#173c33}
.ddf-showcase-presenter-copy{display:flex;flex-direction:column;min-width:0;line-height:1.13}
.ddf-showcase-presenter-copy small{font-size:10px;text-transform:uppercase;letter-spacing:.095em;font-weight:800;color:var(--ddf-showcase-primary,var(--brand,#146c5b))}
.ddf-showcase-presenter-copy strong{font:700 16px/1.2 Ubuntu,Arial,sans-serif;color:#12262e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ddf-showcase-presenter-copy span{font-size:11px;color:#6c7d84;margin-top:2px;letter-spacing:.035em}
.ddf-showcase-brand-x{font-size:20px;color:#98a5aa;margin:0 3px;font-weight:300}
.ddf-showcase-presenter-logo{display:block;width:auto;height:42px;max-width:160px;object-fit:contain}
.ddf-showcase-sitebar-actions{gap:9px;justify-content:flex-end}
.ddf-showcase-phone,.ddf-showcase-primary-action,.ddf-showcase-home-close{min-height:42px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;font-size:12px;font-weight:800;transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.ddf-showcase-phone{padding:0 15px;color:#263a42;border:1px solid #d8e1e4;background:#fff}
.ddf-showcase-primary-action{padding:0 18px;background:var(--ddf-showcase-primary,var(--brand,#146c5b));color:#fff;box-shadow:0 8px 22px color-mix(in srgb,var(--ddf-showcase-primary,var(--brand,#146c5b)) 22%,transparent)}
.ddf-showcase-home-close{width:42px;color:#263a42;border:1px solid #d8e1e4;background:#fff;font-size:24px;font-weight:400;line-height:1}
.ddf-showcase-phone:hover,.ddf-showcase-primary-action:hover,.ddf-showcase-home-close:hover{transform:translateY(-1px)}
.ddf-showcase-main{width:100%;margin:0;padding:0 0 72px}
.ddf-showcase-hero{position:relative;width:min(1600px,100%);height:clamp(610px,76vh,860px);margin:0 auto;background:#17232a;overflow:hidden}
.ddf-showcase-hero-gallery{position:absolute;inset:0;display:grid;grid-template-columns:minmax(0,2.15fr) minmax(300px,.85fr);grid-template-rows:1fr 1fr;gap:4px;background:#17232a}
.ddf-showcase-hero-gallery.single{grid-template-columns:1fr}
.ddf-showcase-hero-photo{position:relative;border:0;padding:0;margin:0;min-width:0;min-height:0;overflow:hidden;background:#203139;cursor:zoom-in}
.ddf-showcase-hero-photo img{width:100%;height:100%;display:block;object-fit:cover;transition:transform .45s ease,filter .45s ease}
.ddf-showcase-hero-photo:hover img{transform:scale(1.018);filter:saturate(1.03)}
.ddf-showcase-hero-photo-1{grid-row:1 / span 2}
.ddf-showcase-hero-photo-4,.ddf-showcase-hero-photo-5{display:none}
.ddf-showcase-hero-gallery.single .ddf-showcase-hero-photo-1{grid-row:auto}
.ddf-showcase-hero-shade{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(5,16,22,.72) 0%,rgba(5,16,22,.32) 42%,rgba(5,16,22,.06) 72%),linear-gradient(0deg,rgba(5,16,22,.72) 0%,transparent 48%)}
.ddf-showcase-hero-content{position:absolute;left:0;right:0;bottom:0;z-index:3;width:min(1500px,calc(100% - 64px));margin:0 auto;padding:0 0 42px;display:flex;align-items:flex-end;justify-content:space-between;gap:30px;color:#fff}
.ddf-showcase-hero-copy{max-width:850px}
.ddf-showcase-eyebrow{margin:0 0 10px;text-transform:uppercase;letter-spacing:.12em;font-size:11px;font-weight:850;color:#d7e7e2}
.ddf-showcase-hero h1{margin:0;font:700 clamp(38px,5.2vw,78px)/.98 Ubuntu,Arial,sans-serif;letter-spacing:-.05em;color:#fff;text-wrap:balance;text-shadow:0 3px 24px rgba(0,0,0,.24)}
.ddf-showcase-hero-price{margin-top:16px;font:700 clamp(25px,3vw,42px)/1 Ubuntu,Arial,sans-serif;color:#fff}
.ddf-showcase-fact-strip{display:flex;align-items:stretch;flex-wrap:wrap;gap:0;margin-top:22px;border:1px solid rgba(255,255,255,.24);border-radius:16px;overflow:hidden;background:rgba(10,24,31,.3);backdrop-filter:blur(10px);width:max-content;max-width:100%}
.ddf-showcase-fact-strip>div{min-width:118px;padding:11px 15px;border-right:1px solid rgba(255,255,255,.18);display:flex;flex-direction:column;gap:2px}
.ddf-showcase-fact-strip>div:last-child{border-right:0}
.ddf-showcase-fact-strip strong{font:700 17px/1.2 Ubuntu,Arial,sans-serif;color:#fff}
.ddf-showcase-fact-strip span{font-size:10px;text-transform:uppercase;letter-spacing:.065em;color:#d6e1e4}
.ddf-showcase-hero-actions{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex:0 0 auto}
.ddf-showcase-photo-button,.ddf-showcase-scroll-cue{min-height:44px;border-radius:999px;padding:0 16px;display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;backdrop-filter:blur(10px)}
.ddf-showcase-photo-button{border:1px solid rgba(255,255,255,.42);background:rgba(255,255,255,.94);color:#152b34;box-shadow:0 8px 22px rgba(0,0,0,.15)}
.ddf-showcase-scroll-cue{border:1px solid rgba(255,255,255,.24);background:rgba(8,23,30,.32);color:#fff}
.ddf-showcase-scroll-cue span{font-size:16px;margin-left:7px}
.ddf-showcase-contact-band{position:relative;z-index:8;width:min(1320px,calc(100% - 56px));margin:-28px auto 54px;background:#fff;border:1px solid #dce4e6;border-radius:24px;box-shadow:0 24px 58px rgba(17,39,47,.13);padding:24px;display:grid;grid-template-columns:minmax(310px,.8fr) minmax(0,1.2fr);gap:28px;align-items:center}
.ddf-showcase-contact-identity{display:flex;align-items:center;gap:15px;min-width:0}
.ddf-showcase-contact-identity>img,.ddf-showcase-contact-identity>span{width:78px;height:78px;border-radius:50%;object-fit:cover;flex:0 0 78px;background:#edf3f1;display:grid;place-items:center;font:700 19px Ubuntu,Arial,sans-serif;color:#17443a}
.ddf-showcase-contact-identity>div{min-width:0}
.ddf-showcase-contact-identity small{display:block;font-size:10px;text-transform:uppercase;letter-spacing:.085em;font-weight:850;color:var(--ddf-showcase-primary,var(--brand,#146c5b))}
.ddf-showcase-contact-identity strong{display:block;margin-top:3px;font:700 22px/1.15 Ubuntu,Arial,sans-serif;color:#132a33}
.ddf-showcase-contact-identity p{margin:7px 0 0;font-size:13px;line-height:1.48;color:#64767d;max-width:430px}
.ddf-showcase-contact-form{margin:0;min-width:0}
.ddf-showcase-contact-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.ddf-showcase-contact-form input,.ddf-showcase-contact-form textarea{width:100%;border:1px solid #d6e0e3;border-radius:11px;background:#fbfcfc;color:#152832;padding:10px 11px;outline:0;font-size:13px;line-height:1.35}
.ddf-showcase-contact-form input{height:42px}
.ddf-showcase-contact-form textarea{min-height:54px;resize:vertical}
.ddf-showcase-contact-action{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;margin-top:8px}
.ddf-showcase-contact-action button{border:0;border-radius:11px;background:var(--ddf-showcase-primary,var(--brand,#146c5b));color:#fff;padding:0 19px;min-height:54px;font-size:12px;font-weight:850;white-space:nowrap}
.ddf-showcase-contact-form .lead-status{display:block;margin-top:6px;font-size:11px;color:#5d7078;min-height:15px}
.ddf-showcase-listed-section,.ddf-showcase-section,.ddf-showcase-story{width:min(1280px,calc(100% - 56px));margin-left:auto;margin-right:auto}
.ddf-showcase-listed-section{margin-bottom:54px;padding:24px 26px;background:#fff;border:1px solid #dce5e7;border-radius:20px;display:grid;grid-template-columns:minmax(230px,.55fr) minmax(0,1.45fr);gap:24px;align-items:center}
.ddf-showcase-section-heading{max-width:780px;margin-bottom:24px}
.ddf-showcase-section-heading.compact{margin:0}
.ddf-showcase-section-heading>p{margin:0 0 7px;text-transform:uppercase;letter-spacing:.1em;font-size:10px;font-weight:850;color:var(--ddf-showcase-primary,var(--brand,#146c5b))}
.ddf-showcase-section-heading h2{margin:0;font:700 clamp(29px,3.2vw,48px)/1.04 Ubuntu,Arial,sans-serif;letter-spacing:-.04em;color:#11262f}
.ddf-showcase-section-heading>span{display:block;margin-top:9px;font-size:14px;line-height:1.55;color:#65777f}
.ddf-showcase-section-heading.compact h2{font-size:24px}
.ddf-showcase-representatives{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap}
.ddf-showcase-representative{display:flex;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e0e7e9;border-radius:15px;background:#f8faf9;min-width:220px}
.ddf-showcase-representative>img,.ddf-showcase-representative>span{width:42px;height:42px;border-radius:50%;object-fit:cover;flex:0 0 42px;background:#e8eeef;display:grid;place-items:center;font:700 11px Ubuntu,Arial,sans-serif}
.ddf-showcase-representative>div{display:flex;flex-direction:column;min-width:0}
.ddf-showcase-representative strong{font-size:13px;color:#18313a}
.ddf-showcase-representative small{margin-top:2px;font-size:11px;color:#718087}
.ddf-showcase-section{margin-top:72px}
.ddf-showcase-media-section{margin-top:54px}
.ddf-showcase-video{aspect-ratio:16/9;width:100%;overflow:hidden;border-radius:22px;background:#101b20;box-shadow:0 22px 50px rgba(15,35,43,.12)}
.ddf-showcase-video iframe{width:100%;height:100%;display:block;border:0}
.ddf-showcase-resource-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:14px}
.ddf-showcase-resource-grid a{position:relative;min-height:118px;padding:16px 44px 16px 16px;border-radius:16px;background:#fff;border:1px solid #dce5e7;display:flex;flex-direction:column;justify-content:center;color:#18313a;box-shadow:0 7px 20px rgba(18,38,48,.035)}
.ddf-showcase-resource-grid a:hover{border-color:color-mix(in srgb,var(--ddf-showcase-primary,var(--brand,#146c5b)) 35%,#dce5e7);box-shadow:0 12px 28px rgba(18,38,48,.07)}
.ddf-showcase-resource-grid span{font:700 15px/1.2 Ubuntu,Arial,sans-serif}
.ddf-showcase-resource-grid small{font-size:11px;color:#718087;margin-top:5px;line-height:1.35}
.ddf-showcase-resource-grid b{position:absolute;right:16px;top:15px;font-size:17px;color:var(--ddf-showcase-primary,var(--brand,#146c5b));font-weight:500}
.ddf-showcase-story{margin-top:82px;display:grid;grid-template-columns:minmax(0,1.2fr) minmax(360px,.8fr);gap:48px;align-items:start}
.ddf-showcase-story-lead{padding:8px 0}
.ddf-showcase-story-lead h2{margin:0;font:700 clamp(34px,4.2vw,58px)/1.03 Ubuntu,Arial,sans-serif;letter-spacing:-.045em;color:#11262f;text-wrap:balance}
.ddf-showcase-story-lead>p:not(.ddf-showcase-eyebrow),.ddf-showcase-listing-remarks{margin:20px 0 0;font-size:17px;line-height:1.78;color:#4f646d}
.ddf-showcase-highlight-panel{background:#17262c;color:#fff;border-radius:24px;padding:24px;box-shadow:0 18px 46px rgba(15,35,43,.12)}
.ddf-showcase-highlight-panel>small{display:block;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:850;color:#b9cec7;margin-bottom:12px}
.ddf-showcase-highlight-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.ddf-showcase-highlight-grid article{min-height:125px;padding:15px;border-radius:15px;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.09);display:flex;flex-direction:column;justify-content:center}
.ddf-showcase-highlight-grid span{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#b9c8cd;font-weight:750}
.ddf-showcase-highlight-grid strong{margin-top:5px;font:700 18px/1.15 Ubuntu,Arial,sans-serif;color:#fff}
.ddf-showcase-highlight-grid p{margin:6px 0 0;font-size:11px;line-height:1.35;color:#ccd7da}
.ddf-showcase-openhouse-list .open-house-card{background:#fff;box-shadow:0 10px 28px rgba(18,38,48,.055)}
.ddf-showcase-spec-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.ddf-showcase-feature-list{margin-top:16px}
.ddf-showcase-editorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:18px}
.ddf-showcase-editorial-grid article{padding:20px;border-radius:17px;background:#fff;border:1px solid #dce5e7}
.ddf-showcase-editorial-grid h3{font:700 18px/1.2 Ubuntu,Arial,sans-serif;margin:0;color:#17303a}
.ddf-showcase-editorial-grid p{margin:8px 0 0;font-size:13px;line-height:1.55;color:#65777f}
.ddf-showcase-editorial-grid ul{margin:12px 0 0;padding-left:19px;color:#344d57;font-size:13px;line-height:1.55}
.ddf-showcase-market-section{position:relative;padding:32px;border-radius:26px;background:#fff;border:1px solid #dce5e7;box-shadow:0 16px 44px rgba(18,38,48,.06)}
.ddf-showcase-market-meta{position:absolute;top:32px;right:32px}
.ddf-showcase-market-grid{margin-top:8px}
.ddf-showcase-location-section .listing-map{height:500px;border-radius:24px;overflow:hidden;border:1px solid #dce5e7;box-shadow:0 12px 34px rgba(18,38,48,.07)}
.ddf-showcase-similar-section .similar-property-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.ddf-showcase-feed-section{padding:30px;border-radius:24px;background:#fff;border:1px solid #dce5e7}
.ddf-showcase-feed-bottom{margin-top:18px;padding-top:16px;border-top:1px solid #e2e8ea;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;font-size:11px}
.ddf-showcase-feed-bottom a{color:#526a74;font-weight:650}
.ddf-showcase-feed-bottom .ddf-realtor-text{font-weight:400;font-size:10px}
.ddf-showcase-page-footer{margin-top:76px;padding:34px max(28px,calc((100vw - 1280px)/2));background:#101b20;color:#fff;display:flex;justify-content:space-between;gap:34px;align-items:center;font-family:Ubuntu,Arial,sans-serif}
.ddf-showcase-page-footer>div:first-child{display:flex;flex-direction:column;max-width:680px}
.ddf-showcase-page-footer strong{font-size:14px;color:#fff}
.ddf-showcase-page-footer span{font:400 11px/1.5 Inter,system-ui,sans-serif;color:#adbdc3;margin-top:5px}
.ddf-showcase-footer-brand{font-size:11px;line-height:1.5;color:#d6dfe2;text-align:right}
.ddf-showcase-footer-brand a{display:inline-flex;align-items:center;gap:4px;color:#fff;font-weight:700}
.ddf-showcase-footer-brand img{width:16px;height:16px;object-fit:contain;filter:brightness(0) invert(1)}
.ddf-showcase-page .market-analysis-card{box-shadow:none}
.ddf-showcase-page-office-listing .market-analysis-card:not(.is-inventory){background:#f7f9fb!important;border-color:#d8e1e6!important}
.ddf-showcase-page-office-listing .market-analysis-card:not(.is-inventory)::before{background:#7b93a0!important}
.ddf-showcase-page-office-listing .market-analysis-card:not(.is-inventory) .market-card-summary{color:#29434f!important}
.ddf-showcase-page .gallery-lightbox{z-index:2147483646}

@media (max-width:1100px){
    .ddf-showcase-sitebar-inner{width:min(100% - 28px,1500px)}
    .ddf-showcase-presenter-logo{max-width:120px;height:36px}
    .ddf-showcase-hero{height:680px}
    .ddf-showcase-hero-content{width:calc(100% - 42px);padding-bottom:32px}
    .ddf-showcase-contact-band{grid-template-columns:1fr;margin-bottom:48px}
    .ddf-showcase-contact-form{padding-top:18px;border-top:1px solid #e1e7e9}
    .ddf-showcase-listed-section,.ddf-showcase-section,.ddf-showcase-story{width:min(100% - 36px,1280px)}
    .ddf-showcase-story{grid-template-columns:1fr;gap:24px}
    .ddf-showcase-highlight-panel{max-width:none}
    .ddf-showcase-resource-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
    .ddf-showcase-spec-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
    .ddf-showcase-market-meta{position:static;margin:-8px 0 18px}
    .ddf-showcase-page-footer{padding-left:26px;padding-right:26px;align-items:flex-start;flex-direction:column}
    .ddf-showcase-footer-brand{text-align:left}
}
@media (max-width:760px){
    .ddf-showcase-sitebar-inner{min-height:66px;width:calc(100% - 18px);gap:8px}
    .ddf-showcase-presenter{gap:8px}
    .ddf-showcase-presenter-photo,.ddf-showcase-presenter-initials{width:42px;height:42px;flex-basis:42px}
    .ddf-showcase-presenter-copy strong{font-size:13px;max-width:145px}
    .ddf-showcase-presenter-copy small{font-size:8px}.ddf-showcase-presenter-copy span{font-size:9px}
    .ddf-showcase-brand-x,.ddf-showcase-presenter-logo,.ddf-showcase-phone{display:none}
    .ddf-showcase-primary-action{min-height:38px;padding:0 12px;font-size:10px}
    .ddf-showcase-home-close{width:38px;min-height:38px;font-size:21px}
    .ddf-showcase-hero{height:680px;min-height:0}
    .ddf-showcase-hero-gallery{display:block}
    .ddf-showcase-hero-photo{position:absolute;inset:0;display:none}
    .ddf-showcase-hero-photo-1{display:block}
    .ddf-showcase-hero-shade{background:linear-gradient(0deg,rgba(5,16,22,.84) 0%,rgba(5,16,22,.12) 65%,rgba(5,16,22,.05) 100%)}
    .ddf-showcase-hero-content{width:calc(100% - 28px);padding-bottom:22px;display:block}
    .ddf-showcase-hero h1{font-size:clamp(34px,10vw,52px);line-height:1.01}
    .ddf-showcase-hero-price{font-size:28px;margin-top:12px}
    .ddf-showcase-fact-strip{width:100%;display:grid;grid-template-columns:1fr 1fr;margin-top:16px;border-radius:13px}
    .ddf-showcase-fact-strip>div{min-width:0;padding:9px 11px;border-right:1px solid rgba(255,255,255,.18);border-bottom:1px solid rgba(255,255,255,.18)}
    .ddf-showcase-fact-strip>div:nth-child(even){border-right:0}.ddf-showcase-fact-strip>div:nth-last-child(-n+2){border-bottom:0}
    .ddf-showcase-hero-actions{margin-top:14px;flex-direction:row;align-items:center;justify-content:space-between}
    .ddf-showcase-photo-button,.ddf-showcase-scroll-cue{min-height:40px;padding:0 12px;font-size:10px}
    .ddf-showcase-contact-band{width:calc(100% - 20px);margin:-12px auto 42px;padding:16px;border-radius:18px;gap:17px}
    .ddf-showcase-contact-identity>img,.ddf-showcase-contact-identity>span{width:58px;height:58px;flex-basis:58px}
    .ddf-showcase-contact-identity strong{font-size:18px}
    .ddf-showcase-contact-identity p{font-size:12px;margin-top:5px}
    .ddf-showcase-contact-fields{grid-template-columns:1fr}
    .ddf-showcase-contact-action{grid-template-columns:1fr}
    .ddf-showcase-contact-action textarea{min-height:64px}.ddf-showcase-contact-action button{min-height:44px}
    .ddf-showcase-listed-section,.ddf-showcase-section,.ddf-showcase-story{width:calc(100% - 20px)}
    .ddf-showcase-listed-section{grid-template-columns:1fr;padding:17px;margin-bottom:40px;border-radius:17px}
    .ddf-showcase-representatives{justify-content:flex-start;display:grid;grid-template-columns:1fr;width:100%}
    .ddf-showcase-representative{min-width:0}
    .ddf-showcase-section{margin-top:54px}
    .ddf-showcase-media-section{margin-top:42px}
    .ddf-showcase-section-heading{margin-bottom:17px}
    .ddf-showcase-section-heading h2{font-size:31px}
    .ddf-showcase-section-heading>span{font-size:12px;margin-top:7px}
    .ddf-showcase-resource-grid{grid-template-columns:1fr 1fr;gap:7px}
    .ddf-showcase-resource-grid a{min-height:98px;padding:13px 34px 13px 13px;border-radius:13px}
    .ddf-showcase-resource-grid span{font-size:13px}
    .ddf-showcase-video{border-radius:16px}
    .ddf-showcase-story{margin-top:58px}
    .ddf-showcase-story-lead h2{font-size:36px}
    .ddf-showcase-story-lead>p:not(.ddf-showcase-eyebrow),.ddf-showcase-listing-remarks{font-size:15px;line-height:1.68;margin-top:14px}
    .ddf-showcase-highlight-panel{padding:16px;border-radius:18px}
    .ddf-showcase-highlight-grid{grid-template-columns:1fr 1fr;gap:7px}
    .ddf-showcase-highlight-grid article{min-height:104px;padding:12px}
    .ddf-showcase-highlight-grid strong{font-size:15px}
    .ddf-showcase-spec-grid{grid-template-columns:1fr 1fr}
    .ddf-showcase-editorial-grid{grid-template-columns:1fr}
    .ddf-showcase-market-section{padding:17px;border-radius:18px}
    .ddf-showcase-location-section .listing-map{height:360px;border-radius:17px}
    .ddf-showcase-similar-section .similar-property-grid{grid-template-columns:1fr}
    .ddf-showcase-feed-section{padding:17px;border-radius:18px}
    .ddf-showcase-feed-bottom{align-items:flex-start;flex-direction:column}
    .ddf-showcase-page-footer{margin-top:58px;padding:24px 18px}
}
@media (max-width:420px){
    .ddf-showcase-presenter-copy strong{max-width:110px}
    .ddf-showcase-primary-action{display:none}
    .ddf-showcase-hero{height:650px}
    .ddf-showcase-resource-grid{grid-template-columns:1fr}
    .ddf-showcase-highlight-grid{grid-template-columns:1fr 1fr}
    .ddf-showcase-spec-grid{grid-template-columns:1fr 1fr}
}
@media (prefers-reduced-motion:reduce){.ddf-showcase-page *{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* DDF V1.21.1 LISTING LANDING END */

/* DDF V1.21.2 SHOWCASE POLISH START */
/* DDF V1.21.2 SHOWCASE POLISH
   Full-screen native Showcase overlay + contrast/layout corrections. */
.ddf-native-showcase-overlay{
    width:100%;height:100dvh;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;
    -webkit-overflow-scrolling:touch;background:#f6f7f5;color:#102026;
}
.ddf-native-showcase-overlay .ddf-showcase-page{
    width:100%!important;max-width:none!important;margin:0!important;min-height:100dvh;overflow:visible;
}
.ddf-native-showcase-overlay .ddf-showcase-sitebar{top:0}

/* Header: one clean identity treatment. The portrait and the site's own logo belong together, not as an association pair. */
.ddf-showcase-presenter{gap:12px}
.ddf-showcase-presenter-logo{margin-left:5px;padding-left:12px;border-left:1px solid #d9e1e4}
.ddf-showcase-presenter-copy small{color:#76572f!important}
.ddf-showcase-primary-action,.ddf-showcase-scroll-cue,.ddf-showcase-photo-button,.ddf-showcase-home-close{appearance:none;-webkit-appearance:none;font-family:Ubuntu,Arial,sans-serif;cursor:pointer}
.ddf-showcase-primary-action{border:0}
.ddf-showcase-home-close{padding:0}

/* Hero controls must never inherit the standard gallery-all absolute positioning. */
.ddf-showcase-hero-actions{flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;max-width:460px}
.ddf-showcase-photo-button,.ddf-showcase-scroll-cue{position:static!important;inset:auto!important;transform:none!important;margin:0!important;white-space:nowrap}
.ddf-showcase-photo-button{order:1}
.ddf-showcase-scroll-cue{order:2}
.ddf-showcase-scroll-cue{border:1px solid rgba(255,255,255,.38);background:rgba(8,23,30,.58)}
.ddf-showcase-scroll-cue:hover{background:rgba(8,23,30,.78)}
.ddf-showcase-photo-button:hover{background:#fff}

/* Readability: avoid low-contrast customer colours as text on white or dark panels. */
.ddf-showcase-section-heading>p,
.ddf-showcase-section-heading.compact>p,
.ddf-showcase-story .ddf-showcase-eyebrow{color:#7a5d37!important}
.ddf-showcase-hero .ddf-showcase-eyebrow{color:#eef5f3!important}
.ddf-showcase-section-heading>span{color:#60727a!important}
.ddf-showcase-highlight-panel{background:#17262c!important;color:#fff!important}
.ddf-showcase-highlight-panel>small{color:#d2dfdb!important}
.ddf-showcase-highlight-panel .ddf-showcase-highlight-grid article{background:rgba(255,255,255,.075)!important;border-color:rgba(255,255,255,.11)!important}
.ddf-showcase-highlight-panel .ddf-showcase-highlight-grid article span{color:#c7d3d0!important}
.ddf-showcase-highlight-panel .ddf-showcase-highlight-grid article strong{color:#fff!important}
.ddf-showcase-highlight-panel .ddf-showcase-highlight-grid article p{color:#d7e0e2!important}
.ddf-showcase-story-lead h2{font-size:clamp(38px,4.4vw,62px)!important;line-height:1.01!important;max-width:930px}
.ddf-showcase-story-lead>p:not(.ddf-showcase-eyebrow),.ddf-showcase-listing-remarks{color:#455b65!important}

/* Wider landing-page rhythm. */
.ddf-showcase-listed-section,.ddf-showcase-section,.ddf-showcase-story{width:min(1500px,calc(100% - 56px))!important}
.ddf-showcase-story{grid-template-columns:minmax(0,1.15fr) minmax(390px,.85fr);gap:44px}
.ddf-showcase-contact-band{width:min(1450px,calc(100% - 56px))}
.ddf-showcase-section-heading h2{max-width:1000px}

/* Market context should read like a useful module, not end with a loose text link. */
.ddf-showcase-market-section{padding:34px!important}
.ddf-showcase-market-grid{gap:16px!important}
.ddf-showcase-market-bonus{
    display:flex!important;flex-direction:column;justify-content:center;min-height:250px;padding:24px!important;
    background:linear-gradient(145deg,#13292c 0%,#173e38 100%)!important;border-color:#214940!important;color:#fff!important;
}
.ddf-showcase-market-bonus::before{background:#8fb9a9!important}
.ddf-showcase-market-bonus small{font-size:10px;text-transform:uppercase;letter-spacing:.085em;font-weight:800;color:#c5d9d2!important}
.ddf-showcase-market-bonus strong{margin-top:8px;font:700 25px/1.08 Ubuntu,Arial,sans-serif;color:#fff!important}
.ddf-showcase-market-bonus p{margin:10px 0 18px;color:#d4dfdc!important;line-height:1.55}
.ddf-showcase-market-bonus a{align-self:flex-start;display:inline-flex;align-items:center;gap:7px;min-height:42px;padding:0 15px;border-radius:999px;background:#fff;color:#15342e!important;font-weight:800}
.ddf-showcase-market-summary{margin-top:18px;padding:18px 20px;border-radius:17px;background:#f1f5f4;border:1px solid #dce6e2;display:flex;align-items:center;justify-content:space-between;gap:22px}
.ddf-showcase-market-summary>div{max-width:860px}
.ddf-showcase-market-summary strong{font:700 15px/1.3 Ubuntu,Arial,sans-serif;color:#18323b}
.ddf-showcase-market-summary p{margin:5px 0 0;font-size:12px;line-height:1.55;color:#60727a}
.ddf-showcase-market-summary .market-report-link,.ddf-showcase-market-section .market-report-link{
    flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:0 17px;border-radius:999px;
    background:#152a32!important;color:#fff!important;font:700 12px/1 Ubuntu,Arial,sans-serif;text-decoration:none!important;white-space:nowrap;
}
.ddf-showcase-market-summary .market-report-link:hover{background:#203d46!important}
.ddf-showcase-market-section .market-analysis-footer{margin-top:14px;padding-top:14px;border-top:1px solid #e1e8ea}
.ddf-showcase-market-section .market-analysis-footer>div{max-width:none}

/* Similar properties deserve the width of a landing page. */
.ddf-showcase-similar-section{width:min(1580px,calc(100% - 44px))!important}
.ddf-showcase-similar-section .similar-property-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:18px!important}
.ddf-showcase-similar-section .similar-property-card{min-width:0;border-radius:22px;overflow:hidden}
.ddf-showcase-similar-section .similar-property-media{min-height:300px}
.ddf-showcase-similar-section .similar-property-copy{padding:20px 22px 28px}

/* Full Feed footer row remains informational only. There is no Standard Details escape inside Showcase. */
.ddf-showcase-feed-bottom{justify-content:space-between;color:#6d7c83}
.ddf-showcase-feed-bottom>span{font-size:10px}

/* Compact, deliberate footer. */
.ddf-showcase-page-footer{margin-top:64px!important;padding:0!important;background:#101b20!important;color:#fff}
.ddf-showcase-footer-inner{width:min(1500px,calc(100% - 56px));min-height:112px;margin:0 auto;padding:24px 0;display:flex;align-items:center;justify-content:space-between;gap:38px}
.ddf-showcase-footer-property{display:flex;flex-direction:column;max-width:720px}
.ddf-showcase-footer-property strong{font:700 14px/1.35 Ubuntu,Arial,sans-serif;color:#fff}
.ddf-showcase-footer-property span{margin-top:5px;font-size:10px;line-height:1.55;color:#b8c6cb}
.ddf-showcase-footer-brand{max-width:650px;text-align:right!important;font:400 10px/1.55 Ubuntu,Arial,sans-serif;color:#d5dee1!important}
.ddf-showcase-footer-brand a{color:#fff!important;font-weight:700!important}
.ddf-showcase-footer-brand img{width:15px!important;height:15px!important}

@media (max-width:1100px){
    .ddf-showcase-story{grid-template-columns:1fr!important;gap:24px}
    .ddf-showcase-footer-inner{align-items:flex-start;flex-direction:column;gap:14px}
    .ddf-showcase-footer-brand{text-align:left!important}
    .ddf-showcase-market-summary{align-items:flex-start;flex-direction:column}
}
@media (max-width:760px){
    .ddf-showcase-presenter-logo{display:none!important}
    .ddf-showcase-hero-actions{width:100%;max-width:none;justify-content:space-between!important;gap:8px!important}
    .ddf-showcase-photo-button,.ddf-showcase-scroll-cue{flex:1 1 0;min-width:0!important;padding:0 10px!important}
    .ddf-showcase-listed-section,.ddf-showcase-section,.ddf-showcase-story,.ddf-showcase-contact-band{width:calc(100% - 20px)!important}
    .ddf-showcase-market-section{padding:17px!important}
    .ddf-showcase-market-bonus{min-height:190px}
    .ddf-showcase-similar-section{width:calc(100% - 20px)!important}
    .ddf-showcase-similar-section .similar-property-grid{grid-template-columns:1fr!important}
    .ddf-showcase-similar-section .similar-property-media{min-height:220px}
    .ddf-showcase-footer-inner{width:calc(100% - 36px);min-height:0;padding:22px 0}
}
/* DDF V1.21.2 SHOWCASE POLISH END */

/* DDF V1.21.3 SHOWCASE LAYOUT START */
/* DDF V1.21.3 SHOWCASE LAYOUT FINISH
   Wall-to-wall hero, bounded content rhythm, stable map, compact footer. */
.ddf-showcase-page{--ddf-showcase-content:1320px;--ddf-showcase-contact:1360px}

/* Hero is the one deliberate full-bleed section. */
.ddf-showcase-hero{width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important}
.ddf-showcase-hero-content{width:min(var(--ddf-showcase-content),calc(100% - 64px))!important}

/* All content below the hero is slightly calmer and aligned. */
.ddf-showcase-sitebar-inner{width:min(var(--ddf-showcase-contact),calc(100% - 56px))!important}
.ddf-showcase-contact-band{width:min(var(--ddf-showcase-contact),calc(100% - 56px))!important}
.ddf-showcase-listed-section,.ddf-showcase-section,.ddf-showcase-story{width:min(var(--ddf-showcase-content),calc(100% - 56px))!important}
.ddf-showcase-story{gap:38px!important}

/* Keep Leaflet below the sticky Showcase header, and give it a stable paint box. */
.ddf-showcase-sitebar{z-index:5000!important}
.ddf-showcase-location-section{position:relative;z-index:1}
.ddf-showcase-location-section .listing-map{
    position:relative!important;z-index:1!important;isolation:isolate;contain:paint;
    width:100%!important;height:460px!important;min-height:460px!important;
    background:#e6ecee!important;border-radius:22px!important;overflow:hidden!important;
}
.ddf-showcase-location-section .leaflet-container{position:relative!important;z-index:0!important}
.ddf-showcase-location-section .leaflet-control-container{position:relative;z-index:2}

/* The odd-card Market Report helper should look like part of the analysis, not a giant banner. */
.ddf-showcase-market-bonus{
    min-height:0!important;padding:22px!important;justify-content:flex-start!important;
    background:linear-gradient(145deg,#f8faf9 0%,#eef4f1 100%)!important;
    border:1px solid #d7e4df!important;color:#18323b!important;
    box-shadow:0 8px 24px rgba(18,42,50,.045)!important;
}
.ddf-showcase-market-bonus::before{background:#8eaa9f!important}
.ddf-showcase-market-bonus small{color:#7a5d37!important}
.ddf-showcase-market-bonus strong{color:#18323b!important;font-size:22px!important;line-height:1.13!important}
.ddf-showcase-market-bonus p{color:#60727a!important;margin:9px 0 16px!important;max-width:560px}
.ddf-showcase-market-bonus a{background:#17323b!important;color:#fff!important;box-shadow:none!important}
.ddf-showcase-market-bonus a:hover{background:#23434d!important}

/* Similar Properties deliberately do not belong in the Listing Showcase. */
.ddf-showcase-similar-section{display:none!important}

/* Compact footer: one clean brand line. */
.ddf-showcase-page-footer{
    margin-top:56px!important;padding:0!important;background:#fff!important;color:#111!important;
    border-top:1px solid #dce4e6!important;font-family:Ubuntu,Arial,sans-serif!important;
}
.ddf-showcase-footer-inner{
    width:min(var(--ddf-showcase-contact),calc(100% - 56px))!important;min-height:72px!important;
    margin:0 auto!important;padding:16px 0!important;display:flex!important;align-items:center!important;justify-content:center!important;
}
.ddf-showcase-footer-credit{
    display:flex!important;align-items:center!important;justify-content:center!important;flex-wrap:wrap!important;gap:5px!important;
    text-align:center!important;font:400 11px/1.45 Ubuntu,Arial,sans-serif!important;color:#111!important;
}
.ddf-showcase-footer-credit a{color:#111!important;font-weight:700!important;text-decoration:none!important}
.ddf-showcase-footer-credit .ddf-showcase-footer-realtysuite{display:inline-flex!important;align-items:center!important;gap:5px!important}
.ddf-showcase-footer-credit img{width:18px!important;height:18px!important;object-fit:contain!important;display:inline-block!important}

@media (max-width:760px){
    .ddf-showcase-hero-content{width:calc(100% - 28px)!important}
    .ddf-showcase-sitebar-inner{width:calc(100% - 20px)!important}
    .ddf-showcase-contact-band,.ddf-showcase-listed-section,.ddf-showcase-section,.ddf-showcase-story{width:calc(100% - 20px)!important}
    .ddf-showcase-location-section .listing-map{height:340px!important;min-height:340px!important;border-radius:17px!important}
    .ddf-showcase-footer-inner{width:calc(100% - 36px)!important;min-height:0!important;padding:16px 0!important}
    .ddf-showcase-footer-credit{font-size:10px!important}
}
/* DDF V1.21.3 SHOWCASE LAYOUT END */

/* DDF V1.21.4 SHOWCASE FOOTER ALIGNMENT START */
/* DDF V1.21.4 SHOWCASE FOOTER + WIDTH ALIGNMENT
   Match contact/header width to the main Landing Page container and refine the compact footer. */
.ddf-showcase-page{
    --ddf-showcase-contact:var(--ddf-showcase-content)!important;
}

.ddf-showcase-sitebar-inner,
.ddf-showcase-contact-band{
    width:min(var(--ddf-showcase-content),calc(100% - 56px))!important;
}

.ddf-showcase-footer-inner{
    width:min(var(--ddf-showcase-content),calc(100% - 56px))!important;
}

.ddf-showcase-page-footer span {
    font: 400 11px/1.5 Inter,system-ui,sans-serif;
    color: #000000;
    margin-top: 5px;
}

.ddf-showcase-footer-credit {
    display: flex!important;
    align-items: end;
    justify-content: center!important;
    flex-wrap: wrap!important;
    gap: 5px!important;
    text-align: center!important;
    font: 400 11px/1.45 Ubuntu,Arial,sans-serif!important;
    color: #111!important;
}

@media (max-width:760px){
    .ddf-showcase-sitebar-inner,
    .ddf-showcase-contact-band{
        width:calc(100% - 20px)!important;
    }
    .ddf-showcase-footer-inner{
        width:calc(100% - 36px)!important;
    }
}
/* DDF V1.21.4 SHOWCASE FOOTER ALIGNMENT END */

/* DDF V1.21.6 SHOWCASE MARKET FOOTER START */
/* DDF V1.21.6 SHOWCASE MARKET-REPORT FOOTER
   Reuse the compact Market Report credit treatment inside Listing Showcase. */
.ddf-showcase-page-footer{
    margin-top:28px!important;
    padding:0!important;
    background:transparent!important;
    border:0!important;
    box-shadow:none!important;
    font-family:"Ubuntu",Arial,sans-serif!important;
}
.ddf-showcase-footer-inner{
    width:min(var(--ddf-showcase-content),calc(100% - 56px))!important;
    min-height:0!important;
    margin:0 auto!important;
    padding:20px 4px 28px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:flex-end!important;
}
.ddf-showcase-footer-credit{
    display:flex!important;
    align-items:center!important;
    gap:0 4px!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    text-align:right!important;
    color:#000!important;
    font:400 12px/1.5 "Ubuntu",Arial,sans-serif!important;
}
.ddf-showcase-footer-credit span{
    margin:0!important;
    color:inherit!important;
    font:inherit!important;
}
.ddf-showcase-footer-credit a{
    color:#000!important;
    text-decoration:none!important;
    font-weight:400!important;
}
.ddf-showcase-footer-credit>a:first-of-type{
    display:inline-flex!important;
    align-items:center!important;
    gap:5px!important;
    font-weight:500!important;
}
.ddf-showcase-footer-credit img{
    width:22px!important;
    height:17px!important;
    margin:0!important;
    object-fit:contain!important;
    display:inline-block!important;
    vertical-align:middle!important;
}
@media(max-width:700px){
    .ddf-showcase-footer-inner{
        width:min(100% - 20px,var(--ddf-showcase-content))!important;
        padding:18px 4px 24px!important;
        justify-content:flex-start!important;
    }
    .ddf-showcase-footer-credit{
        justify-content:flex-start!important;
        text-align:left!important;
        font-size:11px!important;
    }
}
/* DDF V1.21.6 SHOWCASE MARKET FOOTER END */
