/* =========================================
   1. Variables & Reset (Premium Wild Theme)
   ========================================= */
:root {
    --color-primary: #D9381E;
    /* Deep Safari Red */
    --color-primary-dark: #9e2a16;
    --color-dark: #1c1917;
    /* Warm Black */
    --color-earth: #78350f;
    /* Earthy Brown */
    --color-sand: #f5f5f4;
    /* Warm Gray/Sand */
    --color-white: #ffffff;
    --color-surface: #ffffff;

    --font-heading: 'Playfair Display', serif;
    /* Elegant Serif */
    --font-body: 'Inter', sans-serif;

    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;

    --shadow-soft: 0 10px 40px -10px rgba(0, 0, 0, 0.08);
    --shadow-card: 0 20px 40px -5px rgba(0, 0, 0, 0.1);
    --shadow-float: 0 30px 60px -10px rgba(0, 0, 0, 0.15);
}

/* Import Fonts if not already present */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

body {
    font-family: var(--font-body);
    color: var(--color-dark);
    background-color: var(--color-sand);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
}

/* =========================================
   2. Hero Section (Immersive)
   ========================================= */
.safari-hero-v3 {
    position: relative;
    height: 60vh;
    /* Increased slightly for better spacing */
    min-height: 600px;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 0;
    display: flex;
    align-items: flex-end;
    /* Keep bottom alignment */
    color: var(--color-white);
    overflow: hidden;
    padding-top: 60px;
    /* Reduced further to pull hero content closer to the header */
    padding-bottom: 44px;
}

.safari-hero-v3__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    transition: transform 10s ease;
    z-index: 0;
    /* Ensure it is behind content */
}

.safari-hero-v3:hover .safari-hero-v3__bg {
    transform: scale(1);
}

.safari-hero-v3__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(28, 25, 23, 0.9) 0%, rgba(28, 25, 23, 0.5) 50%, rgba(28, 25, 23, 0.3) 100%);
    /* Darker overlay for better text visibility */
    z-index: 1;
}

.safari-hero-v3__content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 40px;
    /* Removed white box style to simplify and fix "mess" - making it clean text on image */
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    color: var(--color-white);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.safari-breadcrumbs {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: flex;
    gap: 8px;
    color: var(--color-white);
    /* White text */
}

.safari-hero-v3__badges {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.badge-red {
    background: var(--color-primary);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(217, 56, 30, 0.4);
}

.badge-dark {
    background: rgba(255, 255, 255, 0.2);
    /* Glassy badge */
    backdrop-filter: blur(5px);
    color: white;
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.safari-hero-v3__title {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 1000px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    color: var(--color-white);
}

.safari-hero-v3__excerpt {
    font-family: var(--font-body);
    font-size: 1.15rem;
    max-width: 700px;
    margin-bottom: 32px;
    opacity: 0.9;
    line-height: 1.7;
    font-weight: 400;
    color: var(--color-white);
}

.safari-hero-v3__actions {
    display: flex;
    gap: 20px;
}

.btn-red-pill {
    background: var(--color-primary);
    color: white;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(217, 56, 30, 0.3);
    font-size: 1rem;
    letter-spacing: 0.02em;
}

.btn-red-pill:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(217, 56, 30, 0.4);
    background: var(--color-primary-dark);
    color: white;
}

.btn-dark-pill {
    background: var(--color-dark);
    color: white;
    padding: 16px 40px;
    border-radius: 100px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid var(--color-dark);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-dark-pill:hover {
    background: transparent;
    color: var(--color-dark);
    transform: translateY(-4px);
}

/* Scroll Indicator */
.safari-scroll-indicator {
    position: absolute;
    bottom: 110px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    animation: bounce 2s infinite;
    z-index: 10;
}

.safari-scroll-indicator i {
    font-size: 1.2rem;
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    40% {
        transform: translateX(-50%) translateY(-10px);
    }

    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* =========================================
   3. Main Layout & Content
   ========================================= */
.safari-layout-v3 {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 60px;
    max-width: 1300px;
    margin: 60px auto 80px;
    /* Positive margin, no overlap */
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.safari-main-content {
    background: var(--color-surface);
    border-radius: var(--radius-lg);
    padding: 60px;
    box-shadow: var(--shadow-float);
}

.safari-section-v3 {
    margin-bottom: 80px;
}

.section-title-v3 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 40px;
    color: var(--color-dark);
    position: relative;
    padding-bottom: 20px;
}

.section-title-v3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 80px;
    height: 4px;
    background: var(--color-primary);
    border-radius: 2px;
}

.section-body-v3 {
    font-size: 1.1rem;
    color: #4b5563;
    line-height: 1.8;
}

/* =========================================
   4. Highlights (Organic Grid)
   ========================================= */
.highlights-grid-v3 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.highlight-box {
    background: #fff;
    padding: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: flex-start;
    gap: 20px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.highlight-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
    border-color: rgba(0, 0, 0, 0.1);
}

.highlight-box i {
    color: var(--color-primary);
    font-size: 2rem;
    background: rgba(217, 56, 30, 0.1);
    padding: 12px;
    border-radius: 12px;
}

.highlight-copy {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.highlight-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-dark);
    line-height: 1.4;
}

.highlight-chip {
    width: 24px;
    height: 4px;
    border-radius: 2px;
    background-color: var(--color-primary);
}

/* =========================================
   5. Itinerary (Elegant Timeline)
   ========================================= */
.section-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 20px;
}

