/**
 * Carte Leaflet — shortcode [abrinor_map]
 */

/* Pleine largeur viewport (sort du conteneur Salient / colonne WPBakery). */
.abrinor-map-wrap--full {
	width: 100vw;
	max-width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	box-sizing: border-box;
}

.abrinor-map-wrap .abrinor-map {
	position: relative;
	width: 100%;
	min-height: 120px;
	z-index: 0;
	background: #e8e8e8;
	overflow: hidden;
}

.abrinor-map__canvas {
	width: 100%;
	height: 100%;
	min-height: inherit;
}

.abrinor-map.abrinor-map--poi-loading::after {
	content: '';
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 1000;
	width: 18px;
	height: 18px;
	border: 2px solid rgba(0, 0, 0, 0.15);
	border-top-color: #1a1a1a;
	border-radius: 50%;
	animation: abrinor-map-spin 0.7s linear infinite;
	pointer-events: none;
}

@keyframes abrinor-map-spin {
	to {
		transform: rotate(360deg);
	}
}

/* Évite les artefacts de rendu sur les tuiles lors du filtre gris. */
.abrinor-map .leaflet-container {
	background: #e8e8e8;
}

.abrinor-map .leaflet-tile-pane {
	filter: grayscale(100%);
}

.abrinor-map .leaflet-tile {
	mix-blend-mode: normal;
}

.abrinor-map .leaflet-marker-pane {
	z-index: 650;
}

.abrinor-map .leaflet-control-attribution {
	font-size: 10px;
	line-height: 1.3;
}

/* Zone approximative du bien (pas de marqueur au centre). */
.abrinor-map .abrinor-map__area {
	pointer-events: none;
}

/* POI — pictos par catégorie */
.abrinor-map__poi {
	background: transparent !important;
	border: none !important;
	width: 24px !important;
	height: 24px !important;
	margin-left: -12px !important;
	margin-top: -12px !important;
}

.abrinor-map__poi {
	cursor: pointer;
}

.abrinor-map__poi-inner {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.28);
	color: #fff;
	pointer-events: auto;
}

.abrinor-map .abrinor-map__tooltip {
	margin-bottom: 6px;
	padding: 6px 10px;
	border: none;
	border-radius: 4px;
	background: #1a1a1a;
	color: #fff;
	font-size: 13px;
	line-height: 1.35;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.22);
}

.abrinor-map .abrinor-map__tooltip::before {
	border-top-color: #1a1a1a;
}

.abrinor-map .abrinor-map__popup .leaflet-popup-content-wrapper {
	border-radius: 6px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.abrinor-map .abrinor-map__popup .leaflet-popup-content {
	margin: 10px 14px;
	font-size: 13px;
	line-height: 1.4;
	color: #1a1a1a;
}

.abrinor-map .abrinor-map__popup .leaflet-popup-tip {
	background: #fff;
}

.abrinor-map__poi--transport .abrinor-map__poi-inner {
	background: #3d5a80;
}

.abrinor-map__poi--shop .abrinor-map__poi-inner {
	background: #6b5b4c;
}

.abrinor-map__poi--food .abrinor-map__poi-inner {
	background: #9c6644;
}

.abrinor-map__poi--health .abrinor-map__poi-inner {
	background: #9b2226;
}

.abrinor-map__poi--education .abrinor-map__poi-inner {
	background: #386641;
}

.abrinor-map__poi--worship .abrinor-map__poi-inner {
	background: #5c4d7d;
}

.abrinor-map__poi--bank .abrinor-map__poi-inner {
	background: #2d6a4f;
}

.abrinor-map__poi--default .abrinor-map__poi-inner {
	background: #6c757d;
}
