/* ========================================
   EAST AFRICA ODYSSEY - MAIN CSS
   Fully Responsive - Mobile Optimized
   Version: 7.0
======================================== */

/* ========================================
   1. VARIABLES & RESET
======================================== */

:root {
    --primary: #1a6b4b;
    --primary-dark: #145a3a;
    --primary-light: #2a8b63;
    --accent: #f39c12;
    --accent-dark: #e67e22;
    --accent-light: #f5b041;
    --dropdown-bg: #f48931;
    --text-color: #333333;
    --text-light: #666666;
    --text-dark: #222222;
    --bg-color: #f5f5f5;
    --light-bg: #ffffff;
    --dark-bg: #111111;
    --gray-bg: #f9f9f9;
    --border-color: #dddddd;
    --shadow: rgba(0, 0, 0, 0.05);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    --shadow-light: rgba(0, 0, 0, 0.05);
    --font-primary: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Georgia', 'Times New Roman', serif;
    --spacing-xs: 5px;
    --spacing-sm: 10px;
    --spacing-md: 15px;
    --spacing-lg: 20px;
    --spacing-xl: 30px;
    --spacing-2xl: 40px;
    --spacing-3xl: 60px;
    --header-height-mobile: 60px;
    --header-height-desktop: 80px;
    --container-width: 1400px;
    --border-radius-sm: 5px;
    --border-radius-md: 10px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    --transition-fast: 0.2s ease;
    --transition: 0.3s ease;
    --transition-slow: 0.5s ease;
}

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

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

/* Mobile font size adjustment */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
}

body {
    font-family: var(--font-primary);
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    padding-top: var(--header-height-desktop);
}

