/* =========================================
   SUNSET PALETTE THEME & VARIABLES
   ========================================= */
:root {
    --primary-yellow: #F39F5A; /* Peach/Orange */
    --bg-main: #1D1A39;        /* Midnight */
    --bg-surface: #451952;     /* Plum */
    --bg-surface-alt: #662549; /* Maroon */
    --accent-rose: #AE445A;    /* Rose */
    --text-main: #E8BCB9;      /* Soft Pink */
    --text-white: #ffffff;
    --font-main: 'Inter', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-main);
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    overflow-x: hidden;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 10px 0; transition: all 0.3s ease; background: transparent;
}
.navbar.scrolled {
    background: var(--bg-surface) !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.5);
    padding: 8px 0;
}
.nav-container {
    width: 100%; padding: 0 40px; display: flex; justify-content: space-between; align-items: center;
}
.logo {
    display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; text-decoration: none; color: var(--text-main);
}
.logo span { color: var(--primary-yellow); }
.logo-icon { color: var(--primary-yellow); }

.nav-links { display: flex; align-items: center; gap: 35px; }
.nav-links a {
    text-decoration: none; color: var(--text-main); font-weight: 500; font-size: 14px; transition: color 0.2s; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary-yellow); }
.navbar.scrolled .nav-links a.active { color: var(--primary-yellow); border-bottom: 2px solid var(--primary-yellow); }

/* User Dropdown */
.user-dropdown { position: relative; display: inline-block; margin-left: 10px; }
.dropdown-toggle {
    display: flex; align-items: center; gap: 8px; background: transparent; border: 1px solid var(--bg-surface-alt); color: var(--text-main);
    padding: 4px 12px 4px 4px; border-radius: 50px; font-size: 13px; cursor: pointer; transition: all 0.3s;
}
.dropdown-toggle:hover { background: var(--bg-surface-alt); }
.nav-avatar, .nav-avatar-fallback {
    width: 28px; height: 28px; border-radius: 50%; object-fit: cover; border: 1px solid var(--primary-yellow);
}
.nav-avatar-fallback {
    background: var(--primary-yellow); color: var(--bg-main); font-weight: 700; font-size: 12px; display: flex; align-items: center; justify-content: center;
}
.dropdown-menu {
    position: absolute; top: calc(100% + 8px); right: 0; background: var(--bg-surface); min-width: 200px;
    border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,0.5); border: 1px solid var(--bg-surface-alt);
    padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all 0.3s; z-index: 1000;
}
.dropdown-menu.show { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
    display: block; padding: 10px 20px; color: var(--text-main) !important; text-decoration: none; font-size: 13px; transition: background 0.2s;
}
.dropdown-item:hover { background: var(--bg-surface-alt); color: var(--primary-yellow) !important; }
.dropdown-item.text-danger { color: #ff4444 !important; }
.dropdown-divider { height: 1px; background: var(--bg-surface-alt); margin: 6px 0; }

/* =========================================
   BUTTONS
   ========================================= */
.btn-primary {
    display: inline-block; background: var(--primary-yellow); color: var(--bg-main) !important;
    padding: 12px 25px; font-size: 16px; font-weight: 700; text-decoration: none; border-radius: 5px;
    transition: all 0.3s ease; border: none; cursor: pointer;
}
.btn-primary:hover { background: var(--text-main); transform: translateY(-2px); }
.btn-ghost {
    display: inline-block; background: transparent; color: var(--text-main); padding: 12px 25px; font-size: 16px;
    font-weight: 600; text-decoration: none; border-radius: 5px; border: 2px solid var(--text-main); transition: all 0.3s ease;
}
.btn-ghost:hover { background: var(--text-main); color: var(--bg-main); }

/* =========================================
   HOMEPAGE SECTIONS
   ========================================= */
.hero {
    position: relative; height: 100vh; min-height: 600px;
    background-image: url('https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?q=80&w=2070&auto=format&fit=crop');
    background-size: cover; background-position: center; display: flex; align-items: center;
    border-bottom-left-radius: 150px; overflow: hidden;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to right, rgba(29, 26, 57, 0.9) 0%, rgba(29, 26, 57, 0.4) 100%); z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 0 20px; width: 100%; margin-top: 50px; }
