/*==================================================Community ride==================================================*/
/*==================================================Community ride==================================================*/
/*==================================================Community ride==================================================*/
/*==================================================Community ride==================================================*/


/* ==========================================
   COMMUNITY RIDE DETAILS
========================================== */

.ride-details-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 99999;

    background: #050505;

    overflow: hidden;

    opacity: 0;
    visibility: hidden;

    transform: scale(1.04);

    transition:
        opacity .6s ease,
        visibility .6s ease,
        transform .8s cubic-bezier(.16,1,.3,1);
}


/* ACTIVE */

.ride-details-overlay.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
}


/* ==========================================
   BACKGROUND
========================================== */

.ride-bg {
    position: absolute;
    inset: 0;

    overflow: hidden;
}

.ride-bg img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transform: scale(1.12);

    filter:
        brightness(.52)
        contrast(1.08)
        saturate(.8);

    transition:
        transform 1.8s cubic-bezier(.16,1,.3,1);
}


.ride-details-overlay.active .ride-bg img {
    transform: scale(1);
}


/* DARK GRADIENT */

.ride-dark-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(3,5,8,.98) 0%,
            rgba(3,5,8,.90) 28%,
            rgba(3,5,8,.48) 55%,
            rgba(3,5,8,.18) 100%
        );

    z-index: 1;
}


/* BOTTOM DARK */

.ride-dark-overlay::after {
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            0deg,
            rgba(0,0,0,.9),
            transparent 40%
        );
}


/* ORANGE GLOW */

.ride-orange-glow {
    position: absolute;

    width: 600px;
    height: 600px;

    right: -200px;
    bottom: -300px;

    background: rgba(244,68,46,.20);

    filter: blur(100px);

    border-radius: 50%;

    z-index: 1;

    pointer-events: none;
}


/* ==========================================
   TOP
========================================== */

.ride-details-top {

    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    padding:
        35px 5vw;

    display: flex;

    justify-content: space-between;
    align-items: center;

    z-index: 10;
}


.ride-brand {

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size: 17px;

    font-weight: 800;

    letter-spacing: 4px;
}


.ride-brand span {

    color: #f0442e;

    font-size: 9px;

    letter-spacing: 2px;

    margin-left: 8px;
}


/* ==========================================
   CLOSE BUTTON
========================================== */

.ride-close-btn {

    width: 55px;
    height: 55px;

    border: 1px solid rgba(255,255,255,.3);

    border-radius: 50%;

    background:
        rgba(0,0,0,.25);

    backdrop-filter: blur(10px);

    cursor: pointer;

    position: relative;

    transition: .35s ease;
}


.ride-close-btn:hover {

    background: #f0442e;

    border-color: #f0442e;

    transform: rotate(90deg);
}


.ride-close-btn span {

    position: absolute;

    width: 20px;
    height: 1px;

    background: #fff;

    left: 17px;
    top: 26px;
}


.ride-close-btn span:first-child {
    transform: rotate(45deg);
}


.ride-close-btn span:last-child {
    transform: rotate(-45deg);
}


/* ==========================================
   MAIN CONTAINER
========================================== */

.ride-details-container {

    position: relative;

    z-index: 5;

    height: 100vh;

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1.25fr)
        minmax(280px, .75fr);

    align-items: center;

    padding:
        110px 8vw 80px;
}


/* ==========================================
   LEFT INFO
========================================== */

.ride-info {

    max-width: 800px;

    transform: translateY(40px);

    opacity: 0;

    transition:
        opacity .8s ease .2s,
        transform .9s cubic-bezier(.16,1,.3,1) .2s;
}


.ride-details-overlay.active .ride-info {

    opacity: 1;

    transform: translateY(0);
}


/* NUMBER */

.ride-number {

    color: #f0442e;

    font-size: 11px;

    font-weight: 700;

    letter-spacing: 3px;

    margin-bottom: 28px;
}


/* CATEGORY */

.ride-category {

    display: inline-flex;

    align-items: center;

    gap: 10px;

    font-size: 10px;

    font-weight: 700;

    color: #fff;

    letter-spacing: 2px;

    margin-bottom: 15px;
}


.ride-category::before {

    content: "";

    width: 28px;
    height: 1px;

    background: #f0442e;
}


/* TITLE */

