/* REH_LISTINGS_FULLSCREEN_V1 */
#reh-v2-app .reh-listings-expand{display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 auto;gap:6px;box-sizing:border-box;min-height:44px;padding:8px 12px!important;margin:0;border:1px solid var(--dui-line,var(--line,#ccd5d0))!important;border-radius:10px!important;background:var(--dui-bg,var(--reh-panel,#fff))!important;color:var(--dui-ink,var(--ink,#18334b))!important;font:inherit;font-size:12px;font-weight:650;line-height:1.2;white-space:nowrap;cursor:pointer}
#reh-v2-app .reh-listings-expand:focus-visible{outline:3px solid #168a68;outline-offset:2px}
#reh-v2-app .dui-result-toolbar:has(>.reh-listings-expand),#reh-v2-app .result-toolbar:has(>.reh-listings-expand){flex-wrap:wrap!important;height:auto!important;gap:8px!important}
body.reh-listings-expanded #reh-v2-app .discovery-page{position:fixed!important;inset:0!important;z-index:70!important;display:flex!important;flex-direction:column!important;width:100%!important;height:100vh!important;height:100dvh!important;min-height:0!important;max-height:100dvh!important;margin:0!important;padding-top:env(safe-area-inset-top);background:var(--dui-bg,var(--reh-bg,#fff));overflow:hidden!important}
body.reh-listings-expanded #reh-v2-app .discovery-page>:is(.dui-search-section,.search-section,.category-shell,.dui-result-toolbar,.result-toolbar,.status-banner){flex:0 0 auto!important;min-width:0;max-width:100%;box-sizing:border-box}
body.reh-listings-expanded #reh-v2-app .discovery-page .workspace{display:block!important;position:relative!important;flex:1 1 0!important;min-height:100px!important;height:auto!important;width:100%!important;max-width:none!important;overflow:hidden!important;grid-template-columns:1fr!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .workspace .map-pane{display:none!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .workspace .list-pane{display:block!important;position:absolute!important;inset:0!important;box-sizing:border-box;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:none!important;flex:none!important;border:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding-bottom:env(safe-area-inset-bottom)}
body.reh-listings-expanded #reh-v2-app .discovery-page .property-list{width:100%!important;max-width:none!important;box-sizing:border-box}
body.reh-listings-expanded #reh-v2-app .discovery-page :is(.property-grid,.skeleton-grid){display:grid!important;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr))!important;gap:20px!important;align-items:start!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .property-card{min-width:0!important;width:100%!important;max-width:none!important}
html[data-reh-theme="dark"] #reh-v2-app .reh-listings-expand{background:var(--dui-bg,#202827)!important;color:var(--dui-ink,#f1f5f2)!important}
html[data-reh-theme="dark"] body.reh-listings-expanded #reh-v2-app .discovery-page{background:var(--dui-bg,#171d1e)}
@media(max-width:600px){#reh-v2-app .reh-listings-expand{font-size:11px;padding-inline:10px!important}body.reh-listings-expanded #reh-v2-app .discovery-page :is(.property-grid,.skeleton-grid){grid-template-columns:minmax(0,1fr)!important;gap:18px!important}}
@media(max-height:500px){body.reh-listings-expanded #reh-v2-app .discovery-page{overflow-y:auto!important}body.reh-listings-expanded #reh-v2-app .discovery-page .workspace{flex:none!important;height:70dvh!important;min-height:240px!important}}

/* The native Map/List toggle is the sole view control at mobile/tablet widths. */
#reh-v2-app .reh-listings-expand[hidden]{display:none!important}
@media(max-width:1180px){#reh-v2-app .reh-listings-expand{display:none!important}}

/* REH_EXPANDED_LISTINGS_PAGES_V2 */
body.reh-listings-expanded #reh-v2-app .discovery-page .property-list{padding:20px!important;margin:0!important;overflow:visible!important;overflow-anchor:none!important}
body.reh-listings-expanded #reh-v2-app .discovery-page :is(.property-grid,.skeleton-grid){grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-auto-rows:1fr!important;align-items:stretch!important;gap:20px!important;width:100%!important;max-width:1840px!important;margin-inline:auto!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .property-card{display:flex!important;flex-direction:column!important;height:100%!important;align-self:stretch!important;box-sizing:border-box}
body.reh-listings-expanded #reh-v2-app .discovery-page .card-media{height:auto!important;aspect-ratio:16/10!important;flex:0 0 auto!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .card-copy{display:flex!important;flex-direction:column!important;flex:1 1 auto!important;min-height:0!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .card-management{margin-top:auto!important;padding-top:16px}
.reh-listings-pagination{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;max-width:1840px;margin:24px auto 4px;padding:20px 0;border-top:1px solid var(--dui-line,var(--line,#dce3de));color:var(--dui-ink,var(--ink,#18334b))}
.reh-listings-pagination p{margin:0;font-size:13px}.reh-listings-page-buttons{display:flex;gap:6px;align-items:center;flex-wrap:wrap}
#reh-v2-app .reh-listings-pagination button,#reh-v2-app .reh-expanded-page-error button{min-width:44px;min-height:44px;padding:8px 12px;border-radius:10px;border:1px solid var(--dui-line,var(--line,#dce3de));background:var(--dui-bg,#fff);color:inherit;font:inherit;cursor:pointer}
#reh-v2-app .reh-listings-pagination button[aria-current="page"]{background:#102e4b;color:#fff;border-color:#102e4b;font-weight:700}
#reh-v2-app .reh-listings-pagination button:disabled{opacity:.45;cursor:default}#reh-v2-app .reh-listings-pagination button:focus-visible{outline:3px solid #168a68;outline-offset:2px}
.reh-expanded-page-error{padding:16px;border:1px solid #ad665c;border-radius:12px;margin:0 0 20px}
html[data-reh-theme="dark"] #reh-v2-app .reh-listings-pagination button{background:var(--dui-bg,#202827);color:#f1f5f2}html[data-reh-theme="dark"] #reh-v2-app .reh-listings-pagination button[aria-current="page"]{background:#1a8b70;color:#fff}
@media(min-width:1181px) and (max-width:1439px){body.reh-listings-expanded #reh-v2-app .discovery-page :is(.property-grid,.skeleton-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important}}
body.reh-listings-expanded #reh-v2-app .discovery-page .property-card{align-items:stretch!important;text-align:left!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .card-copy{width:100%!important;box-sizing:border-box!important;align-items:stretch!important;text-align:left!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .card-address-row{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:12px!important;min-height:48px!important;width:100%!important;text-align:left!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .card-address-row h3{min-width:0!important;flex:1 1 auto!important;margin:0!important;text-align:left!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .card-address-row .map-pin{flex:0 0 40px!important;width:40px!important;margin:0!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .price-row{text-align:left!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .spec-row{justify-content:flex-start!important}

/* REH_EXPANDED_LAYOUT_V21: late-mounted bulk controls remain above cards. */
body.reh-listings-expanded #reh-v2-app .discovery-page .workspace .list-pane{display:flex!important;flex-direction:column!important;align-items:stretch!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .list-pane>.reh-bulk-bar{order:-1!important;flex:0 0 auto!important;position:sticky!important;top:0!important;bottom:auto!important;z-index:30!important;margin:12px 20px 0!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .list-pane>.property-list{order:0!important;flex:0 0 auto!important;height:auto!important;min-height:0!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .reh-listings-pagination{position:sticky!important;bottom:0!important;z-index:20!important;box-sizing:border-box!important;min-height:80px!important;margin-bottom:0!important;padding:16px!important;background:var(--dui-bg,var(--reh-bg,#fff))!important;box-shadow:0 -4px 16px rgba(0,0,0,.12)}
html[data-reh-theme="dark"] body.reh-listings-expanded #reh-v2-app .discovery-page .reh-listings-pagination{background:var(--dui-bg,#202827)!important}

/* REH_EXPANDED_LAYOUT_V22: controls occupy normal document flow. */
body.reh-listings-expanded #reh-v2-app .discovery-page .list-pane>.reh-bulk-bar{position:static!important;top:auto!important;bottom:auto!important;z-index:auto!important}
body.reh-listings-expanded #reh-v2-app .discovery-page .reh-listings-pagination{position:static!important;top:auto!important;bottom:auto!important;z-index:auto!important;box-shadow:none!important}
