/* =========================================================
   SEARCH FORM
========================================================= */

#jqe-search {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.jqe-search-form {
    display: grid;

    grid-template-columns:
        1.2fr
        1fr
        1fr
        1fr
        1.2fr;

    gap: 20px;

    padding: 32px;

    border: 1px solid #ddd;

    border-radius: 16px;

    background: #fff;

    margin-bottom: 40px;
}

.jqe-field {
    display: flex;
    flex-direction: column;
}

.jqe-field label {
    font-size: 16px;
    font-weight: 600;

    margin-bottom: 10px;

    color: #222;
}

.jqe-field input,
.jqe-field select {
    width: 100%;

    min-height: 52px;

    padding: 0 16px;

    border: 1px solid #d8d8d8;

    border-radius: 8px;

    background: #fff;

    font-size: 16px;

    box-sizing: border-box;
}

.jqe-search-button-wrap {
    grid-column: 1 / 2;
}

#jqe-search-button {
    width: 100%;

    min-height: 52px;

    border: 0;

    border-radius: 8px;

    background: #c99650;

    color: #fff;

    font-size: 16px;

    font-weight: 600;

    cursor: pointer;

    transition: 0.2s ease;
}

#jqe-search-button:hover {
    background: #b98540;
}

#jqe-search-button:disabled {
    opacity: 0.65;

    cursor: wait;
}


/* =========================================================
   RESULTS
========================================================= */

.jqe-results-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 24px;
}


/* =========================================================
   VEHICLE CARD
========================================================= */

.jqe-vehicle-card {
    overflow: hidden;

    border: 1px solid #ddd;

    border-radius: 14px;

    background: #fff;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.06);
}

.jqe-vehicle-image {
    width: 100%;

    height: 250px;

    background: #f3f3f3;

    overflow: hidden;
}

.jqe-vehicle-image img {
    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}

.jqe-no-image {
    width: 100%;

    height: 100%;

    display: flex;

    align-items: center;

    justify-content: center;

    color: #999;

    font-size: 15px;
}


/* =========================================================
   CARD CONTENT
========================================================= */

.jqe-vehicle-content {
    padding: 22px;
}

.jqe-vehicle-source {
    display: inline-block;

    margin-bottom: 10px;

    color: #c99650;

    font-size: 12px;

    font-weight: 700;

    letter-spacing: 0.8px;
}

.jqe-vehicle-title {
    margin: 0 0 18px;

    font-size: 22px;

    line-height: 1.3;

    color: #222;
}


/* =========================================================
   CARD FIELD
========================================================= */

.jqe-field-row {
    display: flex;

    justify-content: space-between;

    gap: 15px;

    padding: 8px 0;

    border-bottom: 1px solid #eee;

    font-size: 14px;
}

.jqe-field-row strong {
    color: #555;
}

.jqe-field-row span {
    text-align: right;

    color: #222;
}


/* =========================================================
   SPEC GRID
========================================================= */

.jqe-spec-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 12px;

    margin-top: 18px;
}

.jqe-spec-grid > div {
    padding: 12px;

    border-radius: 8px;

    background: #f7f7f7;
}

.jqe-spec-grid small {
    display: block;

    margin-bottom: 5px;

    color: #777;

    font-size: 11px;

    text-transform: uppercase;
}

.jqe-spec-grid strong {
    display: block;

    color: #222;

    font-size: 14px;
}


/* =========================================================
   PRICE
========================================================= */

.jqe-price-section {
    margin-top: 20px;

    padding-top: 18px;

    border-top: 1px solid #ddd;
}

.jqe-price {
    font-size: 22px;

    font-weight: 700;

    color: #222;
}

.jqe-price-detail {
    margin-top: 5px;

    color: #777;

    font-size: 13px;
}


/* =========================================================
   VIEW DETAILS
========================================================= */

.jqe-card-actions {
    margin-top: 20px;
}

.jqe-view-vehicle {
    display: flex;

    width: 100%;

    min-height: 46px;

    align-items: center;

    justify-content: center;

    border: 0;

    border-radius: 6px;

    background: #222;

    color: #fff !important;

    font-size: 15px;

    font-weight: 600;

    text-decoration: none !important;

    cursor: pointer;

    transition: 0.2s ease;
}

.jqe-view-vehicle:hover {
    background: #000;

    color: #fff !important;
}


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

.jqe-detail-page {
    width: 100%;

    max-width: 1200px;

    margin: 0 auto;

    padding: 20px 0 60px;
}