.hero-content h1 { font-size: 4rem; font-weight: 800; line-height: 1.1; color: var(--text-white); margin-bottom: 20px; }
.hero-content .highlight { color: var(--primary-yellow); }
.hero-content p { font-size: 1.1rem; color: var(--text-main); max-width: 500px; line-height: 1.6; margin-bottom: 40px; }

.section-padding { padding: 100px 0; background: var(--bg-main); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-header { text-align: center; margin-bottom: 60px; }
.section-header h2 { font-size: 2.5rem; font-weight: 800; margin-bottom: 15px; color: var(--text-white); }
.section-header p { color: var(--accent-rose); font-size: 1.1rem; }

/* Core Values */
.core-values { background: var(--bg-main); }
.values-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; }
.value-card {
    background: var(--bg-surface); padding: 40px; border-radius: 12px; text-align: center;
    border: 1px solid var(--bg-surface-alt); transition: transform 0.3s;
}
.value-card:hover { transform: translateY(-10px); }
.icon-box { width: 70px; height: 70px; background: rgba(243, 159, 90, 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 20px auto; }
.value-card h3 { font-size: 1.4rem; margin-bottom: 15px; color: var(--text-white); }
.value-card p { color: var(--text-main); line-height: 1.6; }

/* Featured Tours */
.featured-tours { background: var(--bg-main); }
.tours-preview-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 30px; }
.preview-card { background: var(--bg-surface); border-radius: 12px; overflow: hidden; border: 1px solid var(--bg-surface-alt); }
.preview-img { height: 250px; background-size: cover; background-position: center; position: relative; }
.price-tag { position: absolute; bottom: 15px; right: 15px; background: var(--primary-yellow); color: var(--bg-main); padding: 8px 15px; border-radius: 5px; font-weight: 700; font-size: 14px; }
.preview-content { padding: 30px; }
.preview-location { color: var(--accent-rose); font-size: 14px; text-transform: uppercase; margin-bottom: 10px; }
.preview-content h3 { font-size: 1.5rem; margin-bottom: 15px; color: var(--text-white); }
.preview-content p { color: var(--text-main); line-height: 1.6; }

/* Testimonials */
.testimonials { background: var(--bg-main); }
.testimonial-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 30px; }
.testimonial-card { background: var(--bg-surface); padding: 40px; border-radius: 12px; border-left: 4px solid var(--primary-yellow); }
.testimonial-card .quote { font-size: 1.1rem; color: var(--text-main); font-style: italic; line-height: 1.8; margin-bottom: 25px; }
.testimonial-card .author strong { color: var(--text-white); display: block; }
.testimonial-card .author span { color: var(--accent-rose); font-size: 14px; }

/* Newsletter */
.newsletter-banner { background: var(--bg-surface-alt); padding: 80px 0; text-align: center; border-top: 1px solid var(--bg-surface); }
.newsletter-banner h2 { font-size: 2.5rem; color: var(--text-white); margin-bottom: 15px; }
.newsletter-banner p { color: var(--text-main); font-size: 1.1rem; margin-bottom: 40px; }
.newsletter-form { display: flex; max-width: 600px; margin: 0 auto; }
.newsletter-form input { flex: 1; padding: 15px 20px; border: none; border-radius: 5px 0 0 5px; font-size: 16px; outline: none; }
.newsletter-form .btn-primary { border-radius: 0 5px 5px 0; }

/* =========================================
   TOURS PAGE (STICKY LAYOUT)
   ========================================= */
