/* Global Colors */
:root {
  --background-color: #ffffff;
  --default-color: #35211f;
  --heading-color: #200f0d;
  --accent-color: #f95e4d;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
}

/* Nav-specific variables */
:root {
  --nav-font: McQueen, 'Poppins', sans-serif;
  --nav-color: #ffffff;
  --nav-hover-color: #d4af37;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #35211f;
  --nav-dropdown-hover-color: #BB9A49;
}

/*--------------------------------------------------------------
# Global Header
--------------------------------------------------------------*/
.header {
  --background-color: #000000;
  --default-color: #ffffff;
  --heading-color: #ffffff;
  --surface-color: rgba(0, 0, 0, 0.26);

  color: var(--default-color);
  background-color: var(--background-color);
  padding: 0.55rem 0;
  min-height: 92px;
  z-index: 997;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header .container {
  max-width: 1400px;
  min-height: 76px;
  padding: 0 2rem;
}

.header.header-hide,
.header.header-show {
  transform: translateY(0);
}

.header .logo {
  line-height: 1;
}

.header .logo img {
  max-height: 75px;
  margin-right: 8px;
  width: auto;
  height: 75px;
  display: block;
}

.header .logo h1 {
  font-size: 26px;
  margin: 0;
  font-weight: 600;
  color: var(--heading-color);
}

.header .btn-getstarted,
.header .btn-getstarted:focus {
  background-color: #ffffff;
  color: #BB9A49;
  padding: 12px 24px;
  min-height: 56px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  margin: 0 !important;
  border: none;
  transition: all 0.3s ease;
  text-decoration: none;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  flex-shrink: 0;
}

.header .btn-getstarted:hover,
.header .btn-getstarted:focus:hover {
  color: #000000;
}

@media (max-width: 1366px) {
  .header .btn-getstarted {
    padding: 11px 20px;
    min-height: 52px;
    font-size: 15px;
  }
}

@media (max-width: 1200px) {
  .header .logo { order: 1; }
  .header .btn-getstarted {
    order: 2;
    margin: 0 15px 0 0;
    padding: 6px 20px;
    display: none;
  }
  .header .navmenu { order: 3; }
}

/*--------------------------------------------------------------
# Preloader
--------------------------------------------------------------*/
#preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  overflow: hidden;
  background-color: #121212;
  transition: all 0.6s ease-out;
}

#preloader:before {
  content: "";
  position: fixed;
  top: calc(50% - 30px);
  left: calc(50% - 30px);
  border: 6px solid var(--accent-color);
  border-top-color: color-mix(in srgb, var(--accent-color), transparent 90%);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: animate-preloader 1s linear infinite;
}

@keyframes animate-preloader {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* =====================================================
   DESKTOP (>=1200px)
   Override navbar.css mega-menu for dropdown-destination
   so it uses a vertical flyout instead of a wide grid
====================================================== */
@media (min-width: 1200px) {

  /* Make it position:relative so the panel anchors here, not to the container */
  .header .navmenu .dropdown.dropdown-destination {
    position: relative !important;
  }

  /* Level-1 panel: narrow vertical list */
  .header .navmenu .dropdown.dropdown-destination > ul {
    display: block !important;
    flex-wrap: unset !important;
    width: 220px !important;
    min-width: unset !important;
    left: 50% !important;
    right: auto !important;
    margin: 0 !important;
    padding: 10px 0 !important;
    position: absolute !important;
    top: 100% !important;
    transform: translateX(-50%) translateY(10px) !important;
    background: #000 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity .2s ease, transform .2s ease !important;
    z-index: 9999 !important;
    list-style: none !important;
  }

  /* Level-1 items full width */
  .header .navmenu .dropdown.dropdown-destination > ul > li {
    position: relative !important;
    width: 100% !important;
    min-width: unset !important;
  }

  /* Level-1 link ("Masai Mara") */
  .header .navmenu .dropdown.dropdown-destination > ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 14px !important;
    font-size: 14px !important;
    color: #fff !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    background: transparent !important;
    border-bottom: none !important;
    transition: color .2s ease !important;
  }

  .header .navmenu .dropdown.dropdown-destination > ul > li > a:hover {
    background: transparent !important;
    color: #BB9A49 !important;
  }

  .header .navmenu .dropdown.dropdown-destination > ul > li > a .bi-chevron-right {
    font-size: 12px;
    opacity: 0.6;
  }

  /* Show level-1 on hover */
  .header .navmenu .dropdown.dropdown-destination:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
  }

  /* Level-2 panel (cities) — flies right */
  .header .navmenu .dropdown.dropdown-destination > ul > li > ul {
    display: block !important;
    flex-wrap: unset !important;
    width: 200px !important;
    padding: 10px 0 !important;
    position: absolute !important;
    top: -10px !important;
    left: 100% !important;
    margin: 0 !important;
    background: #111 !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.35) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateX(6px) !important;
    transition: opacity .2s ease, transform .2s ease !important;
    z-index: 10000 !important;
    list-style: none !important;
    border: none !important;
  }

  /* Hover bridge to prevent losing hover across gap */
  .header .navmenu .dropdown.dropdown-destination > ul > li > ul::before {
    content: "";
    position: absolute;
    top: 0;
    left: -14px;
    width: 14px;
    height: 100%;
  }

  /* Level-2 items */
  .header .navmenu .dropdown.dropdown-destination > ul > li > ul > li {
    width: 100% !important;
    min-width: unset !important;
  }

  /* City links */
  .header .navmenu .dropdown.dropdown-destination > ul > li > ul > li > a {
    display: block !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    color: #ccc !important;
    white-space: nowrap !important;
    text-decoration: none !important;
    background: transparent !important;
    border-bottom: none !important;
    transition: color .2s ease !important;
  }

  .header .navmenu .dropdown.dropdown-destination > ul > li > ul > li > a:hover {
    color: #fff !important;
    background: transparent !important;
  }

  /* Show cities on Masai Mara hover */
  .header .navmenu .dropdown.dropdown-destination > ul > li:hover > ul {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(0) !important;
  }

  /* Hide the mobile-only toggle button on desktop */
  .header .navmenu .dropdown.dropdown-destination > ul > li > .region-toggle {
    display: none !important;
  }
  
    .header .navmenu .dropdown.dropdown-destination > ul.dest-grid-ul {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    width: 600px !important;
    gap: 0 !important;
    left: 100% !important;
    right: auto !important;
  }

  .header .navmenu .dropdown.dropdown-destination > ul.dest-grid-ul > li {
    width: 100% !important;
  }
}




/* Shared typography */
.header,
.header .logo h1,
.header .navmenu a,
.header .navmenu .dropdown > ul > li > a,
.header .btn-getstarted,
.header .btn-getstarted:focus {
  font-family: McQueen, 'Poppins', sans-serif;
}

a {
  color: #BB9A49;
  text-decoration: none;
}

a:hover,
a:focus {
  color: #d4af37;
  text-decoration: none;
}