.ride-title {

    margin: 0;

    color: #fff;

    font-family:
        Arial,
        sans-serif;

    font-size:
        clamp(55px, 7vw, 110px);

    line-height: .88;

    font-weight: 800;

    letter-spacing: -5px;

    text-transform: uppercase;
}


.ride-title span {

    display: block;

    color: #f0442e;

    font-family:
        Georgia,
        serif;

    font-style: italic;

    font-weight: 500;

    letter-spacing: -4px;
}


/* DESCRIPTION */

.ride-description {

    max-width: 530px;

    margin:
        35px 0;

    color:
        rgba(255,255,255,.72);

    font-size: 15px;

    line-height: 1.8;

    font-weight: 400;
}


/* ==========================================
   META GRID
========================================== */

.ride-meta-grid {

    display: grid;

    grid-template-columns:
        repeat(4, auto);

    gap: 45px;

    padding:
        25px 0;

    border-top:
        1px solid rgba(255,255,255,.18);

    border-bottom:
        1px solid rgba(255,255,255,.18);
}


.ride-meta-item {

    display: flex;

    flex-direction: column;

    gap: 8px;
}


.ride-meta-item span {

    font-size: 8px;

    letter-spacing: 2px;

    color:
        rgba(255,255,255,.45);
}


.ride-meta-item strong {

    color: #fff;

    font-size: 11px;

    letter-spacing: 1px;

    font-weight: 600;
}


/* ==========================================
   ROUTE
========================================== */

.ride-route {

    margin-top: 28px;

    display: flex;

    align-items: center;

    max-width: 570px;
}


.route-line {

    display: flex;

    align-items: center;

    gap: 13px;
}


.route-point {

    width: 12px;
    height: 12px;

    border-radius: 50%;

    border: 1px solid #f0442e;

    display: flex;

    align-items: center;
    justify-content: center;
}


.route-point span {

    width: 4px;
    height: 4px;

    background: #f0442e;

    border-radius: 50%;
}


.route-point.end {

    border-color: #fff;
}


.route-point.end span {

    background: #fff;
}


.route-content {

    display: flex;

    flex-direction: column;

    gap: 5px;
}


.route-content small {

    font-size: 7px;

    color:
        rgba(255,255,255,.4);

    letter-spacing: 2px;
}


.route-content strong {

    color: #fff;

    font-size: 11px;

    letter-spacing: .5px;
}


.route-divider {

    width: 70px;

    height: 1px;

    margin:
        0 20px;

    background:
        repeating-linear-gradient(
            90deg,
            rgba(255,255,255,.4) 0 4px,
            transparent 4px 8px
        );
}


/* ==========================================
   BUTTONS
========================================== */

.ride-actions {

    margin-top: 35px;

    display: flex;

    align-items: center;

    gap: 20px;
}


.ride-main-btn {

    display: inline-flex;

    align-items: center;

    gap: 35px;

    padding:
        17px 25px;

    background: #f0442e;

    color: #fff;

    text-decoration: none;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 1.5px;

    transition: .35s ease;
}


.ride-main-btn span {

    font-size: 17px;

    transition: .3s ease;
}


.ride-main-btn:hover {

    background: #fff;

    color: #111;
}


.ride-main-btn:hover span {

    transform: translate(4px,-4px);
}


.ride-share-btn {

    border: 0;

    background: transparent;

    color: #fff;

    font-size: 9px;

    font-weight: 700;

    letter-spacing: 1.5px;

    cursor: pointer;

    padding: 15px;
}


.ride-share-btn span {

    color: #f0442e;

    margin-left: 8px;
}


/* ==========================================
   RIGHT SIDE
========================================== */

.ride-side-info {

    justify-self: end;

    width: 300px;

    transform: translateX(50px);

    opacity: 0;

    transition:
        opacity 1s ease .45s,
        transform 1s cubic-bezier(.16,1,.3,1) .45s;
}


.ride-details-overlay.active .ride-side-info {

    opacity: 1;

    transform: translateX(0);
}


.ride-side-heading {

    color: #f0442e;

    font-size: 9px;

    letter-spacing: 3px;

    margin-bottom: 25px;

    padding-bottom: 15px;

    border-bottom:
        1px solid rgba(255,255,255,.15);
}


/* STAT */

.ride-stat {

    display: flex;

    align-items: center;

    gap: 20px;

    padding:
        18px 0;

    border-bottom:
        1px solid rgba(255,255,255,.12);
}


