.qua-map {
	--qua-map-primary: #3655bb;
	--qua-map-sponsored: #94a3b8;
	--qua-map-mixed: #6b8fd4;
	--qua-map-sidebar-width: 280px;
	--qua-map-list-width: 320px;
	--qua-map-gap: #e8eef4;
	--qua-map-water: #5eb8e8;
	--qua-map-water-stroke: #0284c7;
	--qua-map-surface: #f8fafc;
	--qua-map-border: #e2e8f0;
	--qua-map-shadow: 0 4px 24px rgba(15, 23, 42, 0.08);
	position: relative;
	font-family: inherit;
	margin: 0 0 2rem;
}

.qua-map__toolbar {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1.25rem;
	align-items: center;
	margin-bottom: 0.75rem;
	position: relative;
	z-index: 1000;
}

.qua-map__search-wrap {
	flex: 1 1 220px;
	max-width: 420px;
}

.qua-map__search {
	width: 100%;
	padding: 0.65rem 0.9rem;
	border: 1px solid var(--qua-map-border);
	border-radius: 10px;
	font-size: 0.95rem;
	background: #fff;
	box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qua-map__search:focus {
	outline: none;
	border-color: var(--qua-map-primary);
	box-shadow: 0 0 0 3px rgba(54, 85, 187, 0.15);
}

.qua-map__search-results {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-width: 420px;
	background: #fff;
	border: 1px solid var(--qua-map-border);
	border-radius: 10px;
	box-shadow: var(--qua-map-shadow);
	max-height: 260px;
	overflow-y: auto;
	margin-top: 4px;
}

.qua-map__search-results button {
	display: block;
	width: 100%;
	text-align: left;
	padding: 0.55rem 0.85rem;
	border: none;
	background: none;
	cursor: pointer;
	font-size: 0.92rem;
	color: #1e293b;
}

.qua-map__search-results button:hover,
.qua-map__search-results button:focus {
	background: #f1f5f9;
}

.qua-map__search-empty {
	margin: 0;
	padding: 0.55rem 0.85rem;
	font-size: 0.88rem;
	color: #64748b;
}

.qua-map__opacity {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.85rem;
	color: #64748b;
}

.qua-map__opacity input[type='range'] {
	width: 110px;
	accent-color: var(--qua-map-primary);
}

.qua-map__map-controls {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 900;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(15, 23, 42, 0.14);
	border: 1px solid var(--qua-map-border);
	overflow: hidden;
}

.qua-map__map-control {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: none;
	border-bottom: 1px solid var(--qua-map-border);
	background: #fff;
	color: #334155;
	cursor: pointer;
	transition: background 0.12s ease;
}

.qua-map__map-control:last-child {
	border-bottom: none;
}

.qua-map__map-control:hover {
	background: #f1f5f9;
}

.qua-map__map-control--view {
	height: 38px;
}

.qua-map__canvas--3d {
	position: absolute;
	inset: 0;
	z-index: 2;
}

.qua-map--mode-3d .qua-map__canvas-wrap {
	background: #cce8f8;
	border-color: #b6d6ea;
}

.qua-map--mode-3d .qua-map__legend {
	background: rgba(255, 255, 255, 0.94);
	border-color: rgba(226, 232, 240, 0.95);
	color: #334155;
}

.maplibregl-popup.qua-map__popup-3d .maplibregl-popup-content {
	background: rgba(15, 23, 42, 0.94);
	color: #f8fafc;
	border-radius: 8px;
	padding: 0.45rem 0.65rem;
	font-size: 0.82rem;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}

.maplibregl-popup.qua-map__popup-3d .maplibregl-popup-tip {
	border-top-color: rgba(15, 23, 42, 0.94);
}

.qua-map__layout {
	display: flex;
	gap: 0.75rem;
	position: relative;
	--qua-map-stage-h: 560px;
	min-height: var(--qua-map-stage-h);
	height: var(--qua-map-stage-h);
	align-items: stretch;
}

.qua-map__filters {
	flex: 0 0 var(--qua-map-sidebar-width);
	max-width: var(--qua-map-sidebar-width);
	background: #fff;
	border: 1px solid var(--qua-map-border);
	border-radius: 14px;
	padding: 1rem 1.1rem;
	overflow-y: auto;
	max-height: 560px;
	box-shadow: var(--qua-map-shadow);
}

.qua-map__filters-title {
	margin: 0 0 1rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.qua-map__filter-group {
	margin-bottom: 1.1rem;
}

.qua-map__filter-label {
	display: block;
	font-size: 0.82rem;
	font-weight: 600;
	color: #475569;
	margin-bottom: 0.45rem;
}

.qua-map__dual-range {
	--range-min-pct: 0%;
	--range-max-pct: 100%;
	padding: 0.15rem 0 0;
}

.qua-map__dual-range-track {
	position: relative;
	height: 28px;
	margin-bottom: 2.35rem;
}

.qua-map__dual-range-rail {
	position: absolute;
	left: 0;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 6px;
	background: #e8edf3;
	border-radius: 999px;
	pointer-events: none;
}

.qua-map__dual-range-fill {
	position: absolute;
	top: 0;
	bottom: 0;
	left: var(--range-min-pct);
	width: calc(var(--range-max-pct) - var(--range-min-pct));
	background: var(--qua-map-primary);
	border-radius: 999px;
}

.qua-map__dual-range-input {
	position: absolute;
	left: 0;
	width: 100%;
	top: 50%;
	transform: translateY(-50%);
	margin: 0;
	height: 28px;
	padding: 0;
	pointer-events: none;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
}

.qua-map__dual-range-input--min {
	z-index: 4;
}

.qua-map__dual-range-input--max {
	z-index: 5;
}

.qua-map__dual-range-input::-webkit-slider-runnable-track {
	height: 6px;
	background: transparent;
	border: none;
}

.qua-map__dual-range-input::-moz-range-track {
	height: 6px;
	background: transparent;
	border: none;
}

.qua-map__dual-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	appearance: none;
	width: 22px;
	height: 22px;
	margin-top: -8px;
	border-radius: 50%;
	border: none;
	background: radial-gradient(circle at center, #94a3b8 2.5px, #fff 3px);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
	cursor: grab;
	pointer-events: auto;
}

.qua-map__dual-range-input:active::-webkit-slider-thumb {
	cursor: grabbing;
}

.qua-map__dual-range-input::-moz-range-thumb {
	width: 22px;
	height: 22px;
	border: none;
	border-radius: 50%;
	background: radial-gradient(circle at center, #94a3b8 2.5px, #fff 3px);
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.16);
	cursor: grab;
	pointer-events: auto;
}

.qua-map__dual-range-input:active::-moz-range-thumb {
	cursor: grabbing;
}

.qua-map__dual-range-bubble {
	position: absolute;
	top: calc(100% + 12px);
	left: 0;
	transform: translateX(-50%);
	padding: 0.38rem 0.72rem;
	background: #f1f5f9;
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 600;
	color: #475569;
	line-height: 1;
	white-space: nowrap;
	pointer-events: none;
	user-select: none;
}

.qua-map__canton-list {
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem;
}

.qua-map__canton-chip {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	padding: 0.25rem 0.55rem;
	border: 1px solid var(--qua-map-border);
	border-radius: 6px;
	font-size: 0.78rem;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	background: #fff;
	transition: border-color 0.12s ease, background 0.12s ease;
}

.qua-map__canton-chip:hover {
	border-color: var(--qua-map-primary);
}

.qua-map__canton-chip--active {
	border-color: var(--qua-map-primary);
	background: #f0f4ff;
	color: var(--qua-map-primary);
}

.qua-map__canton-chip input {
	position: absolute;
	opacity: 0;
	width: 0;
	height: 0;
}

.qua-map__filter-reset {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--qua-map-border);
	border-radius: 8px;
	background: #f8fafc;
	font-size: 0.84rem;
	font-weight: 600;
	color: #475569;
	cursor: pointer;
	margin-top: 0.5rem;
}

.qua-map__filter-reset:hover {
	background: #f1f5f9;
}

.qua-map__opacity--filters {
	margin-top: 0.75rem;
	font-size: 0.82rem;
}

.qua-map__list {
	flex: 0 0 var(--qua-map-list-width);
	max-width: var(--qua-map-list-width);
	background: #fff;
	border: 1px solid var(--qua-map-border);
	border-radius: 14px;
	display: flex;
	flex-direction: column;
	height: 100%;
	max-height: none;
	box-shadow: var(--qua-map-shadow);
	overflow: hidden;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.qua-map__list--purchase-mode {
	border-color: var(--qua-map-primary);
	box-shadow: 0 0 0 3px rgba(54, 85, 187, 0.14), var(--qua-map-shadow);
}

.qua-map__list-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 0.5rem;
	padding: 0.85rem 1rem;
	border-bottom: 1px solid var(--qua-map-border);
	flex-shrink: 0;
}

.qua-map__list-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.qua-map__list-count {
	font-size: 0.82rem;
	font-weight: 600;
	color: #64748b;
}

.qua-map__list-tools {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 0.75rem 0.85rem;
	border-bottom: 1px solid var(--qua-map-border);
	flex-shrink: 0;
}

.qua-map__list-search-wrap {
	display: block;
}

.qua-map__list-search {
	width: 100%;
	padding: 0.55rem 0.75rem;
	border: 1px solid var(--qua-map-border);
	border-radius: 8px;
	font-size: 0.88rem;
	background: #fff;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Tri : contrôle discret, aligné à droite. */
.qua-map__list-sort-wrap {
	display: flex;
	justify-content: flex-end;
	margin-top: -0.1rem;
}

.qua-map__list-sort {
	max-width: 100%;
	padding: 0.2rem 1.3rem 0.2rem 0.4rem;
	border: none;
	border-radius: 6px;
	font-size: 0.78rem;
	color: #64748b;
	background-color: transparent;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='11' viewBox='0 0 12 12' fill='none' stroke='%2394a3b8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 0.4rem center;
	transition: color 0.15s ease, background-color 0.15s ease;
}

.qua-map__list-sort:hover {
	color: var(--qua-map-primary);
	background-color: #f1f5f9;
}

.qua-map__list-sort:focus {
	outline: none;
	color: var(--qua-map-primary);
	background-color: #eef2ff;
}

.qua-map__list-search:focus {
	outline: none;
	border-color: var(--qua-map-primary);
	box-shadow: 0 0 0 3px rgba(54, 85, 187, 0.12);
}

.qua-map__list-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0.35rem 0;
}

.qua-map__list-empty {
	margin: 0;
	padding: 1rem;
	font-size: 0.84rem;
	color: #64748b;
	line-height: 1.45;
}

.qua-map__list-item {
	display: flex;
	align-items: stretch;
	border-bottom: 1px solid var(--qua-map-border);
	border-left: 4px solid transparent;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.qua-map__list-item:last-child {
	border-bottom: none;
}

.qua-map__list-item:hover,
.qua-map__list-item--active {
	background: #f0f4ff;
}

.qua-map__list-item--active {
	border-left-color: var(--qua-map-primary);
}

.qua-map__list-item-btn {
	flex: 1 1 auto;
	min-width: 0;
	display: block;
	text-align: left;
	padding: 0.7rem 1rem;
	border: none;
	background: none;
	cursor: pointer;
}

/* Icône panier d'une entrée de liste */
.qua-map__list-item-cart {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	border: none;
	border-left: 1px solid var(--qua-map-border);
	background: none;
	color: #64748b;
	cursor: pointer;
	transition: background 0.12s ease, color 0.12s ease;
}

.qua-map__list-item-cart:hover {
	background: #e2e8ff;
	color: var(--qua-map-primary);
}

.qua-map__list-item-cart-icon {
	display: inline-flex;
	line-height: 0;
}

.qua-map__list-item-cart-icon--added {
	display: none;
}

.qua-map__list-item--in-cart .qua-map__list-item-cart {
	background: var(--qua-map-primary);
	color: #fff;
}

.qua-map__list-item--in-cart .qua-map__list-item-cart:hover {
	background: #b91c1c;
	color: #fff;
}

.qua-map__list-item--in-cart .qua-map__list-item-cart-icon--add {
	display: none;
}

.qua-map__list-item--in-cart .qua-map__list-item-cart-icon--added {
	display: inline-flex;
}

.qua-map__list-item-cart--loading {
	opacity: 0.5;
	pointer-events: none;
}

.qua-map__list-item--pulse {
	animation: qua-map-list-pulse 0.75s ease;
}

@keyframes qua-map-list-pulse {
	0%,
	100% {
		box-shadow: inset 0 0 0 2px rgba(54, 85, 187, 0.35);
	}
	50% {
		box-shadow: inset 0 0 0 2px #ea580c, 0 0 0 4px rgba(234, 88, 12, 0.2);
	}
}

.qua-map__list-item-name {
	display: block;
	font-size: 0.9rem;
	font-weight: 600;
	color: #1e293b;
	margin-bottom: 0.2rem;
}

.qua-map__list-item-meta {
	display: block;
	font-size: 0.78rem;
	color: #64748b;
}

.qua-map__list-item-price {
	display: block;
	font-size: 0.84rem;
	font-weight: 600;
	color: var(--qua-map-primary);
	margin-top: 0.25rem;
}

.qua-map__list-item-detail {
	padding: 0;
}

.qua-map__list-item-detail[hidden] {
	display: none;
}

.qua-map__purchase-panel {
	margin: 0 0.75rem 0.85rem;
	padding: 0.85rem;
	background: #fff;
	border: 1px solid rgba(54, 85, 187, 0.22);
	border-radius: 10px;
	box-shadow: 0 4px 16px rgba(54, 85, 187, 0.1);
}

.qua-map__purchase-heading {
	margin: 0 0 0.75rem;
	padding-bottom: 0.55rem;
	border-bottom: 1px solid var(--qua-map-border);
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--qua-map-primary);
}

.qua-map__purchase-loading,
.qua-map__purchase-empty,
.qua-map__purchase-error {
	margin: 0;
	font-size: 0.84rem;
	color: #64748b;
}

.qua-map__btn--buy {
	width: 100%;
	text-align: center;
	padding: 0.65rem 1rem;
	font-size: 0.92rem;
}

.qua-map__btn--added {
	background: #16a34a !important;
}

.qua-map__list-sentinel {
	height: 1px;
	margin: 0;
	pointer-events: none;
}

.qua-map__list-loading {
	margin: 0;
	padding: 0.65rem 1rem 0.85rem;
	text-align: center;
	font-size: 0.82rem;
	color: #64748b;
}

.qua-map--polygon-gap {
	--qua-map-gap: #ffffff;
}

.qua-map--polygon-gap.qua-map--mode-3d .qua-map__canvas-wrap {
	background: #ffffff;
}

.qua-map__canvas-wrap {
	flex: 1 1 auto;
	position: relative;
	min-height: 0;
	height: 100%;
	min-width: 0;
	background: var(--qua-map-gap);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--qua-map-shadow);
	border: 1px solid var(--qua-map-border);
}

