/* Shared autocomplete dropdown. Position:fixed panel so it's never clipped by an
   overflow:hidden hero. Neutral white surface that reads well on both the blue
   landing hero and the light results/listing pages. */

.ac-panel {
  position: fixed;
  z-index: 9999;
  max-height: min(70vh, 520px);
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid rgba(20, 30, 50, 0.08);
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(20, 34, 60, 0.22), 0 2px 8px rgba(20, 34, 60, 0.08);
  padding: 6px;
  font-family: 'Inter', 'Hanken Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-overflow-scrolling: touch;
  animation: ac-in 0.13s ease;
}
@keyframes ac-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) { .ac-panel { animation: none; } }

.ac-label {
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: #93a1b3;
  padding: 10px 12px 5px;
}
.ac-label-row { display: flex; align-items: center; justify-content: space-between; }
.ac-clear {
  border: none; background: none; cursor: pointer;
  font: inherit; font-size: 11px; letter-spacing: 0; text-transform: none;
  font-weight: 600; color: #8a97a8; padding: 0;
}
.ac-clear:hover { color: #FE6294; }

.ac-item {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 9px 12px;
  border: none; background: none; text-align: left; cursor: pointer;
  text-decoration: none; color: #14243c;
  border-radius: 11px;
  font-size: 14.5px;
  transition: background 0.1s ease;
}
.ac-item.active, .ac-item:hover { background: #f2f6fb; }

.ac-ico {
  flex: none; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: #9aa7b8;
}
.ac-thumb {
  flex: none; width: 40px; height: 40px; border-radius: 9px;
  background: linear-gradient(180deg, #f6f9fc, #eef3f8);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.ac-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.ac-thumb-ph { font-size: 16px; color: #b9c5d3; }

.ac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ac-title {
  font-weight: 500; color: #14243c; line-height: 1.3;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ac-title mark { background: transparent; color: inherit; font-weight: 700; }
.ac-title b { font-weight: 700; }
.ac-sub { font-size: 12px; color: #8494a6; }

.ac-price {
  flex: none; font-weight: 700; color: #10283d; font-size: 14.5px;
  display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15;
}
.ac-price small { font-size: 10px; font-weight: 600; color: #9aa7b8; letter-spacing: 0.02em; }

.ac-search-row .ac-title { font-weight: 500; color: #46617e; }
.ac-search-row .ac-title b { color: #14243c; }
.ac-enter {
  flex: none; font-size: 10.5px; font-weight: 600; color: #9aa7b8;
  border: 1px solid #e2e8f0; border-radius: 6px; padding: 2px 7px;
}
.ac-item.active .ac-enter { color: #FE6294; border-color: rgba(254, 98, 148, 0.4); }

.ac-empty { padding: 14px 14px 16px; color: #8494a6; font-size: 13.5px; }

@media (max-width: 560px) {
  .ac-panel { border-radius: 14px; }
  .ac-item { padding: 10px 10px; gap: 10px; }
  .ac-thumb { width: 38px; height: 38px; }
}
