/* TD-362: conservar diseño anterior; únicamente botón estrellas/Beta. */
.ses-smart-toggle{flex:0 0 98px;display:flex;align-items:center;justify-content:center;gap:7px;position:relative;border:0;background:#ededed;color:#005333;cursor:pointer;padding:0 8px 0 4px;font:13px 'Open Sans',Arial,sans-serif}

.ses-smart-toggle svg{width:23px;height:23px;flex-shrink:0;transition:transform .25s ease;transform-origin:center}
.ses-smart-toggle span{border-radius:15px;padding:4px 9px;background:#eaf1ec;margin-right:12px}
.ses-smart-toggle[aria-pressed=true] span{background:#005333;color:white}
.ses-smart-toggle[aria-pressed=true] svg{color:#005333}
@media(hover:hover){.ses-smart-toggle:hover svg{transform:scale(1.25)}}
.ses-smart-toggle:focus-visible{outline:2px solid #005333;outline-offset:-5px}
.ses-smart-review{box-sizing:border-box;background:#fff;color:#004929;padding:16px;border-radius:14px;margin-top:10px;font:14px/1.5 'Open Sans',Arial,sans-serif;box-shadow:0 3px 12px #002b2420}
.ses-smart-review[hidden]{display:none}
.ses-smart-review a{display:inline-block;background:#005333;color:white!important;padding:8px 14px;border-radius:8px;margin-top:8px;text-decoration:none}

@media(max-width:479px){.ses-smart-toggle{flex-basis:78px;gap:5px;padding-left:0;font-size:12px}.ses-smart-toggle svg{width:19px;height:19px}.ses-smart-toggle span{padding:3px 6px;margin-right:9px}}
@media(prefers-reduced-motion:reduce){.ses-smart-toggle svg{transition:none}.ses-smart-toggle:hover svg{transform:none}}
/* Keep animated examples visible even when the existing field is hovered. */
body.home #search #input_text[data-smart-active="true"]::placeholder{color:#888!important;opacity:1}

/* TD-367: únicamente IA, alineada al extremo derecho del campo. */
.ses-smart-toggle{flex:0 0 53px;justify-content:flex-end;gap:0;padding:0 7px 0 0}.ses-smart-toggle span{margin-right:0}
@media(max-width:479px){.ses-smart-toggle{flex-basis:44px;padding:0 5px 0 0;gap:0}.ses-smart-toggle span{margin-right:0}}

/* TD-374: discreet floating status, outside document flow. */
.ses-smart-review{position:fixed;left:50%;bottom:24px;transform:translateX(-50%);z-index:10000;width:max-content;max-width:calc(100vw - 32px);margin:0;padding:9px 15px;border-radius:10px;background:rgba(255,255,255,.96);box-shadow:0 2px 12px #002b241c;font-size:13px;line-height:1.4;pointer-events:none}

/* TD-383: grow only the letters, keeping badge geometry unchanged. */
@media(hover:hover){.ses-smart-toggle:hover span{font-size:1.08em}}

/* TD-393: IA dentro del campo de búsqueda de resultados/avanzada. */
.ses-smart-advanced .ses-smart-field{position:relative}
.ses-smart-advanced #bus_manual{padding-right:58px!important}
.ses-smart-advanced .ses-smart-toggle{position:absolute;right:5px;top:50%;transform:translateY(-50%);height:38px;width:48px;padding:0 4px;background:transparent;z-index:1}
.ses-smart-advanced #bus_manual[data-smart-active="true"]::placeholder{color:#888!important;opacity:1}

body.property #ses-property-detail .ses-smart-toggle{border:0;background:transparent;border-radius:0;padding:0 4px;min-width:0}

/* TD-408: lupa con destellos y etiqueta como único selector. */
.ses-smart-toggle{flex-basis:112px;gap:6px;justify-content:center;padding:0 6px}
.ses-smart-toggle svg{width:22px;height:22px;flex:none}
.ses-smart-toggle span{white-space:nowrap;padding:4px 7px}
.ses-smart-advanced #bus_manual{padding-right:122px!important}
.ses-smart-advanced .ses-smart-toggle{width:112px;gap:6px;justify-content:center}
@media(max-width:479px){
 .ses-smart-toggle{flex-basis:104px;gap:4px;padding:0 4px}
 .ses-smart-toggle svg{width:20px;height:20px}
 .ses-smart-toggle span{padding:3px 6px}
 .ses-smart-advanced #bus_manual{padding-right:114px!important}
 .ses-smart-advanced .ses-smart-toggle{width:104px;gap:4px}
}

/* TD-427: sin selector; el campo recupera su espacio completo. */
.ses-smart-advanced #bus_manual{padding-right:12px!important}

/* TD496: overlay follows the field without changing page layout. */
.ses-recent-searches{position:fixed;z-index:10001;box-sizing:border-box;width:max-content;overflow:auto;border:1px solid #d4ded8;border-radius:8px;background:rgba(255,255,255,.75);box-shadow:0 5px 18px #002b2426;color:#24533e;font:14px/1.4 Arial,sans-serif;text-align:left}
.ses-recent-searches[hidden]{display:none!important}
.ses-recent-searches-title{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px 6px;font-size:12px;color:#005333;opacity:.75}
.ses-recent-searches-title span{font-size:17px;line-height:1}
.ses-recent-searches button{display:block;width:100%;min-height:0;box-sizing:border-box;padding:4px 12px;border:0;background:transparent;color:#000;opacity:.85;font:inherit;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.ses-recent-searches button:hover,.ses-recent-searches button[aria-selected="true"]{background:#edf3ef;opacity:1}
.ses-recent-searches button:hover{color:#005333}
.ses-recent-searches{background:#fff}.ses-recent-searches-title,.ses-recent-searches button{opacity:1}

/* TD515: same white callout frame and centered pointer as the header search menu. */
.ses-recent-searches{overflow:visible;border-color:#d4dfd7;border-radius:14px;box-shadow:0 10px 28px #00492918}
.ses-recent-searches::before{content:"";position:absolute;top:-7px;left:calc(50% - 6px);width:12px;height:12px;background:#fff;border-left:1px solid #d4dfd7;border-top:1px solid #d4dfd7;transform:rotate(45deg);pointer-events:none}
.ses-recent-searches [role="listbox"]{overflow:auto;border-radius:0 0 14px 14px}
