.rt-catalog{
    width:100%;
    max-width:1200px;
    margin:auto;
    padding:20px;
}
 .rt-filters{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:20px;
    margin-bottom:40px;
    align-items:end;
    box-shadow: 0px 4px 20px 0px rgba(75, 133, 137, 0.1);
    padding: 30px 32px;
    border-radius: 24px;
}

.rt-filter label{
    display:block;
    font-weight:600;
    margin-bottom:6px;
    font-size: 24px;
    font-family: 'Figtree';
}


.rt-catalog .rt-btn{
    background: #4B8589;
    color:#fff;
    font-size: 24px !important;
    font-family: 'Figtree';
    border:none;
    padding:10px 20px;
    border-radius:40px;
    cursor:pointer;
    height: 56px !important;
} 


.rt-filter .select2-container--default .select2-selection--multiple{
    width:100%;
    height:20px;
    min-height: 44px;
    padding:8px;
    border-radius:8px;
    border:1px solid #ddd;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url(https://staging.roadtrip2go.nl/wp-content/uploads/2025/12/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 15px;
    background-color: transparent;
    overflow: hidden;
}

/* Force single row */
.select2-container--default 
.select2-selection--multiple 
.select2-selection__rendered{
    display:flex !important;
    flex-wrap:nowrap !important;
    overflow:hidden !important;
    white-space:nowrap;
    gap:6px;
    margin:0;
}

li.select2-selection__choice {
    display: none !important;
}

/* Show only first 3 selected items */
.select2-container--default 
.select2-selection--multiple 
.select2-selection__choice{
    flex-shrink:0;
}

/* Hide everything after 3rd */
.select2-container--default 
.select2-selection--multiple 
.select2-selection__choice:nth-child(n+4){
    display:none !important;
}

.select2-selection__rendered:after {
    content: "Laat alles zien";
    font-weight: 400;
    font-size: 16px;
    color: #919191;
}

.rt-filter .select2-search.select2-search--inline {
    margin-top: -4px !important;
    display: none !important;
}

.select2-dropdown{
    border-radius:16px;
    box-shadow:0 10px 30px rgba(0,0,0,.1);
}

.select2-results__option{
    padding:12px 16px;
    font-size:16px;
}

.select2-results__option--selected{
    background-color: #4B8589 !important;
    color: white !important;
}

.select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
    background-color: #00476B !important;
    color: white;
}

.select2-container--open .select2-dropdown--below {
    margin-top: 0px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    font-size: 10px;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    border: none !important;
    padding: 0px;
    padding-left: 4px;
}

.rt-selected-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.rt-selected-filters > *{white-space:nowrap;}
.rt-selected-filters{max-width:100%;overflow:hidden;}

.rt-selected-filters .rt-selected-filter {
    background: rgba(237, 248, 245, 0.6);
    padding: 6px 15px;
    font-size: 16px;
    font-weight: 300;
    margin: 0px;
    border-radius: 40px;
    display: flex;
    flex-direction: row;
    gap: 7px;
    align-items: center;
    height: fit-content;
    width: max-content;
}

.rt-selected-filters .rt-selected-filter strong {
    display: none;
}

.rt-selected-filters .rt-remove-filter {
    padding: 0px;
    background: transparent;
    font-size: 26px !important;
    margin: 0px;
    margin-top: -2px;
    height: max-content;
    width: auto;
    line-height: 0px !important;
}

.rt-selected-filters .rt-remove-filter:hover {
    background: transparent;
}

.select2-selection__rendered{
    display:none; /* hides chips */
}

/**** Sorting CSS ****/
.rt-toolbar {
    display: flex;
    justify-content:space-between;
    margin-bottom: 40px;
    gap:20px;
}

.rt-toolbar #rt-sort {
    color: #919191;
    background: transparent;
    border-radius: 30px;
    border-color: #919191;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url(https://staging.roadtrip2go.nl/wp-content/uploads/2025/12/arrow-down.svg);
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    height: 40px;
    padding: 0px 30px 0px 15px;
    width: max-content;
}

.rt-filters-text-wrapper {
    display: flex;
    flex-direction: row;
    gap: 20px;
    align-items: baseline;
}

.rt-filters-text-wrapper .rt-filters-title {
    font-weight: 500;
    font-size: 20px;
}

/**************************
**** Products Card CSS ****
***************************/
.rt-products{
    display:grid;
    flex-direction:column;
    gap:30px;
    grid-template-columns: 1fr;
}
.rt-trip-card{
    display: grid;
    grid-template-columns: 1fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
    position: relative;
    min-height: 350px;
    font-family: 'Figtree';
}

.rt-trip-image{
    position:relative;
    min-height:350px;
    background-size:cover;
    background-position:center;
}
.rt-badge{
    position:absolute;
    top:20px;left:20px;
    background:#fff;
    padding:6px 20px;
    border-radius:20px;
    font-size: 16px;
    font-weight: 600;
} 