.qua-map__canvas {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	min-height: 0;
	z-index: 1;
	background: var(--qua-map-gap);
}

.qua-map__loading {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background:
		radial-gradient(ellipse 80% 60% at 50% 40%, rgba(54, 85, 187, 0.08), transparent 70%),
		linear-gradient(160deg, #f8fafc 0%, #eef2ff 55%, #f1f5f9 100%);
	z-index: 500;
	transition: opacity 0.25s ease, visibility 0.25s ease;
}

.qua-map__loading[hidden] {
	display: none;
}

.qua-map__loading-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	padding: 1.5rem 1.75rem;
	background: rgba(255, 255, 255, 0.92);
	border: 1px solid rgba(54, 85, 187, 0.12);
	box-shadow: 0 12px 40px rgba(37, 62, 167, 0.12);
	max-width: min(18rem, calc(100% - 2rem));
	text-align: center;
}

.qua-map__loading-spinner {
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 50%;
	border: 3px solid rgba(54, 85, 187, 0.15);
	border-top-color: var(--qua-map-primary, #3655bb);
	animation: qua-map-spin 0.75s linear infinite;
}

.qua-map__loading-label {
	margin: 0;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.4;
	color: #334155;
}

.qua-map__loading--empty .qua-map__loading-spinner {
	display: none;
}

.qua-map__loading--empty .qua-map__loading-card {
	max-width: min(28rem, calc(100% - 2rem));
	gap: 0;
}

.qua-map__loading--empty .qua-map__loading-label {
	font-weight: 500;
	color: #475569;
}

@keyframes qua-map-spin {
	to {
		transform: rotate(360deg);
	}
}

.qua-map__legend {
	position: absolute;
	bottom: 14px;
	left: 14px;
	z-index: 800;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(8px);
	padding: 0.55rem 0.8rem;
	border-radius: 10px;
	font-size: 0.78rem;
	line-height: 1.55;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.1);
	border: 1px solid rgba(226, 232, 240, 0.9);
	color: #334155;
}

