/* Match final Restyle geometry before DOMContentLoaded; scoped reversible module. */
body.aopt-listings .mcb-section:has(.aopt-banner) :is(.mcb-wrap,.mcb-column,.column_attr){width:100%!important;margin:0!important;}
body.aopt-listings.anelo-view-empresas .mcb-section:has(.aopt-banner){padding-top:28px!important;padding-bottom:52px!important;}
body.aopt-listings.anelo-view-anuncios .mcb-section:has(.aopt-banner){padding-top:34px!important;padding-bottom:56px!important;}
body.aopt-listings.anelo-view-anuncios :is(.box-publiciadad-n1-lg,.box-publiciadad-n1-xs) > a img{height:100%!important;object-fit:cover!important;}
body.aopt-listings .mcb-section:has(.hub-anuncios-container),body.aopt-listings .section-empresas-grid{padding-top:0!important;padding-bottom:76px!important;}
body.aopt-listings .section_wrapper:has(.hub-anuncios-container){display:grid!important;grid-template-columns:260px minmax(0,1fr);align-items:start;gap:24px;}
body.aopt-listings .section-empresas-grid > .section_wrapper{display:grid!important;grid-template-columns:282px minmax(0,1fr);align-items:start;gap:24px;}
body.aopt-listings :is(.section_wrapper:has(.hub-anuncios-container),.section-empresas-grid > .section_wrapper) > .mcb-wrap{float:none!important;width:auto!important;margin:0!important;}
body.aopt-listings :is(.section_wrapper:has(.hub-anuncios-container),.section-empresas-grid > .section_wrapper) :is(.mcb-column,.column_attr,.mcb-column-inner){width:100%!important;margin:0!important;}
body.aopt-listings .hub-anuncios-grid > a {display:block!important;min-width:0;height:100%;color:inherit!important;text-decoration:none!important;}
@media(max-width:1180px){
 body.aopt-listings .section_wrapper:has(.hub-anuncios-container){grid-template-columns:238px minmax(0,1fr);gap:18px;}
}
@media(max-width:767px){
 body.aopt-listings.anelo-view-empresas .mcb-section:has(.aopt-banner){padding-top:16px!important;padding-bottom:40px!important;}
 body.aopt-listings.anelo-view-anuncios .mcb-section:has(.aopt-banner){padding-top:18px!important;padding-bottom:46px!important;}
 body.aopt-listings :is(.section_wrapper:has(.hub-anuncios-container),.section-empresas-grid > .section_wrapper){display:block!important;}
 body.aopt-listings .mcb-wrap:has(.wpc-filter-set-1105),body.aopt-listings .mcb-wrap:has(.wpc-filter-set-1060){position:relative;top:auto;z-index:9;margin-bottom:18px!important;}
}

/* Reserve the search slot while the existing search script moves its original trigger.
   No cloning, replacement, event changes or fixed header height. No-JS stays unchanged. */
html.aopt-js body.aopt-header #Top_bar .top_bar_left:has(.ans-menu .ans-trigger):not(:has(.ans-header-search))::before{content:"";display:block;order:1;flex:0 1 260px;min-width:190px;height:46px;}
html.aopt-js body.aopt-header #Top_bar .top_bar_left:has(.ans-menu .ans-trigger):not(:has(.ans-header-search)) > .logo{order:0;}
html.aopt-js body.aopt-header #Top_bar .top_bar_left:has(.ans-menu .ans-trigger):not(:has(.ans-header-search)) > .menu_wrapper{order:2;}
html.aopt-js body.aopt-header #Top_bar .ans-menu:has(.ans-trigger){display:none!important;}
@media(max-width:1239px){
 html.aopt-js body.aopt-header #Top_bar .top_bar_left:has(.ans-menu .ans-trigger):not(:has(.ans-header-search))::before{margin-left:auto;}
}
@media(max-width:767px){
 html.aopt-js body.aopt-header #Top_bar .top_bar_left:has(.ans-menu .ans-trigger):not(:has(.ans-header-search))::before{flex:0 0 44px;min-width:44px;height:44px;}
 html.aopt-js body.aopt-header #Top_bar .top_bar_left:has(.ans-menu .ans-trigger):not(:has(.ans-header-search)) > .menu_wrapper{margin-left:0!important;}
}
