/* ==========================================
   TWO-LEVEL HEADER FOR NON-LOGGED-IN USERS
   ========================================== */

/* ==========================================
   TOP LEVEL NAVIGATION (Minimal Bar - 35px)
   ========================================== */

.public-top-nav {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-bottom: none;
    height: 35px;
    position: sticky;
    top: 0;
    z-index: 1041;
    transition: all 0.3s ease;
}

.top-nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 35px;
}

/* Top Nav Info Text */
.top-nav-info {
    display: flex;
    align-items: center;
    color: white;
    font-size: 0.85rem;
    font-weight: 500;
}

.top-nav-info i {
    color: rgba(255, 255, 255, 0.9);
}

.top-nav-info span {
    color: rgba(255, 255, 255, 0.95);
}

/* Top Nav Right Side */
.top-nav-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Instagram Icon (Top) */
.social-icon-top {
    color: white;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 4px;
}

.social-icon-top:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

/* Region Switcher (Top) */
.region-switcher-top {
    display: flex;
    align-items: center;
}

.region-switcher-top label {
    color: rgba(255, 255, 255, 0.9);
}

.region-dropdown-top {
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    outline: none;
}

.region-dropdown-top option {
    color: #333;
    background: white;
}

.region-dropdown-top:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255,255,255,0.5);
}

.region-dropdown-top:focus {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255,255,255,0.6);
    box-shadow: none;
}

/* ==========================================
   MAIN LEVEL NAVIGATION (Main Bar - Compact)
   ========================================== */

.public-main-nav {
    background: white;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 8px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    position: sticky;
    top: 35px; /* Below top nav */
    z-index: 1040;
}

.main-nav-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

/* Brand Logo in Main Nav */
.brand-logo-main {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.brand-icon-main {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.brand-text-main {
    font-size: 1.3rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-logo-main:hover .brand-icon-main {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

/* Mobile Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Navigation Links (Center) */
.nav-links-center {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 5px;
    flex: 1;
    justify-content: center;
}

.nav-item-public {
    list-style: none;
}

.nav-link-public {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    color: #4a5568;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.nav-link-public i {
    font-size: 1rem;
    color: #667eea;
}

.nav-link-public:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.08);
}

.nav-link-public.active {
    color: #667eea;
    background: rgba(102, 126, 234, 0.12);
    font-weight: 600;
}

/* Action Buttons (Right) */
.nav-actions-right {
    display: flex;
    gap: 8px;
    align-items: center;
}

.btn-guest-action,
.btn-login-action,
.btn-signup-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
}

/* Guest Enquiry Button */
.btn-guest-action {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-guest-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.4);
    color: white;
}

/* Login Button */
.btn-login-action {
    border: 2px solid #667eea;
    color: #667eea;
    background: transparent;
}

.btn-login-action:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* Sign Up Button */
.btn-signup-action {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-signup-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(102, 126, 234, 0.4);
    color: white;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

@media (max-width: 991px) {
    /* Show mobile toggle */
    .mobile-menu-toggle {
        display: block;
    }
    
    /* Hide nav links by default */
    .nav-links-center {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 15px;
        box-shadow: 0 8px 25px rgba(0,0,0,0.15);
        border-radius: 0 0 12px 12px;
        display: none;
        z-index: 1000;
    }
    
    .nav-links-center.mobile-active {
        display: flex;
    }
    
    .nav-item-public {
        width: 100%;
    }
    
    .nav-link-public {
        width: 100%;
        padding: 12px 16px;
    }
    
    /* Stack action buttons */
    .nav-actions-right {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .btn-guest-action,
    .btn-login-action,
    .btn-signup-action {
        font-size: 0.85rem;
        padding: 6px 14px;
    }
    
    /* Adjust main nav */
    .public-main-nav {
        padding: 10px 0;
    }
    
    .main-nav-wrapper {
        position: relative;
    }
}

@media (max-width: 768px) {
    /* Top nav adjustments */
    .public-top-nav {
        height: 32px;
    }
    
    .top-nav-content {
        height: 32px;
    }
    
    .top-nav-info span {
        font-size: 0.75rem;
    }
    
    .top-nav-right {
        gap: 8px;
    }
    
    .social-icon-top {
        font-size: 1rem;
    }
    
    /* Main nav */
    .public-main-nav {
        top: 32px;
        padding: 6px 0;
    }
    
    .brand-icon-main {
        width: 34px;
        height: 34px;
        font-size: 16px;
    }
    
    .brand-text-main {
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    /* Top nav */
    .top-nav-info span {
        font-size: 0.7rem;
    }
    
    .region-switcher-top label {
        display: none;
    }
    
    .region-dropdown-top {
        font-size: 0.65rem;
        padding: 2px 6px;
    }
    
    /* Main nav */
    .brand-text-main {
        font-size: 1rem;
    }
    
    /* Action buttons full width on very small screens */
    .nav-actions-right {
        flex: 1;
    }
    
    .btn-guest-action,
    .btn-login-action,
    .btn-signup-action {
        flex: 1;
        justify-content: center;
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .btn-guest-action span,
    .btn-login-action span,
    .btn-signup-action span {
        display: none;
    }
    
    .btn-guest-action i,
    .btn-login-action i,
    .btn-signup-action i {
        margin: 0;
    }
}

/* ==========================================
   HIDE OLD HEADER
   ========================================== */

body.two-level-header.logged-out .old-public-header {
    display: none !important;
}

/* Smooth transitions */
.public-top-nav,
.public-main-nav {
    transition: all 0.3s ease;
}

