/*
 * Vehicle Detail Page Styles
 * For individual vehicle pages
 */

/* Main container */
.vehicle-detail-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 5px;
    width: 100%;
}

.vehicle-detail-container .price {
    top: -35px;
    margin-bottom: -35px;
}

.vehicle-detail-container .expand-details-btn {
    display: none;
}

.vehicle-detail-container .offer_preview {
    border: none;
    box-shadow: none;
    padding: 0;
    margin: 0;
    width: 100%;
}

.vehicle-detail-container .offer_preview .car-description {
    display: none;
}

/* Gallery styles */
.vehicle-detail-gallery {
    margin: 0 0 20px 0;
    position: relative;
}

.vehicle-detail-gallery h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.vehicle-detail-left {
    width: 32%;
    flex: 0 1 32%;
}

.vehicle-detail-right {
    width: calc(68% - 30px);
    flex: 1 1 calc(68% - 30px);
}


.vehicle-detail-container .toggle-button {
    display: none
}

.vehicle-detail-container .form-toggle {
    display: block !important;
}


/* Media query for mobile devices */
@media (max-width: 1000px) {
    .vehicle-detail-container {
        flex-direction: column;
    }

    .vehicle-detail-left,
    .vehicle-detail-right {
        width: 100%;
        flex: 1 1 100%;
    }
}

.vehicle-detail-gallery .gallery-container {
    position: relative;
    height: auto;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.vehicle-detail-gallery .gallery-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
}

.vehicle-detail-gallery .gallery-container img.active {
    opacity: 1;
    display: block;
}

/* Gallery navigation controls */
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    font-size: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0, 0, 0, 0.8);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* Vehicle description styles */
.vehicle-detail-description {
    margin: 40px 0;
    padding: 25px;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.vehicle-detail-description h2 {
    margin-bottom: 20px;
    font-size: 24px;
    color: #333;
}

.vehicle-detail-description .description-content {
    line-height: 1.6;
    color: #444;
}

/* Hide modal content since it's displayed directly on the detail page */
.vehicle-detail-container .car-modal-overlay {
    display: none !important;
}