/* ==========================================================================
   Homepage modern redesign layer.
   Additive/override only — no existing class removed or renamed, so Swiper
   sliders, Bootstrap pills/tabs and counters keep working untouched.
   ========================================================================== */

/* ---- First-visit promo popup ---- */
.promo-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(16, 12, 8, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.promo-popup-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

.promo-popup-box {
    position: relative;
    max-width: 380px;
    width: 100%;
    max-height: 90vh;
    transform: scale(0.92);
    transition: transform 0.3s ease;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.4);
}

.promo-popup-overlay.is-open .promo-popup-box {
    transform: scale(1);
}

.promo-popup-box img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: 90vh;
    object-fit: contain;
    background: #0A1019;
}

.promo-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--white-color);
    color: var(--title-color);
    border: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    transition: background-color 0.25s ease, transform 0.25s ease;
    z-index: 1;
}

.promo-popup-close:hover {
    background: var(--primary-color1);
    color: var(--white-color);
    transform: rotate(90deg);
}

/* ---- Section rhythm: alternate soft tint / white for visual pacing ---- */
.home5-activity-card-slider-section,
.home4-visa-application-section,
.home4-about-section,
.faq-modern-section {
    background: #FFF8F1;
}

/* ---- Eyebrow tags: decouple from .section-title2 so they work anywhere ---- */
.eg-section-tag {
    -webkit-mask-image: url(../img/home2/vector/section-title-tag.svg);
    -webkit-mask-position: center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: cover;
    background-color: rgba(var(--primary-color1-opc), 0.16);
    padding: 10px 34px;
    white-space: nowrap;
    display: inline-flex;
    margin-bottom: 14px;
}

.eg-section-tag span {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-color1);
    font-family: var(--font-satisfy);
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: 0.51px;
}

/* ---- Hero: slow zoom on the active slide background, refined CTA row ---- */
.home1-banner-wrapper {
    background-size: cover;
    animation: home-hero-zoom 12s ease-in-out infinite alternate;
}

@keyframes home-hero-zoom {
    from {
        background-size: 100%;
    }

    to {
        background-size: 112%;
    }
}

.home1-banner-content .rating-area {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 10px 18px;
}

/* ---- Service cards: richer gradient overlay + lift (image zoom already exists) ---- */
.activity-card .activity-card-content-wrapper {
    background: linear-gradient(180deg, rgba(16, 12, 8, 0) 40%, rgba(16, 12, 8, 0.75) 100%);
}

.activity-card {
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(16, 12, 8, 0.1);
}

.activity-card img {
    border-radius: 18px;
}

.activity-card .activity-card-content-wrapper .activity-card-content {
    border-radius: 12px;
}

/* ---- About section: soften the accent shape, tidy paragraphs ---- */
.home1-about-section .author-area {
    padding: 18px 20px;
    background: #FFF8F1;
    border-radius: 14px;
    margin-bottom: 16px;
}

.home4-about-section .about-img-wrap {
    position: relative;
}

.home4-about-section .about-img {
    border-radius: 20px;
}

/* ---- Species tabs: pill-style modern nav ---- */
.tour-type-tab-slider-section .nav-link {
    border-radius: 16px;
    background: var(--white-color);
    border: 1px solid #F0E6DC;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.tour-type-tab-slider-section .nav-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(16, 12, 8, 0.08);
}

.tour-type-tab-slider-section .nav-link.active {
    background: var(--primary-color1);
    border-color: var(--primary-color1);
}

.tour-type-tab-slider-section .nav-link.active svg {
    fill: var(--white-color) !important;
}

.tour-type-tab-slider-section .nav-link.active .content h5 {
    color: var(--white-color) !important;
}

/* ---- Feature cards ("Why Choose Us"): warmer icon circle + hover lift ---- */
.feature-card {
    background-image: none;
    background-color: var(--white-color);
    box-shadow: 0 10px 28px rgba(16, 12, 8, 0.06);
}

