/* SEARCH-01 검색 결과 전용
   공통 chrome 은 shell.css, 여기선 필터 사이드바·결과 테이블만 담는다. */

/* 필터 사이드바 */
.filter-side {
  width: 246px;
  flex: 0 0 auto;
  border-right: 1px solid #f0e8e3;
  padding: 20px;
  background: #fff;
}
.filter-side .panel-label { margin-bottom: 13px; }
.filter-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #3a322e;
  margin-bottom: 9px;
}
.filter-title:not(:first-of-type) { margin-top: 20px; }

/* 체크 목록 */
.filter-checks { display: flex; flex-direction: column; gap: 9px; }
.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  color: #8c8078;
  cursor: pointer;
}
.check.is-on { color: #3a322e; }
.check-box {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1.5px solid #ddd1ca;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  flex: 0 0 auto;
}
.check.is-on .check-box {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

/* 업종 태그 */
.filter-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.tag {
  font-size: 11.5px;
  font-weight: 600;
  color: #7a6e66;
  background: #f4efeb;
  border-radius: 20px;
  padding: 5px 11px;
  cursor: pointer;
}
.tag.is-on { color: #fff; background: var(--brand); }

/* 매출 레인지 슬라이더 */
.range {
  height: 5px;
  border-radius: 3px;
  background: #f0e8e3;
  position: relative;
  margin-bottom: 9px;
}
.range-fill {
  position: absolute;
  inset: 0 24% 0 18%;
  background: var(--brand);
  border-radius: 3px;
}
.range-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--brand);
}
.range-knob-a { left: 18%; }
.range-knob-b { left: 76%; }
.range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #a99c94;
  margin-bottom: 22px;
}

.filter-apply {
  width: 100%;
  height: 40px;
  font-size: 13px;
  border-radius: 9px;
}

/* 결과 영역 */
.result {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

/* 툴바 */
.result-toolbar {
  height: 52px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 22px;
  border-bottom: 1px solid #f0e8e3;
}
.result-count { font-size: 13.5px; color: var(--text-soft); }
.result-count b { color: var(--text); }
.result-sep { width: 1px; height: 14px; background: #eae1db; }
.result-compare { font-size: 12.5px; color: #8c8078; }
.result-compare b { color: var(--brand); }
.result-sort {
  margin-left: auto;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-soft);
  background: #fff;
}

/* 결과 테이블 */
.result-table { flex: 1 1 0; }
.rt { width: 100%; border-collapse: collapse; }
.rt thead th {
  position: sticky;
  top: 0;
  background: #fbf7f4;
  border-bottom: 1px solid #efe7e2;
  padding: 11px 22px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #a99c94;
  text-align: right;
}
.rt thead th.rt-rank,
.rt thead th.rt-name { text-align: left; }
.rt tbody tr { border-bottom: 1px solid #f4eeea; }
.rt tbody tr.is-top { background: #fbf0eb; }
.rt td { padding: 11px 22px; vertical-align: middle; }

.rt-rank { width: 52px; }
.rt tbody .rank-num { width: 24px; height: 24px; border-radius: 6px; font-size: 11px; }

.rt-name { min-width: 0; }
.rt-place { display: block; font-size: 13.5px; font-weight: 700; color: var(--text); }
.rt-desc { display: block; font-size: 11px; color: #a99c94; margin-top: 1px; }

.rt-num { text-align: right; }
.rt-num b { font-size: 13px; color: var(--text); }
.rt-unit { font-size: 10px; color: #a99c94; }
.rt-num .minibar { height: 4px; border-radius: 2px; margin-top: 4px; }
.rt-plain { font-size: 12.5px; color: var(--text-soft); }
.rt-up { font-size: 12.5px; font-weight: 700; color: var(--ok); }
.rt-down { font-size: 12.5px; font-weight: 700; color: #b0503a; }

/* 반응형 · 태블릿: 필터 폭 축소 */
@media (max-width: 900px) {
  .filter-side { width: 210px; }
}

/* 반응형 · 모바일: 필터 위로 접어 쌓기, 표 가로 스크롤 */
@media (max-width: 640px) {
  .app-body { flex-direction: column; }
  .filter-side {
    width: auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .result-table { overflow-x: auto; }
  .rt { min-width: 620px; }
}

/* 최근검색 드롭다운(.recent-box) → shell.css 공통 */
