/* Home - Latest Vehicles: panel + carousel, colores de la página */

.latest-vehicles-section {
    padding-top: 60px;
    padding-bottom: 60px;
}

.latest-vehicles-container {
    max-width: auto;
    margin: 0 auto;
    padding: 0 15px;
}

.latest-vehicles-layout {
    display: flex;
    flex-wrap: wrap;
    background: #fff;
    box-shadow: 0 5px 25px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
}

.latest-vehicles-sidebar {
    flex: 0 0 260px;
    min-width: 260px;
    background: linear-gradient(160deg, #4883ff 0%, #2d5fd4 100%);
    color: #fff;
    padding: 40px 28px;
}

.latest-vehicles-sidebar .sidebar-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.latest-vehicles-sidebar .sidebar-title {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 8px 0;
    letter-spacing: 0.5px;
    color: #fff;
}

.latest-vehicles-sidebar .sidebar-subtitle {
    font-size: 14px;
    color: rgba(255,255,255,0.9);
    margin: 0 0 24px 0;
}

.latest-vehicles-sidebar .btn-view-all {
    display: inline-block;
    background: #fff;
    color: #4883ff;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
    margin-bottom: 24px;
    transition: all 0.3s;
}

.latest-vehicles-sidebar .btn-view-all:hover {
    background: rgba(255,255,255,0.9);
    color: #2d5fd4;
}

.latest-vehicles-sidebar .carousel-nav {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.latest-vehicles-sidebar .carousel-nav button {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255,255,255,0.8);
    background: transparent;
    color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.latest-vehicles-sidebar .carousel-nav button:hover {
    background: #fff;
    color: #4883ff;
    border-color: #fff;
}

.latest-vehicles-carousel-wrap {
    flex: 1;
    min-width: 0;
    padding: 24px;
}

.latestVehiclesSwiper {
    overflow: hidden;
}

.latest-vehicle-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.3s;
}

.latest-vehicle-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.latest-vehicle-image-wrap {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f5f5f5;
}

.latest-vehicle-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.latest-vehicle-image-link {
    display: block;
    width: 100%;
    height: 100%;
}

.latest-vehicle-image-wrap .coming-soon-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #4883ff;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

.latest-vehicle-price-banner {
    background: #4883ff;
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    padding: 10px 14px;
    text-align: center;
}

.latest-vehicle-info {
    padding: 16px 14px;
}

.latest-vehicle-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #232323;
    margin: 0 0 6px 0;
    line-height: 1.3;
}

.latest-vehicle-info .mileage {
    font-size: 13px;
    color: #7a7a7a;
    display: block;
    margin-bottom: 10px;
}

.latest-vehicle-info .link-view-more {
    font-size: 14px;
    font-weight: 500;
    color: #4883ff;
    text-decoration: none;
    transition: color 0.3s;
}

.latest-vehicle-info .link-view-more:hover {
    color: #2d5fd4;
}

.latest-vehicles-empty {
    text-align: center;
    padding: 60px 20px;
    color: #7a7a7a;
}

.latest-vehicles-empty h3 {
    font-size: 20px;
    color: #232323;
    margin-bottom: 8px;
}

/* Modal imagen en grande */
.latest-vehicle-image-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.latest-vehicle-image-modal.active {
    opacity: 1;
    visibility: visible;
}

.latest-vehicle-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.85);
    cursor: pointer;
}

.latest-vehicle-modal-content {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
}

.latest-vehicle-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    display: block;
}

.latest-vehicle-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: transparent;
    border: none;
    color: #fff;
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    width: 40px;
    height: 40px;
}

@media (max-width: 991px) {
    .latest-vehicles-sidebar {
        flex: 0 0 100%;
        min-width: 100%;
        padding: 28px 24px;
    }
    .latest-vehicles-sidebar .carousel-nav {
        margin-top: 16px;
    }
    .latest-vehicles-carousel-wrap {
        padding: 20px;
    }
}

@media (max-width: 575px) {
    .latest-vehicles-sidebar .sidebar-title {
        font-size: 24px;
    }
    .latest-vehicle-info h4 {
        font-size: 15px;
    }
}
