/*!
 * mpo-search.css — autocomplete dropdown styles for the Joomla search widget.
 * All rules are scoped under .mpo-ac* / .mpo-ac-wrap to avoid colliding with
 * the host template's CSS. The wrapped input is left alone — the template
 * keeps owning its appearance.
 */
.mpo-ac-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}

.mpo-ac {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #fff;
  border: 1px solid #d0d5dd;
  border-top: none;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 360px;
  overflow-y: auto;
  font-family: inherit;
  text-align: left;
}

.mpo-ac-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  text-decoration: none;
  color: #222;
  font-size: 13px;
  line-height: 1.3;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.1s;
}
.mpo-ac-item:last-of-type { border-bottom: none; }
.mpo-ac-item:hover,
.mpo-ac-item.mpo-ac-active {
  background: #f4f6f9;
  color: #222;
  text-decoration: none;
}

.mpo-ac-title {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mpo-ac-type {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 3px;
  flex-shrink: 0;
}
.mpo-ac-type-page     { background: #dbeafe; color: #1d4ed8; }
.mpo-ac-type-document { background: #fef3c7; color: #92400e; }
.mpo-ac-type-youtube  { background: #fee2e2; color: #991b1b; }
.mpo-ac-type-agenda   { background: #d1fae5; color: #065f46; }
.mpo-ac-type-podcast  { background: #ede9fe; color: #5b21b6; }
.mpo-ac-type-esri     { background: #e0f2fe; color: #075985; }

.mpo-ac-footer {
  display: block;
  text-align: center;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #003366;
  text-decoration: none;
  border-top: 1px solid #eee;
  background: #fafbfc;
}
.mpo-ac-footer:hover {
  background: #f4f6f9;
  text-decoration: none;
  color: #003366;
}
