/* Place suggestions under the map find box. */

.mp-host {
  position: relative;
}

/* Keep map panes inside the canvas so this list can sit above them. */
.mp-under {
  z-index: 0;
}

.mp-pop {
  position: absolute;
  z-index: 20;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  max-height: 280px;
  margin: 0;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  font-family: var(--font);
  text-align: left;
}

.mp-pop[hidden] {
  display: none !important;
}

.mp-list {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.mp-list[hidden] {
  display: none !important;
}

.mp-opt {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.mp-opt + .mp-opt {
  margin-top: 2px;
}

.mp-opt:hover,
.mp-opt.is-on {
  background: var(--accent-soft, color-mix(in srgb, var(--accent) 14%, var(--surface)));
}

.mp-name {
  display: block;
  font: 600 14.5px/1.3 var(--font);
  color: var(--ink);
  overflow-wrap: anywhere;
}

.mp-sub {
  display: block;
  margin-top: 2px;
  font: 500 13px/1.35 var(--font);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.mp-note {
  margin: 0;
  padding: 8px 10px;
  color: var(--muted);
  font: 500 13.5px/1.4 var(--font);
  cursor: default;
}

.mp-note[hidden] {
  display: none !important;
}

.mp-credit {
  margin: 0;
  padding: 5px 10px 2px;
  color: var(--muted);
  font: 500 12px/1.3 var(--font);
}

.mp-credit[hidden] {
  display: none !important;
}

.mp-attrib {
  margin: 0;
  padding: 2px 10px 4px;
  color: var(--muted);
  font: 500 11px/1.3 var(--font);
}

.mp-attrib:empty {
  display: none;
}

.mp-attrib a {
  color: var(--muted);
}

.mp-attrib img {
  display: block;
  height: 14px;
  width: auto;
}