.sticky-split-layout { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: var(--bg-main); padding-top: 80px; }
.sticky-image-panel { flex: 1.2; position: relative; height: calc(100vh - 80px); }
.sticky-image-inner { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background-size: cover; background-position: center; transition: background-image 0.6s; }
.sticky-overlay { position: absolute; bottom: 0; left: 0; width: 100%; padding: 60px 50px; background: linear-gradient(to top, var(--bg-main) 0%, transparent 100%); z-index: 2; }
.sticky-overlay h1 { font-size: 3.5rem; font-weight: 800; margin-bottom: 15px; color: var(--text-white); }
.sticky-overlay p { font-size: 1.1rem; color: var(--text-main); margin-bottom: 30px; }
.active-tour-meta span { background: rgba(243, 159, 90, 0.2); color: var(--primary-yellow); padding: 6px 12px; border-radius: 20px; font-size: 14px; font-weight: 600; margin-right: 10px; }

.scrollable-list-panel { flex: 1; height: calc(100vh - 80px); overflow-y: auto; padding: 40px; background: var(--bg-main); border-left: 1px solid var(--bg-surface-alt); }
.list-header h2 { color: var(--text-white); font-size: 1.8rem; }
.list-header p { color: var(--accent-rose); margin-bottom: 30px; }
.tour-image-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.tour-image-tile { position: relative; height: 220px; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2px solid transparent; transition: border 0.3s; }
.tour-image-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s; }
.tour-image-tile:hover img { transform: scale(1.1); }
.tile-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(29, 26, 57, 0.8); display: flex; flex-direction: column; justify-content: center; align-items: center; opacity: 0; transition: 0.3s; }
.tour-image-tile:hover .tile-overlay { opacity: 1; }
.tile-overlay h3 { color: var(--text-white); margin-bottom: 15px; }
.tile-btn { background: var(--primary-yellow); color: var(--bg-main); padding: 8px 16px; border-radius: 5px; font-weight: 700; }
.tour-image-tile.active { border-color: var(--primary-yellow); }

/* =========================================
   TOUR DETAILS (SPLIT SCREEN)
   ========================================= */
.split-screen-detail { display: flex; height: 100vh; width: 100vw; overflow: hidden; background: var(--bg-main); padding-top: 80px; }
.detail-left { flex: 1.5; position: relative; background-size: cover; background-position: center; }
.detail-left-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(to bottom, var(--bg-main) 0%, transparent 30%, transparent 60%, var(--bg-main) 100%); }
.detail-left-content { position: absolute; bottom: 60px; left: 50px; right: 50px; z-index: 2; }
.detail-left-content h1 { font-size: 3rem; color: var(--text-white); font-weight: 800; margin-bottom: 15px; }
.detail-left-content p { font-size: 1.1rem; color: var(--text-main); }
.detail-right { flex: 1; background: var(--bg-main); border-left: 1px solid var(--bg-surface-alt); display: flex; flex-direction: column; }
.detail-right-content { padding: 100px 50px 50px; overflow-y: auto; height: 100%; }
.back-btn { display: inline-flex; color: var(--accent-rose); text-decoration: none; margin-bottom: 40px; }
.detail-logo { font-size: 2.2rem; color: var(--text-white); }
.detail-subtitle { color: var(--accent-rose); margin-bottom: 30px; }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; background: var(--bg-surface); padding: 25px; border-radius: 10px; border: 1px solid var(--bg-surface-alt); margin-bottom: 40px; }
.info-label { font-size: 0.8rem; color: var(--accent-rose); text-transform: uppercase; margin-bottom: 5px; }
.info-value { font-size: 1.1rem; color: var(--text-white); font-weight: 600; }
.highlight-slots { color: var(--primary-yellow) !important; }
.detail-description h3 { color: var(--text-white); margin-bottom: 15px; }
.detail-description p { color: var(--text-main); line-height: 1.7; }
.payment-note { background: rgba(243, 159, 90, 0.1); padding: 20px; border-radius: 10px; border: 1px solid rgba(243, 159, 90, 0.3); color: var(--text-main); margin-bottom: 40px; }
.detail-book-btn { width: 100%; padding: 18px; font-size: 18px; }

/* =========================================
   PROFILE DASHBOARD
   ========================================= */
