.nearby-page {
  // Background comes from the global `page` layer (see app.scss). The map fills
  // the screen on top of it.
  position: relative;
  min-height: 100vh;
  color: $fg;
  overflow: hidden;
}

.nearby-page__search {
  position: absolute;
  left: 20px;
  right: 20px;
  /* top is set dynamically (below the WeChat capsule) in the page. */
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  border-radius: $radius-pill;
  background: rgba(20, 16, 43, 0.82);
  border: 1px solid rgba(216, 180, 255, 0.14);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.nearby-page__search .icon {
  color: $accent;
}

.nearby-page__search-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  color: $fg;
  font: 500 13px / 40px $font-body;
}

.nearby-page__search-ph {
  color: $muted;
}

.nearby-page__search-clear {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(216, 180, 255, 0.12);
  color: $fg-2;
}
