#map-container {
  position: relative;
  display: flex;
  flex-direction: column;
}

#map { 
  height: 96vh;
  width: 100%;
  margin: 0px 0;
  z-index: 1; /* Nižší z-index pro mapu */
}
.short-select {
  width: auto;
  max-width: 150px; /* Můžete upravit hodnotu podle potřeby */
}

.button-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.button-container .btn, .button-container .form-control, .button-container .form-control-plaintext {
  flex: 1 1 auto;
}
#map-container {
  position: relative;
  height: 100vh;
}
#map {
  height: 100%;
  width: 100%;
}

.custom-info-window {
  border: 1px solid black; /* Přidá tenký černý rámeček */
  background-color: transparent;
  position: relative;
}



/* Volitelně upravte styly karty */
.custom-info-window .card {
  margin: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  border: none; /* Odstraní výchozí rámeček karty */
}


.modal-dialog {
  color: black;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh; /* Výška na celou obrazovku */
}

.user-icon {
  position: absolute; /* Absolutní umístění ikony nad mapou */
  top: 10px; /* Vzdálenost od horního okraje */
  right: 10px; /* Vzdálenost od pravého okraje */
  z-index: 9999; /* Vysoký z-index, aby byla ikona vždy nad mapou */
  cursor: pointer;
}

.user-icon img, .user-icon i {
  border-radius: 50%; /* Kulatá ikona */
  background-color: #fff; /* Bílé pozadí pro lepší viditelnost */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Jemný stín */
}

        /* Základní styl pro mapu */
        #map {
          height: 600px;
          width: 100%;
      }


      



      .carousel-container {
        position: relative;
        width: 100px;
        overflow: hidden;
    }
    
    .carousel-track {
        display: flex;
        transition: transform 0.3s ease-in-out;
    }
    
    .carousel-item {
        flex: 0 0 20%;
        box-sizing: border-box;
        padding: 5px;
    }
    
    .carousel-button {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
        background: rgba(255,255,255,0.7);
        border: none;
        cursor: pointer;
        font-size: 1.5em;
    }
    
    .carousel-button.left {
        left: 0;
    }
    
    .carousel-button.right {
        right: 0;
    }

/* Aircraft Photo Modal Styles */
.aircraft-photo-container {
    max-width: 100%;
}

.aircraft-photo-container img {
    max-height: 400px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

#aircraftPhotoModal .modal-dialog {
    max-width: 90%;
}

#aircraftPhotoModal .modal-content {
    border-radius: 12px;
}

#aircraftPhotoModal .modal-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    border-radius: 12px 12px 0 0;
}

#aircraftPhotoModal .modal-title {
    color: #495057;
    font-weight: 600;
}

#aircraft-photo-loading {
    padding: 40px;
    color: #6c757d;
}

#aircraft-photo-error .alert {
    margin-bottom: 0;
}

/* Spinner animation for loading */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modal fallback styles for vanilla JS */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1050;
    width: 100%;
    height: 100%;
    overflow: hidden;
    outline: 0;
}

.modal.show {
    display: block !important;
}

.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1040;
    width: 100vw;
    height: 100vh;
    background-color: #000;
    opacity: 0.5;
}

.modal-backdrop.fade {
    opacity: 0;
}

.modal-backdrop.show {
    opacity: 0.5;
}

.modal-open {
    overflow: hidden;
}

/* InfoWindow button styling */
.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    border-radius: 0.2rem;
}

.btn-primary {
    background-color: #007bff;
    border-color: #007bff;
}

.btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}
    