/* ══════════════════════════════════
   BLOOM — MATCHING CSS  (v4.1 — Design-A 통합)
   index.php v4.0 그라디언트 톤 통합
   히어로 검색 + 사이드바 + 컴팩트 카드
══════════════════════════════════ */

/* ═══ HERO SEARCH (v5.0 — 웨딩 감성 모던) ═══ */
.hero-search {
  background: linear-gradient(135deg, #4a3f8a 0%, #6b4c9a 20%, #9b6bb0 40%, #c78dbd 60%, #e8a7c8 80%, #f2c4d0 100%);
  padding: 52px 32px 64px;
  padding-top: calc(var(--nav-h) + 52px);
  position: relative; overflow: hidden;
}
/* 소프트 빛 오버레이 */
.hero-search::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 500px 350px at 20% 80%, rgba(255,182,193,.22) 0%, transparent 70%),
    radial-gradient(ellipse 400px 400px at 80% 20%, rgba(255,228,225,.15) 0%, transparent 60%),
    radial-gradient(ellipse 250px 250px at 50% 50%, rgba(255,255,255,.05) 0%, transparent 70%);
  z-index: 0;
}
/* 보케 파티클 */
.hero-search::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200' viewBox='0 0 200 200'%3E%3Cdefs%3E%3Cstyle%3E.p%7Bfill:rgba(255,255,255,.035)%7D%3C/style%3E%3C/defs%3E%3Ccircle class='p' cx='30' cy='30' r='18'/%3E%3Ccircle class='p' cx='170' cy='60' r='12'/%3E%3Ccircle class='p' cx='80' cy='150' r='22'/%3E%3Ccircle class='p' cx='150' cy='170' r='8'/%3E%3Ccircle class='p' cx='100' cy='40' r='6'/%3E%3C/svg%3E") repeat;
  animation: matchBokeh 25s linear infinite;
}
@keyframes matchBokeh { 0%{background-position:0 0;} 100%{background-position:200px 100px;} }

/* 웨이브 디바이더 */
.hero-wave-match { position: absolute; bottom: -1px; left: 0; width: 100%; line-height: 0; z-index: 3; }
.hero-wave-match svg { width: 100%; height: 48px; display: block; }

.hero-inner {
  max-width: 1200px; margin: 0 auto; text-align: center;
  position: relative; z-index: 2;
}