.qua-map__legend-item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
}

.qua-map__legend-swatch {
	width: 12px;
	height: 12px;
	border-radius: 3px;
	border: none;
	box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}

.qua-map__zone-title {
	margin: 0 0 0.75rem;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.qua-map__zone-kanton {
	color: #64748b;
	font-size: 0.84rem;
	margin: -0.35rem 0 0.75rem;
}

.qua-map__product {
	border-top: 1px solid var(--qua-map-border);
	padding: 1rem 0;
}

.qua-map__product:first-of-type {
	border-top: none;
	padding-top: 0;
}

.qua-map__product-title {
	font-weight: 600;
	margin: 0 0 0.35rem;
	font-size: 0.92rem;
	color: #1e293b;
}

.qua-map__product-price {
	margin: 0 0 0.75rem;
	font-size: 0.98rem;
	color: #0f172a;
}

.qua-map__product-desc {
	font-size: 0.84rem;
	color: #64748b;
	margin: 0 0 0.75rem;
}

.qua-map__btn {
	display: inline-block;
	padding: 0.5rem 1rem;
	border-radius: 8px;
	border: none;
	cursor: pointer;
	font-size: 0.88rem;
	font-weight: 600;
}

.qua-map__btn--primary {
	background: var(--qua-map-primary);
	color: #fff;
}

.qua-map__btn--primary:hover:not(:disabled) {
	filter: brightness(1.06);
}

.qua-map__btn--secondary {
	background: #f1f5f9;
	color: #64748b;
	cursor: default;
}

.qua-map__btn:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

.qua-map__notice {
	margin-top: 0.75rem;
	padding: 0.5rem 0.75rem;
	background: #ecfdf5;
	border-radius: 8px;
	font-size: 0.84rem;
}

.qua-map__notice a {
	font-weight: 600;
}

/* Leaflet chrome */
.leaflet-container {
	font-family: inherit;
	background: var(--qua-map-gap);
}

.leaflet-control-zoom a {
	border-radius: 8px !important;
	border-color: var(--qua-map-border) !important;
	color: #475569 !important;
}

.leaflet-control-attribution {
	font-size: 10px !important;
	background: rgba(255, 255, 255, 0.85) !important;
	backdrop-filter: blur(4px);
	border-radius: 6px 0 0 0;
	padding: 2px 6px !important;
}

.leaflet-tooltip-pane {
	z-index: 850 !important;
}

.leaflet-tooltip.qua-map__tooltip {
	background: rgba(15, 23, 42, 0.92);
	border: none;
	border-radius: 8px;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.25);
	color: #f8fafc;
	font-size: 0.82rem;
	line-height: 1.45;
	padding: 0.45rem 0.65rem;
	z-index: 850;
}

