.newatours-reisekarten {
	--nt-map-gold: #b08d57;
	--nt-map-navy: #163650;

	/* Elementor Navigation controls */
	--nt-nav-bg: transparent;
	--nt-nav-size: 34px;
	--nt-dot-color: #c7cbd0;
	--nt-dot-active-color: #b08d57;
	--nt-map-auto: #43484d;
	--nt-map-rail: #c43d4d;
	--nt-map-ship: #2474a8;
	--nt-map-flight: #b08d57;
	--nt-map-hotel: #c62828;
	--nt-map-sight: #b08d57;
	--nt-map-point: #475569;
	--nt-map-station: #7a2735;
	--nt-map-airport: #3f7f5f;
	--nt-map-harbour: #2474a8;
	position: relative;
	width: 100%;
}

.newatours-reisekarten-stage {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	background: #eef1f3;
	isolation: isolate;
}

.newatours-reisekarten-canvas,
.newatours-reisekarten-lightbox-map {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	background: #eef1f3;
}

.newatours-reisekarten .leaflet-container {
	width: 100%;
	height: 100%;
	font-family: inherit;
	background: #eef1f3;
}

/* Important for Elementor / theme global img rules */
.newatours-reisekarten .leaflet-container img,
.newatours-reisekarten .leaflet-container .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
}


.newatours-reisekarten-open {
	position: absolute !important;
	inset: 0 !important;
	z-index: 400 !important;
	display: block !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 0 !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: zoom-in !important;
}

.newatours-reisekarten-nav,
.newatours-reisekarten-lightbox-nav {
	position: absolute !important;
	top: 50% !important;
	z-index: 600 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 44px !important;
	height: 44px !important;
	min-width: 44px !important;
	min-height: 44px !important;
	max-width: 44px !important;
	max-height: 44px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: rgba(22, 54, 80, .82) !important;
	box-shadow: 0 2px 10px rgba(0,0,0,.22) !important;
	color: #fff !important;
	font-size: 0 !important;
	transform: translateY(-50%) !important;
	cursor: pointer;
}

.newatours-reisekarten-nav:hover,
.newatours-reisekarten-lightbox-nav:hover {
	background: rgba(22, 54, 80, .96) !important;
}

.newatours-reisekarten-nav.is-prev,
.newatours-reisekarten-lightbox-nav.is-prev {
	left: 14px !important;
	right: auto !important;
}

.newatours-reisekarten-nav.is-next,
.newatours-reisekarten-lightbox-nav.is-next {
	right: 14px !important;
	left: auto !important;
}

.newatours-reisekarten-nav svg,
.newatours-reisekarten-lightbox-nav svg {
	display: block !important;
	width: 26px !important;
	height: 26px !important;
	margin: 0 !important;
	fill: none !important;
	stroke: currentColor !important;
	stroke-width: 2 !important;
}

.newatours-reisekarten-meta { display: none; }
.newatours-reisekarten-meta.is-active { display: block; }

.newatours-reisekarten-legend {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 18px;
	margin-top: 12px;
}

.newatours-reisekarten-legend-item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #4b5563;
	font-size: 13px;
	line-height: 1.35;
}

.newatours-reisekarten-legend-marker {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 20px;
	width: 20px;
	height: 20px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-sizing: border-box;
	box-shadow: 0 1px 4px rgba(0,0,0,.24);
	color: #fff;
	background: var(--nt-map-point);
	font: 700 12px/1 Arial,sans-serif;
}

.newatours-reisekarten-legend-marker.is-hotel { background: var(--nt-map-hotel); }
.newatours-reisekarten-legend-marker.is-sight { background: var(--nt-map-sight); }
.newatours-reisekarten-legend-marker.is-point { background: var(--nt-map-point); }
.newatours-reisekarten-legend-marker.is-station { background: var(--nt-map-station); font-size: 9px; }
.newatours-reisekarten-legend-marker.is-airport { background: var(--nt-map-airport); font-size: 10px; }
.newatours-reisekarten-legend-marker.is-harbour { background: var(--nt-map-harbour); }

.newatours-reisekarten-legend-line {
	display: inline-block;
	flex: 0 0 32px;
	width: 32px;
	height: 0;
	border-top: 4px solid var(--nt-map-auto);
}
.newatours-reisekarten-legend-line.is-bahn { border-color: var(--nt-map-rail); }
.newatours-reisekarten-legend-line.is-schiff { border-color: var(--nt-map-ship); }
.newatours-reisekarten-legend-line.is-flug {
	border-color: var(--nt-map-flight);
	border-top-width: 3px;
	border-top-style: dashed;
}

