/* =========================================================================
   TOUR DE COSTA RICA - CSS
   ========================================================================= */

:root {
    --tour-primary: #2d5a27;
    /* Jungle green */
    --tour-secondary: #f4a261;
    /* Sunset orange */
    --tour-accent: #e76f51;
    /* Earthy red */
    --tour-bg-light: #fdfdfd;
    --tour-bg-alt: #f1f8f1;
    --tour-text: #333333;
    --tour-text-muted: #666666;
    --radius-lg: 20px;
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--tour-bg-light);
    font-family: 'Inter', sans-serif;
    color: var(--tour-text);
}

.tour-page h1,
.tour-page h2,
.tour-page h3 {
    font-family: 'Playfair Display', serif;
}

.tour-page {
    padding-top: 100px;
    /* Offset for fixed navbar */
}

/* ═══ 1. HERO SECTION ═══ */
.tour-hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: #2d5a27 url('../img/tour.png') center/cover no-repeat;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -100px;
    /* Pull back up to go under transparent nav */
}

.tour-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
}

.tour-hero-content {
    position: relative;
    z-index: 2;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 3rem 5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-subtitle-top {
    font-size: 1.5rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--tour-primary);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.hero-main-title {
    font-size: 3.5rem;
    margin: 0.5rem 0;
    color: #1a1a1a;
}

.hero-subtitle-bottom {
    font-size: 1.1rem;
    color: var(--tour-text-muted);
    font-style: italic;
}

/* ═══ 2. INTRO SECTION ═══ */
.tour-intro {
    padding: 6rem 10%;
    text-align: center;
    background-color: #fff;
}

.intro-heading {
    font-size: 2.2rem;
    color: var(--tour-primary);
    margin-bottom: 1.5rem;

    margin-left: auto;
    margin-right: auto;
    line-height: 1.4;
}

.tour-package-info p {
    font-size: 28px;
}

.intro-subheading {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--tour-accent);
}

.intro-discount {
    background: var(--tour-bg-alt);
    padding: 1.5rem 2rem;
    border-radius: 50px;
    display: inline-block;
    font-weight: 700;
    color: var(--tour-primary);
    box-shadow: var(--shadow-soft);
    margin-top: 1rem;
}

