/**
 * Bikeley · Community Suggest CSS (Phase 7)
 * Live-Dropdown für Public-Communities-Suche
 */

.cl__search-input.cl__search-live {
  position: relative;
}

.cl__search-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  z-index: 100;
  max-height: 480px;
  overflow-y: auto;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.cl__cs-section + .cl__cs-section {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.cl__cs-section-label {
  padding: 10px 16px 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6B7280;
  background: rgba(0, 0, 0, 0.02);
}

.cl__cs-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  text-align: left;
  text-decoration: none;
  color: #0B0B0F;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.12s ease;
}

.cl__cs-item:hover,
.cl__cs-item:focus {
  background: rgba(239, 65, 53, 0.06);
  outline: 0;
}

.cl__cs-item:last-child {
  border-bottom: 0;
}

.cl__cs-item-main {
  flex: 1;
  min-width: 0;
}

.cl__cs-item-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}

.cl__cs-item-meta {
  font-size: 12px;
  color: #6B7280;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cl__cs-item-icon {
  flex-shrink: 0;
  color: #9CA3AF;
  font-size: 16px;
  line-height: 1;
}

.cl__cs-item--community .cl__cs-item-icon {
  font-size: 14px;
}

.cl__cs-item--place {
  /* Places haben Map-Pin-Icon links, leichter Akzent */
}

.cl__cs-item--place .cl__cs-item-icon {
  font-size: 18px;
}

.cl__cs-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  color: #f59e0b;
  font-weight: 700;
}

.cl__cs-empty {
  padding: 24px 16px;
  text-align: center;
  color: #6B7280;
  font-size: 13px;
}

/* Active-Filter-Pills */
.cl__active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.cl__active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  background: rgba(255, 255, 255, 0.92);
  color: #0B0B0F;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
}

.cl__active-filter strong {
  font-weight: 700;
}

.cl__active-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  line-height: 1;
  transition: background 0.12s ease;
}

.cl__active-filter a:hover {
  background: rgba(0, 0, 0, 0.16);
}

/* Mobile */
@media (max-width: 640px) {
  .cl__search-panel {
    max-height: 60vh;
  }
}