.leaflet-tooltip.qua-map__tooltip strong {
	font-weight: 600;
	color: #fff;
}

.leaflet-tooltip-top.qua-map__tooltip::before {
	border-top-color: rgba(15, 23, 42, 0.92);
}

.maplibregl-marker {
	z-index: 12;
}

.maplibregl-popup {
	z-index: 40 !important;
}

.maplibregl-popup.qua-map__popup-3d {
	z-index: 40 !important;
}

.qua-map__stem {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	pointer-events: auto;
	cursor: pointer;
	opacity: 0;
}

.qua-map__stem--enter {
	opacity: 0;
}

.qua-map__stem--visible {
	opacity: 0.95;
	transition: opacity 0.32s ease;
}

.qua-map__stem--exit {
	opacity: 0 !important;
	transition: opacity 0.28s ease;
	pointer-events: none;
}

.qua-map__stem--visible:hover {
	opacity: 1;
}

.qua-map__stem--minor .qua-map__stem-label {
	font-size: 9px;
	font-weight: 500;
	padding: 1px 4px;
	color: #475569;
}

.qua-map__stem--minor .qua-map__stem-line {
	width: 1.5px;
	opacity: 0.75;
}

.qua-map__stem-label {
	display: block;
	margin-bottom: 3px;
	padding: 1px 5px;
	border-radius: 3px;
	background: rgba(255, 255, 255, 0.88);
	color: #1e293b;
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
	letter-spacing: 0.01em;
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
}

.qua-map__stem-line {
	display: block;
	width: 2px;
	height: var(--stem-h, 28px);
	border-radius: 1px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 0 6px rgba(255, 255, 255, 0.45);
}

.qua-map__stem--principal .qua-map__stem-label {
	font-size: 10.5px;
	font-weight: 700;
	color: #0f172a;
}

.qua-map__stem--principal .qua-map__stem-line,
.qua-map__stem--major .qua-map__stem-line {
	background: rgba(255, 255, 255, 0.95);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Vue 3D : étiquettes blanches (toutes tailles) */
.qua-map--mode-3d .qua-map__stem-label,
.qua-map--mode-3d .qua-map__stem--major .qua-map__stem-label,
.qua-map--mode-3d .qua-map__stem--principal .qua-map__stem-label {
	background: rgba(255, 255, 255, 0.96);
	color: #1e293b;
	border: none;
	box-shadow: 0 1px 6px rgba(15, 23, 42, 0.14);
}

.qua-map--mode-3d .qua-map__stem-line,
.qua-map--mode-3d .qua-map__stem--major .qua-map__stem-line,
.qua-map--mode-3d .qua-map__stem--principal .qua-map__stem-line {
	background: rgba(255, 255, 255, 0.94);
	box-shadow: 0 0 8px rgba(255, 255, 255, 0.45);
}

.qua-map__stem--major .qua-map__stem-label {
	font-size: 10px;
}

.qua-map__stem--sponsored .qua-map__stem-line {
	background: rgba(22, 163, 74, 0.82);
}

.qua-map__stem--sponsored .qua-map__stem-label {
	color: #14532d;
	background: rgba(240, 253, 244, 0.92);
}

.qua-map__stem--chef-lieu .qua-map__stem-label {
	color: #334155;
	background: rgba(255, 255, 255, 0.9);
	border: 1px dashed rgba(100, 116, 139, 0.45);
}

.qua-map__stem--chef-lieu .qua-map__stem-line {
	background: rgba(71, 85, 105, 0.72);
}

@media (max-width: 1100px) {
	.qua-map__layout {
		flex-wrap: wrap;
		--qua-map-stage-h: auto;
		height: auto;
		min-height: 0;
	}

	.qua-map__filters {
		flex: 1 1 100%;
		max-width: none;
		max-height: none;
	}

	.qua-map__canvas-wrap {
		flex: 1 1 100%;
		order: 2;
		height: min(58vh, 520px);
		min-height: 320px;
	}

	.qua-map__list {
		flex: 1 1 100%;
		order: 3;
		max-width: none;
		height: auto;
		max-height: 320px;
	}
}

@media (max-width: 768px) {
	.qua-map__canvas-wrap {
		height: 55vh;
		min-height: 320px;
	}

	.qua-map__list {
		max-height: 45vh;
	}
}

/* =====================================================
   VOLET FILTRES — TOGGLE LATÉRAL
   ===================================================== */

.qua-map__filters-toggle {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	position: absolute;
	top: 14px;
	left: 14px;
	z-index: 950;
	padding: 0.45rem 0.85rem;
	background: #fff;
	border: 1px solid var(--qua-map-border);
	border-radius: 8px;
	font-size: 0.84rem;
	font-weight: 600;
	color: #334155;
	cursor: pointer;
	box-shadow: 0 2px 8px rgba(15,23,42,0.1);
	transition: background 0.12s ease, box-shadow 0.12s ease;
}

.qua-map__filters-toggle:hover {
	background: #f0f4ff;
	color: var(--qua-map-primary);
}

.qua-map__filters-toggle[aria-expanded="true"] {
	background: var(--qua-map-primary);
	color: #fff;
	border-color: var(--qua-map-primary);
}

/* Volet latéral overlay sur la carte */
.qua-map__filters {
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	width: 280px;
	z-index: 940;
	background: #fff;
	border-right: 1px solid var(--qua-map-border);
	border-radius: 14px 0 0 14px;
	box-shadow: 4px 0 24px rgba(15,23,42,0.12);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	/* Animation */
	transform: translateX(-105%);
	transition: transform 0.26s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
	opacity: 0;
	pointer-events: none;
	/* Reset ancien flex */
	flex: none;
	max-width: none;
	max-height: none;
}

.qua-map__filters[hidden] {
	display: flex !important; /* on garde flex pour l'animation, hidden géré par transform */
}

.qua-map__filters.qua-map__filters--open {
	transform: translateX(0);
	opacity: 1;
	pointer-events: auto;
}

.qua-map__filters-inner {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 1rem 1.1rem 1.5rem;
}

.qua-map__filters-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1rem;
}