/* ═══ 3. TOP IMAGE GRID ═══ */
.tour-top-gallery {
    padding: 0 5%;
    margin-bottom: 6rem;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.grid-item {
    position: relative;
    padding-top: 100%;
    /* Square */
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.grid-item:hover img {
    transform: scale(1.1);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 90, 39, 0.7);
    /* Matching --tour-primary with opacity */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    padding: 20px;
}

.grid-item:hover .grid-overlay {
    opacity: 1;
}

.grid-overlay span {
    color: #fff;
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transform: translateY(20px);
    transition: transform 0.4s ease;
    text-align: center;
}

.grid-item:hover .grid-overlay span {
    transform: translateY(0);
}

.grid-item:hover img {
    transform: scale(1.1);
}

/* ═══ 4. ACCOMMODATIONS ═══ */
.tour-accommodations {
    padding: 6rem 5%;
    background: url('../img/bg.jpg') center/cover;
}

.section-title-line {
    text-align: center;
    font-size: 2.5rem;
    /* margin-bottom: 4rem; */
    color: #000000;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}



.acc-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.acc-card {
    background: rgba(255, 255, 255, 0.95);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.acc-card h3 {
    font-size: 2rem;
    color: var(--tour-primary);
    margin-bottom: 0.5rem;
}

.acc-location {
    font-size: 1.1rem;
    color: var(--tour-accent);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.acc-main-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.acc-thumb-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 10px;
    margin-bottom: 2rem;
}

.acc-thumb {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.acc-thumb:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.acc-text {
    line-height: 1.7;
    color: var(--tour-text-muted);
    margin-bottom: 1rem;
    text-transform: lowercase;
}

.acc-btn {
    display: inline-block;
    background: var(--tour-primary);
    color: #fff !important;
    padding: 0.8rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
}

.acc-btn:hover {
    background: #000;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* ═══ 5. DINING ═══ */
.tour-dining {
    padding: 6rem 5%;
    background-color: var(--tour-bg-alt);
    text-align: center;
}

.dining-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
    color: var(--tour-primary);
}

.dining-showcase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.dining-block {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.dining-main-img-wrap {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.dining-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.dining-block:hover .dining-main-img {
    transform: scale(1.03);
}

.dining-logo-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 10%;
}

.dining-logo {
    width: 100%;
    height: 70px;
    object-fit: contain;
    background: #fff;
    padding: 8px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.dining-logo:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.dining-logo.active {
    border-color: var(--tour-primary);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* ═══ 6. ACTIVITIES ═══ */
.tour-activities {
    padding: 6rem 5%;
    text-align: center;
    height: auto;
    background-image: url('../img/activities.png');
    background-repeat: no-repeat;
    background-position: 50.00% 50.00%;
    background-size: cover;
    background-color: transparent;
}

.tour-activities h2 {
    color: var(black);
    font-style: normal;
    color: var(--bs-black);
}

.act-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.act-subtitle {
    font-size: 1.2rem;
    color: var(--tour-text-muted);
    margin-bottom: 3rem;
}

.act-grid-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.act-category-title {
    font-size: 1.8rem;
    color: var(--tour-primary);
    margin-bottom: 2rem;
}

.inner-act-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.inner-act-grid .grid-item {
    position: relative;
    padding-top: 0;
    /* Remove fixed padding-top */
    height: 250px;
    /* Fixed height for consistency */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.inner-act-grid .grid-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* This makes all images fill the space equally */
    transition: transform 0.5s ease;
}



.book-now-btn {
    display: inline-block;
    background: #000;
    color: #fff !important;
    padding: 1.2rem 3.5rem;
    text-decoration: none;
    font-weight: 700;
    border-radius: 8px;

    letter-spacing: 2px;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.book-now-btn:hover {
    background: var(--tour-primary);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* ═══ 7. PRICE/DAY GRID ═══ */
.tour-schedule {
    padding: 6rem 10%;
    background-color: #a7ccd0;
}

.schedule-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background-color: rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.schedule-item {
    background: rgba(255, 255, 255, 0.5);
    padding: 3rem 2rem;
    text-align: center;
}

.day-label {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.swiper-wrapper {
    display: flex;
    align-items: stretch;
    /* Force all slides to be equal height */
}

.swiper-slide {
    display: flex !important;
    height: auto !important;
}

.review-card {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #ece8e2;
    border-radius: 10px;
    padding: 2.5rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border-left: 4px solid var(--tour-primary);
    text-align: left;
}

.day-price {
    font-size: 1.1rem;
    color: var(--tour-text-muted);
}

/* ═══ 8. REVIEWS & INSTAGRAM ═══ */
.tour-footer-content {
    padding: 4rem 10%;
    text-align: center;
}

.quote-section {
    max-width: 800px;
    margin: 0 auto 5rem;
}

.quote-text {
    font-size: 1.8rem;
    font-family: 'Playfair Display', serif;
    font-style: italic;
    line-height: 1.5;
}

.review-author {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: block;
    color: var(--tour-primary);
}

.review-text {
    color: var(--tour-text-muted);
    line-height: 1.8;
}

/* Swiper Pagination Styling */
.reviews-swiper {
    padding-bottom: 50px !important;
    /* Space for dots */
}

.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--tour-primary) !important;
}

.swiper-pagination {
    bottom: 0 !important;
}

.insta-section h4 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

/* Premium Instagram Section */
.insta-section-premium {
    background: #fdfcf9;
    border-radius: 20px;
    margin: 4rem 2rem;
    border: 1px solid #f1ece4;
}

.insta-subtitle {
    color: #6c757d;
    font-size: 1.1rem;
    letter-spacing: 1px;
}

.insta-ornament {
    width: 60px;
    height: 3px;
    background: var(--tour-primary);
    margin: 1rem auto;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.insta-img-wrapper {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
}

.insta-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.insta-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2rem;
    opacity: 0;
    transition: all 0.4s ease;
}

.grid-item:hover .insta-overlay {
    opacity: 1;
}

.grid-item:hover .insta-img-wrapper img {
    transform: scale(1.15);
}

.insta-follow-btn {
    display: inline-flex;
    align-items: center;
    background: #fff;
    color: #000;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.insta-follow-btn:hover {
    background: #000;
    color: #fff !important;
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Contact Strip Redesigned */
.contact-strip-section {
    border-top: 1px solid #eee;
    padding-top: 5rem;
}

.contact-info-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    background: #fff;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.03);
}

.contact-method {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
    color: #444;
    padding: 0 1.5rem;
    border-right: 1px solid #eee;
}

.contact-method:last-child {
    border-right: none;
}

.contact-method i {
    color: var(--tour-primary);
    font-size: 1.1rem;
}

.contact-method a {
    color: #000;
    text-decoration: none;
    margin-left: 5px;
    transition: color 0.3s ease;
}

.contact-method a:hover {
    color: var(--tour-primary);
    text-decoration: underline;
}

.contact-strip-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    color: #222;
}

/* Final Footer Info Enhancements */
.tour-final-contact {
    background-color: #fff;
    width: 100%;
    overflow: hidden;
}

.final-banner {
    width: 100% !important;
    min-height: 400px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../img/not-sucure.jpg') center/cover no-repeat;
}

.final-banner-title {
    font-family: 'Raleway', sans-serif;
    font-weight: 300;
    letter-spacing: 3px;
    font-size: 2.5rem;
    color: #fff;
}

.final-availability-title {
    color: #6da4b0;
    font-family: 'Raleway', sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
}

.final-pura-vida-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2.8rem;
}

.contact-mini-form .form-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.8rem;
}

.contact-mini-form .form-control {
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    padding: 0.5rem 0;
    font-size: 1.1rem;
    color: #000;
    transition: border-color 0.3s ease;
}

.contact-mini-form .form-control:focus {
    box-shadow: none;
    border-color: var(--tour-primary);
}

.btn-submit-mini {
    background: #000;
    color: #fff;
    border: none;
    padding: 1rem 4rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    cursor: pointer;
}

.btn-submit-mini:hover {
    background: var(--tour-primary);
    transform: scale(1.05);
}

.final-footer-info {
    background: #fafafa;
    border-radius: 30px;
    margin: 0 5%;
}

.final-quote {
    font-size: 1.6rem;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    color: #555;
    max-width: 800px;
    margin: 0 auto 1.5rem;
    line-height: 1.4;
}

.phone-block {
    font-size: 1.2rem;
    font-family: 'Raleway', sans-serif;
    color: #333;
    transition: color 0.3s ease;
}

.phone-block strong {
    color: var(--tour-primary);
    margin-right: 10px;
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 992px) {

    .acc-container,
    .act-grid-container {
        grid-template-columns: 1fr;
    }

    .image-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dining-grid,
    .schedule-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-main-title {
        font-size: 2.5rem;
    }

    .tour-hero-content {
        padding: 2rem;
    }

    .dining-grid,
    .schedule-grid,
    .image-grid,
    .reviews-container {
        grid-template-columns: 1fr;
    }
}

/* ═══ 9. REVEAL ANIMATIONS ═══ */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    visibility: visible !important;
    /* Ensure it's not hidden by other styles */
}

/* Match both naming conventions used in the project (.active and .visible) */
.reveal.active,
.reveal.visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* Stagger delays */
.delay-1 {
    transition-delay: 0.15s;
}

.delay-2 {
    transition-delay: 0.3s;
}

.delay-3 {
    transition-delay: 0.45s;
}