.area-map {
	position: relative;
	padding: 40px 0;
}

.area-map h3 {
	margin-bottom: 24px;
	font-size: 30px;
	font-weight: 700;
}

.area-map-wrapper {
	width: 100%;
}

.area-map-container {
	position: relative;
	width: 100%;
	min-height: 400px;
	border-radius: 8px;
	overflow: hidden;
}

.area-map-chart {
	width: 100%;
	height: 400px;
}

#area-map-chart {
	width: 100%;
	height: 500px;
	margin: 0 auto;
	background: #fff;
	position: relative;
	cursor: wait;
}

/* Ready state - pointer cursor */
#area-map-chart.map-ready {
	cursor: pointer;
}

/* Loading indicator overlay */
#area-map-chart::before {
	content: "Loading...";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	background: rgba(255, 255, 255, 0.9);
	padding: 10px 20px;
	border-radius: 4px;
	font-size: 14px;
	color: var(--color-secondary);
	z-index: 10;
	opacity: 1;
	transition: opacity 0.3s ease-out;
	pointer-events: none;
}

/* Hide loading indicator when ready - use a separate class */
#area-map-chart.loading-complete::before {
	opacity: 0;
}

/* Mobile fallback: State links grid */
.area-map-mobile {
	display: none;
}

.area-map-mobile.active {
	display: block !important;
}

.state-links-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
	gap: 12px;
	margin-top: 20px;
}

.state-links-grid a {
	display: block;
	padding: 12px 16px;
	background: var(--color-primary);
	color: white;
	text-decoration: none;
	border-radius: 4px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.state-links-grid a:hover {
	background: var(--color-primary-dark);
}

.state-list {
	list-style: none;
	padding: 0;
	margin: 0;
	columns: 2;
	column-gap: 40px;
	column-fill: balance;
}

.state-list li {
	margin: 0 0 8px 0;
	break-inside: avoid;
	page-break-inside: avoid;
}

@media only screen and (min-width: 768px) {
	.area-map h3 {
		text-align: left;
	}

	.area-map-container {
		min-height: 500px;
	}

	.area-map-chart {
		height: 500px;
	}
}

@media only screen and (min-width: 1025px) {
	.area-map-container {
		min-height: 600px;
	}

	.area-map-chart {
		height: 600px;
	}
}

@media (max-width: 768px) {
	.area-map {
		padding: 0;
	}

	#area-map-chart {
		height: 400px;
	}

	.state-links-grid {
		grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
		gap: 8px;
	}

	.state-links-grid a {
		padding: 10px 12px;
		font-size: 14px;
	}

	.state-list {
		columns: 1;
	}

	.state-list li {
		margin-bottom: 12px;
	}
}
