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

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

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

/* =========================================================
   TOUR CARDS
========================================================= */
.porto-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;
}

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

.porto-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;
}

/* =========================================================
   TOUR IMAGE CAROUSEL
========================================================= */
.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;
}

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

/* =========================================================
   LIGHTBOX
========================================================= */
.porto-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);
}

.porto-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;
}

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

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

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

@media (max-width: 991px) {
    .porto-tours-grid,
    .porto-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;
    }
}

/* Três tours: lado a lado no computador; abaixo de 992px a regra existente põe um por linha. */
@media (min-width: 992px) {
    .porto-tours-grid {
        grid-template-columns: repeat(3, 1fr) !important; gap: 30px !important;
    }
}

.cr-bcn {
    position: relative;
    background: #111111;
    color: #FFFFFF;
    padding: 110px 24px;
    overflow: hidden;
}

.cr-bcn::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(900px 520px at 85% 40%, rgba(163,138,95,0.16), transparent 70%);
    pointer-events: none;
}

.cr-bcn-inner {
    position: relative;
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.cr-bcn-tag {
    display: inline-block;
    padding: 5px 12px;
    background: #E2C28A;
    color: #111111;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

.cr-bcn h2 {
    margin: 0 0 22px;
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #FFFFFF !important;
}

.cr-bcn h2 em {
    font-style: normal;
    color: #E2C28A;
}

.cr-bcn-text p {
    margin: 0 0 18px;
    font-family: 'Inter', sans-serif;
    font-size: 15.5px;
    line-height: 1.8;
    color: #CCCCCC !important;
}

.cr-bcn-text strong {
    color: #FFFFFF;
}

.cr-bcn-perks {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 24px;
    margin: 30px 0 36px;
    padding: 24px 0;
    border-top: 1px solid #2A2A2A;
    border-bottom: 1px solid #2A2A2A;
    list-style: none;
}

.cr-bcn-perks li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    line-height: 1.5;
}

.cr-bcn-perks li span {
    display: block;
    margin-top: 3px;
    font-family: 'Inter', sans-serif;
    font-size: 12.5px;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: #999999;
}

.cr-bcn-perks svg {
    flex: none;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: #E2C28A;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 1px;
}

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

.cr-bcn-media {
    position: relative;
}

.cr-bcn-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 22px;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    text-decoration: none !important;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.cr-bcn-btn:hover {
    transform: translateY(-2px);
}

.cr-bcn-btn-gold {
    background: #E2C28A; color: #111111 !important;
}

.cr-bcn-btn-gold:hover {
    background: #FFFFFF;
}

.cr-bcn-btn-line {
    border: 1px solid #555555; color: #FFFFFF !important;
}

.cr-bcn-btn-line:hover {
    border-color: #E2C28A; color: #E2C28A !important;
}

.cr-bcn-btn svg {
    width: 16px; height: 16px; fill: currentColor;
}

/* the photo stage: real photos from our Barcelona co-rider tours */
.cr-bcn-stage {
    position: relative;
    aspect-ratio: 4 / 3.3;
    overflow: hidden;
    background: #1A1A1A;
    box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}

.cr-bcn-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1.2s ease;
}

.cr-bcn-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1.02);
}

.cr-bcn-slide.is-on {
    opacity: 1;
}

.cr-bcn-slide.is-on img {
    animation: cr-kenburns 7s ease-out forwards;
}

@keyframes cr-kenburns {
    from { transform: scale(1.02) translate(0, 0); }
    to   { transform: scale(1.12) translate(-1.5%, -1%); }
}

.cr-bcn-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0) 55%, rgba(0,0,0,0.65) 100%);
    pointer-events: none;
}

.cr-bcn-caption {
    position: absolute;
    left: 24px;
    bottom: 22px;
    z-index: 2;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: #FFFFFF;
    text-transform: uppercase;
}

.cr-bcn-caption b {
    color: #E2C28A; font-weight: 800;
}

.cr-bcn-dots {
    position: absolute;
    right: 22px;
    top: 22px;
    z-index: 2;
    display: flex;
    gap: 8px;
}

.cr-bcn-dots button {
    width: 28px;
    height: 3px;
    padding: 0;
    border: 0;
    background: rgba(255,255,255,0.35);
    cursor: pointer;
    transition: background-color 0.3s ease, width 0.3s ease;
}

.cr-bcn-dots button.is-on {
    width: 44px; background: #E2C28A;
}

.cr-bcn-quote {
    position: absolute;
    right: -36px;
    bottom: -58px;
    z-index: 3;
    max-width: 290px;
    padding: 22px 24px 20px;
    background: #FFFFFF;
    color: #111111;
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    border-left: 3px solid #A38A5F;
}

.cr-bcn-quote p {
    margin: 0 0 12px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-style: italic;
    line-height: 1.6;
    color: #333333 !important;
}

.cr-bcn-quote cite {
    display: block;
    margin: 0;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #111111;
}

.cr-bcn-quote cite span {
    display: block; margin-top: 3px; font-weight: 600; letter-spacing: 0.06em; color: #A38A5F;
}

.cr-bcn-stars {
    color: #E2C28A; letter-spacing: 2px; font-size: 12px; margin-bottom: 8px; display: block;
}

.cr-bcn .cr-reveal {
    opacity: 0; transform: translateY(26px); transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.165,0.84,0.44,1);
}

.cr-bcn .cr-reveal.is-in {
    opacity: 1; transform: none;
}

@media (max-width: 991px) {
    .cr-bcn {
        padding: 80px 20px;
    }

    .cr-bcn-inner {
        grid-template-columns: 1fr; gap: 50px;
    }

    .cr-bcn-media {
        order: -1;
    }

    .cr-bcn-quote {
        position: relative; right: auto; bottom: auto; max-width: none; margin: 14px 0 0;
    }
}

@media (max-width: 575px) {
    .cr-bcn-perks {
        grid-template-columns: 1fr;
    }

    .cr-bcn-btn {
        width: 100%; justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cr-bcn-slide.is-on img {
        animation: none;
    }

    .cr-bcn .cr-reveal {
        opacity: 1; transform: none; transition: none;
    }
}

.cr-routes {
    position: relative; max-width: 1300px; margin: 90px auto 0 auto; text-align: center;
}

.cr-routes .city-block-kicker {
    margin-bottom: 30px;
}

.cr-routes .city-route-grid {
    text-align: left;
}
