/* ==========================================================================
   Modern & Attractive Header Styling - EnjoyHolidayHub
   ========================================================================== */

/* --- Topbar Styling --- */
.header-topbar {
  background: linear-gradient(90deg, #0f172a 0%, #1e293b 100%) !important;
  color: #94a3b8 !important;
  padding: 8px 0 !important;
  font-size: 13px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.header-topbar p {
  color: #cbd5e1 !important;
  margin-bottom: 0 !important;
  font-weight: 500 !important;
}

.header-topbar p i {
  color: #ef4444 !important;
  font-size: 15px !important;
  transition: transform 0.25s ease;
}

.header-topbar p:hover i {
  transform: scale(1.15);
}

.header-topbar a {
  color: #f8fafc !important;
  text-decoration: none !important;
  transition: color 0.25s ease !important;
}

.header-topbar a:hover {
  color: #ef4444 !important;
}

/* Dropdowns in Topbar */
.header-topbar .dropdown-toggle {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  padding: 4px 12px !important;
  color: #f1f5f9 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
}

.header-topbar .dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.header-topbar .dropdown-menu {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.4) !important;
  border-radius: 12px !important;
}

.header-topbar .dropdown-item {
  color: #cbd5e1 !important;
  font-size: 13px !important;
  padding: 6px 14px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

.header-topbar .dropdown-item:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
}

/* Topbar Wishlist Icon */
.header-topbar .fav-dropdown a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 50% !important;
  color: #ef4444 !important;
  transition: all 0.25s ease !important;
}

.header-topbar .fav-dropdown a:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  transform: translateY(-1px);
}

.header-topbar .fav-dropdown .count-icon {
  position: absolute !important;
  top: -4px !important;
  right: -4px !important;
  background: #ef4444 !important;
  color: #ffffff !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid #0f172a !important;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2) !important;
}


/* --- Main Header Navbar Styling --- */
.main-header {
  position: relative !important;
  width: 100% !important;
  z-index: 1050 !important;
}

header {
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  box-shadow: 0 4px 25px -4px rgba(15, 23, 42, 0.08) !important;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8) !important;
  transition: all 0.3s ease !important;
  padding: 8px 0 !important;
}

/* Fixed/Sticky Header Elevation */
header.fixed, .main-header.fixed-header header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.12) !important;
  background: rgba(255, 255, 255, 0.98) !important;
  animation: slideDown 0.35s ease-out;
}

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Nav Menu Flex Container */
.header-nav .main-menu-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Logo Alignment */
.navbar-logo {
  display: flex !important;
  align-items: center !important;
}

.navbar-logo .header-logo img {
  max-height: 46px !important;
  width: auto !important;
  transition: transform 0.3s ease !important;
}

.navbar-logo .header-logo:hover img {
  transform: scale(1.03);
}

/* Main Navigation Links */
header .header-nav .main-menu-wrapper .main-nav {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

header .header-nav .main-menu-wrapper .main-nav > li {
  position: relative !important;
  padding: 6px 0 !important;
}

header .header-nav .main-menu-wrapper .main-nav > li > a {
  display: inline-flex !important;
  align-items: center !important;
  padding: 8px 16px !important;
  color: #1e293b !important;
  font-size: 14.5px !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  letter-spacing: 0.2px !important;
}

/* Arrow Icon inside link */
header .header-nav .main-menu-wrapper .main-nav > li > a i {
  font-size: 11px !important;
  margin-left: 6px !important;
  transition: transform 0.25s ease !important;
  color: #64748b !important;
}

/* Remove old ugly pseudo dot lines */
header .header-nav .main-menu-wrapper .main-nav > li.active > a::after,
header .header-nav .main-menu-wrapper .main-nav > li > a::after {
  display: none !important;
  content: "" !important;
}

/* Hover State */
header .header-nav .main-menu-wrapper .main-nav > li:hover > a {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.07) !important;
}

header .header-nav .main-menu-wrapper .main-nav > li:hover > a i {
  color: #ef4444 !important;
  transform: rotate(180deg) !important;
}

/* Active State */
header .header-nav .main-menu-wrapper .main-nav > li.active > a {
  color: #ef4444 !important;
  background: rgba(239, 68, 68, 0.1) !important;
  font-weight: 700 !important;
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
}

header .header-nav .main-menu-wrapper .main-nav > li.active > a i {
  color: #ef4444 !important;
}

/* Dropdown / Submenu Styling */
header .header-nav .main-menu-wrapper .main-nav > li .submenu {
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 20px 40px -10px rgba(15, 23, 42, 0.15) !important;
  background: #ffffff !important;
  padding: 12px 8px !important;
  overflow: hidden !important;
}

header .header-nav .main-menu-wrapper .main-nav > li .submenu li a {
  padding: 9px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}

header .header-nav .main-menu-wrapper .main-nav > li .submenu li a:hover {
  background: rgba(239, 68, 68, 0.08) !important;
  color: #ef4444 !important;
  padding-left: 20px !important;
}

/* Megamenu Customizations */
.megamenu-wrapper {
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 24px !important;
}

.megamenu-wrapper h6 {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-size: 15px !important;
  margin-bottom: 12px !important;
}


