.swm-map-wrap { position: relative; width: 100%; }

.swm-map {
	width: 100%;
	height: 600px;
	min-height: 250px;
	overflow: hidden;
	background: #f2f2f2;
}

.swm-map-notice {
	position: absolute;
	left: 16px;
	right: 16px;
	bottom: 16px;
	z-index: 5;
	padding: 12px 14px;
	border-radius: 10px;
	background: rgba(255,255,255,.95);
	color: #111;
	font-size: 14px;
	line-height: 1.4;
	box-shadow: 0 8px 24px rgba(0,0,0,.12);
}

.swm-marker-wrap {
	position: relative;
	width: var(--swm-marker-size, 30px);
	height: var(--swm-marker-size, 30px);
	cursor: pointer;
}

.swm-marker {
	position: absolute;
	left: 50%;
	top: 50%;
	width: calc(var(--swm-marker-size, 30px) * .78);
	height: calc(var(--swm-marker-size, 30px) * .78);
	border-radius: 50% 50% 50% 0;
	background: var(--swm-marker-color, #e63b2e);
	border: 3px solid #fff;
	box-shadow: 0 6px 18px rgba(0,0,0,.28);
	transform: translate(-50%, -50%) rotate(-45deg);
}

.swm-marker::after {
	content: "";
	position: absolute;
	width: 35%;
	height: 35%;
	left: 50%;
	top: 50%;
	border-radius: 50%;
	background: #fff;
	transform: translate(-50%, -50%);
}

.swm-marker-svg {
	display: block;
	width: var(--swm-marker-size, 30px);
	height: var(--swm-marker-size, 30px);
	object-fit: contain;
	filter: drop-shadow(0 6px 12px rgba(0,0,0,.24));
}

.swm-marker-label {
	position: absolute;
	left: 50%;
	top: calc(100% + 3px);
	transform: translateX(-50%);
	white-space: nowrap;
	padding: 4px 8px;
	border-radius: 999px;
	background: rgba(255,255,255,.95);
	color: var(--swm-label-color,#111);
	font-family: "LFT Etica", sans-serif;
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	box-shadow: 0 5px 14px rgba(0,0,0,.14);
	pointer-events: none;
}

.swm-custom-popup {
	position: absolute;
	z-index: 20;
	display: none;
	padding: 10px 14px;
	border-radius: 14px;
	background: #fff;
	color: #111;
	font-family: "LFT Etica", sans-serif;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.15;
	white-space: nowrap;
	box-shadow: 0 10px 28px rgba(0,0,0,.22);
	pointer-events: none;
}

.swm-marker-wrap.is-open .swm-custom-popup { display: block; }

.swm-custom-popup--top { left: 50%; bottom: calc(100% + var(--swm-popup-gap, 8px)); transform: translateX(-50%); }
.swm-custom-popup--bottom { left: 50%; top: calc(100% + var(--swm-popup-gap, 8px)); transform: translateX(-50%); }
.swm-custom-popup--left { right: calc(100% + var(--swm-popup-gap, 8px)); top: 50%; transform: translateY(-50%); }
.swm-custom-popup--right { left: calc(100% + var(--swm-popup-gap, 8px)); top: 50%; transform: translateY(-50%); }

.swm-maplibre-popup {
	font-family: "LFT Etica", sans-serif;
	font-size: 14px;
	font-weight: 700;
	color: #111;
}

.swm-map .maplibregl-popup-content {
	border-radius: 14px;
	padding: 10px 14px;
	box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.swm-map-error::after {
	content: "Errore caricamento GeoJSON";
	position: absolute;
	left: 16px;
	top: 16px;
	z-index: 10;
	background: #fff;
	color: #d11;
	padding: 10px 12px;
	border-radius: 8px;
	box-shadow: 0 8px 22px rgba(0,0,0,.15);
}