.newatours-reisekarten-caption {
	margin-top: 9px;
	color: var(--nt-map-navy);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	text-align: center;
}

.newatours-reisekarten-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 11px;
}

.newatours-reisekarten-dot {
	display: block !important;
	flex: 0 0 9px !important;
	width: 9px !important;
	height: 9px !important;
	min-width: 9px !important;
	min-height: 9px !important;
	max-width: 9px !important;
	max-height: 9px !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #c7cbd0 !important;
	box-shadow: none !important;
	font-size: 0 !important;
	line-height: 0 !important;
	cursor: pointer;
}
.newatours-reisekarten-dot.is-active {
	background: var(--nt-map-gold) !important;
	transform: scale(1.18);
}

.newatours-reisekarten .newatours-map-marker {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border: 2px solid #fff;
	border-radius: 50%;
	box-sizing: border-box;
	box-shadow: 0 1px 6px rgba(0,0,0,.32);
	color: #fff;
	background: var(--nt-map-point);
	font: 700 16px/1 Arial,sans-serif;
}
.newatours-reisekarten .newatours-map-marker.is-hotel { background: var(--nt-map-hotel); }
.newatours-reisekarten .newatours-map-marker.is-sight { background: var(--nt-map-sight); }
.newatours-reisekarten .newatours-map-marker.is-point { background: var(--nt-map-point); }
.newatours-reisekarten .newatours-map-marker.is-station { background: var(--nt-map-station); font-size: 12px; }
.newatours-reisekarten .newatours-map-marker.is-airport { background: var(--nt-map-airport); font-size: 13px; }
.newatours-reisekarten .newatours-map-marker.is-harbour { background: var(--nt-map-harbour); }

.newatours-reisekarten .newatours-map-label {
	padding: 3px 7px;
	border: 1px solid rgba(0,0,0,.12);
	border-radius: 4px;
	background: rgba(255,255,255,.94);
	box-shadow: 0 1px 4px rgba(0,0,0,.12);
	color: #1f2937;
	font-size: 12px;
	font-weight: 600;
	white-space: nowrap;
}

.newatours-reisekarten-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	background: rgba(8,17,26,.86);
}
.newatours-reisekarten-lightbox.is-open { display: flex; }

.newatours-reisekarten-lightbox-dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(1500px,96vw);
	max-height: 94vh;
	padding: 18px;
	border-radius: 10px;
	background: #fff;
	box-shadow: 0 20px 70px rgba(0,0,0,.45);
}

.newatours-reisekarten-lightbox-map-wrap {
	position: relative;
	width: 100%;
	height: min(76vh,900px);
	min-height: 320px;
	overflow: hidden;
	border-radius: 7px;
	background: #eef1f3;
}
.newatours-reisekarten-lightbox-map {
	position: absolute;
	inset: 0;
}

.newatours-reisekarten-lightbox-close {
	position: absolute;
	top: -16px;
	right: -16px;
	z-index: 1000;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	padding: 0 0 2px;
	border: 0;
	border-radius: 50%;
	color: #fff;
	background: #163650;
	box-shadow: 0 2px 10px rgba(0,0,0,.28);
	font: 400 30px/1 Arial,sans-serif;
	cursor: pointer;
}

.newatours-reisekarten-lightbox-meta { padding: 12px 8px 2px; }
.newatours-reisekarten-lightbox-caption {
	margin-top: 8px;
	color: var(--nt-map-navy);
	font-size: 16px;
	font-weight: 600;
	text-align: center;
}
.newatours-reisekarten-lightbox-legend .newatours-reisekarten-legend { margin-top: 0; }
body.newatours-reisekarten-lightbox-open { overflow: hidden; }

.newatours-reisekarten .leaflet-control-attribution { font-size: 10px; }

