/* Venue map container (UI_KIT 08): 12px radius, 1px border, #F2EFE9 behind the tiles.
   Small = homepage (248px tall); large = VENUE page (460px, 280px on phones). */

.venue-map {
	position: relative;
	isolation: isolate;
	overflow: hidden;
	border-radius: 12px;
	border: 1px solid var(--border);
	background: #F2EFE9;
}

.venue-map--small {
	height: 248px;
}

.venue-map--large {
	min-height: 460px;
}

.venue-map__canvas {
	position: absolute;
	inset: 0;
}

/* Textual fallback: visible until the map is ready, again if the tiles fail. */
.venue-map__fallback {
	position: absolute;
	inset: 0;
	z-index: 1100; /* above Leaflet's controls (1000) while it is visible */
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	background: #F2EFE9;
}

.venue-map__address {
	margin: 0;
	max-width: 36ch;
	color: var(--graphite);
	font-size: 15px;
	line-height: 1.5;
}

.venue-map.is-ready .venue-map__fallback {
	display: none;
}

.venue-map.is-failed .venue-map__fallback {
	display: flex;
}

/* No map at all (no coordinates): just the address card, sized by its content. */
.venue-map--static {
	height: auto;
	min-height: 0;
}

.venue-map--static .venue-map__fallback {
	position: static;
}

@media (max-width: 720px) {
	.venue-map--large {
		min-height: 280px;
	}
}
