/* ===== Enhanced Gallery Styles ===== */

.car-badge {
    top: -50px;
    left: 0;
}

.gallery-section {
    position: relative;
    margin-bottom: 3rem;
    margin-top: 3rem;
}

/* Main Carousel */
.carousel {
    overflow: hidden;
    position: relative;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

.carousel-inner {
    position: relative;
    overflow: hidden;
}

.carousel-item {
    position: relative;
    height: 600px;
    transition: transform 0.6s ease-in-out;
}

.carousel-item img {
    width: 100%;
    height: 600px;
    object-fit: cover;
    object-position: center;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-item img:hover {
    transform: scale(1.02);
}

/* Enhanced Carousel Indicators */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    margin: 0;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 15;
}

.carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.7;
    position: relative;
}

.carousel-indicators [data-bs-target]:hover {
    background-color: var(--primary-color);
    transform: scale(1.2);
    opacity: 1;
}

.carousel-indicators .active {
    background-color: var(--primary-color);
    width: 40px;
    border-radius: 6px;
    opacity: 1;
    transform: scale(1.1);
}

/* Enhanced Carousel Controls */
.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    margin: 0 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

.carousel:hover .carousel-control-prev,
.carousel:hover .carousel-control-next {
    opacity: 1;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 30px;
    height: 30px;
    background-size: 100% 100%;
    background-color: white;
    border-radius: 50%;
    mask-image: none;
    -webkit-mask-image: none;
}

.carousel-control-prev-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D32F2F'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e");
}

.carousel-control-next-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23D32F2F'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");
}

/* Fullscreen Button */
.carousel-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.btn-fullscreen {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
}

.btn-fullscreen:hover {
    background: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.4);
}

/* Image Counter */
.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 10;
    backdrop-filter: blur(5px);
}

/* Thumbnail Gallery */
.thumbnail-gallery-container {
    height: 600px;
    background: var(--bg-light);
    border-radius: 20px;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.thumbnail-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--card-bg);
}

.thumbnail-header h4 {
    color: var(--text-color);
    margin: 0;
    font-size: 1.2rem;
}

.thumbnail-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.category-filter {
    padding: 6px 12px;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 0.8rem;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
}

.category-filter:hover {
    background: var(--border-color);
}

.category-filter.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.thumbnail-gallery-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
}

.thumbnails-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    transition: all 0.3s ease;
}

.thumbnails-grid.small {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.thumbnails-grid.large {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 4/3;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background: var(--bg-color);
}

.thumbnail-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color);
    animation: pulse-border 2s infinite;
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-item:hover img {
    transform: scale(1.1);
}

.thumbnail-number {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.thumbnail-category {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--primary-color);
    color: white;
    font-size: 9px;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: white;
    font-size: 1.5rem;
}

/* Thumbnail Footer */
.thumbnail-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: var(--card-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.thumb-info {
    color: var(--text-light);
    font-size: 0.9rem;
}

.thumb-actions {
    display: flex;
    gap: 10px;
}

.btn-thumb-action {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--bg-light);
    border: none;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-thumb-action:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Progress Bar for Slideshow */
.slideshow-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.progress-bar {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 5s linear;
}

.carousel:hover .progress-bar {
    animation-play-state: paused;
}

/* Zoom Indicator */
.zoom-indicator {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    z-index: 10;
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel:hover .zoom-indicator {
    opacity: 1;
}

/* Animation for Active Thumbnail */
@keyframes pulse-border {
    0% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(211, 47, 47, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(211, 47, 47, 0);
    }
}

/* Price Mobile Section */
.price-mobile-section {
    position: sticky;
    top: 120px;
    z-index: 1000;
    background: var(--card-bg);
    padding: 1rem 0;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color);
}

.price-mobile-card {
    background: var(--gradient-primary);
    border-radius: 15px;
    padding: 1.5rem;
    color: white;
}

.price-tag .price-label {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0.9;
    display: block;
}

.price-tag .price {
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    font-family: var(--font-heading);
}

.btn-inquiry-mobile {
    background: white;
    color: var(--primary-color);
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 10px;
    border: none;
    transition: var(--transition);
}

.btn-inquiry-mobile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Car Header Detail */
.car-header-detail {
    position: relative;
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.car-title-detail {
    font-size: 3rem;
    margin: 1rem 0 1.5rem;
    color: var(--text-color);
}

.car-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
}

.car-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-light);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-color);
}

.car-meta span:before {
    content: '';
    width: 8px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* Specifications */
/* ===== Enhanced Technical Specifications (Vertical Layout) ===== */
.specifications-section {
    margin-bottom: 4rem;
    background: var(--bg-light);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow);
}

.specifications-section .section-title {
    text-align: left;
    padding-bottom: 15px;
    margin-bottom: 2.5rem;
}

