﻿
.carousel {
    /*margin-bottom:30rem;*/
}

.carousel-wrapperx {
    position: relative;
}

.carousel-headerx {
    position: absolute;
    top: 0;
    left: 0;
}

    .carousel-headerx > .container {
        border-radius: 1.5rem;
        padding: 1rem 3rem;
        min-height: 32rem;
    }

.carousel-indicators {
    bottom: -11.4rem !important;
    z-index: 10;
}

    .carousel-indicators > button.active {
        background-color: #0A014F !important;
        height: .8rem !important;
        width: 3rem !important;
        border-radius: 2rem !important;
        margin-top: .6rem;
        border: none;
        text-decoration: none;
        display: inline-block;
    }

    .carousel-indicators > button {
        margin-left: .4rem !important;
        margin-right: .4rem !important;
        background-color: #91BFD4 !important;
        opacity: 1 !important;
        width: .8rem !important;
        height: .8rem !important;
        border-radius: 50% !important;
    }
/*button */
.carousel-button-container {
    background-color: red !important;
    padding-left: 300px !important;
    position: relative;
}

.btn-circle {
    background-color: #F4361C;
    border-radius: 50%;
    padding: .5rem !important;
    margin: 0 !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .btn-circle > .carousel-control-prev-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF' stroke='%23FFFFFF' stroke-width='2'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
    }

    .btn-circle > .carousel-control-next-icon {
        background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23FFFFFF' stroke='%23FFFFFF' stroke-width='2'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
    }


    .btn-circle.disabled {
        opacity: 1 !important;
        border: solid .2rem #E0E0E0;
        background-color: #EDEDED !important;
        pointer-events: none;
    }

        .btn-circle.disabled > .carousel-control-prev-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239E9E9E' stroke='%239E9E9E' stroke-width='2'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
        }

        .btn-circle.disabled > .carousel-control-next-icon {
            background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239E9E9E' stroke='%239E9E9E' stroke-width='2'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
        }

.carousel-control-icon {
    padding: 0 !important;
    margin: 0 !important;
}

.carousel-inner {
    /*---- unhide*/
    /*display: flex !important;*/
    /*justify-content: center !important;*/
    /*---- unhide*/

    top: 8rem;
    gap: 1rem;
    padding: 0 2.5rem !important;
}

/*---- unhide*/
/*.carousel-inner .active {
        transform: translateX(0) !important;
    }*/


.carousel-item {
    /*flex: 0 0 auto !important;*/
    /*width:100% !important;*/
    transition: transform 0.5s ease !important;
    /*display: inline !important;*/
    /*---- unhide*/

    backface-visibility: visible !important;
    max-width: 900px;
}

    /*----------- unhide ------------*/
    /*.carousel-inner .carousel-item-next,
.carousel-inner .carousel-item-prev {
    transform: translateX(100%) !important;
    display:contents !important;
}

    .carousel-inner .carousel-item-next.carousel-item-start,
    .carousel-inner .carousel-item-prev.carousel-item-end {
        transform: translateX(0) !important;
    }*/
    /*----------- unhide ------------*/

    .carousel-item > div {
        border-radius: 1rem;
    }

        .carousel-item > div > div {
            /*background-color: green !important;*/
            padding: 2rem !important;
        }

            .carousel-item > div > div > div > img {
                object-fit: none; /* Do not scale the image */
                object-position: center; /* Center the image within the element */
                height: 15rem;
                width: 100%;
            }

            .carousel-item > div > div > div > div.card-body {
                z-index: 4 !important;
            }

.txt-bus-name {
}

.txt-bus-startfrom {
    padding: 1rem 0 0 0 !important;
    margin: auto !important;
}

.txt-bus-price {
    margin: auto !important;
    padding: 0 !important;
    font-size: 1.4rem !important;
}

.txt-bus-desc {
    margin: auto !important;
    padding: 1rem 0 0 0 !important;
}

.carousel-item .first {
    margin-left: 50rem;
}


/*--------------*/

/* Make the inner container a flexbox */
/*#fleetCarousel .carousel-inner {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    white-space: nowrap;
    gap: 20px; 
}*/

