/* =========================================================
   SINGLE VEHICLE PAGE
========================================================= */

.single-vehicle {
    padding: 80px 0;
    background: #111;
}

/* Top Bar */
.vehicle-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 35px;
}

.back-to-stock {
    color: #aaa;
    transition: 0.3s ease;
}

.back-to-stock:hover {
    color: #C89B63;
}

.single-sold-badge,
.available-badge {
    padding: 10px 16px;
    border-radius: 6px;
    font-weight: bold;
    letter-spacing: 1px;
}

.single-sold-badge {
    background: #C89B63;
    color: #111;
}

.available-badge {
    background: rgba(55, 160, 90, 0.18);
    color: #7ee09b;
    border: 1px solid rgba(126, 224, 155, 0.35);
}

/* Header */
.single-vehicle-header {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: end;
    margin-bottom: 35px;
}

.single-vehicle-header h1 {
    font-size: 58px;
    line-height: 1.05;
    margin: 12px 0 20px;
}

.single-vehicle-key-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.single-vehicle-key-meta span {
    background: #161616;
    border: 1px solid #2a2a2a;
    padding: 10px 14px;
    border-radius: 8px;
    color: #ddd;
}

/* Price */
.single-price-box {
    background: linear-gradient(180deg, #1b1b1b, #111);
    border: 1px solid #2a2a2a;
    padding: 28px;
    border-radius: 16px;
}

.single-price-box p {
    margin: 0 0 10px;
    color: #aaa;
}

.single-price-box strong {
    display: block;
    color: #C89B63;
    font-size: 42px;
    margin-bottom: 10px;
}

.single-price-box span {
    color: #ccc;
}

/* =========================================================
   CLEAN GALLERY
========================================================= */

.vehicle-gallery {
    margin-bottom: 45px;
}

.main-vehicle-image {
    background: #161616;
    border: 1px solid #222;
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 18px;
}

.main-vehicle-image img {
    width: 100%;
    height: 650px;
    object-fit: cover;
    display: block;
}

/* Force gallery thumbnails into one clean row */
.gallery-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    margin-top: 18px !important;
    overflow: hidden !important;
}

/* Hide all thumbnails after number 5 */
.gallery-thumbnails img:nth-child(n+6) {
    display: none !important;
}

.gallery-thumbnails.show-all img {
    display: block !important;
}

.gallery-thumbnails img {
    width: 100% !important;
    height: 130px !important;
    object-fit: cover !important;
    border-radius: 12px !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    opacity: 0.72 !important;
    transition: 0.3s ease !important;
    display: block;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active-thumb {
    opacity: 1 !important;
    border-color: #C89B63 !important;
    transform: translateY(-2px);
}

.view-all-photos-btn {
    display: inline-block;
    margin-top: 18px;
    background: transparent;
    border: 1px solid #C89B63;
    color: #C89B63;
    padding: 14px 24px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s ease;
    font-weight: bold;
}

.view-all-photos-btn:hover {
    background: #C89B63;
    color: #111;
}

/* Action Strip */
.vehicle-action-strip {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    background: #151515;
    border: 1px solid #2a2a2a;
    padding: 22px;
    border-radius: 16px;
    margin: 30px 0 60px;
}

.vehicle-action-strip .cta-button,
.vehicle-action-strip .secondary-button,
.vehicle-action-strip .save-vehicle-btn,
.vehicle-action-strip .compare-vehicle-btn {
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 28px;
    box-sizing: border-box;
    margin: 0;
}

.vehicle-action-strip .save-vehicle-btn,
.vehicle-action-strip .compare-vehicle-btn {
    background: transparent;
    border: 1px solid #C89B63;
    color: #C89B63;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.3s ease;
}

.vehicle-action-strip .save-vehicle-btn:hover,
.vehicle-action-strip .compare-vehicle-btn:hover {
    background: #C89B63;
    color: #111;
}

/* Specs */
.vehicle-spec-section {
    margin: 60px 0;
}

.vehicle-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.spec-box {
    background: #161616;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 120px;
    transition: 0.3s ease;
}

.spec-box:hover {
    border-color: #C89B63;
    transform: translateY(-3px);
}

.spec-icon {
    font-size: 28px;
    width: 48px;
    text-align: center;
    flex-shrink: 0;
}

.spec-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.spec-content strong {
    color: #C89B63;
    margin-bottom: 8px;
    font-size: 16px;
}

.spec-content span {
    color: #F5F0E8;
    font-size: 18px;
}

/* Video */
.vehicle-video-section {
    margin: 70px 0;
    background: #151515;
    border: 1px solid #222;
    border-radius: 20px;
    padding: 45px;
}

.vehicle-video-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}

.vehicle-video-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    overflow: hidden;
    padding: 12px;
}

.vehicle-video-card iframe {
    width: 100%;
    height: 360px;
    border-radius: 12px;
    display: block;
}

/* Description */
.vehicle-description-section {
    background: #151515;
    border: 1px solid #2a2a2a;
    padding: 42px;
    border-radius: 16px;
    margin: 60px 0;
}

.single-vehicle-content {
    color: #ccc;
    line-height: 1.9;
    font-size: 18px;
}

