/* ── Map search (issue #1190) ──
   The search box and results dropdown over the Map tab. Positioned to the
   left of .map-switches (styles/feed.css), which sits at top:10px/right:64px,
   so the two never overlap on narrow viewports. */

.map-search {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  width: 280px;
  max-width: calc(100% - 20px);
}

.map-search-label {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.map-search-input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}

.map-search-input:focus {
  outline: none;
  border-color: var(--accent);
}

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

.map-search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  list-style: none;
  padding: 0;
  z-index: 2;
}

.map-search-result {
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.map-search-result:hover,
.map-search-result.selected {
  background: var(--surface-alt);
}

.map-search-result-name {
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-search-result-kind {
  color: var(--text-muted);
  font-size: 0.8rem;
  flex: none;
}

.map-search-empty {
  padding: 0.5rem 0.75rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
