document.addEventListener('DOMContentLoaded', function() {
function fixOverlay() {
var overlay = document.getElementById('overlay-search-advanced-module');
if (overlay && overlay.parentElement && overlay.parentElement.tagName !== 'BODY') {
document.body.appendChild(overlay);
}
}
fixOverlay();
// Run again after short delay in case Slick re-moves it
setTimeout(fixOverlay, 500);
setTimeout(fixOverlay, 1500);
});