/* Suggestion menu of the search inputs (assets/js/search/suggest_input.js): main page, search,
   object detail, complex list, my realty. Positioned under the input inside its .input-group */
.suggest-menu {
  position: absolute;
  z-index: 1050;
  max-height: 70vh;
  overflow-y: auto;
  margin: 2px 0 0 !important;
  padding: 5px 0;
  background-color: #fff;
  background-clip: padding-box;
  border: 1px solid #ccc;
  border-radius: 4px !important;
  box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
  text-align: left;
}

.suggest-menu[hidden] {
  display: none;
}

.suggest-header {
  padding: 8px 15px;
  color: #555;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 6px;
  background-color: #eee;
}

.suggest-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 15px;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.suggest-item.active {
  background-color: #f3f6fa;
}

.suggest-icon {
  flex: 0 0 auto;
  display: inline-flex;
  color: #555;
}

.suggest-text strong {
  font-weight: 700;
}

.suggest-label {
  display: block;
  color: #999;
  font-size: .75rem;
  line-height: 1.3;
}

.suggest-label:empty::before {
  content: "\00a0";
}

/* "No listing with ID 123": a not-selectable row */
.suggest-info {
  padding: 6px 15px;
  color: #777;
  font-size: .9rem;
  line-height: 1.5;
  cursor: default;
}

/* Mobile full-screen mode of the header search (form[data-suggest-fullscreen], suggest_input.js):
   back button + input on top, the list fills the rest of the screen */
.suggest-back-button {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
}

.suggest-back-button[hidden] {
  display: none;
}

.suggest-back-button svg {
  width: 28px;
  height: 28px;
  fill: #1a1a1a;
}

body.suggest-fullscreen-open {
  overflow: hidden;
}

.suggest-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 1070;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  padding: 8px 12px 0 4px;
  background-color: #fff;
}

.suggest-fullscreen .input-group {
  flex: 1 1 auto;
  width: auto;
}

.suggest-fullscreen .typeahead {
  background-color: #fff !important;
  border: 1px solid #d9d9d9 !important;
}

/* top: set by suggest_input.js under the input row */
.suggest-fullscreen .suggest-menu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: none;
  margin: 0 !important;
  padding: 0;
  border: 0;
  border-top: 1px solid #d9d9d9;
  border-radius: 0 !important;
  box-shadow: none;
}

.suggest-fullscreen .suggest-item {
  padding-top: 12px;
  padding-bottom: 12px;
}
