.dipro-basemaps { max-width: calc(100vw - 40px); font-family: Segoe UI, Arial, sans-serif; }
.dipro-basemaps-title { display: block; margin-bottom: 6px; font-size: 12px; }
.dipro-basemaps label { cursor: pointer; padding: 3px 0; }
.dipro-basemaps input:focus-visible { outline: 2px solid #0752c8; outline-offset: 2px; }
/* Keep long provider credits readable within narrow map/preview containers. */
.leaflet-container .leaflet-control-attribution { max-width: min(620px, calc(100% - 20px)); white-space: normal; overflow-wrap: anywhere; }

/* The mobile property popup takes priority over the basemap selector. */
.dipro-basemaps:not(.leaflet-control-layers-expanded) .dipro-basemaps-title { display: none; }
@media (max-width: 760px) {
 .leaflet-container.dipro-popup-open .dipro-basemaps { display: none; }
 .dipro-basemaps.leaflet-control-layers-expanded { max-width: calc(100vw - 90px); }
}
