/* /member_list.css — 조건검색은 항상 숨김 + 바텀시트(PC/모바일 공통) */
@charset "utf-8";

:root{
  --card-bg:#fff; --card-bd:#e5e7eb; --card-hov:#f8fafc;
  --text:#111827; --muted:#6b7280; --muted2:#374151;
  --accent:#2563eb; --accent-ghost:#eff6ff;
  --chip-bg:#f3f4f6; --chip-bd:#e5e7eb;
  --shadow:0 10px 30px rgba(0,0,0,.08);
  --wrap-pad:clamp(10px, 3vw, 16px);
}

.ml-wrap{ padding:var(--wrap-pad); }
.ml-layout{ display:grid; grid-template-columns: 1fr; gap:16px; align-items:start; max-width:1200px; margin:0 auto; }
.ml-main{ width:min(600px, 100%); margin:0 auto; }

/* 사이드바는 항상 숨김 (PC 포함) */
.filter-sidebar{ display:none !important; }

/* Toolbar */
.ml-toolbar{
  display:flex; align-items:center; gap:10px;
  max-width: min(600px, 100%); margin: 0 auto 10px;
}
.ml-spacer{ flex:1; }
.ml-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:6px;
  padding:8px 12px; border-radius:999px; font-size:13px;
  border:1px solid var(--card-bd); background:#fff; color:var(--text);
  cursor:pointer; text-decoration:none; transition: background .12s ease, box-shadow .12s ease, transform .12s ease;
}
.ml-btn:hover{ background:#fafafa; }
.ml-btn.primary{ border-color:var(--accent); color:var(--accent); }
.ml-btn.primary:hover{ background:var(--accent-ghost); box-shadow:0 4px 10px rgba(37,99,235,.15); }
.ml-btn.ghost{ color:var(--muted2); }
.ml-btn.block{ width:100%; }

/* Active chips */
.ml-chips{ display:flex; align-items:center; gap:6px; overflow:auto; }
.ml-chips .chip{
  display:inline-flex; align-items:center; padding:4px 8px; border-radius:999px;
  background:var(--chip-bg); border:1px solid var(--chip-bd); color:var(--muted2); font-size:12px; white-space:nowrap;
}
.ml-chips .more{ background:#fff7ed; border-color:#ffedd5; color:#9a3412; }

/* Filter form box (시트 내부에서 사용) */
.filter-box{
  background:#fff; border:1px solid var(--card-bd); border-radius:12px;
  box-shadow:var(--shadow); padding:16px;
}
.filter-box h3{
  font-size:15px; color:var(--text); border-bottom:1px solid var(--card-bd);
  padding-bottom:6px; margin:12px 0 10px;
}
.filter-box label{
  display:flex; align-items:center; gap:8px; margin:8px 0; font-size:14px; color:var(--muted2); cursor:pointer;
}
.filter-box select{
  width:100%; padding:10px 12px; margin:6px 0 14px; border:1px solid var(--card-bd); border-radius:10px; background:#fff; font-size:14px;
}
.filter-box select:focus{
  outline:none; border-color:var(--accent); box-shadow:0 0 0 4px rgba(37,99,235,.12);
}
.filter-actions{ display:flex; gap:8px; margin-top:6px; }

/* Bottom Sheet (PC/모바일 공통) */
.sheet{ position:fixed; inset:0; z-index:10000; display:none; }
.sheet.open{ display:block; }
.sheet-backdrop{ position:absolute; inset:0; background:rgba(0,0,0,.45); opacity:0; transition:opacity .18s ease; }
.sheet.open .sheet-backdrop{ opacity:1; }
.sheet-panel{
  position:absolute; left:50%; transform:translate(-50%, 100%);
  bottom:0; width:min(600px, 96vw); max-height:88vh;
  background:#fff; border:1px solid var(--card-bd); border-bottom:0;
  border-radius:16px 16px 0 0; box-shadow:0 -12px 40px rgba(0,0,0,.28);
  display:flex; flex-direction:column;
  transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.sheet.open .sheet-panel{ transform:translate(-50%, 0); }
.sheet-head{
  position:relative; display:flex; align-items:center; justify-content:center; gap:10px;
  padding:12px 42px; border-bottom:1px solid var(--card-bd); background:#f8fafc; border-radius:16px 16px 0 0;
}
.sheet-grabber{
  position:absolute; top:6px; left:50%; transform:translateX(-50%);
  width:42px; height:4px; border-radius:999px; background:#d1d5db;
}
.sheet-head strong{ font-weight:700; color:var(--text); }
.sheet-close{
  position:absolute; right:8px; top:8px; width:36px; height:36px; border:0; background:transparent;
  font-size:18px; color:#333; cursor:pointer;
}
.sheet-body{ padding:12px; overflow:auto; }
body.no-scroll{ overflow:hidden; }

/* Results */
.ml-summary{ color:var(--muted); font-size:13px; margin:4px 2px 10px; }
.searching_member{ float:none; width:100%; margin:0; padding:0; background:transparent; border:0; }
.member-item, .member-row{
  display:grid; grid-template-columns: 1fr auto; gap:12px; padding:12px;
  background:var(--card-bg); border:1px solid var(--card-bd); border-radius:12px; box-shadow:var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.member-item:hover, .member-row:hover{ transform: translateY(-1px); box-shadow:0 12px 34px rgba(0,0,0,.12); background:var(--card-hov); }
.member-row + .member-row, .member-item + .member-item{ margin-top:10px; }

.member-cell{ display:flex; align-items:center; gap:12px; min-width:0; }
.member_pic img{ width:56px; height:56px; border-radius:50%; object-fit:cover; border:1px solid var(--card-bd); box-shadow:0 2px 6px rgba(0,0,0,.06); }
.mb_info{ display:flex; flex-direction:column; gap:6px; min-width:0; }
.mb_info .name{ color:var(--text); font-weight:700; font-size:15.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.mb_needs{ display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.mb_needs .need{ display:inline-flex; align-items:center; gap:6px; padding:4px 8px; background:#f3f4f6; border:1px solid var(--chip-bd); color:var(--muted2); border-radius:999px; font-size:12.5px; }
.purpose .mb_area{ display:inline-flex; align-items:center; gap:6px; padding:4px 10px; border:1px solid var(--card-bd); border-radius:999px; background:#fafafa; color:#444; font-size:12.5px; white-space:nowrap; }

.gogo_btn{ display:flex; align-items:center; gap:8px; }
.chat-link{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px solid var(--accent); color:var(--accent); background:#fff; border-radius:999px; font-weight:600; font-size:13px; text-decoration:none; }
.chat-link:hover{ background:var(--accent-ghost); box-shadow:0 4px 10px rgba(37,99,235,.15); }
.btn_clubhouse{ display:inline-flex; align-items:center; gap:6px; padding:6px 12px; border:1px solid var(--card-bd); border-radius:10px; background:#fff; color:var(--text); text-decoration:none; }
.btn_clubhouse:hover{ background:#fdfcf7; box-shadow:0 6px 16px rgba(0,0,0,.08); transform:translateY(-1px); }

/* Mobile stack */
@media (max-width: 768px){
  .member-item, .member-row{ grid-template-columns: 1fr; gap:10px; }
  .gogo_btn{ justify-content:flex-end; }
}
