/* --- Top Bar Styles --- */
.top-bar {
  width: 100%;
  font-size: 14px;
  color: #fff;
}

.topbar-wrapper {
  display: flex;
  width: 100%;
}

/* LEFT RED */
.topbar-left {
  background: #e53935;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.topbar-left .phone {
  margin-left: 10px;
}

/* RIGHT BLUE */
.topbar-right {
  flex: 1;
  background: #0d47a1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
}

/* TEXT INFO */
.topbar-info {
  display: flex;
  gap: 25px;
  align-items: center;
}

.topbar-info span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* SOCIAL ICONS */
.topbar-social {
  display: flex;
  gap: 10px;
}

.topbar-social a {
  width: 30px;
  height: 30px;
  background: #1e3a8a;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  transition: 0.3s;
}

.topbar-social a:hover {
  background: #1565c0;
}

.topbar-info .fa-map-marker-alt {
  color: #e53935;
}

.topbar-info .fa-map-marker-alt,
.topbar-info .fa-envelope {
  color: #e53935;
}

.topbar-left span:first-child {
  font-size: 18px;
}

.topbar-left .phone {
  font-size: 16px;
}

.topbar-info span {
  font-size: 16px;
  color: #c7c7dd;
}

/* Specific social icon background colors from image */
.social-icons a.facebook {
  background-color: #3b5998;
}
.social-icons a.whatsapp {
  background-color: #25d366;
}
.social-icons a.twitter {
  background-color: #1da1f2;
}
.social-icons a.instagram {
  background-color: #c13584;
} /* General Instagram color */
.social-icons a.linkedin {
  background-color: #0077b5;
}
.social-icons a.email-social {
  background-color: #757575;
} /* Grey for email icon */

.social-icons a:hover {
  opacity: 0.8;
}

/* --- Main Navbar Styles --- */
.main-navbar {
  position: relative;

  background-color: #F9F3EF;
  padding: 10px 0;

  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

  z-index: 20;
}

.main-navbar .navbar-brand img {
  height: 50px; /* Adjust as needed */
}

.main-navbar .nav-link {
  color: #000000  !important;
  font-weight: 500;
  padding: 8px 15px;
  margin: 0 5px;
  border-radius: 4px;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-transform: capitalize; /* As seen in image "Tour Package" vs "Tour package" */
}

.main-navbar .nav-link:hover {
  color: #E6394B !important; 
  background-color: transparent; 

}

.main-navbar .nav-link.active {
  color: #E6394B !important; /* RED text */
  
}

/* Underline for active link */
.main-navbar .nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0px; /* Adjust to position underline correctly */
  left: 8px; /* Match padding */
  right: 8px; /* Match padding */
  height: 3px;
  background-color: #ffffff;
  border-radius: 1.5px;
}

.mobile-menu-btn {
  border: none;
  background: #f1f3f5;
  border-radius: 8px;
  padding: 6px 10px;
  order: 2;
  cursor: pointer;
}
.navbar-toggler-icon {
  display: block;
  width: 24px;
  height: 24px;

  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280,0,0,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2.5' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");

  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* HIDE MOBILE MENU BUTTON IN DESKTOP */
.mobile-menu-btn {
    display: none;
}

/* SHOW ONLY IN MOBILE */
@media (max-width: 992px) {
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Desktop: Show dropdown on hover for .main-navbar */
.main-navbar .nav-item.dropdown:hover > .dropdown-menu {
  display: block;
  margin-top: 0; /* Remove gap */
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease;
}

/* Make sure dropdown-menu is initially hidden */
.main-navbar .dropdown-menu {
  display: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  margin-top: 0.5rem;
  border-radius: 4px;
  min-width: 200px;
  background-color: white;
  border: none;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Dropdown items */
.main-navbar .dropdown-menu .dropdown-item {
  color: black;
  padding: 10px 20px;
  font-weight: 500;
  transition: background-color 0.3s ease;
}

.main-navbar .dropdown-menu .dropdown-item:hover {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--bs-success);
  text-decoration: none;
}

/* Dropdown toggle arrow color */
.main-navbar .nav-link.dropdown-toggle::after {
  border-top-color: #fff;
}

/* Mobile drawer: keep Bootstrap default dropdown behavior */
/* Optional: style dropdown items similarly */
.mobile-drawer .dropdown-menu {
  background-color: var(--bs-secondary);
  border: none;
  box-shadow: none;
  padding-left: 15px;
}

.mobile-drawer .dropdown-item {
  color: #fff;
  padding: 10px 15px;
}

.mobile-drawer .dropdown-item:hover {
  background-color: var(--bs-primary);
  color: #fff;
}

/* Mobile Drawer Styles */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;

  width: 260px;
  height: 100vh;

  background: #0d47a1;

  transform: translateX(-100%);
  transition: transform 0.3s ease;

  z-index: 9999;

  overflow-y: auto;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.overlay {
  position: fixed;
  inset: 0;

  background: rgba(0,0,0,0.5);

  opacity: 0;
  visibility: hidden;

  transition: 0.3s ease;

  z-index: 9998;
}

.overlay.active {
  opacity: 1;
  visibility: visible;
}

.drawer-content {
  padding: 20px;
}

.mobile-drawer .nav-link {
  color: #fff !important;
  padding: 12px 15px;
  margin: 5px 0;
  width: 100%;
}

.mobile-drawer .nav-link.active {
  background-color: var(--bs-primary);
  border-radius: 4px;
}

.mobile-drawer .navbar-brand img {
  height: 50px; /* Adjust as needed */
  margin-bottom: 20px;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .top-bar {
    display: none;
  }

  .main-navbar .navbar-collapse {
    display: none;
  }

  /* Show mobile toggler */
   .mobile-menu-btn {
    display: block;
  }

  .main-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: none; /* Disable hover dropdown on mobile */
  }
}

.mobile-menu-btn .navbar-toggler-icon {
  display: block;
  width: 1.5em;
  height: 1.5em;
}

/* =========================
   MOBILE NAV FIX (SAFE)
   ========================= */
@media (max-width: 992px) {

  /* NAVBAR CLEAN */
  .main-navbar {
    padding: 8px 0;
  }

  .main-navbar .container-lg {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  /* LOGO */
  .main-navbar .navbar-brand img {
    height: 45px;
  }

  /* TOGGLER CLEAN */
  .navbar-toggler {
    border: none;
    background: #f1f3f5;
    border-radius: 8px;
    padding: 6px 10px;
  }

 

  /* HIDE DESKTOP MENU (already doing but keep clean) */
  .main-navbar .navbar-collapse {
    display: none !important;
  }

  /* ===== MOBILE DRAWER IMPROVEMENT ===== */
  .mobile-drawer {
    width: 260px;
    background: #0d47a1;
  }

  .drawer-content {
    padding: 20px 15px;
  }

  .mobile-drawer .nav-link {
    font-size: 15px;
    padding: 12px;
    border-radius: 8px;
  }

  .mobile-drawer .nav-link:hover {
    background: rgba(255,255,255,0.1);
  }

  /* DROPDOWN INSIDE DRAWER */
  .mobile-drawer .dropdown-menu {
    background: transparent;
    padding-left: 10px;
  }

  .mobile-drawer .dropdown-item {
    font-size: 14px;
    opacity: 0.9;
  }

  /* OVERLAY SMOOTH */
  .overlay {
    backdrop-filter: blur(2px);
  }
}