/* ========================================
   VEHICLE DETAIL PAGE
   ======================================== */

/* Container */
.detail-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 120px 40px 80px;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
    margin-bottom: 30px;
}

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

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

.breadcrumb span:not(:last-child) {
    color: #999;
}

.breadcrumb span:last-child {
    color: #333;
    font-weight: 500;
}

/* Main Content Layout */
.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 60px;
}

/* ========================================
   GALLERY SECTION
   ======================================== */

.gallery-section {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.main-image {
    width: 100%;
    height: 500px;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #999;
    text-align: center;
}

.no-image svg {
    stroke: #ccc;
    margin-bottom: 16px;
}

.no-image p {
    font-size: 14px;
    color: #999;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.thumbnail:hover {
    border-color: #FF4B4B;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #FF4B4B;
}

/* ========================================
   INFO SECTION
   ======================================== */

.info-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Vehicle Header */
.vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 30px;
    border-bottom: 1px solid #e5e5e5;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 16px;
}

.badge-available {
    background: #E8F8EE;
    color: #2D8A4E;
}

.badge-unavailable {
    background: #FFE5E5;
    color: #C62828;
}

.vehicle-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.vehicle-year {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.price-box {
    text-align: right;
}

.price {
    display: block;
    font-size: 42px;
    font-weight: 700;
    color: #FF4B4B;
    line-height: 1;
}

.price-label {
    display: block;
    font-size: 14px;
    color: #666;
    margin-top: 4px;
}

/* Quick Specs Grid */
.quick-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.spec-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f8f8f8;
    border-radius: 8px;
}

.spec-item svg {
    stroke: #FF4B4B;
    flex-shrink: 0;
    margin-top: 2px;
}

.spec-item > div {
    display: flex;
    flex-direction: column;
}

.spec-label {
    font-size: 12px;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.spec-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}

/* Description */
.vehicle-description h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
}

.vehicle-description p {
    font-size: 15px;
    line-height: 1.7;
    color: #666;
    margin: 0;
}

/* Features List */
.features-list {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 24px;
}

.features-list h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 20px 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #333;
}

.feature-item svg {
    stroke: #2D8A4E;
    flex-shrink: 0;
}

/* Pricing Details */
.pricing-details {
    background: linear-gradient(135deg, #FF4B4B 0%, #FF6B6B 100%);
    border-radius: 12px;
    padding: 28px;
    color: white;
}

.pricing-details h3 {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px 0;
}

.pricing-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.pricing-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pricing-label {
    font-size: 15px;
    opacity: 0.9;
}

.pricing-value {
    font-size: 18px;
    font-weight: 700;
}

/* CTA Section - Boutons d'action */
.cta-section,
.cta-buttons {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-secondary,
.btn-disabled {
    flex: 1;
    min-width: 220px;
    padding: 18px 36px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    letter-spacing: 0.3px;
}

.btn-primary {
    background: linear-gradient(135deg, #FF4B4B 0%, #FF6B6B 100%);
    color: white;
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #E63939 0%, #E65959 100%);
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 75, 75, 0.35);
}

.btn-primary:active {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(255, 75, 75, 0.3);
}

.btn-secondary {
    background: white;
    color: #FF4B4B;
    border: 2px solid #FF4B4B;
}

.btn-secondary:hover {
    background: #FF4B4B;
    color: white;
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(255, 75, 75, 0.25);
}

.btn-secondary:active {
    transform: translateY(-1px);
}

.btn-disabled {
    background: #e5e5e5;
    color: #999;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Additional Info Cards */
.additional-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    grid-column: 1 / -1;
    margin-top: 40px;
}

.info-card {
    background: #f8f8f8;
    border-radius: 12px;
    padding: 24px;
}

.info-card h4 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-card h4 svg {
    stroke: #FF4B4B;
}

.info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-card li {
    font-size: 14px;
    color: #666;
    padding: 8px 0;
    border-bottom: 1px solid #e5e5e5;
}

.info-card li:last-child {
    border-bottom: none;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .gallery-section {
        position: static;
    }

    .quick-specs {
        grid-template-columns: repeat(2, 1fr);
    }

    .additional-info {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .detail-container {
        padding: 100px 20px 60px;
    }

    .vehicle-header {
        flex-direction: column;
        gap: 20px;
    }

    .price-box {
        text-align: left;
    }

    .vehicle-title {
        font-size: 26px;
    }

    .quick-specs {
        grid-template-columns: 1fr;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
    }

    .cta-section,
    .cta-buttons {
        flex-direction: column;
        gap: 16px;
    }

    .btn-primary,
    .btn-secondary,
    .btn-disabled {
        min-width: 100%;
        padding: 16px 28px;
    }

    .main-image {
        height: 300px;
    }
}
