/* ============================================
   SAFARIFIND V3 - Modern Search Theme
   Clean, Functional, Booking-Focused
   ============================================ */

:root {
    --primary-blue: #2563EB;
    --primary-dark: #1E40AF;
    --accent-terracotta: #8B5E3C;
    --accent-orange: #F97316;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --success: #10B981;
    --warning: #F59E0B;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--gray-50);
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.container-v3 {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================
   HEADER V3
   ============================================ */
.header-v3 {
    background-color: var(--white);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-v3 h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    font-family: 'Playfair Display', serif;
}

.logo-v3 span {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: block;
    margin-top: -0.25rem;
    letter-spacing: 1px;
}

.nav-v3 {
    display: flex;
    gap: 2rem;
}

.nav-v3 a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    transition: color 0.2s ease;
}

.nav-v3 a:hover {
    color: var(--primary-blue);
}

.header-actions-v3 {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.language-selector {
    display: flex;
    gap: 0.5rem;
    margin-right: 1rem;
}

.language-selector .lang-link {
    padding: 0.5rem 0.75rem;
    border: 2px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: var(--white);
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    color: var(--gray-700);
}

.language-selector .lang-link:hover {
    border-color: var(--primary-blue);
    background-color: var(--gray-50);
}

.language-selector .lang-link.active {
    border-color: var(--primary-blue);
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid var(--gray-300);
    background: var(--white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.2s ease;
}

.btn-icon:hover {
    border-color: var(--primary-blue);
    background: var(--gray-50);
}

.btn-v3 {
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary-v3 {
    background-color: var(--primary-blue);
    color: var(--white);
}

.btn-primary-v3:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(37, 99, 235, 0.2);
}

.btn-outline-v3 {
    background-color: transparent;
    border: 1px solid var(--gray-300);
    color: var(--gray-700);
}

.btn-outline-v3:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-700);
}

/* ============================================
   HERO V3
   ============================================ */
.hero-v3 {
    background: linear-gradient(135deg, var(--primary-blue) 0%, #1E40AF 100%);
    padding: 4rem 0 6rem;
    color: var(--white);
}

.hero-content-v3 {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.hero-title-v3 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
}

.hero-subtitle-v3 {
    font-size: 1.25rem;
    margin-bottom: 3rem;
    opacity: 0.95;
}

/* Search Card */
.search-card {
    background-color: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    margin-bottom: 2rem;
}

.search-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--gray-200);
}

.search-tab {
    padding: 0.75rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s ease;
}

.search-tab.active {
    color: var(--primary-blue);
    border-bottom-color: var(--primary-blue);
}

.search-tab:hover {
    color: var(--primary-blue);
}

.search-form {
    color: var(--gray-800);
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr auto;
    gap: 1rem;
    margin-bottom: 1rem;
}

.search-field-v3 {
    display: flex;
    flex-direction: column;
}

.search-field-v3 label {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--gray-700);
}

.search-field-v3 select {
    padding: 0.75rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    font-size: 0.9375rem;
    background-color: var(--white);
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-field-v3 select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn-search-v3 {
    background-color: var(--accent-terracotta);
    color: var(--white);
    padding: 0.75rem 2rem;
    align-self: flex-end;
    font-weight: 700;
}

.btn-search-v3:hover {
    background-color: #6D4A2F;
}

.quick-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
}

.quick-filters span {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
}

.filter-tag {
    padding: 0.5rem 1rem;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-300);
    border-radius: 20px;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-tag:hover {
    background-color: var(--primary-blue);
    color: var(--white);
    border-color: var(--primary-blue);
}

.trust-badges-v3 {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.badge-v3 {
    font-size: 0.875rem;
    opacity: 0.9;
}

.badge-v3 strong {
    font-size: 1.125rem;
    margin-right: 0.25rem;
}

/* ============================================
   POPULAR DESTINATIONS V3
   ============================================ */
.popular-destinations-v3 {
    padding: 4rem 0;
    background-color: var(--white);
}

.section-header-v3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header-v3 h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-900);
}

.link-v3 {
    color: var(--primary-blue);
    font-weight: 600;
    font-size: 0.9375rem;
}

.link-v3:hover {
    text-decoration: underline;
}

.destinations-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.destination-card-v3 {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    background-color: var(--white);
}

.destination-card-v3:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

.destination-card-v3 img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.destination-info {
    padding: 1.25rem;
}

.destination-info h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
    color: var(--gray-900);
}

.destination-info p {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: 0.75rem;
}

.price-from {
    display: inline-block;
    background-color: var(--gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-terracotta);
}

/* ============================================
   FEATURED TOURS V3
   ============================================ */
.featured-tours-v3 {
    padding: 4rem 0;
    background-color: var(--gray-50);
}

.filter-controls {
    display: flex;
    gap: 1rem;
}

.filter-select {
    padding: 0.625rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: 8px;
    background-color: var(--white);
    font-size: 0.875rem;
    cursor: pointer;
}