.profile-section { background: var(--bg-main); min-height: 100vh; padding-top: 120px; padding-bottom: 50px; }
.profile-container { display: flex; gap: 40px; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.profile-sidebar { flex: 0 0 250px; background: var(--bg-surface); padding: 30px; border-radius: 12px; border: 1px solid var(--bg-surface-alt); height: fit-content; }
.profile-sidebar h2 { color: var(--text-white); margin-bottom: 5px; }
.user-greeting { color: var(--accent-rose); margin-bottom: 30px; font-size: 14px; }
.profile-nav { display: flex; flex-direction: column; gap: 10px; margin-bottom: 40px; }
.profile-tab { background: none; border: none; color: var(--text-main); text-align: left; padding: 12px 15px; border-radius: 8px; cursor: pointer; transition: 0.2s; }
.profile-tab:hover { background: var(--bg-surface-alt); }
.profile-tab.active { background: var(--primary-yellow); color: var(--bg-main); font-weight: 700; }
.btn-logout { background: none; border: 1px solid var(--accent-rose); color: var(--accent-rose); width: 100%; padding: 10px; border-radius: 8px; cursor: pointer; }
.btn-logout:hover { background: var(--accent-rose); color: var(--text-white); }

.profile-content { flex: 1; }
.profile-content h3 { color: var(--text-white); font-size: 28px; margin-bottom: 20px; }
.trips-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.trip-card { background: var(--bg-surface); padding: 25px; border-radius: 12px; border-left: 4px solid var(--primary-yellow); border-top: 1px solid var(--bg-surface-alt); border-right: 1px solid var(--bg-surface-alt); border-bottom: 1px solid var(--bg-surface-alt); }
.trip-card h4 { color: var(--text-white); }
.trip-destination { color: var(--accent-rose); font-size: 14px; margin-bottom: 20px; }
.trip-timer { color: var(--primary-yellow) !important; font-weight: 600; margin-bottom: 20px; }
.btn-cancel { background: transparent; border: 1px solid var(--accent-rose); color: var(--accent-rose); padding: 8px 16px; border-radius: 5px; cursor: pointer; }
.btn-cancel:hover { background: var(--accent-rose); color: var(--text-white); }

/* Settings Form */
.settings-form { background: var(--bg-surface); padding: 30px; border-radius: 12px; border: 1px solid var(--bg-surface-alt); }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.form-row .form-group { flex: 1; }
.settings-form .form-group { margin-bottom: 20px; }
.settings-form label { color: var(--accent-rose); font-size: 14px; margin-bottom: 8px; display: block; }
.settings-form .input-field { background: var(--bg-main); border: 1px solid var(--bg-surface-alt); color: var(--text-white); padding: 12px; border-radius: 8px; width: 100%; }
.settings-form .input-field:focus { border-color: var(--primary-yellow); outline: none; }

/* =========================================
   LOGIN DRAWER
   ========================================= */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(29, 26, 57, 0.8); backdrop-filter: blur(3px); z-index: 2000; opacity: 0; visibility: hidden; transition: 0.3s; }
.drawer-overlay.open { opacity: 1; visibility: visible; }
.login-drawer { position: fixed; top: 0; right: -400px; width: 100%; max-width: 400px; height: 100vh; background: var(--bg-main); z-index: 2001; transition: right 0.4s; display: flex; flex-direction: column; border-left: 1px solid var(--bg-surface-alt); }
.login-drawer.open { right: 0; }
.drawer-header { padding: 30px; border-bottom: 1px solid var(--bg-surface-alt); display: flex; justify-content: space-between; }
.drawer-header h2 { color: var(--text-white); }
.close-drawer { background: none; border: none; color: var(--accent-rose); font-size: 30px; cursor: pointer; }
.drawer-body { padding: 30px; }
.social-btn { background: var(--bg-surface); border: 1px solid var(--bg-surface-alt); color: var(--text-main); padding: 12px; width: 100%; border-radius: 5px; display: flex; justify-content: center; gap: 10px; text-decoration: none; }
.divider span { background: var(--bg-main); color: var(--accent-rose); padding: 0 15px; }
.form-group label { color: var(--text-main); }
.input-field { background: var(--bg-surface); border: 1px solid var(--bg-surface-alt); color: var(--text-white); width: 100%; padding: 12px; border-radius: 5px; }
.signup-link { color: var(--accent-rose); text-align: center; margin-top: 25px; }
.signup-link a { color: var(--primary-yellow); font-weight: 700; text-decoration: none; }