/* =========================================================
   DETAIL HEADER
========================================================= */

.jqe-detail-header {
    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}

.jqe-detail-source {
    display: inline-block;

    margin-bottom: 10px;

    color: #c99650;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 1px;
}

.jqe-detail-header h1 {
    margin: 0;

    color: #222;

    font-size: 38px;

    line-height: 1.2;
}

.jqe-detail-price {
    padding: 15px 22px;

    border-radius: 10px;

    background: #f7f7f7;

    color: #222;

    font-size: 26px;

    font-weight: 700;

    white-space: nowrap;
}


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

.jqe-gallery {
    margin-bottom: 40px;
}

.jqe-gallery-main {
    width: 100%;

    height: 600px;

    overflow: hidden;

    border-radius: 14px;

    background: #f3f3f3;
}

.jqe-gallery-main img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: contain;

    background: #f3f3f3;
}


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

.jqe-gallery-thumbs {
    display: flex;

    gap: 12px;

    margin-top: 15px;

    overflow-x: auto;

    padding-bottom: 5px;
}

.jqe-gallery-thumb {
    flex: 0 0 90px;

    width: 90px;

    height: 70px;

    padding: 0;

    overflow: hidden;

    border: 2px solid transparent;

    border-radius: 7px;

    background: #f3f3f3;

    cursor: pointer;
}

.jqe-gallery-thumb.active {
    border-color: #c99650;
}

.jqe-gallery-thumb img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;
}


/* =========================================================
   DETAIL SECTION
========================================================= */

.jqe-detail-section {
    margin-top: 35px;

    padding: 30px;

    border: 1px solid #e1e1e1;

    border-radius: 14px;

    background: #fff;
}

.jqe-detail-section h2 {
    margin: 0 0 25px;

    color: #222;

    font-size: 26px;
}


/* =========================================================
   DETAIL GRID
========================================================= */

.jqe-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 15px;
}

.jqe-detail-field {
    display: flex;

    flex-direction: column;

    gap: 6px;

    padding: 15px;

    border-radius: 8px;

    background: #f7f7f7;
}

.jqe-detail-field span {
    color: #777;

    font-size: 12px;

    text-transform: uppercase;

    letter-spacing: 0.5px;
}

.jqe-detail-field strong {
    color: #222;

    font-size: 15px;
}


/* =========================================================
   EQUIPMENT
========================================================= */

.jqe-equipment-detail {
    padding: 20px;

    border-radius: 8px;

    background: #f7f7f7;

    color: #333;

    font-size: 15px;

    line-height: 1.7;
}


/* =========================================================
   REFERENCE
========================================================= */

.jqe-detail-reference {
    margin-top: 25px;

    color: #777;

    font-size: 13px;
}

.jqe-detail-reference strong {
    color: #222;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.jqe-detail-back {
    margin-top: 30px;
}

.jqe-detail-back a {
    display: inline-flex;

    align-items: center;

    padding: 12px 20px;

    border-radius: 7px;

    background: #222;

    color: #fff !important;

    text-decoration: none !important;

    font-weight: 600;
}

.jqe-detail-back a:hover {
    background: #000;

    color: #fff !important;
}


/* =========================================================
   DETAIL ERROR
========================================================= */

.jqe-detail-error {
    max-width: 800px;

    margin: 50px auto;

    padding: 30px;

    border: 1px solid #f1aaaa;

    border-radius: 10px;

    background: #fff1f1;

    color: #b00000;

    text-align: center;
}

.jqe-detail-error h2 {
    margin-top: 0;

    color: #b00000;
}


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

.jqe-loading {
    min-height: 250px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    color: #555;
}

.jqe-spinner {
    width: 38px;

    height: 38px;

    border: 4px solid #ddd;

    border-top-color: #c99650;

    border-radius: 50%;

    animation: jqe-spin 0.8s linear infinite;

    margin-bottom: 15px;
}

@keyframes jqe-spin {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }

}


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

.jqe-api-error {
    padding: 20px;

    border: 1px solid #f1aaaa;

    border-radius: 8px;

    background: #fff1f1;

    color: #b00000;

    margin-bottom: 20px;
}

.jqe-no-results {
    padding: 50px 20px;

    text-align: center;

    color: #666;
}


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

