/**
 * Google Maps after a click (patterns cocolino/location and cocolino/map; the
 * button from cocolino_map_button() in functions.php, the behaviour in
 * assets/js/src/site.js). Nothing comes from Google before the click. Without
 * JavaScript the card shows the notice and the route link; the script shows
 * the "Karte laden" button (is-ready) and, after the click, leaves only the
 * map in the card (is-loaded).
 */

.cocolino-map__load:not(.is-ready) {
	display: none;
}

.cocolino-map.is-loaded {
	padding: 0;
	overflow: hidden;
}

.cocolino-map.is-loaded > :not(.cocolino-map__frame) {
	display: none;
}

.cocolino-map__frame {
	display: block;
	flex: 1 1 auto;
	align-self: stretch;
	width: 100%;
	min-height: clamp(300px, 40vw, 420px);
	border: 0;
}
