body {
  margin: 0;
}

/* Vision cone (kijkrichting) */
.le-vision-cone {
  pointer-events: none;
}

.custom-ingang-label {
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
  font-size: 14px;
  background-color: #b93b3b;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-poi-marker {
  border-radius: 50%;
  width: 20px;
  height: 20px;
  line-height: 20px;
  text-align: center;
  color: white;
  font-weight: bold;
  font-family: sans-serif;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-poi-marker img {
  display: block;
  border-radius: 0%;
  width: 60%;
  height: 60%;
}
.custom-poi-marker.activiteiten {
  background-color: #f58c2a;
}
.custom-poi-marker.cultuurSport {
  background-color: #9747ff;
}
.custom-poi-marker.events {
  background-color: #ffcd62;
}
.custom-poi-marker.geschiedenis {
  background-color: #2830a8;
}
.custom-poi-marker.horeca {
  background-color: #dc592b;
}
.custom-poi-marker.andere {
  background-color: #d8129d;
}
.custom-poi-marker.parking {
 background-color: #737373;
}
.custom-poi-marker.route {
  background-color: #54AF69;
}
.custom-poi-marker.ingang{
  background-color: #b93b3b;
}
#map {
  height: 100vh;
  width: 100vw;
  max-width: 100vw;
  max-height: 100vh;
  background: linear-gradient(#B3E4FF 0%, #FDFEFF 100%);
}

/* --- Cluster custom styles --- */
.custom-cluster {
  position: relative;
  border: 2px solid white;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-cluster img {
  display: block;
  border-radius: 0%;
  width: 60%;
  height: 60%;
}

.custom-cluster .cluster-count {
  position: absolute;
  top: -7.5px;
  right: -7.5px;
  background: white;
  color: inherit;
  font-weight: bold;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}
.custom-cluster.activiteiten {
  background-color: #f58c2a;
  color: #f58c2a;
}
.custom-cluster.cultuurSport {
  background-color: #9747ff;
  color: #9747ff;
}
.custom-cluster.events {
  background-color: #ffcd62;
  color: #ffcd62;
}
.custom-cluster.geschiedenis {
  background-color: #2830a8;
  color: #2830a8;
}
.custom-cluster.horeca {
  background-color: #dc592b;
  color: #dc592b;
}
.custom-cluster.andere {
  background-color: #d8129d;
  color: #d8129d;
}
.custom-cluster.route {
  background-color: #54AF69;
  color: #54AF69;
}
.custom-cluster.andere img {
  width: 60%;
  height: 60%;
}
.custom-cluster.parking {
  background-color: #737373;
  color: #737373;
}
.custom-cluster.ingang {
  background-color: #b93b3b;
  color: #b93b3b;
}
/* voorkomt overscroll rubber-band in webview/safari */

/* Custom styled scale control */
.leaflet-container {
  overscroll-behavior: none;
  touch-action: none; /* laat Leaflet gestures afhandelen */
}

.leaflet-control-scale-line {
  background: transparent !important;
  box-shadow: none;
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: 16px;
  color: #dc592b;
  position: absolute;
  z-index: 1000;
  bottom: 10px;
  right: 10px;
  padding: 0.2em;
  border: none;
  border-bottom: #dc592b solid 2px;
  border-left: #dc592b solid 2px;
  border-right: #dc592b solid 2px;
}
.btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #dc592b;
  color: white;
  border: none;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  z-index: 1000;
  border-radius: 5px;
  transition: all 0.3s ease;
  cursor: pointer;
}
.btn:hover {
  scale: 1.02;
  background-color: #b84a22;
}
/* Custom styled popup */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
  background: transparent;
  box-shadow: none;
  border: none;
  padding: 1em;
}

.custom-leaflet-popup .leaflet-popup-tip-container {
  display: none;
}