@media (max-width: 1000px) {

    .jqe-search-form {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .jqe-search-button-wrap {
        grid-column: auto;
    }

    .jqe-results-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

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

    .jqe-gallery-main {
        height: 500px;
    }
}


@media (max-width: 650px) {

    .jqe-search-form {
        grid-template-columns: 1fr;

        padding: 20px;
    }

    .jqe-search-button-wrap {
        grid-column: auto;
    }

    .jqe-results-grid {
        grid-template-columns: 1fr;
    }

    .jqe-detail-header {
        flex-direction: column;
    }

    .jqe-detail-header h1 {
        font-size: 28px;
    }

    .jqe-detail-price {
        font-size: 22px;
    }

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

    .jqe-detail-section {
        padding: 20px;
    }

    .jqe-gallery-main {
        height: 350px;
    }
}


@media (min-width: 568px) {

    input[type="text"],
    textarea,
    select,
    div.styled,
    input[type="file"] {
        width: 100% !important;
    }

}






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

.jqe-new-detail-page {
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 25px 20px 60px;
    box-sizing: border-box;
    color: #25303a;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.jqe-detail-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 25px;
    color: #7d858c;
    font-size: 13px;
}

.jqe-detail-breadcrumb a {
    color: #7d858c;
    text-decoration: none;
}

.jqe-detail-breadcrumb a:hover {
    color: #b58a52;
}

.jqe-detail-breadcrumb strong {
    color: #555e65;
    font-weight: 500;
}


/* =========================================================
   TOP GRID
========================================================= */

.jqe-detail-top-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(350px, 0.8fr);
    gap: 28px;
    margin-bottom: 30px;
}


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

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

.jqe-new-gallery-main {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 10px;
    background: #f2f3f3;
}

.jqe-new-gallery-main > img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.jqe-gallery-count {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 3;
    padding: 8px 12px;
    border-radius: 5px;
    background: rgba(23, 32, 38, 0.88);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.jqe-new-gallery-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #3e464c;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.12);
}

.jqe-new-gallery-prev {
    left: 15px;
}

.jqe-new-gallery-next {
    right: 15px;
}

.jqe-new-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.jqe-new-gallery-thumbs::-webkit-scrollbar {
    height: 5px;
}

.jqe-gallery-thumb {
    width: 72px;
    height: 60px;
    flex: 0 0 72px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 6px;
    background: #f3f3f3;
    cursor: pointer;
}

.jqe-gallery-thumb.active {
    border-color: #b58a52;
}

.jqe-gallery-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.jqe-new-detail-no-image {
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f3f3;
    color: #7c8388;
}


/* =========================================================
   SUMMARY
========================================================= */

.jqe-detail-summary-column {
    min-width: 0;
}

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

.jqe-detail-source-badge,
.jqe-detail-japan-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
}

.jqe-detail-source-badge {
    background: #b58a52;
    color: #ffffff;
}

.jqe-detail-japan-badge {
    background: #edf0f2;
    color: #59626a;
}

.jqe-new-detail-title {
    margin: 0 0 18px;
    color: #29323a;
    font-size: 30px;
    line-height: 1.25;
    font-weight: 700;
}


/* =========================================================
   AUCTION SUMMARY
========================================================= */

.jqe-auction-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 18px;
    overflow: hidden;
    border: 1px solid #e4e7e8;
    border-radius: 8px;
}

.jqe-auction-summary > div {
    padding: 15px;
}

.jqe-auction-summary > div + div {
    border-left: 1px solid #e4e7e8;
}

.jqe-auction-summary span {
    display: block;
    margin-bottom: 5px;
    color: #899198;
    font-size: 10px;
}

.jqe-auction-summary strong {
    display: block;
    color: #3c454c;
    font-size: 12px;
}


/* =========================================================
   QUICK SPECS
========================================================= */

.jqe-quick-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-bottom: 18px;
    border-top: 1px solid #edf0f1;
    border-left: 1px solid #edf0f1;
}

.jqe-quick-spec {
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 72px;
    padding: 10px;
    border-right: 1px solid #edf0f1;
    border-bottom: 1px solid #edf0f1;
}

.jqe-quick-icon {
    width: 24px;
    flex: 0 0 24px;
    color: #b58a52;
    font-size: 20px;
    text-align: center;
}

.jqe-quick-spec small {
    display: block;
    margin-bottom: 4px;
    color: #879097;
    font-size: 10px;
}

.jqe-quick-spec strong {
    display: block;
    color: #343d44;
    font-size: 11px;
    line-height: 1.3;
}


/* =========================================================
   REQUEST PRICE BOX
========================================================= */