/* =========================================
   BOOKING & MISC
   ========================================= */
.booking-section { background: var(--bg-main); min-height: 100vh; padding-top: 120px; padding-bottom: 50px; }
.booking-card { background: var(--bg-surface); max-width: 600px; margin: 0 auto; padding: 50px; border-radius: 12px; border: 1px solid var(--bg-surface-alt); }
.booking-header h1 { color: var(--text-white); }
.price-calculator { background: var(--bg-main); padding: 25px; border-radius: 10px; border: 1px solid var(--bg-surface-alt); }
.price-row { color: var(--text-main); display: flex; justify-content: space-between; margin-bottom: 12px; }
.price-row.highlight { color: var(--primary-yellow); font-weight: 700; border-top: 1px solid var(--bg-surface-alt); padding-top: 15px; }
.big-input { background: var(--bg-main); border: 2px solid var(--bg-surface-alt); color: var(--text-white); text-align: center; font-size: 24px; font-weight: 700; padding: 15px; border-radius: 8px; width: 100%; }
.whatsapp-float { position: fixed; width: 60px; height: 60px; bottom: 40px; right: 40px; background: #25d366; color: #fff; border-radius: 50px; display: flex; align-items: center; justify-content: center; z-index: 1000; box-shadow: 0 4px 10px rgba(0,0,0,0.3); }

/* =========================================
   PREMIUM FOOTER DESIGN (BULLETPROOF)
   ========================================= */
.site-footer {
    background-color: var(--bg-surface) !important;
    border-top: 1px solid var(--bg-surface-alt) !important;
    padding: 80px 40px 20px 40px !important;
    color: var(--text-main) !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: grid !important;
    grid-template-columns: 2fr 1fr 1fr 1.5fr !important;
    gap: 40px !important;
    margin-bottom: 60px !important;
}

.footer-col h4 {
    color: var(--text-white) !important;
    font-size: 18px !important;
    margin-bottom: 20px !important;
    font-weight: 600 !important;
}

.footer-brand p {
    color: var(--accent-rose) !important;
    line-height: 1.6 !important;
    margin-top: 15px !important;
    max-width: 300px !important;
}

.footer-links {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
}

.footer-links a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: color 0.3s ease !important;
}

.footer-links a:hover {
    color: var(--primary-yellow) !important;
}

.footer-contact p {
    margin-bottom: 12px !important;
    color: var(--text-main) !important;
}

.footer-contact a {
    color: var(--text-main) !important;
    text-decoration: none !important;
    transition: color 0.3s !important;
}

.footer-contact a:hover {
    color: var(--primary-yellow) !important;
}

.footer-socials {
    display: flex !important;
    gap: 15px !important;
    margin-top: 25px !important;
}

.footer-socials a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    background-color: var(--bg-main) !important;
    color: var(--text-main) !important;
    transition: all 0.3s ease !important;
    border: 1px solid var(--bg-surface-alt) !important;
    text-decoration: none !important;
}

.footer-socials a:hover {
    background-color: var(--primary-yellow) !important;
    color: var(--bg-main) !important;
    border-color: var(--primary-yellow) !important;
    transform: translateY(-3px) !important;
}

.footer-bottom {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding-top: 20px !important;
    border-top: 1px solid var(--bg-surface-alt) !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    color: var(--accent-rose) !important;
    font-size: 14px !important;
}