/* Set each carousel item to be inline-block */
/*#fleetCarousel .carousel-item {
    flex: 0 0 33.33%;*/ /* Show 3 items per view */
/*scroll-snap-align: center;
    transition: transform 0.5s ease;
}*/

/* Remove Bootstrap carousel behavior if you don't need sliding */
/*.carousel-item.active {
    transform: none !important;
}
*/

/* Hide default carousel controls if scrolling is used */
/*.carousel-control-prev,
.carousel-control-next {
    display: none;
}*/


/* =====================================================
   SLIDER TYPE 1 (Home Fleet / Dyna)
   ===================================================== */

/* Remove overflow constraints entirely - let carousel be fully visible.
   The .carousel-inner will handle horizontal clipping via container. */
#fleetCarousel {
    overflow: visible;
    padding-bottom: 4rem; /* Space for bottom indicators */
}

    /* Allow items to overflow both left and right for sneak peek effect */
    #fleetCarousel .carousel-inner {
        overflow: visible;
    }

    /* The d-flex row wrapping the two cards: no border-radius here,
   allow children to overflow right for the peek effect */
    #fleetCarousel .carousel-item > .d-flex {
        border-radius: 0 !important;
        overflow: visible !important;
    }

/* Ghost card: prev item sneak peek on the left */
#fleet-prev-ghost {
    position: absolute;
    top: 0;
    right: calc(100% + 1rem); /* sits just left of the active item */
    width: 100%;
    pointer-events: none;
    opacity: 1;
    z-index: 0;
    border-radius: 1rem;
    overflow: hidden;
}

/* Re-apply border-radius directly on each card */
#fleetCarousel .carousel-item > .d-flex > .card {
    border-radius: 1rem;
    padding: 0 !important;
}

    /* Re-apply inner content padding (mirrors original .carousel-item > div > div rule) */
    #fleetCarousel .carousel-item > .d-flex > .card > .row {
        padding: 2rem !important;
    }

        /* Re-apply image styles (one extra level deeper than the original selector) */
        #fleetCarousel .carousel-item > .d-flex > .card > .row > div > img {
            object-fit: cover; /* Changed from 'none' to 'cover' to prevent cropping on small screens */
            object-position: center;
            height: 15rem;
            width: 100%;
        }

/* ===== Responsive Fleet Carousel Fixes ===== */

/* Large screens (> 992px) - Move indicators up into blue wrapper */
@media (min-width: 993px) {
    .carousel-indicators {
        bottom: -6.5rem !important; /* Move indicators up */
    }

    #fleetCarousel {
        padding-bottom: 5rem; /* Extend blue wrapper to cover indicators */
    }
}

/* Medium screens (768px - 992px) */
@media (min-width: 768px) and (max-width: 992px) {
    /* Move indicators up into blue wrapper */
    .carousel-indicators {
        bottom: -5.7rem !important;
    }

    /* Extend blue wrapper */
    #fleetCarousel {
        padding-bottom: 5rem;
    }

        /* Lower the card content slightly */
        #fleetCarousel .carousel-item > .d-flex > .card {
            margin-top: 2.3rem;
        }

        /* Adjust prev/next buttons position - lower them slightly */
        #fleetCarousel .col-lg-2.position-relative {
            margin-top: -.7rem !important;
        }

        #fleetCarousel .carousel-headerx .container {
            height: 55vh !important;
        }
}

/* Small screens - iPad/Tablet (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    /* Move indicators between blue wrapper and white card */
    .carousel-indicators {
        bottom: -3.5rem !important;
    }

    /* Extend blue background wrapper to cover indicators */
    #fleetCarousel {
        padding-bottom: 8rem !important;
    }

        /* Lower the card content */
        #fleetCarousel .carousel-item > .d-flex > .card {
            margin-top: 3.5rem;
        }

        /* Center align prev/next buttons */
        #fleetCarousel .col-lg-2.position-relative {
            margin-top: 0 !important;
            text-align: center;
        }

            #fleetCarousel .col-lg-2.position-relative .row {
                justify-content: center !important;
            }

        /* Make white card taller */
        #fleetCarousel .carousel-item > .d-flex > .card > .row {
            padding: 1.5rem !important;
            min-height: 24rem;
        }

        #fleetCarousel .carousel-headerx .container {
            height: 70vh !important;
        }
}