.jqe-request-price-box {
    padding: 22px;
    border-radius: 8px;
    background: #14212a;
    color: #ffffff;
    text-align: center;
}

.jqe-request-price-box h3 {
    margin: 0 0 8px;
    color: #ffffff;
    font-size: 15px;
}

.jqe-request-price-box p {
    margin: 0 0 16px;
    color: #d5dade;
    font-size: 10px;
    line-height: 1.6;
}

.jqe-new-request-price-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 170px;
    padding: 12px 18px;
    border-radius: 4px;
    background: #b58a52;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.jqe-new-request-price-btn:hover {
    background: #9f783f;
    color: #ffffff;
}


/* =========================================================
   LOWER GRID
========================================================= */

.jqe-detail-content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 25px;
    align-items: start;
}


/* =========================================================
   SECTIONS
========================================================= */

.jqe-new-detail-section {
    margin-bottom: 22px;
    padding: 22px;
    border: 1px solid #e4e7e9;
    border-radius: 8px;
    background: #ffffff;
}

.jqe-section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.jqe-section-heading-icon {
    color: #b58a52;
    font-size: 20px;
}

.jqe-section-heading h2 {
    margin: 0;
    color: #303940;
    font-size: 16px;
    font-weight: 700;
}


/* =========================================================
   DETAILS GRID
========================================================= */

.jqe-new-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-top: 1px solid #e8ebec;
    border-left: 1px solid #e8ebec;
}

.jqe-new-details-grid .jqe-detail-field {
    min-height: 74px;
    padding: 13px;
    box-sizing: border-box;
    border-right: 1px solid #e8ebec;
    border-bottom: 1px solid #e8ebec;
}

.jqe-detail-field-label {
    margin-bottom: 7px;
    color: #7f888f;
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
}

.jqe-detail-field-value {
    color: #323b42;
    font-size: 12px;
    font-weight: 700;
    word-break: break-word;
}


/* =========================================================
   EQUIPMENT
========================================================= */

.jqe-new-equipment ul {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 25px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jqe-new-equipment li {
    position: relative;
    padding-left: 20px;
    color: #4b555c;
    font-size: 13px;
    line-height: 1.5;
}

.jqe-new-equipment li::before {
    content: "?";
    position: absolute;
    top: 0;
    left: 0;
    color: #b58a52;
    font-weight: 700;
}

.jqe-new-description p {
    margin: 0;
    color: #5f676d;
    font-size: 13px;
    line-height: 1.8;
}


/* =========================================================
   SIDEBAR
========================================================= */

.jqe-sidebar-card {
    margin-bottom: 18px;
    padding: 22px;
    border: 1px solid #e4e7e9;
    border-radius: 8px;
    background: #ffffff;
    text-align: center;
}

.jqe-sidebar-label {
    display: block;
    margin-bottom: 8px;
    color: #8b9297;
    font-size: 10px;
    font-weight: 700;
}

.jqe-sidebar-price {
    margin-bottom: 18px;
    color: #b58a52;
    font-size: 24px;
    font-weight: 700;
}

.jqe-sidebar-request-btn {
    display: block;
    padding: 13px 15px;
    border-radius: 4px;
    background: #b58a52;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.jqe-sidebar-request-btn:hover {
    background: #9f783f;
    color: #ffffff;
}


/* =========================================================
   TRUST BOX
========================================================= */

.jqe-trust-box {
    padding: 22px;
    border-radius: 8px;
    background: #14212a;
}

.jqe-trust-item {
    display: flex;
    gap: 12px;
    color: #ffffff;
}

.jqe-trust-item + .jqe-trust-item {
    margin-top: 20px;
}

.jqe-trust-item > span {
    width: 22px;
    flex: 0 0 22px;
    color: #b58a52;
    font-size: 20px;
}

.jqe-trust-item strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 11px;
}