.tours-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

/* Filters Sidebar */
.filters-sidebar {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 12px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-group {
    margin-bottom: 2rem;
}

.filter-group h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.price-inputs {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.price-inputs input {
    flex: 1;
    min-width: 70px;
    max-width: 100px;
    padding: 0.625rem;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    font-size: 0.875rem;
}

.price-inputs span {
    color: var(--gray-400);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    cursor: pointer;
    font-size: 0.9375rem;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-secondary-v3 {
    background-color: var(--gray-800);
    color: var(--white);
}

.btn-secondary-v3:hover {
    background-color: var(--gray-900);
}

/* Tours Grid */
.tours-grid-v3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.tour-card-v3 {
    background-color: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.tour-card-v3:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
    transform: translateY(-4px);
}

.tour-image-v3 {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.tour-image-v3 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tour-card-v3:hover .tour-image-v3 img {
    transform: scale(1.05);
}

.wishlist-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.wishlist-btn:hover {
    background-color: var(--accent-terracotta);
    color: var(--white);
}

.tour-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    background-color: var(--accent-terracotta);
    color: var(--white);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.tour-badge.special {
    background-color: var(--accent-orange);
}

.tour-content-v3 {
    padding: 1.5rem;
}

.tour-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.tour-duration {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
}

.tour-rating {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--warning);
}

.tour-content-v3 h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.tour-description {
    font-size: 0.875rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.tour-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.tour-features span {
    font-size: 0.75rem;
    background-color: var(--gray-100);
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    color: var(--gray-700);
}

.tour-footer-v3 {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.tour-price-v3 {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.price-amount {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary-blue);
    line-height: 1;
}

.price-unit {
    font-size: 0.75rem;
    color: var(--gray-500);
}

/* ============================================
   WHY US V3
   ============================================ */
.why-us-v3 {
    padding: 5rem 0;
    background-color: var(--white);
}

.why-us-content {
    text-align: center;
    max-width: 1200px;
    margin: 0 auto;
}

.why-us-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.subtitle {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.benefit-card {
    padding: 2rem;
    background-color: var(--gray-50);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.benefit-card:hover {
    background-color: var(--white);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.benefit-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--gray-900);
}

.benefit-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.6;
}

/* ============================================
   CTA BANNER V3
   ============================================ */
.cta-banner-v3 {
    background: linear-gradient(135deg, var(--accent-terracotta) 0%, #6D4A2F 100%);
    padding: 4rem 0;
    color: var(--white);
}

.cta-content-v3 {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content-v3 h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content-v3 p {
    font-size: 1.125rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-large-v3 {
    padding: 1rem 2.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.btn-outline-light-v3 {
    background-color: transparent;
    border: 2px solid var(--white);
    color: var(--white);
}

.btn-outline-light-v3:hover {
    background-color: var(--white);
    color: var(--accent-terracotta);
}

/* ============================================
   FOOTER V3
   ============================================ */
.footer-v3 {
    background-color: var(--gray-900);
    color: var(--white);
    padding: 4rem 0 2rem;
}

.footer-grid-v3 {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    color: var(--primary-blue);
}

.footer-col-v3 p {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
}

.footer-rating {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.stars {
    color: var(--warning);
    font-size: 1.125rem;
}

.footer-rating span:last-child {
    font-size: 0.875rem;
    color: var(--gray-400);
}

.footer-col-v3 h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

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

.footer-col-v3 li {
    margin-bottom: 0.75rem;
}

.footer-col-v3 a {
    color: var(--gray-400);
    font-size: 0.9375rem;
}

.footer-col-v3 a:hover {
    color: var(--primary-blue);
}

.footer-bottom-v3 {
    border-top: 1px solid var(--gray-800);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom-v3 p {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-links-v3 {
    display: flex;
    gap: 2rem;
}

.footer-links-v3 a {
    color: var(--gray-400);
    font-size: 0.875rem;
}

.footer-links-v3 a:hover {
    color: var(--primary-blue);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .destinations-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .tours-layout {
        grid-template-columns: 1fr;
    }

    .filters-sidebar {
        position: static;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid-v3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-v3,
    .header-actions-v3 .btn-outline-v3 {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-title-v3 {
        font-size: 2.5rem;
    }

    .search-row {
        grid-template-columns: 1fr;
    }

    .search-tab {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .trust-badges-v3 {
        flex-direction: column;
        gap: 1rem;
    }

    .destinations-row {
        grid-template-columns: 1fr;
    }

    .tours-grid-v3 {
        grid-template-columns: 1fr;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .cta-content-v3 h2 {
        font-size: 2rem;
    }

    .cta-actions {
        flex-direction: column;
    }

    .btn-large-v3 {
        width: 100%;
    }

    .footer-grid-v3 {
        grid-template-columns: 1fr;
    }

    .footer-bottom-v3 {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links-v3 {
        flex-direction: column;
        gap: 0.5rem;
    }
}
