/* =====================================================
   home.css — JungleNearMe Homepage (rebuilt from scratch)
   Mobile-first. Desktop in @media (min-width:1200px).
   Uses tokens from style.css. NEVER pure white surfaces.
   ===================================================== */

/* ---------- shared section rhythm ---------- */
.home-section { padding: 56px 0; }
.home-section .section-header { margin-bottom: 28px; text-align: center; }
.home-section .section-heading { font-size: 28px; line-height: 1.15; margin: 6px 0 10px; }
.home-section .section-subheading { margin: 0 auto; font-size: 15px; }
.home-section .section-label { font-size: 12px; letter-spacing: 2.5px; }

@media (min-width: 1200px) {
    .home-section { padding: 96px 0; }
    .home-section .section-header { margin-bottom: 48px; }
    .home-section .section-heading { font-size: 44px; }
    .home-section .section-subheading { font-size: 17px; }
}

/* =====================================================
   1. HERO — full-bleed Swiper, centred editorial copy
   ===================================================== */
#hero {
    position: relative;
    height: 560px;
    overflow: hidden;
    background: #0b140f;
}
#hero .header-slider,
#hero .swiper-wrapper { height: 100%; }
#hero .swiper-slide {
    position: relative;
    height: 560px;
    display: block;
}
#hero .swiper-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
#hero .swiper-slide::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg,
        rgba(11,20,15,0.78) 0%,
        rgba(11,20,15,0.45) 35%,
        rgba(11,20,15,0.45) 65%,
        rgba(11,20,15,0.85) 100%);
    z-index: 1;
}
@media (min-width: 992px) {
    #hero .swiper-slide::before {
        background: linear-gradient(180deg,
            rgba(11,20,15,0.55) 0%,
            rgba(11,20,15,0.25) 45%,
            rgba(11,20,15,0.75) 100%);
    }
}

.hero-stage {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 90px 18px 70px;     /* extra top so content clears the transparent header */
    text-align: center;
}
.hero-stage-inner {
    max-width: 820px;
    width: 100%;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,241,232,0.16);
    backdrop-filter: blur(6px);
    color: var(--cream);
    border: 1px solid rgba(245,241,232,0.28);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 18px;
    max-width: 100%;
}
.hero-eyebrow i { color: var(--marigold); font-size: 10px; }

#hero .hero-title {
    font-family: var(--font-display);
    color: #fff;
    font-weight: 700;
    font-size: 40px;
    line-height: 1.05;
    letter-spacing: -0.6px;
    margin: 0 0 14px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.55);
}
#hero .hero-title em {
    font-style: italic;
    color: var(--marigold);
    font-weight: 600;
    text-shadow: 0 2px 18px rgba(0,0,0,0.5);
}
#hero .hero-lede {
    color: rgba(245,241,232,0.9);
    font-size: 15px;
    line-height: 1.6;
    max-width: 560px;
    margin: 0 auto 18px;
}
.hero-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 14px;
}
.hero-ctas .btn-marigold,
.hero-ctas .btn-ghost-forest {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 14px;
}
.hero-ctas .btn-ghost-forest {
    color: var(--cream);
    border-color: rgba(245,241,232,0.55);
    background: transparent;
}
.hero-ctas .btn-ghost-forest:hover {
    background: rgba(245,241,232,0.12);
    color: #fff;
    border-color: #fff;
}

.hero-trust {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    justify-content: center;
    color: rgba(245,241,232,0.85);
    font-size: 12px;
    letter-spacing: 0.3px;
}
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust i { color: var(--marigold); font-size: 11px; }

#hero .swiper-pagination { bottom: 18px !important; z-index: 3; }
#hero .swiper-pagination-bullet {
    background: rgba(245,241,232,0.55);
    opacity: 1;
    width: 8px; height: 8px;
}
#hero .swiper-pagination-bullet-active {
    background: var(--marigold);
    width: 22px;
    border-radius: 4px;
}

@media (min-width: 768px) {
    #hero, #hero .swiper-slide { height: 640px; }
    #hero .hero-title { font-size: 52px; }
    #hero .hero-lede { font-size: 16px; }
}
@media (min-width: 992px) {
    .hero-stage { padding: 32px 22px 80px; }
}
@media (min-width: 1200px) {
    #hero, #hero .swiper-slide { height: 720px; }
    #hero .hero-title { font-size: 68px; letter-spacing: -1px; }
    #hero .hero-lede { font-size: 17px; }
    .hero-stage { padding: 40px 24px 90px; }
    .hero-eyebrow { font-size: 12px; padding: 8px 18px; }
}

