/* =========================================================
   VEHICLE DETAILS - HERO
   ========================================================= */

.vehicle-details-hero {
    padding: 45px 0 22px;

    background: #eafcfc;
}

html {
    scroll-behavior: smooth;
}

/* ---------------------------------------------------------
   VEHICLE SUMMARY
   --------------------------------------------------------- */

.vehicle-details-summary {
    color: var(--carpal-navy);
}


.vehicle-details-title {
    margin: 0 0 12px;

    font-size: 32px;
    font-weight: 400;
    line-height: 0.95;
}

.vehicle-details-title strong {
    font-weight: 700;
}


.vehicle-details-meta {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 32px;

    font-size: 17px;
}


.vehicle-meta-divider {
    width: 2px;
    height: 24px;

    background: var(--carpal-green);
}


/* ---------------------------------------------------------
   PRICE
   --------------------------------------------------------- */

.vehicle-details-price-label {
    margin-bottom: 3px;

    font-size: 16px;
}


.vehicle-price-row-main {
    display: flex;
    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}


.vehicle-details-price {
    display: inline-block;

    padding: 6px 12px;

    background: var(--carpal-navy-light);
    color: var(--carpal-green);

    font-size: 28px;
    font-weight: 800;
}


.vehicle-good-deal {
    display: flex;
    align-items: center;

    gap: 5px;

    color: #158b37;

    font-size: 11px;
    line-height: 1;
}


.vehicle-good-deal strong {
    font-size: 11px;
}


.vehicle-good-deal small {
    color: #e9343f;
    font-size: 10px;
}


.good-deal-icon {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 23px;
    height: 23px;

    border-radius: 50%;

    background: #15a63d;
    color: #fff;

    font-size: 15px;
    font-weight: 700;
}


/* ---------------------------------------------------------
   BUY NOW
   --------------------------------------------------------- */

.vehicle-buy-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 215px;
    min-height: 54px;

    border-radius: 12px;

    background: var(--carpal-green);
    color: var(--carpal-navy);

    text-decoration: none;

    font-size: 18px;
    font-weight: 800;
}


.vehicle-buy-now-btn:hover {
    color: var(--carpal-navy);

    opacity: 0.9;
}


/* =========================================================
   MAIN VEHICLE IMAGE
   ========================================================= */

.vehicle-main-media {
    position: relative;

    overflow: hidden;

    border-radius: 7px;
}


.vehicle-main-image {
    display: block;

    width: 100%;

    aspect-ratio: 1.65 / 1;

    object-fit: cover;
}


.vehicle-360-badge {
    position: absolute;

    right: 18px;
    bottom: 15px;

    color: var(--carpal-green);

    font-size: 30px;
    font-weight: 700;
}


/* =========================================================
   GLO MEDIA STRIP
   ========================================================= */

.vehicle-media-strip {
    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 25px;

    margin-top: 22px;
}


.vehicle-media-thumb {
    position: relative;

    display: block;

    overflow: hidden;

    border-radius: 5px;

    aspect-ratio: 1.55 / 1;

    background: #ddd;

    text-decoration: none;

    color: #fff;
}


.vehicle-media-thumb img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.2s ease;
}


.vehicle-media-thumb::after {
    content: "";

    position: absolute;
    inset: 0;

    background: linear-gradient(
        to bottom,
        rgba(0,0,0,0.05),
        rgba(0,0,0,0.48)
    );
}


.vehicle-media-thumb:hover img {
    transform: scale(1.03);
}


.vehicle-media-thumb strong {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 3px;

    z-index: 2;

    text-align: center;

    color: #fff;

    font-size: 13px;
    font-weight: 700;

    text-shadow: 0 1px 3px #000;
}


