/* Carte des lieux : carte publique. */
.cdl-carte {
	--cdl-bord: #dcdcde;
	--cdl-fond: #fff;
	--cdl-texte: #1d2327;
	--cdl-doux: #50575e;
	--cdl-accent: #2271b1;
	margin: 1.5em 0;
	color: var(--cdl-texte);
	font-size: 15px;
	line-height: 1.45;
}

.cdl-carte *,
.cdl-carte *::before,
.cdl-carte *::after {
	box-sizing: border-box;
}

.cdl-map {
	width: 100%;
	border: 1px solid var(--cdl-bord);
	border-radius: 8px;
	z-index: 0;
}

/* Barre d'outils */
.cdl-barre {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: flex-start;
	justify-content: space-between;
	margin-bottom: 10px;
}

.cdl-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	align-items: center;
	margin: 0;
	padding: 0;
	border: 0;
	min-width: 0;
}

.cdl-filtres legend {
	float: left;
	margin: 0 6px 0 0;
	padding: 0;
	font-weight: 600;
	font-size: 14px;
}

.cdl-filtre {
	display: inline-flex;
	gap: 6px;
	align-items: center;
	padding: 4px 10px 4px 6px;
	border: 1px solid var(--cdl-bord);
	border-radius: 999px;
	background: var(--cdl-fond);
	cursor: pointer;
	font-size: 14px;
	user-select: none;
}

.cdl-filtre:has(input:not(:checked)) {
	opacity: .55;
}

.cdl-filtre input {
	margin: 0;
	accent-color: var(--cdl-accent);
}

.cdl-raccourcis {
	display: inline-flex;
	gap: 8px;
	margin-left: 4px;
}

.cdl-lien-bouton {
	padding: 0;
	border: 0;
	background: none;
	color: var(--cdl-accent);
	text-decoration: underline;
	cursor: pointer;
	font: inherit;
	font-size: 14px;
}

.cdl-outils {
	display: flex;
	gap: 8px;
	flex: 0 1 auto;
}

.cdl-recherche {
	min-width: 0;
	width: 220px;
	max-width: 100%;
	padding: 6px 10px;
	border: 1px solid var(--cdl-bord);
	border-radius: 6px;
	font: inherit;
	font-size: 14px;
}

.cdl-bouton,
.cdl-carte a.cdl-bouton {
	display: inline-block;
	padding: 6px 12px;
	border: 1px solid var(--cdl-accent);
	border-radius: 6px;
	background: var(--cdl-accent);
	color: #fff;
	font: inherit;
	font-size: 14px;
	line-height: 1.3;
	text-decoration: none;
	cursor: pointer;
	white-space: nowrap;
}

.cdl-bouton:hover,
.cdl-bouton:focus {
	filter: brightness(1.1);
	color: #fff;
}

/* Pastilles et marqueurs */
.cdl-pastille {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	color: #fff;
	vertical-align: middle;
}

.cdl-pastille svg {
	width: 14px;
	height: 14px;
}

.cdl-marqueur {
	background: none;
	border: 0;
}

.cdl-marqueur-pin {
	position: absolute;
	left: 1px;
	top: 0;
	width: 32px;
	height: 32px;
	border: 2px solid #fff;
	border-radius: 50% 50% 50% 0;
	box-shadow: 0 2px 5px rgba(0, 0, 0, .35);
	transform: rotate(-45deg);
	transform-origin: center;
	margin-top: 1px;
}

.cdl-marqueur-icone {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	color: #fff;
	transform: rotate(45deg);
}

.cdl-marqueur-icone svg {
	width: 16px;
	height: 16px;
}

/* Fiche (popup) */
.cdl-carte .leaflet-popup-content {
	margin: 12px 14px;
	font-size: 14px;
	line-height: 1.45;
}

.cdl-fiche-image {
	display: block;
	width: 100%;
	max-height: 140px;
	object-fit: cover;
	border-radius: 6px;
	margin-bottom: 8px;
}

.cdl-fiche p {
	margin: 0 0 6px;
}

.cdl-fiche-cat {
	display: flex;
	align-items: center;
	gap: 6px;
	color: var(--cdl-doux);
	font-size: 13px;
}

.cdl-fiche-titre {
	margin: 2px 0 6px;
	font-size: 16px;
	line-height: 1.3;
}

.cdl-fiche-horaires {
	white-space: pre-line;
}

.cdl-fiche-description {
	color: var(--cdl-doux);
}

.cdl-fiche-description p:last-child {
	margin-bottom: 6px;
}

.cdl-fiche-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
	margin-top: 8px !important;
}

/* Compteur et liste */
.cdl-compteur {
	margin: 8px 0 4px;
	color: var(--cdl-doux);
	font-size: 13px;
}

.cdl-liste summary {
	cursor: pointer;
	font-weight: 600;
	padding: 4px 0;
}

.cdl-liste ul {
	list-style: none;
	margin: 6px 0 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 6px;
}

.cdl-item {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	width: 100%;
	padding: 8px;
	border: 1px solid var(--cdl-bord);
	border-radius: 6px;
	background: var(--cdl-fond);
	color: var(--cdl-texte);
	text-align: left;
	font: inherit;
	font-size: 14px;
	cursor: pointer;
}

.cdl-item:hover,
.cdl-item:focus {
	border-color: var(--cdl-accent);
}

.cdl-item-texte {
	display: flex;
	flex-direction: column;
}

.cdl-item-adresse {
	color: var(--cdl-doux);
	font-size: 13px;
}

@media (max-width: 600px) {
	.cdl-outils,
	.cdl-recherche {
		width: 100%;
	}
	.cdl-recherche {
		flex: 1;
	}
}