/* Mobile body padding */
@media (max-width: 768px) {
    body {
        padding-top: var(--header-height-mobile);
    }
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

a:hover {
    color: var(--primary);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

/* ========================================
   2. HEADER & NAVIGATION
======================================== */

.site-header {
    background: #00a652 !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 2px 15px rgba(250, 187, 29, 0.2);
}

.site-header.scrolled {
    padding: 5px 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    background: #00a652 !important;
}

.container {
    width: 95%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 15px;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: nowrap;
    gap: 12px;
    min-height: var(--header-height-desktop);
    transition: min-height 0.3s ease;
}

.site-header.scrolled .header-inner {
    min-height: 65px;
}

/* Mobile header height */
@media (max-width: 768px) {
    .header-inner {
        min-height: var(--header-height-mobile);
    }
    
    .site-header.scrolled .header-inner {
        min-height: 55px;
    }
}

/* Logo Area */
.logo-area {
    flex-shrink: 0;
}

.logo-area .logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
}

/* CUSTOM LOGO STYLES - FIXED SIZE */
.custom-logo {
    max-height: 107px !important;
    width: auto !important;
    transition: all 0.3s ease;
}

/* Default logo image (if no custom logo) */
.logo img {
    max-height: 107px !important;
    width: auto !important;
    transition: all 0.3s ease;
}

/* Scrolled state - slightly smaller logo */
.site-header.scrolled .custom-logo,
.site-header.scrolled .logo img {
    max-height: 70px !important;
    width: auto !important;
}

.logo i {
    font-size: 28px;
    color: #fabc1e;
}

.logo .site-name {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
    transition: all 0.3s ease;
}

/* Mobile logo adjustments */
@media (max-width: 768px) {
    .custom-logo,
    .logo img {
        max-height: 70px !important;
        width: auto !important;
    }
    
    .site-header.scrolled .custom-logo,
    .site-header.scrolled .logo img {
        max-height: 50px !important;
        width: auto !important;
    }
    
    .logo .site-name {
        font-size: 16px;
    }
    
    .logo i {
        font-size: 22px;
    }
}

@media (max-width: 480px) {
    .custom-logo,
    .logo img {
        max-height: 55px !important;
        width: auto !important;
    }
    
    .site-header.scrolled .custom-logo,
    .site-header.scrolled .logo img {
        max-height: 40px !important;
        width: auto !important;
    }
    
    .logo .site-name {
        font-size: 14px;
    }
    
    .logo i {
        font-size: 18px;
    }
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 8px;
    font-size: 22px;
    color: #fff;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.02);
}

.mobile-menu-toggle.hide-toggle {
    display: none !important;
}

@media (max-width: 1024px) {
    .mobile-menu-toggle {
        display: flex;
    }
}

@media (max-width: 480px) {
    .mobile-menu-toggle {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* Mobile Menu Close Button */
.mobile-menu-close {
    display: none;
    position: absolute;
    top: 15px;
    right: 15px;
    width: 44px;
    height: 44px;
    background: #f39c12;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    z-index: 1002;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mobile-menu-close i {
    font-size: 20px;
    color: #fff;
}

.mobile-menu-close:hover {
    background: #e67e22;
    transform: rotate(90deg);
}

@media (max-width: 480px) {
    .mobile-menu-close {
        width: 38px;
        height: 38px;
        top: 12px;
        right: 12px;
    }
    
    .mobile-menu-close i {
        font-size: 16px;
    }
}

/* Header Right Panel */
.header-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
    min-width: 0;           /* ★ prevents flex child from overflowing */
    overflow: visible;
}

/* ========================================
   3. DESKTOP NAVIGATION (1025px+)
   — FORCE SINGLE ROW, NO WRAPPING
======================================== */

@media (min-width: 1025px) {
    .main-nav {
        flex: 1;
        min-width: 0;       /* ★ allows nav to shrink if needed */
        overflow: visible;
    }
    
    .nav-menu {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        gap: 2px;                       /* ★ tighter gap keeps items compact */
        list-style: none;
        margin: 0;
        padding: 0;
        flex-wrap: nowrap;              /* ★ THE KEY FIX — no wrapping */
        overflow: visible;
        width: 100%;
    }
    
    .nav-menu .nav-item {
        position: relative;
        list-style: none;
        flex-shrink: 0;                 /* ★ never squish a menu item */
    }
    
    /* Default link styles — tighter padding */
    .nav-menu .nav-link {
        padding: 10px 11px;             /* ★ reduced from 10px 16px */
        display: flex;
        align-items: center;
        gap: 4px;
        font-weight: 500;
        font-size: 0.88rem;             /* ★ reduced from 0.95rem */
        color: #fff !important;
        text-decoration: none;
        transition: all 0.3s ease;
        white-space: nowrap;
        border-radius: 5px;
        line-height: 1.3;
    }
    
    /* Hover state for menu items */
    .nav-menu .nav-link:hover {
        color: #fabc1e !important;
        background: rgba(255, 255, 255, 0.15);
        transform: translateY(-2px);
    }
    
    /* Active menu item */
    .nav-menu .current-menu-item > .nav-link,
    .nav-menu .current-page-item > .nav-link,
    .nav-menu .current_page_item > .nav-link,
    .nav-menu .current_page_ancestor > .nav-link,
    .nav-menu .current-menu-ancestor > .nav-link {
        color: #fabc1e !important;
        background: rgba(255, 255, 255, 0.1);
        position: relative;
    }
    
    /* Active menu indicator line */
    .nav-menu .current-menu-item > .nav-link::after,
    .nav-menu .current-page-item > .nav-link::after,
    .nav-menu .current_page_item > .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: #fabc1e;
        border-radius: 2px;
    }
    
    /* Dropdown arrow — don't add ::after if active line exists */
    .nav-menu .current-menu-item > .nav-link::after,
    .nav-menu .current-page-item > .nav-link::after,
    .nav-menu .current_page_item > .nav-link::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 30px;
        height: 3px;
        background: #fabc1e;
        border-radius: 2px;
    }

    /* Dropdown menu - ORANGE BACKGROUND #f48931 */
    .nav-menu .dropdown-menu {
        position: absolute;
        top: 100%;
        left: 0;
        min-width: 230px;
        background: #f48931 !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        border-radius: 8px;
        padding: 8px 0;
        margin: 0;
        list-style: none;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: all 0.3s ease;
        z-index: 1000;
        border: 1px solid rgba(255, 255, 255, 0.2);
    }
    
    .nav-menu .dropdown:hover > .dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }
    
    /* Dropdown items - ORANGE BACKGROUND */
    .nav-menu .dropdown-menu .dropdown-item {
        padding: 9px 18px;
        font-size: 13px;
        color: #ffffff !important;
        display: block;
        transition: all 0.2s ease;
        background: transparent;
        white-space: nowrap;
    }
    
    /* Dropdown item hover */
    .nav-menu .dropdown-menu .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #ffffff !important;
        padding-left: 23px;
    }
    
    /* Active dropdown item */
    .nav-menu .dropdown-menu .current-menu-item > .dropdown-item,
    .nav-menu .dropdown-menu .current-page-item > .dropdown-item {
        background: rgba(0, 0, 0, 0.15);
        color: #ffffff !important;
        font-weight: 600;
        border-left: 3px solid #ffffff;
    }
    
    /* Nested dropdown - ORANGE BACKGROUND */
    .nav-menu .dropdown-menu .dropdown {
        position: relative;
    }
    
    .nav-menu .dropdown-menu .dropdown > .dropdown-item::after {
        content: "\25B8";
        position: absolute;
        right: 15px;
        font-size: 11px;
        color: #ffffff;
    }
    
    .nav-menu .dropdown-menu .dropdown:hover > .dropdown-item::after {
        color: #ffffff;
    }
    
    .nav-menu .dropdown-menu .dropdown:hover > .dropdown-menu {
        top: 0;
        left: 100%;
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }
    
    .nav-menu .dropdown-menu .dropdown-menu {
        top: 0;
        left: 100%;
        margin-top: -8px;
        background: #f48931 !important;
    }
    
    /* Dropdown arrow for parent with hover rotation */
    .nav-menu .dropdown > .nav-link::after {
        content: "\25BE";
        margin-left: 4px;
        font-size: 10px;
        display: inline-block;
        transition: transform 0.2s ease;
        color: #ffffff;
    }
    
    .nav-menu .dropdown:hover > .nav-link::after {
        transform: rotate(180deg);
        color: #fabc1e;
    }
    
    /* Active dropdown parent */
    .nav-menu .dropdown.current-menu-item > .nav-link::after,
    .nav-menu .dropdown.current-menu-ancestor > .nav-link::after {
        transform: rotate(180deg);
        color: #fabc1e;
    }

    /* ★ Medium screens: slightly more compact */
    @media (max-width: 1280px) and (min-width: 1025px) {
        .nav-menu {
            gap: 0;
        }

        .nav-menu .nav-link {
            padding: 10px 9px;
            font-size: 0.84rem;
        }

        .nav-menu .dropdown > .nav-link::after {
            margin-left: 2px;
            font-size: 9px;
        }

        .btn-safari,
        .btn-safari--whatsapp {
            padding: 9px 18px;
            font-size: 0.82rem;
        }
    }

    /* ★ Tighter screens: even more compact */
    @media (max-width: 1150px) and (min-width: 1025px) {
        .nav-menu .nav-link {
            padding: 10px 7px;
            font-size: 0.8rem;
        }

        .header-right {
            gap: 8px;
        }

        .btn-safari,
        .btn-safari--whatsapp {
            padding: 8px 14px;
            font-size: 0.78rem;
        }

        .btn-safari--whatsapp .fa-whatsapp {
            font-size: 1em;
        }
    }
}

