/* Service Area Locations blocks: list (version A) and pop-up (version B) */
.sa-locations { padding: 8px 0 72px; }
.sa-locations-intro {
	max-width: 720px;
	margin: 0 auto 32px;
	text-align: center;
	color: #3a3b3d;
}

.sa-locations-states {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px;
	align-items: start;
	margin-top: 24px;
}
@media (min-width: 768px) {
	.sa-locations-states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}
@media (min-width: 1024px) {
	.sa-locations-states { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.sa-locations-state {
	border: 1px solid #e3e3e3;
	border-radius: 10px;
	background: #fff;
}
.sa-locations-state-name {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin: 0;
	padding: 16px 20px;
	font-size: 18px;
	color: #0f1011;
}
summary.sa-locations-state-name { cursor: pointer; list-style: none; }
summary.sa-locations-state-name::-webkit-details-marker { display: none; }
summary.sa-locations-state-name:hover,
summary.sa-locations-state-name:focus-visible { color: #d22630; }
.sa-locations-chevron { flex-shrink: 0; color: #d22630; transition: transform .3s ease; }
details[open]:not(.is-closing) > summary .sa-locations-chevron { transform: rotate(180deg); }
details[open] > summary.sa-locations-state-name { border-bottom: 1px solid #eee; }

.sa-locations-cities {
	box-sizing: border-box;
	display: grid;
	gap: 16px;
	margin: 0;
	padding: 16px 20px 20px;
	list-style: none;
}
.sa-locations-city { display: flex; flex-direction: column; gap: 4px; }
.sa-locations-city-name { font-size: 16px; color: #0f1011; }
.sa-locations-city a {
	color: #3a3b3d;
	text-decoration: underline;
	text-decoration-color: rgba(210, 38, 48, .35);
	text-underline-offset: 3px;
}
/* "Small Moves [State]" link under a state's cities */
.sa-locations-state-page { padding-top: 14px; border-top: 1px solid #eee; }
.is-static .sa-locations-state-page { border-top: 0; padding-top: 0; }

.sa-locations-city a:hover,
.sa-locations-city a:focus-visible { color: #d22630; text-decoration-color: currentColor; }

/* Version B: button + pop-up */
.sa-locations--popup { padding-top: 0; }
.sa-locations-open {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 14px 32px;
	border: 2px solid #185389;
	border-radius: 4px;
	background: #fff;
	color: #185389;
	font-size: 16px;
	cursor: pointer;
	transition: background .2s ease, color .2s ease;
}
.sa-locations-open:hover,
.sa-locations-open:focus-visible { background: #185389; color: #fff; }

.sa-locations-modal {
	position: fixed;
	inset: 0;
	z-index: 2147483000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 16px;
	text-align: left;
}
.sa-locations-modal.is-open { display: flex; }
.sa-locations-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); }
.sa-locations-card {
	position: relative;
	width: 100%;
	max-width: 1100px;
	max-height: calc(100vh - 32px);
	overflow-y: auto;
	padding: 40px;
	background: #fff;
	border-radius: 12px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
}
.sa-locations-close {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 4px;
	background: none;
	border: 0;
	color: #d22630;
	line-height: 0;
	cursor: pointer;
}
.sa-locations-close:hover { color: #a81d26; }
.sa-locations-modal-title { margin: 0 40px 8px 0; font-size: 30px; line-height: 1.2; color: #0f1011; }
.sa-locations-modal-intro { margin: 0 0 8px; color: #3a3b3d; }

/* Pop-up list: states always open, packed into columns */
.sa-locations-states.is-static { display: block; columns: 1; column-gap: 32px; }
@media (min-width: 640px) { .sa-locations-states.is-static { columns: 2; } }
@media (min-width: 1024px) { .sa-locations-states.is-static { columns: 3; } }
.is-static .sa-locations-state {
	break-inside: avoid;
	margin-bottom: 24px;
	border: 0;
	border-radius: 0;
}
.is-static .sa-locations-state-name {
	padding: 0 0 8px;
	border-bottom: 2px solid #d22630;
	font-size: 17px;
}
.is-static .sa-locations-cities { gap: 12px; padding: 12px 0 0; }
body.sa-locations-locked { overflow: hidden; }

@media (max-width: 767px) {
	.sa-locations { padding-bottom: 48px; }
	.sa-locations-card { padding: 28px 20px 32px; }
	.sa-locations-modal-title { font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
	.sa-locations-chevron, .sa-locations-open { transition: none; }
}
