/* =========================================================
   XPLORE MOTORCYCLES — RIO-DE-JANEIRO
   Page-specific styles. Shared layout lives in base.css.
   ========================================================= */

/* =========================================================
   1. GLOBAL RESET / TYPOGRAPHY
   ========================================================= */
.xplore-rio-layout-wrapper,
.xplore-rio-layout-wrapper * {
    font-family: 'Montserrat', 'Inter', sans-serif !important;
}

.xplore-rio-layout-wrapper {
    overflow: visible !important;
    transform: none !important;
    contain: none !important;
}

/* =========================================================
   8. TOUR CARDS
   ========================================================= */
.rio-tour-card {
    background-color: #FFFFFF;
    border: 1px solid #EAEAEA;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
}

.rio-tour-card:hover {
    border-color: #A38A5F;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.08);
}

.rio-inc-pill {
    display: inline-block;
    background-color: #F4F4F2;
    color: #444444;
    font-size: 11px;
    font-weight: 600;
    padding: 6px 12px;
    margin: 3px 2px;
}

.tour-cta-btn {
    background-color: #111111;
    color: #FFFFFF;
    text-decoration: none;
    padding: 16px 25px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    display: block;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.tour-cta-btn:hover {
    background-color: #A38A5F;
    color: #FFFFFF;
}

/* =========================================================
   9. TOUR CARD CAROUSELS
   ========================================================= */
.inner-tour-carousel {
    position: relative;
    height: 280px;
    width: 100%;
    overflow: hidden;
}

.inner-carousel-track {
    display: flex;
    height: 100%;
    transition:
    transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.inner-carousel-slide {
    min-width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.inner-carousel-slide:hover {
    opacity: 0.92;
}

.inner-car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 35px;
    height: 35px;
    background-color: rgba(17, 17, 17, 0.6);
    color: #FFFFFF;
    border: none;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s;
    z-index: 5;
    font-size: 16px;
    opacity: 0;
    pointer-events: none;
}

.inner-tour-carousel:hover .inner-car-btn {
    opacity: 1;
    pointer-events: auto;
}

.inner-car-btn:hover {
    background-color: #A38A5F;
}

.inner-car-prev {
    left: 15px;
}

.inner-car-next {
    right: 15px;
}

/* =========================================================
   10. REVIEWS
   ========================================================= */
.review-slide {
    flex: 0 0 calc(50% - 15px);
    width: calc(50% - 15px);
}

/* =========================================================
   11. LIGHTBOX
   ========================================================= */
.rio-lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 2147483646;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.rio-lightbox-img-element {
    margin: auto;
    display: block;
    max-width: 85%;
    max-height: 80vh;
    object-fit: contain;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    border: 1px solid #333333;
}

.rio-lightbox-close-trigger {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #FFFFFF;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s;
}

.rio-lightbox-close-trigger:hover {
    color: #A38A5F;
}

/* =========================================================
   13. RESPONSIVE
   ========================================================= */
@media (max-width: 1400px) {
    .rio-collage-photo {
        display: none !important;
    }
}

@media (max-width: 991px) {
    .rio-tours-grid,
    .rio-req-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .corider-callout-grid {
        grid-template-columns: 1fr !important;
        gap: 30px !important;
    }

    .inner-car-btn {
        opacity: 1;
        pointer-events: auto;
    }

    .review-slide {
        flex: 0 0 100%;
        width: 100%;
    }

    #prevBtn,
    #nextBtn {
        display: none;
    }
}
