/* Service-area map (assets/js/service-map.js). Leaflet's own CSS is loaded on demand. */
.hcw-service-map-wrap { min-width: 0; }

.hcw-service-map {
	display: block;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 300px;
	background: #1a2a2a;
	border: 1px solid var(--hcw-line);
	position: relative;
	z-index: 0;
}
.hcw-service-map--tall { aspect-ratio: auto; height: 420px; }
@media (min-width: 1024px) { .hcw-service-map--tall { height: 500px; } }

.hcw-service-map .leaflet-container { font-family: inherit; }
.hcw-service-map__fallback { padding: 1rem; color: var(--hcw-text-dim); font-size: 14px; }

/* Area labels */
.leaflet-tooltip.hcw-map-label {
	background: rgba(5, 5, 5, 0.82);
	border: 1px solid rgba(58, 219, 74, 0.55);
	color: #fff;
	font-family: "JetBrains Mono", monospace;
	font-size: 11px;
	letter-spacing: 0.04em;
	padding: 2px 6px;
	box-shadow: none;
	white-space: nowrap;
}
.leaflet-tooltip.hcw-map-label--big { font-size: 13px; font-weight: 700; }
.leaflet-tooltip.hcw-map-label::before { display: none; }

.hcw-service-map .leaflet-popup-content-wrapper { border-radius: 4px; }
.hcw-service-map .leaflet-popup-content { margin: 10px 12px; font-size: 14px; line-height: 1.4; color: #111; }
.hcw-service-map .leaflet-popup-content a { color: #0a7d17; font-weight: 600; }

/* Town buttons under the map (hidden until the map is ready) */
.hcw-service-map__chips {
	display: none;
	flex-wrap: wrap;
	gap: 0.5rem;
	list-style: none;
	margin: 0.9rem 0 0;
	padding: 0;
}
.hcw-service-map-wrap.is-ready .hcw-service-map__chips { display: flex; }
.hcw-service-map__chips button {
	font: inherit;
	font-family: "JetBrains Mono", monospace;
	font-size: 12px;
	letter-spacing: 0.04em;
	color: #fff;
	background: transparent;
	border: 1px solid rgba(58, 219, 74, 0.5);
	padding: 0.4rem 0.75rem;
	cursor: pointer;
	transition: background-color .2s ease, color .2s ease;
}
.hcw-service-map__chips button:hover,
.hcw-service-map__chips button:focus-visible { background: var(--hcw-green); color: #050505; outline: none; }
.hcw-service-map__legend { margin: 0.75rem 0 0; font-size: 13px; color: var(--hcw-text-dim); }
.hcw-service-map__legend::before {
	content: "";
	display: inline-block;
	width: 12px;
	height: 12px;
	margin-right: 8px;
	vertical-align: -1px;
	background: rgba(58, 219, 74, 0.35);
	border: 1px solid #13a923;
}
.hcw-service-map__gmaps { display: inline-block; margin-top: 0.5rem; }
