/* Emmcee Location Map */

/*
 * Elementor-Flexbox-Container schrumpfen Widgets standardmäßig auf ihre
 * Inhaltsbreite, statt sie die Spaltenbreite ausfüllen zu lassen. Daher
 * muss der Elementor-eigene Wrapper hier explizit auf volle Breite
 * gezwungen werden (siehe auch emmcee-room-card für den Hintergrund).
 */
.elementor-widget-emmcee-location-map,
.elementor-widget-emmcee-location-map > .elementor-widget-container {
	width: 100%;
}

.emmcee-location-map {
	position: relative;
	width: 100%;
	border-radius: 24px;
	overflow: hidden;
	box-sizing: border-box;
}

.emmcee-location-map-image-wrap {
	position: relative;
	width: 100%;
	height: 340px;
	overflow: hidden;
}

.emmcee-location-map-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.emmcee-location-map-embed {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* ---------- Marker ---------- */
.emmcee-location-map-marker {
	position: absolute;
	left: 18%;
	top: 38%;
	transform: translate(-50%, -100%);
	display: flex;
	align-items: center;
	gap: 10px;
	pointer-events: none;
	white-space: nowrap;
}

/*
 * Bei echter Karteneinbindung entspricht die Bildmitte immer dem
 * eingetragenen Standort (der Kartenausschnitt wird symmetrisch darum
 * herum berechnet) – daher hier fest verankert, unabhängig von evtl.
 * gespeicherten Werten aus dem Bild-Modus, und unabhängig vom Zoom.
 */
.emmcee-location-map-marker--centered {
	left: 50% !important;
	top: 50% !important;
}

.emmcee-location-map-marker-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
}

.emmcee-location-map-marker-icon i,
.emmcee-location-map-marker-icon svg {
	font-size: 26px;
	width: 26px;
	height: 26px;
	color: #a05a3c;
}

.emmcee-location-map-marker-text {
	font-size: 16px;
	font-style: italic;
	line-height: 1.25;
	color: #a05a3c;
	text-shadow: 0 1px 3px rgba(255, 255, 255, 0.6);
}

/* ---------- Infoleiste ---------- */
.emmcee-location-map-bar {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	padding: 22px;
	background: #fcf4eb;
	box-sizing: border-box;
}

.emmcee-location-map-bar--overlay {
	position: absolute;
	left: 20px;
	right: 20px;
	bottom: 20px;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.emmcee-location-map-bar--below {
	position: static;
	width: 100%;
	border-radius: 0 0 24px 24px;
}

.emmcee-location-map-bar-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 0 14px;
	box-sizing: border-box;
}

.emmcee-location-map-bar--divider .emmcee-location-map-bar-item:first-child {
	padding-left: 0;
}

.emmcee-location-map-bar--divider .emmcee-location-map-bar-item:last-child {
	padding-right: 0;
}

.emmcee-location-map-bar--divider .emmcee-location-map-bar-item:not(:first-child) {
	border-left: 1px solid rgba(160, 90, 60, 0.2);
}

.emmcee-location-map-bar-item-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
	flex-shrink: 0;
}

.emmcee-location-map-bar-item-icon i,
.emmcee-location-map-bar-item-icon svg {
	font-size: 22px;
	width: 22px;
	height: 22px;
	color: #a05a3c;
}

.emmcee-location-map-bar-item-text {
	display: flex;
	flex-direction: column;
	font-size: 13px;
	line-height: 1.35;
}

.emmcee-location-map-bar-item-line1 {
	color: #5a5a5a;
	font-weight: 400;
}

.emmcee-location-map-bar-item-line2 {
	color: #2b2b2b;
	font-weight: 700;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
	.emmcee-location-map-bar {
		grid-template-columns: repeat(2, 1fr);
		row-gap: 16px;
	}
	.emmcee-location-map-bar--divider .emmcee-location-map-bar-item:nth-child(2n+1) {
		border-left: none;
		padding-left: 0;
	}
}

@media (max-width: 600px) {
	.emmcee-location-map-image-wrap {
		height: 240px;
	}
	.emmcee-location-map-marker-text {
		font-size: 13px;
	}
	.emmcee-location-map-marker-icon i,
	.emmcee-location-map-marker-icon svg {
		font-size: 20px;
		width: 20px;
		height: 20px;
	}
	.emmcee-location-map-bar {
		grid-template-columns: 1fr;
		row-gap: 14px;
	}
	.emmcee-location-map-bar--divider .emmcee-location-map-bar-item {
		border-left: none !important;
		padding-left: 0 !important;
	}
}
