/**
 * W37 / AREA-hub-calm — Service Areas hub (`template-service-areas.php`).
 * Page shell only; map / FAQ stay on shipped aliases.
 */

.bhm-areas {
	display: flex;
	flex-direction: column;
	padding-bottom: var(--bhm-space-4, 1rem);
}

/* Same wide measure as map-shell desktop (1280), not the 1120 site container. */
.bhm-template-areas-hub .bhm-container {
	width: min(1280px, calc(100% - var(--bhm-space-8)));
}

.bhm-template-areas-hub .bhm-hub-crumbs {
	background: transparent;
	border-bottom: 0;
	padding: var(--bhm-space-3) 0 0;
}

.bhm-template-areas-hub .bhm-hub-crumbs__list {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: 0.35rem;
	margin: 0;
	padding: 0;
	list-style: none;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	font-size: var(--bhm-text-small);
	line-height: 1.4;
	color: var(--bhm-muted);
	white-space: nowrap;
}

.bhm-template-areas-hub .bhm-hub-crumbs__list a {
	color: inherit;
	text-decoration: none;
}

.bhm-template-areas-hub .bhm-hub-crumbs__list a:hover,
.bhm-template-areas-hub .bhm-hub-crumbs__list a:focus-visible {
	color: var(--bhm-navy);
	text-decoration: underline;
}

.bhm-template-areas-hub .bhm-hub-crumbs__list [aria-current="page"] {
	color: var(--bhm-navy);
	font-weight: var(--bhm-fw-semibold);
}

.bhm-areas-hero {
	padding-block: var(--bhm-space-4) var(--bhm-space-3);
	background: transparent;
}

.bhm-areas-hero__inner {
	display: flex;
	flex-direction: column;
	gap: var(--bhm-space-3);
}

.bhm-areas-hero__copy {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--bhm-space-3);
	min-width: 0;
}

.bhm-areas-hero__badge {
	display: block;
	margin: 0;
	padding: 0;
	border: 0;
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-semibold);
	letter-spacing: 0.02em;
	color: var(--bhm-muted);
	max-width: 100%;
}

.bhm-areas-hero__title {
	margin: 0;
	font-size: clamp(1.5rem, 3vw, 2rem);
	font-weight: var(--bhm-fw-extrabold);
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--bhm-navy);
}

.bhm-areas-hero__lead {
	margin: 0;
	color: var(--bhm-slate);
	font-size: var(--bhm-text-lead);
	font-weight: var(--bhm-fw-regular);
	line-height: 1.5;
}

.bhm-areas-hero__zip {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-accent);
	text-decoration: none;
}

.bhm-areas-hero__zip:hover,
.bhm-areas-hero__zip:focus-visible {
	text-decoration: underline;
}

.bhm-areas-hero__trust {
	display: inline-flex;
	align-items: center;
	gap: var(--bhm-space-2, 0.5rem);
	margin: 0;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-regular);
	color: var(--bhm-muted);
	white-space: nowrap;
}

.bhm-areas-hero__trust img {
	display: block;
	flex-shrink: 0;
}

.bhm-areas-intro {
	padding-block: var(--bhm-space-6, 1.5rem);
}

.bhm-areas-intro__content {
	max-width: 65ch;
}

.bhm-areas-intro__content > :first-child {
	margin-top: 0;
}

.bhm-areas-intro__content > :last-child {
	margin-bottom: 0;
}

.bhm-map[data-context="areas"] {
	padding: var(--bhm-space-6) 0 var(--bhm-space-8, 2rem);
}

