/* ABROK | Mapa, estilos exclusivos. */
.abm-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:0 0 12px;color:#64748b;font-size:.82rem}
.abm-legend{display:flex;flex-wrap:wrap;gap:8px 18px;align-items:center}.abm-legend span{display:inline-flex;align-items:center;gap:6px}
.abm-dot{width:10px;height:10px;border-radius:50%;display:inline-block}.abm-dot.exact{background:#131353}.abm-dot.approximate{background:#fff;border:2px solid #7065d8}
.abm-fit,.abm-locate{border:1px solid #d6deeb;background:#fff;color:#131353;border-radius:10px;padding:8px 12px;font:inherit;cursor:pointer}.abm-fit:hover,.abm-locate:hover{background:#f1f0fa}
.abm-layout{grid-template-columns:minmax(300px,37%) minmax(0,1fr);min-height:0;height:clamp(540px,72vh,760px);border-radius:20px;isolation:isolate}
.abm-layout .map-list{min-height:0;max-height:none;padding:12px;overscroll-behavior:contain}.abm-layout #propertiesMap{min-height:0;height:100%;position:relative;z-index:0;min-width:0}
.abm-layout .map-list-card{grid-template-columns:110px minmax(0,1fr);padding:10px;gap:12px;border:1px solid #e2e7ef;border-radius:14px;cursor:default;align-items:start}.abm-media{display:block;min-width:0}.abm-layout .map-list-card img{width:100%;height:115px;border-radius:10px}.abm-card-content{min-width:0;display:grid;gap:5px}.abm-layout .map-list-card h3{font-size:.9rem;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.35;margin:0}.abm-card-content h3 a{color:#263750}.abm-meta{display:flex;flex-wrap:wrap;gap:5px 10px;font-size:.73rem;color:#64748b}.abm-precision{font-size:.7rem;color:#64748b}.abm-precision.exact{color:#131353}.abm-precision.approximate{color:#6456bf}.abm-card-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:.75rem}.abm-card-actions a{color:#131353;font-weight:600}.abm-locate{padding:4px 7px;min-height:32px}
.abm-price-marker{background:transparent;border:0;display:flex;justify-content:center;align-items:center}.abm-price-marker span{display:inline-flex;justify-content:center;align-items:center;height:30px;min-width:48px;white-space:nowrap;padding:0 9px;border-radius:999px;background:#131353;border:2px solid #fff;color:#fff;font-size:12px;font-weight:700;box-shadow:0 3px 9px #12134b40}.abm-price-marker.approximate span{background:#fff;color:#5145a8;border-color:#7065d8;border-style:dashed}.abm-price-marker.is-active span{outline:2px solid #db4953;outline-offset:2px}.abm-popup{width:min(230px,66vw);font-family:Rubik, sans-serif;color:#263750}.abm-popup img{display:block;width:100%;height:120px;object-fit:cover;border-radius:10px;margin-bottom:8px}.abm-popup strong{display:block;line-height:1.3;font-size:.9rem}.abm-popup small{display:block;margin:5px 0}.abm-popup .abm-popup-price{font-size:1.05rem;color:#131353;font-weight:700;margin:6px 0}.abm-popup a{color:#131353;font-weight:600}.abm-map-message{margin:0;padding:20px;color:#46546b;text-align:center}.abm-layout .leaflet-popup-content{margin:12px 16px}.abm-layout .leaflet-popup-content-wrapper{border-radius:14px}
@media(max-width:991.98px){.abm-layout{height:auto;display:flex;flex-direction:column}.abm-layout #propertiesMap{height:clamp(360px,60vh,570px);min-height:360px;order:1}.abm-layout .map-list{max-height:540px;order:2}.abm-layout .map-list-card{grid-template-columns:110px minmax(0,1fr)}}
@media(max-width:420px){.abm-layout .map-list{padding:8px}.abm-layout .map-list-card{grid-template-columns:82px minmax(0,1fr);gap:8px;padding:8px}.abm-layout .map-list-card img{height:98px}.abm-toolbar{font-size:.75rem}.abm-legend{gap:6px 12px}}

/* V2: dimensiones explícitas y protección de las teselas frente a estilos globales. */
.abm-layout{height:clamp(560px,76vh,840px);grid-template-columns:minmax(310px,37%) minmax(0,1fr);grid-template-rows:minmax(0,1fr)}
.abm-layout #propertiesMap{height:100%;width:100%;min-width:0;min-height:0;overflow:hidden}
#propertiesMap .leaflet-tile-pane img.leaflet-tile{max-width:none!important;max-height:none!important;padding:0!important;border:0!important;border-radius:0!important;object-fit:fill!important}
#propertiesMap .leaflet-marker-pane img{max-width:none!important;max-height:none!important}
.abm-list-heading{position:sticky;top:-12px;z-index:2;display:flex;flex-direction:column;gap:2px;padding:10px 2px;margin:0 0 8px;background:#fff;border-bottom:1px solid #e2e7ef;color:#131353;font-size:.9rem}
.abm-list-heading small{font-weight:400;color:#64748b;font-size:.72rem}
.abm-cluster{border-radius:50%;display:grid;place-items:center;background:#b5e28caa;color:#14532d;border:0}
.abm-cluster span{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:#6ecc39;font-size:13px;font-weight:700;font-family:Rubik,sans-serif;box-shadow:0 1px 3px #0002}
.abm-cluster.medium{background:#f1d357aa;color:#453100}.abm-cluster.medium span{background:#f0c20c}
.abm-cluster.large{background:#fd9c73aa;color:#fff}.abm-cluster.large span{background:#f18017}
.abm-map-notice{max-width:min(240px,60vw);padding:10px 12px;background:#fff;border:1px solid #d6deeb;border-radius:10px;color:#263750;font:12px/1.4 Rubik,sans-serif;box-shadow:0 3px 12px #0002}
@media(max-width:991.98px){.abm-layout{height:auto}.abm-layout #propertiesMap{height:clamp(360px,62vh,620px);min-height:360px;flex:none}.abm-list-heading{top:-12px}}

/* V3: los grupos coincidentes permanecen en su punto, con lista seleccionable. */
.abm-precision.shared{color:#131353}.abm-cluster-popup{width:min(280px,68vw);color:#263750;font-family:Rubik,sans-serif}.abm-cluster-popup>strong,.abm-cluster-popup>small{display:block;margin-bottom:6px}.abm-cluster-popup>small{color:#64748b;font-size:11px}.abm-cluster-results{max-height:220px;overflow-y:auto;overscroll-behavior:contain}.abm-cluster-results button{display:flex;align-items:center;justify-content:space-between;gap:10px;text-align:left;width:100%;border:0;border-bottom:1px solid #e2e7ef;padding:8px 4px;background:#fff;color:#263750;font:12px/1.3 Rubik,sans-serif;cursor:pointer}.abm-cluster-results button:hover,.abm-cluster-results button:focus-visible{background:#f1f0fa}.abm-cluster-results button span{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.abm-cluster-results button b{white-space:nowrap;color:#131353}

/* V6 | Fichas compactas, interacción y ventanas de detalle. */
.abm-toolbar{justify-content:space-between;margin-bottom:10px}
.abm-map-key{display:inline-flex;align-items:center;gap:7px;color:#64748b;font-size:.73rem;line-height:1.4}
.abm-fit{min-height:38px;font-size:.8rem;font-weight:500;display:inline-flex;gap:7px;align-items:center}
.abm-layout{border-radius:18px}
.abm-layout .map-list{padding:12px;background:#f7f8fc}
.abm-list-heading{top:-12px;margin:0 -12px 10px;padding:12px 16px;background:#f7f8fc;font-family:'Plus Jakarta Sans',sans-serif;font-weight:700;letter-spacing:-.02em}
.abm-layout .map-list-card{grid-template-columns:minmax(88px,34%) minmax(0,1fr);gap:12px;background:#fff;border:1px solid #e2e6ef;padding:10px;border-radius:14px;align-items:stretch;transition:border-color .18s,box-shadow .18s,background .18s}
.abm-layout .map-list-card+.map-list-card{margin-top:10px}
.abm-layout .map-list-card.abm-selectable{cursor:pointer}
.abm-layout .map-list-card.abm-selectable:hover,.abm-layout .map-list-card.is-active{border-color:#9388dc;background:#fff;box-shadow:0 3px 14px rgba(19,19,83,.08)}
.abm-media,.abm-popup-media{position:relative;min-width:0;overflow:hidden;border-radius:10px;background:#eef0f5}
.abm-layout .map-list-card .abm-media img{height:100%;min-height:116px;max-height:none;display:block;width:100%;object-fit:cover;border-radius:0}
.abm-type{position:absolute;top:7px;left:7px;max-width:calc(100% - 14px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background:#fff;color:#131353;padding:4px 8px;border-radius:999px;font:500 .65rem/1.2 Rubik,sans-serif;box-shadow:0 1px 6px #13135315;pointer-events:none}
.abm-card-content{display:flex;flex-direction:column;gap:6px;justify-content:center}
.abm-layout .map-list-card .map-price,.abm-popup .abm-popup-price{display:flex;align-items:baseline;gap:5px;flex-wrap:wrap;margin:0;font:700 clamp(.95rem,1.3vw,1.16rem)/1.2 'Plus Jakarta Sans',sans-serif;letter-spacing:-.035em;color:#131353}
.abm-layout .map-price small,.abm-popup .abm-popup-price small{font:400 .66rem/1.2 Rubik,sans-serif;letter-spacing:0;color:#64748b;margin:0;display:inline}
.abm-layout .map-list-card h3,.abm-popup h3{font:600 .83rem/1.4 'Plus Jakarta Sans',sans-serif;color:#25334b;margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.abm-title-select{display:inline;padding:0;border:0;background:transparent;text-align:left;color:inherit;font:inherit;cursor:pointer}
.abm-title-select:disabled{cursor:default;opacity:1}
.abm-location{display:flex;gap:5px;align-items:center;min-width:0;font:.72rem/1.35 Rubik,sans-serif;color:#64748b}
.abm-location i{flex:none;color:#7985a0;font-size:.7rem}.abm-location span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.abm-meta{display:flex;flex-wrap:wrap;gap:5px 7px;font:.71rem/1.3 Rubik,sans-serif;color:#44526b}
.abm-meta>span{display:inline-flex;align-items:center;gap:4px;border:1px solid #e7ebf2;border-radius:7px;background:#f7f8fc;padding:4px 6px;white-space:nowrap}
.abm-meta i{color:#7585a4;font-size:.72rem}
.abm-card-actions{display:flex;align-items:stretch;gap:6px;flex-wrap:wrap;margin-top:3px;font-size:.72rem}
.abm-card-actions .abm-detail,.abm-popup .abm-detail{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:8px 10px;min-height:36px;background:#131353;color:#fff!important;border-radius:9px;text-decoration:none;font:500 .73rem/1.2 Rubik,sans-serif;transition:background .18s;flex:1 1 auto}
.abm-card-actions .abm-detail:hover,.abm-popup .abm-detail:hover{background:#29286f;color:#fff!important}
.abm-locate{display:inline-flex;align-items:center;justify-content:center;gap:5px;min-height:36px;padding:7px 9px;font:500 .73rem/1.2 Rubik,sans-serif;border-radius:9px;color:#131353;white-space:nowrap}
.abm-locate:disabled{display:none}.abm-title-select:focus-visible,.abm-locate:focus-visible,.abm-detail:focus-visible{outline:2px solid #7065d8;outline-offset:2px}
#propertiesMap .leaflet-popup-content-wrapper{border-radius:16px;padding:0;overflow:hidden;box-shadow:0 12px 34px #17234538}
#propertiesMap .leaflet-popup-content{margin:0;line-height:1.4}
#propertiesMap .leaflet-popup-close-button{top:7px;right:7px;background:#fff;color:#131353;border-radius:50%;width:28px;height:28px;line-height:28px;box-shadow:0 1px 6px #0002;z-index:2}
#propertiesMap .abm-popup{width:min(268px,calc(100vw - 82px));font-family:Rubik,sans-serif;color:#263750}
#propertiesMap .abm-popup-media{border-radius:0;min-height:105px}
#propertiesMap .abm-popup-media img{display:block;width:100%;height:clamp(100px,19vh,145px);object-fit:cover;margin:0;border-radius:0}
.abm-popup-body{display:grid;gap:9px;padding:13px 14px 14px}
.abm-popup .abm-popup-price{font-size:1.2rem}
.abm-popup h3{font-size:.85rem}
.abm-popup .abm-detail{width:100%;min-height:39px;margin-top:2px}
#propertiesMap .abm-cluster-popup{padding:15px;width:min(280px,calc(100vw - 82px))}
.abm-cluster-popup>strong{padding-right:22px;color:#131353;font-family:'Plus Jakarta Sans',sans-serif}
.abm-cluster-results button{border-radius:8px;padding:10px 6px}
@media(max-width:991.98px){.abm-layout .map-list-card{grid-template-columns:minmax(95px,30%) minmax(0,1fr)}.abm-layout .map-list{max-height:570px}.abm-layout .map-list-card .abm-media img{max-height:185px}.abm-layout .map-list-card .map-price{font-size:1.06rem}}
@media(max-width:420px){.abm-layout .map-list{padding:8px}.abm-list-heading{top:-8px;margin:0 -8px 8px;padding:10px 12px}.abm-layout .map-list-card{gap:9px;padding:8px;grid-template-columns:minmax(78px,30%) minmax(0,1fr)}.abm-meta>span{padding:3px 5px}.abm-map-key{font-size:.68rem}.abm-card-actions .abm-detail,.abm-locate{font-size:.69rem;padding:8px}.abm-popup-body{gap:7px;padding:10px 12px 12px}}
/* Evita que la altura intrínseca de una foto agrande la ficha. */
.abm-layout .map-list-card .abm-media{min-height:136px}
.abm-layout .map-list-card .abm-media img{position:absolute;inset:0;height:100%;min-height:0;max-height:none}
