/* 1. Force the WordPress/Houzez theme header to sit on top of the map container */
.header-wrapper, 
.header-main, 
#header,
header {
    position: sticky !important;
    z-index: 99999 !important;
}

/* 2. Push the iHomefinder main listing view area down so it is visible below the header on load */
#ihf-main-container,
.ui-grid-page-container,
div[class*="ui-grid-page-container"] {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 90px !important; /* Adjust this value if your header is taller or shorter */
}
/* 1. Force the WordPress/Houzez theme header to sit on top of the map container */
.header-wrapper, 
.header-main, 
#header,
header {
    position: sticky !important;
    z-index: 99999 !important;
}

/* 2. Push the iHomefinder main listing view area down so it is visible below the header on load */
#ihf-main-container,
.ui-grid-page-container,
div[class*="ui-grid-page-container"] {
    position: relative !important;
    z-index: 1 !important;
    margin-top: 90px !important; 
}

/* 3. Reorder layout structure to push the bright disclaimer logo below the map view */
#ihf-main-container .ui-grid, 
#ihf-main-container div[class*="ui-grid"] {
    display: flex !important;
    flex-direction: column !important;
}

#ihf-main-container [id*="ihf-board-disclaimer"], 
#ihf-main-container [class*="ihf-disclaimer"], 
#ihf-main-container .ihf-board-disclaimer,
#ihf-main-container #ihf-board-disclaimer,
#ihf-main-container .ihf-disclaimer-text,
#ihf-main-container div[class*="disclaimer"] {
    order: 99 !important; /* Force layout order to the bottom of the flex column stack */
    margin-top: 25px !important;
    margin-bottom: 25px !important;
    clear: both !important;
    position: relative !important;
}
