/**
 * Kubota Europe location map (WPBakery element `vc_kbeu_location_map`).
 *
 * The event page's venue map (Figma 5013-1915): a 1893 × 584 band @2560 with 14px
 * corners — the proportion is kept down to a 320px floor on narrow screens — and,
 * at its bottom right, the dealer map's turquoise +/− control (Figma "Group 69":
 * 33 × 68, 14px corners; same look as `.kbeu-dm__zoom` in kbeu-dealer-map.css).
 * The keyless fallback is an iframe of the same size.
 */

.kbeu-location-map {
	position: relative;
	width: 100%;
	aspect-ratio: 1893 / 584;
	min-height: 320px;
	overflow: hidden;
	border-radius: 14px;
	background: var( --kbeu-color-surface );
}

.kbeu-location-map__canvas,
.kbeu-location-map .kbeu-location-map__iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.kbeu-location-map__zoom {
	display: flex;
	flex-direction: column;
	width: 33px;
	/* Figma: 30px above the bottom edge — Google's attribution strip adds 14px to
	   this margin — and 2px off the right one, kept at 14px. */
	margin: 0 14px clamp( 0px, 0.63vw, 16px ) 0;
	border-radius: 14px;
	background: var( --kbeu-color-teal );
	overflow: hidden;
	box-shadow: 0 2px 6px rgba( 0, 0, 0, 0.2 );
}

.kbeu-location-map__zoom button {
	display: block;
	width: 33px;
	height: 34px;
	margin: 0;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 22px;
	line-height: 34px;
	cursor: pointer;
}

.kbeu-location-map__zoom button:hover,
.kbeu-location-map__zoom button:focus-visible {
	background: rgba( 255, 255, 255, 0.18 );
	outline: none;
}

.kbeu-location-map__zoom button + button {
	border-top: 1px solid rgba( 255, 255, 255, 0.5 );
}

.kbeu-location-map__placeholder {
	margin: 0;
	padding: 32px 16px;
	font-size: 16px;
	color: var( --kbeu-color-gray );
	text-align: center;
}

/* The editor's placeholder needs no map proportion. */
.kbeu-location-map:has( .kbeu-location-map__placeholder ) {
	aspect-ratio: auto;
	min-height: 0;
}