@media (max-width:767px) {
	.newatours-reisekarten-stage { aspect-ratio: 1 / 1; }
	.newatours-reisekarten-nav,
	.newatours-reisekarten-lightbox-nav {
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		min-height: 38px !important;
		max-width: 38px !important;
		max-height: 38px !important;
	}
	.newatours-reisekarten-nav.is-prev,
	.newatours-reisekarten-lightbox-nav.is-prev { left: 8px !important; }
	.newatours-reisekarten-nav.is-next,
	.newatours-reisekarten-lightbox-nav.is-next { right: 8px !important; }
	.newatours-reisekarten-lightbox { padding: 10px; }
	.newatours-reisekarten-lightbox-dialog { width:100%; max-height:96vh; padding:10px; }
	.newatours-reisekarten-lightbox-map-wrap { height:72vh; min-height:280px; }
	.newatours-reisekarten-lightbox-close { top:8px; right:8px; width:38px; height:38px; }
}


/* =========================================================
   VECTOR BASEMAP (MAPLIBRE)
   ========================================================= */

.newatours-reisekarten .maplibregl-map,
.newatours-reisekarten .maplibregl-canvas-container,
.newatours-reisekarten .maplibregl-canvas {
	width: 100%;
	height: 100%;
}

.newatours-reisekarten .maplibregl-canvas {
	outline: 0;
}

.newatours-reisekarten .leaflet-maplibre-gl {
	z-index: 1;
}

.newatours-reisekarten .leaflet-overlay-pane,
.newatours-reisekarten .leaflet-marker-pane,
.newatours-reisekarten .leaflet-tooltip-pane {
	z-index: 400;
}



/* =========================================================
   NAVIGATION – FINALES DESIGN
   ========================================================= */

/*
 * Normale Kartenansicht:
 * reine dunkelblaue Chevrons, ohne Kreis / Hintergrund.
 */
.newatours-reisekarten button.newatours-reisekarten-nav {
	width: 42px !important;
	height: 56px !important;
	min-width: 42px !important;
	min-height: 56px !important;
	max-width: 42px !important;
	max-height: 56px !important;

	border: 0 !important;
	border-radius: 0 !important;
	background: var(--nt-nav-bg) !important;
	background-color: var(--nt-nav-bg) !important;
	background-image: none !important;
	box-shadow: none !important;

	color: var(--nt-nav-color) !important;
	opacity: 1 !important;
}

.newatours-reisekarten button.newatours-reisekarten-nav:hover,
.newatours-reisekarten button.newatours-reisekarten-nav:focus,
.newatours-reisekarten button.newatours-reisekarten-nav:active {
	background: var(--nt-nav-bg) !important;
	background-color: var(--nt-nav-bg) !important;
	box-shadow: none !important;
	color: var(--nt-nav-color) !important;
}

.newatours-reisekarten button.newatours-reisekarten-nav svg {
	width: var(--nt-nav-size) !important;
	height: var(--nt-nav-size) !important;
	stroke-width: 2.15 !important;
	filter: drop-shadow(0 1px 1px rgba(255,255,255,.75));
}


/* =========================================================
   LIGHTBOX – KLASSISCHES LIGHTBOX-VERHALTEN
   ========================================================= */

/*
 * Auf Desktop liegen die Chevrons außerhalb der eigentlichen Karte,
 * direkt auf dem dunklen Overlay.
 */
.newatours-reisekarten-lightbox-dialog {
	width: min(1500px, calc(100vw - 170px));
	max-width: 1500px;
	overflow: visible;
	background: #fff;
}

.newatours-reisekarten-lightbox-map-wrap {
	overflow: hidden;
}

/*
 * Lightbox-Chevrons: weiß, ohne Kreis / Hintergrund.
 */
.newatours-reisekarten button.newatours-reisekarten-lightbox-nav {
	width: 52px !important;
	height: 72px !important;
	min-width: 52px !important;
	min-height: 72px !important;
	max-width: 52px !important;
	max-height: 72px !important;

	border: 0 !important;
	border-radius: 0 !important;
	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;

	color: #fff !important;
	opacity: .96 !important;
}

.newatours-reisekarten button.newatours-reisekarten-lightbox-nav:hover,
.newatours-reisekarten button.newatours-reisekarten-lightbox-nav:focus,
.newatours-reisekarten button.newatours-reisekarten-lightbox-nav:active {
	background: transparent !important;
	background-color: transparent !important;
	box-shadow: none !important;
	color: #fff !important;
	opacity: 1 !important;
}

.newatours-reisekarten button.newatours-reisekarten-lightbox-nav svg {
	width: 42px !important;
	height: 42px !important;
	stroke-width: 2 !important;
	filter: drop-shadow(0 1px 3px rgba(0,0,0,.35));
}

