/* The location band (master), v2.0.1 — direct-standards/master-location-band.
   The form ForSale.direct and ForRent.direct run (AMENDMENTS-2026-11-13.md, "The location band").
   Full width, directly beneath the header; its content stands in the header's own 1,120px column.
   Every class starts with .lb, and the rules below set everything they use, so a site's own button
   or input styles cannot reach in. 640px and narrower: one line, "📍 Town, ST · Change", and a sheet
   from the bottom (.lb-sheet, which stands outside the band).
   The site's colors come from its header config (stamped by sync.mjs):
   --lb-ink, --lb-line, --lb-accent, --lb-primary, --lb-accent-ink. */
.lb{
  --lb-col:1120px;
  display:block; background:#F3EEE3; border-bottom:1px solid var(--lb-line,#E5DFD3);
  color:var(--lb-ink,#23201B); font-family:"IBM Plex Sans",Arial,Helvetica,sans-serif;
  margin:0; padding:0; width:auto; max-width:none; box-sizing:border-box; text-align:left;
  position:relative; z-index:5;
}
.lb *,.lb *::before,.lb *::after,.lb-sheet *,.lb-sheet *::before,.lb-sheet *::after{box-sizing:border-box}
.lb .lb-in{max-width:var(--lb-col); margin:0 auto; padding:10px 20px; display:flex; align-items:center; gap:12px; flex-wrap:wrap; min-height:57px}
.lb .lb-in.lb-open{min-height:0; gap:10px}
.lb .lb-in.lb-open .lb-input{min-width:200px}
.lb .lb-placed,.lb .lb-near{font-size:15px; font-weight:600; line-height:1.35; margin:0 6px 0 0; white-space:nowrap; color:var(--lb-ink,#23201B)}
.lb .lb-placed b{font-weight:700}
.lb .lb-ctl{display:flex; gap:12px; flex-wrap:wrap; align-items:center}
.lb .lb-one{display:none}
.lb .lb-b,.lb-sheet .lb-b{
  font-family:inherit; font-size:14px; font-weight:600; line-height:1.2; letter-spacing:normal; text-transform:none;
  cursor:pointer; white-space:nowrap; margin:0; width:auto; min-width:0; height:auto; min-height:0; box-shadow:none;
  background:#fff; color:var(--lb-ink,#23201B); border:1px solid var(--lb-line,#E5DFD3); border-radius:8px; padding:8px 14px;
  display:inline-block; text-decoration:none;
}
.lb .lb-b:hover,.lb-sheet .lb-b:hover{border-color:var(--lb-ink,#23201B)}
.lb .lb-b:focus-visible,.lb .lb-one:focus-visible,.lb .lb-input:focus-visible,.lb .lb-help a:focus-visible,
.lb-sheet .lb-b:focus-visible,.lb-sheet .lb-input:focus-visible,.lb-sheet .lb-help a:focus-visible{outline:2px solid var(--lb-primary,#1C2B3A); outline-offset:2px}
.lb .lb-b.lb-go,.lb-sheet .lb-b.lb-go{background:var(--lb-accent,#E8A33D); color:var(--lb-accent-ink,var(--lb-primary,#1C2B3A)); border:1px solid var(--lb-accent,#E8A33D); font-weight:700}
.lb .lb-notsharing{flex-basis:100%; font-size:15px; font-weight:600; line-height:1.4; padding:2px 0 4px; margin:0; color:var(--lb-ink,#23201B)}
.lb .lb-field,.lb-sheet .lb-field{position:relative; display:inline-block}
.lb .lb-input,.lb-sheet .lb-input{
  font-family:inherit; font-size:15px; line-height:1.3; padding:10px 14px; margin:0; height:auto; box-shadow:none;
  border:1px solid var(--lb-line,#E5DFD3); border-radius:8px; min-width:260px; width:auto; background:#fff; color:var(--lb-ink,#23201B);
}
.lb .lb-sug,.lb-sheet .lb-sug{position:absolute; left:0; top:calc(100% + 4px); min-width:100%; max-height:300px; overflow:auto; z-index:50;
  background:#fff; border:1px solid var(--lb-line,#E5DFD3); border-radius:8px; box-shadow:0 8px 24px rgba(0,0,0,.12); padding:4px 0; display:block}
.lb .lb-sug[hidden],.lb-sheet .lb-sug[hidden]{display:none}
.lb .lb-opt,.lb-sheet .lb-opt{display:block; padding:8px 14px; font-size:15px; cursor:pointer; white-space:nowrap; color:var(--lb-ink,#23201B)}
.lb .lb-opt:hover,.lb .lb-opt[aria-selected="true"],.lb-sheet .lb-opt:hover,.lb-sheet .lb-opt[aria-selected="true"]{background:#F3EEE3}
.lb .lb-fallback{flex-basis:100%; font-size:14.5px; line-height:1.4; padding:0 0 4px; margin:0; color:var(--lb-ink,#23201B)}
.lb .lb-help{flex-basis:100%; font-size:14.5px; line-height:1.4; padding:2px 0 4px; margin:0}
.lb .lb-help a,.lb-sheet .lb-help a{color:var(--lb-primary,#1C2B3A); font-weight:700; text-decoration:underline}
.lb .lb-msg,.lb-sheet .lb-msg{flex-basis:100%; font-size:14.5px; margin:0; color:var(--lb-ink,#23201B)}
.lb .lb-msg[hidden],.lb-sheet .lb-msg[hidden]{display:none}

/* The phone sheet: stands outside the band, on the page. */
.lb-scrim{position:fixed; inset:0; z-index:3000; background:rgba(28,43,58,.45); touch-action:none}
.lb-sheet{
  position:fixed; left:0; right:0; bottom:0; z-index:3001; max-width:560px; margin:0 auto; background:#fff;
  color:var(--lb-ink,#23201B); font-family:"IBM Plex Sans",Arial,Helvetica,sans-serif; text-align:left;
  border-radius:16px 16px 0 0; padding:10px 20px calc(20px + env(safe-area-inset-bottom,0px));
  box-shadow:0 -8px 30px rgba(28,43,58,.2); overscroll-behavior:contain;
}
@media (max-height:520px){.lb-sheet{max-height:100vh; overflow-y:auto}}
.lb-sheet::before{content:""; display:block; width:40px; height:4px; border-radius:99px; background:#D8D0C0; margin:0 auto 12px}
.lb-sheet .lb-sheet-title{margin:0 0 2px; font-size:18px; font-weight:700; line-height:1.3; outline:0; color:var(--lb-ink,#23201B)}
.lb-sheet p{margin:0 0 10px; font-size:14.5px; line-height:1.45; color:var(--lb-ink,#23201B)}
.lb-sheet p b{font-weight:700}
.lb-sheet p.lb-said{font-weight:600}
.lb-sheet .lb-b{display:flex; align-items:center; justify-content:center; width:100%; margin-top:8px; padding:12px 14px; font-size:15px; white-space:normal; text-align:center}
.lb-sheet .lb-field{display:block}
.lb-sheet .lb-input{display:block; width:100%; min-width:0; margin-top:8px; padding:12px; font-size:16px}
.lb-sheet .lb-sug{top:auto; bottom:calc(100% + 4px); max-height:220px}
.lb-sheet .lb-or{margin:12px 0 0; font-size:13px; font-weight:700; letter-spacing:.06em; text-transform:uppercase}
.lb-sheet .lb-help{display:block; margin:12px 0 0}
.lb-sheet .lb-cancel{background:none; border:0; color:var(--lb-primary,#1C2B3A); text-decoration:underline; padding:10px}

@media (max-width:640px){
  .lb .lb-in{padding:0 16px; gap:8px 10px; min-height:41px}
  .lb .lb-in.lb-open{padding:10px 16px}
  .lb .lb-placed,.lb .lb-ctl{display:none}
  .lb .lb-field{display:block; flex-basis:100%}
  .lb .lb-input{min-width:0; width:100%}
  .lb .lb-one{
    display:flex; align-items:center; gap:6px; width:100%; min-height:40px; margin:0; padding:0; background:none; border:0;
    font:inherit; font-size:15px; color:var(--lb-ink,#23201B); text-align:left; cursor:pointer; box-shadow:none;
  }
  .lb .lb-one b{min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-weight:700}
  .lb .lb-one u{color:var(--lb-primary,#1C2B3A); font-weight:600; text-underline-offset:3px; white-space:nowrap}
}
/* v2.0.1: tap sizes and the keyboard. On touch screens every control in the band is a 44px target and the
   box is 16px (iPhones zoom the page when a box under 16px is focused). Words, order, colors and look are the same. */
@media (pointer:coarse){
  .lb .lb-b{display:inline-flex; align-items:center; justify-content:center; min-height:44px}
  .lb .lb-input{font-size:16px; min-height:44px}
  .lb .lb-opt{min-height:44px; display:flex; align-items:center}
  .lb .lb-help a,.lb-sheet .lb-help a{display:inline-flex; align-items:center; min-height:44px}
  .lb-sheet .lb-cancel{min-height:44px}
  .lb-sheet .lb-opt{min-height:44px; display:flex; align-items:center}
}
@media (max-width:640px) and (pointer:coarse){
  .lb .lb-one{min-height:44px}
}
/* v2.0.1: while the box in the sheet has the keyboard (or the visible screen has shrunk), the sheet stands at the top
   of the visible area, scrolls inside itself, and the list of suggestions opens beneath the box. The script adds
   .lb-top and sets top and max-height from visualViewport; the lines below are the fallback without it. */
.lb-sheet.lb-top{top:0; bottom:auto; max-height:100%; overflow-y:auto; border-radius:0 0 16px 16px; box-shadow:0 8px 30px rgba(28,43,58,.2); padding-top:14px}
.lb-sheet.lb-top::before{display:none}
.lb-sheet.lb-top .lb-sug{top:calc(100% + 4px); bottom:auto}
@media print{.lb,.lb-sheet,.lb-scrim{display:none}}
