/* ==========================================================================
   LOCATION MAP — Google Maps on request (inc/location-map.php)
   --------------------------------------------------------------------------
   A grey plate with the address, "Näita kaarti" and "Ava Google Mapsis"; the
   map frame replaces it once the visitor asks. The plate fills whatever box
   its page gives it (Kontakt's third column, the Meist "Kus me asume" row),
   so it carries no size of its own beyond a floor.
   ========================================================================== */

.location-map {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	min-height: 220px;
	overflow: hidden;
	border-radius: var(--radius-button);
	background-color: var(--color-surface-gray);
}

/* Compact enough for Kontakt's plate at 1024+, which is only as tall as the
   contact columns beside it (≈230px). */
.location-map__consent {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	max-width: 44ch;
	padding: var(--space-sm);
	text-align: center;
}

.location-map__pin {
	display: inline-flex;
	color: var(--color-primary);
}

.location-map__address {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 15px;
	line-height: 1.5;
	color: var(--color-ink);
}

/* The button is a 48px target; the link under it gets 44 of its own. */
.location-map__load {
	margin-block-start: 4px;
	color: var(--color-primary);
}

.location-map__open {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-family: var(--font-ui);
	font-weight: 500;
	font-size: 14px;
	line-height: 20px;
	color: var(--color-primary);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.location-map__open:hover {
	color: var(--color-primary-dark);
}

.location-map__note {
	margin: 0;
	font-family: var(--font-ui);
	font-size: 12px;
	line-height: 1.5;
	color: var(--color-text-secondary);
}

/* Outranks .btn's display so the script's hidden attribute holds. */
.location-map__load[hidden],
.location-map__note[hidden],
.location-map__consent[hidden] {
	display: none;
}

.location-map__frame {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}
