/* Dave's Classic Cars — Home Featured Vehicles carousel. */
.dcc-home-featured-carousel {
    position: relative;
    width: 100%;
    margin: 0;
    font-family: Montserrat, Arial, sans-serif;
}

.dcc-home-featured-carousel,
.dcc-home-featured-carousel * {
    box-sizing: border-box;
}

.dcc-home-featured-carousel__viewport,
.dcc-home-featured-carousel__slide {
    width: 100%;
}

.dcc-home-featured-carousel__slide {
    margin: 0;
}

.dcc-home-featured-carousel__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #000;
}

.dcc-home-featured-carousel__image-link {
    display: block;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
}

.dcc-home-featured-carousel__image {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: center center;
}

.dcc-home-featured-carousel__image-placeholder {
    width: 100%;
    height: 100%;
    background: #e6e7e8;
}

.dcc-home-featured-carousel__photo-cue {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 310;
    padding: 3px 6px;
    background: rgba(0, 0, 0, 0.30);
    color: #ffffff;
    border-color: transparent;
    font-family: Arial, sans-serif;
    font-size: 11px;
    font-weight: 400;
    line-height: 15px;
    pointer-events: none;
}

.dcc-home-featured-carousel__arrow {
    position: absolute;
    top: 50%;
    z-index: 320;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-top: -22px;
    padding: 0;
    box-sizing: border-box;
    border: 2px solid #000099;
    border-radius: 50%;
    background: #f2f4ff !important;
    opacity: 0.7 !important;
    color: #000099;
    appearance: none;
    -webkit-appearance: none;
    font-family: Arial, sans-serif;
    line-height: 1;
    cursor: pointer;
}

.dcc-home-featured-carousel__arrow--previous {
    left: 10px;
}

.dcc-home-featured-carousel__arrow--next {
    right: 10px;
}

.dcc-home-featured-carousel__arrow:hover,
.dcc-home-featured-carousel__arrow:focus-visible {
    border-color: #000099;
    background: #fff !important;
    opacity: 1 !important;
}

.dcc-home-featured-carousel__arrow:disabled {
    cursor: default;
}

.dcc-home-featured-carousel__info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: center;
    width: 100%;
    padding: 22px 24px 24px;
    background: #fff;
    border: 1px solid #d8dade;
    border-top: 0;
}

.dcc-home-featured-carousel__copy {
    min-width: 0;
}

.dcc-home-featured-carousel__title {
    margin: 0;
    color: #cc0000;
    font-family: Montserrat, Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.18;
}

.dcc-home-featured-carousel__title a {
    color: inherit;
    text-decoration: none;
}

.dcc-home-featured-carousel__title a:hover,
.dcc-home-featured-carousel__title a:focus-visible {
    color: #0000ff;
}

.dcc-home-featured-carousel__highlights {
    max-width: 650px;
    margin: 9px 0 0;
    color: #555d66;
    font-family: Arial, sans-serif;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.45;
}

.dcc-home-featured-carousel__actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    min-width: max-content;
}

.dcc-home-featured-carousel__finance {
    display: flex;
    justify-content: flex-end;
    width: 100%;
}

.dcc-home-featured-carousel__finance .dcc-price-payment-group {
    margin-top: 0;
}

.dcc-home-featured-carousel__arrow:focus-visible,
.dcc-home-featured-carousel__title a:focus-visible,
.dcc-home-featured-carousel__image-link:focus-visible {
    outline: 3px solid #0000ff;
    outline-offset: 3px;
}

.dcc-home-featured-carousel__transition-stage {
    position: absolute;
    z-index: 200;
    overflow: hidden;
    background: #000;
    pointer-events: none;
}

.dcc-home-featured-carousel__transition-stage img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
    object-position: center center;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: opacity;
}

.dcc-home-featured-carousel__transition-veil {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: #000;
    opacity: 0;
    pointer-events: none;
    will-change: opacity;
}

.dcc-home-featured-empty {
    width: 100%;
    max-width: 980px;
    margin: 20px auto;
    padding: 16px;
    border: 1px solid #d8dade;
    background: #fff;
    color: #303740;
}

