/**
 * Section « Contenus à proximité » : carte différée, marqueurs SVG bicolores,
 * légende, repli « Voir plus ». Les couleurs viennent des variables de la
 * palette du thème (définies sur la section côté PHP), aucun hexadécimal.
 */

.wlc-nearby {
	margin: 2.5rem 0 1.5rem;
}

.wlc-nearby-list .wlc-nearby-hidden {
	display: none;
}

.wlc-nearby-more-wrap {
	margin: 0.5rem 0 0;
	text-align: center;
}

/* Intro éditoriale (champ GD de la fiche, réglage « Champ d'intro ») */
.wlc-nearby__intro {
	max-width: 70ch;
	margin-bottom: 1.25rem;
}

/* Distance sur la vignette (élément optionnel du gabarit commun) */
.wlc-nearby-dist {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.85rem;
	opacity: 0.75;
	margin: 0.1rem 0 0.3rem;
}

.wlc-nearby-dist .wlc-icon {
	flex: none;
}

/* Carte */
.wlc-nearby-map-wrap {
	margin-top: 1rem;
	position: relative;
}

.wlc-nearby-map {
	height: 425px;
	border-radius: 0.5rem;
	z-index: 0;
}

.wlc-nearby-divicon {
	background: none;
	border: none;
}

.wlc-nearby-divicon svg {
	display: block;
	filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.3));
}

.wlc-nearby-circle {
	stroke: var(--wlc-nearby-circle);
	fill: var(--wlc-nearby-circle);
}

/* Légende */
.wlc-nearby-legend {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 1.5rem;
	align-items: center;
	list-style: none;
	margin: 0.5rem 0 0;
	padding: 0;
	font-size: 0.875rem;
}

.wlc-nearby-legend li {
	display: flex;
	align-items: center;
	gap: 0.4rem;
}

.wlc-nearby-legend__pin svg {
	display: block;
	width: 18px;
	height: 25px;
}

/* Infobulles */
.wlc-nearby-popup {
	max-width: 230px;
}

.wlc-nearby-popup img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 0.375rem;
	margin-bottom: 0.4rem;
}

/* inline (et non block) : les étoiles de classement du thème ([wlc-stars],
 * ajoutées au rendu du popup) se posent à droite du nom, sur la même ligne. */
.wlc-nearby-popup__title {
	display: inline;
	font-weight: 600;
	line-height: 1.3;
}

.wlc-nearby-popup .wlc-stars {
	font-size: 0.875em;
}

.wlc-nearby-popup__rating,
.wlc-nearby-popup__dist {
	display: block;
	margin-top: 0.2rem;
}

@media (max-width: 600px) {
	.wlc-nearby-map {
		height: 320px;
	}
}
