/* ==========================================================================
   Intelio - shared "Search by Address" search bar component.

   Single source of truth for the property/address search bar styling. Loaded by
   BOTH /search-by-address/ and the homepage hero "Search Properties" state.

   Scoped under `.address-searchbar` (the component root rendered by
   /search-by-address/_searchbar.php) so it never leaks into the surrounding
   page. The rules below are the exact search-bar rules previously inlined in
   /search-by-address/css/index.css under the `.address-page` scope - the page
   still gets identical rendering, the homepage now gets the same bar.

   Breakpoint: 600px (tabs share the row on narrow screens).
   ========================================================================== */

.address-searchbar{
  /* Self-contained design tokens so the bar renders identically wherever it is
     embedded (the surrounding page's CSS variables may differ). */
  --address-bg:#f1f4f7; --address-red:#c92f33; --address-ink:#1b1b1b;
  --address-muted:#5a6572; --address-line:#dfe4ea;
  --address-sans:'Inter','Helvetica Neue',Arial,sans-serif;
  --address-mono:'JetBrains Mono',ui-monospace,monospace;
  font-family:var(--address-sans);
}
.address-searchbar,.address-searchbar *{box-sizing:border-box}
.address-searchbar .address-searchtabs{display:flex;flex-wrap:wrap}
.address-searchbar .address-stab{background:var(--address-bg);border:1px solid var(--address-line);border-bottom:none;color:var(--address-muted);font-family:var(--address-mono);font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;padding:10px 22px;cursor:pointer}
.address-searchbar .address-stab.active{background:var(--address-red);border-color:var(--address-red);color:#fff}
.address-searchbar .address-searchbox{display:flex;align-items:center;background:#fff;border:1px solid var(--address-line);max-width:760px;position:relative}
.address-searchbar .address-searchbox svg{width:20px;height:20px;flex:none;margin-left:18px}
.address-searchbar .address-searchbox input{flex:1;border:none;outline:none;font-size:16px;padding:16px;color:var(--address-ink);font-family:var(--address-sans);background:transparent;line-height:normal}
.address-searchbar .address-searchbox:focus-within{border-color:var(--address-red)}
.address-searchbar .address-clear{position:absolute;right:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;display:none;align-items:center;justify-content:center;background:none;border:none;cursor:pointer;color:#8b95a1;font-size:16px;line-height:1}
.address-searchbar .address-clear:hover{color:var(--address-red)}
.address-searchbar .address-results{position:absolute;top:100%;left:-1px;right:-1px;z-index:40;background:#fff;border:1px solid var(--address-line);border-top:none;display:none;box-shadow:0 12px 24px rgba(17,25,33,.08)}
.address-searchbar .address-results:not(.hidden){display:block}
.address-searchbar .address-resultshead{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;background:#fafbfc;border-bottom:1px solid var(--address-line)}
.address-searchbar .address-resultshead span{font-family:var(--address-mono);font-size:9.5px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:var(--address-muted)}
.address-searchbar .address-resultshead b{font-family:var(--address-mono);font-size:10px;font-weight:500;letter-spacing:.08em;color:var(--address-red);background:#f9eaea;padding:4px 10px;border-radius:2px}
.address-searchbar .address-rlist{max-height:280px;overflow-y:auto}
.address-searchbar .address-result{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 16px;font-size:14px;font-weight:700;color:var(--address-ink);cursor:pointer;border-top:1px solid var(--address-line)}
.address-searchbar .address-result:first-child{border-top:none}
.address-searchbar .address-price{font-family:var(--address-mono);font-size:12px;font-weight:500;color:var(--address-muted);white-space:nowrap}
.address-searchbar .address-result:hover,.address-searchbar .address-result.active{background:var(--address-bg)}
.address-searchbar .address-result mark{background:none;color:var(--address-red)}
.address-searchbar .address-noresult{padding:16px;font-size:14px;color:var(--address-red)}
.address-searchbar .address-searchbox input::placeholder{color:#9aa5b1}

@media(max-width:600px){
.address-searchbar .address-searchtabs{display:flex;width:100%}
.address-searchbar .address-stab{flex:1;padding:10px 4px;font-size:9.5px;letter-spacing:.05em;text-align:center;white-space:nowrap}
}
