/* SnapSite Leaflet U.S. Map — v2.3.0 */
.snapsite-map-shell {
	width: 100%;
	max-width: 1200px;
	margin: 0 auto;
	overflow: hidden;
	background: #ffffff;
	border: 1px solid #d4dde8;
	border-radius: 18px;
	box-shadow: 0 12px 34px rgba(15, 35, 60, .10);
}
.snapsite-map-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.875rem 1rem;
	background: #f7f9fc;
	border-bottom: 1px solid #d4dde8;
}
.snapsite-map-instructions {
	margin: 0;
	color: #24364b;
	font-size: 0.9375rem;
	line-height: 1.5;
}
/* Button: background AND text color declared together in EVERY state. */
.snapsite-map-reset {
	appearance: none;
	border: 2px solid #163b73;
	border-radius: 10px;
	background: #163b73;
	color: #ffffff;
	font-weight: 700;
	line-height: 1;
	padding: 0.75rem 1.125rem;
	cursor: pointer;
	white-space: nowrap;
}
.snapsite-map-reset:visited {
	background: #163b73;
	color: #ffffff;
}
.snapsite-map-reset:hover {
	background: #2457a6;
	border-color: #2457a6;
	color: #ffffff;
}
.snapsite-map-reset:active {
	background: #102a52;
	border-color: #102a52;
	color: #ffffff;
}
.snapsite-map-reset:focus-visible {
	background: #2457a6;
	border-color: #2457a6;
	color: #ffffff;
	outline: 3px solid #f4c95d;
	outline-offset: 3px;
}
.snapsite-map-reset:disabled {
	background: #8b98a8;
	border-color: #8b98a8;
	color: #ffffff;
	cursor: not-allowed;
}
.snapsite-leaflet-map {
	width: 100%;
	height: var(--snapsite-map-height, 620px);
	min-height: 420px;
	background: #ffffff;
}
.snapsite-map-status {
	padding: 0.625rem 1rem;
	background: #f7f9fc;
	color: #24364b;
	font-size: 0.875rem;
	border-top: 1px solid #d4dde8;
}
.snapsite-map-error {
	margin: 0;
	padding: 1rem;
	color: #5b2430;
	background: #fff4f5;
}
.snapsite-state-tooltip {
	font-weight: 700;
	color: #172a3f;
	background: #ffffff;
}
.snapsite-marker {
	width: 22px;
	height: 22px;
	border: 3px solid #ffffff;
	border-radius: 50%;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .28);
}
.snapsite-leaflet-map .leaflet-interactive:focus,
.snapsite-leaflet-map .leaflet-interactive:focus-visible {
	outline: 3px solid #f4c95d;
	outline-offset: 2px;
}
@media (max-width: 767px) {
	.snapsite-map-toolbar {
		align-items: stretch;
		flex-direction: column;
	}
	.snapsite-map-reset {
		width: 100%;
	}
	.snapsite-leaflet-map {
		height: 480px;
		min-height: 380px;
	}
	.snapsite-map-shell {
		border-radius: 12px;
	}
}

/* v2.0.0 — Albers projection additions */
.snapsite-leaflet-map,
.snapsite-leaflet-map .leaflet-container {
	background: #f2f6fa;
}
.snapsite-state-label {
	background: none;
	border: none;
}
.snapsite-state-label span {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	font-family: inherit;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.03em;
	color: #ffffff;
	text-shadow: 0 1px 2px rgba(10, 25, 45, .55);
	user-select: none;
}
.snapsite-state-label.is-small span {
	font-size: 0.625rem;
}

/* v2.1.0 — link mode + rich marker popups */
.snapsite-leaflet-map .leaflet-interactive[role="link"] {
	cursor: pointer;
}
.snapsite-leaflet-map .leaflet-popup-content {
	font-size: 0.8125rem;
	line-height: 1.45;
	color: #24364b;
}
.snapsite-leaflet-map .leaflet-popup-content a {
	color: #163b73;
	font-weight: 700;
	text-decoration: underline;
}
.snapsite-leaflet-map .leaflet-popup-content a:visited {
	color: #163b73;
}
.snapsite-leaflet-map .leaflet-popup-content a:hover {
	color: #2457a6;
}
.snapsite-leaflet-map .leaflet-popup-content a:active {
	color: #102a52;
}

/* v2.2.0 — responsive + link-mode shell */
.snapsite-map-shell {
	max-width: min(1200px, 100%);
}
.snapsite-map-shell--link .snapsite-map-toolbar {
	justify-content: center;
}
@media (max-width: 767px) {
	/* Fit the 975x610 Albers frame with no dead space: height follows width. */
	.snapsite-leaflet-map {
		height: auto;
		aspect-ratio: 975 / 640;
		min-height: 260px;
	}
}

/* v2.3.0 — interactive legend */
.snapsite-map-legend {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.5rem 1.125rem;
	margin: 0;
	padding: 0.75rem 1rem;
	border: none;
	border-top: 1px solid #d4dde8;
	background: #f7f9fc;
}
.snapsite-map-legend legend {
	float: left;
	padding: 0;
	margin-right: 0.375rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: #24364b;
}
.snapsite-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 0.4375rem;
	font-size: 0.8125rem;
	color: #24364b;
	cursor: pointer;
	min-height: 44px;
}
.snapsite-legend-item input[type="checkbox"] {
	width: 1.125rem;
	height: 1.125rem;
	accent-color: #163b73;
	cursor: pointer;
}
.snapsite-legend-item input[type="checkbox"]:focus-visible {
	outline: 3px solid #f4c95d;
	outline-offset: 2px;
}
.snapsite-legend-swatch {
	width: 0.875rem;
	height: 0.875rem;
	border-radius: 50%;
	border: 2px solid #ffffff;
	box-shadow: 0 0 0 1px rgba(15, 35, 60, .25);
	background: #2041d4;
	flex: 0 0 auto;
}
