/* SSC Europe Map Widget – usa tutta la larghezza della colonna Elementor */
.elementor-widget-ssc_europe_map.elementor-widget {
	width: 100%;
}
.ssc-europe-map-widget {
	width: 100%;
	min-width: 100%;
	max-width: 100%;
	overflow-x: hidden;
	box-sizing: border-box;
}

.ssc-map-row {
	display: flex;
	gap: 24px;
	align-items: stretch;
	min-height: 0;
	width: 100%;
}

.ssc-map-col {
	flex: 1 1 0;
	min-width: 0;
}

/* Colonna sinistra: mappa – ~50% con minimo decente; overflow nascosto per zoom fino a 150% */
.ssc-map-col-left {
	flex: 0 0 50%;
	max-width: 640px;
	min-width: 280px;
	overflow: hidden;
}

/* Colonna destra: scroll se più alta della mappa, testo contenuto */
.ssc-map-col-right {
	flex: 1 1 0;
	min-height: 0;
	min-width: 0;
	max-width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
	overflow-wrap: break-word;
}

@media (max-width: 767px) {
	.ssc-map-row {
		height: auto !important;
		max-height: none !important;
		flex-wrap: wrap;
	}
	.ssc-map-col {
		flex: 1 1 100%;
	}
	.ssc-map-col-left {
		order: 1;
		height: auto;
	}
	.ssc-map-col-right {
		order: 2;
		overflow-y: visible;
	}
}

/* Container mappa: overflow nascosto per zoom (fino a 150%) */
.ssc-map-svg-wrap {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
	contain: layout paint;
}

.ssc-map-zoom-wrap {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 100%;
	height: 100%;
	transform: translate(-50%, -50%) scale(var(--map-zoom, 1));
	transform-origin: center center;
	/* Scala >1 fa uscire la mappa dai bordi: il padre .ssc-map-svg-wrap la taglia */
}

.ssc-map-zoom-wrap svg {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: contain;
}

/* Pin tondi, centrati sul punto */
.ssc-map-pins {
	position: absolute;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	pointer-events: none;
}

.ssc-map-pins .ssc-map-pin {
	pointer-events: auto;
	position: absolute;
	transform: translate(-50%, -50%);
	margin: 0;
	padding: 0;
	border: none;
	background: none;
	cursor: pointer;
	z-index: 2;
	transition: transform 0.2s ease;
}

.ssc-map-pins .ssc-map-pin:hover,
.ssc-map-pins .ssc-map-pin.is-active {
	transform: translate(-50%, -50%) scale(1.15);
}

/* Editor: pin trascinabili */
.ssc-map-draggable-pins .ssc-map-pin {
	cursor: grab;
}
.ssc-map-draggable-pins .ssc-map-pin:active {
	cursor: grabbing;
}

.ssc-map-pin-dot {
	display: block;
	border-radius: 50%;
	background: var(--pin-color, #e74c3c);
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.ssc-map-pin.is-active .ssc-map-pin-dot {
	box-shadow: 0 2px 12px rgba(0,0,0,0.35);
}

/* Right: locations list */
.ssc-map-locations {
	display: flex;
	flex-direction: column;
	gap: 12px;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.ssc-map-location-item {
	padding: 16px 20px;
	border-radius: 8px;
	transition: background 0.2s ease;
	cursor: pointer;
	border: 1px solid transparent;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}

.ssc-map-location-item:hover {
	background: rgba(0,0,0,0.03);
}

.ssc-map-location-item.is-active {
	border-color: rgba(0,0,0,0.08);
}

.ssc-map-location-title {
	margin: 0;
	font-size: 1.25em;
	line-height: 1.3;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	min-width: 0;
}

.ssc-map-location-title-text {
	flex: 1;
	min-width: 0;
	overflow-wrap: anywhere;
	word-break: break-word;
}

.ssc-map-location-arrow {
	display: inline-block;
	width: 0;
	height: 0;
	border-left: 6px solid transparent;
	border-right: 6px solid transparent;
	border-top: 8px solid currentColor;
	transition: transform 0.3s ease;
	flex-shrink: 0;
	opacity: 0.6;
}

.ssc-map-location-content {
	margin: 0;
	line-height: 1.6;
	overflow-wrap: anywhere;
	word-wrap: break-word;
	word-break: break-word;
	max-width: 100%;
	min-width: 0;
}

.ssc-map-location-content p,
.ssc-map-location-content div,
.ssc-map-location-content span,
.ssc-map-location-content li {
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}

/* Accordion: specificità alta sul widget root per evitare override tema/Elementor */
.ssc-europe-map-widget.ssc-map-layout-accordion .ssc-map-location-title {
	margin-bottom: 0;
	cursor: pointer;
}

.ssc-europe-map-widget.ssc-map-layout-accordion .ssc-map-location-content {
	margin: 0;
	margin-top: 0;
	max-height: 0 !important;
	overflow: hidden !important;
	opacity: 0;
	transition: max-height 0.3s ease, opacity 0.3s ease;
}

.ssc-europe-map-widget.ssc-map-layout-accordion .ssc-map-location-item.is-active .ssc-map-location-content {
	margin-top: 8px;
	max-height: 2000px !important;
	opacity: 1;
}

.ssc-europe-map-widget.ssc-map-layout-accordion .ssc-map-location-item.is-active .ssc-map-location-arrow {
	transform: rotate(180deg);
}

.ssc-map-location-content p:first-child {
	margin-top: 0;
}

.ssc-map-location-content p:last-child {
	margin-bottom: 0;
}