.bhm-map[data-context="areas"] .bhm-map__header {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.bhm-map[data-context="areas"] .bhm-map__title {
	margin: 0;
}

.bhm-map[data-context="areas"] .bhm-map__search-row {
	display: flex;
	flex-wrap: wrap;
	align-items: stretch;
	gap: var(--bhm-space-2, 0.5rem);
}

.bhm-map[data-context="areas"] .bhm-map__search {
	flex: 1 1 12rem;
	min-width: 0;
}

.bhm-map[data-context="areas"] .bhm-map__search input {
	font-size: var(--bhm-text-body);
}

.bhm-map[data-context="areas"] .bhm-map__search-row .bhm-map__detect {
	flex: 0 0 auto;
	padding-inline: var(--bhm-space-2);
	border-color: transparent;
	background: transparent;
	color: var(--bhm-accent);
	box-shadow: none;
}

.bhm-map[data-context="areas"] .bhm-map__search-row .bhm-map__detect:hover,
.bhm-map[data-context="areas"] .bhm-map__search-row .bhm-map__detect:focus-visible,
.bhm-map[data-context="areas"] .bhm-map__search-row .bhm-map__detect:active {
	background: transparent;
	border-color: transparent;
	color: var(--bhm-navy);
	text-decoration: underline;
	box-shadow: none;
}

.bhm-map[data-context="areas"] .bhm-map__tip[hidden] {
	display: none !important;
}

.bhm-map[data-context="areas"] .bhm-map__status {
	margin: 0 0 0.5rem;
	font-size: var(--bhm-text-small);
	line-height: 1.4;
	color: var(--bhm-navy);
}

.bhm-map[data-context="areas"] .bhm-map__status[hidden] {
	display: none !important;
}

.bhm-map[data-context="areas"] button.bhm-map__marker {
	padding: 0;
	appearance: none;
	font: inherit;
}

.bhm-map[data-context="areas"] button.bhm-map__town {
	width: 100%;
	margin: 0;
	border: 0;
	background: transparent;
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.bhm-map[data-context="areas"] .bhm-map__miss {
	margin: 0.75rem 0 0;
	padding: 0.85rem 1rem;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	background: var(--bhm-surface-muted);
}

.bhm-map[data-context="areas"] .bhm-map__miss[hidden] {
	display: none;
}

.bhm-map[data-context="areas"] .bhm-map__miss-copy {
	margin: 0 0 0.75rem;
	font-size: var(--bhm-text-small);
	line-height: 1.5;
	color: var(--bhm-navy);
}

.bhm-map[data-context="areas"] .bhm-map__miss-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem 0.75rem;
	align-items: center;
}

.bhm-areas-dir__header {
	margin-bottom: 1.5rem;
	max-width: 40rem;
}

.bhm-areas-dir__header .bhm-title {
	margin: 0;
}

.bhm-areas-dir__header .bhm-lead {
	margin: 0.5rem 0 0;
}

.bhm-areas-dir__grid {
	display: grid;
	gap: 1.5rem;
}

.bhm-areas-dir__region {
	min-width: 0;
	padding: 1.25rem;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius);
	background: var(--bhm-paper);
}

.bhm-areas-dir__region-title {
	display: flex;
	align-items: center;
	min-height: 44px;
	margin: 0 0 0.85rem;
	font-size: 1.125rem;
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-navy);
	cursor: pointer;
	list-style: none;
}

.bhm-areas-dir__region-title::-webkit-details-marker {
	display: none;
}

.bhm-areas-dir__county {
	margin: -0.35rem 0 0.85rem;
	font-size: var(--bhm-text-small);
}

.bhm-areas-dir__county a {
	color: var(--bhm-accent);
	font-weight: var(--bhm-fw-semibold);
	text-decoration: none;
}

.bhm-areas-dir__county a:hover,
.bhm-areas-dir__county a:focus-visible {
	text-decoration: underline;
}

.bhm-areas-dir__towns {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.bhm-areas-dir__town {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	min-height: 44px;
	padding: 0.35rem 0.75rem;
	border: 1px solid var(--bhm-border);
	border-radius: var(--bhm-radius-sm);
	background: var(--bhm-surface-muted);
	color: var(--bhm-navy);
	font: inherit;
	font-size: var(--bhm-text-small);
	font-weight: var(--bhm-fw-semibold);
	text-decoration: none;
	cursor: pointer;
}

.bhm-areas-dir__town:hover,
.bhm-areas-dir__town:focus-visible {
	border-color: var(--bhm-accent);
	color: var(--bhm-accent);
}

.bhm-areas-dir__tag {
	font-size: var(--bhm-text-kicker);
	font-weight: var(--bhm-fw-semibold);
	color: var(--bhm-muted);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.bhm-areas-faq .bhm-faq {
	margin: 0;
}

.bhm-areas-faq__more {
	margin: 1.25rem 0 0;
	font-size: var(--bhm-text-small);
}

.bhm-areas-faq__more a {
	color: var(--bhm-accent);
	font-weight: var(--bhm-fw-semibold);
}

@media (min-width: 900px) {
	.bhm-map[data-context="areas"] {
		padding: var(--bhm-space-6) 0 var(--bhm-space-8, 2rem);
	}
}

@media (min-width: 768px) {
	.bhm-areas-hero__zip {
		display: none;
	}

	.bhm-areas-dir__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (min-width: 1100px) {
	.bhm-areas-hero__inner {
		flex-direction: row;
		align-items: flex-end;
		justify-content: space-between;
		gap: 1.5rem;
	}

	.bhm-areas-dir__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bhm-map[data-context="areas"] .bhm-map__detect {
		width: 100%;
	}

	.bhm-areas-final {
		padding-bottom: calc(var(--bhm-space-8, 2.5rem) + env(safe-area-inset-bottom, 0px));
	}
}