/* ========================================
   4. MOBILE NAVIGATION (up to 1024px)
   WITH ACTIVE & HOVER STATES
======================================== */

@media (max-width: 1024px) {
    .header-right {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 350px;
        height: 100vh;
        height: calc(var(--vh, 1vh) * 100);
        background: #00a652;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 70px 20px 30px;
        transition: right 0.3s ease-in-out;
        z-index: 1000;
        box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
        gap: 20px;
        overflow-y: auto;
    }
    
    .header-right.active {
        right: 0;
    }
    
    .mobile-menu-close {
        display: flex;
    }
    
    .main-nav {
        width: 100%;
        flex: none;
    }
    
    .nav-menu {
        flex-direction: column;
        width: 100%;
        gap: 0 !important;
    }
    
    .nav-menu .nav-item {
        width: 100%;
        position: relative;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }
    
    /* Mobile link styles */
    .nav-menu .nav-link {
        padding: 14px 0 !important;
        display: block;
        font-size: 16px;
        color: #fff !important;
        font-weight: 500;
        width: calc(100% - 50px);
        transition: all 0.3s ease;
    }
    
    /* Mobile hover state */
    .nav-menu .nav-link:hover {
        color: #fabc1e !important;
        padding-left: 5px !important;
    }
    
    /* Mobile active menu item */
    .nav-menu .current-menu-item > .nav-link,
    .nav-menu .current-page-item > .nav-link,
    .nav-menu .current_page_item > .nav-link {
        color: #fabc1e !important;
        background: rgba(255, 255, 255, 0.1);
        border-left: 3px solid #fabc1e;
        padding-left: 10px !important;
    }
    
    /* Mobile dropdown toggles */
    .mobile-dropdown-toggle {
        position: absolute;
        right: 0;
        top: 0;
        width: 50px;
        height: 48px;
        background: rgba(255, 255, 255, 0.1);
        border: none;
        border-radius: 8px;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 14px;
        color: #fff;
        transition: all 0.2s ease;
    }
    
    .mobile-dropdown-toggle:hover {
        background: rgba(255, 255, 255, 0.2);
        transform: scale(1.05);
    }
    
    .mobile-dropdown-toggle:active {
        transform: scale(0.95);
    }
    
    /* Mobile dropdown menu - ORANGE BACKGROUND #f48931 */
    .nav-menu .dropdown-menu {
        position: static;
        float: none;
        width: 100%;
        box-shadow: none;
        padding-left: 20px;
        margin-top: 0;
        background: #f48931 !important;
        border: none;
        border-radius: 0;
        display: none;
        margin-bottom: 5px;
    }
    
    .nav-menu .dropdown.show > .dropdown-menu {
        display: block;
        animation: fadeSlide 0.2s ease;
    }
    
    /* Mobile dropdown items - ORANGE BACKGROUND */
    .nav-menu .dropdown-menu .dropdown-item {
        padding: 12px 0 12px 15px !important;
        color: #ffffff !important;
        font-size: 14px;
        display: block;
        width: 100%;
        transition: all 0.2s ease;
        background: transparent;
    }
    
    /* Mobile dropdown item hover */
    .nav-menu .dropdown-menu .dropdown-item:hover {
        background: rgba(0, 0, 0, 0.1);
        color: #ffffff !important;
        padding-left: 20px !important;
    }
    
    /* Mobile active dropdown item */
    .nav-menu .dropdown-menu .current-menu-item > .dropdown-item,
    .nav-menu .dropdown-menu .current-page-item > .dropdown-item {
        background: rgba(0, 0, 0, 0.15);
        color: #ffffff !important;
        border-left: 3px solid #ffffff;
        padding-left: 20px !important;
        font-weight: 600;
    }
    
    .btn-safari,
    .btn-safari--whatsapp {
        width: 100%;
        text-align: center;
        margin-top: 10px;
        justify-content: center;
    }
    
    body.mobile-menu-open {
        overflow: hidden;
    }
}