@media (min-width: 1025px) {
    .dcc-home-featured-carousel__media {
        aspect-ratio: 16 / 8.9;
    }

    .dcc-home-featured-carousel__info {
        grid-template-columns: minmax(0, 1fr) auto;
        column-gap: 18px;
        row-gap: 0;
        padding: 17px 18px 18px;
    }

    .dcc-home-featured-carousel__title {
        font-size: 21px;
        line-height: 26px;
    }

    .dcc-home-featured-carousel__highlights {
        margin-top: 7px;
        font-size: 14px;
        line-height: 19px;
    }

    .dcc-home-featured-carousel__actions {
        align-items: center;
        justify-content: center;
    }

    .dcc-home-featured-carousel__finance {
        align-items: center;
        justify-content: center;
        width: auto;
    }
}

@media (max-width: 767px) {
    .dcc-home-featured-carousel {
        width: calc(100% - 40px);
    }

    .dcc-home-featured-carousel__info {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 17px 18px 19px;
    }

    .dcc-home-featured-carousel__media {
        aspect-ratio: 5 / 4;
    }

    .dcc-home-featured-carousel__title {
        font-size: 22px;
        line-height: 1.2;
    }

    .dcc-home-featured-carousel__highlights {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.42;
    }

    .dcc-home-featured-carousel__actions {
        align-items: flex-start;
        min-width: 0;
        width: 100%;
    }

    .dcc-home-featured-carousel__finance {
        justify-content: flex-start;
    }
}