.qua-map__filters-title {
	margin: 0;
	font-size: 1rem;
	font-weight: 700;
	color: #0f172a;
}

.qua-map__filters-close {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: none;
	background: #f1f5f9;
	border-radius: 6px;
	color: #475569;
	cursor: pointer;
	transition: background 0.12s ease;
}

.qua-map__filters-close:hover {
	background: #e2e8f0;
	color: #1e293b;
}

/* Overlay sombre derrière le volet */
.qua-map__filters-backdrop {
	display: none;
	position: absolute;
	inset: 0;
	z-index: 930;
	background: rgba(15,23,42,0.22);
	border-radius: 14px;
}

.qua-map__filters-backdrop.qua-map__filters-backdrop--visible {
	display: block;
}

/* Layout: retirer le flex latéral pour les filtres (ils sont en overlay) */
.qua-map__layout {
	position: relative;
}

/* Badge actif sur le bouton toggle quand filtres actifs */
.qua-map__filters-toggle[data-filters-active="true"]::after {
	content: '';
	display: inline-block;
	width: 7px;
	height: 7px;
	background: #ea580c;
	border-radius: 50%;
	margin-left: 2px;
	flex-shrink: 0;
}

/* =====================================================
   COULEUR "DANS LE PANIER" CONFIGURABLE VIA BO
   ===================================================== */

/* La couleur est injectée via cfg.colors.inCart dans le JS */
/* Bouton "Retirer du panier" */
.qua-map__btn--remove {
	width: 100%;
	text-align: center;
	padding: 0.65rem 1rem;
	font-size: 0.92rem;
	background: #fff;
	color: #dc2626;
	border: 1.5px solid #dc2626;
	border-radius: 8px;
	cursor: pointer;
	font-weight: 600;
	transition: background 0.14s ease, color 0.14s ease;
}

.qua-map__btn--remove:hover:not(:disabled) {
	background: #fef2f2;
}