.section-header-flex .section-title-v3 {
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-header-flex .section-title-v3::after {
    display: none;
}

.duration-text {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    background: rgba(217, 56, 30, 0.1);
    padding: 8px 16px;
    border-radius: 100px;
}

.itinerary-timeline {
    position: relative;
    padding-left: 40px;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: #e5e7eb;
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 60px;
}

.timeline-badge {
    position: absolute;
    left: -56px;
    top: 0;
    background: var(--color-dark);
    color: white;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

.timeline-content {
    background: #fff;
    border: 1px solid #f3f4f6;
    border-radius: var(--radius-md);
    padding: 32px;
    box-shadow: var(--shadow-soft);
    transition: all 0.3s ease;
}

.timeline-content:hover {
    box-shadow: var(--shadow-card);
    transform: translateX(5px);
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.timeline-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-dark);
    margin: 0;
    flex: 1;
}

.timeline-pill {
    background: #f3f4f6;
    color: #4b5563;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 100px;
    letter-spacing: 0.05em;
}

.timeline-desc {
    font-size: 1rem;
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 24px;
}

.timeline-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
}

.meta-group {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.meta-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-dark);
}

/* =========================================
   6. Inclusions & Exclusions
   ========================================= */
.inclusions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 60px;
    background: #f9fafb;
    padding: 40px;
    border-radius: var(--radius-md);
}

.subsection-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    color: var(--color-dark);
}

.check-list li,
.cross-list li {
    font-size: 1rem;
    margin-bottom: 16px;
    padding-left: 8px;
}

.check-list i {
    color: #10b981;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px;
    border-radius: 50%;
    font-size: 1rem;
}

.cross-list i {
    color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 4px;
    border-radius: 50%;
    font-size: 1rem;
}

/* =========================================
   7. Sidebar (Sticky Booking Card)
   ========================================= */
.safari-sidebar-v3 {
    position: sticky;
    top: 40px;
    height: fit-content;
}

.booking-card-dark {
    background: #111827;
    color: white;
    border-radius: var(--radius-lg);
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-card-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.4;
    pointer-events: none;
}