/* Responsive Fix */
@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr !important;
        text-align: center !important;
    }
    .footer-brand p {
        margin: 15px auto !important;
    }
    .footer-links {
        align-items: center !important;
    }
    .footer-socials {
        justify-content: center !important;
    }
    .footer-bottom {
        flex-direction: column !important;
        gap: 10px !important;
        text-align: center !important;
    }
}

/* =========================================
   STATIC PAGES (About, Legal, etc.)
   ========================================= */
.static-page-section {
    background: var(--bg-main);
    min-height: 100vh;
    padding-top: 120px;
    padding-bottom: 80px;
}

.static-page-card {
    background: var(--bg-surface);
    max-width: 850px;
    margin: 0 auto;
    padding: 50px;
    border-radius: 12px;
    border: 1px solid var(--bg-surface-alt);
    color: var(--text-main);
}

.static-page-card h1 {
    color: var(--text-white);
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.static-page-card .page-subtitle {
    color: var(--accent-rose);
    margin-bottom: 40px;
    font-size: 1.1rem;
}

.static-page-card h2 {
    color: var(--primary-yellow);
    font-size: 1.4rem;
    margin-top: 30px;
    margin-bottom: 15px;
}

.static-page-card p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.static-page-card ul {
    line-height: 1.8;
    margin-bottom: 20px;
    padding-left: 20px;
}

.static-page-card a {
    color: var(--primary-yellow);
    text-decoration: none;
}

.static-page-card a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .static-page-card { padding: 30px 20px; }
    .static-page-card h1 { font-size: 2rem; }
}

/* Improve link visibility with better contrast */
.static-page-card a,
.footer-contact a,
.legal-link {
    color: var(--primary-yellow) !important;
    text-decoration: underline;
    font-weight: 500;
}

/* Increase spacing between cards */
.footer-col,
.preview-card,
.trip-card,
.value-card {
    margin-bottom: 24px;
}

/* Enhance contrast on form inputs for better readability */
.input-field, .big-input {
    background-color: var(--bg-surface-alt) !important;
    border: 1px solid var(--text-main) !important;
    color: var(--text-white) !important;
}

.input-field::placeholder {
    color: var(--accent-rose) !important;
}



/* Responsive */
@media (max-width: 900px) {
    .nav-links { display: none; }
    .hero-content h1 { font-size: 2.8rem; }
    .split-screen-detail, .sticky-split-layout { flex-direction: column; height: auto; overflow: auto; }
    .detail-left, .sticky-image-panel { height: 50vh; }
    .detail-right-content, .scrollable-list-panel { padding: 40px 20px; }
}
/* =========================================
   SEMRUSH NAVBAR RESTORATION (FIX)
   ========================================= */

/* 1. Default state: Hide the hamburger button on desktop */
.mobile-menu-btn {
    display: none !important;
}

/* 2. Ensure the Navbar is full width */
.navbar {
    width: 100% !important;
    padding: 15px 0 !important;
}

/* 3. Push links to the right */
.nav-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 40px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

/* 4. Align items on the right */
.nav-links {
    display: flex !important;
    align-items: center !important;
    gap: 25px !important;
    margin-left: auto !important;
}

/* 5. Mobile Only: Show hamburger, hide links */
@media (max-width: 900px) {
    .nav-links {
        display: none !important;
    }
    .mobile-menu-btn {
        display: block !important;
        background: none !important;
        border: none !important;
        color: var(--text-main) !important;
        cursor: pointer !important;
    }
}
/* =========================================
   FIX LOG OUT BUTTON IN DROPDOWN
   ========================================= */

/* Remove the default form margins */
.dropdown-menu form {
    margin: 0;
    padding: 0;
    width: 100%;
}

