/* Location suggestions follow the compact, readable rows used in the app. */
#post-form .field.suggestions {
  position: relative;
  z-index: 1;
}

#post-form .field.suggestions:focus-within {
  z-index: 35;
}

#post-form .suggest-list[hidden] {
  display: none !important;
}

#post-form .suggest-list {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  right: 0;
  z-index: 40;
  max-height: min(300px, 42dvh);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 5px;
  border: 1px solid var(--post-border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
}

#post-form .suggest-list .suggest-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

#post-form .suggest-list .suggest-option + .suggest-option {
  border-top: 1px solid var(--post-border);
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}

#post-form .suggest-list .suggest-option:hover,
#post-form .suggest-list .suggest-option[aria-selected="true"],
#post-form .suggest-list .suggest-option:focus-visible {
  background: var(--post-section);
  outline: none;
}

#post-form .suggest-pin {
  display: grid;
  flex: 0 0 30px;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: var(--post-section);
  color: var(--blue);
}

#post-form .suggest-pin svg {
  display: block;
  width: 16px;
  height: 16px;
}

#post-form .suggest-copy {
  display: flex;
  flex: 1;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

#post-form .suggest-primary,
#post-form .suggest-secondary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#post-form .suggest-primary {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

#post-form .suggest-secondary {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

#post-form .suggest-status {
  padding: 13px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 700px) {
  #post-form .suggest-list {
    max-height: min(280px, 38dvh);
    border-radius: 13px;
  }
}
