/* ============================================================
   AUTOMART V43.4.1
   VEHICLE DETAIL MOBILE BOTTOM CLEANUP

   Vehicle Detail already owns:
   Call | WhatsApp | Chat

   Therefore the global V40:
   Home | Buy Cars | Sell Car | Saved | Account
   navigation must not appear on this page.
   ============================================================ */

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

    /* ========================================================
       REMOVE ACTUAL V40 GLOBAL MOBILE NAV
       ======================================================== */

    html
    body.am-v434-vehicle-detail:not(.admin-page)
    .am-mobile-v40__bottom,

    html
    body:has(.vehicle-detail-page):not(.admin-page)
    .am-mobile-v40__bottom {

        display:none !important;

        visibility:hidden !important;
        opacity:0 !important;

        position:absolute !important;

        width:0 !important;
        height:0 !important;

        min-width:0 !important;
        min-height:0 !important;

        max-width:0 !important;
        max-height:0 !important;

        margin:0 !important;
        padding:0 !important;

        overflow:hidden !important;

        pointer-events:none !important;

        transform:none !important;

        z-index:-1 !important;
    }


    /* ========================================================
       EXTRA AUTHORITY:
       THE GREEN CENTER SELL-CAR FAB
       ======================================================== */

    html
    body.am-v434-vehicle-detail:not(.admin-page)
    .am-mobile-v40__sell,

    html
    body:has(.vehicle-detail-page):not(.admin-page)
    .am-mobile-v40__sell {

        display:none !important;

        visibility:hidden !important;
        opacity:0 !important;

        width:0 !important;
        height:0 !important;

        min-width:0 !important;
        min-height:0 !important;

        max-width:0 !important;
        max-height:0 !important;

        margin:0 !important;
        padding:0 !important;

        pointer-events:none !important;
    }


    /* ========================================================
       ALSO RETIRE OLDER LEGACY NAV, IF PRESENT
       ======================================================== */

    /*
 * GLOBAL MOBILE BOTTOM NAV PRESERVED.
 * Retired vehicle-detail hide rule removed.
 */


    /* ========================================================
       VEHICLE DETAIL NOW USES ONLY ITS CONTACT BAR
       ======================================================== */

    html
    body.am-v434-vehicle-detail:not(.admin-page)
    .vehicle-detail-page
    .contact-row {

        z-index:1850 !important;
    }


    /* ========================================================
       SAFE BOTTOM CLEARANCE
       No space reserved for deleted V40 navigation.
       ======================================================== */

    html
    body.am-v434-vehicle-detail:not(.admin-page) {

        padding-bottom:
            calc(
                var(
                    --am-v434-contact-height,
                    68px
                )
                +
                14px
                +
                env(safe-area-inset-bottom)
            )
            !important;
    }


    /*
     * Once 2+ vehicles are selected, V43.4 already floats
     * Compare Selected above the contact bar.
     * Add only the extra clearance required for that state.
     */

    html
    body.am-v434-vehicle-detail.am-v434-compare-ready:not(.admin-page) {

        padding-bottom:
            calc(
                var(
                    --am-v434-contact-height,
                    68px
                )
                +
                82px
                +
                env(safe-area-inset-bottom)
            )
            !important;
    }

}
