/* TD-330: mobile advanced-search surfaces match their containing options block. */
@media(max-width:959px){
 /* TD-359: only the upper search rectangle receives the requested colour. */
 html.ses-advanced-panel #main .ses-search-frame #avanzado{background-color:#eaf2ed!important;opacity:1}
 html.ses-advanced-panel #main #avanzado #bus_manual{background-color:#fff!important;opacity:1}
 html.ses-advanced-panel #contenedor_busqueda select:is([name="tipo"],[name="poblacion"],[name="zona"]){
  background-color:#f7f9f8!important;
 }
}

/* TD-425: wider field where there is room; same animated homepage icon. */
@media(min-width:960px){html.ses-desktop-search-trial #avanzado .tr{grid-template-columns:minmax(160px,440px) 44px minmax(0,1fr) 212px 212px}}
#avanzado .tr>.td:nth-child(2) :is(a,button)>.ses-advanced-magnifier{display:block;width:20px!important;height:20px!important;margin:0!important;object-fit:contain;transition:transform .25s ease;transform-origin:center}
@media(hover:hover){#avanzado .tr>.td:nth-child(2) :is(a,button):hover>.ses-advanced-magnifier{transform:scale(1.15)}}
@media(prefers-reduced-motion:reduce){#avanzado .ses-advanced-magnifier{transition:none}}

/* TD680: compact responsive spacing, shared by results and property search. */
@media(max-width:959px){
 html{--ses-search-header-gap:8px}
 html.ses-advanced-panel #div_avanzado #buscador_avanzado{padding-top:6px!important}
 html.ses-advanced-panel #buscador_avanzado .ses-advanced-title{margin-bottom:5px!important}
}
