.z-leaflet-map {
	--z-map-marker-color: var(--wp--preset--color--accent, #1d4ed8);
	--z-map-marker-border: #ffffff;
	--z-map-popup-bg: var(--wp--preset--color--foreground, #111827);
	--z-map-popup-text: var(--wp--preset--color--background, #ffffff);
	--z-map-popup-link: var(--wp--preset--color--accent, #facc15);
	width: 100%;
	margin: 1.25rem 0;
}

.z-leaflet-map__canvas {
	width: 100%;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	overflow: hidden;
}

.z-leaflet-map-editor__preview {
	width: 100%;
	min-height: 220px;
	border: 1px solid #d9d9d9;
	border-radius: 8px;
	overflow: hidden;
}

.z-leaflet-map-editor__marker-form {
	padding: 12px;
	border: 1px solid #e3e3e3;
	border-radius: 6px;
	margin-bottom: 12px;
	background: #fff;
}

.z-leaflet-marker {
	background: transparent;
	border: 0;
	position: relative;
	width: 44px;
	height: 58px;
	transform: translateY(-1px);
	filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.22));
}

.z-leaflet-marker-shape {
	position: absolute;
	top: 2px;
	left: 50%;
	width: 38px;
	height: 38px;
	transform: translateX(-50%) rotate(-45deg);
	border-radius: 50% 50% 50% 0;
	background: var(--z-map-marker-border);
	display: block;
	box-shadow:
		0 1px 0 rgba(255, 255, 255, 0.55) inset,
		0 0 0 6px rgba(255, 255, 255, 0.18);
}

.z-leaflet-marker-shape-inner {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 29px;
	height: 29px;
	transform: translate(-50%, -50%);
	border-radius: 50% 50% 50% 0;
	background: var(--z-map-marker-color);
}

.z-leaflet-marker-shape-hole {
	position: absolute;
	left: 50%;
	top: 50%;
	width: 13px;
	height: 13px;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: var(--z-map-marker-border);
	box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.12);
}

.leaflet-container .z-leaflet-popup-shell .leaflet-popup-content-wrapper {
	background: var(--z-map-popup-bg);
	color: var(--z-map-popup-text);
	border-radius: 16px;
	padding: 0;
	border: 1px solid rgba(255, 255, 255, 0.16);
	box-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
	backdrop-filter: blur(2px);
}

.leaflet-container .z-leaflet-popup-shell .leaflet-popup-tip {
	background: var(--z-map-popup-bg);
	border: 1px solid rgba(255, 255, 255, 0.12);
}

.leaflet-container .z-leaflet-popup-shell .leaflet-popup-content {
	margin: 0;
	min-width: 360px;
	max-width: 480px;
}

.z-leaflet-popup {
	color: var(--z-map-popup-text);
	padding: 18px 18px 16px;
}

.z-leaflet-popup,
.z-leaflet-popup p,
.z-leaflet-popup span,
.z-leaflet-popup div,
.z-leaflet-popup h1,
.z-leaflet-popup h2,
.z-leaflet-popup h3,
.z-leaflet-popup h4,
.z-leaflet-popup h5,
.z-leaflet-popup h6 {
	color: var(--z-map-popup-text);
}

.z-leaflet-popup__title {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: 0.01em;
  color: var(--z-map-popup-link) !important;
}

.z-leaflet-popup__content,
.z-leaflet-popup__body {
	margin: 0;
	font-size: 18px;
	line-height: 1.58;
	white-space: pre-line;
	opacity: 0.96;
}

.z-leaflet-popup__content p,
.z-leaflet-popup__body p {
	margin: 0 0 8px;
}

.z-leaflet-popup__actions {
	margin: 14px 0 0;
}

.z-leaflet-popup__route {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 9px 13px;
	border-radius: 50px;
	/* background: color-mix(in srgb, var(--z-map-popup-link) 20%, transparent); */
	border: 1px solid color-mix(in srgb, var(--z-map-popup-link) 55%, transparent);
	color: var(--z-map-popup-link) !important;
	text-decoration: none;
	font-weight: 600;
	transition: transform 0.15s ease, filter 0.2s ease;
}

.z-leaflet-popup__route:hover {
	filter: brightness(1.08);
	transform: translateY(-1px);
}