/* Confidence */
.vehicle-confidence-section {
    margin: 60px 0;
}

/* Enquiry */
.vehicle-enquiry-form {
    margin-top: 60px;
}

/* Responsive */
@media(max-width: 1100px) {
    .single-vehicle-header {
        grid-template-columns: 1fr;
    }

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

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

@media(max-width: 768px) {
    .single-vehicle-header h1 {
        font-size: 40px;
    }

    .main-vehicle-image img {
        height: 400px;
    }

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

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .gallery-thumbnails img {
        height: 105px !important;
    }

    .vehicle-video-card iframe {
        height: 260px;
    }

    .vehicle-action-strip {
        flex-direction: column;
    }

    .vehicle-action-strip .cta-button,
    .vehicle-action-strip .secondary-button,
    .vehicle-action-strip .save-vehicle-btn,
    .vehicle-action-strip .compare-vehicle-btn {
        width: 100%;
    }
}

@media(max-width: 480px) {
    .main-vehicle-image img {
        height: 300px;
    }

    .gallery-thumbnails img {
        height: 95px !important;
    }
}
/* =========================================================
   LUXURY VEHICLE GALLERY
========================================================= */

.vehicle-gallery {
    margin-bottom: 50px;
}

.main-vehicle-image {
    width: 100%;
    border-radius: 22px;
    overflow: hidden;
    background: #111;
    border: 1px solid #222;
    margin-bottom: 18px;
}

.main-vehicle-image img {
    width: 100%;
    height: 720px;
    object-fit: cover;
    display: block;
}

/* Thumbnails */
.gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
}

.gallery-thumbnails img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    cursor: pointer;
    border: 2px solid transparent;
    opacity: 0.75;
    transition: all 0.3s ease;
    display: block;
}

.gallery-thumbnails img:hover {
    opacity: 1;
    border-color: #C89B63;
    transform: translateY(-2px);
}

.gallery-thumbnails img.active-thumb {
    opacity: 1;
    border-color: #C89B63;
}

/* Responsive */
@media(max-width: 1100px) {

    .main-vehicle-image img {
        height: 560px;
    }

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

@media(max-width: 768px) {

    .main-vehicle-image img {
        height: 420px;
    }

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

    .gallery-thumbnails img {
        height: 95px;
    }
}

@media(max-width: 480px) {

    .main-vehicle-image img {
        height: 320px;
    }

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

    .gallery-thumbnails img {
        height: 85px;
    }
}

/* =========================================================
   FIXED LUXURY VEHICLE GALLERY
========================================================= */

.lumo-gallery {
    margin: 40px auto 60px !important;
    max-width: 1180px !important;
}

.lumo-main-image-wrap {
    position: relative !important;
    width: 100% !important;
    background: #0b0b0b !important;
    border: 1px solid #222 !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.lumo-main-image-wrap img {
    width: 100% !important;
    height: 620px !important;
    object-fit: contain !important;
    object-position: center center !important;
    display: block !important;
    background: #0b0b0b !important;
}

.gallery-arrow {
    position: absolute !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 54px !important;
    height: 54px !important;
    border-radius: 50% !important;
    border: 1px solid #C89B63 !important;
    background: rgba(0,0,0,0.65) !important;
    color: #C89B63 !important;
    font-size: 42px !important;
    line-height: 1 !important;
    cursor: pointer !important;
    z-index: 10 !important;
    transition: 0.3s ease !important;
}

.gallery-arrow:hover {
    background: #C89B63 !important;
    color: #111 !important;
}

.gallery-arrow-left {
    left: 22px !important;
}

.gallery-arrow-right {
    right: 22px !important;
}

.gallery-thumbnails {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 14px !important;
    margin-top: 18px !important;
}

.gallery-thumbnails img {
    width: 100% !important;
    height: 115px !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: 10px !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    opacity: 0.75 !important;
    transition: 0.3s ease !important;
    display: block !important;
}

.gallery-thumbnails img:hover,
.gallery-thumbnails img.active-thumb {
    opacity: 1 !important;
    border-color: #C89B63 !important;
}

.gallery-thumbnails img.hidden-gallery-thumb {
    display: none !important;
}

.gallery-thumbnails.gallery-open img {
    display: block !important;
}

.view-all-photos-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-top: 18px !important;
    background: transparent !important;
    border: 1px solid #C89B63 !important;
    color: #C89B63 !important;
    padding: 14px 28px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    font-weight: 700 !important;
    transition: 0.3s ease !important;
}

.view-all-photos-btn:hover {
    background: #C89B63 !important;
    color: #111 !important;
}

.view-all-gallery-toggle {
    display: none !important;
}

@media(max-width: 900px) {
    .lumo-main-image-wrap img {
        height: 430px !important;
    }

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

    .gallery-thumbnails img {
        height: 95px !important;
    }
}

@media(max-width: 480px) {
    .lumo-main-image-wrap img {
        height: 310px !important;
    }

    .gallery-thumbnails {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .gallery-arrow {
        width: 44px !important;
        height: 44px !important;
        font-size: 34px !important;
    }
}