/* Scoped to the shared fixture map; existing modal and editorial page retain their dimensions. */
.gbs-map{height:100%;min-height:0;color:#0B2545;font-size:12px;display:flex;flex-direction:column;gap:10px}
.gbs-map-scope{margin:0;font-size:12px;line-height:1.4;color:#6E6656}
.gbs-map-layout{display:grid;grid-template-columns:minmax(0,1fr) 240px;gap:16px;flex:1;min-height:0}
.gbs-map-surface{position:relative;min-height:0;background:#E4DCCD;border:1px solid #DDD5C7;border-radius:4px;overflow:hidden}
.gbs-map-canvas{width:100%;height:100%;min-height:200px;background:#E4DCCD;z-index:0}
.gbs-map-message{position:absolute;left:12px;right:12px;bottom:20px;z-index:500;background:#FBFAF7;padding:10px;border-radius:4px;color:#0B2545;line-height:1.4;margin:0;pointer-events:none}
.gbs-map-rail{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 4px 4px 0}
.gbs-map-preview{line-height:1.4}.gbs-map-preview p{margin:6px 0;overflow-wrap:anywhere}.gbs-map-preview strong{display:block;font-size:18px}.gbs-map-preview small{display:block;color:#6E6656}
.gbs-map-photo{background:#E4DCCD;border-radius:4px;padding:12px;text-align:center;color:#6E6656;margin-bottom:8px}
.gbs-map-action,.gbs-map-choice{font:inherit;cursor:pointer;color:#0B2545;background:#FBFAF7;border:1px solid #DDD5C7;border-radius:4px;padding:8px 10px;min-height:36px;white-space:normal;text-align:left;overflow-wrap:anywhere}
.gbs-map-action{color:#8C6844;margin:8px 0}.gbs-map-choice{display:block;width:100%;margin-top:6px}.gbs-map-choice[aria-pressed=true]{border-color:#6C4FD0;background:#ECE8FB}
.gbs-map button:focus-visible,.gbs-map-canvas:focus-visible,.gbs-map-marker:focus-visible{outline:2px solid #8C6844;outline-offset:2px}
.gbs-map .gbs-map-marker{background:#0B2545;color:#fff;border:2px solid #FBFAF7;border-radius:18px;box-sizing:border-box;display:flex;align-items:center;justify-content:center;font:500 12px/1.2 sans-serif;box-shadow:0 2px 6px #0B254540}
.gbs-map .gbs-map-current{box-shadow:0 0 0 3px #8C6844}.gbs-map .gbs-map-selected{background:#6C4FD0;border-color:#D9CEF5}.gbs-map .leaflet-control-attribution{font-size:10px;background:#FBFAF7;color:#0B2545}.gbs-map .leaflet-control-attribution a{color:#0B2545}
.gbs-map-tab{height:100%;min-height:250px}.gz-filter-body.gbs-map-panel{overflow-y:auto !important}
.gbs-property-map{margin-top:40px}.gbs-property-map>div{height:420px}
@media(max-width:759px){.gbs-map-layout{grid-template-columns:minmax(0,1fr)}.gbs-map-tab{height:auto}.gbs-map-canvas{height:240px}.gbs-map-surface{min-height:240px}.gbs-map-rail{max-height:none;overflow:visible}.gbs-property-map>div{height:auto}.gbs-map-layout{flex:none}.gbs-map-scope{font-size:11px}}

/* V1.2: cluster interaction never consumes the map's height. */
.gbs-map{height:auto;min-height:0}.gbs-map-layout{flex:none;grid-template-columns:minmax(0,1fr) 260px;align-items:start}.gbs-map-surface,.gbs-map-canvas{height:500px;min-height:480px}.gbs-map-rail{overflow:visible;max-height:none}.gbs-map-photo{padding:0;height:170px;overflow:hidden}.gbs-map-tab,.gbs-property-map>div{height:auto}.gbs-sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.gbs-sr-only:focus-within{position:static!important;width:auto!important;height:auto!important;clip:auto!important;white-space:normal!important}
@media(max-width:759px){.gbs-map-layout{grid-template-columns:minmax(0,1fr)}.gbs-map-surface,.gbs-map-canvas{height:360px;min-height:360px}.gbs-map-photo{height:180px}}

/* The filter tab fits its flex allocation. Detail-page maps retain their own size. */
.gz-filter-dlg .gz-filter-body.gbs-map-panel{overflow:hidden!important;display:flex;flex-direction:column;padding-bottom:12px!important}
.gbs-map-panel .gbs-map-tab{height:100%;min-height:0;flex:1}
.gbs-map-panel .gbs-map{height:100%;min-height:0}
.gbs-map-panel .gbs-map-layout{flex:1;min-height:0;align-items:stretch}
.gbs-map-panel .gbs-map-surface,.gbs-map-panel .gbs-map-canvas{height:100%;min-height:0}
.gbs-map-panel .gbs-map-rail{height:100%;min-height:0;overflow:hidden;padding:0}
.gbs-map-panel .gbs-map-preview{height:100%;display:flex;flex-direction:column;min-height:0}
.gbs-map-panel .gbs-map-photo{flex:1 1 140px;min-height:0;height:auto;max-height:170px}
.gbs-map-panel .gbs-map-preview p{margin:3px 0}
.gbs-map-panel .gbs-map-preview .gbs-map-action{align-self:flex-start;margin:5px 0 0;flex-shrink:0}
@media(max-width:759px){
 .gz-filter-dlg .gz-filter-body.gbs-map-panel{overflow-y:auto!important}
 .gbs-map-panel .gbs-map-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(200px,1fr) auto;gap:8px}
 .gbs-map-panel .gbs-map-rail{height:auto}
 .gbs-map-panel .gbs-map-preview{display:grid;grid-template-columns:1fr auto;gap:3px 8px;height:auto}
 .gbs-map-panel .gbs-map-photo,.gbs-map-panel .gbs-map-preview small{display:none}
 .gbs-map-panel .gbs-map-preview strong,.gbs-map-panel .gbs-map-preview p{grid-column:1;font-size:12px;margin:0}
 .gbs-map-panel .gbs-map-preview .gbs-map-action{grid-column:2;grid-row:1/4;align-self:center;margin:0}
}