.booking-card__header {
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--color-primary);
    margin-bottom: 12px;
    font-weight: 700;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.price-per {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.booking-card__details {
    background: transparent;
    padding: 0;
    margin-bottom: 32px;
    position: relative;
    z-index: 2;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
    padding-bottom: 20px;
}

.detail-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-item .label {
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

.detail-item .value {
    color: white;
    font-size: 1rem;
    font-weight: 500;
}

.btn-red-block {
    width: 100%;
    background: var(--color-primary);
    color: white;
    padding: 18px;
    border: none;
    border-radius: 100px;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
    box-shadow: 0 10px 20px rgba(217, 56, 30, 0.3);
}

.btn-red-block:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(217, 56, 30, 0.4);
    color: white;
}

.btn-dark-outline-block {
    width: 100%;
    background: transparent;
    color: white;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: block;
    text-decoration: none;
}

.btn-dark-outline-block:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: white;
    color: white;
}

.booking-card__info {
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    position: relative;
    z-index: 2;
}

.info-item {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    align-items: center;
}

.info-item i {
    color: var(--color-primary);
    font-size: 1.5rem;
    background: rgba(217, 56, 30, 0.1);
    padding: 8px;
    border-radius: 50%;
}

.info-item strong {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    text-transform: uppercase;
    display: block;
}

.info-item span {
    color: white;
    font-size: 1rem;
    font-weight: 600;
}

/* =========================================
   8. Responsive
   ========================================= */
@media (max-width: 1024px) {
    .safari-layout-v3 {
        grid-template-columns: 1fr;
        padding: 0 24px;
        margin-top: -40px;
    }

    .safari-sidebar-v3 {
        position: static;
        margin-top: 60px;
    }

    .safari-hero-v3__title {
        font-size: 3.5rem;
    }
}

@media (max-width: 768px) {
    .highlights-grid-v3 {
        grid-template-columns: 1fr;
    }

    .inclusions-row {
        grid-template-columns: 1fr;
    }

    .safari-hero-v3 {
        height: 70vh;
    }

    .safari-main-content {
        padding: 32px;
    }
}

/* =========================================
   9. Archive Pages (Mind-Blowing Grid)
   ========================================= */
.safari-archive-grid-v3 {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 40px;
    max-width: 1300px;
    margin: -100px auto 80px;
    /* Overlap hero */
    padding: 0 40px;
    position: relative;
    z-index: 10;
}

.safari-card-v3 {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.safari-card-v3:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-card);
}

.safari-card-v3__thumb {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.safari-card-v3__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.safari-card-v3:hover .safari-card-v3__thumb img {
    transform: scale(1.1);
}

.safari-card-v3__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 100%);
    opacity: 0.6;
}

.safari-card-v3__body {
    padding: 32px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.safari-card-v3__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.safari-card-v3__badge {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 100px;
    background: #f3f4f6;
    color: #4b5563;
}

.safari-card-v3__badge--primary {
    background: rgba(217, 56, 30, 0.1);
    color: var(--color-primary);
}

.safari-card-v3__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
    line-height: 1.3;
}

.safari-card-v3__title a {
    color: var(--color-dark);
    text-decoration: none;
    transition: color 0.3s ease;
}

.safari-card-v3__title a:hover {
    color: var(--color-primary);
}

.safari-card-v3__excerpt {
    font-size: 1rem;
    color: #6b7280;
    line-height: 1.6;
    margin-bottom: 24px;
    flex-grow: 1;
}

.safari-card-v3__footer {
    padding-top: 20px;
    border-top: 1px solid #f3f4f6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.safari-card-v3__price {
    font-weight: 700;
    color: var(--color-dark);
    font-size: 1.1rem;
}

.safari-card-v3__link {
    font-weight: 600;
    color: var(--color-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.safari-card-v3__link i {
    transition: transform 0.3s ease;
}

.safari-card-v3__link:hover i {
    transform: translateX(4px);
}

@media (max-width: 768px) {
    .safari-archive-grid-v3 {
        grid-template-columns: 1fr;
        padding: 0 24px;
        margin-top: -40px;
    }
}