[data-catalog-view][aria-pressed=true] { color:var(--surface); background:var(--brand); border-color:var(--brand); }
#catalog-map-view[hidden], #catalog-results[hidden], .map-surface[hidden] { display:none; }
#catalog-map-view { margin-block:16px 32px; }
#catalog-map-view [data-map-summary], #catalog-map-view [data-map-status] { margin:12px 0; color:var(--muted); }
#catalog-map-view [data-map-status]:empty { display:none; }
.map-surface { height:clamp(340px,62vh,620px); isolation:isolate; border:1px solid var(--line); border-radius:var(--radius); background:#f2eee6; }
.house-pin {
  display:block; position:absolute; bottom:7px; left:0; transform:translateX(-50%); white-space:nowrap;
  padding:5px 9px; border:1px solid #fff; border-radius:7px; background:var(--brand); color:#fff;
  box-shadow:0 2px 6px #2c170d42; font:600 13px/1.35 system-ui,sans-serif; cursor:pointer;
}
.house-pin::after { content:""; position:absolute; top:100%; left:50%; margin-left:-5px; border:5px solid transparent; border-top-color:var(--brand); }
.house-pin-below { bottom:auto; top:7px; }
.house-pin-below::after { top:auto; bottom:100%; border-top-color:transparent; border-bottom-color:var(--brand); }
.house-marker:focus-visible .house-pin { outline:3px solid #216bb6; outline-offset:2px; }
.house-offers { color:var(--ink); font:14px/1.4 system-ui,sans-serif; }
.house-offers h3 { margin:0; font-size:16px; line-height:1.3; }
.leaflet-popup-content .house-offers p { margin:5px 0 12px; color:var(--muted); }
.house-offers article { display:grid; gap:3px; border-top:1px solid var(--line); padding:10px 0 3px; }
.house-offers article + article { margin-top:8px; }
.house-offers .offer-photo { margin:0 0 6px; }
.house-offers .offer-photo img { height:90px; width:100%; object-fit:cover; }
.house-offers .offer-photo figcaption { font-size:10px; bottom:3px; left:3px; }
.leaflet-container .house-offers a { color:var(--brand); text-decoration:underline; }
.leaflet-container .leaflet-control-attribution { font-size:11px; }
@media (max-width:600px) { .map-surface { height:clamp(340px,60svh,520px); } }