@media (max-width: 480px) {
    .header-right {
        width: 100%;
        max-width: 100%;
    }
    
    .nav-menu .nav-link {
        font-size: 15px;
        padding: 12px 0 !important;
    }
    
    .mobile-dropdown-toggle {
        width: 44px;
        height: 44px;
    }
}

/* ========================================
   5. CTA BUTTONS
   — Original gold + WhatsApp green
======================================== */

.btn-safari {
    background: #fabc1e;
    color: #1a6b4b !important;
    padding: 10px 24px;
    border-radius: 50px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.88rem;
    flex-shrink: 0;
    text-decoration: none;
    text-align: center;
    border: 2px solid #fabc1e;
    position: relative;
    overflow: hidden;
    z-index: 1;
    line-height: 1.3;
}

.btn-safari::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: var(--transition);
    z-index: -1;
}

.btn-safari:hover::before {
    left: 0;
}

.btn-safari:hover {
    background: transparent;
    color: #fff !important;
    border-color: #fff;
    transform: translateY(-2px);
}

/* ── WhatsApp Variant ── */
.btn-safari--whatsapp {
    display: inline-flex !important;
    align-items: center;
    gap: 0.45rem;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: #fff !important;
    text-decoration: none;
    border: 2px solid transparent;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.88rem;
    font-weight: 700;
    flex-shrink: 0;
    border-radius: 50px;
    padding: 10px 24px;
    z-index: 1;
    line-height: 1.3;
}

.btn-safari--whatsapp::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
    z-index: -1;
}

.btn-safari--whatsapp:hover::before {
    left: 100%;
}

.btn-safari--whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(37, 211, 102, 0.6);
    color: #fff !important;
    border-color: transparent;
}

.btn-safari--whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px -5px rgba(37, 211, 102, 0.4);
}

.btn-safari--whatsapp .fa-whatsapp {
    font-size: 1.15em;
    transition: transform 0.3s ease;
}

.btn-safari--whatsapp:hover .fa-whatsapp {
    transform: scale(1.15);
}

/* Pulse ring on WhatsApp icon */
.btn-safari--whatsapp::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.9rem;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    animation: waPulse 2.5s ease-out infinite;
    pointer-events: none;
    z-index: 2;
}

