/* 분리배출 검색기 전용 스타일 */
.search-box-wrap {
  display: flex;
  gap: 8px;
}

.search-input {
  flex: 1;
}

.hot-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hot-tag {
  border: 1px solid var(--border-strong);
  background: var(--surface-soft);
  color: var(--ink-sub);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.hot-tag:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.result-count-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 0.85rem;
  color: var(--ink-sub);
}

.item-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

@media (min-width: 540px) {
  .item-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.item-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.item-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}

.item-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.item-card-name {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
}

.item-card-summary {
  margin: 0;
  font-size: 0.84rem;
  color: var(--ink-sub);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.item-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 2px;
}

.item-quick-btn {
  border: 1px solid var(--brand);
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.item-quick-btn:hover {
  background: var(--brand);
  color: #ffffff;
}

.item-page-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-sub);
}

/* 카테고리 색상 배지 */
.cat-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.cat-paper { background: #e8f1fb; color: #1e4e79; }
.cat-pack { background: #dbeafe; color: #1d4ed8; }
.cat-pet { background: #e0f2fe; color: #0369a1; }
.cat-plastic { background: #ccfbf1; color: #0f766e; }
.cat-vinyl { background: #cffafe; color: #0e7490; }
.cat-glass { background: #dcfce7; color: #15803d; }
.cat-can { background: #e5e7eb; color: #374151; }
.cat-styrofoam { background: #f1f5f9; color: #334155; }
.cat-clothes { background: #ede9fe; color: #6d28d9; }
.cat-food { background: #fef3c7; color: #b45309; }
.cat-general { background: #f3f4f6; color: #4b5563; }
.cat-nonburn { background: #ffedd5; color: #9a3412; }
.cat-ewaste { background: #e0e7ff; color: #3730a3; }
.cat-hazard { background: #fee2e2; color: #b91c1c; }
.cat-bulky { background: #fef3c7; color: #92400e; }

/* 상세 결과 카드 (메인 미리보기 & 개별 품목 페이지 공통) */
.detail-box {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.detail-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.detail-section {
  background: var(--surface-soft);
  border-radius: 12px;
  padding: 14px 16px;
}

.detail-section--warn {
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.detail-section h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--brand);
}

.detail-section--warn h3 {
  color: #92400e;
}

.detail-section p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink);
  line-height: 1.65;
}

.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.related-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.related-chips a {
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--brand);
  font-size: 0.84rem;
  font-weight: 700;
}

.related-chips a:hover {
  background: var(--brand);
  color: #ffffff;
  text-decoration: none;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}
