:root {
  --primary-color: #ffffff;
  --secondary-color: #336106;
  --text-light: #212121;
}

.style-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.style-modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.style-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin: 15px 0;
}

.style-button {
  padding: 10px;
  border: 2px solid transparent;
  border-radius: 6px;
  background-color: #f0f0f0;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 14px;
  text-align: center;
  user-select: none;
}

.text-white {
  color: white !important;
}

.style-button:hover {
  background-color: #e0e0e0;
}

.style-button.active {
  border-color: #336106;
  background-color: #eaf2da;
  font-weight: bold;
}

.style-modal-close-btn {
  background-color: #336106;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  cursor: pointer;
  float: right;
}

.hidden {
  display: none !important;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}


.map-container {
  position: absolute;
  top: 80px;
  left: 0;
  width: 100%;
  height: calc(100% - 80px);
}


.map-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  background-color: #336106 !important;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 0 20px 0 0;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.pill-menu-link {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff !important;
  padding: 5px 15px !important;
  border-radius: 20px;
  font-size: 15px;
  font-weight: bold;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 38px;
}

.pill-menu-link:hover {
  background-color: rgba(255, 255, 255, 0.25);
}

.pill-menu-link i {
  font-size: 20px;
}

.nav-container {
  flex: 1;
}

.map-header .logo img {
  height: 40px;
  object-fit: contain;
}

.map-header .nav-btn {
  background-color: transparent;
  color: white;
  text-decoration: none;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.map-header .nav-btn:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

#page-header {
  position: absolute;
  top: 0px;
  width: 100%;
  margin: 0 auto;
}

#page-header #loading {
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  display: block;
  margin-top: 98px;
  z-index: 999999 !important;
}

#page-header #loading span {
  color: white;
  background: #222736;
  padding: 2px 10px;
  border-radius: 10px;
  animation: blinker 3s linear infinite;
}

@keyframes blinker {
  50% {
    opacity: 0;
  }
}

#loading.hidden {
  display: none !important;
}


::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  box-shadow: inset 0 0 5px #336106;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #336106;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #336106;
}


* {
  font-family: sans-serif;
}

#mapbox {
  width: 100%;
  height: 100%;
}

#map-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 999999 !important;
  position: absolute;
  right: 30px;
  top: 20px;
}

#map-controls button {
  background-color: #336106;
  color: white;
  border: none;
  padding: 10px;
  font-size: 20px;
  height: 40px;
  width: 40px;
  box-shadow: 0 2px 4px darkslategray;
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 100%;
  margin-bottom: 10px;
}

#map-controls button svg {
  margin-top: -12.5px;
}

#map-controls button:hover {
  background-color: #7a9e06;
}


#map-details {
  background: #ffffff;
  width: 350px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 0;
  border-radius: 0 !important;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(0);
  z-index: 1999999;
}

#map-details * {
  overflow-x: hidden !important;
  color: var(--text-light);
}

@media only screen and (min-width: 600px) {
  #map-controls {
    display: none;
  }

  #map-details {
    width: calc(100% - 60px);
  }
}

@media only screen and (min-width: 768px) {
  #map-controls {
    display: flex;
  }

  #map-details {
    width: 400px;
  }
}

@media only screen and (min-width: 1200px) {
  #map-controls {
    display: flex;
  }

  #map-details {
    width: 350px;
  }
}

#map-details.hidden {
  display: flex !important;
  transform: translateX(-110%);
  pointer-events: none;
}

#map-details header {
  height: 55px;
  padding: 10px 10px 0 10px;
  overflow: none;
}

#map-details header #info {
  color: #212121;
}

#map-details header #info #flight_number {
  font-size: 18px;
  font-weight: bold;
}

#map-details header #info #fleet_type {
  color: white;
  background: #336106 !important;
  border-radius: 25%;
  font-size: 14px;
  font-weight: normal;
  padding: 3px;
  margin-left: 5px;
}

#map-details header #info #airline_name {
  color: #6c757d;
  font-size: 14px;
  display: block;
  margin-top: -5px;
}

#map-details header button {
  background: #336106;
  width: 32px;
  height: 32px;
  padding: 0;
  color: #ffffff;
  border: none;
  font-size: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 50%;
  position: absolute;
  right: 10px;
  top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#map-details header button svg {
  width: 14px;
  height: 14px;
}

#map-details main {
  flex: 1;
  overflow-y: auto;
  margin-top: 0px;
}

#map-details main #aircraft-image-container {
  width: 100%;
  height: 150px;
  overflow: hidden;
}

#map-details main #aircraft-image {
  width: 100%;
  object-fit: cover;
  object-position: center;
}


#flight-info {
  color: #212121;
  position: relative;
}

#flight-info .box {
  position: relative;
  height: auto;
}

#flight-info table {
  width: 100%;
  background: var(--primary-color);
  padding: none;
  border-collapse: collapse;
}

