/* Public responsive experience 1.3.0. Scoped to existing public components. */

/* Give the area search room to breathe when the browser becomes a narrow desktop window. */
@media (min-width:801px) and (max-width:1180px){
  .eh9-split:not(.is-map-only){grid-template-columns:minmax(280px,38%) 6px minmax(0,1fr)}
  .eh9-split:not(.is-map-only) .eh9-cards{grid-template-columns:minmax(0,1fr)}
  .eh9-split:not(.is-map-only) .eh9-card-photo{aspect-ratio:16/8}
  .eh9-split:not(.is-map-only) .eh9-results-scroll{padding:10px}
  .eh9-detail{padding-right:18px;padding-left:18px}
  .eh9-detail-layout{grid-template-columns:minmax(0,1fr)!important;gap:14px}
  .eh9-detail-main,.eh91-conversion-rail,.eh916-gallery,.eh9-gallery-hero{min-width:0;max-width:100%}
  .eh91-conversion-rail{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:start}
  .eh91-conversion-card{min-width:0}
  .eh916-gallery{max-height:none}
  .eh916-gallery .eh9-gallery-hero{aspect-ratio:16/9;min-height:0}
}

/* In phone list mode, leave the map canvas and its fixed-height sheet behind.
   Results become ordinary document content and the page itself scrolls. */
@media (max-width:800px){
  .eh9-split.is-list-only{display:block!important;height:auto!important;min-height:0!important;max-height:none!important;overflow:visible!important}
  .eh9-split.is-list-only .eh9-map-column{display:none!important;visibility:hidden!important}
  .eh9-split.is-list-only .eh9-divider{display:none!important}
  .eh9-split.is-list-only .eh9-results{position:relative!important;inset:auto!important;width:100%!important;height:auto!important;min-height:calc(100dvh - 150px);max-height:none!important;overflow:visible!important;border-radius:0!important;box-shadow:none!important}
  .eh9-split.is-list-only .eh9-results-scroll{flex:0 0 auto!important;min-height:0!important;max-height:none!important;overflow:visible!important;overscroll-behavior:auto!important}
  .eh9-split.is-list-only .eh9-cards{grid-template-columns:minmax(0,1fr)}
  .eh9-split.is-list-only .eh9-sheet-handle{display:none!important}
  .eh9-split.is-list-only .eh9-mobile-view{position:fixed!important;inset:auto max(12px,env(safe-area-inset-right)) max(12px,env(safe-area-inset-bottom)) auto!important;display:inline-flex!important;align-items:center;justify-content:center;width:max-content!important;max-width:calc(100vw - 24px)!important;height:auto!important;min-width:112px;min-height:46px!important;padding:9px 16px!important;transform:none!important;border:1px solid #8f102d!important;border-radius:999px!important;background:#a81031!important;color:#fff!important;box-shadow:0 4px 16px #17203338!important;font-size:14px!important;font-weight:750;line-height:1.2;white-space:nowrap;visibility:visible!important;z-index:1400!important}
  .eh9-split.is-list-only .eh9-results-heading{position:sticky;top:0;z-index:12}
  .eh9-split.is-list-only .eh9-results-heading h2{font-size:20px}
  .eh9-split.is-list-only .eh9-results-scroll{padding:12px}
  .eh9-detail-layout{display:flex!important;flex-direction:column;gap:12px}
  .eh9-detail-main,.eh91-conversion-rail,.eh916-gallery,.eh9-gallery-hero{width:100%;min-width:0;max-width:100%}
  .eh916-gallery{max-height:none}
  .eh916-gallery .eh9-gallery-hero{min-width:0;max-width:100%;overflow:hidden}
  .eh91-gallery-map-slide:not([hidden]){max-width:100%!important;overflow:hidden!important}
}

/* Make chat window controls understandable without relying on icon guessing. */
.ehqc-window-actions{gap:6px}
.ehqc-window-actions button{width:auto!important;min-width:78px;height:36px;padding:5px 8px!important;gap:5px;font-size:13px!important;line-height:1.1}
.ehqc-minimize::after{content:"Minimize";font-size:11px;font-weight:700}
.ehqc-close::after{content:"Close";font-size:11px;font-weight:700}
.ehqc-window-actions button:focus-visible{outline:3px solid #2768a8;outline-offset:2px}
@media(max-width:420px){.ehqc-panel{right:-4px}.ehqc-window-actions button{min-width:70px}}

/* Crawlable, curated community directory below the live search experience. */
.eh-seo-home{max-width:1180px}
.eh-home-community-groups{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:18px 0 24px}
.eh-home-community-group{min-width:0;padding:16px;border:1px solid #e0e6ed;border-radius:11px;background:#fff}
.eh-home-community-group h3{margin:0 0 9px;color:#182a3b;font-size:16px}
.eh-home-community-group ul{display:flex;flex-wrap:wrap;gap:7px;margin:0;padding:0;list-style:none}
.eh-home-community-group a{display:inline-flex;align-items:center;min-height:36px;padding:6px 10px;border:1px solid #e0e6ed;border-radius:999px;color:#26394d;font-size:13px;font-weight:650;text-decoration:none}
.eh-home-community-group a:hover{border-color:#a81031;color:#a81031;text-decoration:none}
.eh-home-sold-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:18px 20px;border:1px solid #ead7dc;border-radius:12px;background:linear-gradient(115deg,#fff8fa,#f7f9fb)}
.eh-home-sold-cta h3{margin:0 0 4px;color:#182a3b;font-size:18px}
.eh-home-sold-cta p{margin:0;color:#536274;line-height:1.5}
.eh-home-sold-cta a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:42px;padding:8px 14px;border-radius:8px;background:#a81031;color:#fff;font-weight:750;text-decoration:none}
@media(max-width:800px){.eh-home-community-groups{grid-template-columns:1fr;gap:8px}.eh-home-community-group{padding:13px}.eh-home-community-group a{min-height:38px}.eh-home-sold-cta{align-items:flex-start;flex-direction:column;padding:15px}.eh-home-sold-cta a{width:100%}}

@media(prefers-reduced-motion:reduce){.eh9-split,.eh9-results,.eh9-mobile-view{transition:none!important;scroll-behavior:auto!important}}
