/* ==========================================================================
   공장 · 업체 찾기
   ========================================================================== */

.fc { padding-top: 24px; padding-bottom: 60px; }

/* ---------- 머리말 ---------- */
.fc-head {
  padding: 28px; border-radius: var(--r-xl);
  background: linear-gradient(135deg, var(--brand-tint) 0%, var(--brand-tint-2) 100%);
  border: 1px solid var(--brand-soft-2);
}
.fc-eyebrow {
  font-size: 11px; font-weight: 800; letter-spacing: .14em;
  color: var(--brand); text-transform: uppercase;
}
.fc-head h1 { margin-top: 8px; font-size: 28px; font-weight: 800; letter-spacing: -.03em; }
.fc-head p { margin-top: 8px; font-size: 14px; line-height: 1.7; color: var(--ink-2); }

.fc-search {
  display: flex; align-items: center; gap: 8px; margin-top: 18px;
  width: min(560px, 100%); height: 46px; padding: 0 16px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-full); box-shadow: var(--sh-sm);
}
.fc-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.fc-search input {
  flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: none;
  font-size: 14px; color: var(--ink);
}
.fc-search input::placeholder { color: var(--ink-3); }
.fc-search button { border: 0; background: none; cursor: pointer; color: var(--ink-3); line-height: 0; }
.fc-search button:hover { color: var(--brand); }

/* ---------- 업체 유형 ---------- */
.fc-kinds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.fc-kind {
  height: 34px; display: inline-flex; align-items: center; padding: 0 14px;
  border-radius: var(--r-full); border: 1px solid var(--line); background: var(--surface);
  font-size: 13.5px; font-weight: 600; color: var(--ink-2);
}
.fc-kind:hover { border-color: var(--brand-soft-2); color: var(--brand); }
.fc-kind.on { background: var(--brand); border-color: var(--brand); color: #fff; }

/* ---------- 조건 줄 ---------- */
.fc-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap; margin: 18px 0 16px;
}
.fc-total { font-size: 15px; font-weight: 700; }
.fc-total em { font-style: normal; color: var(--brand); font-variant-numeric: tabular-nums; }
.fc-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fc-filters select {
  height: 34px; padding: 0 28px 0 12px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface);
  font-size: 13px; color: var(--ink-2); cursor: pointer; appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%),
                    linear-gradient(135deg, var(--ink-3) 50%, transparent 50%);
  background-position: calc(100% - 15px) 15px, calc(100% - 10px) 15px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
}
.fc-toggle {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface);
  font-size: 13px; color: var(--ink-2); cursor: pointer;
}
.fc-toggle input { width: 15px; height: 15px; accent-color: var(--brand); }
.fc-toggle:has(input:checked) { border-color: var(--brand); color: var(--brand); background: var(--brand-tint); }

/* ---------- 카드 ---------- */
.fc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fc-card {
  display: flex; flex-direction: column; gap: 12px; padding: 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  transition: box-shadow .18s ease, transform .18s ease;
}
.fc-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }

.fc-top { display: flex; align-items: center; gap: 11px; }
.fc-logo { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; flex: none; border: 1px solid var(--line); }
.avatar-44 { width: 44px; height: 44px; border-radius: 12px; font-size: 17px; }
.fc-id { min-width: 0; }
.fc-name { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-name b { font-size: 15px; font-weight: 800; letter-spacing: -.01em; }
.fc-sub { display: flex; gap: 8px; margin-top: 3px; font-size: 12px; color: var(--ink-3); }
.fc-sub span + span::before { content: "· "; }

.fc-intro { font-size: 13px; line-height: 1.6; color: var(--ink-2); }
.fc-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.fc-tag {
  font-size: 11.5px; font-weight: 600; color: var(--ink-2);
  background: #F1F3F8; border-radius: var(--r-full); padding: 4px 9px;
}

.fc-shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fc-shot {
  display: block; aspect-ratio: 1 / 1; border-radius: var(--r-sm);
  overflow: hidden; background: #EFF1F6; border: 1px solid var(--line);
}
.fc-shot img { width: 100%; height: 100%; object-fit: cover; }

.fc-foot { display: flex; gap: 14px; font-size: 12px; color: var(--ink-3); }
.fc-foot span { display: inline-flex; align-items: center; gap: 4px; font-variant-numeric: tabular-nums; }
.fc-cta { margin-top: auto; justify-content: center; }

.fc-empty { padding: 56px 0; text-align: center; color: var(--ink-3); display: grid; gap: 12px; justify-items: center; }
.fc-empty[hidden] { display: none; }
.fc-note { margin-top: 26px; font-size: 13px; color: var(--ink-3); text-align: center; }
.fc-note a { color: var(--brand); font-weight: 600; }

@media (max-width: 1024px) { .fc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .fc-grid { grid-template-columns: 1fr; }
  .fc-head { padding: 22px 18px; }
  .fc-bar { align-items: flex-start; flex-direction: column; }
}

/* 내 업체가 목록에 없을 때 안내 */
.fc-mine {
  display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 14px 16px;
  border-radius: var(--r-lg); background: #FFF8E6; border: 1px solid #F5DFA6; color: #8A5A00;
}
.fc-mine > svg { flex: none; }
.fc-mine p { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; font-size: 13px; line-height: 1.55; }
.fc-mine p > b { font-size: 14px; color: #6B4500; }
.fc-mine .btn { flex: none; }
@media (max-width: 640px) {
  .fc-mine { flex-wrap: wrap; }
  .fc-mine .btn { width: 100%; justify-content: center; }
}
