@media(max-width:900px){
 html:not([data-m="menu"]) body.page.app[data-v="search"] .app-mbar{position:fixed;top:var(--phone-notice-height,30px);left:0;right:0;margin:0;box-sizing:border-box;padding:6px 8px;gap:4px}
 html body.page.app[data-v="search"] .app-mbar [data-sheet-toggle]{display:block!important;position:static;min-width:64px;width:auto;padding:4px 12px;flex:none}
 html body.page.app[data-v="search"] .app-mbar [data-sheet-toggle]>span{display:none}
 html body.page.app[data-v="search"] .app-mbar [data-sheet-toggle]::after{content:attr(data-phone-toggle-label)}
 html:not([data-m="menu"]) body.page.app[data-v="search"][data-phone-search-pane] .layout[data-view]:not(.app-off){top:var(--phone-search-top,90px)!important;grid-template-rows:minmax(0,1fr)!important}
 html body.page.app[data-v="search"][data-phone-search-pane="map"] .layout>.results{display:none!important}
 html body.page.app[data-v="search"][data-phone-search-pane="map"] .layout>.mapwrap{display:block!important}
 html body.page.app[data-v="search"]:is([data-phone-search-pane="results"],[data-phone-search-pane="search"]) .layout>.mapwrap{display:block!important;visibility:hidden;pointer-events:none;position:absolute;inset:0;width:100%;height:100%}
 /* v23r5: "there should always be an option to search properties": the search box stays at the top of the home cards */
 html body.page.app[data-v="search"][data-phone-search-pane="results"] .listsearch{display:flex!important;flex-wrap:nowrap;padding:0 0 6px!important}
 html body.page.app[data-v="search"][data-phone-search-pane="results"] .listsearch .mls{display:none!important}
 html body.page.app[data-v="search"][data-phone-search-pane="search"] [data-cards]{display:none!important}
 html body.page.app[data-v="search"][data-phone-search-pane="results"] .count{margin:0 0 3px;line-height:1.2;font-size:13px}
 html body.page.app[data-v="search"][data-phone-search-pane="results"] .snapdate{margin:0 0 3px;line-height:1.2;font-size:12px}
 html body.page.app[data-v="search"][data-brand-six-fit] [data-cards]>.card>.card-open>:is(img,.nophoto){height:48px!important;flex-basis:48px;min-height:48px!important}
}

