/* map-search — styles for components/map-search.php

   Owned by that component. Nothing else should style these selectors: the
   map spent a long time with its rules split between map-style.css and an
   inline <style> in map.php, where the inline copy silently won and the
   responsive rules never applied. One selector, one file. */

.sbar-row {
  display: flex;
  align-items: stretch;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  flex: 0 0 auto;
}

.sbar-row .srch {
  /* Sits immediately after the count tiles rather than being pushed to the
     far edge. The two belong together: the tiles narrow the map by status,
     the field jumps to one stand — both are ways of finding a parcel, and
     splitting them across the width read as two unrelated controls. */
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
}

.sbar-row .srch-icon { color: var(--text-dim); font-size: 1rem; }

.sbar-row .srch input {
  width: 380px;
  height: 30px;
  padding: 0 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: .82rem;
}

.sbar-row .srch input:focus-visible {
  outline: 2px solid var(--buy);
  outline-offset: 1px;
}

.sbar-row .srch-msg {
  font-size: .72rem;
  color: var(--taken);
  min-width: 58px;
}

.srch {
  padding: 10px 10px 6px;
  border-bottom: 1px solid var(--border);
}

.srch input {
  width: 100%;
  padding: 7px 10px 7px 30px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: .8rem;
  font-family: 'Outfit', Helvetica, Arial, sans-serif;
  outline: none;
  transition: border-color .18s, box-shadow .18s;
}

.srch input::placeholder { color: var(--text-muted); }

.srch input:focus { 
  border-color: var(--primary); 
  background: var(--surface);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1);
}

.srch {
        padding: 10px 14px;
    }

@media (max-width: 768px) {
  .srch input { min-height: 44px; }

  .sbar-row {
      flex-wrap: wrap;
    }

  .sbar-row .srch {
      width: 100%;
      padding: 8px 12px 10px;
      border-top: 1px solid var(--border);
    }

  .sbar-row .srch input {
      flex: 1 1 auto;
      width: auto;
      min-width: 0;
      height: 42px;
    }

  .sbar-row .srch-msg {
      min-width: 0;
      white-space: nowrap;
    }
}

@media (max-width: 992px) {
  .srch {
          padding: 12px 16px;
          border-bottom: 1px solid rgba(0,0,0,0.06);
      }
}

/* Extra small phones. Targeted by id because that is what the field carries;
   the wrapper is .srch, the input itself is #srch. */
@media (max-width: 480px) {
  #srch {
    padding: 10px 12px;
    font-size: 14px;
  }
}
