/* bw-fl1.css — 2026-11-17 fl1: 맛집 목록 검색창 아래 단순화 (includes/_fl1.php · _fl1_panel.php · bw-fl1.js)
   wl1: 관광지·숙소·생활 서비스 목록(#bw-main.fl.wl — 같은 틀)도 이 파일 (includes/_wl1_panel.php)
   ① 분류 칩: 그림·숫자를 빼고 글자만, 한 줄(휴대폰은 옆으로 밀기) — 맨 앞 [필터 ▾] 단추
   ② 평점·인증·정렬: [필터] 를 누르면 그 아래 펼쳐지는 칸(#fl1-p) — 고르면 닫히고 목록이 바뀐다
   ③ '지역구 고르기' 칸: PC 에서도 접힌 채 시작(누르면 열림)
   예전 규칙(bw-wz.css · bw-food.css · bw-wzlist.css · responsive.css)을 이기도록 html.bw-fl1 · html body #bw-main.fl 로 시작한다. */

/* ── ③ 지역구 칸: 첫 그림에서 감춤 — bw-fl1.js 가 bw-nf.js 의 PC 자동 열림을 닫은 뒤 fl1-ready 를 붙인다 ── */
html.bw-fl1:not(.fl1-ready) #bw-main.fl #nf-gu-p { display: none !important; }
html.bw-fl1 #bw-main.fl .nf { margin-top: 14px; }