/* 서브타이틀 칩 */
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.15); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  padding: 5px 14px; border-radius: 24px;
  font-size: 12px; font-weight: 600; color: rgba(255,255,255,.9);
  margin-bottom: 14px;
}
.hero-eyebrow-dot { width: 6px; height: 6px; background: #4ade80; border-radius: 50%; }

.hero-title {
  font-size: 34px; letter-spacing: -0.5px; margin-bottom: 8px;
  color: #fff; font-weight: 800; line-height: 1.25;
}
.hero-sub { font-size: 15px; color: rgba(255,255,255,.78); margin-bottom: 24px; }
.hero-sub strong { color: #fff; font-weight: 700; }

/* 검색 바 */
.hero-search-wrap { max-width: 580px; margin: 0 auto; position: relative; }
.hero-search-icon {
  position: absolute; left: 18px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-30, #999);
  display: flex; align-items: center;
}
.hero-search-icon svg { width: 18px; height: 18px; }
.hero-search-input {
  width: 100%; padding: 14px 110px 14px 48px;
  border: none; border-radius: 16px; font-size: 14px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px);
  box-shadow: 0 6px 24px rgba(0,0,0,.1), 0 0 0 1px rgba(255,255,255,.08);
  outline: none; font-family: inherit; color: var(--ink, #1A1410);
}
.hero-search-input:focus { box-shadow: 0 6px 32px rgba(107,76,154,.2), 0 0 0 2px rgba(255,255,255,.2); }
.hero-search-input::placeholder { color: var(--ink-30, #999); }
.hero-search-btn {
  position: absolute; right: 5px; top: 50%; transform: translateY(-50%);
  padding: 10px 22px; border-radius: 12px; border: none;
  background: linear-gradient(135deg, #6b4c9a, #9b6bb0);
  color: white; font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all .2s; box-shadow: 0 2px 8px rgba(107,76,154,.3);
}
.hero-search-btn:hover { opacity: .9; transform: translateY(-50%) translateY(-1px); }

/* 퀵 태그 */
.hero-quick-tags {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 7px; margin-top: 18px;
}
.hero-qtag {
  padding: 6px 14px; border-radius: var(--r-full, 999px);
  font-size: 12px; font-weight: 500;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.15);
  color: rgba(255,255,255,.9); cursor: pointer; transition: all .2s;
}
.hero-qtag:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.35);
  transform: translateY(-1px);
}

/* ═══ LAYOUT ═══ */
.matching-layout {
  max-width: 1280px; margin: 0 auto;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 28px;
  padding: 28px 32px 60px;
}

/* ─── FILTER SIDEBAR (Design-A v4.1) ─── */
.filter-sidebar {
  background: white; border-radius: 20px; padding: 24px;
  border: 1px solid rgba(0,0,0,.04);
  box-shadow: 0 2px 12px rgba(79,70,229,.04);
  position: sticky; top: calc(var(--nav-h) + 16px);
  height: fit-content;
}
.filter-title {
  font-size: 15px; font-weight: 700; color: var(--ink, #1A1410);
  display: flex; align-items: center; gap: 6px;
  margin-bottom: 20px;
}

.filter-group { margin-bottom: 20px; }
.fg-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-30, #999); margin-bottom: 8px;
}
.fg-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.fg-chip {
  padding: 7px 14px; border-radius: var(--r-full, 999px);
  border: 1.5px solid var(--ink-10, #E5E8EB);
  font-size: 13px; font-weight: 500; color: var(--ink-60, #666);
  cursor: pointer; transition: all .2s var(--ease, ease); background: white;
  user-select: none;
}
.fg-chip:hover  { border-color: #7C3AED; color: #7C3AED; }
.fg-chip.active {
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white; border-color: transparent; font-weight: 600;
}

input[type=range] { width: 100%; accent-color: #7C3AED; cursor: pointer; margin-top: 4px; }
.range-labels { display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-30, #999); margin-top: 4px; }

.filter-reset-link {
  display: block; text-align: center; margin-top: 10px;
  font-size: 11px; color: var(--ink-30, #999); cursor: pointer;
  text-decoration: none; padding: 6px;
  border-radius: var(--r-full, 999px);
  transition: all .2s var(--ease, ease);
}
.filter-reset-link:hover { color: red; }

/* ─── MATCHING MAIN ─── */
.matching-main { padding: 0; }

.matching-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}
.match-count { font-size: 14px; color: var(--ink-60, #666); }
.match-count strong { color: var(--ink, #1A1410); font-weight: 700; }

.filter-badge {
  display: inline-block; padding: 3px 9px; border-radius: var(--r-full, 999px);
  background: #EEF2FF; color: #4F46E5;
  font-size: 12px; font-weight: 600; margin-left: 8px;
}

.sort-select {
  padding: 9px 16px; border-radius: var(--r-full, 999px);
  border: 1.5px solid var(--ink-10, #E5E8EB); font-size: 13px;
  color: var(--ink, #1A1410); background: white; cursor: pointer; outline: none;
  font-family: inherit;
}
.sort-select:focus { border-color: #7C3AED; }

/* ─── VIEW TOGGLE ─── */
.view-toggle {
  display: inline-flex; background: white; border: 1.5px solid var(--ink-10, #E5E8EB);
  border-radius: var(--r-sm, 8px); overflow: hidden;
}
.vt-btn {
  padding: 7px 12px; color: var(--ink-30, #999); transition: all .2s;
  display: flex; align-items: center; cursor: pointer; border: none; background: none;
}
.vt-btn:hover { color: var(--ink-60, #666); }
.vt-btn.active { background: #4F46E5; color: white; }

/* ═══════════════════════════════════
   추천 플래너 슬라이더 (Design-A v4.1)
═══════════════════════════════════ */
.featured-section {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 40%, #fdf2f8 100%);
  border-radius: 20px;
  padding: 24px;
  margin-bottom: 24px;
  border: 1px solid rgba(79,70,229,.08);
  position: relative;
}
.featured-header { margin-bottom: 14px; }
.featured-title {
  font-size: 16px; font-weight: 700; color: var(--ink, #1A1410);
  display: flex; align-items: center; gap: 6px;
}
.featured-sub { font-size: 14px; color: var(--ink-60, #666); margin-top: 4px; }

.featured-scroll {
  display: flex; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
  padding-bottom: 4px; scrollbar-width: none;
}
.featured-scroll::-webkit-scrollbar { display: none; }

.featured-card {
  flex: 0 0 220px; scroll-snap-align: start;
  background: white; border-radius: 16px;
  padding: 16px; cursor: pointer;
  border: 1.5px solid rgba(79,70,229,.1);
  transition: all .3s var(--ease, ease); position: relative;
}
.featured-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(79,70,229,.12);
  border-color: #7C3AED;
}

.fc-badge-premium {
  position: absolute; top: 12px; right: 12px;
  background: linear-gradient(135deg, #7C3AED, #4F46E5);
  color: white; font-size: 9px; font-weight: 800; letter-spacing: 1px;
  padding: 3px 8px; border-radius: var(--r-full, 999px);
}
.fc-top { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.fc-avatar {
  width: 44px; height: 44px; border-radius: 12px;
  overflow: hidden; flex-shrink: 0;
  background: var(--ink-10, #E5E8EB); border: 2px solid white;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.fc-avatar img { width: 100%; height: 100%; object-fit: cover; }
.fc-avatar-default { display: flex; align-items: center; justify-content: center; font-size: 28px; }
.fc-info { flex: 1; min-width: 0; }
.fc-name { font-size: 15px; font-weight: 600; color: var(--ink, #1A1410); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fc-meta { font-size: 12px; color: var(--ink-60, #666); margin-top: 1px; }
.fc-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.fc-tag { font-size: 12px; color: #7C3AED; background: #f5f3ff; padding: 3px 9px; border-radius: var(--r-full, 999px); }
.fc-bottom { display: flex; align-items: center; justify-content: space-between; }
.fc-rating { font-size: 13px; font-weight: 700; color: var(--ink, #1A1410); display: flex; align-items: center; gap: 3px; }
.fc-review { font-size: 12px; color: var(--ink-30, #999); font-weight: 400; }
.fc-price { font-size: 13px; font-weight: 700; color: #4F46E5; }

.featured-nav { position: absolute; top: 50%; right: 16px; transform: translateY(-50%); display: flex; gap: 6px; }
.fn-btn {
  width: 32px; height: 32px; border-radius: 50%; border: 1.5px solid var(--ink-10, #E5E8EB);
  background: white; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s; box-shadow: 0 1px 3px rgba(0,0,0,.06); font-size: 14px; color: var(--ink-60, #666);
}
.fn-btn:hover { background: #4F46E5; color: white; border-color: #4F46E5; }

/* ═══════════════════════════════════
   PLANNER GRID — Design-A v4.1 컴팩트 카드
═══════════════════════════════════ */
.planner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

/* ─── CARD (Design-A v4.1) ─── */
.pgrid-card {
  background: white; border-radius: 16px; overflow: hidden;
  border: 1.5px solid rgba(0,0,0,.05);
  transition: all .3s var(--ease, ease); cursor: pointer;
  position: relative;
}
.pgrid-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(79,70,229,.1);
  border-color: #7C3AED;
}
.pgrid-card--premium { border-color: rgba(79,70,229,.15); }
.pgrid-card--premium:hover { box-shadow: 0 12px 36px rgba(79,70,229,.15); }
.pgrid-card--pro { border-color: rgba(16,185,129,.15); }
.pgrid-card--pro:hover { border-color: #10B981; }

/* ─── 카드 헤더 (배경색 그라디언트 + 아바타 + 정보) ─── */
.pcard-header {
  padding: 16px 16px 14px; position: relative;
}
.pgrid-card--premium .pcard-header {
  background: linear-gradient(135deg, #f5f3ff, #ede9fe);
}
.pgrid-card--pro .pcard-header {
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
}

/* 우상단 뱃지 */
.pcard-badges-top {
  position: absolute; top: 10px; right: 10px;
  display: flex; gap: 3px;
}
.badge-sm {
  font-size: 9px; font-weight: 800; letter-spacing: .6px;
  padding: 3px 8px; border-radius: var(--r-full, 999px); color: white;
}
.badge-premium { background: linear-gradient(135deg, #7C3AED, #4F46E5); }
.badge-pro { background: linear-gradient(135deg, #34D399, #10B981); }
.badge-boost { background: linear-gradient(135deg, #f59e0b, #ef4444); animation: boost-pulse 2s ease-in-out infinite; }
.badge-new { background: linear-gradient(135deg, #60a5fa, #3b82f6); }
.badge-verified { background: #ecfdf5; color: #10B981; font-weight: 700; }
@keyframes boost-pulse { 0%,100%{opacity:1;}50%{opacity:.75;} }

/* 업체/프리랜서 타입 태그 */
.pcard-type { margin-bottom: 8px; }
.type-tag {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 11px; font-weight: 600; padding: 3px 9px;
  border-radius: var(--r-full, 999px);
}
.type-company { background: #eff6ff; color: #3b82f6; }
.type-freelance { background: #f5f3ff; color: #7C3AED; }

/* 프로필 (아바타 + 이름 + 스펙) */
.pcard-profile { display: flex; align-items: center; gap: 12px; }
.pcard-avatar {
  width: 52px; height: 52px; border-radius: 14px;
  overflow: hidden; flex-shrink: 0;
  border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,.06);
  position: relative;
}
.pcard-avatar img { width: 100%; height: 100%; object-fit: cover; }
.pcard-avatar-default {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--ink-10, #E5E8EB); display: flex; align-items: center; justify-content: center;
}
.pcard-avatar-default span {
  font-size: 22px; font-weight: 700; color: var(--ink-60, #666);
}
.pcard-match-score {
  position: absolute; bottom: -4px; right: -4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: white; box-shadow: 0 1px 4px rgba(0,0,0,.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 8px; font-weight: 800; color: #4F46E5;
}
.pcard-info { flex: 1; min-width: 0; }
.pcard-name {
  font-size: 16px; font-weight: 700; color: var(--ink, #1A1410);
  margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pcard-spec { font-size: 12px; color: var(--ink-60, #666); line-height: 1.5; }
.pcard-response-tag {
  display: inline-flex; align-items: center; gap: 3px;
  margin-top: 4px; font-size: 11px; font-weight: 600;
  color: #D97706; background: #FFFBEB;
  padding: 2px 8px; border-radius: var(--r-full, 999px);
}

/* 통계 미니바 (응답률 + 웨딩 건수) */
.pcard-stats {
  display: flex; gap: 10px; margin-top: 10px;
  padding-top: 10px; border-top: 1px solid rgba(0,0,0,.04);
}
.pstat { flex: 1; }
.pstat-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 3px;
}
.pstat-label {
  font-size: 10px; font-weight: 600; color: var(--ink-30, #999);
  text-transform: uppercase; letter-spacing: .5px;
}
.pstat-val { font-size: 11px; font-weight: 700; }
.pstat-bar { height: 3px; background: var(--ink-10, #E5E8EB); border-radius: 2px; overflow: hidden; }
.pstat-fill { height: 100%; border-radius: 2px; transition: width .6s var(--ease, ease); }
.pstat-fill--green { background: linear-gradient(90deg, #34D399, #10B981); }
.pstat-fill--gold { background: linear-gradient(90deg, #FBBF24, #D97706); }

.pcard-wedding-count {
  text-align: center; padding: 4px 10px;
  background: rgba(79,70,229,.05); border-radius: 8px;
}
.pcard-wedding-num { font-size: 14px; font-weight: 800; color: #4F46E5; }
.pcard-wedding-label { font-size: 9px; color: var(--ink-30, #999); font-weight: 600; }

/* ─── 카드 하단 (태그 + 가격 + 평점 + 액션) ─── */
.pcard-body { padding: 12px 16px 14px; }
.pcard-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 10px; }
.pcard-tag {
  font-size: 11px; font-weight: 500; color: #7C3AED;
  background: #f5f3ff; padding: 4px 9px; border-radius: var(--r-full, 999px);
}

.pcard-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 10px;
}
.pcard-price { font-size: 15px; font-weight: 700; color: var(--ink, #1A1410); }
.pcard-rating {
  display: flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--ink-60, #666);
}
.pcard-rating svg { width: 14px; height: 14px; fill: #f59e0b; color: #f59e0b; }
.pcard-rating strong { color: var(--ink, #1A1410); font-weight: 700; }

.pcard-actions { display: flex; gap: 6px; }
.btn-consult {
  flex: 1; padding: 10px; border-radius: 12px; border: none;
  font-size: 13px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .2s;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: white; box-shadow: 0 2px 8px rgba(79,70,229,.2);
}
.btn-consult:hover { opacity: .9; transform: translateY(-1px); }
.btn-wish {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1.5px solid var(--ink-10, #E5E8EB); background: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all .2s;
}
.btn-wish:hover { border-color: #E8437F; background: #fdf2f8; }
.btn-wish svg { width: 15px; height: 15px; color: var(--ink-30, #999); }
.btn-wish.wished { border-color: #E8437F; background: #fdf2f8; }
.btn-wish.wished svg { color: #E8437F; fill: #E8437F; }
.btn-more {
  width: 38px; height: 38px; border-radius: 12px;
  border: 1.5px solid var(--ink-10, #E5E8EB); background: white;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  font-size: 14px; color: var(--ink-30, #999); transition: all .2s;
  position: relative;
}
.btn-more:hover { background: var(--ink-10, #E5E8EB); }

/* ─── ... 메뉴 드롭다운 ─── */
.pgca-dropdown {
  display: none; position: absolute; right: 0; bottom: calc(100% + 6px);
  background: white; border: 1px solid #e2e8f0; border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,.12); width: 150px;
  overflow: hidden; z-index: 50;
}
.pgca-dropdown.show { display: block; }

/* ═══════════════════════════════════
   리스트 뷰 — .planner-grid.list-view
═══════════════════════════════════ */
.planner-grid.list-view {
  grid-template-columns: 1fr;
  gap: 10px;
}
.planner-grid.list-view .pgrid-card {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  border-radius: 14px;
}
.planner-grid.list-view .pcard-header {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 260px;
  padding: 14px 16px;
  border-right: 1px solid rgba(0,0,0,.04);
}
.planner-grid.list-view .pcard-body {
  flex: 1;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 16px;
  padding: 14px 16px;
}
.planner-grid.list-view .pcard-tags {
  flex: 1;
  margin-bottom: 0;
}
.planner-grid.list-view .pcard-footer {
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 0;
  white-space: nowrap;
}
.planner-grid.list-view .pcard-actions {
  flex-shrink: 0;
}
.planner-grid.list-view .pcard-stats {
  margin-top: 6px;
  padding-top: 6px;
}
.planner-grid.list-view .pcard-badges-top {
  position: static;
  margin-bottom: 6px;
}

/* 리스트뷰 반응형 — 태블릿 이하에서 세로 폴백 */
@media (max-width: 768px) {
  .planner-grid.list-view .pgrid-card {
    flex-direction: column;
  }
  .planner-grid.list-view .pcard-header {
    flex: none;
    border-right: none;
    border-bottom: 1px solid rgba(0,0,0,.04);
  }
  .planner-grid.list-view .pcard-body {
    flex-direction: column;
    align-items: flex-start;
  }
  .planner-grid.list-view .pcard-footer {
    flex-direction: row;
    align-items: center;
    width: 100%;
  }
}

/* ─── 빈 상태 ─── */
.matching-empty {
  text-align: center; padding: 80px 24px;
  background: white; border-radius: 20px;
  border: 1px solid rgba(26,20,16,.06);
}

/* ─── 페이지네이션 ─── */
.pagination {
  display: flex; justify-content: center; gap: 6px; margin-top: 32px;
}
.pg-btn {
  width: 40px; height: 40px; border-radius: 12px;
  border: 1.5px solid var(--ink-10, #E5E8EB); background: white;
  font-size: 14px; font-weight: 500; color: var(--ink-60, #666);
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.pg-btn:hover { background: #f5f3ff; color: #7C3AED; border-color: #7C3AED; }
.pg-btn.active {
  background: linear-gradient(135deg, #4F46E5, #7C3AED); color: white;
  border-color: transparent; font-weight: 700;
  box-shadow: 0 2px 8px rgba(79,70,229,.2);
}

/* ─── FORM LABEL (모달 내) ─── */
.form-label {
  font-size: 14px; font-weight: 600; color: var(--ink-60, #666);
  display: block; margin-bottom: 8px;
}

/* ─── MOBILE FILTER TOGGLE ─── */
.mobile-filter-toggle {
  display: none; padding: 9px 18px; border-radius: var(--r-full, 999px);
  border: 1.5px solid var(--ink-10, #E5E8EB); font-size: 14px; font-weight: 600;
  color: var(--ink, #1A1410); background: white; cursor: pointer;
  transition: all .2s var(--ease, ease);
}
.mobile-filter-toggle:hover { background: #f5f3ff; color: #7C3AED; }

/* ──────────────────────────────────
   RESPONSIVE — MATCHING
────────────────────────────────── */

/* ── 중간 데스크톱 ── */
@media (max-width: 1100px) {
  .matching-layout { grid-template-columns: 200px 1fr; gap: 20px; }
  .planner-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .featured-card { flex: 0 0 200px; }
  .featured-nav { display: none; }
}

/* ── 태블릿 ── */
@media (max-width: 900px) {
  .hero-search { padding: 36px 20px; padding-top: calc(var(--nav-h) + 36px); }
  .hero-title { font-size: 28px; }
  .hero-sub { font-size: 14px; }
  .matching-layout { grid-template-columns: 1fr; padding: 20px; }
  .mobile-filter-toggle { display: inline-flex; }

  .filter-sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: min(300px, 80vw); z-index: 700;
    transform: translateX(-100%);
    transition: transform .3s var(--ease, ease);
    box-shadow: none; border-radius: 0;
    padding-top: calc(var(--nav-h) + 20px);
    height: 100vh; overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .filter-sidebar.open {
    transform: translateX(0);
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
  }

  .planner-grid { grid-template-columns: repeat(2, 1fr); }
  .matching-toolbar { gap: 10px; }
  .sort-select { font-size: 12px; padding: 8px 12px; }
}

/* ── 모바일 ── */
@media (max-width: 640px) {
  .hero-search {
    padding: 28px 16px;
    padding-top: calc(var(--nav-h) + 28px);
    overflow: hidden;
  }
  .hero-inner { padding: 0; }
  .hero-title { font-size: 24px; word-break: keep-all; }
  .hero-sub { font-size: 13px; word-break: keep-all; padding: 0 4px; }

  .hero-search-wrap { max-width: 100%; }
  .hero-search-input {
    padding: 13px 90px 13px 40px;
    font-size: 13px;
    border-radius: 14px;
  }
  .hero-search-icon { left: 14px; }
  .hero-search-icon svg { width: 16px; height: 16px; }
  .hero-search-btn {
    padding: 9px 16px;
    font-size: 12px;
    border-radius: 12px;
    right: 5px;
  }

  .hero-quick-tags {
    gap: 6px;
    margin-top: 14px;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .hero-quick-tags::-webkit-scrollbar { display: none; }
  .hero-qtag {
    padding: 6px 12px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .matching-layout {
    padding: 16px;
    overflow-x: hidden;
  }
  .matching-main { overflow-x: hidden; min-width: 0; }
  .planner-grid { grid-template-columns: 1fr; }

  .featured-section {
    padding: 18px 14px 14px;
    margin-bottom: 16px;
    border-radius: 16px;
    overflow: hidden;
  }
  .featured-title { font-size: 14px; }
  .featured-sub { font-size: 12px; }
  .featured-scroll {
    margin: 0 -14px;
    padding: 0 14px 8px;
  }
  .featured-card {
    flex: 0 0 170px;
    padding: 12px;
    border-radius: 12px;
  }
  .fc-name { font-size: 14px; }
  .fc-meta { font-size: 11px; }
  .fc-tag { font-size: 10px; padding: 2px 7px; }
  .fc-rating { font-size: 12px; }
  .fc-price { font-size: 12px; }
  .fc-avatar { width: 38px; height: 38px; border-radius: 10px; }
  .featured-nav { display: none; }

  .matching-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
  }
  .match-count { font-size: 13px; flex: 1; }
  .mobile-filter-toggle { font-size: 13px; padding: 8px 14px; }
  .sort-select { width: auto; flex: 1; font-size: 12px; padding: 8px 12px; }
  .filter-sidebar { width: min(320px, 90vw); }

  .pgrid-card { border-radius: 14px; }
  .pcard-header { padding: 14px; }
  .pcard-body { padding: 10px 14px 14px; }
  .pcard-name { font-size: 15px; }
  .pcard-spec { font-size: 11px; }
  .pcard-avatar { width: 48px; height: 48px; border-radius: 12px; }
  .pcard-avatar-default { width: 48px; height: 48px; border-radius: 12px; }
  .pcard-tags { gap: 4px; margin-bottom: 8px; }
  .pcard-tag { font-size: 11px; padding: 3px 8px; }
  .pcard-footer { margin-bottom: 8px; }
  .pcard-price { font-size: 14px; }
  .pcard-rating { font-size: 12px; }
  .pcard-actions { gap: 6px; }
  .btn-consult { padding: 10px; font-size: 13px; border-radius: 10px; }
  .btn-wish { width: 36px; height: 36px; border-radius: 10px; }
  .btn-more { width: 36px; height: 36px; border-radius: 10px; }

  .matching-empty { padding: 40px 20px; }
  .pagination { gap: 4px; margin-top: 24px; }
  .pg-btn { width: 36px; height: 36px; font-size: 13px; border-radius: 10px; }
}

/* ── 초소형 모바일 ── */
@media (max-width: 360px) {
  .hero-search { padding: 20px 12px; padding-top: calc(var(--nav-h) + 20px); }
  .hero-title { font-size: 20px; }
  .hero-sub { font-size: 12px; }
  .hero-search-input { padding: 11px 80px 11px 36px; font-size: 12px; }
  .hero-search-btn { padding: 7px 12px; font-size: 11px; }

  .matching-layout { padding: 12px; }
  .planner-grid { grid-template-columns: 1fr; }
  .featured-card { flex: 0 0 155px; padding: 10px; }
  .fg-chip { padding: 5px 10px; font-size: 11px; }

  .pcard-header { padding: 12px; }
  .pcard-body { padding: 8px 12px 12px; }
  .pcard-avatar { width: 44px; height: 44px; }
  .pcard-avatar-default { width: 44px; height: 44px; }
}
