.home-latest-vehicles {
    position: relative;
}

.home-latest-heading {
    margin-bottom: 30px;
}

.home-latest-stage {
    position: relative;
    min-height: 420px;
}

.home-latest-swiper {
    overflow: hidden;
    padding: 2px 2px 34px;
}

.home-latest-swiper[hidden],
.home-latest-empty[hidden],
.home-latest-error[hidden],
.home-latest-controls[hidden] {
    display: none !important;
}

.home-latest-slide {
    height: auto;
}

.home-latest-slide .vehicle-grid-card {
    height: 100%;
}

.home-latest-controls {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 4px;
}

.home-latest-nav {
    display: inline-grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid #e2e5ea;
    border-radius: 50%;
    color: #20252d;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, transform .2s ease, opacity .2s ease;
}

.home-latest-nav:hover:not(:disabled),
.home-latest-nav:focus-visible:not(:disabled) {
    border-color: #4054d4;
    color: #4054d4;
    outline: none;
    transform: translateY(-1px);
}

.home-latest-nav:disabled {
    cursor: default;
    opacity: .35;
}

.home-latest-pagination {
    position: static !important;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
}

.home-latest-pagination .swiper-pagination-bullet {
    width: 7px;
    height: 7px;
    margin: 0 !important;
    background: #c8ccd4;
    opacity: 1;
    transition: width .2s ease, border-radius .2s ease, background-color .2s ease;
}

.home-latest-pagination .swiper-pagination-bullet-active {
    width: 22px;
    border-radius: 99px;
    background: #4054d4;
}

.home-latest-empty,
.home-latest-error {
    min-height: 290px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 34px 20px;
    border: 1px solid #e7e9ed;
    border-radius: 18px;
    background: #fff;
    text-align: center;
}

.home-latest-empty:not([hidden]),
.home-latest-error:not([hidden]) {
    display: flex;
}

.home-latest-empty__icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    margin-bottom: 14px;
    border-radius: 16px;
    color: #6f7785;
    background: #f4f5f7;
    font-size: 26px;
}

.home-latest-empty h4 {
    margin: 0 0 7px;
    font-size: 18px;
}

.home-latest-empty p,
.home-latest-error span {
    margin: 0;
    color: #7b8089;
    font-size: 13px;
}

.home-latest-error button {
    min-height: 38px;
    margin-top: 14px;
    padding: 0 18px;
    border: 1px solid #4054d4;
    border-radius: 12px;
    color: #4054d4;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

/* Skeleton uses the same proportions as the shop vehicle cards. */
.home-latest-skeleton-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
}

.home-vehicle-card-skeleton {
    overflow: hidden;
    border: 1px solid #e8eaee;
    border-radius: 16px;
    background: #fff;
}

.home-vehicle-card-skeleton__media,
.home-vehicle-card-skeleton__line,
.home-vehicle-card-skeleton__specs span,
.home-vehicle-card-skeleton__footer span {
    position: relative;
    overflow: hidden;
    background: #eef0f3;
}

.home-vehicle-card-skeleton__media::after,
.home-vehicle-card-skeleton__line::after,
.home-vehicle-card-skeleton__specs span::after,
.home-vehicle-card-skeleton__footer span::after {
    position: absolute;
    inset: 0;
    content: "";
    transform: translateX(-100%);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
    animation: homeVehicleShimmer 1.25s infinite;
}

.home-vehicle-card-skeleton__media {
    aspect-ratio: 16 / 10;
}

.home-vehicle-card-skeleton__body {
    padding: 18px;
}

.home-vehicle-card-skeleton__line {
    display: block;
    height: 11px;
    border-radius: 7px;
}

.home-vehicle-card-skeleton__line.is-short {
    width: 42%;
}

.home-vehicle-card-skeleton__line.is-title {
    width: 78%;
    height: 17px;
    margin-top: 12px;
}

.home-vehicle-card-skeleton__line.is-price {
    width: 34%;
    height: 20px;
    margin-top: 18px;
}

.home-vehicle-card-skeleton__specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
    margin-top: 18px;
}

.home-vehicle-card-skeleton__specs span {
    height: 12px;
    border-radius: 7px;
}

.home-vehicle-card-skeleton__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid #eef0f3;
}

.home-vehicle-card-skeleton__footer span:first-child {
    width: 44%;
    height: 24px;
    border-radius: 9px;
}

.home-vehicle-card-skeleton__footer span:last-child {
    width: 70px;
    height: 15px;
    border-radius: 7px;
}

@keyframes homeVehicleShimmer {
    100% { transform: translateX(100%); }
}

/* Safe fallback if Swiper JS is unavailable. */
.home-latest-swiper.home-latest-fallback {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
}

.home-latest-swiper.home-latest-fallback .swiper-wrapper {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(270px, 31%);
    gap: 20px;
}

@media (max-width: 1199.98px) {
    .home-latest-skeleton-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .home-latest-stage {
        min-height: 390px;
    }

    .home-latest-skeleton-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-latest-skeleton-grid > :nth-child(n+3) {
        display: none;
    }

    .home-latest-swiper.home-latest-fallback .swiper-wrapper {
        grid-auto-columns: minmax(270px, 48%);
    }
}

@media (max-width: 575.98px) {
    .home-latest-heading {
        align-items: flex-start;
    }

    .home-latest-stage {
        min-height: 370px;
    }

    .home-latest-skeleton-grid {
        display: block;
    }

    .home-latest-skeleton-grid > :not(:first-child) {
        display: none;
    }

    .home-latest-controls {
        display: none !important;
    }

    .home-latest-swiper {
        margin-right: -2px;
        padding-bottom: 26px;
    }

    .home-latest-swiper.home-latest-fallback .swiper-wrapper {
        grid-auto-columns: minmax(268px, 88%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-vehicle-card-skeleton__media::after,
    .home-vehicle-card-skeleton__line::after,
    .home-vehicle-card-skeleton__specs span::after,
    .home-vehicle-card-skeleton__footer span::after {
        animation: none;
    }

    .home-latest-nav,
    .home-latest-pagination .swiper-pagination-bullet {
        transition: none;
    }
}



h2#homeLatestVehiclesHeading {
    font-size: clamp(26px, 2.35vw, 25px);
}


@media (max-width: 767.98px) {
    h2#homeLatestVehiclesHeading {
        font-size: 20px;
        line-height: 1.18;
        letter-spacing: -0.55px;
    }
}

.vehicle-book-now{
    background:#5365cf;
}


.vehicle-card-category{
    color:#5365cf;
}


.dailybox{
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 5px 9px;
    border-radius: 999px;
    background: #5365cf;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 5px 13px rgba(57, 72, 167, 0.18);
}


@media(max-width:767px){
    .home-latest-vehicles {
    position: relative;
    padding-top: 40px;
    border-top: 1px solid #eee;
    margin-top: 57px;
}
}