.stat-number {

    color: #fff;

    font-size: 45px;

    line-height: 1;

    font-weight: 700;

    letter-spacing: -2px;
}


.ride-stat small {

    display: block;

    color:
        rgba(255,255,255,.5);

    font-size: 8px;

    letter-spacing: 2px;

    margin-bottom: 5px;
}


.ride-stat p {

    margin: 0;

    color:
        rgba(255,255,255,.75);

    font-size: 10px;
}


/* ==========================================
   HIGHLIGHTS
========================================== */

.ride-highlights {

    margin-top: 35px;
}


.ride-highlights > span {

    font-size: 8px;

    color:
        rgba(255,255,255,.45);

    letter-spacing: 2px;
}


.highlight-tags {

    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top: 15px;
}


.highlight-tags div {

    padding:
        8px 11px;

    border:
        1px solid rgba(255,255,255,.2);

    color: #fff;

    font-size: 7px;

    letter-spacing: 1px;

    background:
        rgba(255,255,255,.03);

    backdrop-filter: blur(5px);
}


/* ==========================================
   BOTTOM
========================================== */

.ride-bottom {

    position: absolute;

    bottom: 25px;

    left: 8vw;
    right: 8vw;

    z-index: 10;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.ride-scroll {

    color:
        rgba(255,255,255,.55);

    font-size: 8px;

    letter-spacing: 2px;

    display: flex;

    align-items: center;

    gap: 12px;
}


.ride-scroll span {

    width: 1px;

    height: 35px;

    background: #f0442e;

    display: block;

    animation:
        scrollLine 1.6s infinite ease-in-out;
}


@keyframes scrollLine {

    0% {
        transform: scaleY(.3);
        transform-origin: top;
    }

    50% {
        transform: scaleY(1);
        transform-origin: top;
    }

    100% {
        transform: scaleY(.3);
        transform-origin: bottom;
    }

}


.ride-index {

    color:
        rgba(255,255,255,.6);

    font-size: 9px;

    letter-spacing: 2px;
}


.ride-index i {

    display: inline-block;

    width: 30px;

    height: 1px;

    background: #f0442e;

    margin:
        0 8px 3px;
}


/* ==========================================
   CARD HOVER
========================================== */

.collective-join {

    position: relative;

    z-index: 5;

    cursor: pointer;
}


.collective-join span {

    display: inline-block;

    transition: .3s ease;
}


.collective-join:hover span {

    transform: translateX(7px);
}


/* ==========================================
   BODY LOCK
========================================== */

body.ride-overlay-open {

    overflow: hidden;
}


/* ==========================================
   MOBILE
========================================== */

@media (max-width: 991px) {

    .ride-details-container {

        grid-template-columns: 1fr;

        overflow-y: auto;

        height: 100vh;

        padding:
            120px 7vw 100px;
    }


    .ride-side-info {

        justify-self: start;

        width: 100%;

        max-width: 500px;

        margin-top: 45px;
    }


    .ride-title {

        font-size:
            clamp(48px, 12vw, 80px);

        letter-spacing: -3px;
    }


    .ride-meta-grid {

        grid-template-columns:
            repeat(2, 1fr);

        gap: 22px;
    }


    .ride-route {

        flex-wrap: wrap;
    }

}


/* ==========================================
   SMALL MOBILE
========================================== */

@media (max-width: 575px) {

    .ride-details-top {

        padding:
            22px 5vw;
    }


    .ride-brand {

        font-size: 13px;

        letter-spacing: 3px;
    }


    .ride-close-btn {

        width: 45px;
        height: 45px;
    }


    .ride-close-btn span {

        top: 21px;
        left: 13px;
    }


    .ride-title {

        font-size: 48px;

        line-height: .92;
    }


    .ride-description {

        font-size: 13px;

        line-height: 1.7;

        margin: 25px 0;
    }


    .ride-meta-grid {

        gap: 18px;

        padding: 20px 0;
    }


    .ride-route {

        display: block;
    }


    .route-divider {

        width: 1px;

        height: 25px;

        margin:
            7px 0 7px 6px;
    }


    .ride-actions {

        flex-direction: column;

        align-items: flex-start;
    }


    .ride-main-btn {

        width: 100%;

        justify-content: space-between;
    }


    .ride-side-info {

        margin-top: 35px;
    }


    .ride-bottom {

        display: none;
    }

}



button.collective-join.ride-details-trigger{
    padding-left: 0;
}