/* Mobile map and property media controls */
.eh9-layer-menu{max-height:min(72dvh,560px);overflow:auto;overscroll-behavior:contain}
.eh9-layer-menu .eh9-layer-unavailable{color:#687386}
.eh9-layer-menu input:disabled{opacity:.55}
.eh9-map-feature{display:grid;gap:6px;padding:12px 14px;max-width:250px;color:#263445;font:13px/1.45 system-ui,sans-serif}
.eh9-map-feature strong{font-size:15px}
.eh9-map-feature p,.eh9-map-feature small{margin:0;color:#5c6878}
.eh9-map-feature a{font-weight:700}
.eh917-map-view-actions{display:inline-flex;align-items:center;gap:6px}
.eh917-map-view-actions button,.eh917-map-view-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:34px;padding:5px 10px;border:1px solid #cbd3dc;border-radius:7px;background:#fff;color:#263445;font-size:12px;font-weight:700;text-decoration:none}
.eh917-map-view-actions button:hover,.eh917-map-view-actions a:hover{border-color:#a81031;color:#a81031}
.eh91-gallery-map-caption{display:flex;align-items:center;justify-content:space-between;gap:8px}
.eh91-gallery-map-caption .eh917-map-view-actions{flex:none}
.eh91-gallery-map-caption [data-gallery-photos]{min-height:30px}
.eh917-google-location-links{display:inline-flex;gap:6px}
.eh917-google-location-links a{display:inline-flex;align-items:center;min-height:30px;padding:4px 9px;border:1px solid #cbd3dc;border-radius:7px;background:#fff;color:#263445;font-size:11px;font-weight:700;text-decoration:none}
.eh917-google-location-links a:hover{border-color:#a81031;color:#a81031}
@media(max-width:600px){
  .maplibregl-popup{max-width:calc(100vw - 24px)!important}
  .maplibregl-popup-content{max-width:calc(100vw - 24px)!important}
  .maplibregl-popup-content .eh9-preview{box-sizing:border-box;width:min(320px,calc(100vw - 44px));grid-template-columns:82px minmax(0,1fr)}
  .maplibregl-popup-content .eh91-pin-photo{box-sizing:border-box;width:74px;height:74px;margin:8px 0 8px 8px}
  .maplibregl-popup-content .eh91-pin-photo img{width:74px;height:74px}
  .maplibregl-popup-content .eh9-preview-body{min-width:0;padding:8px 9px}
  .maplibregl-popup-content .eh9-preview-body strong{font-size:16px;overflow-wrap:anywhere}
  .maplibregl-popup-content .eh9-preview-body p{overflow-wrap:anywhere}
  .maplibregl-popup-content .eh92-preview-actions{gap:4px;flex-wrap:wrap}
  .maplibregl-popup-content .eh9-preview.is-photo-less{width:min(280px,calc(100vw - 44px))}
  .eh91-quick-view{box-sizing:border-box;width:calc(100vw - 20px);max-width:none;max-height:calc(100dvh - 20px);margin:auto;padding:0;border-radius:12px;overflow:auto;overscroll-behavior:contain}
  .eh91-quick-view>div{display:flex;flex-direction:column;gap:0}
  .eh91-quick-media{box-sizing:border-box;width:100%;height:clamp(160px,30dvh,240px);min-height:0;max-height:30dvh;flex:0 0 auto}
  .eh91-quick-media>img{width:100%;height:100%;max-height:none;object-fit:cover}
  .eh91-quick-body{box-sizing:border-box;width:100%;padding:15px 16px 18px}
  .eh91-quick-body h2{margin:8px 0;font-size:20px;line-height:1.25}
  .eh91-quick-body p{margin:5px 0;font-size:13px}
  .eh91-quick-description{max-height:120px}
  .eh91-quick-view .eh91-quick-close{position:absolute;float:none;top:8px;right:8px;margin:0;z-index:6;min-width:38px;min-height:38px}
  .eh91-quick-view .eh91-quick-photo-controls{bottom:8px;left:8px;right:8px}
  .eh91-quick-view .eh91-quick-photo-controls button{min-width:36px;min-height:36px}
  .eh91-quick-view::backdrop{background:#071b35b8}
  .eh91-gallery-map-caption{left:6px;right:6px;bottom:6px;flex-wrap:wrap;gap:5px;padding:6px 7px}
  .eh91-gallery-map-caption>span{font-size:10px}
  .eh91-gallery-map-caption .eh917-map-view-actions{gap:4px}
  .eh91-gallery-map-caption .eh917-map-view-actions button,.eh91-gallery-map-caption .eh917-google-location-links a{min-height:28px;padding:3px 8px;font-size:10px}
  .eh9-map-actions details[open] .eh9-layer-menu{width:min(245px,calc(100vw - 74px));max-height:62dvh}
}
