/* Local map study. One restrained map treatment; brand color marks selection. */
.home .home-map.has-real-map { display:flex; flex-direction:column; height:620px; isolation:isolate; background:var(--ap-white); }
.home-map.has-real-map > img,
.home-map.has-real-map > .map-label,
.home-map.has-real-map > .map-markers { display:none; }

.real-map-stage { position:relative; flex:1 1 auto; min-height:0; overflow:hidden; background:#EDEDEA; }
.real-map-canvas { position:absolute; inset:0; font-family:inherit; background:#EEEDE9; }
.real-map-canvas .leaflet-tile { max-width:none; max-height:none; filter:grayscale(.78) sepia(.08) saturate(.58) brightness(1.06) contrast(.91); }
.real-map-canvas .leaflet-control-attribution { margin:0 8px 7px 0; padding:3px 7px; border-radius:7px; background:rgb(255 255 255 / .82); color:#6D6670; font-size:9px; line-height:1.35; backdrop-filter:blur(8px); }
.real-map-canvas .leaflet-control-attribution a { color:#5A5160; }
.real-map-canvas .leaflet-control-zoom { margin:16px 16px 0 0; border:1px solid rgb(227 223 229 / .92); border-radius:14px; overflow:hidden; box-shadow:0 5px 18px rgb(33 22 38 / .10); }
.real-map-canvas .leaflet-control-zoom a { width:42px; height:42px; line-height:42px; border-color:#EEEAEF; background:rgb(255 255 255 / .94); color:var(--ap-ink); font-size:20px; font-weight:350; }

.real-map-toolbar { position:absolute; z-index:600; top:16px; left:16px; display:flex; align-items:center; pointer-events:none; }
.real-map-toolbar button { min-height:42px; border:1px solid rgb(227 223 229 / .92); background:rgb(255 255 255 / .94); box-shadow:0 5px 18px rgb(33 22 38 / .08); backdrop-filter:blur(10px); pointer-events:auto; }
.real-map-toolbar button { min-width:42px; display:flex; align-items:center; gap:7px; border-radius:14px; padding:0 13px; color:var(--ap-ink); font-size:11px; white-space:nowrap; }
.real-map-toolbar button .ap-icon { width:16px; height:16px; stroke-width:1.55; }
.real-map-toolbar button:focus-visible { outline:2px solid var(--ap-violet); outline-offset:2px; }

.real-map-marker { display:flex; justify-content:center; border:0; background:none; }
.real-map-pin { position:relative; z-index:0; width:46px; height:46px; display:grid; place-items:center; padding:0; border:1px solid rgb(139 0 204 / .16); border-radius:50%; background:var(--ap-white); box-shadow:0 6px 18px rgb(33 22 38 / .15); transition:transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; cursor:pointer; }
.real-map-pin::before { content:""; position:absolute; z-index:-1; left:17px; bottom:-4px; width:11px; height:11px; border-right:inherit; border-bottom:inherit; background:inherit; transform:rotate(45deg); }
.real-map-brand-mark { position:relative; width:27px; height:27px; display:block; overflow:hidden; }
.real-map-brand-mark img { position:absolute; top:-5px; left:-3px; width:144px; height:36px; max-width:none; object-fit:contain; object-position:left center; }
.real-map-pin[aria-pressed=true] { border-color:var(--ap-orange); box-shadow:0 0 0 4px rgb(255 112 0 / .15),0 8px 22px rgb(33 22 38 / .18); transform:translateY(-2px); }
.real-map-pin:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgb(33 22 38 / .20); }
.real-map-pin:focus-visible { outline:2px solid var(--ap-violet); outline-offset:4px; }
.real-map-count { position:absolute; top:-7px; right:-10px; min-width:23px; height:23px; padding:0 6px; display:grid; place-items:center; border:2px solid var(--ap-white); border-radius:999px; background:var(--ap-plum); color:var(--ap-white); font-size:9px; font-weight:600; font-variant-numeric:tabular-nums; box-shadow:0 3px 8px rgb(33 22 38 / .12); }
.real-map-pin[aria-pressed=true] .real-map-count { background:var(--ap-orange); }

.real-map-status { position:absolute; top:70px; left:16px; z-index:600; max-width:300px; padding:11px 13px; border:1px solid var(--ap-line-soft); border-radius:12px; background:rgb(255 255 255 / .94); color:var(--ap-muted); font-size:11px; line-height:1.5; box-shadow:0 6px 18px rgb(33 22 38 / .10); }
.real-map-status[hidden] { display:none; }
.real-map-status button { border:0; padding:7px 0 0; background:none; color:var(--ap-ink); text-decoration:underline; display:block; }
.real-map-status button[hidden] { display:none; }

.has-real-map .map-summary { position:absolute; z-index:550; left:16px; bottom:30px; top:auto; width:min(318px,calc(100% - 32px)); min-height:0; margin:0; padding:0; transform:none; border:0; border-radius:18px; background:transparent; box-shadow:0 12px 30px rgb(33 22 38 / .14); }
.has-real-map .map-preview { display:grid; grid-template-columns:92px minmax(0,1fr); gap:13px; min-height:108px; padding:8px; border:1px solid rgb(227 223 229 / .94); border-radius:18px; background:rgb(255 255 255 / .96); backdrop-filter:blur(12px); }
.has-real-map .map-summary .map-preview > img { width:92px; height:92px; border-radius:12px; }
.has-real-map .map-summary .map-preview-copy { gap:2px; padding:5px 5px 4px 0; }
.has-real-map .map-summary .map-preview-neighborhood { font-size:10px; }
.has-real-map .map-summary .map-preview-price { font-size:18px; }
.has-real-map .map-summary .map-preview-title { max-width:26ch; font-size:11px; line-height:1.35; -webkit-line-clamp:2; }
.has-real-map .map-summary .map-preview-meta { font-size:10px; }
.has-real-map .map-summary .map-preview-action { margin-top:auto; font-size:11px; font-weight:550; }
.has-real-map .map-preview:focus-visible { outline:2px solid var(--ap-violet); outline-offset:3px; }
.has-real-map .map-disclaimer { position:static; flex:none; margin:0; padding:10px 16px; border-top:1px solid var(--ap-line-soft); border-radius:0; background:var(--ap-white); color:var(--ap-muted); font-size:10px; line-height:1.45; text-align:left; }

@container (max-width:1200px) {
  .home .home-map.has-real-map { height:730px; }
}
@container (max-width:600px) {
  .home .results-layout[data-view="list"] .home-map.has-real-map { display:none; }
  .home .results-layout[data-view="map"] .home-map.has-real-map { display:flex; }
  .home .home-map.has-real-map { height:610px; border-radius:20px; }
  .real-map-toolbar { top:12px; left:12px; right:64px; }
  .real-map-toolbar button { padding-inline:11px; }
  .real-map-canvas .leaflet-control-zoom { margin:12px 12px 0 0; }
  .has-real-map .map-summary { left:12px; right:12px; bottom:26px; width:auto; }
  .has-real-map .map-preview { grid-template-columns:84px minmax(0,1fr); min-height:100px; }
  .has-real-map .map-summary .map-preview > img { width:84px; height:84px; }
  .has-real-map .map-disclaimer { padding-inline:13px; }
}

@media (prefers-reduced-motion:reduce) {
  .real-map-pin { transition:none; }
}
