/* Homepage - Wild Heritage + Island Luxe */

#hd #a4 {
    background: var(--accent);
    color: #3d1f0a;
    font-weight: 600;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    width: 100%;
    height: 88svh;
    min-height: 420px;
    max-height: 920px;
    overflow: hidden;
    background: var(--ink-deep);
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 50% at 20% 80%, rgba(232, 192, 122, .22), transparent 55%),
        radial-gradient(ellipse 60% 40% at 85% 20%, rgba(26, 171, 232, .18), transparent 50%);
    animation: mistDrift 14s ease-in-out infinite alternate;
}

@keyframes mistDrift {
    from { opacity: .7; transform: scale(1); }
    to { opacity: 1; transform: scale(1.05); }
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-video,
.hero-fallback {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-fallback {
    background-size: cover;
    background-position: center;
    animation: kenBurns 28s ease-in-out infinite alternate;
    transform-origin: 55% 40%;
}

.hero-fallback.is-hidden {
    opacity: 0;
    pointer-events: none;
}

.hero-video.is-ready {
    opacity: 1;
}

.hero-video {
    opacity: 0;
    transition: opacity .8s ease;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.08); }
}

.hero-grade {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(7, 24, 36, .6) 100%),
        linear-gradient(180deg, rgba(7, 24, 36, .5) 0%, transparent 30%, transparent 52%, rgba(7, 24, 36, .82) 100%),
        linear-gradient(90deg, rgba(7, 24, 36, .4) 0%, transparent 45%);
}

.hero-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 0 0 12vw;
}

.hero-copy {
    max-width: 36rem;
    animation: heroIn 1.2s var(--ease-out) both;
}

@keyframes heroIn {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

.hero-eyebrow {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
    text-shadow: 0 0 20px rgba(232, 192, 122, .45);
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(1.95rem, 7.2vw, 3.4rem);
    font-weight: 600;
    color: var(--white);
    line-height: 1.1;
    margin: 0 0 16px;
    text-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.hero-title::after {
    display: none;
}

.hero-lead {
    font-family: var(--font-body);
    font-size: clamp(1.02rem, 2.8vw, 1.22rem);
    color: rgba(245, 243, 237, .9);
    line-height: 1.55;
    padding: 0;
    margin: 0 0 28px;
    max-width: 30rem;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-cta {
    margin: 0;
    min-width: 148px;
}

.hero-cta-primary {
    background: linear-gradient(135deg, var(--accent), #c96a28);
    color: #fff;
    box-shadow: 0 10px 28px rgba(232, 137, 58, .35);
}

.hero-cta-secondary {
    background: rgba(255, 255, 255, .08);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.hero-cta-secondary:hover {
    background: rgba(255, 255, 255, .16);
    border-color: var(--gold);
}

.hero-price {
    margin: 16px 0 0;
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    letter-spacing: .06em;
    color: var(--gold);
}

.tour-price {
    margin: -6px 0 14px;
    font-family: var(--font-body);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .04em;
    color: var(--gold);
}

/* Destination themes - below fold, no overlays on video */
.themes {
    background:
        radial-gradient(ellipse at 10% 0%, rgba(232, 192, 122, .12), transparent 45%),
        var(--ink);
    color: rgba(245, 243, 237, .9);
    padding: 36px 0 44px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.themes-track {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.theme-card {
    padding: 18px 18px;
    border-left: 3px solid var(--accent);
    background: rgba(255, 255, 255, .04);
    border-radius: 0 var(--radius) var(--radius) 0;
    transition: transform .45s var(--ease-out), background .35s ease, box-shadow .45s ease, border-color .35s ease;
}

.theme-card h3 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    color: var(--white);
    margin: 0 0 6px;
    font-weight: 600;
}

.theme-card p {
    color: rgba(245, 243, 237, .7);
    font-size: .9rem;
    padding: 0;
    margin: 0;
    line-height: 1.55;
}

/* ---------- Intro ---------- */
#zse1 {
    background:
        linear-gradient(180deg, rgba(245, 243, 237, .94) 0%, rgba(245, 243, 237, .88) 100%),
        url(../img/home-z/bg1.webp) center / cover;
    padding: 56px 0 64px;
    margin-bottom: 0;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
    margin-top: 8px;
}

.intro-visual {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

#zd5 {
    width: 100%;
    aspect-ratio: 1;
    height: auto;
    max-width: 400px;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    box-shadow: var(--shadow), 0 0 0 1px rgba(232, 192, 122, .2);
}

#zd5 > div {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat;
}

#zd5::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, transparent 50%, rgba(232, 192, 122, .2) 100%);
    z-index: 1;
}

#zd15 {
    display: none;
}

#zd6 {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
    justify-content: flex-start;
}

#za1 {
    background: var(--ink);
}