@keyframes waPulse {
    0%   { transform: translate(-50%, -50%) scale(1); opacity: 0.8; }
    100% { transform: translate(-50%, -50%) scale(2.2); opacity: 0; }
}

.btn-safari--whatsapp:hover::after {
    animation: none;
    opacity: 0;
}

/* Mobile CTA Buttons */
@media (max-width: 1024px) {
    .btn-safari,
    .btn-safari--whatsapp {
        width: 100%;
        text-align: center;
        padding: 12px 20px;
        margin-top: 10px;
        justify-content: center;
    }

    .btn-safari--whatsapp::after {
        display: none;
    }
}

@media (max-width: 480px) {
    .btn-safari,
    .btn-safari--whatsapp {
        font-size: 0.82rem;
        padding: 10px 16px;
    }
}

/* ========================================
   6. HERO SECTION
======================================== */

.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.6)), 
                url('https://images.unsplash.com/photo-1547471080-7cc2caa01a7e?q=80&w=2000');
    min-height: 80vh;
    height: auto;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
    margin-top: 0;
}

/* Mobile hero background */
@media (max-width: 768px) {
    .hero-section {
        background-attachment: scroll;
        min-height: 60vh;
    }
}

@media (max-width: 480px) {
    .hero-section {
        min-height: 50vh;
    }
}

.hero-content {
    max-width: 800px;
    padding: var(--spacing-lg);
    animation: fadeInUp 0.8s ease;
    position: relative;
    z-index: 2;
}

.hero-badge {
    background: var(--accent);
    color: #000;
    padding: 5px 15px;
    border-radius: var(--border-radius-lg);
    font-weight: 700;
    font-size: 14px;
    margin-bottom: var(--spacing-lg);
    display: inline-block;
    letter-spacing: 1px;
}

.hero-content h1 {
    font-size: 52px;
    margin-bottom: var(--spacing-lg);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    font-family: var(--font-heading);
    line-height: 1.2;
}

/* Responsive hero text */
@media (max-width: 1024px) {
    .hero-content h1 {
        font-size: 42px;
    }
}

@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 34px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-badge {
        font-size: 12px;
    }
}

/* ========================================
   7. SEARCH FORM
======================================== */

.search-form-container {
    position: relative;
    z-index: 10;
    margin-top: -60px;
    margin-bottom: 60px;
}

@media (max-width: 768px) {
    .search-form-container {
        display: none !important;
    }
}

.search-box {
    background: var(--light-bg);
    padding: var(--spacing-xl);
    border-radius: var(--border-radius-md);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
    align-items: flex-end;
}

.search-group {
    flex: 1;
    min-width: 200px;
}

.search-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.search-group input,
.search-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    font-size: 16px;
    transition: var(--transition);
}

.search-group input:focus,
.search-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(26, 107, 75, 0.1);
}

/* ========================================
   8. SECTION TITLES
======================================== */

.section-title {
    text-align: center;
    margin: 0 auto 50px;
    max-width: 600px;
}

.section-title h2 {
    font-size: 36px;
    color: var(--primary);
    margin-bottom: var(--spacing-md);
    font-family: var(--font-heading);
    position: relative;
    display: inline-block;
    padding-bottom: var(--spacing-md);
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--accent);
}

.section-title p {
    color: var(--text-light);
    font-size: 18px;
}

/* Mobile section titles */
@media (max-width: 768px) {
    .section-title {
        margin-bottom: 30px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }
    
    .section-title p {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .section-title h2 {
        font-size: 24px;
    }
}

/* ========================================
   9. TABS SECTION
======================================== */

.tabs-wrapper {
    margin-bottom: 60px;
    background: var(--light-bg);
    padding: 50px 0;
}

@media (max-width: 768px) {
    .tabs-wrapper {
        padding: 30px 0;
        margin-bottom: 40px;
    }
}

.tab-nav {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-bottom: var(--spacing-2xl);
}

.tab-btn {
    background: var(--gray-bg);
    border: none;
    padding: 12px 30px;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: var(--transition);
    font-size: 16px;
    box-shadow: 0 2px 5px var(--shadow-light);
}

.tab-btn:hover {
    background: #e9e9e9;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 5px 15px rgba(26, 107, 75, 0.3);
}

/* Mobile tabs */
@media (max-width: 768px) {
    .tab-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .tab-btn {
        padding: 6px 15px;
        font-size: 13px;
    }
}

.tab-content {
    display: none;
    animation: fadeSlide 0.5s ease;
}

.tab-content.active {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--spacing-2xl);
    align-items: center;
}

