/* ── Tour Itineraries ────────────────────────────────────── */

.jacana-ti-section {
    background: var(--jacana-savannah, #fffae4);
    padding: 120px 0 140px;
    position: relative;
    overflow: hidden;
}

.jacana-ti-section::before {
    content: "";
    position: absolute;
    bottom: -80px;
    right: -80px;
    width: 480px;
    height: 480px;
    background: radial-gradient(circle, rgba(219, 151, 81, 0.08), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.jacana-ti-section::after {
    content: "";
    position: absolute;
    top: -60px;
    left: -60px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(157, 203, 223, 0.06), transparent 65%);
    pointer-events: none;
    z-index: 0;
}

.jacana-ti-inner {
    max-width: var(--max-width, 1180px);
    margin: 0 auto;
    padding: 0 var(--content-pad, 48px);
    position: relative;
    z-index: 1;
}

/* ── Header — asymmetric editorial split ─────────────────── */
.jacana-ti-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 80px;
    align-items: end;
    margin-bottom: 72px;
}

.jacana-ti-header-left {
    display: flex;
    flex-direction: column;
}

.jacana-ti-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-transform: uppercase;
    letter-spacing: 0.34em;
    font-size: 10px;
    font-weight: 700;
    color: var(--jacana-dunes, #db9751);
    margin-bottom: 18px;
    border-left: 2px solid var(--jacana-dunes, #db9751);
    padding-left: 14px;
}

.jacana-ti-header h2 {
    font-family: "Cormorant Garamond", "Palatino Linotype", serif;
    color: var(--jacana-earth, #2d2416);
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
    letter-spacing: -0.01em;
    margin: 0;
}

.jacana-ti-header-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 6px;
}

.jacana-ti-intro {
    font-size: 17px;
    line-height: 1.75;
    color: rgba(45, 36, 22, 0.72);
    margin: 0 0 28px;
    max-width: 44ch;
}

/* Trust line under intro */
.jacana-ti-trust {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(45, 36, 22, 0.38);
}

.jacana-ti-trust-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--jacana-dunes, #db9751);
    opacity: 0.5;
    flex-shrink: 0;
}

/* ── 4-column grid ───────────────────────────────────────── */
.jacana-ti-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    align-items: stretch;
}

/* ── Card — full-image cinematic ─────────────────────────── */
.jacana-ti-card {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 2 / 3;
    box-shadow:
        0 8px 28px rgba(45, 36, 22, 0.10),
        0 2px 6px  rgba(45, 36, 22, 0.06);
    transition:
        transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
        box-shadow 0.45s ease;
}

.jacana-ti-card:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 24px 56px rgba(45, 36, 22, 0.16),
        0 6px 14px  rgba(45, 36, 22, 0.08);
}

/* ── Full-card link ──────────────────────────────────────── */
.jacana-ti-link {
    display: block;
    position: absolute;
    inset: 0;
    text-decoration: none;
    color: inherit;
}

/* ── Media fills entire card ─────────────────────────────── */
.jacana-ti-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.jacana-ti-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    object-position: center;
    display: block;
    filter: saturate(0.88) brightness(0.92);
    transition:
        transform 1.1s cubic-bezier(0.2, 1, 0.3, 1),
        filter 0.7s ease;
}

.jacana-ti-card:hover .jacana-ti-photo {
    transform: scale(1.08);
    filter: saturate(1.0) brightness(0.97);
}

/* Placeholder when no image */
.jacana-ti-placeholder {
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, #d4c6b2, #c2b49e);
    display: flex;
    align-items: center;
    justify-content: center;
}

.jacana-ti-placeholder span {
    font-family: "Cormorant Garamond", "Palatino Linotype", serif;
    font-size: 88px;
    font-style: italic;
    font-weight: 600;
    color: rgba(45, 36, 22, 0.16);
    line-height: 1;
    user-select: none;
}

