.vehicle-card-modern {
    height: 100%;
}

.fleet-carousel-controls {
    display: none;
}

.fleet-vehicle-type {
    display: block;
    margin: -.25rem 0 .75rem;
    color: #626b74;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.vehicle-capacity,
.fleet-passengers {
    color: #303840;
    font-weight: 700;
}

.services-vehicle-item .fleet-passengers {
    display: block;
    margin-top: .75rem;
}

html.dark-mode .fleet-vehicle-type {
    color: #c2c7cc;
}

html.dark-mode .vehicle-capacity,
html.dark-mode .fleet-passengers {
    color: #f2f2f2;
}

.services-fleet-carousel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .8rem;
}

.services-fleet-carousel-header strong {
    color: #303840;
    font-size: .9rem;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.services-fleet-controls {
    display: flex;
    gap: .5rem;
}

.services-fleet-controls .fleet-carousel-control {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid #c8cdd2;
    border-radius: 50%;
    background: #fff;
    color: #202124;
    font: 700 1.65rem/1 Arial, sans-serif;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
    cursor: pointer;
}

.services-fleet-controls .fleet-carousel-control:hover,
.services-fleet-controls .fleet-carousel-control:focus {
    border-color: #d19d00;
    background: #ffc107;
    color: #151515;
}

.services-fleet-controls .fleet-carousel-control:focus-visible {
    outline: 3px solid #1565c0;
    outline-offset: 3px;
}

.services-fleet-controls .fleet-carousel-control:disabled {
    opacity: .4;
    cursor: default;
}

.services-fleet-carousel {
    display: flex;
    padding: .35rem .2rem 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-color: #d19d00 #e5e7e9;
    scrollbar-width: thin;
}

.services-fleet-carousel::-webkit-scrollbar {
    height: 9px;
}

.services-fleet-carousel::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e5e7e9;
}

.services-fleet-carousel::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #d19d00;
}

.services-fleet-carousel > .services-fleet-carousel__item {
    min-height: 390px;
    max-width: 100%;
    padding: 22px;
    grid-template-columns: minmax(260px, .95fr) minmax(0, 1.05fr);
    gap: 28px;
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.services-fleet-carousel > .services-fleet-carousel__item img {
    width: 100%;
    height: auto;
    aspect-ratio: 1402 / 1122;
    object-fit: contain;
    border-radius: 12px;
    background: #eef0f2;
}

.services-fleet-carousel .services-vehicle-content {
    align-self: center;
}

.services-fleet-carousel .services-vehicle-content h3 {
    margin-bottom: .5rem;
    font-size: 1.7rem;
}

.services-fleet-carousel .services-vehicle-content p {
    font-size: 1.05rem;
    line-height: 1.7;
}

.services-fleet-carousel .fleet-passengers {
    display: inline-flex;
    padding: .45rem .75rem;
    border-radius: 999px;
    background: #fff3c4;
    color: #4a3900;
}

html.dark-mode .services-fleet-carousel-header strong {
    color: #f2f2f2;
}

html.dark-mode .services-fleet-controls .fleet-carousel-control {
    border-color: #555;
    background: #242424;
    color: #f2f2f2;
}

html.dark-mode .services-fleet-controls .fleet-carousel-control:hover,
html.dark-mode .services-fleet-controls .fleet-carousel-control:focus {
    border-color: #ffd854;
    background: #ffd854;
    color: #111;
}

html.dark-mode .services-fleet-carousel {
    scrollbar-color: #ffd854 #303030;
}

html.dark-mode .services-fleet-carousel::-webkit-scrollbar-track {
    background: #303030;
}

html.dark-mode .services-fleet-carousel::-webkit-scrollbar-thumb {
    background: #ffd854;
}

html.dark-mode .services-fleet-carousel .fleet-passengers {
    background: #3b3109;
    color: #ffe27a;
}

html.dark-mode .services-fleet-carousel > .services-fleet-carousel__item img {
    background: #171717;
}

@media (min-width: 1200px) {
    .fleet-section-heading {
        position: relative;
    }

    .fleet-carousel-controls {
        display: flex;
        position: absolute;
        right: 0;
        bottom: .15rem;
        gap: .5rem;
    }

    .fleet-carousel-control {
        display: grid;
        width: 44px;
        height: 44px;
        padding: 0;
        place-items: center;
        border: 1px solid #c8cdd2;
        border-radius: 50%;
        background: #fff;
        color: #202124;
        font: 700 1.65rem/1 Arial, sans-serif;
        box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
        cursor: pointer;
    }

    .fleet-carousel-control:hover,
    .fleet-carousel-control:focus {
        border-color: #d19d00;
        background: #ffc107;
        color: #151515;
    }

    .fleet-carousel-control:focus-visible {
        outline: 3px solid #1565c0;
        outline-offset: 3px;
    }

    .fleet-carousel-control:disabled {
        opacity: .4;
        cursor: default;
    }

    .fleet-carousel {
        display: flex;
        margin-right: 0;
        margin-left: 0;
        padding: .5rem .25rem 1.25rem;
        gap: 1.25rem;
        flex-wrap: nowrap;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        scroll-padding-inline: .25rem;
        scroll-snap-type: inline mandatory;
        scrollbar-color: #d19d00 #e5e7e9;
        scrollbar-width: thin;
    }

    .fleet-carousel.fleet-carousel--peek {
        -webkit-mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 2.5%,
            #000 97.5%,
            transparent 100%
        );
        mask-image: linear-gradient(
            to right,
            transparent 0,
            #000 2.5%,
            #000 97.5%,
            transparent 100%
        );
        scroll-snap-type: none;
    }

    .fleet-carousel::-webkit-scrollbar {
        height: 9px;
    }

    .fleet-carousel::-webkit-scrollbar-track {
        border-radius: 999px;
        background: #e5e7e9;
    }

    .fleet-carousel::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: #d19d00;
    }

    .fleet-carousel > .fleet-carousel__item {
        max-width: calc((100% - 3.75rem) / 4);
        padding: 0;
        flex: 0 0 calc((100% - 3.75rem) / 4);
        scroll-snap-align: start;
    }

    html.dark-mode .fleet-carousel-control {
        border-color: #555;
        background: #242424;
        color: #f2f2f2;
    }

    html.dark-mode .fleet-carousel-control:hover,
    html.dark-mode .fleet-carousel-control:focus {
        border-color: #ffd854;
        background: #ffd854;
        color: #111;
    }

    html.dark-mode .fleet-carousel {
        scrollbar-color: #ffd854 #303030;
    }

    html.dark-mode .fleet-carousel::-webkit-scrollbar-track {
        background: #303030;
    }

    html.dark-mode .fleet-carousel::-webkit-scrollbar-thumb {
        background: #ffd854;
    }
}

@media (max-width: 767.98px) {
    .services-fleet-carousel > .services-fleet-carousel__item {
        min-height: 0;
        padding: 16px;
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .services-fleet-carousel > .services-fleet-carousel__item img {
        height: auto;
    }

    .services-fleet-carousel .services-vehicle-content h3 {
        font-size: 1.45rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .fleet-carousel,
    .services-fleet-carousel {
        scroll-behavior: auto;
    }
}