/*
 * Aus der weißen Lightbox-Box hinaus in den dunklen Bereich.
 */
.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-prev {
	left: -76px !important;
	right: auto !important;
}

.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-next {
	right: -76px !important;
	left: auto !important;
}


/*
 * Schließen: ebenfalls klassisch – weißes X frei auf dem Overlay,
 * nicht mehr in einem dunkelblauen Kreis.
 */
.newatours-reisekarten .newatours-reisekarten-lightbox-close {
	top: -48px !important;
	right: -6px !important;

	width: 42px !important;
	height: 42px !important;
	min-width: 42px !important;
	min-height: 42px !important;

	padding: 0 !important;
	border: 0 !important;
	border-radius: 0 !important;

	background: transparent !important;
	background-color: transparent !important;
	background-image: none !important;
	box-shadow: none !important;

	color: #fff !important;
	font: 300 38px/1 Arial, sans-serif !important;
	text-shadow: 0 1px 3px rgba(0,0,0,.45);
	opacity: .96;
}

.newatours-reisekarten .newatours-reisekarten-lightbox-close:hover,
.newatours-reisekarten .newatours-reisekarten-lightbox-close:focus,
.newatours-reisekarten .newatours-reisekarten-lightbox-close:active {
	background: transparent !important;
	color: #fff !important;
	opacity: 1;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767px) {

	/*
	 * Im mobilen Lightbox fehlt außen der Platz:
	 * deshalb Chevrons wieder innerhalb der Karte.
	 */
	.newatours-reisekarten-lightbox-dialog {
		width: 100%;
		max-width: none;
	}

	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav {
		width: 42px !important;
		height: 58px !important;
		min-width: 42px !important;
		min-height: 58px !important;
		max-width: 42px !important;
		max-height: 58px !important;

		color: #fff !important;
		filter: drop-shadow(0 1px 4px rgba(0,0,0,.55));
	}

	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-prev {
		left: 8px !important;
		right: auto !important;
	}

	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-next {
		right: 8px !important;
		left: auto !important;
	}

	/*
	 * X bleibt oben rechts auf dem Overlay, aber näher an der Box,
	 * damit es auf schmalen Displays nicht abgeschnitten wird.
	 */
	.newatours-reisekarten .newatours-reisekarten-lightbox-close {
		top: -42px !important;
		right: 0 !important;
		width: 38px !important;
		height: 38px !important;
		min-width: 38px !important;
		min-height: 38px !important;
		font-size: 34px !important;
	}
}



/* =========================================================
   LIGHTBOX NAVIGATION – DESKTOP / TABLET FIX
   ========================================================= */

/*
 * Die Lightbox-Pfeile liegen als Kinder innerhalb von
 * .newatours-reisekarten-lightbox-map-wrap.
 * Deshalb darf dieser Wrapper auf Desktop/Tablet nicht clippen,
 * sonst verschwinden die nach außen gesetzten Chevrons.
 */
@media (min-width: 768px) {

	.newatours-reisekarten-lightbox-map-wrap {
		overflow: visible !important;
	}

	/*
	 * Die eigentliche Karte selbst bleibt sauber beschnitten.
	 */
	.newatours-reisekarten-lightbox-map {
		overflow: hidden !important;
		border-radius: 7px;
	}

	/*
	 * Weiße Lightbox-Chevrons außerhalb der Karte.
	 */
	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav {
		display: flex !important;
		visibility: visible !important;
		opacity: .96 !important;
		z-index: 1500 !important;
		color: #fff !important;
		pointer-events: auto !important;
	}

	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-prev {
		left: -70px !important;
		right: auto !important;
	}

	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-next {
		right: -70px !important;
		left: auto !important;
	}

	/*
	 * Das Schließen-X gehört – wie bei einem klassischen Lightbox –
	 * in die obere rechte Ecke des Browserfensters, nicht an den
	 * rechten Kartenrand.
	 */
	.newatours-reisekarten .newatours-reisekarten-lightbox-close {
		position: fixed !important;
		top: 14px !important;
		right: 18px !important;
		left: auto !important;

		z-index: 2000 !important;

		width: 44px !important;
		height: 44px !important;
		min-width: 44px !important;
		min-height: 44px !important;

		margin: 0 !important;
		padding: 0 !important;

		color: #fff !important;
		background: transparent !important;
		box-shadow: none !important;

		font-size: 38px !important;
		line-height: 44px !important;
		text-align: center;
	}
}


