/* REH_SEARCH_MOBILE_V1 — shared discovery layout for Agent.host and public REH. */
.dui-surrounding{display:flex;align-items:center;gap:10px;min-height:48px;margin:0 0 16px;font-size:14px;cursor:pointer}
.dui-surrounding input{flex:none;width:20px;height:20px;accent-color:#09875c}
.dui-surrounding:has(input:disabled){opacity:.6;cursor:default}
.reh-virtual-spacer{width:100%;pointer-events:none;contain:size layout}
@media(max-width:1180px){
  html:has(body[data-reh-discovery-site]){height:100%!important;min-height:0!important;overflow:hidden!important}
  body[data-reh-discovery-site]{height:var(--reh-usable-height,100dvh)!important;min-height:0!important;margin:0;overflow:hidden!important;overscroll-behavior:none}
  body[data-reh-discovery-site] #reh-v2-app{height:100%!important;min-height:0!important;max-height:100%!important;overflow:hidden!important}
  body[data-reh-discovery-site] #reh-v2-app .app-shell{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  body[data-reh-discovery-site] #reh-v2-app .top-nav{flex:0 0 auto!important;padding-top:max(4px,env(safe-area-inset-top))!important}
  body[data-reh-discovery-site] #reh-v2-app .discovery-page{flex:1 1 auto!important;min-height:0!important;height:auto!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
  #reh-v2-app .discovery-page>:is(.dui-search-section,.category-shell,.dui-result-toolbar,.status-banner){flex:0 0 auto!important}
  body[data-reh-discovery-site] #reh-v2-app .workspace{flex:1 1 0!important;min-height:150px!important;height:auto!important;display:block!important;overflow:hidden!important;position:relative!important}
  body[data-reh-discovery-site] #reh-v2-app .workspace.mobile-list .list-pane{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;overflow-x:hidden!important;overflow-y:auto!important;overscroll-behavior:contain;scroll-behavior:auto!important;-webkit-overflow-scrolling:touch}
  body[data-reh-discovery-site] #reh-v2-app .workspace.mobile-map .map-pane{display:block!important;position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;margin:0!important;border:0!important;border-radius:0!important;overflow:hidden!important}
  body[data-reh-discovery-site] #reh-v2-app .workspace.mobile-map .list-pane,body[data-reh-discovery-site] #reh-v2-app .workspace.mobile-list .map-pane{display:none!important}
  #reh-v2-app .map-pane .map-wrap,#reh-v2-app .map-pane .map-canvas{height:100%!important;min-height:0!important}
  #reh-v2-app .property-list{padding-bottom:max(24px,env(safe-area-inset-bottom))!important}
  #reh-v2-app .reh-virtual-list .property-card{content-visibility:visible!important;contain-intrinsic-size:none!important}
  #reh-v2-app .dui-result-toolbar{min-height:48px!important;padding-top:0!important;padding-bottom:4px!important;gap:6px!important}
  #reh-v2-app .dui-result-toolbar>strong{font-size:12px!important}
  #reh-v2-app .dui-result-toolbar .dui-view-switch{flex:none}
  #reh-v2-app .dui-view-switch button{min-height:44px!important;min-width:48px!important}
  #reh-v2-app .category-shell{padding-bottom:4px!important}
  #reh-v2-app .category-shell>.category-mode{min-height:34px!important;height:34px!important;margin-bottom:4px!important}
  #reh-v2-app .category-mode button{min-height:34px!important;height:34px!important}
  #reh-v2-app .category-unified-rail{height:auto!important;min-height:0!important;touch-action:pan-x;overscroll-behavior-x:contain}
  #reh-v2-app .category-unified-rail .category-chip{min-height:66px!important;height:66px!important;width:78px!important;min-width:78px!important;max-width:78px!important;flex-basis:78px!important;padding:8px 3px 4px!important;gap:3px!important}
  #reh-v2-app .category-unified-rail .category-count{top:2px!important;right:2px!important;min-width:18px!important;height:18px!important;font-size:9px!important}
  #reh-v2-app .category-unified-rail .priority-number{top:2px!important;left:2px!important;right:auto!important;min-width:18px!important;height:18px!important;font-size:9px!important}
  #reh-v2-app .dui-search-section{padding-top:8px!important}
  #reh-v2-app .dui-search-form{gap:6px!important}
  #reh-v2-app .dui-location .reh-location-dropdown{max-height:min(260px,45dvh)!important;overflow-y:auto!important;overscroll-behavior:contain}
  #reh-v2-app dialog.dui-sheet{max-height:calc(var(--reh-usable-height,100dvh) - max(12px,env(safe-area-inset-top)))!important}
  #reh-v2-app .dui-sheet :is(input:not([type=checkbox]):not([type=radio]),select),#reh-v2-app .reh-smart-dialog :is(input:not([type=checkbox]):not([type=radio]),select){font-size:16px!important}
  #reh-v2-app .dui-sheet-body{scroll-padding-bottom:20px}
  #reh-v2-app .dui-sheet-foot{padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
  .reh-map-controls{right:max(10px,env(safe-area-inset-right))!important;top:max(10px,env(safe-area-inset-top))!important;gap:6px!important;max-height:calc(100% - 20px);overflow:auto;overscroll-behavior:contain;scrollbar-width:none}
  .reh-map-controls>button,.reh-map-zoom>button{min-width:44px!important;width:44px!important;min-height:44px!important;height:44px!important}
  .agent-full-area-search{bottom:max(30px,calc(env(safe-area-inset-bottom) + 20px))!important;min-height:44px!important;max-width:calc(100% - 80px)!important;white-space:normal!important;text-align:center}
  .agent-area-tool{left:max(8px,env(safe-area-inset-left))!important;right:62px!important;bottom:max(30px,calc(env(safe-area-inset-bottom) + 20px))!important;max-width:none!important;font-size:12px!important}
  .agent-area-tool button{min-height:44px!important}
  .agent-area-drawing{touch-action:none!important}
  #reh-v2-app .mobile-map-preview{display:none!important}
  .reh-map-card{max-width:calc(100% - 76px)!important;max-height:calc(100% - 30px)!important;overflow-y:auto!important;overscroll-behavior:contain}
  .reh-map-expanded{height:var(--reh-usable-height,100dvh)!important;max-height:var(--reh-usable-height,100dvh)!important;padding-bottom:env(safe-area-inset-bottom)}
  #reh-v2-app .property-card .card-copy{overflow-wrap:anywhere}
  #reh-v2-app .property-grid{align-items:start!important}
}
@media(min-width:700px) and (max-width:1180px){
  body[data-reh-discovery-site] #reh-v2-app .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #reh-v2-app .card-media{aspect-ratio:4/3!important}
  #reh-v2-app .dui-search-section,#reh-v2-app .category-shell,#reh-v2-app .dui-result-toolbar{padding-inline:16px!important}
}
@media(max-width:699px){
  body[data-reh-discovery-site] #reh-v2-app .property-grid{grid-template-columns:minmax(0,1fr)!important}
  #reh-v2-app .dui-search-form{grid-template-columns:minmax(0,1fr) 48px!important}
  #reh-v2-app .dui-market{grid-column:1/-1!important;grid-row:2!important;width:calc(46% - 4px)!important}
  #reh-v2-app .dui-filters{grid-column:1/-1!important;grid-row:2!important;margin-left:46%!important;width:calc(28% - 4px)!important}
  #reh-v2-app .dui-sort{grid-column:1/-1!important;grid-row:2!important;margin-left:74%!important;width:26%!important}
}
@media(max-width:1180px) and (max-height:540px){
  body[data-reh-discovery-site] #reh-v2-app .app-shell{overflow-y:auto!important}
  body[data-reh-discovery-site] #reh-v2-app .discovery-page{flex:none!important;overflow:visible!important}
  body[data-reh-discovery-site] #reh-v2-app .workspace{flex:none!important;height:max(260px,65dvh)!important;min-height:260px!important}
  #reh-v2-app .category-shell>.category-mode{min-height:30px!important;height:30px!important;margin-bottom:2px!important}
  #reh-v2-app .category-unified-rail .category-chip{height:60px!important;min-height:60px!important}
  .reh-map-controls{display:grid!important;grid-template-columns:44px 44px!important;gap:6px!important;max-height:calc(100% - 12px);overflow:auto}
  .reh-map-controls>.reh-map-zoom{grid-column:2;grid-row:1/3}
  .reh-map-controls>.agent-map-draw{grid-column:2;grid-row:3}
  .reh-map-controls>.agent-map-clear{grid-column:2;grid-row:4}
  .agent-area-tool{right:112px!important}
}
@media(prefers-reduced-motion:reduce){#reh-v2-app .list-pane{scroll-behavior:auto!important}}

@media(max-width:1180px) and (max-height:700px){.reh-map-controls{display:grid!important;grid-template-columns:44px 44px!important;gap:6px!important}.reh-map-controls>.reh-map-zoom{grid-column:2;grid-row:1/3}.reh-map-controls>.agent-map-draw{grid-column:2;grid-row:3}.reh-map-controls>.agent-map-clear{grid-column:2;grid-row:4}.agent-area-tool{right:112px!important}}

/* REH_MOBILE_CALM_UI_V1 — presentation only; controls retain their existing handlers. */
@media(max-width:1180px){
  html:has(body[data-reh-discovery-site]){--dui-bg:#f7f9f7;--dui-surface:#fff;--dui-raised:#edf1ee;--dui-ink:#202923;--dui-muted:#5c6860;--dui-line:#dce3de;--dui-accent:#087a55;--dui-active:#edf8f2}
  html[data-reh-theme="dark"]:has(body[data-reh-discovery-site]){--dui-bg:#191f1c;--dui-surface:#202723;--dui-raised:#303833;--dui-ink:#f4f6f4;--dui-muted:#bcc4be;--dui-line:#39423c;--dui-accent:#36d4a1;--dui-active:#21392e;color-scheme:dark}
  html[data-reh-theme="light"]:has(body[data-reh-discovery-site]){color-scheme:light}
  body[data-reh-discovery-site] #reh-v2-app{--dui-gutter:14px;--dui-photo-gutter:8px}
  body[data-reh-discovery-site] #reh-v2-app .top-nav{border-bottom:0!important;padding-inline:var(--dui-gutter)!important;gap:4px!important;grid-template-rows:48px!important}
  body[data-reh-discovery-site] #reh-v2-app .top-nav .account-avatar{width:36px!important;height:36px!important;font-weight:500!important}
  body[data-reh-discovery-site] #reh-v2-app .top-nav .ah-archived-listing-nav{background:transparent!important;border-color:transparent!important;color:var(--dui-muted)!important}

  /* One joined search field, followed by a quiet property-filter row. */
  body[data-reh-discovery-site] #reh-v2-app .dui-search-section{padding:8px var(--dui-gutter) 0!important;background:var(--dui-bg)!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-search-form{position:relative;grid-template-columns:minmax(0,1fr) 46px!important;column-gap:0!important;row-gap:7px!important;align-items:center!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-location{height:48px!important;min-height:48px!important;border:1px solid var(--dui-line)!important;border-right:0!important;border-radius:10px 0 0 10px!important;background:var(--dui-surface)!important;box-shadow:none!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-location-icon{display:flex!important;flex:0 0 32px!important;padding-left:10px!important;color:var(--dui-muted)!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-location>.search-location{min-height:46px!important;padding-left:2px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-location input{height:44px!important;font-size:16px!important;line-height:1.3!important;text-overflow:ellipsis!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-location>.reh-voice-button{height:44px!important;min-height:44px!important;flex-basis:40px!important;min-width:40px!important;width:40px!important;padding:10px!important;color:var(--dui-muted)!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-location .reh-location-entry>button{min-width:32px!important;width:32px!important;border:0!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-search-button{height:48px!important;min-height:48px!important;width:46px!important;border-radius:0 10px 10px 0!important;background:#008c65!important;color:#fff!important;box-shadow:none!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-search-button svg{width:24px!important;height:24px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-location:focus-within{outline:2px solid var(--dui-accent);outline-offset:1px}
  body[data-reh-discovery-site] #reh-v2-app :is(.dui-market,.dui-filters,.dui-sort){background:transparent!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-height:44px!important;height:44px!important;color:var(--dui-ink)!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-market{position:relative!important;grid-column:1/-1!important;grid-row:2!important;width:46%!important;margin:0!important;padding:0!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-market select{appearance:none!important;-webkit-appearance:none!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0 22px 0 0!important;height:44px!important;line-height:1.2!important;font-size:12px!important;font-weight:600!important;color:var(--dui-ink)!important;border-radius:0!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-market select option{background:var(--dui-surface);color:var(--dui-ink)}
  body[data-reh-discovery-site] #reh-v2-app .dui-market::after{content:"";pointer-events:none;position:absolute;right:12px;top:17px;width:7px;height:7px;border-right:1.5px solid currentColor;border-bottom:1.5px solid currentColor;transform:rotate(45deg)}
  body[data-reh-discovery-site] #reh-v2-app :is(.dui-filters,.dui-sort){position:relative!important;gap:7px!important;padding:0 4px!important;font-size:13px!important;font-weight:500!important;white-space:nowrap!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-filters{grid-column:1/-1!important;grid-row:2!important;margin-left:46%!important;width:29%!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-sort{grid-column:1/-1!important;grid-row:2!important;margin-left:75%!important;width:25%!important}
  body[data-reh-discovery-site] #reh-v2-app :is(.dui-filters,.dui-sort)::after{content:"";position:absolute;left:0;top:13px;bottom:13px;width:1px;background:var(--dui-line)}
  body[data-reh-discovery-site] #reh-v2-app .dui-filters::before{content:"";display:block;flex:none;width:19px;height:19px;background:currentColor;mask:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cg fill="none" stroke="black" stroke-width="1.7" stroke-linecap="round"%3E%3Cpath d="M3 5h18M3 12h18M3 19h18"/%3E%3Ccircle cx="8" cy="5" r="2" fill="white"/%3E%3Ccircle cx="16" cy="12" r="2" fill="white"/%3E%3Ccircle cx="10" cy="19" r="2" fill="white"/%3E%3C/g%3E%3C/svg%3E') center/contain no-repeat}
  body[data-reh-discovery-site] #reh-v2-app .dui-sort svg{width:20px!important;height:20px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-filters .dui-badge{position:absolute;top:0;right:2px;min-width:17px;height:17px;padding:0 4px;font-size:10px}
  body[data-reh-discovery-site] #reh-v2-app .dui-filter-chips{padding-top:0!important;gap:2px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-filter-chips button{padding-inline:6px!important;font-size:11px!important;min-height:36px!important;color:var(--dui-muted)!important}

  /* Feature counts and ordered priorities stay distinct above the icon and label. */
  body[data-reh-discovery-site] #reh-v2-app .category-shell{margin:0 var(--dui-gutter)!important;width:auto!important;padding:7px 0 8px!important;border:0!important;border-top:1px solid var(--dui-line)!important;background:var(--dui-bg)!important}
  body[data-reh-discovery-site] #reh-v2-app .category-shell>.category-mode{height:44px!important;min-height:44px!important;margin:0 0 4px!important;gap:8px!important;border-radius:0!important;box-shadow:none!important}
  body[data-reh-discovery-site] #reh-v2-app .category-mode::before{font-size:16px!important;line-height:1.2!important;font-weight:600!important;letter-spacing:-.01em!important}
  body[data-reh-discovery-site] #reh-v2-app .category-mode button{position:relative!important;min-height:44px!important;height:44px!important;min-width:56px!important;width:56px!important;padding:0 8px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--dui-muted)!important;box-shadow:none!important;font-size:13px!important;font-weight:500!important}
  body[data-reh-discovery-site] #reh-v2-app .category-mode button.active{color:var(--dui-accent)!important;background:transparent!important;border-bottom-color:var(--dui-accent)!important;font-weight:600!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail{gap:6px!important;padding:3px 0 2px!important;scroll-padding-inline:2px}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail>:is(.selected-category-rail,.category-scroll){gap:6px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-chip{display:flex!important;flex-direction:column!important;justify-content:flex-start!important;align-items:center!important;width:84px!important;min-width:84px!important;max-width:84px!important;flex:0 0 84px!important;height:76px!important;min-height:76px!important;padding:10px 1px 6px!important;gap:6px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--dui-ink)!important;box-shadow:none!important;font-size:11px!important;font-weight:400!important;line-height:14px!important;text-align:center!important;white-space:normal!important;transform:none!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-chip.selected{color:var(--dui-accent)!important;background:transparent!important;border-bottom-color:var(--dui-accent)!important;box-shadow:none!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-chip.image-active{background:transparent!important;box-shadow:none!important;border-bottom-width:3px!important;font-weight:600!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail :is(.category-icon,.category-icon svg){width:27px!important;height:27px!important;flex:none!important;border-radius:0!important;background:transparent!important;color:inherit!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-count{position:absolute!important;top:0!important;right:6px!important;min-width:18px!important;width:auto!important;height:18px!important;padding:0 4px!important;border:0!important;border-radius:999px!important;background:var(--dui-raised)!important;color:var(--dui-muted)!important;font-size:10px!important;font-weight:500!important;line-height:18px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .priority-number{top:0!important;left:4px!important;right:auto!important;min-width:18px!important;width:18px!important;height:18px!important;background:var(--dui-accent)!important;color:var(--dui-bg)!important;font-size:10px!important;border-radius:999px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-chip .drag-handle{top:24px!important;left:3px!important;letter-spacing:-3px!important;font-size:10px!important;color:var(--dui-muted)!important}

  /* Result count and view switches read as one row, without a segmented box. */
  body[data-reh-discovery-site] #reh-v2-app .dui-result-toolbar{min-height:50px!important;height:auto!important;gap:4px!important;margin:0 var(--dui-gutter)!important;padding:2px 0!important;border-top:1px solid var(--dui-line)!important;border-bottom:1px solid var(--dui-line)!important;background:var(--dui-bg)!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-result-toolbar>strong{font-size:13px!important;font-weight:600!important;line-height:1.3!important;margin-right:auto!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch{height:44px!important;border:0!important;border-radius:0!important;background:transparent!important;padding:0!important;gap:8px!important;box-shadow:none!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch button{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;min-height:44px!important;height:44px!important;min-width:54px!important;padding:0 3px!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0!important;background:transparent!important;color:var(--dui-muted)!important;box-shadow:none!important;font-size:13px!important;font-weight:500!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch button.active{background:transparent!important;color:var(--dui-accent)!important;border-bottom-color:var(--dui-accent)!important;font-weight:600!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch button::before{content:"";display:block;width:18px;height:20px;flex:none;background:currentColor;mask:var(--dui-view-icon) center/contain no-repeat}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch button:first-child{--dui-view-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cg fill="none" stroke="black" stroke-width="1.8" stroke-linecap="round"%3E%3Cpath d="M9 5h12M9 12h12M9 19h12"/%3E%3C/g%3E%3Cg fill="black"%3E%3Ccircle cx="3" cy="5" r="1.6"/%3E%3Ccircle cx="3" cy="12" r="1.6"/%3E%3Ccircle cx="3" cy="19" r="1.6"/%3E%3C/g%3E%3C/svg%3E')}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch button:last-child{--dui-view-icon:url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"%3E%3Cg fill="none" stroke="black" stroke-width="1.8"%3E%3Cpath d="M20 10c0 6-8 12-8 12S4 16 4 10a8 8 0 1 1 16 0Z"/%3E%3Ccircle cx="12" cy="10" r="2.5"/%3E%3C/g%3E%3C/svg%3E')}
  body[data-reh-discovery-site] #reh-v2-app .dui-result-toolbar>.dui-overflow{background:transparent!important;color:var(--dui-ink)!important;border:0!important;border-radius:0!important;box-shadow:none!important;min-width:36px!important;width:36px!important;height:44px!important;padding:0!important;font-size:24px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-save-search{color:var(--dui-accent)!important;font-weight:500!important}

  /* Real property media and all existing listing actions remain intact. */
  body[data-reh-discovery-site] #reh-v2-app .property-list{padding:10px var(--dui-photo-gutter) max(24px,env(safe-area-inset-bottom))!important;background:var(--dui-bg)!important}
  body[data-reh-discovery-site] #reh-v2-app .property-grid{gap:20px 16px!important}
  body[data-reh-discovery-site] #reh-v2-app .property-card{border:0!important;border-radius:14px!important;background:var(--dui-surface)!important;box-shadow:none!important;transition:none!important}
  body[data-reh-discovery-site] #reh-v2-app .property-card:hover{transform:none!important;box-shadow:none!important}
  body[data-reh-discovery-site] #reh-v2-app .property-card.selected{outline:2px solid var(--dui-accent)!important;outline-offset:-2px!important}
  body[data-reh-discovery-site] #reh-v2-app .card-media{border-radius:14px!important;aspect-ratio:1/1!important}
  body[data-reh-discovery-site] #reh-v2-app .card-media img{transform:none!important}
  body[data-reh-discovery-site] #reh-v2-app .card-copy{padding:12px 10px 14px!important}
  body[data-reh-discovery-site] #reh-v2-app .card-copy h3{line-height:1.45!important}
  body[data-reh-discovery-site] #reh-v2-app :is(.category-chip,.category-mode button,.dui-view-switch button):focus-visible{outline:2px solid var(--dui-accent)!important;outline-offset:-2px!important}
}
@media(min-width:700px) and (max-width:1180px){
  body[data-reh-discovery-site] #reh-v2-app{--dui-gutter:20px;--dui-photo-gutter:16px}
  body[data-reh-discovery-site] #reh-v2-app .dui-search-section{padding-bottom:10px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-search-form{grid-template-columns:minmax(0,1fr) 46px 164px 96px 84px!important;column-gap:0!important;row-gap:0!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-market{grid-column:3!important;grid-row:1!important;width:100%!important;margin:0!important;padding-left:16px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-market select{font-size:12px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-market::after{right:10px}
  body[data-reh-discovery-site] #reh-v2-app .dui-filters{grid-column:4!important;grid-row:1!important;width:100%!important;margin:0!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-sort{grid-column:5!important;grid-row:1!important;width:100%!important;margin:0!important}
  body[data-reh-discovery-site] #reh-v2-app .category-shell{padding-block:7px 10px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail{gap:10px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail>:is(.selected-category-rail,.category-scroll){gap:10px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-chip{width:92px!important;min-width:92px!important;max-width:92px!important;flex-basis:92px!important;font-size:12px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-result-toolbar{gap:12px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-result-toolbar>strong{font-size:14px!important}
  body[data-reh-discovery-site] #reh-v2-app .property-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:22px 16px!important}
  body[data-reh-discovery-site] #reh-v2-app .card-media{aspect-ratio:4/3!important}
}
@media(max-width:359px){
  body[data-reh-discovery-site] #reh-v2-app{--dui-gutter:10px;--dui-photo-gutter:6px}
  body[data-reh-discovery-site] #reh-v2-app .dui-market select{font-size:11px!important}
  body[data-reh-discovery-site] #reh-v2-app :is(.dui-filters,.dui-sort){gap:4px!important;font-size:12px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch{gap:4px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-view-switch button{gap:4px!important;min-width:50px!important;font-size:12px!important}
}
@media(max-width:1180px) and (max-height:540px){
  body[data-reh-discovery-site] #reh-v2-app .top-nav{grid-template-rows:44px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-shell{padding-top:3px!important;padding-bottom:4px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-shell>.category-mode{margin-bottom:0!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-chip{height:68px!important;min-height:68px!important;padding-top:8px!important;gap:4px!important}
}

/* REH_MOBILE_HEADER_V1 — smaller feature rail and an accessible compact header. */
.reh-header-compact,.reh-header-collapse{display:none!important}
@media(max-width:1180px){
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-chip{width:72px!important;min-width:72px!important;max-width:72px!important;flex-basis:72px!important;height:60px!important;min-height:60px!important;padding:6px 1px 2px!important;gap:3px!important;font-size:10.5px!important;line-height:12.5px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail :is(.category-icon,.category-icon svg){width:22px!important;height:22px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-count{top:0!important;right:1px!important;min-width:16px!important;height:16px!important;padding:0 3px!important;font-size:9px!important;line-height:16px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .priority-number{top:0!important;left:0!important;min-width:16px!important;width:16px!important;height:16px!important;font-size:9px!important}
  body[data-reh-discovery-site] #reh-v2-app .category-chip .drag-handle{top:21px!important;left:1px!important}
  body[data-reh-discovery-site] #reh-v2-app .dui-result-toolbar>.reh-header-collapse{display:grid!important;place-items:center!important;flex:0 0 32px!important;width:32px!important;min-width:32px!important;min-height:44px!important;height:44px!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;color:var(--dui-muted)!important}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-collapse svg{width:19px;height:19px}
  body[data-reh-discovery-site] #reh-v2-app .app-shell[data-reh-header-collapsed]>.top-nav,
  body[data-reh-discovery-site] #reh-v2-app .app-shell[data-reh-header-collapsed] .discovery-page>:is(.dui-search-section,.category-shell,.dui-result-toolbar){display:none!important}
  body[data-reh-discovery-site] #reh-v2-app .app-shell[data-reh-header-collapsed]>.reh-header-compact:not([hidden]){display:flex!important;align-items:center;gap:6px;flex:0 0 auto;min-width:0;min-height:52px;padding:max(4px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) 4px max(10px,env(safe-area-inset-left));background:var(--dui-bg);color:var(--dui-ink);border-bottom:1px solid var(--dui-line);z-index:31}
  body[data-reh-discovery-site] #reh-v2-app .app-shell[data-reh-header-collapsed]{overflow:hidden!important}
  body[data-reh-discovery-site] #reh-v2-app .app-shell[data-reh-header-collapsed] .discovery-page{flex:1 1 auto!important;overflow:hidden!important}
  body[data-reh-discovery-site] #reh-v2-app .app-shell[data-reh-header-collapsed] .workspace{flex:1 1 0!important;min-height:0!important;height:auto!important}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-compact button{display:flex;align-items:center;gap:7px;min-height:44px;border:0;border-radius:7px;padding:4px;background:transparent;color:var(--dui-ink);font:inherit;font-size:12px;cursor:pointer}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-open{flex:1 1 0;min-width:0;text-align:left}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-compact svg{width:20px;height:20px;flex:none}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-labels{display:flex;flex-direction:column;gap:1px;min-width:0}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-labels>span:first-child{font-weight:600;white-space:nowrap}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-location{font-size:10px;color:var(--dui-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-count{flex:0 1 auto;min-width:0;max-width:100px;font-size:11px;line-height:1.2;color:var(--dui-muted)}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-view{flex:none;min-width:58px;justify-content:center;color:var(--dui-accent)!important}
  body[data-reh-discovery-site] #reh-v2-app :is(.reh-header-compact button,.reh-header-collapse):focus-visible{outline:2px solid var(--dui-accent)!important;outline-offset:-2px}
}
@media(min-width:700px) and (max-width:1180px){
  body[data-reh-discovery-site] #reh-v2-app .category-unified-rail .category-chip{width:80px!important;min-width:80px!important;max-width:80px!important;flex-basis:80px!important;font-size:11px!important}
  body[data-reh-discovery-site] #reh-v2-app .app-shell[data-reh-header-collapsed]>.reh-header-compact:not([hidden]){padding-inline:20px;gap:16px}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-labels{flex-direction:row;align-items:center;gap:16px}
  body[data-reh-discovery-site] #reh-v2-app .reh-header-location{font-size:12px}
}
