/*
 * Mode « API gouv FR » (IGN Géoplateforme) : compléments Leaflet.
 * Chargé uniquement quand l'option MAP_PROVIDER vaut « ign ».
 */

/* Contexte d'empilement propre à la carte : les calques Leaflet (z-index 400+)
   restent sous le bouton de géolocalisation (z-index 5). */
#nrv-googlemap-by-nrv-map-element.leaflet-container {
	z-index: 0;
}

/* Marqueurs SVG (équivalent google.maps.Symbol) */
.leaflet-marker-icon.nrv-ign-marker {
	background: none;
	border: none;
}
.nrv-ign-marker-inner,
.nrv-ign-marker-inner svg {
	display: block;
}
.nrv-ign-marker.nrv-ign-bounce .nrv-ign-marker-inner {
	animation: nrv-ign-bounce 0.7s ease-in-out infinite;
}
@keyframes nrv-ign-bounce {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-15px); }
}

/* Regroupement des marqueurs avec les images m1…m5 (comme en mode Google) */
.leaflet-marker-icon.nrv-ign-cluster {
	background: none;
	border: none;
}
.nrv-ign-cluster-inner {
	background-repeat: no-repeat;
	background-position: 0 0;
	color: #000;
	font: bold 11px Arial, sans-serif;
	text-align: center;
	cursor: pointer;
}

/* Bouton plein écran */
.leaflet-bar a.nrv-ign-fullscreen {
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23444' d='M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
}

/* Message « Ctrl + molette » / « deux doigts » (gestes coopératifs) */
.nrv-ign-gesture-hint {
	position: absolute;
	inset: 0;
	z-index: 1001;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: center;
	font-size: 18px;
	color: #fff;
	background: rgba(0, 0, 0, 0.45);
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.3s ease;
}
.nrv-ign-gesture-hint.visible {
	opacity: 1;
}
