/* Shared typeahead — styled to Airbnb design language per DESIGN.md */
.pb-suggest-wrap {
  position: relative;
}

.pb-suggest-box {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1000;
  background: #ffffff !important;
  border: 1px solid #e8e8e8 !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04) !important;
  max-height: 340px;
  overflow-y: auto;
  padding: 6px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

/* Custom scrollbar for dropdown */
.pb-suggest-box::-webkit-scrollbar {
  width: 6px;
}
.pb-suggest-box::-webkit-scrollbar-track {
  background: transparent;
}
.pb-suggest-box::-webkit-scrollbar-thumb {
  background: #dddddd;
  border-radius: 4px;
}
.pb-suggest-box::-webkit-scrollbar-thumb:hover {
  background: #c1c1c1;
}

/* Suggestion Row: Defensively enforce flex row styling across all button contexts */
.pb-suggest-box button.pb-suggest-item,
.pb-suggest-box .pb-suggest-item,
button.pb-suggest-item {
  all: unset;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 42px !important;
  padding: 9px 12px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #222222 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  font-family: inherit !important;
  line-height: 1.4 !important;
  text-align: left !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  text-decoration: none !important;
}

.pb-suggest-box button.pb-suggest-item:hover,
.pb-suggest-box button.pb-suggest-item.is-active,
.pb-suggest-box .pb-suggest-item:hover,
.pb-suggest-box .pb-suggest-item.is-active {
  background: #f7f7f7 !important;
  color: #ff385c !important;
}

.pb-suggest-badge {
  flex: 0 0 auto !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748b !important;
  background: #f1f5f9 !important;
  padding: 2px 7px !important;
  border-radius: 4px !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}

.pb-suggest-badge.is-post {
  background: #f1f5f9 !important;
  color: #475569 !important;
}

.pb-suggest-badge.is-prop {
  background: #fff1f3 !important;
  color: #be123c !important;
}

.pb-suggest-badge.is-tool {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.pb-suggest-badge.is-faq {
  background: #f0fdf4 !important;
  color: #15803d !important;
}

.pb-suggest-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  color: inherit !important;
  display: block !important;
}

.pb-suggest-sub {
  width: 100% !important;
  font-size: 12px !important;
  color: #6a6a6a !important;
}

.pb-suggest-count {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  font-size: 12px !important;
  color: #9ca3af !important;
}

.pb-suggest-arrow {
  flex: 0 0 auto !important;
  margin-left: auto !important;
  color: #c1c1c1 !important;
  font-size: 13px !important;
  transition: transform 0.15s ease, color 0.15s ease !important;
}
.pb-suggest-box button.pb-suggest-item:hover .pb-suggest-arrow,
.pb-suggest-box button.pb-suggest-item.is-active .pb-suggest-arrow {
  color: #ff385c !important;
  transform: translateX(2px) !important;
}

.pb-suggest-status {
  padding: 14px 16px;
  font-size: 13px;
  color: #6a6a6a;
  text-align: center;
}

.pb-suggest-status.is-error {
  color: #b91c1c;
}

#pbHeaderSearch .pb-suggest-wrap { position: relative; }
#pbHeaderSearch .pb-suggest-box { z-index: 1000; }
.pb-tools-search { position: relative; }
.pb-support-search { position: relative; }
.pb-blog-search-row { position: relative; }