.specifications-section .section-title::after {
    left: 0;
    transform: none;
    width: 80px;
}

.specifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.spec-item {
    background: var(--card-bg);
    border-radius: 15px;
    padding: 1.75rem;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.spec-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
    border-color: var(--primary-color);
}

.spec-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
}

.spec-item-highlight::before {
    background: linear-gradient(90deg, var(--accent-color), #FF5722);
}

.spec-label {
    font-weight: 700;
    color: var(--text-color);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    padding-left: 28px;
}

.spec-label::before {
    content: '';
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    background: var(--gradient-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-label::after {
    content: '✓';
    position: absolute;
    left: 0;
    width: 18px;
    height: 18px;
    color: white;
    font-size: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.spec-item-highlight .spec-label::before {
    background: var(--gradient-accent);
}

.spec-value {
    font-weight: 500;
    color: var(--text-light);
    font-size: 1.1rem;
    line-height: 1.6;
    padding: 0.75rem 0 0;
    word-break: break-word;
    overflow-wrap: break-word;
    flex-grow: 1;
    border-top: 1px solid var(--border-color);
    padding-top: 1rem;
}

/* Special value styles */
.spec-value-important {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.2rem;
}

.spec-value-condition {
    color: #28a745;
    font-weight: 700;
    background: rgba(40, 167, 69, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: inline-block;
    margin-top: 0.5rem;
}

.spec-value-vin {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    color: var(--text-color);
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    word-break: break-all;
    letter-spacing: 0.5px;
    margin-top: 0.5rem;
}

.spec-value-long {
    font-size: 1rem;
    line-height: 1.5;
}

/* Icon for special items */
.spec-item-important .spec-label::after {
    content: '★';
    font-size: 9px;
}

.spec-item-warranty .spec-label::after {
    content: '🛡';
    font-size: 9px;
}

.spec-item-engine .spec-label::after {
    content: '⚙';
    font-size: 9px;
}

/* Hover effects */
.spec-item:hover .spec-label {
    color: var(--primary-color);
}

.spec-item:hover .spec-value {
    color: var(--text-color);
}

/* Responsive design */
@media (max-width: 1200px) {
    .specifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 1.25rem;
    }
}

@media (max-width: 992px) {
    .specifications-section {
        padding: 2.5rem;
    }
    
    .specifications-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .specifications-section {
        padding: 2rem;
    }
    
    .specifications-grid {
        /* grid-template-columns: 1fr; */
        gap: 1rem;
    }
    
    .spec-item {
        padding: 1.5rem;
    }
    
    .spec-label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
        padding-left: 25px;
    }
    
    .spec-label::before {
        width: 16px;
        height: 16px;
    }
    
    .spec-label::after {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }
    
    .spec-value {
        font-size: 1.05rem;
        padding-top: 0.75rem;
    }
}

@media (max-width: 576px) {
    .specifications-section {
        padding: 1.5rem;
        border-radius: 15px;
    }
    
    .spec-item {
        padding: 1.25rem;
        border-radius: 12px;
    }
    
    .spec-label {
        font-size: 0.9rem;
        padding-left: 22px;
    }
    
    .spec-label::before {
        width: 15px;
        height: 15px;
    }
    
    .spec-label::after {
        width: 15px;
        height: 15px;
        font-size: 8px;
    }
    
    .spec-value {
        font-size: 1rem;
        padding-top: 0.5rem;
    }
    
    .spec-value-vin {
        font-size: 0.85rem;
        padding: 0.5rem 0.75rem;
    }
}

/* For very small screens */
@media (max-width: 400px) {
    .specifications-section {
        padding: 1.25rem;
    }
    
    .spec-item {
        padding: 1rem;
    }
}

/* Dark theme adjustments */
.theme-dark .specifications-section {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
}

.theme-dark .spec-item {
    background: var(--card-bg);
    border-color: var(--border-color);
}

.theme-dark .spec-value-vin {
    background: var(--bg-dark);
    border-color: var(--border-color);
}

.theme-dark .spec-value-condition {
    background: rgba(40, 167, 69, 0.15);
}

/* Animation for value appearance */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.spec-value {
    animation: fadeInUp 0.3s ease-out;
}

/* Loading state */
.spec-item.loading .spec-label {
    color: transparent;
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-light) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    width: 120px;
}

.spec-item.loading .spec-value {
    color: transparent;
    background: linear-gradient(90deg, var(--border-color) 25%, var(--bg-light) 50%, var(--border-color) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
    border-radius: 4px;
    width: 80%;
    margin-top: 0.5rem;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
/* Video Section */
.video-section {
    margin-bottom: 4rem;
}

.video-wrapper {
    margin-top: 2rem;
}

.video-placeholder {
    background: var(--bg-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.video-thumbnail {
    position: relative;
    height: 400px;
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(211, 47, 47, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    transition: var(--transition);
}

.play-button:hover {
    background: rgba(211, 47, 47, 1);
    transform: translate(-50%, -50%) scale(1.1);
}

.video-info {
    padding: 2rem;
}

.video-info h4 {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.video-info p {
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.btn-video-play {
    background: var(--gradient-primary);
    color: white;
    padding: 0.875rem 2rem;
    border-radius: 10px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-video-play:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

/* Description Section */
.description-section {
    margin-bottom: 4rem;
}

.description-content {
    margin-top: 2rem;
}

.description-content p {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-color);
}

.description-content h4 {
    color: var(--text-color);
    margin: 2rem 0 1rem;
}

.description-content ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 2rem;
}

.description-content li {
    padding: 0.5rem 0;
    padding-left: 2rem;
    position: relative;
    color: var(--text-color);
}

.description-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

.description-content .alert {
    border-left: 4px solid var(--primary-color);
    background: rgba(211, 47, 47, 0.1);
    border-radius: 10px;
    margin-top: 2rem;
}

/* Sticky Sidebar */
.sticky-sidebar {
    position: sticky;
    top: 140px;
}

/* Price Card */
.price-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.price-header {
    text-align: center;
    margin-bottom: 2rem;
}

.price-label {
    display: block;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.price-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin: 0;
    font-family: var(--font-heading);
}

.price-features {
    margin-bottom: 2rem;
}

.price-feature {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.price-feature i {
    color: var(--primary-color);
}

.btn-inquiry {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(211, 47, 47, 0.3);
}

.btn-inquiry:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(211, 47, 47, 0.4);
}

/* Contact Card */
.contact-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    border: 1px solid var(--border-color);
}

.contact-title {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.3rem;
}

.contact-info {
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.contact-item i {
    color: var(--primary-color);
    font-size: 1.2rem;
    margin-top: 0.2rem;
}

.contact-label {
    display: block;
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 0.25rem;
}

.contact-value {
    display: block;
    color: var(--text-color);
    font-weight: 500;
    line-height: 1.4;
}

.btn-contact {
    background: transparent;
    color: var(--primary-color);
    padding: 1rem;
    border-radius: 12px;
    border: 2px solid var(--primary-color);
    font-weight: 600;
    transition: var(--transition);
}

.btn-contact:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* Finance Card */
.finance-card {
    background: var(--card-bg);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
}

.finance-title {
    color: var(--text-color);
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.3rem;
}

.finance-calculator {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: var(--text-color);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.input-group {
    border-radius: 10px;
    overflow: hidden;
}

.input-group .form-control {
    border-radius: 0 10px 10px 0;
}

.input-group-text {
    background: var(--bg-light);
    border-color: var(--border-color);
    color: var(--text-color);
}

.calculation-result {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    margin: 2rem 0;
}

.result-label {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.result-value {
    color: var(--primary-color);
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
}

.btn-finance {
    background: var(--gradient-secondary);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    transition: var(--transition);
}

.btn-finance:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(26, 26, 46, 0.3);
}

/* Similar Vehicles */
.similar-vehicles .car-card {
    background: var(--card-bg);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    border: 1px solid var(--border-color);
}

.similar-vehicles .car-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
}

.similar-vehicles .car-img {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.similar-vehicles .car-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.similar-vehicles .car-card:hover .car-img img {
    transform: scale(1.1);
}

.similar-vehicles .car-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.similar-vehicles .car-card:hover .car-overlay {
    opacity: 1;
}

.similar-vehicles .car-overlay-btn {
    background: var(--gradient-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.similar-vehicles .car-overlay-btn:hover {
    transform: translateY(-3px);
}

.similar-vehicles .car-content {
    padding: 1.5rem;
}

.similar-vehicles .car-title {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.similar-vehicles .car-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-family: var(--font-heading);
}

.similar-vehicles .car-meta-simple {
    display: flex;
    justify-content: space-between;
    color: var(--text-light);
    font-size: 0.9rem;
}

.similar-vehicles .car-meta-simple span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Enhanced Fullscreen Modal */
#fullscreenModal .modal-content {
    background: rgba(0, 0, 0, 0.95);
    border: none;
    border-radius: 0;
}

#fullscreenModal .modal-header {
    border: none;
    padding: 1.5rem;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 10;
}

#fullscreenModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

#fullscreenModal .btn-close:hover {
    opacity: 1;
}

#fullscreenModal .modal-body {
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

#fullscreenModal .modal-body img {
    max-height: 90vh;
    max-width: 90vw;
    object-fit: contain;
    border-radius: 10px;
}

#fullscreenModal .modal-footer {
    border: none;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    justify-content: center;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.fullscreen-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

.fullscreen-controls .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.fullscreen-controls .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-3px);
}

.fullscreen-counter {
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    min-width: 80px;
    text-align: center;
}

/* Loading Animation */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 5;
}

.btn-full-screen {
    text-align: center;
    min-width: 190px;
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1199px) {
    .carousel,
    .thumbnail-gallery-container {
        height: 500px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .car-title-detail {
        font-size: 2.5rem;
    }
}

@media (max-width: 991px) {

    .btn-full-screen {
        min-width: 0px;
        width: 50px;
        height: 50px;
    }

    .btn-full-screen span {
        display: none;
    }

    .gallery-section .row {
        flex-direction: column;
    }
    
    .carousel {
        height: 400px;
        border-radius: 15px;
    }
    
    .thumbnail-gallery-container {
        height: 300px;
        border-radius: 15px;
        margin-top: 2rem;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(6, 1fr);
        gap: 8px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 50px;
        height: 50px;
        margin: 0 10px;
        opacity: 0.7;
    }
    
    .btn-fullscreen {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
    
    .car-title-detail {
        font-size: 2.2rem;
    }
    
    .specifications-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
    
    .price-card .price {
        font-size: 2.8rem;
    }
}

@media (max-width: 768px) {

    .carousel-item img {
        height: 350px;
    }

    .breadcrumb-section {
        margin-top: 160px;
    }
    
    .carousel {
        height: 350px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(5, 1fr);
    }
    
    .thumbnail-header,
    .thumbnail-footer {
        padding: 1rem;
    }
    
    .thumbnail-gallery-scroll {
        padding: 1rem;
    }
    
    .carousel-indicators {
        bottom: 15px;
    }
    
    .carousel-indicators [data-bs-target] {
        width: 10px;
        height: 10px;
    }
    
    .carousel-indicators .active {
        width: 30px;
    }
    
    .car-title-detail {
        font-size: 2rem;
    }
    
    .car-meta {
        gap: 1rem;
    }
    
    .car-meta span {
        font-size: 0.9rem;
        padding: 0.4rem 0.8rem;
    }
    
    .specifications-grid {
        grid-template-columns: 1fr;
    }
    
    .video-thumbnail {
        height: 300px;
    }
    
    .price-card .price {
        font-size: 2.5rem;
    }
    
    .calculation-result .result-value {
        font-size: 2rem;
    }
}

@media (max-width: 576px) {
    .carousel {
        height: 300px;
        border-radius: 10px;
    }
    
    .thumbnail-gallery-container {
        border-radius: 10px;
    }
    
    .thumbnails-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }
    
    .thumbnail-item {
        border-width: 2px;
    }
    
    .thumbnail-number {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    .carousel-control-prev,
    .carousel-control-next {
        width: 40px;
        height: 40px;
        margin: 0;
    }
    
    .btn-fullscreen {
        width: 40px;
        height: 40px;
        top: 10px;
        right: 10px;
    }
    
    .image-counter {
        bottom: 15px;
        right: 15px;
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .price-mobile-card {
        padding: 1rem;
    }
    
    .price-tag .price {
        font-size: 1.8rem;
    }
    
    .btn-inquiry-mobile {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    
    .price-card,
    .contact-card,
    .finance-card {
        padding: 1.5rem;
    }
    
    .price-card .price {
        font-size: 2.5rem;
    }
    
    .video-thumbnail {
        height: 250px;
    }
    
    .play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
}

@media (max-width: 400px) {
    .thumbnails-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .carousel-indicators {
        display: none;
    }
    
    .car-title-detail {
        font-size: 1.8rem;
    }
    
    .price-card .price {
        font-size: 2rem;
    }
}

/* Dark Theme Adjustments */
.theme-dark .thumbnail-gallery-container {
    background: var(--card-bg);
}

.theme-dark .thumbnail-header,
.theme-dark .thumbnail-footer {
    background: var(--bg-dark);
    border-color: var(--border-color);
}

.theme-dark .thumbnail-item {
    background: var(--bg-dark);
}

.theme-dark .btn-thumb-action {
    background: var(--bg-dark);
}

.theme-dark .category-filter {
    background: var(--bg-dark);
    border-color: var(--border-color);
}

.theme-dark .category-filter.active {
    background: var(--primary-color);
}

.theme-dark .price-mobile-card {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
}

.theme-dark .btn-inquiry-mobile {
    background: white;
    color: var(--primary-color);
}

/* Print Styles */
@media print {
    .carousel,
    .thumbnail-gallery-container {
        height: auto !important;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .carousel-control-prev,
    .carousel-control-next,
    .btn-fullscreen,
    .thumbnail-footer,
    .carousel-indicators,
    .price-mobile-section,
    .btn-inquiry,
    .btn-contact,
    .btn-finance {
        display: none !important;
    }
    
    .sticky-sidebar {
        position: static !important;
    }
}