#za2 {
    background: var(--accent);
}

/* ---------- Tripadvisor ---------- */
#zse5 {
    position: relative;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(26, 171, 232, .1), transparent 40%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    padding: 64px 0 72px;
    overflow: hidden;
}

.zd40 {
    text-align: left;
    max-width: none;
    margin: 0 0 28px;
}

.zs40 {
    display: inline-block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 14px;
    font-family: var(--font-body);
}

.zh40 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
    margin-bottom: 12px;
}

.zp40 {
    font-size: 1.05rem;
    color: var(--muted);
    padding: 0;
}

.ta-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.ta-copy {
    max-width: 34rem;
}

.ta-widgets {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 22px 20px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(16, 45, 66, .08);
    border-radius: calc(var(--radius) + 4px);
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.zd42 {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 4px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    overflow-x: auto;
}

.zd42 + .zd42 {
    border-top: 1px solid rgba(16, 45, 66, .08);
    padding-top: 20px;
}

.zs41 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--ink);
}

.zs42 {
    font-size: .92rem;
    color: var(--muted);
    margin: 4px 0 14px;
}

.zd42 > div {
    max-width: 100%;
}

/* ---------- Why Tourz ---------- */
#why-tourz {
    position: relative;
    padding: 0;
    background: var(--ink);
    overflow: hidden;
}

#why-tourz > .w {
    max-width: 1120px;
}

.why-tourz-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    min-height: 0;
}

.why-tourz-copy {
    padding: 56px 0;
    order: 2;
    color: rgba(245, 243, 237, .9);
}

.why-tourz-copy .zs40 {
    color: var(--brand);
}

.why-tourz-copy .zh40 {
    color: var(--white);
}

.why-tourz-copy .zp40 {
    color: rgba(245, 243, 237, .78);
}

.why-tourz-tagline {
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.85rem);
    color: var(--accent);
    margin-top: 20px;
    line-height: 1.35;
    font-style: italic;
}

.why-tourz-visual {
    order: 1;
    margin: 0;
    position: relative;
    min-height: 260px;
}

.why-tourz-visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    max-width: none;
    object-fit: cover;
    border-radius: 0;
    box-shadow: none;
}

.why-tourz-visual figcaption {
    display: none;
}

/* ---------- Who We Are ---------- */
#zse3 {
    background:
        linear-gradient(180deg, rgba(245, 243, 237, .92) 0%, rgba(245, 243, 237, .88) 100%),
        url(../img/home-z/bg2.webp) center / cover;
    padding: 56px 0 64px;
}

#zd29 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: center;
}

.zd16,
.zd17 {
    width: 100%;
}

#zi3 {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: block;
}

.zd17 {
    padding: 0;
}

#zd21 {
    display: none;
}

.zd19,
.zd32 {
    position: relative;
    width: 100%;
}

.zi4 {
    width: 100%;
    height: auto;
}

/* ---------- Gallery teaser ---------- */
#zse2 {
    background: var(--ink-deep);
    color: rgba(245, 243, 237, .9);
    padding: 56px 0 64px;
}

#zse2 .h1 {
    color: var(--accent);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: max-content;
    max-width: 100%;
}

#zse2 .h1::after {
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
}

#zse2 .h1.rv::after {
    transform: translateX(-50%) scaleX(0);
}

#zse2 .h1.rv.in::after {
    transform: translateX(-50%) scaleX(1);
}

#zse2 p {
    color: rgba(245, 243, 237, .72);
    text-align: center;
    max-width: 36rem;
    margin: 0 auto;
}

.zd22 {
    display: grid;
    width: 100%;
    max-width: 960px;
    margin: 36px auto;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

#zd23 {
    grid-column: 1;
    grid-row: 1 / 3;
}

#zd24 {
    grid-column: 2;
    grid-row: 1;
}

#zd25 {
    grid-column: 2;
    grid-row: 2;
}

#zd26 {
    grid-column: 1 / -1;
    grid-row: 3;
}

.zi5,
.zi6,
.zi7 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    min-height: 140px;
}

#zd23 .zi5 {
    min-height: 100%;
    aspect-ratio: 3 / 4;
}

#za4 {
    background: var(--brand);
    margin: 16px auto 0;
    display: flex;
    width: fit-content;
}

.zi6 {
    display: block;
}

.zi7 {
    display: none;
}

