/* Basis layout */
body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
}

#map {
  width: 100%;
  height: calc(100vh - 70px);
}

/* Tooltip zelf: GEEN achtergrond, GEEN rand */
.leaflet-tooltip.map-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Tooltip pijltje weghalen */
.leaflet-tooltip.map-label::before {
  display: none !important;
  border: none !important;
}

/* Gekleurd label */
.leaflet-tooltip.map-label .map-label-inner {
  position: relative;
  color: #fff;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}

/* Zwart puntje onder label */
.leaflet-tooltip.map-label .map-label-inner::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #000;
}

@media (max-width: 768px) {
  .leaflet-tooltip.map-label .map-label-inner {
    font-size: 11px;
    padding: 2px 5px;
  }
}

/* Vaste compacte menuknop */
#mob-menu-btn {
  position: fixed;
  bottom: 15px;
  right: 15px;
  background: #136a34;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,.3);
  cursor: pointer;
  z-index: 9999;
}

/* Popup container */
.ts-popup {
  display: none;
  position: fixed;
  z-index: 9998;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,.55);
  justify-content: center;
  align-items: center;
}

/* Popup inhoud */
.ts-popup-inner {
  background: #fff;
  padding: 18px 20px;
  border-radius: 10px;
  width: 95%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,.25);
  text-align: left;
  position: relative;
}

/* X knopje */
.ts-popup-close {
  float: right;
  font-size: 22px;
  cursor: pointer;
  margin-top: -10px;
  margin-right: -5px;
}

/* Menu links */
.ts-popup-inner a {
  display: block;
  margin: 8px 0;
  font-size: 16px;
  color: #136a34;
  text-decoration: none;
  font-weight: bold;
}

@media (orientation: portrait) {
  .leaflet-tooltip.map-label .map-label-inner {
    font-size: 12px;
    padding: 3px 6px;
  }
  #map { height: calc(100vh - 60px); }
}

@media (orientation: landscape) {
  .leaflet-tooltip.map-label .map-label-inner {
    font-size: 11px;
    padding: 2px 5px;
  }
  #map { height: calc(100vh - 40px); }
}
