/* 
 * Century21 Custom CSS 
 * Loaded via century21-customizations plugin
 */

/* Make Search Tabs Fully Clickable */
.adv_search_tab_item {
    position: relative;
    cursor: pointer;
}

.adv_search_tab_item a.elementor_search_tab_head {
    display: flex;
    /* Ensure it takes available space if flex container */
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    /* Ensure the link covers the parent */
    position: static;
}

/* Fallback: Make the link cover the parent via pseudo-element */
.adv_search_tab_item a.elementor_search_tab_head::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    /* Ensure it's on top of text but below interactive children if any */
}



/* Alert Mobile Margin Fix */
.alert.alert-info.c21-relaxed-alert {
    margin-left: 11px;
    z-index: 80;
}

@media (max-width: 768px) {
    .alert.alert-info.c21-relaxed-alert {
        margin-left: 11px;
        /* Ensure it applies on mobile/tablets too */
    }
}

/* Infinite Scroll: HIDE Pagination when active */
body.c21-infinite-active .pagination,
body.c21-infinite-active .pagination_nojax,
body.c21-infinite-active .half-pagination,
body.c21-infinite-active .pagination_ajax_search,
body.c21-infinite-active .pagination-wrapper {
    display: none !important;
}

/* Make sure the "No More Results" message is visible */
.c21-no-more-results {
    display: block !important;
    text-align: center;
    padding: 20px;
    color: #999;
    font-style: italic;
    clear: both;
    width: 100%;
}

/* Fix Mobile Layout Empty Space */
@media (max-width: 992px) {
    .wpresidence_property_list_half_map_core {
        width: 100% !important;
        margin-right: 0 !important;
        padding-right: 0 !important;
    }

    .wpresidence_property_list_half_map_core>.col-12 {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100%;
    }

    #google_map_prop_list_sidebar {
        width: 100% !important;
        max-width: 100% !important;
    }
}