.qua-map__list-item-badge {
	display: inline-flex;
	align-items: center;
	align-self: center;
	gap: 0.25rem;
	margin-right: 0.85rem;
	padding: 0.18rem 0.5rem;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.qua-map__list-item-badge--cart {
	background: #f1f5f9;
	color: #475569;
}

.qua-map__list-item-badge--sponsored {
	background: #dcfce7;
	color: #15803d;
}

/* =====================================================
   SCROLL SMOOTH + CENTRAGE ITEM LISTE
   ===================================================== */

.qua-map__list-scroll {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0.35rem 0;
}

/* Transition ouverture du détail */
.qua-map__list-item-detail {
	overflow: hidden;
	transition: max-height 0.28s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
	max-height: 0;
	opacity: 0;
}

.qua-map__list-item-detail.qua-map__list-item-detail--visible {
	max-height: 600px;
	opacity: 1;
}

/* Loader spinner dans le détail */
.qua-map__purchase-loading {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.75rem 0;
	font-size: 0.84rem;
	color: #64748b;
}

.qua-map__purchase-loading::before {
	content: '';
	display: inline-block;
	width: 14px;
	height: 14px;
	border: 2px solid #e2e8f0;
	border-top-color: var(--qua-map-primary);
	border-radius: 50%;
	animation: qua-map-spin 0.7s linear infinite;
	flex-shrink: 0;
}

@keyframes qua-map-spin {
	to { transform: rotate(360deg); }
}

/* =====================================================
   INTÉGRATION VISUELLE — STYLE SITE QDH
   ===================================================== */

/* Couleurs site (bleu QdH) */
.qua-map {
	--qua-map-primary: #1d3a8a; /* bleu foncé QdH */
	--qua-map-primary-light: #2347b0;
	--qua-map-accent: #e8002d; /* rouge QdH */
}

/* Header liste */
.qua-map__list-header {
	background: #f8fafc;
	border-bottom: 2px solid var(--qua-map-primary);
}

.qua-map__list-title {
	color: var(--qua-map-primary);
}

/* Item actif */
.qua-map__list-item--active {
	border-left-color: var(--qua-map-accent);
}

.qua-map__list-item:hover,
.qua-map__list-item--active {
	background: #f0f3ff;
}

/* Purchase panel */
.qua-map__purchase-heading {
	color: var(--qua-map-primary);
}

.qua-map__purchase-panel {
	border-color: rgba(29, 58, 138, 0.2);
	box-shadow: 0 4px 16px rgba(29, 58, 138, 0.08);
}

/* Bouton principal */
.qua-map__btn--primary {
	background: var(--qua-map-primary);
}

.qua-map__btn--primary:hover:not(:disabled) {
	background: var(--qua-map-primary-light);
	filter: none;
}

/* Bordure liste active */
.qua-map__list--purchase-mode {
	border-color: var(--qua-map-primary);
	box-shadow: 0 0 0 3px rgba(29, 58, 138, 0.12), var(--qua-map-shadow);
}

/* Pulse animation couleur QdH */
@keyframes qua-map-list-pulse {
	0%, 100% { box-shadow: inset 0 0 0 2px rgba(29, 58, 138, 0.3); }
	50% { box-shadow: inset 0 0 0 2px var(--qua-map-accent), 0 0 0 4px rgba(232, 0, 45, 0.15); }
}

/* Search focus */
.qua-map__list-search:focus {
	border-color: var(--qua-map-primary);
	box-shadow: 0 0 0 3px rgba(29, 58, 138, 0.12);
}

/* Canton chips */
.qua-map__canton-chip--active {
	border-color: var(--qua-map-primary);
	background: #eef2ff;
	color: var(--qua-map-primary);
}

.qua-map__canton-chip:hover {
	border-color: var(--qua-map-primary);
}

/* =====================================================
   RESPONSIVE — VOLET FILTRES MOBILE
   ===================================================== */

@media (max-width: 1100px) {
	.qua-map__filters {
		border-radius: 0;
		width: 85vw;
		max-width: 320px;
	}

	.qua-map__filters-toggle {
		/* Sur mobile, dans le flux au-dessus de la carte */
		position: static;
		margin-bottom: 0.5rem;
	}

	.qua-map__layout {
		flex-wrap: wrap;
		--qua-map-stage-h: auto;
		height: auto;
		min-height: 0;
	}

	.qua-map__canvas-wrap {
		order: 2;
		flex: 1 1 100%;
		height: min(58vh, 520px);
		min-height: 320px;
	}

	.qua-map__list {
		order: 3;
		flex: 1 1 100%;
		max-width: none;
		height: auto;
		max-height: 320px;
	}
}

/* Statut parrainé dans le panneau détail */
.qua-map__purchase-sponsored-msg {
	font-size: 0.88rem;
	color: #15803d;
	background: #f0fdf4;
	border-radius: 8px;
	padding: 0.65rem 0.85rem;
	margin: 0;
	border: 1px solid #bbf7d0;
}

/* Variable CSS in-cart pour polygones (injectée dynamiquement si besoin) */
.qua-map {
	--qua-map-in-cart: #f59e0b;
}

/* Swatch dégradé BAL dans la légende */
.qua-map__legend-swatch--gradient {
	width: 36px;
	border-radius: 3px;
}

.qua-map__cart-error {
	margin: 0.4rem 0 0;
	font-size: 0.82rem;
	color: #dc2626;
	background: #fef2f2;
	border-radius: 6px;
	padding: 0.35rem 0.6rem;
}

/* =====================================================
   DESIGN FLAT — SANS ARRONDIS, OMBRES MINIMALES
   (override final, voir aussi templates/map.php)
   ===================================================== */

.qua-map {
	/* Ombre commune neutralisée : on s'appuie sur des bordures nettes. */
	--qua-map-shadow: none;
}

/* Suppression globale des arrondis sur les éléments d'interface du module. */
.qua-map__filters,
.qua-map__list,
.qua-map__canvas-wrap,
.qua-map__canvas,
.qua-map__filters-toggle,
.qua-map__filters-close,
.qua-map__filters-backdrop,
.qua-map__map-controls,
.qua-map__map-control,
.qua-map__legend,
.qua-map__legend-swatch,
.qua-map__legend-swatch--gradient,
.qua-map__btn,
.qua-map__btn--primary,
.qua-map__btn--secondary,
.qua-map__btn--buy,
.qua-map__btn--added,
.qua-map__btn--remove,
.qua-map__filter-reset,
.qua-map__canton-chip,
	.qua-map__list-search,
	.qua-map__list-item-badge,
.qua-map__search,
.qua-map__search-results,
.qua-map__purchase-panel,
.qua-map__purchase-sponsored-msg,
.qua-map__notice,
.qua-map__cart-error,
.qua-map__loading--empty,
.qua-map__dual-range-rail,
.qua-map__dual-range-fill,
.qua-map__dual-range-field,
.qua-map__dual-range-field-input {
	border-radius: 0 !important;
}

/* Panneaux : bordure nette, sans ombre portée. */
.qua-map__filters,
.qua-map__list,
.qua-map__canvas-wrap {
	box-shadow: none;
}

/* Volet filtres en overlay : légère ombre pour le détacher de la carte. */
.qua-map__filters {
	border-radius: 0;
	box-shadow: 2px 0 16px rgba(15, 23, 42, 0.12);
}

/* Éléments flottants au-dessus de la carte : ombre discrète et plate. */
.qua-map__filters-toggle,
.qua-map__map-controls {
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.14);
}

.qua-map__legend {
	box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
	backdrop-filter: none;
	background: rgba(255, 255, 255, 0.96);
}

.qua-map__purchase-panel {
	box-shadow: none;
}

/* Liste en mode achat : liseré net plutôt qu'une ombre diffuse. */
.qua-map__list--purchase-mode {
	box-shadow: inset 0 0 0 2px rgba(29, 58, 138, 0.18);
}

/* Curseurs des sliders : carrés, alignés sur la couleur principale. */
.qua-map__dual-range-input::-webkit-slider-thumb {
	width: 16px;
	height: 16px;
	margin-top: -5px;
	border-radius: 0;
	background: var(--qua-map-primary);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--qua-map-border);
}

.qua-map__dual-range-input::-moz-range-thumb {
	width: 16px;
	height: 16px;
	border-radius: 0;
	background: var(--qua-map-primary);
	border: 2px solid #fff;
	box-shadow: 0 0 0 1px var(--qua-map-border);
}

/* Plus de marge réservée aux anciennes bulles : on resserre le slider. */
.qua-map__dual-range-track {
	margin-bottom: 0.6rem;
}

/* Coins droits aussi côté Leaflet / MapLibre. */
.leaflet-control-zoom a,
.leaflet-control-attribution,
.leaflet-tooltip.qua-map__tooltip,
.maplibregl-popup.qua-map__popup-3d .maplibregl-popup-content {
	border-radius: 0 !important;
}

/* =====================================================
   CHAMPS MIN / MAX ÉDITABLES (Prix & Boîtes aux lettres)
   ===================================================== */

.qua-map__dual-range-fields {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.25rem;
}

.qua-map__dual-range-field {
	flex: 1 1 0;
	min-width: 0;
	display: flex;
	flex-direction: column;
	gap: 0.22rem;
}

.qua-map__dual-range-field-label {
	font-size: 0.64rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #94a3b8;
}

