/*
 Theme Name:   Uomo Child
 Theme URI:    https://themeforest.net/item/uomo-real-estate-wordpress-theme/26372986
 Description:  Uomo Child Theme
 Author:       ApusTheme
 Author URI:   http://apusthemes.com
 Template:     uomo
 Version:      1.0.2
 Text Domain:  uomo-child
*/

/* ============================================================
   Footer visibility fix (2026-05-23)
   Uomo's .apus-footer carries Bootstrap .hidden-xs/.hidden-sm,
   which hides the legal footer below 992px. Force it visible on
   mobile and tablet so legal links / contacts / payment cards
   remain reachable. Desktop layout untouched.
   ============================================================ */

@media (max-width: 991px) {
    /* Override Bootstrap hidden-xs/hidden-sm specifically inside the footer */
    .apus-footer.hidden-xs,
    .apus-footer.hidden-sm,
    .apus-footer-wrapper.hidden-xs,
    .apus-footer-wrapper.hidden-sm {
        display: block !important;
    }

    /* Make sure Elementor sections inside the footer stack their columns */
    .apus-footer .elementor-section .elementor-container {
        flex-wrap: wrap !important;
    }
    .apus-footer .elementor-section .elementor-column {
        width: 100% !important;
        max-width: 100% !important;
    }

    /* Bottom padding so .apus-footer-mobile sticky bar doesn't overlap content */
    body.body-footer-mobile .apus-footer {
        padding-bottom: 80px !important;
    }
}

/* Tablet 768-991: keep the standard footer visible, centered */
@media (min-width: 768px) and (max-width: 991px) {
    .apus-footer {
        text-align: center !important;
    }
    .apus-footer .elementor-widget-image .elementor-widget-container,
    .apus-footer .elementor-widget-apus_element_logo {
        text-align: center !important;
    }
    .apus-footer .elementor-widget-apus_element_social_links ul,
    .apus-footer .elementor-widget-apus_element_social_links .socials {
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap;
    }
    .apus-footer .elementor-widget-apus_element_nav_menu ul {
        list-style: none;
        padding: 0;
    }
}

/* Mobile ≤767: center everything + tighter spacing */
@media (max-width: 767px) {
    .apus-footer {
        text-align: center !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    .apus-footer .elementor-column {
        padding: 12px 0 !important;
    }
    .apus-footer .elementor-widget-text-editor,
    .apus-footer .elementor-widget-heading,
    .apus-footer .elementor-widget-image,
    .apus-footer .elementor-widget-apus_element_logo,
    .apus-footer .elementor-widget-apus_element_social_links,
    .apus-footer .elementor-widget-apus_element_nav_menu {
        text-align: center !important;
    }
    .apus-footer .elementor-widget-image .elementor-widget-container,
    .apus-footer .elementor-widget-apus_element_logo .elementor-widget-container {
        display: flex !important;
        justify-content: center !important;
    }
    .apus-footer .elementor-widget-apus_element_logo img,
    .apus-footer .elementor-widget-image img {
        margin-left: auto !important;
        margin-right: auto !important;
    }
    .apus-footer .elementor-widget-apus_element_social_links ul,
    .apus-footer .elementor-widget-apus_element_social_links .socials {
        justify-content: center !important;
        display: flex !important;
        flex-wrap: wrap;
    }
    .apus-footer .elementor-widget-apus_element_nav_menu ul {
        list-style: none;
        padding: 0;
        text-align: center;
    }
    /* Payment cards row: keep on one line, centered, compact */
    .apus-footer .elementor-element[data-id] .elementor-column .elementor-widget-image {
        display: inline-block !important;
        vertical-align: middle !important;
    }
}

/* Payment-cards row inside the footer: align in a single centered row */
.apus-footer .elementor-widget-image img[src*="visa-logo"],
.apus-footer .elementor-widget-image img[src*="mastercard-symbol"],
.apus-footer .elementor-widget-image img[src*="mc_idcheck"],
.apus-footer .elementor-widget-image img[src*="visa-secure"] {
    height: 28px !important;
    width: auto !important;
    display: inline-block !important;
    vertical-align: middle !important;
}

@media (max-width: 991px) {
    /* Force the section that holds the payment cards (root[1] in the footer)
       into a centered inline row */
    .apus-footer .elementor-section.elementor-top-section:last-of-type .elementor-column:last-child .elementor-column-wrap,
    .apus-footer .elementor-section.elementor-top-section:last-of-type .elementor-column:last-child .elementor-widget-wrap {
        display: flex !important;
        flex-wrap: wrap;
        justify-content: center !important;
        align-items: center !important;
        gap: 8px;
    }
    .apus-footer .elementor-section.elementor-top-section:last-of-type .elementor-column:last-child .elementor-widget-image {
        width: auto !important;
        max-width: 100% !important;
        margin: 4px !important;
    }
}
