/* Wanderlust Map Styling */


/* https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.css */
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow {
	-webkit-transition: -webkit-transform 0.3s ease-out, opacity 0.3s ease-in;
	-moz-transition: -moz-transform 0.3s ease-out, opacity 0.3s ease-in;
	-o-transition: -o-transform 0.3s ease-out, opacity 0.3s ease-in;
	transition: transform 0.3s ease-out, opacity 0.3s ease-in;
}

.leaflet-cluster-spider-leg {
	/* stroke-dashoffset (duration and function) should match with leaflet-marker-icon transform in order to track it exactly */
	-webkit-transition: -webkit-stroke-dashoffset 0.3s ease-out, -webkit-stroke-opacity 0.3s ease-in;
	-moz-transition: -moz-stroke-dashoffset 0.3s ease-out, -moz-stroke-opacity 0.3s ease-in;
	-o-transition: -o-stroke-dashoffset 0.3s ease-out, -o-stroke-opacity 0.3s ease-in;
	transition: stroke-dashoffset 0.3s ease-out, stroke-opacity 0.3s ease-in;
}

/* https://unpkg.com/leaflet.markercluster@1.4.1/dist/MarkerCluster.Default.css */
.marker-cluster-small {
	background-color: rgba(181, 226, 140, 0.6);
	}
.marker-cluster-small div {
	background-color: rgba(110, 204, 57, 0.6);
	}

.marker-cluster-medium {
	background-color: rgba(241, 211, 87, 0.6);
	}
.marker-cluster-medium div {
	background-color: rgba(240, 194, 12, 0.6);
	}

.marker-cluster-large {
	background-color: rgba(253, 156, 115, 0.6);
	}
.marker-cluster-large div {
	background-color: rgba(241, 128, 23, 0.6);
	}

	/* IE 6-8 fallback colors */
.leaflet-oldie .marker-cluster-small {
	background-color: rgb(181, 226, 140);
	}
.leaflet-oldie .marker-cluster-small div {
	background-color: rgb(110, 204, 57);
	}

.leaflet-oldie .marker-cluster-medium {
	background-color: rgb(241, 211, 87);
	}
.leaflet-oldie .marker-cluster-medium div {
	background-color: rgb(240, 194, 12);
	}

.leaflet-oldie .marker-cluster-large {
	background-color: rgb(253, 156, 115);
	}
.leaflet-oldie .marker-cluster-large div {
	background-color: rgb(241, 128, 23);
}

.marker-cluster {
	background-clip: padding-box;
	border-radius: 20px;
	}
.marker-cluster div {
	width: 30px;
	height: 30px;
	margin-left: 5px;
	margin-top: 5px;

	text-align: center;
	border-radius: 15px;
	font: 12px "Helvetica Neue", Arial, Helvetica, sans-serif;
	}
.marker-cluster span {
	line-height: 30px;
	}


/* Map Styling */

.map-container {
    display: flex;
    height: calc(100vh - 30vh); /* Höhe abzüglich Header */
    width: 100%;
    position: relative;
}

.map-articles-list {
    width: 33.333%;
    overflow-y: auto;
    padding: 20px;
    border-right: 1px solid #ccc;
}

.map-view {
    width: 100%;
    height: 100%;
	border-radius: 20px;
}

.map-article-item {
    cursor: pointer;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.3s ease;
}

.map-article-item:hover,
.map-article-item.active {
    background-color: #f5f5f5;
}

/* Verbesserte Hervorhebung für aktive Artikel in der Liste */
.map-article-item.active {
    background-color: #e8f4ff;
    border-left: 4px solid #2196F3;
    transform: translateX(5px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

/* Stil für den Custom Marker */
.custom-marker {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: all 0.3s ease;
}

.custom-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}

.custom-marker.active {
    transform: scale(1.1);
    border-color: #2196F3;
    box-shadow: 0 3px 8px rgba(33,150,243,0.4);
}


.leaflet-popup-tip {
    opacity: 0.4;
}

.article__map--marker-popup {
    min-width: 100px; /* Mindestbreite für das Popup */
	max-width: 100px;
	overflow: hidden;
}

.article__map--marker-popup img {
    border-radius: 3px;
	max-width: 1;
	max-height: 120px;
}	

.article__map--marker-popup h4 {
    margin: 0;
    font-size: 16px;
    color: #333;
}

/* Override default Leaflet Popup Styling */
.leaflet-popup-close-button {
    display: none;
}

.leaflet-popup-content {
	margin: 8px;
	border-radius: 0px;
	text-align: center;
}

.leaflet-popup-content a {
	text-decoration: none;
	color: #333;
}

.leaflet-popup-content-wrapper {
	border-radius: 2px;
	background-color: var(--primary-color);

}

