/* Custom styles for the app */

/* Date Selector */
.date-selector {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 10px;
}

/* Hidden class for the marker info panel */
.hidden {
  display: none;
}

/* Sticky Footer */
.footer {
  position: fixed;
  bottom: 0;
  width: 100%;
}

/* Set the height of the map container */
#map {
  height: calc(100vh - 136px); /* Adjust based on the header and footer height (80px + 56px) */
}

/* Information Panel Styles */
#information-panel {
  position: absolute;
  bottom: 10px;
  right: 50%;
  transform: translateX(50%); /* Center horizontally */
  width: 90%;
  max-width: 90%;
  height: 25%;
  background-color: rgba(255, 255, 255, 0.9); /* Semi-transparent background */
  padding: 10px;
  display: none;
  flex-direction: column;
  justify-content: space-between;
  z-index: -1; /* Initially hidden behind the map */
}

#information-panel.active {
  z-index: 1000; /* Show the panel above the map when active */
  display: flex; /* Show the panel when active */
}

#panel-content {
  flex: 1;
  overflow-y: auto; /* Enable scrolling for content */
}

#close-button {
  align-self: flex-end;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  border: none;
  background: transparent;
}

/* Footer Styles */
footer {
  text-align: center;
  padding: 8px;
  background-color: #333;
  color: #fff;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
}

/* CSS for Custom Dropdown */
.custom-dropdown-content {
  display: none;
  position: absolute;
  top: 120px;
  right: 50%;
  transform: translateX(50%); /* Center horizontally */
  z-index: 1000;
  background-color: #fff;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  padding: 10px;
  width: 90%;
  max-width: 90%;
  overflow-y: auto;
}

/* Mobile styles */
@media (max-width: 576px) {
  .top-level-dropdowns {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch; /* Enable smooth scrolling on iOS devices */
  }

  .top-level-dropdowns .dropdown {
    flex: 0 0 auto;
    white-space: nowrap;
    margin-right: 10px;
  }

  .navbar .dropdown-menu {
    position: static;
    display: none;
  }

  .navbar .dropdown.show .dropdown-menu {
    display: block;
  }
  
  .dropdown-toggle::after {
    display: none !important;
  }
}

/* Desktop styles */
@media (min-width: 577px) {
  .top-level-dropdowns {
    display: flex;
  }
  .top-level-dropdowns {
    display: flex;
    flex: 0 0 auto;
    margin-right: 10px;
  }
  .custom-dropdown {
      margin-right: 10px;
  }
}

span.warning {
  background-color: #FEE;
  border: 1px solid #EDD;
  color: #A66; 
}

/* Add custom styles for the dropdown buttons */
.btn.dropdown-selected {
  background-color: green !important;
  color: white;
}

.btn.dropdown-partial {
  background-color: yellow !important;
}

.btn.dropdown-none {
  background-color: red !important;
}

  /* Custom CSS for disclaimer alert */
  #disclaimer-alert {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    max-width: 400px;
    width: 100%;
    text-align: center;
  }

/* Update the header background color and padding */
.custom-header {
  background-color: #063559;
  padding: 10px;
}

/* Define the maximum height for the logo (adjust as needed) */
.custom-logo {
  max-height: 50px;
}

/* Adjust the logo position */
.navbar-brand {
  margin-right: 10px;
}

/* Style the "Select Date" text */
.date-selector {
  color: white;
  font-size: 18px;
}

/* Optional: Adjust the font size for the header brand (navbar-brand) */
.navbar-brand {
  font-size: 24px;
}