/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #0a0a0a;
    color: #ffffff;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.header {
    background: #000;
    border-bottom: 1px solid #1a1a1a;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.navbar {
    padding: 1rem 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo .logo {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    color: #909090;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #fff;
}

.btn-back {
    background: #fff;
    color: #000;
    border: 1px solid #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.btn-back:hover {
    transform: translateX(-5px);
    background: #f5f5f5;
    box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Detail Section */
.car-detail-section {
    padding-top: 100px;
    padding-bottom: 4rem;
    min-height: 100vh;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    color: #909090;
    font-size: 0.9rem;
}

.breadcrumb a {
    color: #909090;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #fff;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

/* Left Column - Images */
.detail-left {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image-container {
    position: relative;
    background: #1a1a1a;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.image-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.img-nav-btn {
    width: 50px;
    height: 50px;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.3s ease;
}

.img-nav-btn:hover {
    background: rgba(0, 0, 0, 0.8);
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
}

.image-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.thumbnail {
    aspect-ratio: 16/9;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

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

.thumbnail:hover,
.thumbnail.active {
    border-color: #fff;
}

/* Right Column - Info */
.detail-right {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.car-header {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
}

.car-badge {
    display: inline-block;
    background: #fff;
    color: #000;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.car-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.car-price-box {
    background: #1a1a1a;
    border: 1px solid #333;
    padding: 1.5rem;
    border-radius: 16px;
    text-align: center;
}

.price-label {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

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

.quick-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.info-item {
    background: #1a1a1a;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.info-item i {
    font-size: 2rem;
    color: #fff;
}

.info-label {
    font-size: 0.85rem;
    color: #909090;
}

.info-value {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
}

.contact-box {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
}

.contact-info {
    margin-bottom: 1.5rem;
}

.dealer-name,
.dealer-location {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.dealer-name i,
.dealer-location i {
    color: #fff;
}

.contact-actions {
    display: flex;
    gap: 1rem;
}

.btn-contact,
.btn-whatsapp {
    flex: 1;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-contact {
    background: #fff;
    color: #000;
}

.btn-whatsapp {
    background: transparent;
    color: #fff;
    border: 1px solid #fff;
}

.btn-contact:hover,
.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.description-box {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
}

.description-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.description-content {
    color: #909090;
    line-height: 1.8;
}

/* Specifications */
.specs-section {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 2rem;
}

.tabs {
    display: flex;
    gap: 1rem;
    border-bottom: 2px solid #2a2a2a;
    margin-bottom: 2rem;
}

.tab-btn {
    background: none;
    border: none;
    color: #909090;
    padding: 1rem 2rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s ease;
}

.tab-btn.active {
    color: #fff;
    border-bottom-color: #fff;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.specs-grid,
.features-grid,
.safety-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.spec-item,
.feature-item {
    background: #0f0f0f;
    padding: 1.5rem;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.spec-label,
.feature-label {
    color: #909090;
    font-size: 0.95rem;
}

.spec-value,
.feature-value {
    color: white;
    font-weight: 600;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.feature-item i {
    color: #fff;
    font-size: 1.2rem;
}

/* Footer */
.footer {
    background: #0f0f0f;
    border-top: 1px solid #1a1a1a;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer-logo .logo {
    height: 42px;
    margin-bottom: 1rem;
}

.footer-section p {
    color: #909090;
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: #333;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #1a1a1a;
    color: #909090;
    margin-top: 2rem;
}

/* Image Lightbox */
.image-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    cursor: zoom-out;
}

.image-lightbox.active {
    display: flex;
    flex-direction: column;
    cursor: default;
}

.lightbox-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #fff;
    font-size: 1.25rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.2s;
}

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

.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: rgba(0, 0, 0, 0.85);
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #fff;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10002;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-content {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    cursor: grab;
    min-width: 0;
}

.lightbox-content:active {
    cursor: grabbing;
}

#lightboxImage {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    transform-origin: center center;
    transition: transform 0.1s ease-out;
    cursor: zoom-in;
    user-select: none;
}

.lightbox-zoom-hint {
    color: #666;
    font-size: 0.85rem;
    padding: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .detail-left {
        position: static;
    }
    
    .main-image {
        height: 300px;
    }
    
    .image-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .quick-info {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .tabs {
        overflow-x: auto;
    }
    
    .specs-grid,
    .features-grid,
    .safety-grid {
        grid-template-columns: 1fr;
    }
}

