html, body {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;  /* Hindrar scrollbars */
}

#map {
  height: 100%;
  width: 100%;
}

/*
.leaflet-control-scale {
  border: 1px solid #000;
  background: rgba(255,255,255,0.8);
  padding: 5px;
}

.leaflet-control-scale-line {
    min-width: 150px !important;
    max-width: 150px !important;
    width: 150px !important;
}*/

/* Container för custom flygkarts-skala */
.scale-container {
    position: absolute;
    right: 10px;
    bottom: 40px;
    font-family: Arial, sans-serif;
    color: black;
    text-shadow: 0 0 3px black;
    z-index: 1000;
}

/* Horisontell skala */
.hscale-line {
    height: 2px;
    background: black;
    margin-bottom: 3px;
}

/* Vertikal skala 
.vscale {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
    height: 150px;
    width: 2px;
    background: white;
}

.vscale-label {
    position: absolute;
    right: 8px;
    top: -14px;
    color: white;
    text-shadow: 0 0 3px black;
    font-size: 12px;
}*/

.hscale-label {
    font-size: 12px;
    margin-top: 4px;
}

/* Stil för kryss-markörer vid avståndsmätning */
.distance-cross-marker {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.8));
}

/* Minska den interaktiva zonen för flygplats-markörer */
.leaflet-marker-icon {
    pointer-events: auto;
}

/* Begränsa tooltip-zonen genom att minska hover-området */
.leaflet-interactive {
    cursor: pointer;
}

/* Större popups på mobil enheter */
@media screen and (max-width: 768px) {
  .leaflet-popup-content-wrapper {
    font-size: 16px !important;
    padding: 12px !important;
    min-width: 200px !important;
  }
  
  .leaflet-popup-content {
    margin: 12px 16px !important;
    line-height: 1.6 !important;
    font-size: 16px !important;
  }
  
  .leaflet-popup-tip {
    width: 20px !important;
    height: 20px !important;
  }
  
  /* Tooltip-popups också större */
  .leaflet-popup {
    font-size: 18px !important;
  }
}

/* Ytterligare justering för mindre skärmar (telefoner) */
@media screen and (max-width: 480px) {
  .leaflet-popup-content-wrapper {
    font-size: 18px !important;
    padding: 16px !important;
    min-width: 250px !important;
  }
  
  .leaflet-popup-content {
    margin: 16px 20px !important;
    line-height: 1.7 !important;
    font-size: 18px !important;
  }
  
  .leaflet-popup {
    font-size: 20px !important;
  }
}