@media(max-width:900px){
html body.page.app[data-v="search"] .app-mbar :is([data-page-prev],[data-page-next]){font-size:0;min-width:44px;padding:4px;flex:none}
html body.page.app[data-v="search"] .app-mbar [data-page-prev]::after{content:'‹';font-size:24px}
html body.page.app[data-v="search"] .app-mbar [data-page-next]::after{content:'›';font-size:24px}
html body.page.app[data-v="search"] .app-mbar :is([data-page-prev],[data-page-next])[hidden]{display:none!important}
html body.page.app[data-v="search"][data-phone-search-pane] [data-pager]{display:none!important}
}
/* v18 "thicker lines, more modern, not like a PDF" + standing rule: no hairlines; 3px site-color border on every box, field, card and tile */
html body.page :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select,textarea){border:3px solid #512888!important;border-radius:12px!important;padding:.65rem .85rem!important;min-height:48px;background:#fff!important;color:#1d2a24!important;font:inherit;font-size:1rem!important;box-shadow:0 2px 6px rgba(81,40,136,.12)!important;transition:box-shadow .15s,border-color .15s}
html body.page :is(input:not([type=checkbox]):not([type=radio]),select,textarea):focus{outline:none!important;border-color:#3d1d68!important;box-shadow:0 0 0 3px #f2b705,0 0 0 5px #1d2a24,0 2px 6px rgba(81,40,136,.18)!important}/* r5i6: solid ring, readable on white */
html body.page :is(input[type=checkbox],input[type=radio]){width:22px;height:22px;accent-color:#512888}
html body.page .leadform{border:3px solid #512888!important;border-radius:16px!important;padding:1.2rem!important;background:#fff;box-shadow:0 6px 18px rgba(81,40,136,.12)}
html body.page .leadform label>span:first-child,html body.page .leadform label{font-weight:800;color:#512888}
html body.page .leadform button[type=submit],html body.page .leadform .lf-wide[type=submit]{border:3px solid #512888!important;border-radius:999px!important;background:#512888!important;color:#fff!important;font-weight:800;min-height:52px;padding:.7rem 1.4rem!important}
html body.page :is(.panel,.lfcard,.contactcard){border:3px solid #512888!important;border-radius:16px!important;box-shadow:0 6px 18px rgba(81,40,136,.10)}
html body.page.app .brand-home,html body.page.app .recovery-map-imagery-note{border-width:3px!important}
html body.page :is(.panel,.lfcard,.contactcard) .leadform{border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}
/* v19: the results Previous/Next buttons live in the phone bar only on the search screen; on Market and other pages they pushed Home 7px off a 390 phone */
html body.page.app:not([data-v="search"]) .app-mbar :is([data-page-prev],[data-page-next]){display:none!important}

/* v23r5: search box on every phone page that is not the listings (phone-home.js adds it). Computers never show it. */
.phs{display:none}
@media(max-width:900px){
 html body.page .phs{display:flex;gap:6px;align-items:stretch;margin:0 0 12px;max-width:100%;box-sizing:border-box}
 html body.page .phs input{flex:1 1 auto;min-width:0;width:auto}
 html body.page #just-listed form.phs{margin-left:9px;margin-right:9px}   /* v23r5b: Just listed sits 9px wider each side than the other pages; same edges as Market */
 html body.page .phs button{flex:none;min-height:48px;padding:0 16px;border:3px solid #512888;border-radius:999px;background:#512888;color:#fff;font:inherit;font-weight:800}
}

/* v23r5c (photo 513): on PHONES the 7 photo boxes come off the photo and sit in the black bands: top row Previous photo,
 Next photo, Zoom photo; bottom row See More, Listing, Nearby, Neighborhood. Every home's photo card uses this gallery. Computers unchanged.
 The two wrappers have no role, so display:contents only regroups the boxes; the two tab lists stay real boxes (their role is kept). */
@media(max-width:900px){
 html body.page.app .detail .fullgallery{display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:48px minmax(0,1fr) 48px;align-items:stretch;gap:6px;padding:6px;background:#111;box-sizing:border-box}
 html body.page.app .detail .fullgallery>.photo-stage{grid-column:1/13;grid-row:2;min-height:0}
 html body.page.app .detail .fullgallery .photo-controls,html body.page.app .detail .fullgallery .photo-controls>.ctl-side{display:contents!important}
 html body.page.app .detail .fullgallery .photo-controls .photo-prev{grid-column:1/5;grid-row:1}
 html body.page.app .detail .fullgallery .photo-controls .photo-next{grid-column:5/9;grid-row:1}
 html body.page.app .detail .fullgallery .photo-controls .photo-zoom{grid-column:9/13;grid-row:1}
 html body.page.app .detail .fullgallery .photo-controls .tabcol-left{grid-column:1/7;grid-row:3}
 html body.page.app .detail .fullgallery .photo-controls .tabcol-right{grid-column:7/13;grid-row:3}
 html body.page.app .detail .fullgallery .photo-controls .tabcol{display:flex!important;flex-direction:row!important;flex-wrap:nowrap!important;align-items:stretch!important;height:48px;gap:6px;position:static!important;transform:none!important;margin:0!important;padding:0!important;min-width:0}
 html body.page.app .detail .fullgallery .photo-controls :is(.photo-prev,.photo-next,.photo-zoom),html body.page.app .detail .fullgallery .photo-controls .tabcol>button{position:static!important;transform:none!important;margin:0!important;width:auto!important;max-width:none!important;min-width:0!important;min-height:48px!important;height:48px!important;max-height:48px!important;flex:1 1 0;box-sizing:border-box;padding:4px 4px!important;font-size:13px!important;line-height:1.15!important;white-space:normal!important;letter-spacing:0!important;pointer-events:auto}
}
/* v23r5c ( hit-test, (3)): while a home's details are open on a phone, the details (a modal dialog with its own 'Back to map' and close
 buttons) cover the top bar, so a tap on Back, Map, the page buttons or Home hit the details banner. The covered top bar is hidden while the
 details are open; it comes back when they close. */
@media(max-width:900px){html body.page.app:has(article.detail:not([hidden]))>.app-mbar{display:none!important}}
/* phones up to 520 px wide: "Neighborhood" must fit its quarter-width box with room each side; all 7 boxes use the same smaller text so they still match */
@media(max-width:520px){html body.page.app .detail .fullgallery .photo-controls :is(.photo-prev,.photo-next,.photo-zoom),html body.page.app .detail .fullgallery .photo-controls .tabcol>button{font-size:11px!important;padding:2px!important}
 html body.page.app .detail .fullgallery .photo-controls .tabcol{gap:4px}}

/* v23r5e: phone full-screen photo (phone-home.js). Black, whole photo (contain), Close on top, Previous / Next at the bottom,
 all 48 px. The photo area allows a two-finger pinch. */
.tdj-zv[hidden]{display:none!important}
.tdj-zv{position:fixed;inset:0;z-index:2147483000;background:#000;display:flex;flex-direction:column;color:#fff}
.tdj-zv-top,.tdj-zv-bot{flex:none;display:flex;align-items:center;gap:8px;padding:8px calc(8px + env(safe-area-inset-right)) 8px calc(8px + env(safe-area-inset-left))}
.tdj-zv-top{justify-content:space-between;padding-top:calc(8px + env(safe-area-inset-top))}
.tdj-zv-bot{padding-bottom:calc(8px + env(safe-area-inset-bottom))}
.tdj-zv-count{font-weight:700;font-size:15px}
.tdj-zv button{min-height:48px;min-width:48px;padding:0 16px;border:3px solid #fff;border-radius:999px;background:#512888;color:#fff;font:inherit;font-weight:800;font-size:15px;cursor:pointer}
.tdj-zv-bot button{flex:1 1 0}
.tdj-zv button:disabled{opacity:.45;cursor:default}
.tdj-zv-area,.tdj-zv-area .tdj-zv-img{touch-action:pinch-zoom pan-x pan-y!important}
.tdj-zv-area{flex:1 1 auto;min-height:0;display:flex;align-items:center;justify-content:center;overflow:auto}
.tdj-zv-img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
html[data-zv],html[data-zv] body{overflow:hidden!important}
/* v23r5e: on phones the 4 menu choices that wait for their data (Just listed, Buyer index, Market, Neighborhoods) show
 at once with the others; their page says it is loading until the data is ready. */
@media(max-width:900px){
 html body.page.app:not([data-jl-ready]) nav.apprail li:has(>a[href="#just-listed"]),html body.page.app:not([data-boi-ready]) nav.apprail li:has(>a[href="#buyer-index"]),html body.page.app:not([data-market-ready]) nav.apprail li:has(>a[href="#market"]),html body.page.app:not([data-nb-ready]) nav.apprail li:has(>a[href="#neighborhoods"]){visibility:visible!important}
 html body.page.app:not([data-jl-ready]) a[href="#just-listed"],html body.page.app:not([data-boi-ready]) a[href="#buyer-index"],html body.page.app:not([data-market-ready]) a[href="#market"],html body.page.app:not([data-nb-ready]) a[href="#neighborhoods"]{visibility:visible!important}
 html body.page.app:not([data-jl-ready]) #just-listed::before,html body.page.app:not([data-boi-ready]) #buyer-index::before,html body.page.app:not([data-market-ready]) #market::before,html body.page.app:not([data-nb-ready]) #neighborhoods::before{content:"Loading the listings for this page…";display:block;margin:12px 16px;padding:12px 14px;border:3px solid #512888;border-radius:12px;font-weight:800;color:#512888;background:#fff}
}
/* v23r5e: the footer links (IDX disclosures, Privacy Policy) are 44 px tall tap targets, like the IDX disclosures pin */
html body.page .footnav a{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box}
/* v23r5f: the footer call link is a 44 px tall tap target too */
html body.page footer a[href^="tel:"]{display:inline-flex;align-items:center;min-height:44px;box-sizing:border-box}

/* v23u30 (Blake #5): phone map view fills the space between the notice row and the bottom bar (it was a 380px box with gaps above and below). Bottom bar is about 116px tall, notice row about 117px from the top. */
@media(max-width:900px){
 html:not([data-m="menu"]) body.page.app[data-v="search"][data-phone-search-pane="map"] .layout[data-view]:not(.app-off){top:0!important;height:calc(100dvh - 226px)!important;min-height:0!important;grid-template-rows:minmax(0,1fr)!important}
 html:not([data-m="menu"]) body.page.app[data-v="search"][data-phone-search-pane="map"] .layout>.mapwrap{height:100%!important;min-height:0!important;max-height:none!important}
}

/* v23u35 (Blake #12): Buyer Opportunity Index and Market charts said their intro twice (hero line + definition line): keep the definition line (it adds the how-to). Just listed on phones had two search boxes: keep the Just listed one (it filters that list); the page-wide phone box stays on every other view. */
html body.page [data-view="buyer-index"] .hero .sub,html body.page [data-view="market"] .hero .sub{display:none}
@media(max-width:900px){html body.page #just-listed form.phs{display:none!important}}

/* v23u36 (Blake #13): on phones a view opened from the menu was focused with the page scrolled ~119px (the notice row above it), so its first line sat under the fixed top bar. scroll-margin makes the focus scroll land at the very top. */
@media(max-width:900px){html body.page [data-view]{scroll-margin-top:140px}}
