/* The theme stylesheet owns margin on the map link. The wrapper takes that
   margin so the attribution can sit on the map, outside the directions link. */
.osm-map {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin-top: 60px;
	min-height: var(--static-map-min-height, 170px);
}

.osm-map > .m-location-panel__static-map-link {
	position: relative;
	margin-top: 0 !important;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	min-height: 100%;
}

.osm-map .m-location-panel__static-map {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	height: 100%;
	flex: 1 1 auto;
}

.osm-map__open {
	position: absolute;
	left: 14px;
	bottom: 14px;
	z-index: 1;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 13px;
	background: #fff;
	border-radius: 3px;
	box-shadow: 0 2px 8px rgba(0, 40, 85, 0.22);
	font-family: Poppins, sans-serif;
	font-size: 14px;
	line-height: 18px;
	font-weight: 600;
	color: var(--osm-header, #1b4297);
	white-space: nowrap;
}

.osm-map__open svg {
	width: 14px;
	height: 14px;
	flex: none;
}

.osm-map__credit {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 1;
	margin: 0;
	padding: 1px 6px 1px 7px;
	background: rgba(255, 255, 255, 0.78);
	font-family: Poppins, sans-serif;
	font-size: 11px;
	line-height: 16px;
	font-weight: 400;
	letter-spacing: 0;
	text-transform: none;
	color: #5c6670;
}

.osm-map__credit a {
	color: #3f4954;
	text-decoration: none;
}

.osm-map__credit a:hover,
.osm-map__credit a:focus-visible {
	text-decoration: underline;
}

@media (max-width: 950px) {
	.osm-map { margin-top: 50px; }
}

@media (max-width: 850px) {
	.osm-map { margin-top: 20px; }

	.o-location-hero__panel:has(.osm-map),
	.m-location-panel:has(.osm-map),
	.m-location-panel__content:has(.osm-map) {
		min-width: 0;
		max-width: 100%;
	}
}

@media (max-width: 600px) {
	.osm-map__open {
		left: 10px;
		bottom: 10px;
		padding: 9px 11px;
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.osm-map__open { bottom: 28px; }
}
