/* PROTOTYPE — overpass/search.css: Find a place and the region jumps (the direction's §8.9; task B2b), owned with
   overpass/search.js. At the top of the panel's text column on a wide screen; above the map on tablets and phones
   (overpass.css places #ovSearch). */

.ov-search { position: relative; z-index: 6; color: var(--pale); }
.sr-form { display: grid; gap: 6px; max-width: 34rem; margin: 0; }
.sr-label { font-size: var(--fs-key); font-weight: 600; color: var(--pale-2); }
.sr-row { display: flex; gap: 8px; align-items: stretch; }
.sr-box { position: relative; flex: 1 1 auto; min-width: 0; }
.sr-input { display: block; width: 100%; height: var(--hit); margin: 0; padding: 0 14px; font-size: 1rem; color: #fff; background: var(--under-2); border: 1.5px solid rgba(255, 255, 255, .22); border-radius: var(--r-input); }
.sr-input::placeholder { color: var(--pale-2); opacity: 1; }
.sr-input:hover { border-color: rgba(255, 255, 255, .38); }
.sr-look { display: inline-flex; align-items: center; gap: 6px; flex: none; height: var(--hit); padding: 0 16px 0 13px; font-size: var(--fs-ui); font-weight: 650; color: var(--ink); background: var(--cloudtop); border: 0; border-radius: var(--r-pill); cursor: pointer; }
.sr-look .ico { width: 18px; height: 18px; --ico-cut: var(--cloudtop); }

.sr-list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 12; max-height: 18rem; overflow-y: auto; margin: 0; padding: 4px; list-style: none; background: var(--under-2); border: 1px solid rgba(255, 255, 255, .16); border-radius: var(--r-input); box-shadow: var(--sh-pop); }
.sr-opt { display: block; padding: 9px 10px; font-size: .92rem; line-height: 1.3; color: var(--pale); border-radius: 6px; cursor: pointer; }
.sr-opt[aria-selected="true"], .sr-opt:hover { background: rgba(255, 95, 168, .18); color: #fff; }
.sr-sub { display: block; font-size: var(--fs-small); color: var(--pale-2); }

.sr-msg { font-size: var(--fs-key); line-height: 1.4; color: var(--pale); }
.sr-msg:empty { display: none; }
.sr-msg b { color: #fff; font-weight: 650; }
.sr-msg.sr-warn { color: var(--doubt-ink); }
.sr-jumps { font-size: var(--fs-key); line-height: 1.5; color: var(--pale-2); text-wrap: pretty; }
.sr-jump { display: inline; margin: 0; padding: 0; font: inherit; font-weight: 600; color: var(--pale); background: none; border: 0; cursor: pointer; text-decoration: underline; text-decoration-color: var(--track-lit); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.sr-jump:hover { color: #fff; }
@media (pointer: coarse) { .sr-jump { padding: 10px 0; } }

/* on a phone the field sits above the map with no visible label (the placeholder and the button say what it is), and
   without the region jumps, so the map, the readout, the keys and the timeline still share one screen (§7) */
@media (max-width: 760px) {
  .sr-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .sr-form { max-width: none; }
  .sr-jumps { display: none; }
}