@media (max-width: 1024px) {
    .tab-content.active {
        grid-template-columns: 1fr;
        gap: 25px;
    }
}

.tab-text h3 {
    font-size: 28px;
    color: var(--text-dark);
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-heading);
}

@media (max-width: 768px) {
    .tab-text h3 {
        font-size: 24px;
    }
}

.tab-text p {
    margin-bottom: var(--spacing-lg);
    color: #555;
    font-size: 17px;
    line-height: 1.8;
}

.tab-meta {
    background: var(--gray-bg);
    padding: 25px;
    border-radius: var(--border-radius-md);
    border-top: 4px solid var(--accent);
}

/* ========================================
   10. SAFARI SLIDER SECTION
======================================== */

.safari-slider-section {
    padding: 60px 0;
    position: relative;
}

@media (max-width: 768px) {
    .safari-slider-section {
        padding: 40px 0;
    }
}

/* Swiper Container */
.swiper {
    padding: 10px 0 60px !important;
    margin: 0 -10px;
    position: relative;
    overflow: hidden;
}

.swiper-slide {
    padding: 0 10px;
    height: auto;
}

/* Safari Card Styles */
.safari-card {
    background: var(--light-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    margin: 0;
}

.safari-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.card-img {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.card-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3));
    opacity: 0;
    transition: var(--transition);
}

.safari-card:hover .card-img::before {
    opacity: 1;
}

.card-location {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: var(--border-radius-lg);
    font-size: 12px;
    backdrop-filter: blur(5px);
    z-index: 1;
}

.card-duration {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #f39c12;
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 1;
}

.card-body {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
    color: var(--text-dark);
    transition: var(--transition);
    line-height: 1.3;
}

.safari-card:hover .card-title {
    color: var(--primary);
}

.card-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 5px;
}

.card-price span {
    font-size: 14px;
    color: #888;
    font-weight: 400;
}

.call-for-price {
    background: #fef3c7;
    color: #f59e0b;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    display: inline-block;
}