#flight-info td {
  border: 2px solid rgba(51, 97, 6, 0.25);
  padding: 10px 5px;
}

#flight-info span {
  display: block;
  text-align: center;
  font-size: 12px;
}

#flight-info span.icao {
  font-size: 28px;
}

#flight-info span.name {
  font-size: 12px;
}

#flight-info span.iata {
  font-size: 14px;
  display: none;
}

#flight-info-aircraft {
  width: 40px;
  height: 40px;
  background-color: #336106;
  border-radius: 100%;
  position: absolute;
  left: calc(50% - 20px);
  margin-top: 20px;
  z-index: 9999;
  border: 2px solid #336106;
  padding: 5px;
  overflow: hidden;
}

.scheduled {
  text-align: center;
}

.scheduled span {
  display: inline !important;
}

#flight-info .text-left {
  text-align: left;
}

#flight-info strong {
  font-weight: bold;
  font-size: 16px !important;
}

#flight-info #track_box {
  width: 100%;
  height: 3px;
  background: #aaa;
  margin-bottom: 25px;
  overflow: visible !important;
}

#flight-info #track {
  height: 100%;
  width: 30%;
  background: var(--secondary-color);
}

#flight-info #track_image {
  width: 25px;
  height: 25px;
  margin-left: 30%;
  margin-top: -16px;
  float: left;
  overflow: hidden;
}

#distance_from_departure {
  font-size: 14px;
  margin-top: 5px;
  text-align: left;
  position: absolute;
}

#distance_to_arrival {
  font-size: 14px;
  margin-top: 5px;
  text-align: left;
  position: absolute;
  right: 10px;
}

#flight-info tr.header,
#flight-info tr.header td {
  background: var(--secondary-color);
  border: none;
}

#flight-info tr.header svg {
  width: 30px;
  display: inline-block;
  margin-top: -10px;
  margin-bottom: -12px;
  color: white !important;
}

#flight-info tr.header span {
  font-weight: bold;
  font-size: 16px;
  display: inline-block;
  height: 30px;
  text-align: left;
  margin-left: 10px;
  margin-bottom: -15px;
  color: white !important;
}

#aircraft-icon {
  width: 30px;
  height: 100%;
  vertical-align: top;
}

#aircraft-icon svg {
  width: 100%;
}


.mapboxgl-popup-content {
  background: #151715 !important;
  padding: 15px;
  color: #ffffff;
  font-size: 14px;
  text-align: center;
  border-radius: 12px;
  border: 1px solid #336106;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
}

.mapboxgl-popup-content small {
  font-size: 11px;
  color: #bbbbbb;
  display: block;
  line-height: 1.2;
}

.mapboxgl-popup-content strong {
  color: #7a9e06;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 10px;
  display: block;
  margin-bottom: -2px;
  line-height: 1.2;
}

.mapboxgl-popup-content .row {
  margin-left: -5px;
  margin-right: -5px;
  margin-bottom: 5px;
}

.mapboxgl-popup-content .col-4,
.mapboxgl-popup-content .col-12 {
  padding-left: 5px;
  padding-right: 5px;
}

.mapboxgl-popup-tip {
  border-top-color: #336106;
}

.mapboxgl-popup-content-wrapper {
  width: 280px;
  height: max-content;
  border: none;
  background-color: transparent;
  border-radius: 12px;
  margin-bottom: 3px;
  padding: 0;
}

/* MOBILE MENU */
.hamburger-btn {
  display: none;
  background: transparent;
  border: none;
  color: white;
  font-size: 28px;
  cursor: pointer;
  padding: 10px;
  margin-right: 15px;
  z-index: 1002;
}

.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 2000000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-nav-overlay.open {
  opacity: 1;
  visibility: visible;
}

.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100%;
  background: #151715;
  z-index: 2000001;
  box-shadow: -5px 0 15px rgba(0, 0, 0, 0.5);
  transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  padding: 20px;
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-header h2 {
  color: white;
  font-size: 18px;
  margin: 0;
}

.mobile-nav-close {
  background: transparent;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
}

.mobile-menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mobile-menu-item {
  margin-bottom: 5px;
}

.mobile-menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  color: white;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  border-radius: 8px;
  transition: background 0.2s;
}

.mobile-menu-link:hover {
  background: rgba(51, 97, 6, 0.2);
  color: #7a9e06;
}

.mobile-menu-link i {
  font-size: 20px;
  color: #336106;
}

.mobile-sub-menu {
  list-style: none;
  padding-left: 45px;
  margin-top: 5px;
  margin-bottom: 10px;
  display: none;
}

.mobile-sub-link {
  display: block;
  padding: 8px 0;
  color: #bbbbbb;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.mobile-sub-link:hover {
  color: white;
}

@media only screen and (max-width: 991px) {
  .hamburger-btn {
    display: block;
    margin-right: 15px;
    margin-left: auto;
    order: 2;
  }
  
  .nav-container {
    display: none !important;
  }

  .logo {
    order: 1;
  }
}