/* Extra small screens - iPhone (< 576px) */
@media (max-width: 575px) {
    /* Move indicators between blue wrapper and white card */
    .carousel-indicators {
        bottom: -2.8rem !important;
    }

    /* Extend blue wrapper significantly to cover everything */
    #fleetCarousel {
        padding-bottom: 9rem !important;
    }

        /* Lower the card content more */
        #fleetCarousel .carousel-item > .d-flex > .card {
            margin-top: 4rem;
        }

        /* Center align prev/next buttons */
        #fleetCarousel .col-lg-2.position-relative {
            margin-top: 0 !important;
            text-align: center;
        }

            #fleetCarousel .col-lg-2.position-relative .row {
                justify-content: center !important;
            }

        /* Make white card much taller to accommodate content */
        #fleetCarousel .carousel-item > .d-flex > .card > .row {
            padding: 1.5rem !important;
            min-height: 26rem;
        }

        /* Adjust bus image sizing for iPhone */
        /*    #fleetCarousel .carousel-item > .d-flex > .card > .row > div > img {
        height: 13rem !important;
        object-fit: contain !important;
        padding: 0.5rem;
    }*/

        #fleetCarousel .carousel-headerx .container {
            height: 75vh !important;
        }
}

/* Very small screens - iPhone SE (< 430px) */
@media (max-width: 429px) {
    .carousel-indicators {
        bottom: -2.5rem !important;
    }

    #fleetCarousel {
        padding-bottom: 10rem !important;
    }

        #fleetCarousel .carousel-item > .d-flex > .card {
            margin-top: 4.5rem;
        }

        #fleetCarousel .carousel-headerx .container {
            height: 78vh !important;
        }
}

/* iPhone 14 Pro Max (430 x 932) */
@media (width: 430px) and (height: 932px) {
    .carousel-indicators {
        bottom: -2.2rem !important;
    }

    #fleetCarousel {
        padding-bottom: 11rem !important; /* Extend blue wrapper to cover indicators */
    }

        #fleetCarousel .carousel-item > .d-flex > .card {
            margin-top: 5rem; /* More space between buttons and white card */
        }

        #fleetCarousel .carousel-headerx .container {
            height: 78vh !important;
        }
}

/* iPhone 15 Pro Max (430 x 932) - Same dimensions as 14 PM */
@media (min-width: 430px) and (max-width: 430px) and (min-height: 932px) {
    .carousel-indicators {
        bottom: -2.2rem !important;
    }

    #fleetCarousel {
        padding-bottom: 11rem !important; /* Extend blue wrapper to cover indicators */
    }

        #fleetCarousel .carousel-item > .d-flex > .card {
            margin-top: 5rem; /* More space between buttons and white card */
        }

        #fleetCarousel .carousel-headerx .container {
            height: 78vh !important;
        }
}

/* iPhone SE specific (375 x 667) */
@media (min-width: 375px) and (max-width: 375px) and (max-height: 667px) {
    .carousel-indicators {
        bottom: -2.5rem !important;
    }

    #fleetCarousel {
        padding-bottom: 10rem !important;
    }

        #fleetCarousel .carousel-item > .d-flex > .card {
            margin-top: 5rem;
        }

        #fleetCarousel .carousel-headerx .container {
            height: 80vh !important;
        }

        #fleetCarousel .carousel-item > .d-flex > .card > .row {
            min-height: 28rem;
        }
}

/* ===================================================
   SLIDER TYPE 2 (Event / Tour / Shuttle Pages)
   =================================================== */

/* Outer blue container — wraps title, cards, and indicators */
.slider-section {
    position: relative;
    background-color: #D9E8F5;
    border-radius: 1.5rem;
    padding: 0 0 3.5rem 0;
    /*    overflow: hidden;*/
    
    /* ✅ EDIT */
    overflow: visible;
    
    margin-top: 2rem;
    margin-bottom: 2rem;
}

