/* Fleet listing — crop photos without changing card layout */
.item2-gl .item-card9-imgs {
    display: block;
    min-height: 0;
}

.item2-gl .item-card9-imgs img.cover-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.item2-gl #tab-11 .item-card9-imgs img.cover-image {
    min-height: 220px;
}

.item2-gl #tab-12 .item-card9-imgs img.cover-image {
    aspect-ratio: 8 / 5;
    height: auto;
}

.item2-gl .item-card9-imgs img.cover-image {
    transform: none;
    transition: transform 0.3s ease-in-out;
}

.item2-gl .item-card9-imgs:hover img.cover-image {
    transform: scale(1.03);
}

.item2-gl #tab-11 .item-card9-imgs {
    height: 100%;
}

/* Related fleet carousel (coach detail page) */
#myCarousel5 .ieh-100,
#myCarousel5 .item-card9-img {
    height: auto !important;
}

#myCarousel5 .item-card9-imgs {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 8 / 5;
    width: 100%;
    height: auto !important;
}

#myCarousel5 .item-card9-imgs img.cover-image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: none;
    transition: transform 0.3s ease-in-out;
}

#myCarousel5 .item-card9-imgs:hover img.cover-image {
    transform: scale(1.03);
}

#myCarousel5 .fleet-card-footer__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
}

#myCarousel5 .fleet-card-footer .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
}

.fleet-card-footer__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
}

/* Grid view: narrow card — stack actions full width */
#tab-12 .fleet-card-footer__actions {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0.55rem;
}

#tab-12 .fleet-card-footer .btn {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    line-height: 1.25;
}

.fleet-card-footer__price {
    flex: 1 1 auto;
    min-width: 0;
}

.fleet-card-footer .btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.fleet-card-footer .btn-secondary,
.fleet-filter-submit.btn-secondary {
    background-color: #002654 !important;
    border-color: #002654 !important;
    color: #fff !important;
}

.fleet-card-footer .btn-secondary:hover,
.fleet-filter-submit.btn-secondary:hover {
    background-color: #001a3a !important;
    border-color: #001a3a !important;
    color: #fff !important;
}

.fleet-filter-submit.btn-secondary:focus-visible {
    box-shadow: 0 0 0 0.2rem rgba(0, 38, 84, 0.35);
}

@media (max-width: 575px) {
    .fleet-card-footer__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .fleet-card-footer .btn {
        width: 100%;
        justify-content: center;
    }
}
