/* Single Car Detail Styles */
.car-single-detail {

}

.car-breadcrumb {
    font-size: 12px;
    color: #999;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.car-breadcrumb a {
    color: #999;
    text-decoration: none;
}

.car-breadcrumb a:hover {
    color: #333;
}

.car-detail-container {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

.car-detail-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: start;
    align-items: start;
    gap: 20px;

}

.car-detail-right {
    flex: 0 0 350px;
}

/* Gallery Styles */
.car-main-image {
    margin-bottom: 20px;
}

.car-main-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Modern Car Gallery Styles */
.car-gallery-container {
    position: relative;
    width: 100%;
}

.car-main-image {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    background: #f5f5f5;
}

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

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

/* Image counter */
.image-counter {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

/* Fullscreen button */
.fullscreen-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.fullscreen-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

/* Thumbnails */
.car-gallery-thumbs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 15px;
    overflow: hidden;
}

.gallery-thumb {
    width: 70px;
    height: 50px;
    overflow: hidden;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    position: relative;
}

.gallery-thumb:hover {
    border-color: #007cba;
    transform: translateY(-2px);
}

.gallery-thumb.active {
    border-color: #007cba;
    box-shadow: 0 0 0 1px #007cba;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-show-more {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 50px;
    background: rgba(0, 124, 186, 0.1);
    border: 2px dashed #007cba;
    border-radius: 6px;
    color: #007cba;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-show-more:hover {
    background: rgba(0, 124, 186, 0.2);
}

/* Lightbox styles */
.car-lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(5px);
}

.car-lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

#lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

/* Lightbox navigation */
.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
}

.lightbox-prev,
.lightbox-next {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: none;
    padding: 15px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-prev {
    margin-left: -50px;
}

.lightbox-next {
    margin-right: -50px;
}

/* Lightbox counter */
.lightbox-counter {
    position: absolute;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Responsive design for gallery */
@media (max-width: 768px) {
    .car-main-image {
        height: 300px;
    }

    .gallery-thumb {
        width: 60px;
        height: 45px;
    }

    .gallery-show-more {
        width: 60px;
        height: 45px;
        font-size: 11px;
    }

    .lightbox-prev,
    .lightbox-next {
        padding: 10px 15px;
        font-size: 16px;
    }

    .lightbox-prev {
        margin: 0;
    }

    .lightbox-next {
        margin: 0;
    }
}

/* Price Box Styles */
.car-price-box {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    position: sticky;
    top: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price-section {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.price-badge {
    background: #fff100;
    color: #000;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    margin-bottom: 10px;
}

.price-main {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin-bottom: 5px;
}

.price-without-vat {
    font-size: 14px;
    color: #666;
}

.vin-section {
    margin-bottom: 25px;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.vin-section .label {
    display: block;
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.vin-section .value {
    font-weight: 600;
    color: #333;
}

.car-specs-grid {
    margin-bottom: 25px;
}

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f5f5f5;
}

.spec-row:last-child {
    border-bottom: none;
}

.spec-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.spec-value {
    font-weight: 600;
    color: #333;
    text-align: right;
}

.inquiry-section h3 {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.inquiry-section p {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* Specifications */
.car-specifications {
    background: none;
    padding: 0;
    width: 100%;
}

.car-specifications h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

/* Features */
.car-features {
    margin-bottom: 30px;
    width: 100%;
}

.car-features h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    width: 100%;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-icon {
    color: #fff100;
    font-weight: bold;
    font-size: 16px;
}

.feature-text {
    font-size: 14px;
    color: #333;
}

/* Description */
.car-description {
    width: 100%;
}

.car-description h2 {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.description-content {
    font-size: 14px;
    line-height: 1.6;
    color: #000;
}

/* Contact Info */
.car-contact-info {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    width: 100%;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-icon {
    width: 40px;
    height: 40px;
    background: #fff100;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-details {
    flex: 1;
}

.contact-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.contact-value {
    font-weight: 600;
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

/* Responsive Design */
@media (max-width: 480px) {
    /* Single car responsive */
    .car-detail-container {
        flex-direction: column;
    }

    .car-detail-left,
    .car-detail-right {
        width: 100%;
    }

    .car-price-box {
        position: static;
        margin-top: 20px;
    }
}