/* Tablet: etwas weniger Außenabstand, aber weiterhin außerhalb der Karte. */
@media (min-width: 768px) and (max-width: 1100px) {

	.newatours-reisekarten-lightbox-dialog {
		width: calc(100vw - 120px) !important;
	}

	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-prev {
		left: -54px !important;
	}

	.newatours-reisekarten button.newatours-reisekarten-lightbox-nav.is-next {
		right: -54px !important;
	}

	.newatours-reisekarten .newatours-reisekarten-lightbox-close {
		top: 10px !important;
		right: 12px !important;
	}
}


/* =========================================================
   ELEMENTOR NAVIGATION CONTROLS – LIVE VARIABLES
   These rules intentionally come last and therefore make the
   Elementor Style > Navigation controls effective.
   ========================================================= */

/* Main carousel chevrons only. Lightbox arrows stay white/fixed. */
.newatours-reisekarten button.newatours-reisekarten-nav {
	color: var(--nt-nav-color) !important;
	background: var(--nt-nav-bg) !important;
	background-color: var(--nt-nav-bg) !important;
}

.newatours-reisekarten button.newatours-reisekarten-nav:hover,
.newatours-reisekarten button.newatours-reisekarten-nav:focus,
.newatours-reisekarten button.newatours-reisekarten-nav:active {
	color: var(--nt-nav-color) !important;
	background: var(--nt-nav-bg) !important;
	background-color: var(--nt-nav-bg) !important;
}

.newatours-reisekarten button.newatours-reisekarten-nav svg {
	width: var(--nt-nav-size) !important;
	height: var(--nt-nav-size) !important;
}

/* Carousel pagination dots */
.newatours-reisekarten button.newatours-reisekarten-dot {
	background: var(--nt-dot-color) !important;
}

.newatours-reisekarten button.newatours-reisekarten-dot:hover {
	background: var(--nt-dot-color) !important;
}

.newatours-reisekarten button.newatours-reisekarten-dot.is-active,
.newatours-reisekarten button.newatours-reisekarten-dot.is-active:hover {
	background: var(--nt-dot-active-color) !important;
}


/* =========================================================
   NAVIGATION POLISH
   ========================================================= */

/*
 * Kein festes Elementor-Farbdefault:
 * wenn dort nichts gewählt ist, verwenden wir intern NewaTours-Blau.
 */
