/* ============================================================
   AUTOMART V46.2.2
   VEHICLE DETAIL — FINAL HERO CLEANUP

   DESKTOP:
   Title                     Make / Condition / Year
   Gallery                   Dealer card
   Thumbnails                Dealer card
   V46.2 market strip
   Vehicle specs

   NO LEGACY SIDE PRICE
   NO DUPLICATE POSTED / VIEW
   ============================================================ */


/* ============================================================
   TITLE CHIPS
   ============================================================ */

@media screen and (min-width:1051px) {

    .vehicle-detail-page
    .am-v436-desktop-title-row {

        align-items:flex-end !important;
        gap:20px !important;
    }


    .vehicle-detail-page
    .am-v4622-title-chips {

        display:flex !important;

        align-items:center !important;
        justify-content:flex-end !important;

        flex-wrap:wrap !important;

        gap:7px !important;

        margin-left:auto !important;
        padding:0 0 3px !important;
    }


    .vehicle-detail-page
    .am-v4622-title-chip {

        min-height:27px;

        display:inline-flex;

        align-items:center;
        justify-content:center;

        padding:6px 10px;

        border:
            1px solid
            #dce8e2;

        border-radius:
            999px;

        background:
            #ffffff;

        color:
            #465568;

        font-size:
            10px !important;

        line-height:
            1 !important;

        font-weight:
            800 !important;

        white-space:
            nowrap;

        box-shadow:
            0 3px 10px
            rgba(17,43,29,.035);
    }


    .vehicle-detail-page
    .am-v4622-title-chip--make {

        background:
            #f7faf8;

        color:
            #344357;
    }


    .vehicle-detail-page
    .am-v4622-title-chip--condition {

        border-color:
            #cce9da;

        background:
            #ebf8f1;

        color:
            #087b4a;
    }


    .vehicle-detail-page
    .am-v4622-title-chip--year {

        border-color:
            #d8eee3;

        background:
            #f3fbf7;

        color:
            #07824e;
    }

}


/* ============================================================
   REMOVE OLD SUMMARY DUPLICATES ON DESKTOP
   ============================================================ */

@media screen and (min-width:1051px) {

    /*
     * Dealer card is now the sidebar authority.
     * These old summary components are duplicates.
     */

    .vehicle-detail-page
    .vehicle-summary
    > .am-v426-summary-top,

    .vehicle-detail-page
    .vehicle-summary
    > .title-actions,

    .vehicle-detail-page
    .vehicle-summary
    > .am-v426-summary-description,

    .vehicle-detail-page
    .vehicle-summary
    > .am-v426-quick-facts,

    .vehicle-detail-page
    .vehicle-summary
    > .summary-location,

    .vehicle-detail-page
    .vehicle-summary
    > .summary-meta {

        display:none !important;
    }

}


/* ============================================================
   LEGACY PRICE-SIDE SAFETY
   ============================================================ */

.vehicle-detail-page
.am-v436-desktop-price-side {

    display:none !important;
}


/* ============================================================
   LEGACY POSTED-DATE SAFETY
   ============================================================ */

@media screen and (min-width:1051px) {

    .vehicle-detail-page
    .am-v436-desktop-posted {

        display:none !important;
    }

}


/* ============================================================
   META GRID
   Keep approved specification width.
   Right dealer/finance column remains visually free.
   ============================================================ */

@media screen and (min-width:1051px) {

    .vehicle-detail-page
    .am-v436-desktop-meta {

        align-items:start !important;
    }


    .vehicle-detail-page
    .am-v436-desktop-spec-side {

        min-width:0 !important;
    }

}


/* ============================================================
   V46.2 STRIP = SOLE PRICE / ACTIVITY AUTHORITY
   ============================================================ */

@media screen and (min-width:1051px) {

    .vehicle-detail-page
    .am-v462-market-strip {

        display:grid !important;
        visibility:visible !important;
        opacity:1 !important;
    }

}


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

   Preserve mobile detail authority.
   Title chips wrap cleanly if V43.6 title appears.
   ============================================================ */

@media screen and (max-width:1050px) {

    .am-v4622-title-chips {

        display:flex;

        flex-wrap:wrap;

        gap:6px;
    }


    .am-v4622-title-chip {

        display:inline-flex;

        align-items:center;

        min-height:25px;

        padding:5px 8px;

        border:
            1px solid
            #dce8e2;

        border-radius:
            999px;

        background:#f7faf8;

        color:#405064;

        font-size:
            10px;

        font-weight:
            800;
    }


    .am-v4622-title-chip--condition {

        border-color:#cce9da;
        background:#ebf8f1;
        color:#087b4a;
    }

}