/* =====================================================
   2. TRUST STRIP — reassurance row
   ===================================================== */
/* Trust strip — open layout, no card containers */
#trust-strip {
    padding: 40px 0 48px;
    position: relative;
    z-index: 5;
}
.trust-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
}
.trust-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    min-height: 0;
}
.trust-icon {
    flex-shrink: 0;
    width: 36px;
    color: #1e3a2b;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
}
.trust-item strong {
    display: block;
    font-family: var(--font);
    font-size: 15px;
    font-weight: 700;
    color: var(--forest);
    line-height: 1.3;
    letter-spacing: -0.1px;
}
.trust-item span {
    display: block;
    font-size: 12.5px;
    color: var(--text-muted);
    line-height: 1.5;
    margin-top: 4px;
}

/* Tablet — 2 col */
@media (min-width: 600px) {
    .trust-row { grid-template-columns: repeat(2, 1fr); gap: 28px 32px; }
}

/* Desktop — 4 col, open inline layout */
@media (min-width: 992px) {
    #trust-strip { padding: 56px 0 64px; }
    .trust-row {
        grid-template-columns: repeat(4, 1fr);
        gap: 36px;
    }
    .trust-item strong { font-size: 15.5px; }
    .trust-item span  { font-size: 13px; }
    .trust-icon { width: 36px; font-size: 30px; }
}

@media (min-width: 1200px) {
    .trust-row { gap: 44px; }
}

/* =====================================================
   3. POPULAR PACKAGES — carousel
   ===================================================== */
#packages .packages-head {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}
#packages .packages-head-copy .section-heading { margin-bottom: 6px; }
#packages .packages-head-cta { align-self: flex-start; }
#packages .packages-head-cta .btn-ghost-forest {
    padding: 10px 18px;
    font-size: 13px;
    min-height: 44px;
}
#packages .swiper {
    padding-bottom: 36px;
}
#packages .packages-pagination {
    bottom: 0 !important;
    text-align: center;
}
#packages .packages-pagination .swiper-pagination-bullet {
    background: var(--forest);
    opacity: 0.35;
}
#packages .packages-pagination .swiper-pagination-bullet-active {
    background: var(--marigold);
    opacity: 1;
    width: 22px;
    border-radius: 4px;
}
#packages .swiper-button-prev,
#packages .swiper-button-next { display: none; }
@media (min-width: 1200px) {
    #packages .packages-head {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 40px;
    }
    #packages .swiper-button-prev,
    #packages .swiper-button-next {
        display: flex;
        width: 40px; height: 40px;
        border-radius: 50%;
        background: var(--cream-deep);
        color: var(--forest);
        top: 40%;
    }
    #packages .swiper-button-prev::after,
    #packages .swiper-button-next::after { font-size: 16px; font-weight: 700; }
}

/* =====================================================
   4. DESTINATIONS — asymmetric mosaic (ref: Pugdundee tile)
   ===================================================== */
#destinations .dest-mosaic {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.dest-tile {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--forest);
    text-decoration: none;
    isolation: isolate;
}
.dest-tile img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}
.dest-tile::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11,20,15,0) 30%, rgba(11,20,15,0.82) 100%);
    z-index: 1;
}
.dest-tile:hover img { transform: scale(1.05); }
.dest-info {
    position: absolute;
    left: 16px; right: 16px; bottom: 14px;
    z-index: 2;
    color: var(--cream);
}
.dest-info h3 {
    color: var(--cream);
    font-family: var(--font-display);
    font-size: 20px;
    line-height: 1.15;
    margin: 0 0 6px;
}
.dest-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(245,241,232,0.18);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(245,241,232,0.3);
    color: var(--cream);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
}
.dest-pill i { color: var(--marigold); font-size: 10px; }

@media (min-width: 768px) {
    #destinations .dest-mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}
@media (min-width: 1200px) {
    /* Asymmetric: first tile spans 2 rows, next two stack */
    #destinations .dest-mosaic {
        grid-template-columns: 1.4fr 1fr 1fr;
        grid-auto-rows: 280px;
        gap: 20px;
    }
    .dest-tile { aspect-ratio: auto; height: 100%; }
    .dest-tile.tile-large {
        grid-column: span 1;
        grid-row: span 2;
    }
    .dest-info h3 { font-size: 24px; }
    .dest-tile.tile-large .dest-info h3 { font-size: 32px; }
    .dest-info { left: 22px; right: 22px; bottom: 20px; }
}

