.nemo-map-provider {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	flex-wrap: wrap;
	margin: 0 0.35rem 0 0;
	vertical-align: middle;
}

.nemo-map-provider__label {
	font-size: 12px;
	font-weight: 600;
	color: #1d2327;
	white-space: nowrap;
}

.nemo-map-provider__btns {
	display: inline-flex;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 4px;
	overflow: hidden;
	background: #fff;
}

.nemo-map-provider__btn {
	appearance: none;
	margin: 0;
	border: 0;
	border-right: 1px solid rgba(0, 0, 0, 0.08);
	background: #fff;
	color: #2c3338;
	font-size: 12px;
	line-height: 1.2;
	padding: 0.35rem 0.65rem;
	cursor: pointer;
	white-space: nowrap;
}

.nemo-map-provider__btn:last-child {
	border-right: 0;
}

.nemo-map-provider__btn:hover {
	background: #f6f7f7;
}

.nemo-map-provider__btn.is-active {
	background: #2271b1;
	color: #fff;
	font-weight: 600;
}

.nemo-map-provider__btn:focus-visible {
	outline: 2px solid #2271b1;
	outline-offset: 1px;
	z-index: 1;
}

/* Listing map control bar */
.map-zoom-actions .nemo-map-provider--listing {
	margin-right: 0.5rem;
}

/* Single property map — overlay so the map keeps full container height. */
.property-banner .map-wrap,
#pills-map .map-wrap {
	position: relative;
}

.nemo-map-provider--single {
	position: absolute;
	z-index: 1100; /* above Leaflet panes/controls (controls ≈ 1000) */
	display: flex;
	margin: 0;
	padding: 4px;
	border-radius: 4px;
	background: rgba(255, 255, 255, 0.92);
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	pointer-events: auto;
	/* Desktop: top center */
	top: 12px;
	right: auto;
	bottom: auto;
	left: 50%;
	transform: translateX(-50%);
}

.nemo-map-provider--single .nemo-map-provider__label {
	font-size: 12px;
}

/* Mobile: bottom-left (previous placement) */
@media (max-width: 767.98px) {
	.nemo-map-provider--single {
		top: auto;
		left: 12px;
		bottom: 22px;
		transform: none;
	}
}

/* Attention when the switcher first becomes visible */
@keyframes nemo-map-provider-attention-desktop {
	0% {
		opacity: 0;
		transform: translateX(-50%) translateY(-8px) scale(0.96);
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	}
	55% {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1.03);
		box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.28), 0 2px 10px rgba(0, 0, 0, 0.16);
	}
	100% {
		opacity: 1;
		transform: translateX(-50%) translateY(0) scale(1);
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	}
}

@keyframes nemo-map-provider-attention-mobile {
	0% {
		opacity: 0;
		transform: translateY(8px) scale(0.96);
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	}
	55% {
		opacity: 1;
		transform: translateY(0) scale(1.03);
		box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.28), 0 2px 10px rgba(0, 0, 0, 0.16);
	}
	100% {
		opacity: 1;
		transform: none;
		box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
	}
}

.nemo-map-provider--single.nemo-map-provider--attention {
	animation: nemo-map-provider-attention-desktop 0.7s ease-out both;
}

@media (max-width: 767.98px) {
	.nemo-map-provider--single.nemo-map-provider--attention {
		animation-name: nemo-map-provider-attention-mobile;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nemo-map-provider--single.nemo-map-provider--attention {
		animation: none;
	}
}

@media (max-width: 575.98px) {
	.nemo-map-provider__label {
		display: none;
	}

	.nemo-map-provider__btn {
		padding: 0.3rem 0.5rem;
		font-size: 11px;
	}
}

/* —— Google Maps consent dialog (DSGVO / LI) —— */
html.nemo-map-consent-open {
	overflow: hidden;
}

.nemo-map-consent[hidden] {
	display: none !important;
}

.nemo-map-consent {
	position: fixed;
	inset: 0;
	z-index: 100050;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1.25rem;
}

.nemo-map-consent__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(18, 28, 40, 0.48);
	backdrop-filter: blur(2px);
}

.nemo-map-consent__panel {
	position: relative;
	z-index: 1;
	width: min(100%, 26.5rem);
	max-height: min(90vh, 36rem);
	overflow: auto;
	padding: 1.35rem 1.4rem 1.25rem;
	border-radius: 10px;
	background: #fff;
	color: #1c2d41;
	box-shadow:
		0 1px 2px rgba(18, 28, 40, 0.06),
		0 18px 40px rgba(18, 28, 40, 0.22);
}

.nemo-map-consent__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.7rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: #5b6b7c;
}

.nemo-map-consent__title {
	margin: 0;
	font-size: 1.2rem;
	line-height: 1.3;
	font-weight: 700;
	color: #122038;
}

.nemo-map-consent__body {
	margin-top: 0.9rem;
}

.nemo-map-consent__lead,
.nemo-map-consent__detail {
	margin: 0 0 0.75rem;
	font-size: 0.92rem;
	line-height: 1.55;
	color: #334155;
}

.nemo-map-consent__detail {
	margin-bottom: 0.55rem;
	color: #5b6b7c;
	font-size: 0.86rem;
}

.nemo-map-consent__error {
	margin: 0 0 0.75rem;
	padding: 0.55rem 0.7rem;
	border-radius: 6px;
	background: #fef2f2;
	color: #991b1b;
	font-size: 0.84rem;
	line-height: 1.45;
}

.nemo-map-consent__error[hidden] {
	display: none !important;
}

.nemo-map-consent__privacy-wrap {
	margin: 0;
}

.nemo-map-consent__privacy {
	font-size: 0.86rem;
	font-weight: 600;
	color: #1a6bb5;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nemo-map-consent__privacy:hover {
	color: #0f4f8a;
}

.nemo-map-consent__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.55rem;
	margin-top: 1.15rem;
	justify-content: flex-end;
}

.nemo-map-consent__btn {
	appearance: none;
	border: 0;
	border-radius: 6px;
	padding: 0.62rem 0.95rem;
	font-size: 0.88rem;
	font-weight: 600;
	line-height: 1.25;
	cursor: pointer;
}

.nemo-map-consent__btn--ghost {
	background: #eef2f6;
	color: #1c2d41;
}

.nemo-map-consent__btn--ghost:hover {
	background: #e2e8f0;
}

.nemo-map-consent__btn--primary {
	background: #1a6bb5;
	color: #fff;
}

.nemo-map-consent__btn--primary:hover {
	background: #155a9a;
}

.nemo-map-consent__btn:focus-visible {
	outline: 2px solid #1a6bb5;
	outline-offset: 2px;
}

@media (max-width: 480px) {
	.nemo-map-consent__actions {
		flex-direction: column-reverse;
	}

	.nemo-map-consent__btn {
		width: 100%;
		text-align: center;
	}
}
