.spc-pdv-map-wrapper,
.spc-pdv-combo {
	--spc-ink: #1e3a24;
	--spc-cream: #f8f4ea;
	--spc-accent: #7ab942;
	--spc-border: #e6dcc4;
	--spc-muted: #7a8874;
	--spc-panel-bg: #eee5d1;
	font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
}

/* ---------- Carte seule ([spc_points_de_vente_carte]) ---------- */
.spc-pdv-map-wrapper {
	position: relative;
	width: 100%;
}

.spc-pdv-map {
	width: 100%;
	height: 520px;
	border-radius: 16px;
	overflow: hidden;
}

.spc-pdv-popup {
	font-family: "Work Sans", ui-sans-serif, system-ui, sans-serif;
	font-size: 13px;
	line-height: 1.5;
	color: #1e3a24;
}

.spc-pdv-popup strong {
	display: block;
	font-size: 14px;
	margin-bottom: 2px;
}

.spc-pdv-popup .spc-pdv-popup-type {
	color: #7a8874;
	font-size: 12px;
	display: block;
	margin-bottom: 4px;
}

.leaflet-popup-content-wrapper {
	border-radius: 10px;
}

/* ---------- Bouton plein ecran ---------- */
.spc-pdv-fullscreen {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 500;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #ffffff !important;
	color: var(--spc-ink) !important;
	border: none !important;
	border-radius: 8px !important;
	box-shadow: 0 2px 8px rgba(20, 38, 26, 0.25);
	cursor: pointer;
	padding: 0 !important;
}
.spc-pdv-fullscreen:hover {
	background: var(--spc-panel-bg) !important;
}

.spc-pdv-map-wrapper:fullscreen,
.spc-pdv-map-wrapper:-webkit-full-screen {
	background: var(--spc-cream);
	padding: 16px;
	box-sizing: border-box;
}
.spc-pdv-map-wrapper:fullscreen .spc-pdv-map,
.spc-pdv-map-wrapper:-webkit-full-screen .spc-pdv-map {
	height: 100%;
}

.spc-pdv-fullscreen.is-fullscreen svg {
	transform: rotate(180deg);
}

/* ---------- Marqueur (pastille maison) ---------- */
.spc-pdv-marker {
	background: none !important;
	border: none !important;
}

.spc-pdv-marker-dot {
	display: block;
	width: 22px;
	height: 22px;
	background: var(--spc-ink);
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 6px rgba(20, 38, 26, 0.45);
	box-sizing: border-box;
}

/* Mis en avant au clic depuis la liste : anime le rond interieur seulement,
   jamais le div exterieur qui porte le positionnement pose par Leaflet. */
@keyframes spc-pdv-marker-pulse {
	0% {
		transform: scale(1);
	}
	30% {
		transform: scale(1.6);
		background: var(--spc-accent);
	}
	60% {
		transform: scale(1.15);
	}
	100% {
		transform: scale(1);
	}
}
.spc-pdv-marker-highlight {
	animation: spc-pdv-marker-pulse 0.6s ease;
}
@media (prefers-reduced-motion: reduce) {
	.spc-pdv-marker-highlight {
		animation: none;
	}
}

/* ---------- Liste + carte combinees ([spc_points_de_vente]) ---------- */
.spc-pdv-combo {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.spc-pdv-pills {
	display: flex;
	gap: 8px;
}

.spc-pdv-pill {
	background: var(--spc-panel-bg) !important;
	color: var(--spc-ink) !important;
	border: none !important;
	border-radius: 999px !important;
	padding: 9px 20px !important;
	font-family: inherit !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	cursor: pointer;
}
.spc-pdv-pill.is-active {
	background: var(--spc-ink) !important;
	color: var(--spc-cream) !important;
}

.spc-pdv-panel[hidden] {
	display: none !important;
}

.spc-pdv-panel--carte .spc-pdv-map-wrapper {
	margin: 0;
}

.spc-pdv-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	max-height: 560px;
	overflow-y: auto;
}

.spc-pdv-list-item {
	display: flex;
	flex-direction: column;
	gap: 2px;
	background: #ffffff;
	border: 1px solid var(--spc-border);
	border-radius: 12px;
	padding: 14px 16px;
	cursor: pointer;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.spc-pdv-list-item:hover {
	border-color: var(--spc-accent);
}
.spc-pdv-list-item.is-active {
	background: var(--spc-panel-bg);
	border-color: var(--spc-ink);
}

.spc-pdv-list-item__ville {
	font-family: "Space Mono", ui-monospace, monospace;
	font-size: 11px;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	color: var(--spc-muted);
}

.spc-pdv-list-item__nom {
	font-family: "Instrument Serif", ui-serif, Georgia, serif;
	font-size: 19px;
	color: var(--spc-ink);
	line-height: 1.2;
}

.spc-pdv-list-item__type {
	font-size: 12px;
	color: var(--spc-muted);
}

.spc-pdv-list-item__adresse,
.spc-pdv-list-item__tel {
	font-size: 13px;
	color: var(--spc-ink);
}

.spc-pdv-empty {
	color: var(--spc-muted);
	font-size: 14px;
}

/* Desktop : liste + carte cote a cote, pastilles inutiles */
@media (min-width: 880px) {
	.spc-pdv-pills {
		display: none;
	}
	.spc-pdv-combo {
		flex-direction: row;
		align-items: flex-start;
	}
	.spc-pdv-panel {
		flex: 1;
		min-width: 0;
	}
	.spc-pdv-panel[hidden] {
		display: block !important;
	}
	.spc-pdv-panel--liste .spc-pdv-list {
		max-height: 520px;
	}
}