.qua-map__dual-range-field-input {
	width: 100%;
	min-width: 0;
	box-sizing: border-box;
	height: 34px;
	padding: 0 0.6rem;
	background: #fff;
	border: 1px solid var(--qua-map-border);
	font-size: 0.88rem;
	font-weight: 600;
	color: #1e293b;
	-moz-appearance: textfield;
	appearance: textfield;
	transition: border-color 0.12s ease, box-shadow 0.12s ease;
}

.qua-map__dual-range-field-input:focus {
	outline: none;
	border-color: var(--qua-map-primary);
	box-shadow: 0 0 0 2px rgba(29, 58, 138, 0.12);
}

.qua-map__dual-range-field-input::-webkit-outer-spin-button,
.qua-map__dual-range-field-input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

/* Le volet filtres ne doit jamais rogner son contenu horizontalement. */
.qua-map__filters-inner {
	overflow-x: hidden;
}

/* =====================================================
   FINE-TUNING INTERFACE (flat & propre)
   ===================================================== */

/* En-têtes : liseré net 1px au lieu d'une barre épaisse. */
.qua-map__list-header {
	background: #fff;
	border-bottom: 1px solid var(--qua-map-border);
	padding: 0.9rem 1rem;
}

.qua-map__filters-header {
	margin-bottom: 1.1rem;
	padding-bottom: 0.85rem;
	border-bottom: 1px solid var(--qua-map-border);
}

.qua-map__filters-title,
.qua-map__list-title {
	font-size: 0.95rem;
	letter-spacing: -0.01em;
}

/* Compteur de résultats : badge plat discret. */
.qua-map__list-count {
	background: #eef2ff;
	color: var(--qua-map-primary);
	padding: 0.12rem 0.5rem;
	font-size: 0.76rem;
	font-weight: 700;
}

/* Libellés de filtres : capitales fines, lisibles. */
.qua-map__filter-group {
	margin-bottom: 1.25rem;
}

.qua-map__filter-label {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #64748b;
	margin-bottom: 0.55rem;
}

/* Chips canton : un peu plus d'air, état actif plat. */
.qua-map__canton-chip {
	padding: 0.3rem 0.62rem;
	font-size: 0.8rem;
}

.qua-map__canton-chip--active {
	background: var(--qua-map-primary);
	border-color: var(--qua-map-primary);
	color: #fff;
}

/* Bouton réinitialiser : flat, en capitales. */
.qua-map__filter-reset {
	margin-top: 0.85rem;
	padding: 0.6rem 0.75rem;
	font-size: 0.74rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #475569;
}

.qua-map__filter-reset:hover {
	background: #eef2ff;
	border-color: var(--qua-map-primary);
	color: var(--qua-map-primary);
}

/* Opacité fond : intitulé plus discret. */
.qua-map__opacity--filters {
	margin-top: 0.4rem;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	color: #64748b;
}

/* Items de liste : un poil plus aérés. */
.qua-map__list-item-btn {
	padding: 0.75rem 1rem;
}

.qua-map__list-item-name {
	font-size: 0.92rem;
}

/* Panneau d'achat : flat, sans excès. */
.qua-map__purchase-panel {
	margin: 0 0.85rem 0.85rem;
	padding: 0.9rem;
	border: 1px solid var(--qua-map-border);
}

.qua-map__purchase-heading {
	letter-spacing: 0.06em;
	font-size: 0.72rem;
}

.qua-map__product-title {
	font-size: 0.95rem;
}

/* Boutons d'action : capitales nettes, plein cadre. */
.qua-map__btn--buy,
.qua-map__btn--remove {
	text-transform: uppercase;
	letter-spacing: 0.04em;
	font-size: 0.8rem;
	font-weight: 700;
}

/* Champ de recherche de la liste : focus discret. */
.qua-map__list-search:focus {
	box-shadow: 0 0 0 2px rgba(29, 58, 138, 0.12);
}

/* =====================================================
   POP-UP DE CONFIRMATION (retrait du panier)
   ===================================================== */
.qua-map__confirm {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background: rgba(15, 23, 42, 0.45);
	opacity: 0;
	transition: opacity 0.16s ease;
}

.qua-map__confirm--visible {
	opacity: 1;
}

.qua-map__confirm-dialog {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border: 1px solid var(--qua-map-border);
	box-shadow: 0 18px 48px rgba(15, 23, 42, 0.28);
	padding: 1.4rem 1.4rem 1.1rem;
	transform: translateY(6px);
	transition: transform 0.16s ease;
}

.qua-map__confirm--visible .qua-map__confirm-dialog {
	transform: translateY(0);
}

.qua-map__confirm-message {
	margin: 0 0 1.1rem;
	font-size: 0.95rem;
	line-height: 1.45;
	color: #1e293b;
}

.qua-map__confirm-actions {
	display: flex;
	justify-content: flex-end;
	gap: 0.6rem;
}

.qua-map__confirm-btn {
	padding: 0.5rem 1rem;
	border: 1px solid var(--qua-map-border);
	background: #fff;
	color: #334155;
	font-size: 0.86rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.qua-map__confirm-btn--cancel:hover {
	background: #f1f5f9;
}

.qua-map__confirm-btn--ok {
	background: #b91c1c;
	border-color: #b91c1c;
	color: #fff;
}

.qua-map__confirm-btn--ok:hover {
	background: #991b1b;
	border-color: #991b1b;
}

/* =====================================================
   TIP FIRST-VISIT (tuto rapide)
   ===================================================== */
.qua-map__tip {
	position: absolute;
	top: 14px;
	left: 50%;
	z-index: 920;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	max-width: min(440px, calc(100% - 9rem));
	padding: 0.65rem 0.75rem 0.65rem 0.9rem;
	background: #fff;
	border: 1px solid var(--qua-map-border);
	border-left: 4px solid var(--qua-map-primary);
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.14);
	transform: translate(-50%, -6px);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.22s ease, transform 0.22s ease;
}

.qua-map__tip--visible {
	opacity: 1;
	transform: translate(-50%, 0);
	pointer-events: auto;
}

.qua-map__tip[hidden] {
	display: none !important;
}

.qua-map__tip-text {
	margin: 0;
	font-size: 0.84rem;
	line-height: 1.4;
	color: #334155;
}

