/* ============================================================
   Map Band (layout "map_band")
   Full-bleed Leaflet map strip - the foot of the Get Help Today
   contact page. Design ref: Get Help Today (contact).png y1250-1851
   (602px tall at 1280 wide).
   ============================================================ */

.map-band {
	position: relative;
	background: var(--color-light-grey);
}

/* A Google Maps iframe, not Leaflet - see section-map_band.php for why.
   display:block kills the inline-element baseline gap under the frame. */
.map-band__map {
	display: block;
	width: 100%;
	height: 320px;
	border: 0;
}

/* Sits over the map, clear of Leaflet's own controls (top-left) and
   attribution (bottom-right). */
.map-band__directions {
	position: absolute;
	right: var(--container-pad);
	bottom: 2.25rem;
	z-index: 500;
	box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
	.map-band__map {
		height: 440px;
	}
}

@media (min-width: 1024px) {
	.map-band__map {
		height: 602px; /* measured from the design */
	}

	.map-band__directions {
		right: max(var(--container-pad), calc((100vw - var(--container-max)) / 2 + var(--container-pad)));
		bottom: 3rem;
	}
}