.vehicle-media-icon {
    position: absolute;

    left: 10px;
    top: 8px;

    z-index: 2;

    color: var(--carpal-green);

    font-size: 24px;
    font-weight: 800;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .vehicle-details-summary {
        max-width: 500px;
    }

    .vehicle-media-strip {
        gap: 12px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .vehicle-details-hero {
        padding: 30px 0 18px;
    }

    .vehicle-details-title {
        font-size: 27px;
    }

    .vehicle-details-meta {
        margin-bottom: 20px;
    }

    .vehicle-buy-now-btn {
        width: 100%;
    }

    .vehicle-media-strip {
        grid-template-columns: repeat(2, 1fr);
    }

}


@media (max-width: 480px) {

    .vehicle-price-row-main {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
    }

}

/* =========================================================
   VEHICLE DETAILS NAVIGATION
   ========================================================= */

.vehicle-nav-section {
    padding: 28px 0;
}

.vehicle-nav-panel {
    padding: 34px 38px 36px;

    background: #eafcfc;

    border-radius: 38px;

    color: var(--carpal-navy);
}


/* ---------------------------------------------------------
   HEADING
   --------------------------------------------------------- */

.vehicle-nav-title {
    margin: 0 0 10px;

    font-size: 34px;
    font-weight: 300;
    line-height: 1.15;

    letter-spacing: -0.025em;
}

.vehicle-nav-title strong {
    font-weight: 700;
}


.vehicle-nav-subtitle {
    margin: 0 0 34px;

    font-size: 18px;
    line-height: 1.35;
}


/* ---------------------------------------------------------
   STEPS
   --------------------------------------------------------- */

.vehicle-nav-steps {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;
}


.vehicle-nav-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    width: 200px;
    height: 128px;

    padding: 15px;

    border-radius: 38px;

    background: #fff;
    color: var(--carpal-navy);

    text-decoration: none;

    transition:
        transform 0.15s ease,
        background-color 0.15s ease;
}


.vehicle-nav-step.active {
    background: var(--carpal-green);
}


.vehicle-nav-step:hover {
    color: var(--carpal-navy);

    transform: translateY(-2px);
}


.vehicle-nav-step img {
    width: 64px;
    height: 64px;

    object-fit: contain;

    margin-bottom: 6px;
}


.vehicle-nav-step span {
    font-size: 16px;
    font-weight: 400;
    line-height: 1;
}


/* ---------------------------------------------------------
   ARROWS
   --------------------------------------------------------- */

