/* Vehicle Details Page Styles */

body {
    font-family: 'Montserrat', sans-serif;
    padding-top: 80px;
}

/* Navigation */
.navbar {
    background: linear-gradient(135deg, #007bff, #0056b3) !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
    height: 40px;
}

/* Minimal Vehicle Header */
.vehicle-header-minimal {
    background: #fff;
    padding: 20px 0;
    margin-top: 80px;
    border-bottom: 1px solid #e9ecef;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.vehicle-title-minimal {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
}

.vehicle-subtitle-minimal {
    font-size: 1rem;
    color: #666;
    margin-bottom: 0;
}

/* Vehicle Image */
.vehicle-image-container {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.vehicle-main-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vehicle-main-image:hover {
    transform: scale(1.05);
}

/* Image Slider */
.image-slider {
    position: relative;
    overflow: hidden;
}

.main-image {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.image-thumbnails {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 15px;
    background: rgba(0,0,0,0.8);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 120px;
    overflow-x: auto;
    overflow-y: hidden;
}

.thumbnail {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s ease, border 0.3s ease;
    border: 2px solid transparent;
}

.thumbnail:hover {
    opacity: 1;
    border-color: #007bff;
}

.thumbnail.active {
    opacity: 1;
    border-color: #007bff;
    box-shadow: 0 0 8px rgba(0,123,255,0.6);
}

.price-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 15px 25px;
    border-radius: 25px;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
}

/* Vehicle Info */
.vehicle-info {
    padding: 20px;
}

.section-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 25px;
    border-bottom: 3px solid #007bff;
    padding-bottom: 10px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid #007bff;
    transition: all 0.3s ease;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.info-item i {
    font-size: 1.2rem;
    color: #007bff;
    margin-right: 15px;
    width: 20px;
    text-align: center;
}

.info-item .label {
    font-weight: 600;
    color: #333;
    margin-right: 10px;
    min-width: 80px;
}

.info-item .value {
    color: #666;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.btn {
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #28a745, #20c997);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-success:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff, #0056b3);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.4);
}

.btn i {
    margin-right: 8px;
}

/* Additional Details */
.additional-details {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.spec-grid {
    display: grid;
    gap: 15px;
}

.spec-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #007bff;
}

.spec-label {
    font-weight: 600;
    color: #333;
}

.spec-value {
    color: #666;
    font-weight: 500;
}

/* Description */
.description-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.description-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #555;
    margin-bottom: 0;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 40px 0;
    margin-top: 60px;
}

.footer h5 {
    color: #007bff;
    margin-bottom: 20px;
}

.footer ul {
    list-style: none;
    padding: 0;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer ul li a:hover {
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vehicle-title {
        font-size: 2rem;
    }
    
    .vehicle-subtitle {
        font-size: 1rem;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .vehicle-main-image {
        height: 250px;
    }
    
    .price-badge {
        top: 10px;
        right: 10px;
        padding: 10px 15px;
    }
    
    .price-amount {
        font-size: 1.2rem;
    }
    
    .spec-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .spec-value {
        font-weight: 600;
        color: #007bff;
    }
}

/* Additional Information Sections */
.additional-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.info-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.info-section h5 {
    color: #007bff;
    margin-bottom: 15px;
    font-weight: 600;
}

.info-section h5 i {
    margin-right: 8px;
}

.history-section {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.history-item i {
    font-size: 2rem;
    color: #007bff;
    margin-right: 15px;
    width: 50px;
    text-align: center;
}

.history-content h6 {
    margin-bottom: 5px;
    color: #333;
    font-weight: 600;
}

.history-content p {
    margin: 0;
    color: #666;
}

.price-section {
    background: linear-gradient(135deg, #007bff, #0056b3);
    padding: 30px;
    border-radius: 15px;
    color: white;
    text-align: center;
}

.price-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.price-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.price-label {
    font-size: 1.2rem;
    margin-bottom: 10px;
    opacity: 0.9;
}

.price-value {
    font-size: 3rem;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.price-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.indicator-label {
    font-size: 1rem;
    opacity: 0.9;
}

.indicator-value {
    font-size: 1.5rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 15px;
    border-radius: 20px;
}

/* Mobile responsive for new sections */
@media (max-width: 768px) {
    .additional-info,
    .history-section,
    .price-section {
        padding: 20px;
    }
    
    .history-item {
        flex-direction: column;
        text-align: center;
    }
    
    .history-item i {
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .price-value {
        font-size: 2.5rem;
    }
}

@media (max-width: 576px) {
    .vehicle-header {
        padding: 100px 0 30px;
        padding-top: 120px;
    }
    
    .vehicle-title {
        font-size: 1.8rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .info-item {
        padding: 12px;
    }
    
    .info-item i {
        font-size: 1rem;
        margin-right: 10px;
    }
    
    .additional-details,
    .description-section {
        padding: 20px;
    }
}

/* Lightbox Styles */
#imageLightbox .modal-dialog {
    max-width: 95vw;
    max-height: 95vh;
}

#imageLightbox .modal-content {
    background: rgba(0, 0, 0, 0.75);
    border: none;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

#imageLightbox .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

#imageLightbox .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.3);
}

#lightboxImage {
    max-height: 80vh;
    max-width: 100%;
    object-fit: contain;
    border-radius: 5px;
}

/* Navigation Buttons */
.lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    color: black;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

/* Image Counter */
.lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Lightbox Animation */
#imageLightbox.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: scale(0.8);
}

#imageLightbox.modal.show .modal-dialog {
    transform: scale(1);
}

/* Responsive Lightbox */
@media (max-width: 768px) {
    #imageLightbox .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100vw - 1rem);
    }
    
    #lightboxImage {
        max-height: 70vh;
    }
    
    .lightbox-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
}
