.footer-links-heading {
    /* keep other headings visible */
}

.footer-links-heading:has(+ div a[href*="ford"]) {
    display: none;
}

@media (max-width: 767px) {
    .banner-links-bar {
        padding: 10px 15px;
        max-width: 100%;
    }
}

@media (max-width: 767px) {

    /* Hide address on mobile */
    .address-link {
        display: none !important;
    }

    /* Phone */
    .phonenumber-link {
        float: left !important;
        display: block !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .phonenumber-link .banner-link {
        display: inline-block !important;
        margin: 0 !important;
        padding: 0 !important;
        line-height: 1.4 !important;
        white-space: nowrap !important;
    }

    /* Social icons */
    .social-media-links {
        float: right !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
        gap: 9px !important;
        margin: 0 !important;
         padding:0 !important;
    }

    .social-media-links .media-link {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .social-media-links .media-icon-small {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Add a little breathing room between phone and icons */
    .phonenumber-link {
        margin-right: 15px !important;
    }

}



/* Hide the Ford, Jeep, Chevrolet, Honda, Nissan links */
.footer-link[href*="/view-inventory/ford"],
.footer-link[href*="/view-inventory/jeep"],
.footer-link[href*="/view-inventory/chevrolet"],
.footer-link[href*="/view-inventory/honda"],
.footer-link[href*="/view-inventory/nissan"] {
    display: none !important;
}

/* LOGO
**********************/
@media(min-width: 768px) {
a.navbar-brand > img {
    max-height: 250px!important;
    max-width: 400px !important;
    padding: 0px;
}
}

.form-control.form-control {
    min-height: 50px;
}

@media (min-width: 768px) {
    .navbar-default {
        background-color: #000000;
        background-image: none;
        mask: none;
    }
}


/* ==========================
   INVENTORY PHOTO FIT
   ========================== */

/* Keep inventory photo areas consistent */
a[href*="/vehicle-details/"]:has(img[src*="wmphotos"]),
a[href*="/vehicle-details/"]:has(img[src*="automanager"]) {
    display: block !important;

    width: 100% !important;

    aspect-ratio: 4 / 3 !important;

    overflow: hidden !important;
}


/* Show the complete vehicle photo */
a[href*="/vehicle-details/"] img[src*="wmphotos"],
a[href*="/vehicle-details/"] img[src*="automanager"] {
    display: block !important;

    width: 100% !important;
    height: 100% !important;

    max-width: 100% !important;

    object-fit: contain !important;
    object-position: center center !important;

    transform: none !important;
}


/* ==========================
   REMOVE PHOTO ZOOM
   ========================== */

a[href*="/vehicle-details/"]:hover img[src*="wmphotos"],
a[href*="/vehicle-details/"]:hover img[src*="automanager"] {
    transform: none !important;
    scale: 1 !important;
}

/* ==========================
   INVENTORY BANNER
   ========================== */

#element-c0e21d0f4fad45b2ab8c3478076a27b0
.element-container.element-type-libraryimage {
    width: 100% !important;
    max-width: 992px !important;

    margin: 0 auto !important;
}

#element-c0e21d0f4fad45b2ab8c3478076a27b0 a {
    display: block !important;

    width: 100% !important;
}

#element-c0e21d0f4fad45b2ab8c3478076a27b0 img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    margin: 0 auto !important;
}


/* ==========================
   MOBILE
   ========================== */

@media (max-width: 767px) {

    #element-c0e21d0f4fad45b2ab8c3478076a27b0
    .element-container.element-type-libraryimage {
        width: 100% !important;
        max-width: none !important;
    }

    #element-c0e21d0f4fad45b2ab8c3478076a27b0 img {
        width: 100% !important;
        max-width: 100% !important;
    }
}


/* ==========================
   HIDE PROTECTION PLANS
   SUBMENU ONLY
   ========================== */

.navbar-nav .dropdown-menu > li:has(> a[href$="/protection-plans"]) {
    display: none !important;
}


/* ==========================
   VDP CREDIT BANNER
   ========================== */

.vehicle-details-panel
.vehicle-customhtml
a[href*="quickeasyapplynm.startyourcreditapproval.com"] {
    display: block !important;

    width: 100% !important;
    max-width: 992px !important;

    margin: 0 auto !important;
}

.vehicle-details-panel
.vehicle-customhtml
a[href*="quickeasyapplynm.startyourcreditapproval.com"] img {
    display: block !important;

    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;

    margin: 0 auto !important;
}


/* ==========================
   MOBILE
   ========================== */

@media (max-width: 767px) {

    .vehicle-details-panel
    .vehicle-customhtml
    a[href*="quickeasyapplynm.startyourcreditapproval.com"] {
        width: 100% !important;
        max-width: none !important;
    }

    .vehicle-details-panel
    .vehicle-customhtml
    a[href*="quickeasyapplynm.startyourcreditapproval.com"] img {
        width: 100% !important;
        max-width: 100% !important;
    }
}