/**
 * Block: Standorte Info-Panel
 */

/* Map Container - 2-Spalten Layout */
.map-container {
	display: flex;
	overflow: hidden;
	overflow-anchor: none;
	margin-top: -6rem;
	justify-content: space-between;
	gap: 6rem;
}

.map-container .map-svg {
	flex: 1;
	width: auto;
	max-width: 750px;
}

.map-container .map-svg .safe-svg-inside {
	width: 100% !important;
	height: auto !important;
}

@media (max-width: 1400px) {
	.map-container {
		margin-top: 0;
	}
}

@media (max-width: 782px) {
	.map-container {
		flex-direction: column-reverse;
		margin-top: 0;
		align-items: flex-start;
		justify-content: flex-start;
		gap: 2rem;
	}

	.map-container .map-svg {
		width: 170% !important;
		max-width: none;
		margin-left: -10%;
	}

	.map-container .map-svg .safe-svg-inside {
		width: 100% !important;
		height: auto !important;
	}

	.map-container .wp-block-group:not(.map-svg) {
		width: 100% !important;
	}
}

/* Karte Hintergrund */
#karte {
	fill: #8CBF94;
	fill-opacity: 1;
}

/* Location Elements in SVG (überall im Dokument) */
.location {
	cursor: pointer;
	outline: none;
	transition: all 0.2s ease;
	pointer-events: bounding-box;
}

.location:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 4px;
}

.location-icon {
	fill: none;
	stroke: #000;
	transition: stroke 0.2s ease;
	pointer-events: none;
}

.location-name {
	opacity: 0;
	fill: #000;
	transition: opacity 0.2s ease;
	pointer-events: none;
}

/* Active State */
.location.is-active .location-name {
	opacity: 1;
}

.location.is-active .location-icon {
	stroke: #deefdf;
}

/* Hover/Focus State */
.location:is(:hover, :focus-within) .location-icon {
	stroke: #deefdf;
}

.location:is(:hover, :focus-within) .location-name {
	opacity: 1;
}

/* Info Panel */
.standorte-map__wrapper {
	position: relative;
}

.standorte-map__info {
	padding-top: 2rem;
}

.standorte-map__info:empty {
	display: none;
}

.standorte-map__info h3 {
	margin-top: 0;
	margin-bottom: 1rem;
	font-size: 1.5rem;
	font-weight: 600;
}

.standorte-map__info p:last-child {
	margin-bottom: 0;
}

/* Navigation */
.standorte-map__navigation {
	display: flex;
	gap: 2rem;
	margin-top: 1rem;
}

.standorte-nav-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	background: transparent;
	color: #000;
	border: none;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	transition: color 0.2s ease;
	-webkit-tap-highlight-color: transparent;
}

.standorte-nav-btn:hover {
	color: #6c757d;
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
	.location,
	.location-icon,
	.location-name {
		transition: none;
	}
}