/* =====================================================
   5. WHY JUNGLENEARME — 3-col editorial cards
   (ref: Nat Hab "Why travel with us")
   ===================================================== */
#why .why-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.why-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 22px 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.why-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(30,58,43,0.08);
}
.why-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    background: rgba(217,122,44,0.14);
    color: var(--marigold);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 12px;
}
.why-card h5 {
    font-family: var(--font-display);
    color: var(--forest);
    font-size: 18px;
    line-height: 1.3;
    margin: 0 0 8px;
}
.why-card p {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}
#why .why-footer {
    text-align: center;
    margin-top: 24px;
}
@media (min-width: 768px) {
    #why .why-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1200px) {
    #why .why-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
    .why-card { padding: 28px 26px; }
    .why-card h5 { font-size: 20px; }
    .why-card p { font-size: 15px; }
    #why .why-footer { margin-top: 36px; }
}

/* =====================================================
   6. HOW IT WORKS — 4-step row
   (ref: Intrepid/Club Mahindra booking flow)
   ===================================================== */
#how .how-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    counter-reset: step;
}
.how-step {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 14px;
    padding: 22px 20px 22px 68px;
    min-height: 96px;
}
.how-step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 18px; top: 20px;
    width: 38px; height: 38px;
    background: var(--forest);
    color: var(--cream);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}
.how-step h5 {
    font-family: var(--font-display);
    color: var(--forest);
    font-size: 17px;
    margin: 0 0 4px;
}
.how-step p {
    font-size: 13.5px;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.55;
}
.how-step i.step-icon {
    display: none;
}
@media (min-width: 768px) {
    #how .how-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}
@media (min-width: 1200px) {
    #how .how-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
    }
    .how-step {
        padding: 30px 24px;
        text-align: left;
    }
    .how-step::before {
        position: static;
        margin-bottom: 14px;
        width: 42px; height: 42px;
        font-size: 15px;
    }
    .how-step h5 { font-size: 19px; }
    .how-step p { font-size: 14.5px; }
}

/* =====================================================
   7. HOTELS PREVIEW — uses existing hotel_box.php markup
   (keeps .grid.grid-3 from hotel_box.php untouched)
   ===================================================== */
#hotels .hotels-head {
    text-align: center;
    margin-bottom: 24px;
}
#hotels .hotels-footer {
    text-align: center;
    margin-top: 28px;
}
/* Soften the box spacing on mobile; style.css handles the cards */
#hotels .grid.grid-3 { margin-top: 0 !important; }

@media (min-width: 1200px) {
    #hotels .hotels-footer { margin-top: 40px; }
}

/* =====================================================
   8. STATS — forest band (rare accent surface)
   ===================================================== */
#stats .stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 14px;
    text-align: center;
}
#stats .stat-item p {
    color: rgba(245,241,232,0.85);
    margin: 6px 0 0;
    font-size: 13px;
    letter-spacing: 0.3px;
}
#stats .stat-number,
#stats .stat-suffix {
    color: var(--marigold);
    font-family: var(--font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
}
@media (min-width: 1200px) {
    #stats .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 24px; }
    #stats .stat-number,
    #stats .stat-suffix { font-size: 56px; }
    #stats .stat-item p { font-size: 15px; }
}

/* =====================================================
   9. TESTIMONIALS — editorial quote cards
   (ref: Nat Hab reviewer-name + trip style, no stars emphasis)
   ===================================================== */
#testimonials .t-swiper { padding-bottom: 40px; }
.t-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 26px 22px;
    height: 100%;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 260px;
}
.t-quote {
    font-size: 22px;
    color: var(--marigold);
    line-height: 1;
}
.t-body {
    font-family: var(--font-display);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    font-style: italic;
    margin: 0;
    flex: 1;
}
.t-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
}
.t-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--cream-deep);
    color: var(--forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.t-avatar img { width: 100%; height: 100%; object-fit: cover; }
.t-name {
    font-family: var(--font);
    font-size: 14px;
    font-weight: 700;
    color: var(--forest);
    margin: 0;
    line-height: 1.2;
}
.t-trip {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}
#testimonials .t-pagination {
    bottom: 0 !important;
    text-align: center;
}
#testimonials .t-pagination .swiper-pagination-bullet {
    background: var(--forest);
    opacity: 0.3;
}
#testimonials .t-pagination .swiper-pagination-bullet-active {
    background: var(--marigold);
    opacity: 1;
    width: 22px;
    border-radius: 4px;
}
@media (min-width: 1200px) {
    .t-card { padding: 32px 28px; min-height: 280px; }
    .t-body { font-size: 18px; line-height: 1.6; }
}

