/* Carte Leaflet SW */
.sw-leaflet-map {
	width: 100%;
	height: 650px;
	z-index: 0; /* évite que la carte passe au-dessus d'un header sticky */
}

/* Neutralise les styles de thème qui cassent les tuiles et icônes */
.sw-leaflet-map img {
	max-width: none !important;
	max-height: none !important;
	box-shadow: none !important;
}

.sw-leaflet-map .sw-leaflet-map__popup img {
	max-width: 100% !important;
	height: auto;
}

.sw-leaflet-map__popup {
	font-size: 14px;
	line-height: 1.45;
}

.sw-leaflet-map__popup p {
	margin: 0 0 .6em;
}

.sw-leaflet-map__popup p:last-child {
	margin-bottom: 0;
}

.sw-leaflet-map__title {
	margin: 0 0 .5em;
	font-size: 16px;
	line-height: 1.25;
}

/* Fond OSM sombre : inversion des tuiles (les repères et popups ne sont pas affectés) */
.sw-leaflet-map .sw-tiles-dark {
	filter: invert(1) hue-rotate(180deg) brightness(.9) contrast(.9) saturate(.6);
}

.sw-leaflet-map:has(.sw-tiles-dark) {
	background: #1b1b1b;
}

/* Popup scrollable : ascenseur visible et discret */
.sw-leaflet-map .leaflet-popup-scrolled {
	overflow-y: auto;
	overscroll-behavior: contain;
	padding-right: 8px;
	border: 0;
	scrollbar-width: thin;
}