/* ── ① 분류 칩 줄 + 필터 단추 ── */
html.bw-fl1 #bw-main.fl .fl-cats { display: flex; align-items: flex-start; gap: 8px; padding-top: 10px; }
html.bw-fl1 #bw-main.fl .fl-cats .wz-chips__row { flex: 1 1 auto; min-width: 0; gap: 8px; padding: 2px 2px 10px; }
html.bw-fl1 #bw-main.fl .fl-cats .wz-chip { min-height: 44px; padding: 0 16px; gap: 0; border-width: 1px; font-size: 15px; font-weight: 700; }
html.bw-fl1 #bw-main.fl .fl-cats .wz-chip .bw-icon,
html.bw-fl1 #bw-main.fl .fl-cats .wz-chip .wz-chip__n { display: none !important; }
html.bw-fl1 #bw-main.fl .fl-cats .wz-chip.is-cur { font-weight: 800; }
@media (hover: hover) { html.bw-fl1 #bw-main.fl .fl-cats .wz-chip:hover { transform: none; border-color: var(--wz-ink); } }

html body #bw-main.fl .fl1-fbtn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 2px; padding: 0 12px 0 14px; border-radius: 999px;
  border: 1.5px solid var(--wz-ink); background: #fff; color: var(--wz-ink); font-size: 15px; font-weight: 800; line-height: 1; text-decoration: none; white-space: nowrap; cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
html body #bw-main.fl .fl1-fbtn .bw-icon { width: 18px; height: 18px; flex: 0 0 auto; }
html body #bw-main.fl .fl1-fbtn .fl1-chev { width: 16px; height: 16px; transition: transform .15s; }
html body #bw-main.fl .fl1-fbtn[aria-expanded="true"] .fl1-chev { transform: rotate(180deg); }
html body #bw-main.fl .fl1-fbtn[aria-expanded="true"] { background: var(--wz-ink); color: #fff; }
html body #bw-main.fl .fl1-fbtn.is-set { border-color: #C2410C; background: #FFF4EE; color: #9A3412; }
html body #bw-main.fl .fl1-fbtn.is-set[aria-expanded="true"] { background: #C2410C; color: #fff; }
html body #bw-main.fl .fl1-fbtn__n { display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px;
  background: #C2410C; color: #fff; font-size: 14px !important; font-weight: 800; line-height: 1; }
html body #bw-main.fl .fl1-fbtn__n[hidden] { display: none !important; }
html body #bw-main.fl .fl1-fbtn.is-set[aria-expanded="true"] .fl1-fbtn__n { background: #fff; color: #9A3412; }
@media (hover: hover) { html body #bw-main.fl .fl1-fbtn:hover { border-color: #C2410C; } }
html body #bw-main.fl .fl1-fbtn:focus-visible { outline: 3px solid var(--wz-acc); outline-offset: 2px; }

/* ── ② 필터 칸 — 예전 '.list-filter' 공용 규칙(휴대폰 sticky·PC 반투명 띠)을 모두 끈다 ── */
html body #bw-main.fl .list-filter.fl1-p { display: none !important; position: static !important; top: auto !important; z-index: auto !important; margin: 0 !important; padding: 0 !important;
  background: none !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html body #bw-main.fl .list-filter.fl1-p.is-open,
html body #bw-main.fl .list-filter.fl1-p:target { display: block !important; }
html body #bw-main.fl .fl1-p:focus { outline: none; }
html body #bw-main.fl .fl1-p__in { margin: 2px 0 6px; padding: 14px 16px 18px; border: 1px solid var(--wz-line); border-radius: 18px; background: #fff; box-shadow: 0 8px 24px -10px rgba(20,23,28,.18); }
html body #bw-main.fl .fl1-p__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
html body #bw-main.fl p.fl1-p__t { margin: 0 !important; font-size: 18px !important; line-height: 1.3 !important; font-weight: 900; color: var(--wz-ink); }
html body #bw-main.fl .fl1-x { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px !important; padding: 0; border-radius: 50%;
  border: 1px solid var(--wz-line); background: #fff; color: var(--wz-ink); cursor: pointer; }
html body #bw-main.fl .fl1-x .bw-icon { width: 20px; height: 20px; }
html body #bw-main.fl .fl1-x:focus-visible { outline: 3px solid var(--wz-acc); outline-offset: 2px; }
html body #bw-main.fl p.fl1-g { margin: 14px 0 8px !important; font-size: 15px !important; line-height: 1.3 !important; font-weight: 800; color: var(--wz-ink2); }

/* 정렬 · 별점 · 인증 — 모두 같은 둥근 단추(줄바꿈) */
html body #bw-main.fl .fl1-p .list-filter__sort,
html body #bw-main.fl .fl1-p .fl1-row { display: flex !important; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; border: 0; border-radius: 0; background: none; overflow: visible; max-width: none; }
html body #bw-main.fl .fl1-p .list-filter__chips { display: block !important; overflow: visible; flex: none; padding: 0; -webkit-mask-image: none !important; mask-image: none !important; }
html body #bw-main.fl .fl1-p .list-filter__sort a,
html body #bw-main.fl .fl1-p .list-filter__sort .sort-toggle__btn,
html body #bw-main.fl .fl1-p .fl1-row .bw-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px !important; height: auto !important; padding: 0 16px !important;
  border-radius: 999px; border: 1px solid var(--wz-line); background: #fff; color: var(--wz-ink); box-shadow: none;
  font-size: 15px !important; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; }
html body #bw-main.fl .fl1-p .fl1-row .bw-chip .bw-icon { width: 16px; height: 16px; font-size: 16px; color: var(--wz-acc-t); }
/* 고른 것 = 분류 칩과 같은 검정. 공용 '.list-filter .active{주황 !important}'(responsive.css·bw-2026-09.css)를 이긴다 */
html body #bw-main.fl .fl1-p .list-filter__sort .sort-toggle__btn.active,
html body #bw-main.fl .fl1-p .fl1-row .bw-chip.bw-chip--active { background: var(--wz-ink) !important; border-color: var(--wz-ink) !important; color: #fff !important; font-weight: 800; }
html body #bw-main.fl .fl1-p .fl1-row .bw-chip.bw-chip--active .bw-icon { color: #FFB08A; }
@media (hover: hover) {
  html body #bw-main.fl .fl1-p .list-filter__sort a:hover,
  html body #bw-main.fl .fl1-p .fl1-row .bw-chip:hover { border-color: var(--wz-ink); }
}
html body #bw-main.fl .fl1-p a:focus-visible { outline: 3px solid var(--wz-acc); outline-offset: 2px; }

/* 빈 띠 줄이기: 검색창 아래 32px → 4px, 목록 칸 위 32px → 6px, 결과 제목 줄 위 18px */
html.bw-fl1 #bw-main.fl .fl-find { padding-bottom: 4px; }
html.bw-fl1 #bw-main.fl #fl-list { padding-top: 6px; }
html.bw-fl1 #bw-main.fl .fl-res-h { margin-top: 18px; }

/* 휴대폰: 필터 단추는 글자를 줄이지 않고 칩 줄만 옆으로 민다 */
@media (max-width: 599px) {
  html.bw-fl1 #bw-main.fl .fl-cats { gap: 6px; }
  html body #bw-main.fl .fl1-p__in { padding: 12px 14px 16px; border-radius: 16px; }
}
/* PC: 칸 안쪽 여백만 넉넉히 */
@media (min-width: 1024px) {
  html body #bw-main.fl .fl1-p__in { padding: 16px 20px 20px; }
}

/* ── wl1 숙소: 칸 안 [가격: 전체] [새 숙소 알림] 단추(bw-stay-filters.js 창) — 줄바꿈 ── */
html body #bw-main.fl .fl1-p .fl1-row.wl-tools { flex: none; }
html body #bw-main.fl .fl1-p button.wl-tool { min-height: 44px; border-width: 1px; font-size: 15px !important; font-weight: 700; }

/* 사장님 사진 안내(어두운 띠)의 질문 줄이 공용 글자색 규칙에 져서 어두운 글자로 보이던 것 — 흰 글자로 */
html.bw-fl1 body #bw-main.fl .fl-owner__q { color: #fff !important; }
