/* ══════════════════════════════════════════════════════
 *  업체 찾기 (공개 검색) — 상단 메뉴형 (R6-2b, 2026-11-11)
 *  /css/zones/place-search.css — inc/views/place/search-top.php 짝
 *  톤: 시안 v1 메인 '사진으로 먼저 둘러보는 웨딩홀' 카드 + venue. 부품(btn·chip2·select·empty·skel)은 components
 * ══════════════════════════════════════════════════════ */
.ps-search .page { padding-top: 8px; }

/* 머리 + 검색 */
.sr-hero { text-align: center; padding: 40px 24px 30px; margin: 0; background: radial-gradient(120% 90% at 50% 0%, var(--accent-lt) 0%, transparent 70%); border-radius: 0 0 var(--r-xl, 32px) var(--r-xl, 32px); }
.sr-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dk); }
.sr-hero h1 { font-size: clamp(28px, 4.4vw, 42px); font-weight: 600; margin: 8px 0 8px; letter-spacing: -0.03em; }
.sr-lead { margin: 0 auto; max-width: 560px; color: var(--ink-60); font-size: 15.5px; line-height: 1.6; }
.sr-lead strong { color: var(--ink); }
.sr-bar { display: flex; align-items: center; gap: 6px; max-width: 720px; margin: 22px auto 0; padding: 6px; background: var(--paper); border-radius: var(--r-full); box-shadow: var(--shadow-md); }
.sr-q, .sr-region { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px; color: var(--ink-60); }
.sr-q { flex: 1; min-width: 0; }
.sr-region { border-left: 1px solid var(--ink-10); }
.sr-q svg, .sr-region svg { width: 18px; height: 18px; flex: none; }
.sr-q input, .sr-region select { border: 0; background: none; font: inherit; font-size: 15px; color: var(--ink); min-width: 0; height: 100%; }
.sr-q input { flex: 1; }
.sr-region select { padding-right: 4px; cursor: pointer; }
.sr-q input:focus-visible, .sr-region select:focus-visible { outline: 2px solid var(--accent-md, var(--accent)); outline-offset: 2px; border-radius: 6px; }
.sr-bar .btn { height: 48px; padding: 0 26px; border-radius: var(--r-full); flex: none; }
.sr-quick { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 14px 0 0; }
.sr-quick .chip2 { border: 0; cursor: pointer; background: rgba(255,255,255,.75); }
.sr-quick .chip2:hover { background: var(--paper); color: var(--ink); }

