/* V59 — correction d'affichage de l'explorateur, 2026-11 */
/* Les règles V55 avaient une grille à une seule carte dès 1450px. */
#explorer .explore-layout:not(.v12-list-only):not(.v12-map-only){display:grid!important;grid-template-columns:minmax(0,0.98fr) minmax(0,1.02fr)!important;gap:20px!important;align-items:start}
#explorer .map-column,#explorer .results-column{min-width:0;width:100%}
#explorer .listing-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;align-items:stretch}
#explorer .property-card{min-width:0;display:flex;flex-direction:column;height:100%;overflow:hidden}
#explorer .property-photo{height:174px!important;min-height:0!important;flex:none;background-position:center}
#explorer .property-body{padding:16px!important;display:flex;flex-direction:column;flex:1;gap:0;min-width:0}
#explorer .property-body h3{min-height:0;line-height:1.4;margin:7px 0 12px}
#explorer .property-numbers{flex-wrap:wrap;row-gap:8px}
#explorer .property-bottom{margin-top:auto!important;padding-top:14px!important;display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:9px!important}
#explorer .property-bottom>a{display:flex;align-items:center;justify-content:center;min-height:42px;padding:10px 12px!important;border-radius:10px;background:#0c8074;color:white!important;font-size:12px!important;text-align:center;font-weight:800;white-space:normal}
#explorer .property-bottom>small{display:block;line-height:1.4;min-height:0;font-size:11px;color:#647b76}
#explorer .property-bottom>.v26-detail{min-width:0;width:100%;margin:0!important;padding:0!important;overflow:hidden;border:1px solid #d9e7e1;border-radius:11px;background:#fff}
#explorer .v26-detail>summary{padding:12px 14px!important;list-style:none;display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:42px;font-size:12px;color:#17665a}
#explorer .v26-detail>summary::-webkit-details-marker{display:none}
#explorer .v26-detail>summary:after{content:'⌄';font-size:18px;line-height:1}
#explorer .v26-detail[open]>summary:after{content:'⌃'}
#explorer .v26-detail[open]{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:0 10px 10px!important}
#explorer .v26-detail[open]>summary{margin:0 -10px 2px;border-bottom:1px solid #e9f0ec}
#explorer .v26-detail>a,#explorer .v26-detail>button{display:flex!important;justify-content:center;align-items:center;width:100%;min-height:37px;padding:9px 10px!important;white-space:normal;overflow-wrap:anywhere;font-size:11px!important;line-height:1.35;border:1px solid #dbe8e2!important;border-radius:9px!important;background:#f5faf7!important;color:#14665a!important;text-align:center}
#explorer .v26-detail>small{font-size:11px;color:#687f79;text-align:center;line-height:1.4}
/* Outils cartographiques : pas de débordement horizontal ni de bouton tronqué. */
#explorer .ip-map-investor-tools{left:14px!important;right:14px!important;top:108px!important;width:auto!important;max-width:none!important;display:flex!important;flex-wrap:wrap!important;justify-content:flex-start;gap:5px!important;padding:7px!important;box-sizing:border-box}
#explorer .ip-map-investor-tools button{flex:0 1 auto;min-width:0;white-space:normal!important;font-size:11px!important;line-height:1.25;padding:9px 10px!important;border-radius:9px!important}
#explorer .ip-map-investor-tools .ip-investor-label{flex:0 0 auto;font-size:10px}
#explorer .ip-map-eyebrow{max-width:52%;padding:12px 14px!important}
#explorer .map-overlay{max-width:42%;font-size:10px!important;line-height:1.4;overflow-wrap:anywhere}
#explorer .map-wrap{height:min(74vh,730px)!important;min-height:490px!important}
#explorer .ip-map-credit{max-width:calc(100% - 90px);font-size:9px}
@media(max-width:1380px){
 #explorer .explore-layout:not(.v12-list-only):not(.v12-map-only){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
 #explorer .listing-grid{grid-template-columns:1fr!important}
 #explorer .property-photo{height:190px!important}
}
@media(max-width:1050px){
 #explorer .explore-layout:not(.v12-list-only):not(.v12-map-only){grid-template-columns:1fr!important}
 #explorer .map-column{position:relative!important;top:auto!important}
 #explorer .listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 #explorer .map-wrap{height:470px!important;min-height:0!important}
}
@media(max-width:650px){
 #explorer .listing-grid{grid-template-columns:1fr!important}
 #explorer .property-photo{height:195px!important}
 #explorer .map-wrap{height:420px!important;min-height:0!important}
 #explorer .ip-map-eyebrow{max-width:55%;padding:9px!important}
 #explorer .ip-map-eyebrow strong{font-size:14px!important}
 #explorer .map-overlay{max-width:39%;padding:8px!important}
 #explorer .ip-map-investor-tools{top:86px!important;left:9px!important;right:9px!important;padding:5px!important;gap:3px!important}
 #explorer .ip-map-investor-tools .ip-investor-label{display:none}
 #explorer .ip-map-investor-tools button{font-size:10px!important;padding:7px 8px!important}
}
/* En mode liste, exploiter toute la largeur sans cartes géantes. */
#explorer .v12-list-only #listing-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1350px){#explorer .v12-list-only #listing-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:950px){#explorer .v12-list-only #listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:650px){#explorer .v12-list-only #listing-grid{grid-template-columns:1fr!important}}