.jqe-trust-item p {
    margin: 0;
    color: #c3c9cd;
    font-size: 10px;
    line-height: 1.5;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.jqe-back-vehicles {
    display: block;
    margin-top: 18px;
    padding: 12px;
    border: 1px solid #e1e4e6;
    border-radius: 5px;
    color: #566068;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}

.jqe-back-vehicles:hover {
    border-color: #b58a52;
    color: #b58a52;
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1024px) {

    .jqe-detail-top-grid {
        grid-template-columns: 1fr;
    }

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

    .jqe-detail-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .jqe-sidebar-card,
    .jqe-trust-box {
        margin-bottom: 0;
    }

    .jqe-back-vehicles {
        grid-column: 1 / -1;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767px) {

    .jqe-new-detail-page {
        padding: 20px 15px 40px;
    }

    .jqe-new-gallery-main {
        height: 330px;
    }

    .jqe-new-detail-title {
        font-size: 24px;
    }

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

    .jqe-new-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .jqe-detail-sidebar {
        grid-template-columns: 1fr;
    }

    .jqe-new-equipment ul {
        grid-template-columns: 1fr;
    }

}


@media (max-width: 480px) {

    .jqe-new-gallery-main {
        height: 250px;
    }

    .jqe-auction-summary {
        grid-template-columns: 1fr;
    }

    .jqe-auction-summary > div + div {
        border-top: 1px solid #e4e7e8;
        border-left: 0;
    }

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

    .jqe-new-details-grid {
        grid-template-columns: 1fr;
    }

    .jqe-new-detail-section {
        padding: 16px;
    }

}



/* =========================================================
   VEHICLE DETAIL PAGE (VDP) — jqe_render_vehicle_detail()
   These are the classes actually output by the current detail
   page template (jqe-vdp-*). They previously had NO styles at
   all in this file, which is why the gallery/thumbs/layout
   looked broken and unstyled.
========================================================= */

.jqe-vdp {
    max-width: 1300px;
    margin: 0 auto;
    padding: 30px 20px 60px;
}

.jqe-vdp * {
    box-sizing: border-box;
}

.jqe-vdp svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Breadcrumb */
.jqe-vdp-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #8a9096;
}

.jqe-vdp-breadcrumb a {
    color: #59626a;
    text-decoration: none;
}

.jqe-vdp-breadcrumb a:hover {
    color: #b58a52;
}

.jqe-vdp-breadcrumb > span:last-child {
    color: #29323a;
    font-weight: 600;
}

/* Layout grid */
.jqe-vdp-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    align-items: start;
    gap: 32px;
}

.jqe-vdp-main {
    min-width: 0;
}


/* =========================================================
   VDP GALLERY
========================================================= */

.jqe-vdp-gallery {
    margin-bottom: 28px;
}

.jqe-vdp-gallery-main {
    position: relative;
    width: 100%;
    height: 480px;
    border-radius: 14px;
    overflow: hidden;
    background: #f2f3f3;
}

#jqe-vdp-main-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.jqe-vdp-counter {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(23, 32, 38, 0.85);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

.jqe-vdp-counter svg {
    width: 14px;
    height: 14px;
}

.jqe-vdp-arrow {
    position: absolute;
    top: 50%;
    z-index: 4;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 50%;
    background: #ffffff;
    color: #29323a;
    cursor: pointer;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.18);
    transition: background 0.15s ease, color 0.15s ease;
}

.jqe-vdp-arrow svg {
    width: 20px;
    height: 20px;
}

.jqe-vdp-arrow:hover {
    background: #b58a52;
    color: #ffffff;
}

.jqe-vdp-arrow-prev {
    left: 16px;
}

.jqe-vdp-arrow-next {
    right: 16px;
}

.jqe-vdp-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    margin-top: 12px;
    padding-bottom: 6px;
    overflow-x: auto;
}

.jqe-vdp-thumbs::-webkit-scrollbar {
    height: 6px;
}

.jqe-vdp-thumbs::-webkit-scrollbar-thumb {
    background: #d7d7d7;
    border-radius: 6px;
}

.jqe-vdp-thumb {
    flex: 0 0 84px;
    width: 84px;
    height: 64px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f3f3;
    cursor: pointer;
}

.jqe-vdp-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.jqe-vdp-thumb.active,
.jqe-vdp-thumb:hover {
    border-color: #b58a52;
}


/* =========================================================
   VDP CARDS (Vehicle Details / Description / Equipment)
========================================================= */

.jqe-vdp-card {
    background: #ffffff;
    border: 1px solid #e4e7e8;
    border-radius: 14px;
    padding: 26px 28px;
    margin-bottom: 24px;
}

.jqe-vdp-card h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
    font-size: 20px;
    color: #29323a;
}

.jqe-vdp-card h2 svg {
    width: 20px;
    height: 20px;
    color: #b58a52;
}

.jqe-vdp-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px 24px;
}

.jqe-vdp-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f0f1f2;
}

.jqe-vdp-detail-icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f5efe6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b58a52;
}