/* Header row: title left + buttons right — normal flow (NOT absolute) */
.slider-topz {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    background-color: transparent; /* section provides the blue bg */
    border-radius: 0;
    padding: 2rem 2rem 1.5rem;
    width: 100%;
    box-sizing: border-box;
    z-index: 2;
}

    .slider-topz > div > .slider-titlez {
        font-weight: bold;
        font-size: 2rem;
    }

    .slider-topz > div > .slider-descriptionz {
        font-weight: light;
        font-size: 1rem;
    }

    /* Ensure buttons stay on top */
    .slider-topz .btn-circle {
        position: relative;
        z-index: 10;
    }

/* Scroll track — normal flow below header, JS controls scrollLeft */
.horizontal-scrollz {
    position: relative;
    top: auto;
    /*    width: 100%;*/

    /* ✅ EDIT */
    width: calc(100% + 160px);

    /*    ADD*/
    margin-left: -80px;
    
    /* ✅ EDIT */
    padding: 0 80px 1rem 80px;
    
    overflow-x: auto;
    /*    overflow-x: scroll; */
    overflow-y: visible;
    scrollbar-color: transparent transparent;
}

    .horizontal-scrollz::-webkit-scrollbar {
        display: none;
    }

.slider-containerz {
    display: flex;
    padding: 0 2.5rem 1rem 0; /* right padding gives right sneak-peek breathing room */
    width: max-content;
    gap: 2rem;
    /* ✅ EDIT */
    padding: 0 80px 1rem 80px;
    margin-left: 0;
}

    .slider-containerz .item {
        position: relative;
        border-radius: 1.5rem;
        overflow: hidden;
        flex-shrink: 0;
        width:1024px !important;
        /*width: 200px;*/ /* overridden per breakpoint below — do NOT change here */
    }

        .slider-containerz .item > img.item-image {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: center;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 0;
        }

.item-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background: rgb(9,9,121);
    background: -moz-linear-gradient(0deg, rgba(9,9,121,1) 20%, rgba(2,0,36,0.1306722518108806) 95%);
    background: -webkit-linear-gradient(0deg, rgba(9,9,121,1) 20%, rgba(2,0,36,0.1306722518108806) 95%);
    background: linear-gradient(0deg, rgba(9,9,121,1) 20%, rgba(2,0,36,0.1306722518108806) 95%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#090979",endColorstr="#020024",GradientType=1);
}

.item-caption {
    position: absolute !important;
    z-index: 2 !important;
    bottom: 0;
    padding: 1.5rem;
    color: white;
}

    .item-caption > .time {
    }

    .item-caption > .name {
        font-weight: 550;
        font-size: 1.6rem;
        line-height: 3rem;
    }

    .item-caption > .location > .icon {
        padding-right: .5rem;
    }

