/* Reset basisinstellingen */
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Kaart neemt hele scherm in */
#map {
    width: 100%;
    height: 100vh;
}
.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;
}
/* Cluster iconen verbeteren */
.marker-cluster-small {
    background-color: rgba(110, 114, 106, 0);
}
.marker-cluster-medium {
    background-color: rgba(84, 90, 87, 0);
}
.marker-cluster-large {
    background-color: rgba(253, 156, 115, 0);
}
.marker-cluster div {
    width: 30px;
    height: 30px;
    margin-left: -15px;
    margin-top: -15px;
    text-align: center;
    border-radius: 50%;
    font-size: 14px;
    font-weight: bold;
    color: white;
    line-height: 30px;
}

/* Mooie pop-up stijl */
/* Popup rand en schaduw verwijderen */
.leaflet-popup {
    border: none;
    padding: 0;
}

/* Popup inhoud netter maken */
.leaflet-popup-content-wrapper {
    padding: 0 !important;
    border-radius: 4px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    background: rgba(30, 30, 30, 0.85);
    color: white;
}

/* Popup met custom pointer */
.popup-arrow {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid rgba(30, 30, 30, 0.85); /* zelfde kleur als de popup */
}
.wind-popup {
  position: relative; /* ✅ nodig voor de pijlpositionering */
}

.popup-close {
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 8px;
  font-weight: 100;
  color: #a8a8a8;
  cursor: pointer;
  user-select: none;
  transition: color 0.2s ease;
}

.popup-close:hover {
  color: white;
}


.popup-label {
  font-weight: bold;
  color: #eceff0;
  margin-right: 4px;
}




/* Pijl verwijderen */
.leaflet-popup-tip {
    display: none;
}

/* Popup inhoud met nette stijl */
.leaflet-popup-content {
    font-size: 14px;
    line-height: 1.6;
    padding: 15px;
    margin: 0;
}

/* Titels in popups */
.popup-title {
    font-size: 17px;
    font-weight: bold;
    color: #02a3a8;
    margin-bottom: 10px;
}

/* Data stijl in popup */
.popup-data {
  font-size: 14px;
  line-height: 1.6;
  margin-top: 10px;
}

.popup-data span {
    font-weight: bold;
    color: #eceff0;
}

/* Knop in popup */
.popup-button {
    display: block;
    margin: 15px auto 0;
    padding: 8px 16px;
    background-color: #ffcc00;
    color: #333;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-transform: uppercase;
    font-weight: bold;
    text-align: center;
    width: 100%;
}

.popup-button:hover {
    background-color: #ff9900;
}

	/* IE 6-8 fallback colors */
.leaflet-oldie .marker-cluster-small {
	background-color: rgb(16, 124, 143);
	}
.leaflet-oldie .marker-cluster-small div {
	background-color: rgb(27, 112, 10);
	}

.leaflet-oldie .marker-cluster-medium {
	background-color: rgb(16, 124, 143);
	}
.leaflet-oldie .marker-cluster-medium div {
	background-color: rgb(27, 112, 10);
	}

.leaflet-oldie .marker-cluster-large {
	background-color: rgb(16, 124, 143);
	}
.leaflet-oldie .marker-cluster-large div {
	background-color: rgb(27, 112, 10);
}


.marker-cluster-small {
	background-color: rgba(16, 124, 143, 0.212);
	}
.marker-cluster-small div {
	background-color: rgba(27, 112, 108, 0.836);
	}

.marker-cluster-medium {
	background-color: rgba(16, 124, 143, 0.212);
	}
.marker-cluster-medium div {
	background-color: rgba(27, 112, 108, 0.836);
	}

.marker-cluster-large {
	background-color: rgba(16, 124, 143, 0.212);
	}
.marker-cluster-large div {
	background-color: rgba(27, 112, 108, 0.836);
	}



.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;
	}
	
	
	@media (max-width: 768px) {
  .popup-close {
    font-size: 14px;
  }
}