.vehicle-nav-arrow {
    flex: 0 0 auto;

    color: var(--carpal-navy);

    font-size: 26px;
    line-height: 1;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 991.98px) {

    .vehicle-nav-panel {
        padding: 28px 24px 30px;
    }

    .vehicle-nav-title {
        font-size: 30px;
    }

    .vehicle-nav-step {
        width: 160px;
        height: 115px;
    }

    .vehicle-nav-step img {
        width: 56px;
        height: 56px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .vehicle-nav-panel {
        padding: 24px 18px;

        border-radius: 28px;
    }

    .vehicle-nav-title {
        font-size: 26px;
    }

    .vehicle-nav-subtitle {
        font-size: 16px;

        margin-bottom: 22px;
    }

    .vehicle-nav-steps {
        overflow-x: auto;

        justify-content: flex-start;

        padding-bottom: 8px;
    }

    .vehicle-nav-step {
        min-width: 145px;
        width: 145px;

        height: 110px;
    }

    .vehicle-nav-arrow {
        font-size: 22px;
    }

}

/* =========================================================
   OVERVIEW
   ========================================================= */

.vehicle-overview-section {
    padding: 10px 0 40px;

    color: var(--carpal-navy);

    scroll-margin-top: 120px;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.vehicle-section-title {
    margin: 0 0 24px;

    font-size: 34px;
    font-weight: 300;
    line-height: 1.1;

    letter-spacing: -0.025em;
}


/* ---------------------------------------------------------
   CONTENT
   --------------------------------------------------------- */

.vehicle-overview-content {
    font-size: 17px;
    line-height: 1.4;
}

.vehicle-description-content, .vehicle-specification-content {
    font-size: 17px;
    line-height: 1.4;
    max-height: 500px; 
    overflow-y: auto; 
    border: 1px solid #ccc;
}

.overview-heading {
    margin-bottom: 2px;

    font-weight: 700;
}


.overview-item {
    display: flex;
    align-items: baseline;

    gap: 5px;

    min-width: 0;
}


.overview-item strong {
    flex: 0 0 auto;

    font-weight: 700;
}


.overview-item span {
    min-width: 0;

    font-weight: 400;
}


/* Keep very long values under control */

#overviewEngine,
#overviewTransmissionName {
    display: block;

    overflow: hidden;

    white-space: nowrap;
    text-overflow: ellipsis;
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .vehicle-overview-section {
        padding-bottom: 30px;
    }

    .vehicle-section-title {
        margin-bottom: 20px;

        font-size: 30px;
    }

    .vehicle-overview-content {
        font-size: 15px;
    }

    .vehicle-overview-content .col-md-6 + .col-md-6 {
        margin-top: 20px;
    }

}

/* =========================================================
   WINDOWS DOWN / DISCLOSURE PANEL
   ========================================================= */

.windows-down-section {
    padding: 32px 0 38px;

    color: var(--carpal-navy);

    background-image: url("../images/carpal-pattern.svg");
    background-repeat: repeat;
    background-size: 700px auto;
    background-position: center;
}


/* ---------------------------------------------------------
   TITLE
   --------------------------------------------------------- */

.windows-down-title {
    margin: 0 0 12px;

    font-size: 34px;
    font-weight: 300;
    line-height: 1.1;

    letter-spacing: -0.025em;
}

.windows-down-title strong {
    font-weight: 700;
}


/* ---------------------------------------------------------
   TEXT
   --------------------------------------------------------- */

.windows-down-text {
    max-width: 1100px;

    margin: 0 0 28px;

    font-size: 18px;
    line-height: 1.4;
}

.windows-down-text strong {
    font-weight: 700;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.windows-down-actions {
    align-items: stretch;
}

.windows-down-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 64px;

    padding: 12px 20px;

    border-radius: 14px;

    background: #82e5f4;
    color: var(--carpal-navy);

    text-align: center;
    text-decoration: none;

    font-size: 20px;
    font-weight: 700;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.windows-down-btn:hover {
    background: var(--carpal-green);
    color: var(--carpal-navy);

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .windows-down-section {
        padding: 28px 0;
    }

    .windows-down-title {
        font-size: 28px;
    }

    .windows-down-text {
        font-size: 16px;
    }

    .windows-down-btn {
        min-height: 55px;

        font-size: 17px;
    }

}

/* =========================================================
   FINAL VEHICLE CTA
   ========================================================= */

.vehicle-final-cta {
    margin-top: 0;
}


/* ---------------------------------------------------------
   BUY NOW BAND
   --------------------------------------------------------- */

.vehicle-buy-band {
    padding: 34px 0;

    background: #0f568c;
    color: #fff;
}


.vehicle-buy-copy {
    font-size: 34px;
    font-weight: 300;
    line-height: 1.1;

    letter-spacing: -0.025em;
}


.vehicle-buy-copy strong {
    font-weight: 700;
}


.vehicle-buy-price {
    color: var(--carpal-green);
}


.vehicle-buy-note {
    margin-top: 2px;

    font-size: 18px;
    font-weight: 600;
}


/* BUY BUTTON */

.vehicle-final-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    max-width: 300px;

    min-height: 66px;

    margin-left: auto;

    padding: 12px 25px;

    border-radius: 15px;

    background: var(--carpal-green);
    color: var(--carpal-navy);

    text-decoration: none;

    font-size: 22px;
    font-weight: 800;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}


.vehicle-final-buy-btn:hover {
    color: var(--carpal-navy);

    transform: translateY(-2px);
    opacity: 0.95;
}


/* ---------------------------------------------------------
   PRE-APPROVED BAND
   --------------------------------------------------------- */

.vehicle-preapproved-band {
    padding: 38px 0;

    background: #fff;
}


.vehicle-final-logo img {
    width: 220px;
    max-width: 100%;
    height: auto;
}


.vehicle-preapproved-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 360px;
    min-height: 72px;

    padding: 14px 28px;

    border-radius: 16px;

    background: var(--carpal-navy);
    color: #fff;

    text-decoration: none;

    font-size: 21px;
    font-weight: 800;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}


.vehicle-preapproved-btn:hover {
    background: var(--carpal-green);
    color: var(--carpal-navy);

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 767.98px) {

    .vehicle-buy-band {
        padding: 28px 0;
    }

    .vehicle-buy-copy {
        font-size: 27px;
    }

    .vehicle-buy-note {
        font-size: 15px;
    }

    .vehicle-final-buy-btn {
        max-width: 100%;

        margin-left: 0;
    }


    .vehicle-preapproved-band {
        padding: 28px 0;
    }

    .vehicle-final-logo {
        display: block;

        text-align: center;
    }

    .vehicle-final-logo img {
        width: 180px;
    }

    .vehicle-preapproved-btn {
        width: 100%;
        min-width: 0;

        margin-top: 10px;

        font-size: 18px;
    }

}