.newatours-reisekarten button.newatours-reisekarten-nav {
	--nt-nav-button-size:
		max(
			42px,
			calc(var(--nt-nav-size, 34px) + 14px)
		);

	width: var(--nt-nav-button-size) !important;
	height: var(--nt-nav-button-size) !important;
	min-width: var(--nt-nav-button-size) !important;
	min-height: var(--nt-nav-button-size) !important;
	max-width: var(--nt-nav-button-size) !important;
	max-height: var(--nt-nav-button-size) !important;

	color: var(--nt-nav-color, #163650) !important;

	/*
	 * Sobald ein Hintergrund gewählt wird, bleibt die Form rund.
	 * Bei transparentem Hintergrund ist der Kreis optisch unsichtbar.
	 */
	border-radius: 50% !important;
	background: var(--nt-nav-bg, transparent) !important;
	background-color: var(--nt-nav-bg, transparent) !important;
}

.newatours-reisekarten button.newatours-reisekarten-nav:hover,
.newatours-reisekarten button.newatours-reisekarten-nav:focus,
.newatours-reisekarten button.newatours-reisekarten-nav:active {
	color: var(--nt-nav-color, #163650) !important;
	background: var(--nt-nav-bg, transparent) !important;
	background-color: var(--nt-nav-bg, transparent) !important;
}

.newatours-reisekarten button.newatours-reisekarten-nav svg {
	width: var(--nt-nav-size, 34px) !important;
	height: var(--nt-nav-size, 34px) !important;
	max-width: none !important;
	max-height: none !important;
	flex: 0 0 auto;
}


/* =========================================================
   MARKER GLYPH CENTERING
   ========================================================= */

/*
 * Die inneren Zeichen (Punkt, Flagge, Buchstabe, Symbol)
 * werden unabhängig von der Schrift-Baseline exakt geometrisch
 * in der Mitte des Kreises positioniert.
 */
.newatours-reisekarten .newatours-map-marker,
.newatours-reisekarten .newatours-reisekarten-legend-marker {
	position: relative;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;

	text-align: center !important;
	line-height: 1 !important;
	vertical-align: middle !important;
}

/*
 * Text-/Unicode-Glyphen sitzen je nach Browser/Font oft leicht
 * ober- oder unterhalb der optischen Mitte. Der innere Inhalt
 * wird deshalb minimal über transform korrigiert.
 */
.newatours-reisekarten .newatours-map-marker {
	padding: 0 !important;
}

.newatours-reisekarten .newatours-map-marker::before,
.newatours-reisekarten .newatours-reisekarten-legend-marker::before {
	line-height: 1 !important;
}


/*
 * Für die runden Punkt-Symbole selbst verwenden wir keinen
 * Schriftpunkt mehr, sondern einen echten kleinen Kreis.
 * Dadurch ist die Mitte überall identisch.
 */
.newatours-reisekarten .newatours-map-marker.is-sight,
.newatours-reisekarten .newatours-map-marker.is-point,
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-sight,
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-point {
	font-size: 0 !important;
}

.newatours-reisekarten .newatours-map-marker.is-sight::after,
.newatours-reisekarten .newatours-map-marker.is-point::after,
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-sight::after,
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-point::after {
	content: "";
	display: block;
	flex: 0 0 auto;

	width: 6px;
	height: 6px;

	border-radius: 50%;
	background: #fff;
}


/*
 * Größere Kartenmarker bekommen einen proportional etwas
 * größeren Mittelpunkt als die Legenden-Symbole.
 */
.newatours-reisekarten .newatours-map-marker.is-sight::after,
.newatours-reisekarten .newatours-map-marker.is-point::after {
	width: 7px;
	height: 7px;
}


/* =========================================================
   LEGEND MARKER – OPTICAL CENTERING
   ========================================================= */

/*
 * In der kleinen Legende wirkt der weiße Mittelpunkt trotz
 * geometrischer Zentrierung optisch leicht zu tief.
 * Deshalb nur dort eine minimale optische Korrektur nach oben.
 */


/* =========================================================
   LEGEND MARKER – EXACT GEOMETRIC CENTER
   ========================================================= */

/*
 * Не подправляем точку "на глаз" вверх/вниз.
 * Вместо этого позиционируем её абсолютно ровно в центре
 * самого круглого маркера.
 */
.newatours-reisekarten
.newatours-reisekarten-legend-marker.is-sight,
.newatours-reisekarten
.newatours-reisekarten-legend-marker.is-point {
	position: relative !important;
}

.newatours-reisekarten
.newatours-reisekarten-legend-marker.is-sight::after,
.newatours-reisekarten
.newatours-reisekarten-legend-marker.is-point::after {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;

	width: 6px !important;
	height: 6px !important;

	margin: 0 !important;
	padding: 0 !important;

	transform: translate(-50%, -50%) !important;
	border-radius: 50% !important;
	background: #fff !important;
}


/* =========================================================
   WIDGET FLOW – STAGE + FOOTER
   ========================================================= */

/*
 * Der Widget-Inhalt besteht bewusst aus zwei normalen Flow-Blöcken:
 * 1. Kartenfläche
 * 2. Footer mit Legende, Kartenname und Navigationspunkten
 *
 * Dadurch muss Elementor die gesamte Höhe berücksichtigen.
 */
.newatours-reisekarten {
	position: relative !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}

.newatours-reisekarten-stage {
	flex: 0 0 auto !important;
	width: 100% !important;
}

.newatours-reisekarten-footer {
	position: relative !important;
	display: flex !important;
	flex: 0 0 auto !important;
	flex-direction: column !important;
	align-items: stretch !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}

.newatours-reisekarten-meta {
	position: static !important;
	float: none !important;
	width: 100% !important;
	height: auto !important;
	min-height: 0 !important;
}

.newatours-reisekarten-meta:not(.is-active) {
	display: none !important;
}

.newatours-reisekarten-meta.is-active {
	display: block !important;
}

.newatours-reisekarten-dots {
	position: static !important;
	float: none !important;
	flex: 0 0 auto !important;
	width: 100% !important;
	height: auto !important;
}


/* Elementor wrappers: keine feste Höhe und kein Stretch auf Kartenhöhe. */
.elementor-widget-newatours_reisekarten,
.elementor-element[data-widget_type^="newatours_reisekarten"] {
	height: auto !important;
	min-height: 0 !important;
	flex: 0 0 auto !important;
	align-self: auto !important;
	overflow: visible !important;
}

.elementor-widget-newatours_reisekarten > .elementor-widget-container,
.elementor-element[data-widget_type^="newatours_reisekarten"] > .elementor-widget-container {
	display: block !important;
	height: auto !important;
	min-height: 0 !important;
	overflow: visible !important;
}


/* Mobile: Footer ausdrücklich unter der Stage halten. */
@media (max-width: 767px) {

	.newatours-reisekarten-footer {
		display: flex !important;
		flex-direction: column !important;
	}

	.newatours-reisekarten-legend,
	.newatours-reisekarten-caption,
	.newatours-reisekarten-dots {
		position: static !important;
		transform: none !important;
	}

	.newatours-reisekarten-dots {
		margin-bottom: 1px;
	}
}


/* =========================================================
   COMPACT DOT MARKERS
   ========================================================= */

.newatours-reisekarten .newatours-map-marker {
	display: block !important;
	width: 16px !important;
	height: 16px !important;
	min-width: 16px !important;
	min-height: 16px !important;
	padding: 0 !important;
	border: 2px solid #fff !important;
	border-radius: 50% !important;
	box-sizing: border-box !important;
	box-shadow: 0 1px 4px rgba(0,0,0,.28) !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

.newatours-reisekarten .newatours-map-marker::before,
.newatours-reisekarten .newatours-map-marker::after {
	content: none !important;
	display: none !important;
}

.newatours-reisekarten .newatours-map-marker.is-hotel { background: var(--nt-map-hotel) !important; }
.newatours-reisekarten .newatours-map-marker.is-sight { background: var(--nt-map-sight) !important; }
.newatours-reisekarten .newatours-map-marker.is-point { background: var(--nt-map-point) !important; }
.newatours-reisekarten .newatours-map-marker.is-station { background: var(--nt-map-station) !important; }
.newatours-reisekarten .newatours-map-marker.is-airport { background: var(--nt-map-airport) !important; }
.newatours-reisekarten .newatours-map-marker.is-harbour { background: var(--nt-map-harbour) !important; }

.newatours-reisekarten .newatours-reisekarten-legend-marker {
	display: inline-block !important;
	flex: 0 0 12px !important;
	width: 12px !important;
	height: 12px !important;
	padding: 0 !important;
	border: 1.5px solid #fff !important;
	border-radius: 50% !important;
	box-sizing: border-box !important;
	box-shadow: 0 1px 3px rgba(0,0,0,.22) !important;
	color: transparent !important;
	font-size: 0 !important;
	line-height: 0 !important;
}

.newatours-reisekarten .newatours-reisekarten-legend-marker::before,
.newatours-reisekarten .newatours-reisekarten-legend-marker::after {
	content: none !important;
	display: none !important;
}

.newatours-reisekarten .newatours-reisekarten-legend-marker.is-hotel { background: var(--nt-map-hotel) !important; }
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-sight { background: var(--nt-map-sight) !important; }
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-point { background: var(--nt-map-point) !important; }
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-station { background: var(--nt-map-station) !important; }
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-airport { background: var(--nt-map-airport) !important; }
.newatours-reisekarten .newatours-reisekarten-legend-marker.is-harbour { background: var(--nt-map-harbour) !important; }

@media (max-width: 767px) {
	.newatours-reisekarten .newatours-map-marker {
		width: 12px !important;
		height: 12px !important;
		min-width: 12px !important;
		min-height: 12px !important;
		border-width: 1.5px !important;
	}
}


/* =========================================================
   DOT MARKER ANCHOR – RESPONSIVE EXACT CENTER
   ========================================================= */

/*
 * Leaflet benutzt weiterhin einen 16×16 Icon-Anker.
 * Auf Mobile ist der sichtbare Punkt 12×12.
 * 2px Außenabstand hält seinen Mittelpunkt exakt auf dem
 * geografischen Leaflet-Anker.
 */
@media (max-width: 767px) {
	.newatours-reisekarten .newatours-map-marker {
		margin: 2px !important;
	}
}

@media (min-width: 768px) {
	.newatours-reisekarten .newatours-map-marker {
		margin: 0 !important;
	}
}


/* =========================================================
   LEGENDE – DEZENTE GOLDENE FLÄCHE
   ========================================================= */

/*
 * Die Legende gehört optisch noch zur Karte und bekommt deshalb
 * eine sehr helle Goldfläche. Kartenname und Navigationspunkte
 * darunter bleiben auf weißem Hintergrund.
 */
.newatours-reisekarten .newatours-reisekarten-legend {
	background: rgba(176, 141, 87, .09) !important;
	padding: 9px 14px !important;
	box-sizing: border-box !important;
}

/*
 * Die einzelnen Legendeneinträge bleiben transparent, damit
 * die gemeinsame Fläche ruhig und zusammenhängend wirkt.
 */
.newatours-reisekarten .newatours-reisekarten-legend-item {
	background-color: transparent !important;
}

/*
 * Auf kleinen Displays etwas kompakter, ohne die Lesbarkeit
 * der Legende zu beeinträchtigen.
 */
@media (max-width: 767px) {
	.newatours-reisekarten .newatours-reisekarten-legend {
		padding: 8px 10px !important;
	}
}


/* =========================================================
   LEGENDE DIREKT AN DIE KARTE ANSCHLIESSEN
   ========================================================= */

.newatours-reisekarten .newatours-reisekarten-legend {
	margin-top: 0 !important;
}

.newatours-reisekarten .newatours-reisekarten-meta.is-active {
	margin-top: 0 !important;
}

/*
 * Sicherheit gegen minimale Inline-/Baseline-Spalten:
 * Footer beginnt unmittelbar unter der Kartenfläche.
 */
.newatours-reisekarten .newatours-reisekarten-footer {
	margin-top: 0 !important;
	padding-top: 0 !important;
}


/* =========================================================
   LIGHTBOX – LEGENDE DIREKT AN DIE KARTE ANSCHLIESSEN
   ========================================================= */

/*
 * Im Lightbox lag der Abstand nicht an der Legende selbst,
 * sondern am oberen Padding des Meta-Bereichs.
 */
.newatours-reisekarten-lightbox-meta {
	padding-top: 0 !important;
}

.newatours-reisekarten-lightbox-legend,
.newatours-reisekarten-lightbox-legend .newatours-reisekarten-legend {
	margin-top: 0 !important;
}


/* =========================================================
   REISEKARTEN SLIDESHOW – SLIDE TRANSITION
   ========================================================= */

/*
 * Die eigentliche Leaflet/MapLibre-Karte bleibt unverändert.
 * Für den Kartenwechsel wird nur der vorhandene Preview-Canvas
 * horizontal bewegt. Dadurch bleiben Routen, Marker, Zoom,
 * fitBounds und Lightbox-Logik unangetastet.
 */
.newatours-reisekarten-stage {
	overflow: hidden !important;
}

.newatours-reisekarten-canvas.is-slide-animating {
	will-change: transform, opacity;
	pointer-events: none;
}

.newatours-reisekarten-canvas.is-slide-out-left {
	transform: translate3d(-100%, 0, 0);
	opacity: .15;
	transition: transform 260ms ease-in, opacity 260ms ease-in;
}

.newatours-reisekarten-canvas.is-slide-out-right {
	transform: translate3d(100%, 0, 0);
	opacity: .15;
	transition: transform 260ms ease-in, opacity 260ms ease-in;
}

.newatours-reisekarten-canvas.is-slide-start-right {
	transform: translate3d(100%, 0, 0);
	opacity: .15;
	transition: none !important;
}

.newatours-reisekarten-canvas.is-slide-start-left {
	transform: translate3d(-100%, 0, 0);
	opacity: .15;
	transition: none !important;
}

.newatours-reisekarten-canvas.is-slide-entering {
	transform: translate3d(0, 0, 0);
	opacity: 1;
	transition: transform 420ms cubic-bezier(.22,.61,.36,1), opacity 300ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
	.newatours-reisekarten-canvas.is-slide-animating,
	.newatours-reisekarten-canvas.is-slide-out-left,
	.newatours-reisekarten-canvas.is-slide-out-right,
	.newatours-reisekarten-canvas.is-slide-start-left,
	.newatours-reisekarten-canvas.is-slide-start-right,
	.newatours-reisekarten-canvas.is-slide-entering {
		transform: none !important;
		opacity: 1 !important;
		transition: none !important;
	}
}