/* ---------- Popular tours ---------- */
#zse4 {
    background:
        linear-gradient(180deg, rgba(245, 243, 237, .94) 0%, rgba(245, 243, 237, .9) 100%),
        url(../img/home-z/bg3.webp) center / cover;
    padding: 56px 0 72px;
}

#zse4 > .w > p {
    max-width: 36rem;
}

#zd9 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 32px 0 28px;
}

.zd300 {
    margin: 0;
    background: var(--ink);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    position: relative;
}

.zd300::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 60%, rgba(232, 192, 122, .12) 100%);
    opacity: 0;
    transition: opacity .4s ease;
}

@media (hover: hover) and (pointer: fine) {
    .zd300:hover::before {
        opacity: 1;
    }
}

.zd300 .zi300,
.zd300 .zd301 {
    position: relative;
    z-index: 0;
}

.zd300 .zd301 {
    z-index: 2;
}

.zi300 {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    display: block;
}

.zd301 {
    background: var(--ink);
    padding: 18px 16px 20px;
    text-align: center;
}

.zd302 {
    background: var(--ink-soft);
}

.zh2300 {
    font-weight: 600;
    font-size: 1.25rem;
    margin: 0 0 14px;
    color: var(--white);
    font-family: var(--font-display);
}

.zd-tour-btns {
    display: flex;
    gap: 10px;
    margin: 0;
    flex-wrap: wrap;
    justify-content: center;
}

.za300,
.za301 {
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ink);
    background: var(--white);
    border-radius: 999px;
    padding: 12px 18px;
    margin: 0;
    text-decoration: none;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: .9rem;
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    min-height: 46px;
}

.za301 {
    color: #fff;
    background: var(--accent);
}

.tour-section-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px auto 0;
    width: fit-content;
    max-width: 100%;
}

#za3,
#za3-inquire {
    margin: 0;
    width: auto;
    display: inline-flex;
    flex: 0 1 auto;
}

#za3 {
    background: var(--ink);
}

#za3-inquire {
    background: var(--accent);
}

.zd2 {
    margin: 0 0 8px;
}

@keyframes a1 {
    to { opacity: 0; }
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
    .themes-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .zd22 {
        grid-template-columns: 1.1fr 1fr 1fr;
        gap: 10px;
    }

    #zd23 {
        grid-column: 1;
        grid-row: 1 / 3;
    }

    #zd24 {
        grid-column: 2;
        grid-row: 1;
    }

    #zd25 {
        grid-column: 3;
        grid-row: 1;
    }

    #zd26 {
        grid-column: 2 / 4;
        grid-row: 2;
    }

    .zi6 {
        display: none;
    }

    .zi7 {
        display: block;
        width: 100%;
        min-height: 180px;
    }

    #zd26 .zi7 {
        min-height: 180px;
    }

    #zd9 {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 768px) {
    .hero {
        height: 92svh;
    }

    .hero-content {
        padding-bottom: 8vw;
        justify-content: center;
    }

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

    .intro-grid {
        grid-template-columns: minmax(240px, 380px) 1fr;
        gap: 40px;
        align-items: center;
    }

    .intro-visual {
        margin: 0;
    }

    .ta-layout {
        grid-template-columns: 1.15fr .85fr;
        gap: 40px;
        align-items: center;
    }

    .zd40 {
        margin-bottom: 0;
    }

    .why-tourz-wrap {
        grid-template-columns: 1.15fr .85fr;
        min-height: 480px;
    }

    .why-tourz-copy {
        order: 1;
        padding: 64px 48px 64px 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .why-tourz-visual {
        order: 2;
        min-height: 100%;
    }

    .why-tourz-visual img {
        position: absolute;
        inset: 0;
        min-height: 100%;
    }

    #zd29 {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }

    #zd9 {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

@media (min-width: 1024px) {
    .themes-track {
        grid-template-columns: repeat(5, 1fr);
    }

    .hero-content {
        padding-bottom: 6rem;
    }

    #zse1,
    #zse3,
    #zse4 {
        background-attachment: fixed;
    }
}

@media (max-width: 480px) {
    .hero {
        height: 85svh;
        min-height: 380px;
    }

    .hero-ctas {
        flex-direction: column;
    }

    .hero-cta {
        width: 100%;
    }

    #zd6 {
        flex-direction: column;
    }

    #zd6 .a2 {
        width: 100%;
        margin: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-fallback {
        animation: none;
    }

    .hero-video {
        display: none !important;
    }

    .hero-fallback.is-hidden {
        opacity: 1;
    }
}