.qua-map__tip-dismiss {
	flex: 0 0 auto;
	padding: 0.38rem 0.75rem;
	border: 1px solid var(--qua-map-primary);
	border-radius: 6px;
	background: var(--qua-map-primary);
	color: #fff;
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	white-space: nowrap;
	transition: background 0.12s ease, border-color 0.12s ease;
}

.qua-map__tip-dismiss:hover,
.qua-map__tip-dismiss:focus-visible {
	background: #2546a8;
	border-color: #2546a8;
	outline: none;
}

@media (max-width: 640px) {
	.qua-map__tip {
		top: auto;
		bottom: 58px;
		left: 12px;
		right: 12px;
		max-width: none;
		transform: translateY(8px);
	}

	.qua-map__tip--visible {
		transform: translateY(0);
	}
}

@media (prefers-reduced-motion: reduce) {
	.qua-map__tip {
		transition: none;
	}
}

/* =====================================================
   NOTIFICATION TRANSITOIRE DANS LA CARTE
   ===================================================== */
.qua-map__notice {
	position: absolute;
	left: 50%;
	bottom: 20px;
	z-index: 950;
	transform: translate(-50%, 12px);
	max-width: min(90%, 420px);
	padding: 0.7rem 1rem;
	background: #1e293b;
	color: #fff;
	font-size: 0.85rem;
	line-height: 1.35;
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.qua-map__notice--visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* =====================================================
   TOOLTIP DE SURVOL (nom, BAL, prix) — non interactive
   ===================================================== */
.qua-map__hovercard {
	position: absolute;
	z-index: 1150;
	display: flex;
	flex-direction: column;
	gap: 0.16rem;
	min-width: 156px;
	max-width: 240px;
	padding: 0.6rem 0.75rem;
	background: #fff;
	border: 1px solid var(--qua-map-border);
	box-shadow: 0 8px 24px rgba(15, 23, 42, 0.18);
	color: #1e293b;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	pointer-events: none;
}

.qua-map__hovercard[hidden] {
	display: none;
}

.qua-map__hovercard--visible {
	opacity: 1;
	transform: translateY(0);
}

.qua-map__hovercard-title {
	background: none;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
}

.qua-map__hovercard-meta {
	font-size: 0.78rem;
	line-height: 1.3;
	color: #64748b;
}

.qua-map__hovercard-meta[hidden],
.qua-map__hovercard-price[hidden] {
	display: none;
}

.qua-map__hovercard-price {
	margin-top: 0.05rem;
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--qua-map-primary);
}

/* =====================================================
   POPUP D'ACTION ÉPINGLÉE AU CLIC (Ajouter / Retirer)
   ===================================================== */
.qua-map__clickpop {
	position: absolute;
	z-index: 1250;
	min-width: 208px;
	max-width: 264px;
	padding: 0.9rem 0.95rem;
	background: #fff;
	border: 1px solid var(--qua-map-border);
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.24);
	color: #1e293b;
	opacity: 0;
	transform: translateY(4px);
	transition: opacity 0.12s ease, transform 0.12s ease;
	pointer-events: auto;
}

.qua-map__clickpop[hidden] {
	display: none;
}

.qua-map__clickpop--visible {
	opacity: 1;
	transform: translateY(0);
}

.qua-map__clickpop--loading {
	opacity: 0.7;
	pointer-events: none;
}

.qua-map__clickpop-head {
	display: flex;
	align-items: center;
	gap: 0.7rem;
	margin-bottom: 0.8rem;
}

.qua-map__clickpop-blason {
	flex: 0 0 auto;
	width: 50px;
	height: 50px;
	object-fit: contain;
	padding: 2px;
	background: #f8fafc;
	border: 1px solid var(--qua-map-border);
}

.qua-map__clickpop-blason[hidden] {
	display: none;
}

.qua-map__clickpop-info {
	flex: 1 1 auto;
	min-width: 0;
}

.qua-map__clickpop-title {
	display: block;
	background: none;
	font-size: 0.92rem;
	font-weight: 700;
	color: #0f172a;
	line-height: 1.25;
}

.qua-map__clickpop-meta {
	display: flex;
	flex-direction: column;
	gap: 0.12rem;
	margin-top: 0.3rem;
}

.qua-map__clickpop-bal {
	font-size: 0.78rem;
	line-height: 1.3;
	color: #64748b;
}

.qua-map__clickpop-price {
	font-size: 0.85rem;
	font-weight: 700;
	line-height: 1.2;
	color: var(--qua-map-primary);
}

.qua-map__clickpop-bal[hidden],
.qua-map__clickpop-price[hidden] {
	display: none;
}

.qua-map__clickpop-question {
	margin: 0 0 0.7rem;
	font-size: 0.82rem;
	color: #475569;
}

.qua-map__clickpop-actions {
	display: flex;
	gap: 0.5rem;
}

.qua-map__clickpop-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 46px;
	height: 38px;
	border: 1px solid var(--qua-map-border);
	background: #fff;
	cursor: pointer;
	transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.qua-map__clickpop-btn[hidden] {
	display: none;
}

.qua-map__clickpop-btn--confirm {
	flex: 1 1 auto;
	border-color: var(--qua-map-primary);
	background: var(--qua-map-primary);
	color: #fff;
}

.qua-map__clickpop-btn--confirm:hover {
	background: var(--qua-map-primary-light, #2546a8);
	border-color: var(--qua-map-primary-light, #2546a8);
}

/* En mode retrait, le bouton de confirmation passe en rouge. */
.qua-map__clickpop--in-cart .qua-map__clickpop-btn--confirm {
	border-color: #b91c1c;
	background: #b91c1c;
}

.qua-map__clickpop--in-cart .qua-map__clickpop-btn--confirm:hover {
	background: #991b1b;
	border-color: #991b1b;
}

.qua-map__clickpop-btn--cancel {
	color: #64748b;
}

.qua-map__clickpop-btn--cancel:hover {
	background: #f1f5f9;
	color: #334155;
}

/* Commune déjà parrainée : seul le bouton de fermeture est proposé. */
.qua-map__clickpop--sponsored .qua-map__clickpop-btn--cancel {
	flex: 1 1 auto;
}
