/**
 * AfroBookings - New Professional Header Design
 * Brand Colors: Green & Orange
 * Fresh modern travel website header
 */

/* ============================================
   CSS VARIABLES FOR HEADER
   ============================================ */
:root {
    --header-green: #1B5E20;
    --header-green-light: #2E7D32;
    --header-green-dark: #0D3D12;
    --header-orange: #E85D04;
    --header-orange-light: #F48C06;
    --header-gold: #FFB300;
}

/* ============================================
   TOPBAR - Slim Green Bar
   ============================================ */
.bc_topbar {
    background: var(--header-green-dark) !important;
    padding: 8px 0 !important;
    border-bottom: none !important;
}

.bc_topbar .content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.bc_topbar .topbar-left {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.bc_topbar .topbar-left a,
.bc_topbar .topbar-left span,
.bc_topbar .topbar-left div {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.bc_topbar .topbar-left a:hover {
    color: var(--header-gold) !important;
}

.bc_topbar .topbar-left i {
    color: var(--header-orange-light) !important;
    font-size: 12px !important;
}

.bc_topbar .topbar-right {
    display: flex !important;
    align-items: center !important;
}

.bc_topbar .topbar-items {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 2px !important;
}

.bc_topbar .topbar-items > li {
    position: relative !important;
    list-style: none !important;
}

.bc_topbar .topbar-items > li > a {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 12px !important;
    padding: 6px 12px !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 5px !important;
    text-decoration: none !important;
    border-radius: 4px !important;
    transition: all 0.2s ease !important;
}

.bc_topbar .topbar-items > li > a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.bc_topbar .topbar-divider {
    width: 1px !important;
    height: 14px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    margin: 0 8px !important;
}

/* Topbar Login */
.bc_topbar .login-item > a {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Topbar Sign Up Button */
.bc_topbar .signup-item > a {
    background: var(--header-orange) !important;
    color: #fff !important;
    border-radius: 20px !important;
    padding: 6px 16px !important;
    font-weight: 600 !important;
    font-size: 11px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.bc_topbar .signup-item > a:hover {
    background: var(--header-orange-light) !important;
    transform: translateY(-1px) !important;
}

/* Topbar Dropdowns */
.bc_topbar .dropdown-menu {
    background: #fff !important;
    border: none !important;
    border-radius: 8px !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
    margin-top: 8px !important;
}

.bc_topbar .dropdown-menu a {
    color: #333 !important;
    padding: 8px 12px !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.bc_topbar .dropdown-menu a:hover {
    background: #f5f5f5 !important;
    color: var(--header-green) !important;
}

/* ============================================
   MAIN HEADER - Green with Orange Accents
   ============================================ */
.bc_header {
    background: linear-gradient(135deg, var(--header-green) 0%, var(--header-green-light) 100%) !important;
    padding: 0 !important;
    position: relative !important;
    z-index: 1000 !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.bc_header .content {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 70px !important;
    padding: 0 !important;
}

/* Logo */
.bc_header .header-left {
    display: flex !important;
    align-items: center !important;
    gap: 40px !important;
}

.bc_header .bc-logo {
    display: flex !important;
    align-items: center !important;
}

.bc_header .bc-logo img {
    height: 45px !important;
    width: auto !important;
    filter: brightness(0) invert(1); /* Make logo white */
    transition: transform 0.3s ease !important;
}

.bc_header .bc-logo:hover img {
    transform: scale(1.05) !important;
}

/* Navigation Menu */
.bc_header .bc-menu {
    display: flex !important;
    align-items: center !important;
}

.bc_header .bc-menu > ul,
.bc_header .bc-menu ul.menu {
    display: flex !important;
    align-items: center !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    gap: 0 !important;
}

.bc_header .bc-menu > ul > li,
.bc_header .bc-menu ul.menu > li {
    position: relative !important;
}

.bc_header .bc-menu > ul > li > a,
.bc_header .bc-menu ul.menu > li > a {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 25px 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    position: relative !important;
    transition: all 0.3s ease !important;
}

/* Orange Bottom Border on Hover */
.bc_header .bc-menu > ul > li > a::after,
.bc_header .bc-menu ul.menu > li > a::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 16px !important;
    right: 16px !important;
    height: 3px !important;
    background: var(--header-orange) !important;
    border-radius: 3px 3px 0 0 !important;
    transform: scaleX(0) !important;
    transition: transform 0.3s ease !important;
}

.bc_header .bc-menu > ul > li > a:hover,
.bc_header .bc-menu ul.menu > li > a:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.bc_header .bc-menu > ul > li > a:hover::after,
.bc_header .bc-menu ul.menu > li > a:hover::after,
.bc_header .bc-menu > ul > li.active > a::after,
.bc_header .bc-menu ul.menu > li.active > a::after {
    transform: scaleX(1) !important;
}

.bc_header .bc-menu > ul > li.active > a,
.bc_header .bc-menu ul.menu > li.active > a {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

/* Dropdown Arrow */
.bc_header .bc-menu > ul > li > a i,
.bc_header .bc-menu > ul > li > a .fa {
    font-size: 10px !important;
    transition: transform 0.3s ease !important;
}

.bc_header .bc-menu > ul > li:hover > a i,
.bc_header .bc-menu > ul > li:hover > a .fa {
    transform: rotate(180deg) !important;
}

/* Dropdown Menu */
.bc_header .bc-menu .dropdown-menu,
.bc_header .bc-menu ul ul,
.bc_header .bc-menu .sub-menu {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    background: #fff !important;
    border: none !important;
    border-radius: 0 0 12px 12px !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 12px 0 !important;
    min-width: 220px !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px) !important;
    transition: all 0.3s ease !important;
    z-index: 1001 !important;
    border-top: 3px solid var(--header-orange) !important;
}

.bc_header .bc-menu ul li:hover > ul,
.bc_header .bc-menu ul li:hover > .dropdown-menu,
.bc_header .bc-menu ul li:hover > .sub-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
}

.bc_header .bc-menu .dropdown-menu li,
.bc_header .bc-menu ul ul li,
.bc_header .bc-menu .sub-menu li {
    list-style: none !important;
}

.bc_header .bc-menu .dropdown-menu li a,
.bc_header .bc-menu ul ul li a,
.bc_header .bc-menu .sub-menu li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px 20px !important;
    color: #333 !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    text-decoration: none !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    transition: all 0.2s ease !important;
    border-left: 3px solid transparent !important;
}

.bc_header .bc-menu .dropdown-menu li a::after,
.bc_header .bc-menu ul ul li a::after,
.bc_header .bc-menu .sub-menu li a::after {
    display: none !important;
}

.bc_header .bc-menu .dropdown-menu li a:hover,
.bc_header .bc-menu ul ul li a:hover,
.bc_header .bc-menu .sub-menu li a:hover {
    background: linear-gradient(90deg, rgba(27, 94, 32, 0.08) 0%, transparent 100%) !important;
    color: var(--header-green) !important;
    border-left-color: var(--header-orange) !important;
    padding-left: 24px !important;
}

/* Header Right */
.bc_header .header-right {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.bc_header .header-right .topbar-items {
    display: none !important;
}

/* CTA Button in Header */
.bc_header .header-right .header-cta {
    background: var(--header-orange) !important;
    color: #fff !important;
    padding: 12px 24px !important;
    border-radius: 25px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 15px rgba(232, 93, 4, 0.3) !important;
}

.bc_header .header-right .header-cta:hover {
    background: var(--header-orange-light) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(232, 93, 4, 0.4) !important;
}

/* Mobile Menu Button */
.bc_header .bc-more-menu {
    display: none;
    background: rgba(255, 255, 255, 0.15) !important;
    border: none !important;
    width: 45px !important;
    height: 45px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s ease !important;
}

.bc_header .bc-more-menu:hover {
    background: rgba(255, 255, 255, 0.25) !important;
}

.bc_header .bc-more-menu i {
    font-size: 20px !important;
    color: #fff !important;
}

/* ============================================
   STICKY HEADER
   ============================================ */
.bc_header.header-scrolled,
.bc_header.is-sticky {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: linear-gradient(135deg, var(--header-green-dark) 0%, var(--header-green) 100%) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.2) !important;
    animation: slideDown 0.4s ease !important;
}

.bc_header.has_sticky:not(.header-scrolled) {
    position: relative !important;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ============================================
   TRANSPARENT HEADER (Homepage Hero)
   ============================================ */
.header-transparent .bc_topbar {
    background: rgba(0, 0, 0, 0.3) !important;
    backdrop-filter: blur(10px) !important;
}

.header-transparent .bc_header:not(.header-scrolled):not(.is-sticky) {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(0, 0, 0, 0.2) !important;
    backdrop-filter: blur(10px) !important;
    box-shadow: none !important;
}

/* ============================================
   DESKTOP STYLES
   ============================================ */
@media (min-width: 1200px) {
    .bc_header .bc-menu {
        display: flex !important;
    }

    .bc_header .bc-more-menu {
        display: none !important;
    }
}

/* ============================================
   TABLET & MOBILE STYLES
   ============================================ */
@media (max-width: 1199px) {
    .bc_header .bc-menu {
        display: none !important;
    }

    .bc_header .bc-more-menu {
        display: flex !important;
    }

    .bc_header .header-left {
        gap: 0 !important;
    }
}

@media (max-width: 991px) {
    .bc_topbar .topbar-left {
        display: none !important;
    }

    .bc_topbar .topbar-right {
        width: 100% !important;
        justify-content: flex-end !important;
    }
}

@media (max-width: 767px) {
    .bc_topbar {
        padding: 6px 0 !important;
    }

    .bc_topbar .topbar-items > li > a {
        padding: 5px 8px !important;
        font-size: 11px !important;
    }

    .bc_header .content {
        min-height: 60px !important;
    }

    .bc_header .bc-logo img {
        height: 35px !important;
    }
}

/* ============================================
   MOBILE MENU SIDEBAR
   ============================================ */
.bc-menu-mobile {
    position: fixed !important;
    top: 0 !important;
    right: -320px !important;
    width: 300px !important;
    height: 100vh !important;
    background: #fff !important;
    z-index: 9999 !important;
    overflow-y: auto !important;
    transition: right 0.3s ease !important;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.2) !important;
}

.bc-menu-mobile.active,
.bc-menu-mobile[style*="block"] {
    right: 0 !important;
}

.bc-menu-mobile .user-profile {
    background: linear-gradient(135deg, var(--header-green) 0%, var(--header-green-light) 100%) !important;
    padding: 30px 20px !important;
    position: relative !important;
}

.bc-menu-mobile .user-profile .b-close {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    width: 36px !important;
    height: 36px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
}

.bc-menu-mobile .user-profile .b-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.bc-menu-mobile .user-profile .b-close i {
    color: #fff !important;
    font-size: 18px !important;
}

.bc-menu-mobile .user-profile ul {
    list-style: none !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
}

.bc-menu-mobile .user-profile ul li a {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-size: 14px !important;
    padding: 10px 0 !important;
    text-decoration: none !important;
}

.bc-menu-mobile .user-profile ul li a:hover {
    color: var(--header-gold) !important;
}

.bc-menu-mobile .g-menu {
    padding: 15px 0 !important;
}

.bc-menu-mobile .g-menu ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.bc-menu-mobile .g-menu > ul > li {
    border-bottom: 1px solid #eee !important;
}

.bc-menu-mobile .g-menu > ul > li > a {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 15px 20px !important;
    color: #333 !important;
    font-size: 15px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.bc-menu-mobile .g-menu > ul > li > a:hover {
    color: var(--header-green) !important;
    background: rgba(27, 94, 32, 0.05) !important;
    padding-left: 25px !important;
}

.bc-menu-mobile .g-menu ul ul {
    background: #f9f9f9 !important;
}

.bc-menu-mobile .g-menu ul ul li a {
    display: block !important;
    padding: 12px 20px 12px 35px !important;
    color: #555 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    border-left: 3px solid transparent !important;
}

.bc-menu-mobile .g-menu ul ul li a:hover {
    color: var(--header-green) !important;
    border-left-color: var(--header-orange) !important;
}

/* ============================================
   Z-INDEX & LAYERING
   ============================================ */
.bc_topbar {
    position: relative !important;
    z-index: 999 !important;
}

.bc_header {
    z-index: 1000 !important;
}

.bc_header.header-scrolled,
.bc_header.is-sticky {
    z-index: 1001 !important;
}
