/* Couleur des contrôles d'une row Carte (zoom, plein écran, calques, boussole, échelle), sur le site et dans l'éditeur.
   assets/js/maps-row.js pose --map-ctrl (fond), --map-ctrl-text (texte) et la classe r-map-ctrl (+ r-map-ctrl-dark si le fond est foncé : icônes inversées) */
.r-map-ctrl .leaflet-bar,
.r-map-ctrl .leaflet-control-layers,
.r-map-ctrl .leaflet-control-container .leaflet-compass,
.r-map-ctrl .leaflet-control.leaflet-compass {
	background-color: var(--map-ctrl);
	color: var(--map-ctrl-text);
	border-color: var(--map-ctrl-text);
}

.r-map-ctrl .leaflet-bar a,
.r-map-ctrl .leaflet-bar a:hover,
.r-map-ctrl .leaflet-bar a:focus {
	background-color: transparent;
	color: var(--map-ctrl-text);
	border-bottom-color: var(--map-ctrl-text);
}

.r-map-ctrl .leaflet-bar a:hover,
.r-map-ctrl .leaflet-bar a:focus {
	background-color: rgba(127, 127, 127, 0.25);
}

.r-map-ctrl .leaflet-control-layers-expanded {
	color: var(--map-ctrl-text);
}

.r-map-ctrl .leaflet-control-scale-line {
	background: var(--map-ctrl);
	color: var(--map-ctrl-text);
	border-color: var(--map-ctrl-text);
}

/* Icônes en image (calques, plein écran, boussole) : noires, inversées sur un fond foncé */
.r-map-ctrl-dark .leaflet-control-layers-toggle,
.r-map-ctrl-dark .leaflet-control-fullscreen a,
.r-map-ctrl-dark .leaflet-compass .compass-icon {
	filter: invert(1);
}

/* Carte du module Cartes : repère d'une catégorie (icône au centre), fenêtre d'un point et filtre par catégorie */
.r-map-pin {
	position: relative;
	background: none;
	border: 0;
}

.r-map-pin-glyph {
	position: absolute;
	top: 5px;
	left: 0;
	width: 30px;
	height: 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
}

.r-map-pin-glyph-dot {
	top: 0;
	height: 30px;
}

.r-map-pin-i {
	font-size: 12px;
	line-height: 1;
}

.r-map-pop {
	display: flex;
	flex-direction: column;
	gap: .25rem;
	min-width: 160px;
	font-size: .9rem;
	line-height: 1.4;
}

.r-map-pop-name {
	font-size: 1rem;
}

.r-map-pop-cat {
	font-size: .8rem;
	opacity: .65;
}

.r-map-pop-desc {
	margin: .25rem 0 0;
}

.r-map-pop a {
	color: var(--theme-primary, #1266f1);
	text-decoration: none;
}

.r-map-pop a:hover {
	text-decoration: underline;
}

.r-map-filter {
	display: flex;
	flex-wrap: wrap;
	gap: .5rem;
	margin-bottom: .75rem;
}

.r-map-chip {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	padding: .4rem .9rem;
	font: inherit;
	font-size: .9rem;
	color: inherit;
	background: transparent;
	border: 1px solid color-mix(in srgb, currentColor 25%, transparent);
	border-radius: 999px;
	cursor: pointer;
}

.r-map-chip.is-active {
	color: #fff;
	background: var(--theme-primary, #1266f1);
	border-color: var(--theme-primary, #1266f1);
}