.feature-card .feature-card-icon {
    background-color: rgba(255, 116, 3, 0.12);
}

.feature-card:hover .feature-card-icon {
    background-color: var(--primary-color1);
    transform: rotate(-8deg) scale(1.05);
}

.feature-card:hover .feature-card-icon svg {
    fill: var(--white-color);
}

/* ---- Promo offer cards: image top, detail card below ---- */
.home4-banner-card-section .section-title3 h2 span {
    color: var(--primary-color1);
}

.offer-card {
    background: var(--white-color);
    border-radius: 18px;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 14px 34px rgba(16, 12, 8, 0.08);
    border: 1px solid #F5EEE6;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.offer-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(16, 12, 8, 0.12);
}

.offer-card-media {
    position: relative;
    height: 260px;
}

.offer-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.offer-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(16, 12, 8, 0) 55%, rgba(16, 12, 8, 0.55) 100%);
}

.offer-card-discount {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    background: var(--primary-color1);
    color: var(--white-color);
    font-family: var(--font-rubik);
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    padding: 9px 16px;
    border-radius: 30px;
    box-shadow: 0 8px 18px rgba(255, 116, 3, 0.35);
}

.offer-card-tag {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 2;
    color: var(--white-color);
    font-family: var(--font-satisfy);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
}

.offer-card-body {
    padding: 28px;
}

.offer-card-body h3 {
    color: var(--title-color);
    font-family: var(--font-rubik);
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 18px;
}

.offer-card-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.offer-card-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-color);
    font-family: var(--font-rubik);
    font-size: 15px;
    line-height: 1.4;
}

.offer-card-features li i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    border-radius: 50%;
    background-color: rgba(var(--primary-color1-opc), 0.12);
    color: var(--primary-color1);
    font-size: 15px;
}

.offer-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid #F5EEE6;
}

.offer-card-note {
    color: var(--text-color);
    font-family: var(--font-rubik);
    font-size: 13px;
    font-weight: 500;
    max-width: 200px;
}

@media (max-width: 576px) {
    .offer-card-media {
        height: 200px;
    }

    .offer-card-body {
        padding: 22px;
    }

    .offer-card-footer {
        justify-content: flex-start;
    }
}

/* ---- Testimonials: quote-card polish ---- */
.testimonial-card2.style-2 {
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(16, 12, 8, 0.08);
    border: 1px solid #F5EEE6;
}

.testimonial-card2.style-2 .rating li i {
    color: var(--primary-color1);
}

/* ---- Latest Sightings snapshot card ---- */
.latest-sightings-card {
    background: var(--white-color);
    border: 1px solid #F0E6DC;
    border-radius: 20px;
    box-shadow: 0 14px 34px rgba(16, 12, 8, 0.08);
    padding: 36px 40px 40px;
    text-align: center;
}

.latest-sightings-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-bottom: 30px;
    padding-bottom: 26px;
    border-bottom: 1px solid #F5EEE6;
}

.latest-sightings-eyebrow {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: var(--text-color);
}

.latest-sightings-date {
    font-size: 26px;
    font-weight: 700;
    color: var(--title-color);
}

.latest-sightings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-bottom: 32px;
}

.latest-sightings-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.latest-sightings-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255, 116, 3, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}

.latest-sightings-icon svg {
    fill: var(--primary-color1);
}

.latest-sightings-icon svg .st0 {
    fill: var(--primary-color1);
}

.latest-sightings-col-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--title-color);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 12px;
}

.latest-sightings-col-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    min-height: 30px;
}

.latest-sightings-btn {
    display: inline-flex;
}

@media (max-width: 767px) {
    .latest-sightings-card {
        padding: 28px 20px 32px;
    }

    .latest-sightings-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }
}

/* ---- Blog cards on homepage: match sitewide radius/shadow language ---- */
.home4-blog-section .blog-card {
    border-radius: 16px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .eg-section-tag {
        padding: 8px 24px;
    }

    .eg-section-tag span {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home1-banner-wrapper {
        animation: none;
    }
}