.rt-trip-overlay{
    position: absolute;
    color: #fff;
    width: -webkit-fill-available;
    padding: 20px 20px;
    bottom: 0px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.01)), linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.25) 100%);
    backdrop-filter: blur(4px);
}
.rt-trip-overlay h2.rt-product-title{
    margin: 0 0 6px;
    font-size: 24px;
    font-weight: 700;
    color: white ;
}
.rt-trip-overlay p {
    font-size: 16px;
    word-spacing: 10px;
    margin-bottom: 0px;
}

.rt-trip-side{
    display: flex;
    flex-direction: column;
    position: absolute;
    background: rgba(255, 255, 255, 0.5);
    right: 0px;
    min-width: 328px;
    margin: 10px;
    border-radius: 20px;
    backdrop-filter: blur(20px);
    height: calc(100% - 20px);
    justify-content: space-between;
    overflow: hidden;
}

.rt-image-map-wrapper {
    padding-top: 20px;
}
.rt-image-map-wrapper > .rt-map{
    width:100%;
    border-radius:12px;
    height: 180px;
    object-fit: contain;
}
.rt-pricing-wrapper {
    background: white;
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rt-pricing-wrapper .rt-pricing{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:0px
}
.rt-price-item{
    position: relative;
    text-align:center;
    line-height: 22px;
}
.rt-price-item:after {
    content: "";
    position: absolute;
    height: 20px;
    width: 1px;
    background: #14141440;
    right: 0px;
    color: #14141440;
    top: 20px;
}

.rt-price-item:last-child:after{display:none;}

.rt-days {
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    color: #141414;
}

.rt-price {
    font-weight: 400;
    font-size: 16px;
    color: #919191;
}

.rt-pricing-wrapper .rt-view-btn {
    background: #D89A2B;
    font-size: 16px !important;
    padding: 6px 20px;
    height: auto !important;
    text-decoration: none;
    text-align: center;
}
.rt-pricing-wrapper .rt-view-btn:hover
 {
    background: #4B8589;
}

.rt-mobile-carousel{
    display:none;
}


/****Skeleton CSS***/

.skeleton{
    position:relative;
    overflow:hidden;
    background:#f3f3f3;
}
.skeleton::after{
    content:'';
    position:absolute;
    top:0;
    left:-150px;
    width:150px;
    height:100%;
    background:linear-gradient(90deg,transparent,rgba(255,255,255,.6),transparent);
    animation:shimmer 1.2s infinite;
}
@keyframes shimmer{
    100%{left:100%}
}


/*****Pagination CSS*****/
.rt-pagination {
    display: flex;
    flex-direction: row;
    gap: 10px;
    justify-content: center;
    margin-top: 40px;
}

.rt-pagination > .rt-pagination-btn,
.rt-pagination > .rt-pagination-arrow {
    width: 40px !important;
    height: 40px;
    color: #141414;
    font-size: 16px;
    border-radius: 10px;
    padding: 0px;
    background: #4b858917;
    border: 1px solid #eff4f4;
}

.rt-pagination > .rt-pagination-arrow {
    background: transparent;
    border: 1px solid #ededed;
}

.rt-pagination > .rt-pagination-btn:hover {
    border-radius: 10px;
    color: white;
}

.rt-pagination > .rt-pagination-arrow:hover {
    border-radius: 10px;
    background-color: #4B8589!important;
}

 .rt-pagination button.active {
    background: #4B8589;
    color: white;
}

.rt-pagination > .rt-pagination-arrow:hover img {
    filter: brightness(0) invert(1);
}

.rt-pagination-btn.active{
    background:#4B8589;
    color:#fff;
}

.rt-pagination-arrow.disabled:hover {
    background: #7c7c7c !important;
}

.rt-pagination-arrow{
    border:1px solid #ddd;
    width:48px;
    height:48px;
    border-radius:12px;
}

.rt-pagination-arrow.previous img {
    transform: rotate(180deg);
}

.rt-pagination-arrow.disabled{
    opacity:.4;
    cursor:not-allowed;
}

.rt-pagination-ellipsis{
    font-size:22px;
    padding:0 6px;
}



/****** Media Queries *****/


@media(max-width:900px){
    .rt-trip-card{grid-template-columns:1fr}
    .rt-filters{grid-template-columns:1fr}
    .rt-products{grid-template-columns:1fr}
}

@media (max-width:1024px){
     .rt-trip-overlay h2.rt-product-title{
        width: 60%;
     }
}

@media (max-width: 850px) {
    .rt-trip-overlay h2.rt-product-title
 {
        width: 55%;
    }
}

@media (max-width:768px){

    .rt-toolbar{
        flex-direction: column-reverse;
        align-items: end;
        gap: 10px;
    }

    button#rt-search {
        height: 48px !important;
        font-size: 20px !important;
    }

    .rt-filter label {
        font-size: 18px;
    }

    .rt-filters-text-wrapper {
        align-self: flex-start;
        flex-direction: column;
    }

    .rt-selected-filters .rt-selected-filter {
        font-size: 15px;
    }

    /* ===========================
        MOBILE PRODUCT CARD CSS
    ============================== */
    .rt-products{
        grid-template-columns: 1fr 1fr;
        gap:20px;
    }

    .rt-trip-card {
        background: transparent;
        border-radius: 0px !important;
        box-shadow: none;
    }

    /* Hide desktop-only elements */
    .rt-desktop-image,
    .rt-trip-side{
        display:none !important;
    }

    /* Enable mobile carousel */
    .rt-mobile-carousel{
        display:block;
        position:relative;
        border-radius:24px;
        overflow:hidden;
        width: 100%;
    }

    .rt-trip-overlay h2.rt-product-title {
        width: 100%;
        font-size: 20px !important;
    }

    /* Track */
    .rt-mobile-track{
        display:flex;
        width:100%;
        scroll-snap-type:x mandatory;
        overflow-x:auto;
        -webkit-overflow-scrolling:touch;
        scroll-behavior:smooth;
        overflow-y: hidden;
    }

    .rt-mobile-track::-webkit-scrollbar{
        display:none;
    }

    /* Slides */
    .rt-mobile-slide{
        width:100%;
        flex-shrink:0;
        scroll-snap-align:start;
        height: 536px;
        min-height:536px; 
        display: flex;
        flex-direction: column;
        justify-content: end;
        border-radius: 24px;
        position: relative;
    }

    /* Image slide */
    .rt-mobile-image{
        background-size:cover;
        background-position:center;
        padding: 20px;
    }


    /* Map slide */
    .rt-mobile-map{
        background-size: 270px;
        background-position: center;
        padding: 20px;
        background-repeat: no-repeat;
        border: 1px solid #dddddd;
    }

    /* Overlay (text + pricing + button) */
    .rt-mobile-image .rt-trip-overlay{
       position: relative;
       padding: 0px;
        backdrop-filter: none;
        z-index: 2 ;
        background:transparent;
    }

    .rt-mobile-image::after{
        content:"";
        position:absolute;
        inset:0;
        background:linear-gradient(
            180deg,
            rgba(0,0,0,0) 50%,
            rgba(0,0,0,.65) 100%
        );
        z-index:1;
        backdrop-filter: blur(20px);
        height: 45%;
        border-top-left-radius: 0px;
        border-top-right-radius: 0px;
        border-bottom-right-radius: 24px;
        border-bottom-left-radius: 24px;
        margin-top: auto;
        mask-image: linear-gradient(359deg, rgb(0 0 0) 0%, rgb(0 0 0) 25%, rgba(0, 0, 0, 1) 50%, rgb(0 0 0) 75%, rgb(0 0 0 / 0%) 100%);
        -webkit-mask-image: linear-gradient(359deg, rgb(0 0 0) 0%, rgb(0 0 0) 25%, rgba(0, 0, 0, 1) 50%, rgb(0 0 0) 75%, rgb(0 0 0 / 0%) 100%);
    }

    .rt-badge {

    background: rgba(255, 255, 255, 0.50);
    }

    /* Pricing block (inside overlay on mobile) */
    .rt-mobile-image .rt-pricing-wrapper{
        background: none;
        backdrop-filter: none;
        border-radius: 0px;
        margin-top: 0px;
        padding: 0px;
        width: 100%;
        height: fit-content;
        z-index: 2;
    }

     .rt-mobile-map .rt-pricing-wrapper {
        z-index: 2;
        background: none;
        padding: 0px;
    }

    .rt-pricing-wrapper .rt-pricing{
        background: rgba(0, 0, 0, .35);
        backdrop-filter: blur(6px);
        border-radius: 14px;
        margin-top: 12px;
        padding: 10px;
        border: 1px solid #ffffff40;
    }

    .rt-pricing .rt-days{
        color:#fff;
    }

    .rt-pricing .rt-price{
        color:rgba(255, 255, 255, 0.75);
    }
    .rt-pricing-wrapper .rt-view-btn {
        padding: 10px 20px;
        font-weight: 600;
    }

    .rt-pricing-wrapper .rt-price-item:after {
        height: 35px;
        width: 1px;
        background: rgba(255, 255, 255, 0.25);
        top: 5px;
    }

    /* Dots OUTSIDE card */
    .rt-mobile-dots{
        display:flex;
        justify-content:center;
        gap:8px;
        margin:12px 0 0;
        margin-bottom: 5px;
    }

    .rt-dot{
        width:14px;
        height:14px;
        border-radius:50%;
        background:#d6e5e4;
        cursor:pointer;
        transition:.3s;
    }

    .rt-dot.active{
        background:#4B8589;
    }

     .rt-pagination > .rt-pagination-btn,
    .rt-pagination > .rt-pagination-arrow {
        width: 35px !important;
        height: 35px !important;
    }
}

@media (max-width: 540px) {
    .rt-products {
        grid-template-columns: 1fr;
    }
}

