/* ================================================================
   Vandeto Map Spotlight — landmarks.css
   Bande de points de repère sous la carte de l'annonce.
   ================================================================ */

.vmsl-lm {
	--vmsl-lm-accent: #ff1700;
	--vmsl-lm-ink:    #11151c;
	--vmsl-lm-mute:   #8b9099;
	--vmsl-lm-line:   rgba(17, 21, 28, .09);

	margin: 14px 0 0;
	opacity: 0;
	transform: translateY(6px);
	transition: opacity .45s ease, transform .45s cubic-bezier(.22, .8, .3, 1);
}

.vmsl-lm.vmsl-lm-in {
	opacity: 1;
	transform: none;
}

/* ── En-tête ─────────────────────────────────────────────────── */
.vmsl-lm-head {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 0 2px 9px;
	border-bottom: 1px solid var(--vmsl-lm-line);
}

.vmsl-lm-title {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--vmsl-lm-ink);
}

.vmsl-lm-src {
	font-size: 11px;
	color: var(--vmsl-lm-mute);
	white-space: nowrap;
}

/* ── Liste ───────────────────────────────────────────────────── */
.vmsl-lm-list {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 0;
	margin: 0;
	padding: 0;
	list-style: none;
}

.vmsl-lm-item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	min-width: 0;
	padding: 13px 14px 13px 0;
	margin: 0;
	list-style: none;
}

.vmsl-lm-item + .vmsl-lm-item {
	padding-left: 14px;
	border-left: 1px solid var(--vmsl-lm-line);
}

.vmsl-lm-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 32px;
	height: 32px;
	margin-top: 1px;
	border-radius: 10px;
	background: rgba(255, 23, 0, .07);
	color: var(--vmsl-lm-accent);
}

.vmsl-lm-text {
	display: flex;
	flex-direction: column;
	min-width: 0;
	flex: 1 1 auto;
	gap: 2px;
}

/* Le nom se replie sur deux lignes plutôt que d'être tronqué :
   la quasi-totalité des noms de lieux réels y tiennent en entier. */
.vmsl-lm-name {
	font-size: 13.5px;
	font-weight: 600;
	line-height: 1.3;
	color: var(--vmsl-lm-ink);
	overflow-wrap: anywhere;
	word-break: break-word;
	hyphens: auto;

	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.vmsl-lm-meta {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 11px;
	line-height: 1.3;
	color: var(--vmsl-lm-mute);
}

.vmsl-lm-kind {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.vmsl-lm-sep {
	opacity: .55;
}

.vmsl-lm-dist {
	flex: 0 0 auto;
	font-weight: 600;
	font-variant-numeric: tabular-nums;
	color: var(--vmsl-lm-ink);
}

/* ── Mobile : défilement horizontal natif, scroll-snap ───────── */
@media (max-width: 767px) {
	.vmsl-lm-list {
		display: flex;
		grid-template-columns: none;
		overflow-x: auto;
		overflow-y: hidden;
		scroll-snap-type: x mandatory;
		scroll-behavior: smooth;
		-webkit-overflow-scrolling: touch;
		scrollbar-width: none;
		padding-bottom: 2px;
	}

	.vmsl-lm-list::-webkit-scrollbar { display: none; }

	.vmsl-lm-item {
		flex: 0 0 86%;
		max-width: 340px;
		scroll-snap-align: start;
		padding: 13px 14px 13px 0;
	}

	/* Plus de place en hauteur sur mobile : jusqu'à trois lignes. */
	.vmsl-lm-name {
		-webkit-line-clamp: 3;
		line-clamp: 3;
	}

	.vmsl-lm-item + .vmsl-lm-item {
		padding-left: 14px;
	}

	.vmsl-lm-src { display: none; }
}

/* ── Fond de carte sombre : on suit ──────────────────────────── */
.vmsl-dark-page .vmsl-lm {
	--vmsl-lm-ink:  #f2f4f7;
	--vmsl-lm-mute: #98a0ab;
	--vmsl-lm-line: rgba(255, 255, 255, .12);
}

@media (prefers-reduced-motion: reduce) {
	.vmsl-lm {
		transition: none;
		transform: none;
	}
}