/* Indicators — anchored to bottom of the blue .slider-section container */
.slider-section .carousel-indicators {
    position: absolute;
    bottom: 0.6rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

    .slider-section .carousel-indicators > button {
        margin-left: .4rem !important;
        margin-right: .4rem !important;
        background-color: #91BFD4 !important;
        opacity: 1 !important;
        width: .8rem !important;
        height: .8rem !important;
        border-radius: 50% !important;
        border: none !important;
        padding: 0;
        transition: all 0.3s ease;
    }

        .slider-section .carousel-indicators > button.active {
            background-color: #0A014F !important;
            height: .8rem !important;
            width: 3rem !important;
            border-radius: 2rem !important;
            margin-top: 0 !important;
        }

/* ===== Responsive Slider Type 2 - Large Screens (> 992px) ===== */
@media (min-width: 993px) {
    .horizontal-scrollz {
/*        padding-left: 2.5rem;*/
        padding-left: 0; /* ✅ EDIT */
    }

    .slider-containerz {
        /*        padding-left: 2.5rem;*/
        padding-left: 0; /* ✅ EDIT */
    }

        .slider-containerz .item {
/*                        width: 600px;*/
            /*            height: 360px;*/
            /*width: 700px;*/  /*✅ EDIT */
            width: 1024px;  /*✅ EDIT */
            height: 400px; /* ✅ EDIT */
        }
}

/* ===== Responsive Slider Type 2 - Medium screens (768px - 992px) ===== */
@media (min-width: 768px) and (max-width: 992px) {
    .horizontal-scrollz {
        padding-left: 1.5rem;
    }

    .slider-containerz {
        padding-left: 1.5rem;
        gap: 1.5rem;
    }

        .slider-containerz .item {
            /*            width: 560px;*/
            /*            height: 340px;*/
            width: 640px; /* ✅ EDIT */
            height: 370px; /* ✅ EDIT */
        }
}

/* ===== Responsive Slider Type 2 - Small screens - iPad/Tablet (576px - 767px) ===== */
@media (min-width: 576px) and (max-width: 767px) {
    .horizontal-scrollz {
        padding-left: 1rem;
    }

    .slider-containerz {
        padding-left: 1rem;
        gap: 1rem;
    }

        .slider-containerz .item {
            /*            width: 500px;*/
            /*            height: 300px;*/
            width: 640px; /* ✅ EDIT */

            height: 370px; /* ✅ EDIT */
        }

    .item-caption {
        padding: 1rem;
    }

        .item-caption > .name {
            font-size: 1.3rem;
            line-height: 2rem;
        }

    .slider-topz > div > .slider-titlez {
        font-size: 1.7rem;
    }

    .slider-topz > div > .slider-descriptionz {
        font-size: 0.9rem;
    }

    .slider-topz .btn-circle {
        z-index: 15;
    }
}

/* ===== Responsive Slider Type 2 - Extra small screens - iPhone (< 576px) ===== */
@media (max-width: 575px) {
    .slider-topz {
        padding: 1.5rem 1.5rem 1rem;
    }

    .horizontal-scrollz {
        padding-left: 1rem;
    }

    .slider-containerz {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 1rem;
    }

        .slider-containerz .item {
            width: 400px;
            height: 250px;
        }

    .item-caption {
        padding: 1rem;
    }

        .item-caption > .name {
            font-size: 1.2rem;
            line-height: 1.8rem;
        }

        .item-caption > .time {
            font-size: 0.9rem;
        }

    .slider-topz > div > .slider-titlez {
        font-size: 1.5rem;
    }

    .slider-topz > div > .slider-descriptionz {
        font-size: 0.85rem;
    }

    .slider-topz .btn-circle {
        z-index: 20;
        width: 3rem !important;
        height: 3rem !important;
    }
}

/* ===== Responsive Slider Type 2 - Very small screens - iPhone SE (< 430px) ===== */
@media (max-width: 429px) {
    .slider-containerz .item {
        width: 340px;
        height: 220px;
    }

    .slider-topz .btn-circle {
        z-index: 20;
    }
}

/* ===== Responsive Slider Type 2 - iPhone 14 Pro Max (430 x 932) ===== */
@media (width: 430px) and (height: 932px) {
    .horizontal-scrollz {
        padding-left: 1rem;
    }

    .slider-containerz {
        padding-left: 1rem;
    }

        .slider-containerz .item {
            width: 390px;
            height: 250px;
        }

    .slider-topz .btn-circle {
        z-index: 20;
    }
}

/* ===== Responsive Slider Type 2 - iPhone 15 Pro Max (430 x 932) ===== */
@media (min-width: 430px) and (max-width: 430px) and (min-height: 932px) {
    .slider-containerz .item {
        width: 380px;
        height: 240px;
    }

    .slider-topz .btn-circle {
        z-index: 20;
    }
}

/* ===== Responsive Slider Type 2 - iPhone SE specific (375 x 667) ===== */
@media (min-width: 375px) and (max-width: 375px) and (max-height: 667px) {
    .slider-containerz .item {
        width: 350px;
        height: 220px;
    }

    .slider-topz .btn-circle {
        z-index: 20;
    }
}
