/* OSM Local Maps – Frontend */
.osml-map {
	position: relative;
	width: 100%;
	overflow: hidden;
	background: #e8e4dc;
	box-sizing: border-box;
	margin: 0;
	z-index: 0;
}
.osml-map__canvas {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}
.osml-map .leaflet-container {
	width: 100%;
	height: 100%;
	background: #e8e4dc;
	font-family: inherit;
	font-size: 14px;
}
/* Theme-Bildregeln (Divi & Co.) für Kacheln und Marker neutralisieren.
   Achtung: keine margin-Regel für Marker, Leaflet positioniert die Nadelspitze über margin-left/-top. */
.osml-map .leaflet-container img,
.osml-map .leaflet-marker-icon,
.osml-map .leaflet-marker-shadow,
.osml-map .leaflet-tile {
	max-width: none !important;
	max-height: none !important;
	box-shadow: none !important;
	border: 0 !important;
	border-radius: 0 !important;
	padding: 0 !important;
	opacity: 1;
}
.osml-map .leaflet-tile {
	margin: 0 !important;
}
.osml-map .leaflet-tile-loaded {
	opacity: 1;
}
.osml-map__hint {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.45);
	color: #fff;
	font-size: 1.05em;
	font-weight: 500;
	text-align: center;
	padding: 1em;
	pointer-events: none;
	opacity: 0;
	transition: opacity 0.25s ease;
	z-index: 1200;
}
.osml-map__hint.is-visible {
	opacity: 1;
}
.osml-map__static {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.osml-map--static {
	display: block;
	max-width: 100%;
	height: auto;
}
.osml-map .leaflet-control-attribution {
	font-size: 11px;
	line-height: 1.3;
	background: rgba(255, 255, 255, 0.8);
	color: #333;
}
.osml-map .leaflet-control-attribution a {
	color: #0078a8;
	text-decoration: none;
}
.osml-map .leaflet-popup-content {
	margin: 12px 16px;
	line-height: 1.45;
	font-size: 14px;
}
.osml-map .leaflet-popup-content p {
	margin: 0 0 0.5em;
}
.osml-map .leaflet-popup-content p:last-child {
	margin-bottom: 0;
}
.osml-map .leaflet-control-zoom a {
	color: #333;
	text-decoration: none;
	box-shadow: none;
}
.osml-map.is-active .leaflet-container {
	cursor: grab;
}
/* „Route berechnen“ unter dem Marker */
.osml-map .osml-route-tooltip {
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: #fff;
	color: #1a73e8;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.osml-map .osml-route-tooltip.leaflet-tooltip-bottom:before {
	border-bottom-color: #fff;
}
.osml-map .osml-route-link {
	display: inline-block;
	padding: 6px 12px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
	color: #1a73e8;
	text-decoration: none;
	white-space: nowrap;
}
.osml-map .osml-route-link:hover,
.osml-map .osml-route-link:focus {
	text-decoration: underline;
	color: #174ea6;
}
.osml-static-figure {
	margin: 0;
}
.osml-static-figure figcaption {
	text-align: center;
	margin-top: 0.5em;
}
.osml-static-figure .osml-route-link {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 6px;
	background: #fff;
	color: #1a73e8;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}
.osml-map.is-active .leaflet-dragging .leaflet-container {
	cursor: grabbing;
}
