/* --- Top Bar Styles --- */
.top-bar {
  background-color: var(--bs-primary);
  color: #ffffff;
  padding: 8px 0;
  font-size: 15px;
}

.top-bar a {
  color: #ffffff;
  text-decoration: none;
  /* margin-left: 15px; */
}

.top-bar a:hover {
  color: #bbdefb; /* Lighter blue for hover */
}

.top-bar .contact-info span,
.top-bar .contact-info a {
  margin-right: 15px;
}

.top-bar .contact-info i {
  margin-right: 5px;
}

.social-icons a {
  color: #ffffff;
  font-size: 1rem; /* Slightly larger icons */
  padding: 5px 8px;
  border-radius: 3px;
  transition: background-color 0.3s ease;
}

/* 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 {
  background-color: var(--bs-secondary);
  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: #ffffff !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 {
  background-color: rgba(255, 255, 255, 0.1);
}

.main-navbar .nav-link.active {
  position: relative;
}

/* 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;
}

.navbar-toggler {
  border-color: rgba(255, 255, 255, 0.5);
  order: 2; /* Move toggler to the right */
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* 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: -300px;
  width: 300px;
  height: 100%;
  background: var(--bs-secondary);
  z-index: 40;
  transition: all 0.3s ease-in-out;
  overflow-y: auto;
}

.mobile-drawer.active {
  left: 0;
}

.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 30;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease-in-out;
}

.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 */
  .main-navbar .navbar-toggler {
    display: block;
  }

  .main-navbar .nav-item.dropdown:hover > .dropdown-menu {
    display: none; /* Disable hover dropdown on mobile */
  }
}