/* =====================================================
   10. FAQ — two-column accordion
   ===================================================== */
#faq .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    align-items: start;
}
.faq-intro .section-heading { margin-bottom: 10px; }
.faq-intro p {
    color: var(--text-muted);
    font-size: 15px;
    margin: 0 0 16px;
}
.faq-intro .btn-marigold { min-height: 48px; }

#faq .h-faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.h-faq-item {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    overflow: hidden;
}
.h-faq-q {
    all: unset;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 18px;
    cursor: pointer;
    font-family: var(--font);
    font-weight: 600;
    color: var(--forest);
    font-size: 15px;
    line-height: 1.4;
    min-height: 56px;
    box-sizing: border-box;
}
.h-faq-q:focus-visible { outline: 2px solid var(--marigold); outline-offset: -2px; }
.h-faq-num {
    flex-shrink: 0;
    font-family: var(--font-display);
    font-size: 13px;
    color: var(--marigold);
    font-weight: 700;
    letter-spacing: 1px;
}
.h-faq-q-label { flex: 1; }
.h-faq-icon {
    flex-shrink: 0;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--cream-deep);
    color: var(--forest);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    transition: transform 0.3s ease;
}
.h-faq-q[aria-expanded="true"] .h-faq-icon { transform: rotate(180deg); }
.h-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}
.h-faq-a-inner {
    padding: 0 18px 16px 50px;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.65;
}
.h-faq-a-inner p { margin: 0; font-size: 14px; color: var(--text-secondary); }

@media (min-width: 1024px) {
    #faq .faq-grid {
        grid-template-columns: 1fr 1.5fr;
        gap: 48px;
    }
}
@media (min-width: 1200px) {
    .h-faq-q { font-size: 16px; padding: 20px 22px; }
    .h-faq-a-inner { padding: 0 22px 20px 58px; font-size: 15px; }
    .h-faq-a-inner p { font-size: 15px; }
}

/* =====================================================
   11. PLANNING CTA — forest band
   ===================================================== */
#planning-cta { padding: 0; margin: 40px 0; }
.planning-band {
    background: var(--forest);
    color: var(--cream);
    border-radius: 18px;
    padding: 36px 24px;
    text-align: center;
}
.planning-band .section-label {
    color: var(--marigold);
}
.planning-band h3 {
    font-family: var(--font-display);
    color: var(--cream);
    font-size: 24px;
    line-height: 1.2;
    margin: 6px 0 10px;
}
.planning-band h3 em { font-style: italic; color: var(--marigold); font-weight: 500; }
.planning-band p {
    color: rgba(245,241,232,0.85);
    font-size: 14px;
    max-width: 520px;
    margin: 0 auto 18px;
}
.planning-band .planning-ctas {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.planning-band .btn-ghost-forest {
    color: var(--cream);
    border-color: rgba(245,241,232,0.55);
    background: transparent;
}
.planning-band .btn-ghost-forest:hover {
    background: rgba(245,241,232,0.12);
    color: #fff;
    border-color: #fff;
}
.planning-band .btn-marigold,
.planning-band .btn-ghost-forest { min-height: 48px; }

@media (min-width: 1200px) {
    #planning-cta { margin: 72px 0; }
    .planning-band {
        padding: 64px 48px;
    }
    .planning-band h3 { font-size: 38px; }
    .planning-band p { font-size: 16px; margin-bottom: 24px; }
}

/* =====================================================
   Booking popup (preserved — used by hero/CTA)
   ===================================================== */
.booking-popup-overlay {
    position: fixed; inset: 0;
    background: rgba(11,20,15,0.6);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.booking-popup-overlay.active { display: flex; }
.booking-popup {
    background: var(--cream);
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 90vh;
    overflow: auto;
    border: 1px solid var(--border-light);
}
.booking-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
    background: var(--card-bg);
}
.booking-popup-header h4 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--forest);
    font-size: 18px;
}
.booking-popup-close {
    all: unset;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 22px;
    color: var(--forest);
}
.booking-popup-close:hover { background: var(--cream-deep); }
.booking-popup-body { padding: 18px 20px 22px; }

/* =====================================================
   Misc — make sure no accidental horizontal scroll
   ===================================================== */
#hero, #trust-strip, #packages, #destinations,
#why, #how, #hotels, #stats, #testimonials, #faq, #planning-cta {
    overflow-x: clip;
}
