/* Carte des sites touristiques – styles front */

.cdf-carte-wrap {
	margin: 1.5rem 0;
}

.cdf-carte {
	width: 100%;
	min-height: 240px;
	border-radius: 12px;
	overflow: hidden;
	z-index: 0;
	background: #e8f0ef;
}

.cdf-carte-empty {
	margin: 1rem 0;
	padding: 1rem 1.25rem;
	background: #f7f4ee;
	border-radius: 8px;
	color: #274851;
	font-size: 0.95rem;
}

/* ── Filtres ─────────────────────────────────────────────── */
.cdf-carte-filtres {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-bottom: 1rem;
}

.cdf-filtre {
	border: 1px solid #cfd9d7;
	background: #fff;
	color: #274851;
	font: inherit;
	font-size: 0.85rem;
	line-height: 1;
	padding: 0.55rem 1rem;
	border-radius: 50px;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.cdf-filtre:hover {
	border-color: #49b8b7;
	color: #49b8b7;
}

.cdf-filtre.is-active {
	background: #49b8b7;
	border-color: #49b8b7;
	color: #fff;
}

/* ── Pins ────────────────────────────────────────────────── */
.cdf-pin {
	background: none;
	border: none;
}

.cdf-pin svg {
	display: block;
	filter: drop-shadow( 0 2px 3px rgba( 0, 0, 0, 0.35 ) );
}

/* ── Popup ───────────────────────────────────────────────── */
.leaflet-popup-content-wrapper {
	border-radius: 12px;
	padding: 0;
	overflow: hidden;
}

.leaflet-popup-content {
	margin: 0;
	width: 260px !important;
}

.cdf-popup-media img {
	display: block;
	width: 100%;
	height: 140px;
	object-fit: cover;
}

.cdf-popup-body {
	padding: 0.9rem 1rem 1rem;
}

.cdf-popup-type {
	display: inline-block;
	font-size: 0.68rem;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: #49b8b7;
	margin-bottom: 0.35rem;
}

.cdf-popup-title {
	margin: 0 0 0.4rem;
	font-size: 1.1rem;
	line-height: 1.25;
	color: #274851;
}

.cdf-popup-excerpt {
	margin: 0 0 0.75rem;
	font-size: 0.85rem;
	line-height: 1.55;
	color: #4a5d62;
}

.cdf-popup-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
}

.cdf-popup-link {
	display: inline-block;
	background: #49b8b7;
	color: #fff !important;
	text-decoration: none;
	font-size: 0.82rem;
	font-weight: 600;
	padding: 0.5rem 1rem;
	border-radius: 50px;
}

.cdf-popup-link:hover {
	opacity: 0.88;
}

.cdf-popup-ext {
	font-size: 0.8rem;
	color: #274851;
	text-decoration: underline;
}

/* ── Responsive ──────────────────────────────────────────── */
@media ( max-width: 600px ) {
	.cdf-carte {
		min-height: 320px;
	}

	.leaflet-popup-content {
		width: 220px !important;
	}

	.cdf-popup-media img {
		height: 120px;
	}
}