/* Strip default button borders and outlines */
.dropdown-item.text-danger {
    color: #ff6b6b !important; /* Softer, modern red */
    background: transparent !important;
    border: none !important;
    outline: none !important;
    width: 100%;
    text-align: left;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

/* Elegant hover & focus state */
.dropdown-item.text-danger:hover,
.dropdown-item.text-danger:focus {
    background: rgba(255, 107, 107, 0.1) !important; /* Subtle red tint */
    color: #ff6b6b !important;
    outline: none !important;
}

/* =========================================
   CANCEL MODAL OVERLAY FIX
   ========================================= */
.modal-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(29, 26, 57, 0.85) !important;
    backdrop-filter: blur(5px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.show {
    opacity: 1 !important;
    visibility: visible !important;
}

.modal-box {
    background: var(--bg-surface) !important;
    padding: 40px;
    border-radius: 12px;
    max-width: 450px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    border: 1px solid var(--bg-surface-alt);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.modal-overlay.show .modal-box {
    transform: translateY(0);
}

/* =========================================
   MOBILE FIX FOR TOUR TILES
   ========================================= */
@media (max-width: 900px) {
    /* Hide the left panel entirely on mobile to give the grid full screen */
    .sticky-image-panel {
        display: none !important; 
    }

    /* Make the text overlay always visible on mobile */
    .tour-image-tile .tile-overlay {
        opacity: 1 !important;
        background: linear-gradient(to top, rgba(29,26,57,0.9) 0%, transparent 60%) !important;
        justify-content: flex-end !important;
        padding-bottom: 20px !important;
    }

    /* Style the title */
    .tour-image-tile .tile-overlay h3 {
        font-size: 16px !important;
        margin-bottom: 5px !important;
        transform: translateY(0) !important;
    }

    /* Style the button */
    .tour-image-tile .tile-btn {
        display: inline-block !important;
        background: var(--primary-yellow) !important;
        color: var(--bg-main) !important;
        padding: 6px 15px !important;
        border-radius: 5px !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        transform: translateY(0) !important;
    }

    /* Adjust the grid for mobile */
    .tour-image-grid {
        grid-template-columns: 1fr !important; /* 1 column on phone */
        padding-top: 20px;
    }
}

/* =========================================
   MOBILE NAVIGATION MENU
   ========================================= */
@media (max-width: 900px) {
    /* Show the hamburger button */
    .mobile-menu-btn {
        display: block !important;
        z-index: 1001;
        position: relative;
    }

    /* Style the navigation panel when it opens */
    .nav-links {
        display: none !important; /* Hidden by default */
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--bg-surface) !important; /* Plum background */
        flex-direction: column;
        align-items: flex-start;
        padding: 20px 0;
        border-bottom: 2px solid var(--primary-yellow);
        box-shadow: 0 10px 20px rgba(0,0,0,0.5);
        z-index: 1000;
    }

    /* When JavaScript adds the 'mobile-open' class, show it */
    .nav-links.mobile-open {
        display: flex !important;
    }

    /* Style the individual links inside the mobile menu */
    .nav-links a {
        width: 100%;
        padding: 15px 30px;
        font-size: 16px;
        border-bottom: 1px solid var(--bg-surface-alt);
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    /* Fix the user profile dropdown inside the mobile menu */
    .user-dropdown {
        width: 100%;
        margin-left: 0;
        margin-top: 15px;
        padding: 0 30px;
    }
    
    .dropdown-toggle {
        width: 100%;
        justify-content: flex-start;
        padding: 12px;
    }

    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border: 1px solid var(--bg-surface-alt);
        margin-top: 10px;
        background-color: var(--bg-main) !important;
    }
}

/* =========================================
   PROFILE PAGE MOBILE FIX
   ========================================= */
@media (max-width: 900px) {
    /* 1. Stack the sidebar and content vertically */
    .profile-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 2. Make the sidebar full width */
    .profile-sidebar {
        width: 100% !important;
        flex: auto !important;
        padding: 20px !important;
    }

    /* 3. Make the content full width */
    .profile-content {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* 4. Make the tabs stack horizontally or take full width */
    .profile-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .profile-tab {
        flex: 1 1 auto !important;
        text-align: center !important;
        font-size: 13px !important;
        padding: 10px !important;
    }

    /* 5. Fix the forms so inputs don't squish */
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 6. Fix the trips grid */
    .trips-grid {
        grid-template-columns: 1fr !important;
    }

    /* 7. Fix the modal padding for small screens */
    .modal-box {
        padding: 20px !important;
        width: 95% !important;
    }
}

/* Ensure tab content hiding works correctly on all screens */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* =========================================
   MANAGER DASHBOARD - BULLETPROOF GRID
   ========================================= */
.manager-layout {
    display: grid !important;
    grid-template-columns: 260px 1fr !important;
    gap: 30px !important;
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 20px 50px 20px !important;
    width: 100% !important;
    box-sizing: border-box;
    align-items: start !important;
}

.manager-sidebar {
    background: var(--bg-surface) !important;
    padding: 30px !important;
    border-radius: 12px !important;
    border: 1px solid var(--bg-surface-alt) !important;
    width: 100% !important;
    box-sizing: border-box;
}

.manager-main {
    background: var(--bg-surface) !important;
    padding: 40px !important;
    border-radius: 12px !important;
    border: 1px solid var(--bg-surface-alt) !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
}

/* =========================================
   MOBILE OVERRIDE (SCREENS UNDER 900px)
   ========================================= */
@media (max-width: 900px) {
    .manager-layout {
        grid-template-columns: 1fr !important;
        padding-top: 100px !important;
        gap: 20px !important;
    }

    .manager-main {
        padding: 20px !important;
    }

    .manager-sidebar nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
    }

    .manager-sidebar nav a {
        flex: 1 1 45% !important;
        text-align: center;
        padding: 10px !important;
        font-size: 13px !important;
    }

    .manager-table-container {
        overflow-x: auto !important;
        width: 100% !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 10px;
    }

    .manager-table {
        min-width: 600px !important;
    }

    .manager-table th,
    .manager-table td {
        font-size: 12px !important;
        padding: 10px 8px !important;
    }

    .action-buttons {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }
    .action-buttons .btn-sm {
        width: 100%;
        text-align: center;
    }

    .manager-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 15px !important;
    }
}

/* =========================================
   PROFILE PAGE MOBILE FIX
   ========================================= */
@media (max-width: 900px) {
    /* 1. Stack the sidebar and content vertically */
    .profile-container {
        flex-direction: column !important;
        gap: 20px !important;
    }

    /* 2. Make the sidebar full width */
    .profile-sidebar {
        width: 100% !important;
        flex: auto !important;
        padding: 20px !important;
    }

    /* 3. Make the content full width */
    .profile-content {
        width: 100% !important;
        min-width: 0 !important;
    }

    /* 4. Make the tabs stack horizontally or take full width */
    .profile-nav {
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .profile-tab {
        flex: 1 1 auto !important;
        text-align: center !important;
        font-size: 13px !important;
        padding: 10px !important;
    }

    /* 5. Fix the forms so inputs don't squish */
    .form-row {
        flex-direction: column !important;
        gap: 15px !important;
    }

    /* 6. Fix the trips grid */
    .trips-grid {
        grid-template-columns: 1fr !important;
    }

    /* 7. Fix the modal padding for small screens */
    .modal-box {
        padding: 20px !important;
        width: 95% !important;
    }
}

/* Ensure tab content hiding works correctly on all screens */
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* =========================================
   NEW LOGO STYLES (ZOOMED IN)
   ========================================= */
.logo-container {
    background-color: #ffffff !important;
    padding: 5px 15px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    height: 50px; /* Fixed height for the white box */
    overflow: hidden; /* Hides the transparent edges */
}

.logo-container:hover {
    transform: scale(1.02);
}

.logo-img {
    height: 150px; /* Make the image huge */
    width: auto;
    transform: scale(1.0); 
    /* This pulls the image up/down so the logo sits perfectly in the middle */
    margin-top: -20px; 
}

/* Mobile responsive */
@media (max-width: 900px) {
    .logo-container {
        height: 40px;
        padding: 4px 10px;
    }
    .logo-img {
        height: 120px;
        margin-top: -15px;
    }
}