.jqe-vdp-detail-icon svg {
    width: 16px;
    height: 16px;
}

.jqe-vdp-detail-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jqe-vdp-detail-text small {
    color: #8a9096;
    font-size: 12px;
}

.jqe-vdp-detail-text strong {
    color: #29323a;
    font-size: 14.5px;
    word-break: break-word;
}

.jqe-vdp-description {
    margin: 0;
    color: #4b535a;
    font-size: 15px;
    line-height: 1.7;
}


/* =========================================================
   VDP SIDEBAR
========================================================= */

.jqe-vdp-sidebar {
    min-width: 0;
}

.jqe-vdp-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.jqe-vdp-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.jqe-vdp-badge-primary {
    background: #b58a52;
    color: #ffffff;
}

.jqe-vdp-badge-outline {
    background: #edf0f2;
    color: #59626a;
}

.jqe-vdp-title {
    margin: 0 0 18px;
    font-size: 28px;
    line-height: 1.3;
    color: #20262c;
    font-weight: 700;
}

.jqe-vdp-auction-box {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #e4e7e8;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 18px;
}

.jqe-vdp-auction-box > div {
    padding: 14px 16px;
}

.jqe-vdp-auction-box > div:first-child {
    border-right: 1px solid #e4e7e8;
}

.jqe-vdp-auction-box small {
    display: block;
    margin-bottom: 4px;
    color: #8a9096;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.jqe-vdp-auction-box strong {
    color: #29323a;
    font-size: 14.5px;
}

.jqe-vdp-meta-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}

.jqe-vdp-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 10px;
    border: 1px solid #e4e7e8;
    border-radius: 10px;
    background: #fafafa;
    min-width: 0;
}

.jqe-vdp-meta-icon {
    flex: 0 0 auto;
    color: #b58a52;
    display: flex;
}

.jqe-vdp-meta-icon svg {
    width: 18px;
    height: 18px;
}

.jqe-vdp-meta-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.jqe-vdp-meta-text small {
    color: #8a9096;
    font-size: 10.5px;
}

.jqe-vdp-meta-text strong {
    color: #29323a;
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.jqe-vdp-cta-box {
    margin-top: 18px;
    padding: 22px;
    border-radius: 12px;
    background: #20262c;
    color: #ffffff;
}

.jqe-vdp-cta-box strong {
    display: block;
    margin-bottom: 6px;
    font-size: 16px;
}

.jqe-vdp-cta-box p {
    margin: 0 0 16px;
    color: #c4c9cd;
    font-size: 13.5px;
    line-height: 1.5;
}

.jqe-vdp-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 8px;
    background: #b58a52;
    color: #ffffff;
    font-size: 14.5px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s ease;
}

.jqe-vdp-cta-btn:hover {
    background: #9c7442;
    color: #ffffff;
}

.jqe-vdp-equipment-card {
    margin-top: 0;
}

.jqe-vdp-equip-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.jqe-vdp-equip-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3d444a;
    font-size: 14px;
}

.jqe-vdp-equip-check {
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eef6ee;
    color: #3a9a4a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jqe-vdp-equip-check svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.2;
}

.jqe-vdp-trust-box {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.jqe-vdp-trust-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.jqe-vdp-trust-item > span {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #f5efe6;
    color: #b58a52;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jqe-vdp-trust-item svg {
    width: 18px;
    height: 18px;
}

.jqe-vdp-trust-item strong {
    display: block;
    margin-bottom: 2px;
    color: #29323a;
    font-size: 14px;
}

.jqe-vdp-trust-item p {
    margin: 0;
    color: #7c8388;
    font-size: 12.5px;
    line-height: 1.5;
}


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

@media (max-width: 900px) {

    .jqe-vdp-grid {
        grid-template-columns: 1fr;
    }

    .jqe-vdp-gallery-main {
        height: 360px;
    }

    .jqe-vdp-detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {

    .jqe-vdp {
        padding: 20px 15px 40px;
    }

    .jqe-vdp-gallery-main {
        height: 260px;
    }

    .jqe-vdp-arrow {
        width: 36px;
        height: 36px;
    }

    .jqe-vdp-arrow svg {
        width: 16px;
        height: 16px;
    }

    .jqe-vdp-thumb {
        flex-basis: 64px;
        width: 64px;
        height: 50px;
    }

    .jqe-vdp-title {
        font-size: 23px;
    }

    .jqe-vdp-meta-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .jqe-vdp-card {
        padding: 20px;
    }
}