.iim-map-wrapper {
	position: relative;
	max-width: 100%;
}

.iim-map-container svg {
	width: 100%;
	height: auto;
	display: block;
}

/* Base state styles */
.iim-state {
	transition: fill 0.12s ease, stroke 0.12s ease;
	outline: none;
}

/* Inactive states (no schools/students) */
.iim-state:not(.active) {
	cursor: default;
	opacity: 0.7; /* Slightly faded */
}

/* Active states (have data) */
.iim-state.active {
	cursor: pointer;
}

/* Hover/focus effect only for active states */
.iim-state.active.iim-hover {
	filter: brightness(0.98);
	stroke: #333;
	stroke-width: 1.2;
}

/* Tooltip */
.iim-tooltip {
	position: absolute;
	z-index: 10;
	background: rgba(28, 28, 28, 0.80);
	border: 0.063rem solid #ddd;
	padding: 0.5rem 0.625rem;
	border-radius: 0.5rem;
	box-shadow: 0 0.375rem 1.125rem rgba(0, 0, 0, 0.12);
	font-size: 0.813rem;
	pointer-events: none;
	min-width: 10rem;
}

.iim-tooltip .iim-tt-title {
	color: #FFF;
	font-family: "Mona Sans";
	font-size: 1rem;
	font-style: normal;
	font-weight: 500;
	line-height: normal;
}

.iim-tooltip .iim-tt-grid {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem 1rem;
}

.iim-tooltip .iim-tt-value {
	color: #FFF;
	font-family: "Mona Sans";
	font-size: 0.955rem;
	font-style: normal;
	font-weight: 700;
	line-height: normal;
}

.iim-tooltip .iim-tt-label {
	color: #FFF;
	font-family: "Mona Sans";
	font-size: 0.75rem;
	font-style: normal;
	font-weight: 400;
	line-height: normal;
}

/* Loading and error messages */
.iim-loading {
	padding: 1.875rem;
	text-align: center;
	color: #777;
}

.iim-error {
	color: red;
}
