/* The map page: the map fills everything below the header. */

.map-page {
	display: flex;
	flex-direction: column;
	height: 100vh;
	height: 100dvh;
	overflow: hidden;
}

.map-page main {
	position: relative;
	flex: 1;
	min-height: 0;
}

.map-canvas {
	position: absolute;
	inset: 0;
	background: var(--color-pavement);
}

/* Shown over the map while it loads, and in its place if it cannot be shown at all. */
.map-message {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--space-5);
	color: var(--color-ink-soft);
	font-size: var(--font-size-lead);
	text-align: center;
	pointer-events: none;
}

.map-message.is-problem {
	color: var(--color-ink);
	pointer-events: auto;
}

/* The credit for the map data, which must always be readable. */
.map-canvas .maplibregl-ctrl-attrib {
	font-family: var(--font-family);
	font-size: var(--font-size-small);
	color: var(--color-ink-soft);
	background: rgb(255 255 255 / 0.8);
}

.map-canvas .maplibregl-ctrl-attrib a {
	color: inherit;
}
