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

.vehicle-detail-section {
    padding: 48px 0 72px;
    background: #f7f8fa;
}

.vehicle-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.vehicle-detail-heading h1 {
    margin: 6px 0 4px;
    font-size: 42px;
    line-height: 1.1;
    font-weight: 800;
    color: #111827;
}

.detail-brand {
    display: block;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.detail-reference {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
}

.detail-price {
    font-size: 34px;
    font-weight: 800;
    color: #ff0000;
    white-space: nowrap;
}

.detail-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.vehicle-badge,
.vehicle-secondary-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.status-available {
    background: #16834f;
    color: #ffffff;
}

.status-reserved {
    background: #df9700;
    color: #ffffff;
}

.status-sold {
    background: #626262;
    color: #ffffff;
}


.new-badge {
    background: #111827;
    color: #ffffff;
}

/* =========================
   MAIN LAYOUT
========================= */

.vehicle-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.8fr);
    gap: 28px;
    align-items: start;
}

.detail-gallery-column {
    min-width: 0;
}

.detail-main-image-button {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    background: #e5e7eb;
    cursor: pointer;
}

.detail-main-image {
    display: block;
    width: 100%;
    height: 560px;
    object-fit: cover;
}

.detail-photo-count {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(17, 24, 39, 0.82);
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
}

.detail-sold-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(17, 24, 39, 0.55);
    color: #ffffff;
    font-size: 38px;
    font-weight: 800;
    text-transform: uppercase;
}

/* =========================
   THUMBNAILS
========================= */

.detail-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.detail-thumbnail {
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    overflow: hidden;
    background: #ffffff;
    cursor: pointer;
}

.detail-thumbnail.active {
    border-color: #111827;
}

.detail-thumbnail img {
    display: block;
    width: 100%;
    height: 90px;
    object-fit: cover;
}

/* =========================
   INFO CARD
========================= */

.detail-information-card {
    position: static;
    align-self: start;
    padding: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(17, 24, 39, 0.08);
}

.section-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.detail-main-specifications,
.detail-technical-grid {
    display: grid;
    gap: 0;
}

.detail-specification-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid #edf0f3;
}

.detail-specification-item:last-child {
    border-bottom: 0;
}

.detail-specification-item span {
    color: #6b7280;
    font-size: 14px;
}

.detail-specification-item strong {
    color: #111827;
    font-size: 14px;
    text-align: right;
}

/* =========================
   BUTTONS
========================= */

.detail-whatsapp-button,
.detail-contact-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: 100%;
    min-height: 48px;
    margin-top: 14px;
    padding: 12px 16px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.detail-whatsapp-button {
    background: #25d366;
    color: #ffffff;
}

.detail-whatsapp-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(37, 211, 102, 0.25);
}

.detail-contact-button {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #111827;
}

.detail-contact-button:hover {
    background: #f3f4f6;
}

.detail-sold-message {
    margin-top: 18px;
    padding: 14px;
    border-radius: 10px;
    background: #feecec;
    color: #a92727;
    font-weight: 700;
}

/* =========================
   CONTENT CARDS
========================= */

.vehicle-detail-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 32px;
}

.detail-description-card,
.detail-technical-card,
.detail-equipment-card {
    padding: 26px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
}

.detail-description-card h2,
.detail-technical-card h2,
.detail-equipment-card h2 {
    margin: 0 0 16px;
    font-size: 24px;
    color: #111827;
}

.detail-description-card p {
    margin: 0;
    line-height: 1.75;
    color: #4b5563;
}

.detail-equipment-card {
    margin-top: 24px;
}

.detail-equipment-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.detail-equipment-list li {
    position: relative;
    padding-left: 18px;
    color: #374151;
}

.detail-equipment-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 800;
}

/* =========================
   SIMILAR VEHICLES
========================= */

.similar-vehicles-section {
    padding: 56px 0;
    background: #ffffff;
}

/* =========================
   LOADING / ERROR
========================= */

.vehicle-detail-loading,
.vehicle-detail-error {
    padding: 100px 0;
    text-align: center;
}

.detail-error-card {
    max-width: 620px;
    margin: 0 auto;
    padding: 36px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
}

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

@media (max-width: 1000px) {
    .vehicle-detail-layout {
        grid-template-columns: 1fr;
    }

    .detail-information-card {
        position: static;
        align-self: auto;
    }

    .vehicle-detail-content-grid {
        grid-template-columns: 1fr;
    }

    .detail-main-image {
        height: 480px;
    }
}

@media (max-width: 700px) {
    .vehicle-detail-section {
        padding: 28px 0 48px;
    }

    .vehicle-detail-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .vehicle-detail-heading h1 {
        font-size: 32px;
    }

    .detail-price {
        font-size: 28px;
    }

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

    .detail-thumbnails {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .detail-thumbnail img {
        height: 70px;
    }

    .detail-information-card,
    .detail-description-card,
    .detail-technical-card,
    .detail-equipment-card {
        padding: 20px;
    }

    .detail-equipment-list {
        grid-template-columns: 1fr;
    }
}