@media (max-width: 419px) {
    .dcc-home-featured-carousel {
        width: calc(100% - 32px);
    }

    .dcc-home-featured-carousel__info {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* =========================================================
   DCC HOME STAGE 3 — MEDIA GEOMETRY / ARROW GLYPH CORRECTION
   Keep the real resting image on the exact same media geometry
   used by the transition compositor, and make arrow glyphs
   independent of inherited theme span/icon styling.
   ========================================================= */
.dcc-home-featured-carousel .dcc-home-featured-carousel__image-link {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.dcc-home-featured-carousel .dcc-home-featured-carousel__image {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    object-fit: cover;
    object-position: center center;
}

.dcc-home-featured-carousel .dcc-home-featured-carousel__arrow > span {
    display: none;
}

/* Approved B2.1: 44px white/navy circular arrows; CSS chevrons avoid font-glyph imbalance. */
[data-dcc-home-featured-carousel]
.dcc-home-featured-carousel__persistent-controls
> .dcc-home-featured-carousel__arrow::before {
    content: "" !important;
    display: block !important;
    width: 12px !important;
    height: 12px !important;
    border: solid #000099 !important;
    border-width: 0 3px 3px 0 !important;
    font-size: 0 !important;
    flex-shrink: 0 !important;
}

[data-dcc-home-featured-carousel]
.dcc-home-featured-carousel__arrow--previous::before {
    transform: rotate(135deg) translate(-1px, -1px) !important;
}

[data-dcc-home-featured-carousel]
.dcc-home-featured-carousel__arrow--next::before {
    transform: rotate(-45deg) translate(-1px, -1px) !important;
}

/* =========================================================
   DCC HOME STAGE 4 — LIST VIEW HIGHLIGHTS
   Shared at every width. Preserve semantic H1-H6 slot identity.
   H1 Engine / H2 Transmission use Motors icons; H3-H6 use DCC checks.
   ========================================================= */
.dcc-home-featured-carousel__highlights {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: repeat(3, auto);
    column-gap: 28px;
    row-gap: 5px;
    width: 100%;
    max-width: none;
    margin-top: 8px;
    padding: 0 0 0 15px;
    box-sizing: border-box;
    color: #303740;
    font-family: Arial, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 19px;
}

.dcc-home-featured-carousel__highlights > br {
    display: none;
}

.dcc-home-featured-carousel__highlight {
    display: flex;
    align-items: center;
    min-width: 0;
    margin: 0;
    padding: 0;
    white-space: normal;
}

.dcc-home-featured-carousel__highlight--1 {
    grid-column: 1;
    grid-row: 1;
}

.dcc-home-featured-carousel__highlight--2 {
    grid-column: 1;
    grid-row: 2;
}

.dcc-home-featured-carousel__highlight--5 {
    grid-column: 1;
    grid-row: 3;
}

.dcc-home-featured-carousel__highlight--3 {
    grid-column: 2;
    grid-row: 1;
}

.dcc-home-featured-carousel__highlight--4 {
    grid-column: 2;
    grid-row: 2;
}

.dcc-home-featured-carousel__highlight--6 {
    grid-column: 2;
    grid-row: 3;
}

.dcc-home-featured-carousel__highlight-icon {
    display: inline-block;
    flex: 0 0 20px;
    width: 20px;
    min-width: 20px;
    margin-right: 7px;
    color: #0000ff;
    text-align: center;
    font-size: 16px;
    line-height: 19px;
}

.dcc-home-featured-carousel__highlight-check {
    font-family: Arial, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #0000ff;
}

/* DCC HOME STAGE 5 — DESKTOP PAYMENT / PRICE OPTICAL ALIGNMENT */
@media (min-width: 1025px) {
    .dcc-home-featured-carousel .dcc-home-featured-carousel__actions {
        align-self: start;
        transform: translateY(-6px);
    }
}

/* DCC Home carousel — C12 proven persistent navigation geometry.
   Existing V3 carousel, slide animation and scripts are unchanged. */
[data-dcc-home-featured-carousel] .dcc-home-featured-carousel__viewport {
    position: relative;
}
[data-dcc-home-featured-carousel] .dcc-home-featured-carousel__persistent-controls {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    aspect-ratio: 16 / 9;
    z-index: 500;
    pointer-events: none;
}
[data-dcc-home-featured-carousel] .dcc-home-featured-carousel__persistent-controls > .dcc-home-featured-carousel__arrow {
    position: absolute;
    top: 50%;
    margin-top: -22px;
    width: 44px;
    height: 44px;
    z-index: 501;
    pointer-events: auto;
}
@media (min-width: 1025px) {
    [data-dcc-home-featured-carousel] .dcc-home-featured-carousel__persistent-controls {
        aspect-ratio: 16 / 8.9;
    }
}
@media (max-width: 767px) {
    [data-dcc-home-featured-carousel] .dcc-home-featured-carousel__persistent-controls {
        aspect-ratio: 5 / 4;
    }
}


/* DCC HOME R1.6 — RESPONSIVE HIGHLIGHTS */
/* Horizontal arrangement only; original vertical geometry remains. */
@media (min-width: 1025px) and (max-width: 1199px) {
    .dcc-home-featured-carousel__highlights {
        grid-template-columns: max-content max-content;
        justify-content: start;
        column-gap: clamp(26px, calc(2vw + 14px), 38px);
    }
}


/* DCC HOME R3 — SHARED TABLET/MOBILE VEHICLE PRESENTATION */
/* Existing R2.9 behavior at 900–1024px retained; extended to 320px. */
/* Preserve original title/highlights wrapper and DCC icon elements. */
@media (min-width: 320px) and (max-width: 1024px) {
    body.home .dcc-home-featured-carousel__info {
        display: block !important;
        position: relative !important;
        padding: 17px 18px 18px !important;
    }

    body.home .dcc-home-featured-carousel__copy {
        display: block !important;
        min-width: 0 !important;
    }

    body.home .dcc-home-featured-carousel__title {
        font-size: 21px !important;
        line-height: 26px !important;
        font-weight: 700 !important;
        margin: 0 !important;
    }

    body.home .dcc-home-featured-carousel__actions {
        position: absolute !important;
        top: 11px !important;
        right: 18px !important;
        margin: 0 !important;
        transform: none !important;
        align-items: center !important;
        z-index: 1 !important;
    }

    body.home .dcc-home-featured-carousel__finance {
        width: auto !important;
        justify-content: center !important;
    }

    body.home .dcc-home-featured-carousel__highlights {
        display: grid !important;
        grid-template-columns: max-content max-content !important;
        justify-content: start !important;
        column-gap: clamp(18px, 3vw, 32px) !important;
        row-gap: 5px !important;
        max-width: 100% !important;
        margin: 8px 0 0 !important;
        padding-left: 15px !important;
        font-size: 14px !important;
        line-height: 19px !important;
        color: #303740 !important;
    }

    body.home .dcc-home-featured-carousel__highlights > br {
        display: none !important;
    }

    body.home .dcc-home-featured-carousel__highlight {
        display: flex !important;
        align-items: center !important;
        min-width: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

}

/* DCC HOME R3 — COMPACT CARD ARRANGEMENT ONLY.
   Content/style stays shared. No new icon, title, or finance treatment. */
@media (min-width: 320px) and (max-width: 599px) {
    body.home .dcc-home-featured-carousel__info {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 10px !important;
    }

    body.home .dcc-home-featured-carousel__copy {
        width: 100% !important;
    }

    body.home .dcc-home-featured-carousel__actions {
        position: static !important;
        top: auto !important;
        right: auto !important;
        align-self: flex-end !important;
        width: auto !important;
        min-width: 0 !important;
        margin: 0 !important;
    }

    body.home .dcc-home-featured-carousel__finance {
        width: auto !important;
        justify-content: flex-end !important;
    }

    body.home .dcc-home-featured-carousel__highlights {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        column-gap: 12px !important;
    }

    body.home .dcc-home-featured-carousel__highlight {
        white-space: normal !important;
        overflow-wrap: break-word !important;
    }
}

/* DCC HOME R3.1 — APPROVED 600–899 HIGHLIGHTS COLUMN ALIGNMENT. */
@media (min-width: 600px) and (max-width: 899px) {
    body.home .dcc-home-featured-carousel__highlights {
        grid-template-columns: max-content max-content !important;
    }
}

/* DCC HOME T5.9 — RESPONSIVE CAROUSEL PRESENTATION, OCT 13 2026.
   Keep original content, icons and Payment/Price markup. */
@media (max-width: 899px) {
  body.home .dcc-home-featured-carousel {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@media (max-width: 767px) {
  body.home .dcc-home-featured-carousel__media,
  body.home [data-dcc-home-featured-carousel] .dcc-home-featured-carousel__persistent-controls {
    aspect-ratio: 16 / 9 !important;
  }
}
/* T5.9 finance/title row at 650–899px.
   Use the original child markup: copy holds Title + Highlights; actions owns Finance.
   display: contents lifts the title and Highlights into the parent CSS Grid
   without changing the DOM or duplicating the shared Payment/Price component. */
@media (min-width: 650px) and (max-width: 899px) {
  body.home .dcc-home-featured-carousel__info {
    display: grid !important;
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) max-content !important;
    grid-template-areas: "title finance" "highlights highlights" !important;
    column-gap: 12px !important;
    row-gap: 0 !important;
    align-items: start !important;
    padding: 17px 18px 18px !important;
  }
  body.home .dcc-home-featured-carousel__info > .dcc-home-featured-carousel__copy {
    display: contents !important;
  }
  body.home .dcc-home-featured-carousel__title {
    grid-area: title !important;
    min-width: 0 !important;
    margin: 0 !important;
    overflow-wrap: normal !important;
  }
  body.home .dcc-home-featured-carousel__info > .dcc-home-featured-carousel__actions {
    grid-area: finance !important;
    position: relative !important;
    top: -6px !important;
    right: auto !important;
    bottom: auto !important;
    left: auto !important;
    justify-self: end !important;
    align-self: start !important;
    align-items: center !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    transform: none !important;
  }
  body.home .dcc-home-featured-carousel__finance {
    width: auto !important;
    justify-content: flex-end !important;
  }
  body.home .dcc-home-featured-carousel__highlights {
    grid-area: highlights !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 8px !important;
  }
}
/* Finance first, then centered title + original Highlights markup at <=649px. */
@media (max-width: 649px) {
  body.home .dcc-home-featured-carousel__info {
    display: grid !important;
    position: relative !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-areas: "finance" "vehicle" !important;
    justify-items: center !important;
    align-items: start !important;
    row-gap: 0 !important;
    padding: 14px 18px 18px !important;
  }
  body.home .dcc-home-featured-carousel__info > .dcc-home-featured-carousel__actions {
    grid-area: finance !important;
    position: static !important;
    inset: auto !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    justify-self: center !important;
    align-self: start !important;
    order: initial !important;
    width: max-content !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    float: none !important;
  }
  body.home .dcc-home-featured-carousel__finance {
    display: flex !important;
    justify-content: center !important;
    width: auto !important;
    margin: 0 !important;
  }
  body.home .dcc-home-featured-carousel__info > .dcc-home-featured-carousel__copy {
    grid-area: vehicle !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-self: stretch !important;
    align-self: start !important;
    order: initial !important;
    width: 100% !important;
    min-width: 0 !important;
    margin: 20px 0 0 !important;
    padding: 0 !important;
    text-align: center !important;
  }
  body.home .dcc-home-featured-carousel__title {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
  }
  body.home .dcc-home-featured-carousel__highlights {
    display: grid !important;
    grid-template-columns: max-content max-content !important;
    justify-content: start !important;
    justify-self: center !important;
    align-self: center !important;
    width: max-content !important;
    max-width: 100% !important;
    column-gap: 52px !important;
    row-gap: 5px !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
    text-align: left !important;
  }
  body.home .dcc-home-featured-carousel__highlight {
    min-width: 0 !important;
    text-align: left !important;
  }
}
/* T5.9: preserve original icons, put each Highlight on its own row at <=599. */
@media (max-width: 599px) {
  body.home .dcc-home-featured-carousel__highlights {
    display: grid !important;
    grid-template-columns: max-content !important;
    grid-template-rows: none !important;
    width: max-content !important;
    max-width: 100% !important;
    justify-content: center !important;
    justify-self: center !important;
    align-self: center !important;
    column-gap: 0 !important;
    row-gap: 5px !important;
    margin: 8px auto 0 !important;
    padding: 0 !important;
  }
  body.home .dcc-home-featured-carousel__highlight {
    grid-column: 1 !important;
    grid-row: auto !important;
    min-width: 0 !important;
    white-space: normal !important;
    overflow-wrap: break-word !important;
    text-align: left !important;
  }
}

/* DCC Home swipe S1: allow native vertical page scroll on the linked photo. */
[data-dcc-home-featured-carousel] .dcc-home-featured-carousel__image-link {
    touch-action: pan-y;
}

/* DCC HOME FEATURED CAR TITLE 20PX V1
   Mobile 419px and below only.
   Preserve 420px+ and existing carousel behavior.
*/
@media (max-width: 419px) {
  body.home .dcc-home-featured-carousel__title {
    font-size: 20px !important;
    line-height: 24px !important;
  }
}
/* END DCC HOME FEATURED CAR TITLE 20PX V1 */


/* DCC HOME ARROWS A1 — START */
/* Approved mobile size and normal opacity only.
   Existing 500px+ controls and interaction remain unchanged. */

@media (max-width: 499px) {
    [data-dcc-home-featured-carousel]
    .dcc-home-featured-carousel__persistent-controls
    > .dcc-home-featured-carousel__arrow {
        width: 38px !important;
        height: 38px !important;
        margin-top: -19px !important;
    }

    [data-dcc-home-featured-carousel]
    .dcc-home-featured-carousel__persistent-controls
    > .dcc-home-featured-carousel__arrow:not(:hover):not(:focus-visible) {
        opacity: 0.6 !important;
    }
}

/* DCC HOME ARROWS A1 — END */


/* DCC HOME ARROWS A1.1 — START */
/* Correct inherited 44px minimums at 499px and below. */
@media (max-width: 499px) {
    [data-dcc-home-featured-carousel]
    .dcc-home-featured-carousel__persistent-controls
    > .dcc-home-featured-carousel__arrow {
        min-width: 38px !important;
        min-height: 38px !important;
    }
}
/* DCC HOME ARROWS A1.1 — END */

/* DCC HOME FEATURED MOBILE TYPOGRAPHY AND ORDER V1 — approved 2026-10-20.
   Preserve existing 650px+ layout, mobile vehicle title and arrow rules. */
@media (max-width: 599px) {
  body.home .dcc-home-featured-heading {
    font-size: 24px !important;
    line-height: 30px !important;
    letter-spacing: 1px !important;
    padding-left: 6px !important;
    padding-right: 6px !important;
  }
}
@media (max-width: 649px) {
  body.home .dcc-home-featured-carousel .dcc-home-featured-carousel__info {
    grid-template-areas: "vehicle" "finance" !important;
    row-gap: 12px !important;
  }
  body.home .dcc-home-featured-carousel .dcc-home-featured-carousel__info
  > .dcc-home-featured-carousel__copy {
    margin-top: 0 !important;
  }
}
/* END DCC HOME FEATURED MOBILE TYPOGRAPHY AND ORDER V1 */