/* 업종 칩 (가로 스크롤, 머리말 아래 고정) */
.sr-cats { position: sticky; top: 70px; z-index: 20; margin: 8px -32px 0; background: color-mix(in srgb, var(--warm) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--ink-08, rgba(0,0,0,.06)); }
.sr-cats-in { display: flex; gap: 4px; overflow-x: auto; padding: 10px 32px; scrollbar-width: none; }
.sr-cats-in::-webkit-scrollbar { display: none; }
.sr-cat { flex: none; display: grid; justify-items: center; gap: 4px; min-width: 68px; padding: 8px 10px; border: 0; background: none; border-radius: var(--r-md, 14px); font: inherit; font-size: 13px; font-weight: 600; color: var(--ink-60); cursor: pointer; }
.sr-cat-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow-sm); color: var(--ink-70); transition: background .2s, color .2s; }
.sr-cat-ic svg { width: 20px; height: 20px; }
.sr-cat:hover .sr-cat-ic { color: var(--accent); }
.sr-cat.is-on { color: var(--ink); }
.sr-cat.is-on .sr-cat-ic { background: var(--accent); color: #fff; }
.sr-cat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* 도구줄 */
.sr-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 8px; }
.sr-count { margin: 0; font-size: 15px; color: var(--ink-60); }
.sr-count strong { color: var(--ink); font-size: 18px; margin-right: 2px; }
.sr-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sr-filters .select { height: 38px; cursor: pointer; }
.sr-maplink { height: 38px; }
.sr-active { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.sr-active[hidden] { display: none; }
.sr-chip { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 8px 0 12px; border: 1px solid var(--accent-lt); background: var(--accent-lt); color: var(--accent-dk); border-radius: var(--r-full); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.sr-chip svg { width: 14px; height: 14px; }
.sr-chip-all { background: none; border-color: var(--ink-15); color: var(--ink-60); padding-right: 12px; }

/* 카드 */
.sr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 12px; }
.sr-card { display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg, 24px); overflow: hidden; box-shadow: var(--shadow-sm); cursor: pointer; transition: transform .25s, box-shadow .25s; }
.sr-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.sr-card:focus-within { box-shadow: 0 0 0 3px var(--accent-lt), var(--shadow-md); }
.sr-ph { position: relative; aspect-ratio: 4 / 3; background: var(--ink-10); overflow: hidden; }
.sr-ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sr-card:hover .sr-ph img { transform: scale(1.04); }
.sr-ph-ic { display: none; }
.sr-ph.is-noimg { background: linear-gradient(140deg, var(--accent-lt) 0%, var(--warm) 70%); display: grid; place-items: center; }
.sr-ph.is-noimg .sr-ph-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(255,255,255,.7); color: var(--accent); }
.sr-ph.is-noimg .sr-ph-ic svg { width: 30px; height: 30px; }
.sr-badge { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 3px; padding: 4px 9px; border-radius: var(--r-full); background: rgba(255,255,255,.94); font-size: 12px; font-weight: 700; color: var(--accent-dk); }
.sr-badge svg { width: 13px; height: 13px; }
.sr-ad { display: inline-block; margin-right: 6px; padding: 1px 6px; border: 1px solid var(--ink-30); border-radius: 4px; font-size: 11px; font-weight: 600; line-height: 1.4; color: var(--ink-70); vertical-align: 1px; } /* 유료 우선 노출 '광고' 표시 (약관 v1.2 제11조) */
.sr-heart { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink-70); cursor: pointer; box-shadow: var(--shadow-sm); }
.sr-heart svg { width: 20px; height: 20px; }
.sr-heart.is-on { color: var(--accent); }
.sr-heart.is-on svg { fill: currentColor; }
.sr-heart:focus-visible, .sr-cmp-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-body { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px 16px; flex: 1; }
.sr-cat-line { font-size: 12.5px; font-weight: 600; color: var(--accent-dk); }
.sr-name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; overflow-wrap: anywhere; }
.sr-name a { color: var(--ink); }
.sr-name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sr-loc { display: flex; align-items: center; flex-wrap: wrap; gap: 4px; margin: 0; font-size: 13.5px; color: var(--ink-60); }
.sr-loc svg { width: 14px; height: 14px; }
.sr-rate { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; color: var(--ink); font-weight: 700; }
.sr-rate svg { color: var(--gold, #D9A441); fill: currentColor; }
.sr-rate small { color: var(--ink-60); font-weight: 500; }
.sr-intro { margin: 4px 0 0; font-size: 13.5px; color: var(--ink-60); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sr-foot { display: flex; align-items: flex-end; gap: 8px; margin-top: auto; padding-top: 12px; flex-wrap: wrap; }
.sr-price { display: grid; line-height: 1.25; margin-right: auto; }
.sr-price s { font-size: 12px; color: var(--ink-50, var(--ink-60)); }
.sr-price strong { font-size: 16px; color: var(--ink); }
.sr-ask { font-size: 13.5px; color: var(--ink-60); }
.sr-promo { font-size: 12px; font-weight: 700; color: var(--accent-dk); background: var(--accent-lt); padding: 4px 8px; border-radius: var(--r-full); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-cmp-btn { display: inline-flex; align-items: center; gap: 3px; height: 32px; padding: 0 10px; border: 1px solid var(--ink-15); border-radius: var(--r-full); background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--ink-70); cursor: pointer; }
.sr-cmp-btn svg { width: 14px; height: 14px; }
.sr-cmp-btn.is-on { border-color: var(--accent); color: var(--accent-dk); background: var(--accent-lt); }
.sr-skel { cursor: default; box-shadow: none; }
.sr-skel .sr-ph { aspect-ratio: 4 / 3; border-radius: 0; }

.sr-empty { margin-top: 12px; display: grid; justify-items: center; gap: 4px; background: var(--paper); border-radius: var(--r-lg, 24px); }
.sr-empty[hidden] { display: none; }
.sr-empty p { margin: 10px 0 0; }
.sr-more { text-align: center; margin: 26px 0 0; }
.sr-more .btn[hidden] { display: none; }
#srSentinel { height: 1px; }

/* 플래너 안내 */
.sr-planner { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 48px 0 8px; padding: 28px 32px; border-radius: var(--r-lg, 24px); background: linear-gradient(120deg, var(--accent-lt), var(--paper)); }
.sr-planner strong { display: block; font-size: 22px; font-weight: 600; }
.sr-planner p { margin: 6px 0 0; color: var(--ink-60); font-size: 14.5px; }
.sr-planner .btn { flex: none; }

/* 비교함 */
.sr-compare { position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 60; width: min(760px, calc(100% - 24px)); }
.sr-compare[hidden] { display: none; }
.sr-compare-in { display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; background: var(--ink); color: #fff; border-radius: var(--r-full); box-shadow: var(--shadow-lg); }
.sr-compare-in > strong { flex: none; font-size: 14px; }
.sr-compare ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sr-compare li { flex: none; display: inline-flex; align-items: center; gap: 2px; max-width: 180px; padding: 0 2px 0 12px; height: 34px; border-radius: var(--r-full); background: rgba(255,255,255,.14); font-size: 13px; }
.sr-compare li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-compare li .icon-btn { width: 30px; height: 30px; color: #fff; background: none; }
.sr-compare li .icon-btn svg { width: 14px; height: 14px; }
.sr-compare .btn { flex: none; }
.sr-compare .btn[aria-disabled="true"] { opacity: .75; }
body.sr-has-cmp .page { padding-bottom: 96px; }

@media (max-width: 768px) {
  .sr-hero { padding: 24px 16px 22px; margin: 0 -16px; }
  .sr-lead { font-size: 14.5px; }
  .sr-bar { flex-wrap: wrap; border-radius: var(--r-lg, 24px); padding: 8px; gap: 4px; }
  .sr-q { flex: 1 1 100%; background: var(--warm); border-radius: 14px; }
  .sr-region { flex: 1; border-left: 0; background: var(--warm); border-radius: 14px; }
  .sr-region select { flex: 1; }
  .sr-bar .btn { height: 48px; border-radius: 14px; padding: 0 22px; }
  .sr-quick { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin: 12px -16px 0; padding: 0 16px; scrollbar-width: none; }
  .sr-quick .chip2 { flex: none; }
  .sr-cats { top: 58px; margin: 8px -16px 0; }
  .sr-cats-in { padding: 10px 16px; }
  .sr-cat { min-width: 62px; padding: 6px 6px; font-size: 12.5px; }
  .sr-cat-ic { width: 38px; height: 38px; }
  .sr-tools { margin-top: 14px; }
  .sr-filters { width: 100%; }
  .sr-filters label { flex: 1; min-width: 0; }
  .sr-filters .select { width: 100%; }
  .sr-grid { grid-template-columns: 1fr; gap: 14px; }
  .sr-card { flex-direction: row; border-radius: var(--r-md, 18px); }
  .sr-ph { flex: none; width: 112px; aspect-ratio: auto; min-height: 132px; }
  .sr-ph.is-noimg .sr-ph-ic { width: 46px; height: 46px; }
  .sr-ph.is-noimg .sr-ph-ic svg { width: 22px; height: 22px; }
  .sr-badge { display: none; }
  .sr-heart { width: 34px; height: 34px; right: 6px; top: 6px; }
  .sr-heart svg { width: 17px; height: 17px; }
  .sr-body { padding: 12px 14px; min-width: 0; }
  .sr-name { font-size: 15.5px; }
  .sr-intro { -webkit-line-clamp: 1; }
  .sr-foot { padding-top: 8px; }
  .sr-promo { display: none; }
  .sr-skel .sr-ph { min-height: 132px; }
  .sr-planner { flex-direction: column; align-items: flex-start; padding: 22px 20px; }
  .sr-planner .btn { width: 100%; justify-content: center; }
  .sr-compare { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .sr-compare-in { padding: 8px 8px 8px 14px; gap: 8px; border-radius: 18px; }
  .sr-compare li { max-width: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-card, .sr-ph img, .sr-cat-ic { transition: none; }
  .sr-card:hover { transform: none; }
}
