.ldp-carte {
	--ldp-color-primary: #2e3336;
	--ldp-color-accent: #0574b9;
	--ldp-color-accent-light: #eaf1ff;
	--ldp-color-text: #454545;
	--ldp-color-muted: #6b7684;
	--ldp-color-border: #e1e5ea;

	font-family: 'Lato', sans-serif;
	font-size: 16px;
	font-weight: 300;
	color: var(--ldp-color-text);

	display: grid;
	grid-template-columns: 6fr 4fr;
	gap: 40px;
	align-items: start;
}

@media (max-width: 900px) {
	.ldp-carte {
		grid-template-columns: 1fr;
	}
}

.ldp-carte__map-wrap {
	position: relative;
	overflow: hidden;
	border-radius: 12px;
	background: #ffffff;
}

.ldp-carte__map-wrap svg {
	display: block;
	width: 100%;
	height: auto;
	overflow: hidden;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.ldp-carte__map-wrap.is-zoomed svg {
	opacity: 0;
	pointer-events: none;
}

.ldp-carte__regions {
	transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ldp-map__region {
	fill: #ffffff;
	stroke: var(--ldp-color-primary);
	stroke-width: 0.6;
	cursor: pointer;
	transition: fill 0.2s ease;
}

.ldp-map__region:hover {
	fill: var(--ldp-color-primary);
}

.ldp-map__region.is-active {
	fill: var(--ldp-color-primary);
}

.ldp-carte__badges {
	position: absolute;
	inset: 0;
	pointer-events: none;
	opacity: 1;
	transition: opacity 0.5s ease;
}

.ldp-carte__map-wrap.is-zoomed .ldp-carte__badges {
	opacity: 0;
}

.ldp-carte__badge {
	position: absolute;
	transform: translate(-50%, -50%);
	background: var(--ldp-color-primary);
	color: #ffffff;
	border: 1px solid var(--ldp-color-border);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 14px;
	font-weight: 600;
	white-space: nowrap;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
	transition: background 0.2s ease, color 0.2s ease;
}

/* Synchronisée en JS avec le survol de la forme SVG du département
   correspondant (pas un vrai :hover — la bulle est transparente aux
   événements souris, posée par-dessus la carte). */
.ldp-carte__badge.is-hovered {
	background: #ffffff;
	color: var(--ldp-color-primary);
}

.ldp-carte__detail {
	position: absolute;
	inset: 0;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.5s ease;
}

.ldp-carte__map-wrap.is-zoomed .ldp-carte__detail {
	opacity: 1;
	pointer-events: auto;
}

.ldp-carte__detail-map {
	position: absolute;
	inset: 0;
	/* Reteinte le fond de carte MapTiler (multicolore) vers nos couleurs :
	   grayscale retire les teintes d'origine, sepia+hue-rotate réintroduit une
	   seule teinte proche de #2E3336, saturate/brightness gardent un rendu
	   clair et peu saturé plutôt qu'un bleu vif. */
	filter: grayscale(1) sepia(0.2) hue-rotate(175deg) saturate(0.6) brightness(1.2);
}

.ldp-carte__detail-badge {
	background: var(--ldp-color-primary);
	color: #ffffff;
	border: 1px solid var(--ldp-color-border);
	border-radius: 999px;
	padding: 4px 14px;
	font-size: 13px;
	font-weight: 700;
	white-space: nowrap;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	cursor: default;
	transition: background 0.2s ease, color 0.2s ease;
}

.ldp-carte__detail-badge:hover {
	background: #ffffff;
	color: var(--ldp-color-primary);
}

.ldp-carte__panel {
	min-width: 0;
	padding-top: 12px;
}

.ldp-carte__reset {
	display: inline-block;
	background: none;
	border: none;
	color: var(--ldp-color-accent);
	font-weight: 600;
	cursor: pointer;
	padding: 0;
	margin-bottom: 12px;
}

.ldp-carte__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
}

.ldp-carte__filter {
	flex: 1 1 140px;
	padding: 8px 10px;
	border: 1px solid var(--ldp-color-border);
	border-radius: 6px;
	background: #fff;
	color: var(--ldp-color-text);
	font-size: 13px;
}

.ldp-carte__filters-reset {
	flex: 0 0 auto;
	border: none;
	background: none;
	color: var(--ldp-color-muted);
	text-decoration: underline;
	font-size: 13px;
	cursor: pointer;
	padding: 8px 4px;
}

.ldp-carte__heading {
	margin: 0 0 16px;
	color: var(--ldp-color-primary);
	font-family: 'Lato', sans-serif;
	font-size: 20px;
	font-weight: 400;
}

.ldp-carte__results {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
}

@media (max-width: 560px) {
	.ldp-carte__results {
		grid-template-columns: 1fr;
	}
}

.ldp-carte__placeholder,
.ldp-carte__loading {
	grid-column: 1 / -1;
	color: var(--ldp-color-muted);
}

.ldp-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid var(--ldp-color-border);
	border-radius: 10px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.ldp-card:hover {
	box-shadow: 0 10px 24px rgba(20, 30, 50, 0.12);
	transform: translateY(-2px);
}

.ldp-card__image {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--ldp-color-accent-light) center / cover no-repeat;
}

.ldp-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	gap: 6px;
	padding: 14px 16px;
}

.ldp-card__title-row {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px;
}

.ldp-card__title {
	font-size: 15px;
	font-weight: 600;
	color: var(--ldp-color-primary);
}

.ldp-card__price {
	white-space: nowrap;
	font-weight: 700;
	color: var(--ldp-color-accent);
}

.ldp-card__meta {
	font-size: 13px;
	color: var(--ldp-color-muted);
}

.ldp-carte__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	margin-top: 20px;
}

.ldp-carte__prev,
.ldp-carte__next {
	width: 36px;
	height: 36px;
	border: 1px solid var(--ldp-color-accent);
	border-radius: 50%;
	background: #fff;
	color: var(--ldp-color-accent);
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
}

.ldp-carte__prev:disabled,
.ldp-carte__next:disabled {
	border-color: var(--ldp-color-border);
	color: var(--ldp-color-muted);
	cursor: not-allowed;
}

.ldp-carte__page-indicator {
	color: var(--ldp-color-muted);
	font-size: 14px;
	font-weight: 600;
}