/* Custom styled popup header */
.custom-leaflet-popup .leaflet-popup-close-button {
  color: white !important;
  background-color: #ea7830;
  border-radius: 50%;
  width: 40px !important;
  height: 40px !important;
  text-align: center;
  line-height: 28px;
  font-size: 24px;
  font-weight: bold;
  top: 20px !important;
  right: -10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  background-size: cover !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.3s ease;
  z-index: 99999999 !important;
  position: absolute !important;
  top: 2em !important;
  right: 0em !important;
}
.custom-leaflet-popup .leaflet-popup-close-button span {
  /* content: "×"; */
  font-size: 24px;
  color: white;
  line-height: 40px;
  text-align: center;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  transform-origin: center !important;
  transition: all 0.3s ease;
}

.custom-leaflet-popup .leaflet-popup-close-button span:hover {
  scale: 1.2;
}

.custom-live-location {
  width: 20px;
  height: 20px;
  background: rgba(255, 149, 0, 0.4);
  border-radius: 50%;
  border: 2px solid #ff8000;
  position: relative;
}
.custom-live-location .live-location-inner {
  width: 8px;
  height: 8px;
  background: #ff8000;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
/* Zorg dat de image overlay mooi schaalt op grote schermen */
.leaflet-image-layer {
  object-fit: cover !important;
}



.leaflet-control {
  display: none !important;
}


/* ! Amina */

.route-ui {
  position: absolute;
  top: 20px;
  right: 20px;
  background: white;
  padding: 5px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 12000;
  width: 222px;
  height: fit-content;
  font-family: "Segoe UI", sans-serif;
  border: 3px solid #e8491f;
}

.route-ui-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.route-ui-header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #333;
}

.route-ui-body label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.route-ui-body input,
.route-ui-body button {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 10px;
}


.btn-stop {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  /* position: absolute; */
  text-align: end;
  margin-left: auto;
}

#stop-route {
  display: none;
}

.btn-start {
  background-color: #d24e1d;
  color: white;
  border: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background 0.3s ease;
  cursor: pointer;
  }

/* #start-route {
  display: none;
} */

.btn-start:hover {
  background-color: #b13f15;
}

.route-ui-body .form-group {
  margin-bottom: 12px;
  width: 200px;
}

.route-results {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #b00;
}
.route-ui .button-group {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  width: 90%;
}

#searchFrom {
  display: none;
}

.btn-swap {
  background-color: #ffffff;
  color: #d24e1d;
  border: 2px solid #d24e1d;
  /* padding: 8px 12px; */
  border-radius: 5px;
  /* font-weight: bold; */
  font-size: 0.6rem;
  cursor: pointer;
  transition: background 0.3s ease, color 0.3s ease;
  position: absolute;
  top: 85px;
  left: 180px;
  z-index: 1000;
  width: 10px;
  height: 40px;
}

#swap-points {
  width: 40px;
  display: none;


}

.btn-swap:hover {
  background-color: #d24e1d;
  color: white;
}

.route-ui.hidden{
  display: none;
}

/* ===== Overlay stacking fixes for Leaflet vs custom UI ===== */
.leaflet-popup-pane { z-index: 13000 !important; }
.leaflet-control-container { z-index: 12500; }

/* Popups altijd boven alle custom UI */
.leaflet-popup-pane { z-index: 100000 !important; }

/* Route UI lager dan popups */
.route-ui { z-index: 12000; }

/* Ensure popups are always above app UI and wrapper doesn't block clicks */
.leaflet-popup-pane { z-index: 100000 !important; }


.rp-nav-hud {
  position: relative; /* Zorgt dat de close button absoluut gepositioneerd kan worden */
}

.rp-nav-close {
  position: absolute;
  top: 10px;
  right: 10px;
  appearance: none;
  border: none;
  background: #f3f3f3;
  color: #b84a22;
  border: 2px solid #b84a22;
  font-size: 14px;
  font-weight: bold;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
  transition: all 0.2s ease;
}

.rp-nav-close:hover {
  background: #e6e6e6;
  /* color: #222; */
}

.rp-nav-close:active {
  transform: scale(0.9);
}

/* Zorg dat de Start route knop rechtsonder in de HUD staat */
.rp-nav-hud {
  position: relative;
  padding-bottom: 60px; /* extra ruimte zodat knop niet over tekst valt */
}

.rp-nav-cta {
  position: absolute;
  bottom: 12px;
  right: 12px;
  margin: 0;
}