/* MAP */
.toa-locations-map-wrapper {
	position: relative;
	width: 100%;
	scroll-margin-top: 110px; /* Clears the sticky header when the search scrolls here. */
}

.toa-locations-map-canvas {
	position: relative;
}

.toa-locations-map {
	position: relative;
	width: 100%;
	height: 600px;
	min-height: 400px;
	overflow: hidden;
}

/* LEGEND */
.toa-map-legend {
	position: absolute;
	left: 20px;
	bottom: 20px;
	z-index: 2;
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 10px 14px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
	border-radius: 4px;
}

.toa-map-legend-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 14px;
	line-height: 1.4;
	color: #0E2E4A;
}

.toa-map-legend-marker {
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	flex-shrink: 0;
}

/* SEARCH STATUS (above the map) */
.toa-map-status {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 20px;
	padding: 14px 20px;
	background: #F3F7FA;
	border-left: 3px solid #027DB6;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #0E2E4A;
}

.toa-map-status[hidden] {
	display: none;
}

.toa-map-status[data-state="error"] {
	border-left-color: #B3261E;
}

.toa-map-status strong {
	font-weight: 600;
	text-transform: none;
}

.toa-map-status a {
	color: #027DB6;
	font-weight: 600;
	text-decoration: underline;
}

.toa-map-status-other {
	display: block;
	margin-top: 4px;
}

.toa-locations-map-wrapper .toa-map-status-clear {
	flex-shrink: 0;
	padding: 6px 14px;
	background: transparent;
	border: 1px solid #0E2E4A;
	border-radius: 0 !important;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 13px;
	font-weight: 600;
	color: #0E2E4A;
	cursor: pointer;
}

.toa-locations-map-wrapper .toa-map-status-clear:hover,
.toa-locations-map-wrapper .toa-map-status-clear:focus {
	background: #0E2E4A;
	color: #fff;
}

/* VISITOR MARKER */
.toa-map-user-marker {
	width: 18px;
	height: 18px;
	background: #fff;
	border: 4px solid #0E2E4A;
	border-radius: 50%;
	box-shadow: 0 0 0 6px rgba(2, 125, 182, 0.25);
	transform: translateY(50%); /* Center the dot on the point. */
}

/* INFO WINDOW */
/* Google pads the popup on the top and left only; balance it and stop the sideways scroll. */
.toa-locations-map .gm-style-iw-d {
	overflow: hidden !important;
}

.toa-map-info {
	box-sizing: border-box;
	width: 296px;
	max-width: 100%;
	padding: 0 12px 12px 0;
	font-family: "IBM Plex Sans", sans-serif;
	color: #0E2E4A;
}

.toa-map-info-region {
	margin-bottom: 6px;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #027DB6;
}

.toa-map-info-header {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0 0 6px;
}

.toa-map-info-header .toa-map-info-region {
	margin-bottom: 0;
}

.toa-map-info-titles {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0 0 8px;
}

.toa-map-info-title {
	display: block;
	margin: 0 0 8px;
	font-family: "Playfair Display", Georgia, serif;
	font-size: 19px;
	font-weight: 600;
	line-height: 1.25;
	color: #0E2E4A;
}

.toa-map-info-titles .toa-map-info-title {
	margin: 0;
}

.toa-map-info a.toa-map-info-title-link {
	color: #0E2E4A;
	text-decoration: underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.toa-map-info a.toa-map-info-title-link:hover {
	color: #027DB6;
}

/* Close button (Google's own header is turned off) */
.toa-locations-map-wrapper .toa-map-info-close {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 32px;
	height: 32px;
	margin: -8px -4px -8px auto; /* Bigger tap target without making the region row taller. */
	padding: 0;
	background: transparent;
	border: 0;
	box-shadow: none;
	color: #0E2E4A;
	cursor: pointer;
}

.toa-locations-map-wrapper .toa-map-info-close:hover,
.toa-locations-map-wrapper .toa-map-info-close:focus {
	background: rgba(14, 46, 74, 0.08);
	color: #0E2E4A;
}

.toa-map-info-address {
	margin: 0 0 8px;
	font-size: 14px;
	line-height: 1.5;
	color: #464646;
}

.toa-map-info-distance {
	margin: 0 0 10px;
	font-size: 13px;
	color: #464646;
}

/* Buttons: 50 / 50, styled like the site's "Schedule Online" / "Profile" buttons */
.toa-map-info-buttons {
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.toa-map-info-button {
	display: flex;
	flex: 1 1 0;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 10px 6px;
	border: 1px solid #0E2E4A;
	font-family: "IBM Plex Sans", sans-serif;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.03em;
	text-align: center;
	text-transform: uppercase;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

/* Prefixed to outrank the Elementor kit's link color (.elementor-kit-22 a). */
.toa-map-info a.toa-map-info-button-primary,
.toa-map-info a.toa-map-info-button-primary:visited {
	background: #0E2E4A;
	color: #fff;
}

.toa-map-info a.toa-map-info-button-primary:hover,
.toa-map-info a.toa-map-info-button-primary:focus {
	background: #027DB6;
	border-color: #027DB6;
	color: #fff;
}

.toa-map-info a.toa-map-info-button-secondary,
.toa-map-info a.toa-map-info-button-secondary:visited {
	background: #fff;
	border-color: #C9D1D9;
	color: #0E2E4A;
}

.toa-map-info a.toa-map-info-button-secondary:hover,
.toa-map-info a.toa-map-info-button-secondary:focus {
	border-color: #0E2E4A;
	color: #0E2E4A;
}

.toa-locations-map-wrapper button {
	border-radius: 0px !important;
}

/* MOBILE */
@media (max-width: 767px) {

	.toa-locations-map {
		height: 500px;
	}

	.toa-map-status {
		padding: 12px 15px;
		font-size: 14px;
	}

	.toa-map-info-title {
		font-size: 17px;
	}

	.toa-map-info {
		width: 250px;
	}

	.toa-map-info-button {
		font-size: 11px;
		letter-spacing: 0.02em;
	}
}
