/* ── Médialo – Carte Leaflet ─────────────────────────────────────────────────
   Shortcode : [medialo_carte]
   ─────────────────────────────────────────────────────────────────────────── */

/* Conteneur */
.medialo-carte {
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e2e2;
}

/* ── Marqueurs ───────────────────────────────────────────────────────────────── */

.ml-carte-marker {
	display: flex;
	align-items: center;
	justify-content: center;
}

.ml-carte-marker__dot {
	display: block;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2.5px solid #fff;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.30);
	transition: transform 0.15s ease;
}

.ml-carte-marker--actif .ml-carte-marker__dot {
	background: #17C9AB;
}

.ml-carte-marker--inactif .ml-carte-marker__dot {
	background: #9ca3af;
}

.ml-carte-marker:hover .ml-carte-marker__dot,
.ml-carte-marker:focus .ml-carte-marker__dot {
	transform: scale(1.35);
}

/* ── Popup ───────────────────────────────────────────────────────────────────── */

.ml-carte-popup {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 2px 0;
}

.ml-carte-popup__nom {
	font-size: 0.875rem;
	font-weight: 700;
	color: #111;
}

.ml-carte-popup__count {
	font-size: 0.8rem;
	color: #17C9AB;
	font-weight: 600;
}

/* Surcharge bulle Leaflet */
.leaflet-popup-content-wrapper {
	border-radius: 6px !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15) !important;
}

.leaflet-popup-content {
	margin: 10px 14px !important;
}

.ml-carte-popup__adresse,
.ml-carte-popup__horaire {
	font-size: 0.78rem;
	color: #555;
}

.ml-carte-popup__pubs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-top: 6px;
}

.ml-carte-popup__pub-badge {
	display: inline-block;
	padding: 2px 7px;
	border-radius: 10px;
	font-size: 0.72rem;
	font-weight: 600;
	color: #fff;
	white-space: nowrap;
}

/* Icône SVG inline : retirer le fond blanc par défaut de DivIcon */
.ml-carte-pt-icon {
	background: none !important;
	border: none !important;
}

/* ── Légende points de distribution ─────────────────────────────────────────── */

.ml-carte-legend {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
	font-size: 0.82rem;
	min-width: 180px;
	max-width: 240px;
	overflow: hidden;
}

.ml-carte-legend__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	padding: 8px 10px 8px 12px;
	border-bottom: 1px solid #e5e7eb;
	color: #111;
	white-space: nowrap;
}

.ml-carte-legend--collapsed .ml-carte-legend__header {
	border-bottom: none;
}

.ml-carte-legend__title {
	font-weight: 700;
	font-size: 0.82rem;
}

.ml-carte-legend__toggle {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	padding: 0;
	border: 1px solid #d1d5db;
	border-radius: 4px;
	background: #f9fafb;
	color: #555;
	font-size: 9px;
	cursor: pointer;
	flex-shrink: 0;
	transition: background 0.15s ease;
}

.ml-carte-legend__toggle:hover {
	background: #e5e7eb;
	color: #111;
}

.ml-carte-legend__items {
	padding: 4px 0;
	overflow-y: auto;
	max-height: 300px;
}

.ml-carte-legend__item {
	display: flex;
	align-items: center;
	gap: 8px;
	cursor: pointer;
	padding: 4px 12px;
	color: #222;
	user-select: none;
	transition: background 0.1s ease;
}

.ml-carte-legend__item:hover {
	background: #f3f4f6;
}

.ml-carte-legend__item input[type="checkbox"] {
	margin: 0;
	flex-shrink: 0;
	cursor: pointer;
}

.ml-carte-legend__dot {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* Ligne "Tout sélectionner" */
.ml-carte-legend__item--master {
	border-bottom: 1px solid #e5e7eb;
	padding-bottom: 6px;
	margin-bottom: 2px;
	font-weight: 600;
	color: #111;
}

.ml-carte-legend__dot--master {
	background: linear-gradient(135deg, #E63946 50%, #2196F3 50%);
}