/* --- Header Right Side Buttons & Actions --- */
.header-btn {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

/* Dark/Light Mode Theme Toggle */
.theme-toggle, #dark-mode-toggle, #light-mode-toggle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
  font-size: 18px !important;
  text-decoration: none !important;
  transition: all 0.25s ease !important;
  border: 1px solid #e2e8f0 !important;
}

.theme-toggle:hover, #dark-mode-toggle:hover, #light-mode-toggle:hover {
  background: #e2e8f0 !important;
  color: #ef4444 !important;
  transform: rotate(15deg) scale(1.06) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
}

/* Sign In Button */
.header-btn .btn-white, .header-btn a[href*="login"], .header-btn a[href*="modal"] {
  border-radius: 50px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  padding: 8px 22px !important;
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
}

.header-btn .btn-white:hover, .header-btn a[href*="login"]:hover {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2) !important;
}

/* Become Expert CTA Button */
.header-btn .btn-primary, .header-btn a[href*="become-an-expert"], .header-btn a[href*="register"] {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  border-radius: 50px !important;
  padding: 9px 24px !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.35) !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.header-btn .btn-primary:hover, .header-btn a[href*="become-an-expert"]:hover, .header-btn a[href*="register"]:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  transform: translateY(-2px) scale(1.02) !important;
  box-shadow: 0 8px 25px rgba(239, 68, 68, 0.45) !important;
  color: #ffffff !important;
}


/* --- Mobile Responsive Enhancements --- */
@media (max-width: 991.98px) {
  header {
    padding: 10px 0 !important;
  }
  
  .navbar-logo .header-logo img {
    max-height: 38px !important;
  }
  
  .header__hamburger .sidebar-menu {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    background: rgba(239, 68, 68, 0.1) !important;
    border-radius: 10px !important;
    color: #ef4444 !important;
    font-size: 22px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
  }
  
  .header__hamburger .sidebar-menu:hover {
    background: #ef4444 !important;
    color: #ffffff !important;
  }
}


/* --- Dark Mode Overrides --- */
.dark-mode header, body.dark-mode header {
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6) !important;
  box-shadow: 0 4px 25px -4px rgba(0, 0, 0, 0.5) !important;
}

.dark-mode header .header-nav .main-menu-wrapper .main-nav > li > a,
body.dark-mode header .header-nav .main-menu-wrapper .main-nav > li > a {
  color: #f1f5f9 !important;
}

.dark-mode header .header-nav .main-menu-wrapper .main-nav > li > a i,
body.dark-mode header .header-nav .main-menu-wrapper .main-nav > li > a i {
  color: #94a3b8 !important;
}

.dark-mode header .header-nav .main-menu-wrapper .main-nav > li:hover > a,
body.dark-mode header .header-nav .main-menu-wrapper .main-nav > li:hover > a {
  background: rgba(239, 68, 68, 0.15) !important;
  color: #f87171 !important;
}

.dark-mode header .header-nav .main-menu-wrapper .main-nav > li.active > a,
body.dark-mode header .header-nav .main-menu-wrapper .main-nav > li.active > a {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

.dark-mode .theme-toggle, body.dark-mode .theme-toggle {
  background: #1e293b !important;
  color: #fbbf24 !important;
  border-color: #334155 !important;
}

.dark-mode .header-btn .btn-white, body.dark-mode .header-btn .btn-white {
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #475569 !important;
}

.dark-mode .header-btn .btn-white:hover, body.dark-mode .header-btn .btn-white:hover {
  background: #334155 !important;
  color: #ffffff !important;
}

/* --- Hero Section Title Highlight Bar Underline --- */
.hero-section .hero-content .banner-content h1 span::before,
.banner-content h1 span::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: 2px !important;
  width: 100% !important;
  height: 6px !important;
  border-radius: 4px !important;
  background: #ef4444 !important;
  z-index: -1 !important;
  opacity: 0.9 !important;
  transition: all 0.3s ease !important;
}

/* --- Hero Section Layout (MakeMyTrip Style - Search Bar Fully Visible at Top Above Fold) --- */
.hero-section {
  position: relative !important;
}

.hero-section .hero-content {
  padding: 18px 0 30px 0 !important;
  text-align: center !important;
}

.hero-section .hero-content .banner-content {
  max-width: 780px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  margin-bottom: 14px !important;
}

.hero-section .hero-content .banner-content h1,
.banner-content h1 {
  font-size: 26px !important;
  font-weight: 700 !important;
  margin-bottom: 6px !important;
  line-height: 1.2 !important;
}

.hero-section .hero-content .banner-content h6,
.banner-content h6 {
  font-size: 13.5px !important;
  font-weight: 400 !important;
  opacity: 0.9 !important;
  margin-bottom: 0 !important;
}

/* Search Box Container Prominent Elevation */
.banner-form,
.hero-section .banner-form {
  position: relative !important;
  margin-top: 0 !important;
  border-radius: 18px !important;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  background: #ffffff !important;
  overflow: visible !important;
}

.banner-form .card-header {
  background: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 18px 18px 0 0 !important;
  padding: 10px 16px 0 16px !important;
}

.banner-form .card-body {
  padding: 18px 24px !important;
}