.card-desc {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: var(--spacing-lg);
    line-height: 1.5;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.feature-tag {
    font-size: 12px;
    color: #27ae60;
    background: #e8f5e9;
    padding: 4px 10px;
    border-radius: 15px;
}

.feature-tag i {
    margin-right: 5px;
    font-size: 10px;
}

/* Card Buttons */
.card-buttons {
    display: flex;
    gap: 12px;
    margin-top: 5px;
}

.btn-itinerary,
.btn-book {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-itinerary {
    background: transparent;
    color: #f39c12;
    border-color: #f39c12;
}

.btn-itinerary:hover {
    background: #f39c12;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

.btn-book {
    background: #f39c12;
    color: #fff;
    border-color: #f39c12;
}

.btn-book:hover {
    background: #e67e22;
    border-color: #e67e22;
    color: #fff;
    text-decoration: none;
    transform: translateY(-2px);
}

/* Mobile card adjustments */
@media (max-width: 768px) {
    .card-img {
        height: 200px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-price {
        font-size: 18px;
    }
    
    .card-desc {
        font-size: 13px;
    }
    
    .btn-itinerary,
    .btn-book {
        padding: 10px 12px;
        font-size: 12px;
    }
    
    .card-buttons {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .card-buttons {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn-itinerary,
    .btn-book {
        width: 100%;
    }
    
    .card-body {
        padding: 15px;
    }
}

/* ========================================
   11. SWIPER NAVIGATION BUTTONS
======================================== */

.swiper-button-next,
.swiper-button-prev {
    width: 48px !important;
    height: 48px !important;
    background: linear-gradient(135deg, #ffffff 0%, #fef9e6 100%) !important;
    border-radius: 50% !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(243, 156, 18, 0.25) inset !important;
    backdrop-filter: blur(4px) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    cursor: pointer !important;
    z-index: 30 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    top: 50% !important;
    margin-top: -24px !important;
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: #1a6b4b !important;
    transition: all 0.3s ease !important;
    text-shadow: 0 1px 1px rgba(255, 255, 255, 0.8) !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%) !important;
    transform: scale(1.1) !important;
    box-shadow: 0 10px 24px rgba(243, 156, 18, 0.35), 0 0 0 2px rgba(255, 255, 255, 0.5) inset !important;
}

.swiper-button-next:hover:after,
.swiper-button-prev:hover:after {
    color: #ffffff !important;
}

.swiper-button-prev {
    left: -16px !important;
}

.swiper-button-next {
    right: -16px !important;
}

.swiper-button-disabled,
.swiper-button-disabled:hover {
    opacity: 0.3 !important;
    transform: scale(0.95) !important;
    background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 100%) !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important;
}

.swiper-button-disabled:after,
.swiper-button-disabled:hover:after {
    color: #999 !important;
}

@media (max-width: 1280px) {
    .swiper-button-prev {
        left: -8px !important;
    }
    
    .swiper-button-next {
        right: -8px !important;
    }
}

@media (max-width: 1024px) {
    .swiper-button-prev {
        left: -4px !important;
    }
    
    .swiper-button-next {
        right: -4px !important;
    }
}

@media (max-width: 768px) {
    .swiper {
        padding-left: 5px !important;
        padding-right: 5px !important;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        width: 40px !important;
        height: 40px !important;
        margin-top: -20px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 15px !important;
    }
    
    .swiper-button-prev {
        left: 2px !important;
    }
    
    .swiper-button-next {
        right: 2px !important;
    }
}

@media (max-width: 480px) {
    .swiper-button-next,
    .swiper-button-prev {
        width: 34px !important;
        height: 34px !important;
        margin-top: -17px !important;
    }
    
    .swiper-button-next:after,
    .swiper-button-prev:after {
        font-size: 12px !important;
    }
    
    .swiper-button-prev {
        left: 0px !important;
    }
    
    .swiper-button-next {
        right: 0px !important;
    }
}

/* ========================================
   12. SWIPER PAGINATION
======================================== */

.swiper-pagination {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    text-align: center !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    z-index: 20 !important;
    pointer-events: auto !important;
}

.swiper-pagination-bullets {
    position: relative !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    margin: 0 auto !important;
}

.swiper-pagination-bullet {
    width: 10px !important;
    height: 10px !important;
    background-color: rgba(26, 107, 75, 0.4) !important;
    opacity: 1 !important;
    border-radius: 50% !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    display: inline-block !important;
    margin: 0 !important;
}

.swiper-pagination-bullet-active {
    background-color: #f39c12 !important;
    width: 12px !important;
    height: 12px !important;
    transform: scale(1.2) !important;
}

.swiper-pagination-bullet:hover {
    background-color: #e67e22 !important;
    transform: scale(1.15);
}

.swiper-pagination-clickable .swiper-pagination-bullet {
    cursor: pointer;
}

@media (max-width: 768px) {
    .swiper-pagination {
        bottom: 8px !important;
        gap: 8px !important;
    }
    
    .swiper-pagination-bullets {
        gap: 8px !important;
    }
    
    .swiper-pagination-bullet {
        width: 8px !important;
        height: 8px !important;
    }
    
    .swiper-pagination-bullet-active {
        width: 10px !important;
        height: 10px !important;
    }
}

@media (max-width: 480px) {
    .swiper-pagination {
        bottom: 5px !important;
        gap: 6px !important;
    }
    
    .swiper-pagination-bullets {
        gap: 6px !important;
    }
    
    .swiper-pagination-bullet {
        width: 7px !important;
        height: 7px !important;
    }
    
    .swiper-pagination-bullet-active {
        width: 9px !important;
        height: 9px !important;
    }
}

/* ========================================
   13. SINGLE SAFARI PAGE
======================================== */

.inner-page-featured-image {
    position: relative;
    width: 100%;
    height: 190px;
    overflow: hidden;
    background-color: #1a6b4b;
    margin-top: 0;
}

@media (max-width: 768px) {
    .inner-page-featured-image {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .inner-page-featured-image {
        height: 140px;
    }
}

.breadcrumbs-wrapper {
    background: #00a652 !important;
    border-bottom: 3px solid #f8bd1e !important;
    position: relative;
    z-index: 1;
}

.breadcrumbs .current {
    color: #fcfefc !important;
    font-weight: 500;
}

.safari-sidebar .booking-widget {
    position: sticky;
    top: 100px;
}

@media (max-width: 768px) {
    .safari-sidebar .booking-widget {
        top: 80px;
    }
}

@media (max-width: 480px) {
    .safari-sidebar .booking-widget {
        position: static;
        top: auto;
    }
}

.day-number {
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    background: #f1743a !important;
    display: inline-block;
    padding: 5px 12px;
    border-radius: 5px;
}

/* ========================================
   14. FOOTER
======================================== */

.site-footer {
    background: #00a652 !important;
    color: #fff;
    padding: 60px 0 0;
    margin-top: 60px;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 40px 0 0;
        margin-top: 40px;
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-2xl);
}

@media (max-width: 768px) {
    .footer-grid {
        gap: var(--spacing-xl);
    }
}

.footer-col h4 {
    color: #fabc1e !important;
    margin-bottom: 25px;
    font-size: 18px;
    position: relative;
    padding-bottom: 12px;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #fff !important;
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col li {
    margin-bottom: 12px;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.8);
    transition: var(--transition);
}

.footer-col a:hover {
    color: #fabc1e;
    padding-left: 5px;
}

.footer-col p {
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom {
    text-align: center;
    padding: 25px;
    margin-top: var(--spacing-2xl);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

@media (max-width: 768px) {
    .footer-bottom {
        padding: 20px;
        margin-top: 30px;
        font-size: 12px;
    }
}

.newsletter-signup {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.newsletter-text {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 12px;
}

.newsletter-form {
    display: flex;
    gap: 8px;
}

.newsletter-form input {
    flex: 1;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 30px;
    padding: 10px 15px;
    color: #ffffff;
    font-size: 13px;
    outline: none;
    transition: var(--transition);
}

.newsletter-form input:focus {
    border-color: #fabc1e;
}

.newsletter-form button {
    background: var(--accent);
    border: none;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    color: #ffffff;
}

.newsletter-form button:hover {
    background: var(--accent-dark);
    transform: scale(1.05);
}

/* ========================================
   15. FILTER CONTAINER
======================================== */

.safari-filter-container {
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 8px;
}

.filter-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #333;
}

.country-filter-dropdown {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

.country-filter-dropdown:hover {
    border-color: var(--primary);
}

/* Toggle Switch */
.fallback-toggle-wrapper {
    display: flex;
    align-items: center;
}

.switch-label {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.toggle-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #555;
}

.fallback-toggle-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    background-color: #ccc;
    border-radius: 24px;
    transition: 0.3s;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    border-radius: 50%;
    transition: 0.3s;
}

.fallback-toggle-input:checked + .toggle-slider {
    background-color: #4CAF50;
}

.fallback-toggle-input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Mobile filter adjustments */
@media (max-width: 768px) {
    .filter-wrapper {
        flex-direction: column;
        align-items: stretch;
    }
    
    .country-filter-dropdown {
        width: 100%;
    }
    
    .fallback-toggle-wrapper {
        justify-content: center;
    }
}

/* ========================================
   16. PARTNERS SECTION
======================================== */

.partners {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
}

.partner-logos {
    display: flex;
    overflow: hidden;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
}

.partner-item {
    flex: 0 0 25%;
    padding: 10px;
    box-sizing: border-box;
    transition: transform 0.5s ease-in-out;
}

.partner-item:hover {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .partner-item {
        flex: 0 0 33.333%;
    }
}

@media (max-width: 480px) {
    .partner-item {
        flex: 0 0 50%;
    }
}

.partner-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* ========================================
   17. UTILITY CLASSES
======================================== */

.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.mt-1 { margin-top: var(--spacing-sm); }
.mt-2 { margin-top: var(--spacing-lg); }
.mt-3 { margin-top: var(--spacing-xl); }
.mb-1 { margin-bottom: var(--spacing-sm); }
.mb-2 { margin-bottom: var(--spacing-lg); }
.mb-3 { margin-bottom: var(--spacing-xl); }
.hidden { display: none !important; }

/* ========================================
   18. ANIMATIONS
======================================== */

@keyframes fadeSlide {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   19. ACCESSIBILITY
======================================== */

:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Card title link */
.card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.card-title a:hover {
    color: var(--primary);
}

/* View All Button */
.btn-view-all:hover {
    background: var(--primary) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* Empty state styling */
.swiper-slide .card-body i.fa-safari {
    opacity: 0.5;
}

.site-footer a,
.footer-menu a,
.contact-info a {
    color: #ffff !important;
}

/* ========================================
   20. PRINT STYLES
======================================== */

@media print {
    .site-header,
    .search-form-container,
    .tabs-wrapper,
    .safari-slider-section,
    .site-footer {
        display: none !important;
    }
    
    body {
        background: white;
        color: black;
        font-size: 12pt;
        padding-top: 0;
    }
    
    .container {
        width: 100%;
        max-width: none;
        padding: 0;
        margin: 0;
    }
    
    @page {
        margin: 2cm;
    }
}
