:root {
	--nag-primary: var(--global-palette1, #003aa6);
	--nag-primary-contrast: #fff;
	--nag-border: rgba(20, 30, 40, 0.16);
	--nag-muted: rgba(20, 30, 40, 0.68);
	--nag-surface: #fff;
}

.nag-servicemap-map {
	min-height: 400px;
	width: 100%;
	z-index: 1;
}

.nag-servicemap-controls {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	align-items: center;
	margin: 0 0 18px;
}

.nag-servicemap-region-buttons {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.nag-servicemap-button,
.nag-servicemap-locations button {
	appearance: none;
	border: 1px solid var(--nag-border);
	background: var(--nag-surface);
	color: inherit;
	cursor: pointer;
	font: inherit;
	line-height: 1.2;
	text-align: left;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nag-servicemap-button {
	border-radius: 6px;
	font-weight: 600;
	padding: 10px 14px;
}

.nag-servicemap-button:hover,
.nag-servicemap-button:focus-visible,
.nag-servicemap-button.is-active {
	background: var(--nag-primary);
	border-color: var(--nag-primary);
	color: var(--nag-primary-contrast);
}

.nag-servicemap-nearest {
	margin-left: auto;
}

.nag-servicemap-location-list {
	width: 100%;
}

.nag-servicemap-locations {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nag-servicemap-locations li + li {
	margin-top: 8px;
}

.nag-servicemap-locations button {
	display: grid;
	grid-template-columns: 18px 1fr;
	gap: 8px;
	align-items: center;
	width: 100%;
	border-radius: 6px;
	padding: 10px 12px;
}

.nag-servicemap-locations button:hover,
.nag-servicemap-locations button:focus-visible {
	border-color: var(--nag-primary);
	color: var(--nag-primary);
}

.nag-servicemap-pin {
	position: relative;
	display: inline-block;
	width: 12px;
	height: 12px;
	border-radius: 50% 50% 50% 0;
	background: var(--nag-primary);
	transform: rotate(-45deg);
}

.nag-servicemap-pin::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--nag-primary-contrast);
}

.nag-servicemap-loading,
.nag-servicemap-empty {
	color: var(--nag-muted);
	margin: 0;
}

.leaflet-popup-content strong {
	display: inline-block;
	margin-bottom: 4px;
}

.leaflet-popup-content a {
	color: var(--nag-primary);
	font-weight: 700;
}

#nag-servicemap-admin-map {
	height: 320px;
	margin-top: 12px;
	border: 1px solid var(--nag-border);
}

.nag-servicemap-admin-fields {
	max-width: 760px;
}

.nag-servicemap-import-result {
	margin-top: 18px;
	padding: 10px 12px;
}

@media (max-width: 767px) {
	.nag-servicemap-map {
		min-height: 300px;
	}

	.nag-servicemap-controls,
	.nag-servicemap-region-buttons {
		display: grid;
		grid-template-columns: 1fr;
		width: 100%;
	}

	.nag-servicemap-nearest {
		margin-left: 0;
	}
}