/* ── Cinematic overlay ───────────────────────────────────── */
.jacana-ti-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg,
            rgba(8, 5, 3, 0.28)  0%,
            transparent          28%,
            transparent          38%,
            rgba(8, 5, 3, 0.65)  70%,
            rgba(8, 5, 3, 0.88)  100%
        );
    pointer-events: none;
    z-index: 1;
    transition: opacity 0.4s ease;
}

.jacana-ti-card:hover .jacana-ti-overlay {
    opacity: 1.0;
}

/* ── Oshiwambo stripe ────────────────────────────────────── */
.jacana-ti-stripe {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    z-index: 4;
    background: repeating-linear-gradient(
        90deg,
        var(--oshi-pink, #e6007e)      0px,  var(--oshi-pink, #e6007e)      7px,
        var(--oshi-black, #000)         7px,  var(--oshi-black, #000)         9px,
        var(--oshi-red, #cc0000)        9px,  var(--oshi-red, #cc0000)       14px,
        var(--oshi-dark-pink, #800040) 14px,  var(--oshi-dark-pink, #800040) 18px,
        var(--oshi-black, #000)        18px,  var(--oshi-black, #000)        20px
    );
    opacity: 0;
    transition: opacity 0.35s ease;
}

.jacana-ti-card:hover .jacana-ti-stripe {
    opacity: 1;
}

/* ── Top badges ──────────────────────────────────────────── */
.jacana-ti-top {
    position: absolute;
    top: 18px;
    left: 18px;
    right: 18px;
    z-index: 3;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.jacana-ti-badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 9.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    white-space: nowrap;
}

.jacana-ti-badge--type {
    background: rgba(255, 250, 228, 0.16);
    border: 1px solid rgba(255, 250, 228, 0.28);
    color: rgba(255, 250, 228, 0.90);
}

.jacana-ti-badge--duration {
    background: rgba(219, 151, 81, 0.22);
    border: 1px solid rgba(219, 151, 81, 0.45);
    color: var(--jacana-dunes, #db9751);
}


/* ── Bottom content overlay ──────────────────────────────── */
.jacana-ti-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px 22px 24px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0;
    transform: translateY(4px);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.jacana-ti-card:hover .jacana-ti-content {
    transform: translateY(0);
}

.jacana-ti-name {
    font-family: "Cormorant Garamond", "Palatino Linotype", serif;
    font-size: clamp(17px, 1.7vw, 22px);
    font-weight: 600;
    line-height: 1.2;
    color: rgba(255, 250, 228, 0.96) !important;
    margin: 0 0 14px;
    letter-spacing: 0.01em;
}

/* ── CTA — reveals on hover ──────────────────────────────── */
.jacana-ti-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--jacana-dunes, #db9751);
    text-decoration: none;
    opacity: 0;
    transform: translateY(6px);
    transition:
        opacity 0.32s ease,
        transform 0.32s ease,
        gap 0.22s ease;
    cursor: pointer;
}

.jacana-ti-card:hover .jacana-ti-cta {
    opacity: 1;
    transform: translateY(0);
}


.jacana-ti-arrow {
    display: inline-block;
    transition: transform 0.22s ease;
}

.jacana-ti-cta:not(.jacana-ti-cta--soon):hover .jacana-ti-arrow {
    transform: translateX(4px);
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
    .jacana-ti-header {
        gap: 24px 48px;
    }
}

@media (max-width: 900px) {
    .jacana-ti-header {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 56px;
    }

    .jacana-ti-intro {
        max-width: 100%;
    }

    .jacana-ti-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 600px) {
    /* Show CTA always on touch */
    .jacana-ti-cta {
        opacity: 1;
        transform: translateY(0);
    }

    .jacana-ti-name {
        font-size: clamp(15px, 4vw, 20px);
    }
}

@media (max-width: 540px) {
    .jacana-ti-section {
        padding: 80px 0 96px;
    }

    .jacana-ti-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jacana-ti-header {
        margin-bottom: 40px;
    }
}

@media (max-width: 400px) {
    .jacana-ti-grid {
        grid-template-columns: 1fr;
    }
}
