/**
 * Roark – DSGVO map-tile consent placeholder.
 *
 * Shared by the listing map (assets/elementor/js/src/listing-map.js) and the
 * exposé map widget (src/Elementor/Widgets/Expose/ExposeMapWidget.php) for
 * both the OpenStreetMap/Leaflet embed and the Google Maps iframe embed —
 * any third party that would otherwise receive the visitor's IP on page load.
 */

.roark-map-consent {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	padding: 24px;
	text-align: center;
	background: #eef0f2;
	color: #374151;
	box-sizing: border-box;
}

.roark-map-consent__text {
	margin: 0;
	max-width: 480px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.roark-map-consent__text a {
	color: inherit;
	text-decoration: underline;
}

.roark-map-consent__btn {
	appearance: none;
	border: none;
	border-radius: var(--roark-radius-btn, 6px);
	background: #1f2937;
	color: #fff;
	font-size: 0.9rem;
	font-weight: 600;
	padding: 10px 20px;
	cursor: pointer;
}

.roark-map-consent__btn:hover,
.roark-map-consent__btn:focus-visible {
	background: #111827;
}

.roark-map-consent-revoke {
	position: absolute;
	top: 6px;
	right: 6px;
	z-index: 5;
	appearance: none;
	border: none;
	border-radius: 4px;
	width: 22px;
	height: 22px;
	line-height: 20px;
	background: rgba(255, 255, 255, 0.85);
	color: #374151;
	font-size: 14px;
	cursor: pointer;
	padding: 0;
}

.roark-map-consent-revoke:hover,
.roark-map-consent-revoke:focus-visible {
	background: #fff;
}

/* Containers the placeholder is absolutely positioned inside must establish
   a positioning context. Both the Leaflet div and the exposé embed div are
   otherwise plain block elements with a fixed height. */
.roark-listing-map,
.roark-expose-map__embed {
	position: relative;
}

/* Map tile tint (Settings → Map) — filters the tile pane only, never markers/popups. */
.roark-map-tint--grayscale .leaflet-tile-pane { filter: grayscale(1); }
.roark-map-tint--theme .leaflet-tile-pane { filter: saturate(.55) contrast(.96) brightness(1.02); }

/* Slot for the official Mapbox logo (filter roark_mapbox_logo_html). */
.roark-mapbox-logo { line-height: 0; margin: 0 0 4px 6px; }
.roark-mapbox-logo img, .roark-mapbox-logo svg { display: block; max-height: 20px; width: auto; }
