/* 업체찾기 탭 (goods/tuning_map.php) — 2026-11-12. 종전 ecg_tuningMap.css 는 되돌리기용으로 그대로 둔다. */
html, body, #container { height: 100%; overflow-y: hidden; }
#container { padding-bottom: 0; }
#contents_wrap { display: flex; flex-direction: column; overflow: hidden; position: relative; }
#sfRoot { flex: 1; min-height: 0; width: 100%; position: relative; z-index: 1; }
.sf-map { position: absolute; inset: 0; }

/* 칩 */
.sf-chips { position: absolute; left: 0; right: 0; top: 0; z-index: 6; display: flex; gap: 6px; padding: 10px 12px 0; pointer-events: none; }
.sf-chip { pointer-events: auto; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #e0e0e8; background: #fff; color: #111; font-size: 14px; font-weight: 600; box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap; cursor: pointer; }
.sf-chip.dash { border-style: dashed; color: #444; }
.sf-chip.on { border-color: #372FFF; color: #372FFF; }
.sf-chip i { display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 4px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.sf-chip b { font-weight: 400; margin-left: 2px; color: #888; }
.sf-count { position: absolute; left: 12px; top: 54px; z-index: 6; height: 32px; padding: 0 14px; border-radius: 16px; background: #fff; box-shadow: 0 2px 8px rgba(0,0,0,.12); font-size: 13px; line-height: 32px; color: #333; pointer-events: none; }
.sf-count b { font-weight: 800; }
.sf-research { position: absolute; left: 50%; top: 100px; transform: translateX(-50%); z-index: 6; display: none; height: 34px; padding: 0 16px; border: 0; border-radius: 17px; background: #372FFF; color: #fff; font-size: 13px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.sf-research.visible { display: block; }
.sf-fab { position: absolute; right: 14px; bottom: 14px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 0; background: #fff url(/data/skin/mobile/moment/img/icon/icon_current_location.png) no-repeat center; background-size: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.sf-fab.busy { opacity: .5; }

/* 핀 */
.sf-pin { position: relative; width: 40px; height: 40px; cursor: pointer; }
.sf-pin-img { display: block; width: 40px; height: 40px; border-radius: 50%; border: 3px solid #372FFF; background: #ddd center/cover no-repeat; box-shadow: 0 2px 6px rgba(0,0,0,.3); box-sizing: border-box; }
.sf-pin.on .sf-pin-img { transform: scale(1.25); }
.sf-pin-lbl { position: absolute; left: 50%; top: 44px; transform: translateX(-50%); padding: 3px 8px; border-radius: 6px; background: #111; color: #fff; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sf-dot { width: 9px; height: 9px; border-radius: 50%; background: #8a8a96; border: 1.5px solid #fff; box-shadow: 0 0 2px rgba(0,0,0,.4); cursor: pointer; position: relative; }
.sf-dot::after { content: ''; position: absolute; left: -10px; top: -10px; right: -10px; bottom: -10px; }
.sf-dot.on { background: #111; transform: scale(1.6); }
.sf-me { width: 14px; height: 14px; border-radius: 50%; background: #372FFF; border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(55,47,255,.25); }

/* 시트 */
.sf-sheet { flex-shrink: 0; width: 100%; max-width: 440px; margin: 0 auto; background: #fff; border-radius: 20px 20px 0 0; box-shadow: 0 -2px 16px rgba(0,0,0,.08); z-index: 9; overflow: hidden; display: flex; flex-direction: column; will-change: height; }
.sf-sheet.animating { transition: height 350ms cubic-bezier(.25,.1,.25,1); }
.sf-handle { width: 100%; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; touch-action: none; cursor: grab; }
.sf-handle::before { content: ''; width: 40px; height: 4px; border-radius: 2px; background: #d0d0d8; }
.sf-content { -webkit-overflow-scrolling: touch; padding-bottom: 24px; min-height: 0; }
.sf-skel i { display: block; height: 64px; margin: 10px 14px; border-radius: 10px; background: #f0f0f4; }

.sf-quick { display: flex; gap: 8px; overflow-x: auto; padding: 4px 14px 10px; scrollbar-width: none; }
.sf-quick::-webkit-scrollbar { display: none; }
.sf-q { flex: 0 0 auto; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid #d8d8e2; background: #fff; font-size: 14px; color: #111; white-space: nowrap; }
.sf-q em { font-style: normal; color: #999; font-size: 13px; }
.sf-q.on { border-color: #372FFF; background: #eceaff; color: #372FFF; }
.sf-h { margin: 14px 14px 8px; font-size: 17px; font-weight: 800; color: #111; }

/* 후기 가로 줄 — 카드 143px(한 화면 2.5장) */
.sf-rail { display: flex; gap: 8px; overflow-x: auto; padding: 0 14px 4px; scrollbar-width: none; }
.sf-rail::-webkit-scrollbar { display: none; }
.sf-rv { flex: 0 0 143px; width: 143px; cursor: pointer; }
.sf-rv-img { position: relative; width: 143px; height: 104px; border-radius: 10px; background: #e6e6ee center/cover no-repeat; }
.sf-badge { position: absolute; left: 6px; top: 6px; padding: 2px 7px; border-radius: 999px; background: #fff; color: #372FFF; font-size: 10px; font-weight: 800; }
.sf-badge.s { position: static; display: inline-block; margin-left: 6px; background: #eceaff; vertical-align: 1px; }
.sf-mycar { position: absolute; left: 6px; bottom: 6px; padding: 2px 7px; border-radius: 999px; background: #372FFF; color: #fff; font-size: 10px; font-weight: 800; }
.sf-rv-t { margin-top: 6px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.sf-rv-s { margin-top: 2px; font-size: 11.5px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-rv-d { font-size: 11.5px; font-weight: 700; color: #372FFF; }

/* 찜 */
.sf-wish { display: block; width: 32px; height: 32px; flex-shrink: 0; }
.sf-wish .related_wish_btn { display: block; width: 100%; height: 100%; background-position: center; background-size: 20px 20px; }
.sf-rv-img .sf-wish { position: absolute; right: 4px; top: 4px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.9); }

/* 업체 목록 */
.sf-list { list-style: none; margin: 0; padding: 0 14px; }
.sf-card { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid #f0f0f4; cursor: pointer; }
.sf-thumb { flex: 0 0 64px; width: 64px; height: 64px; border-radius: 12px; background: #eef0f4 center/cover no-repeat; }
.sf-thumb.big { flex-basis: 52px; width: 52px; height: 52px; }
.sf-ci { flex: 1; min-width: 0; }
.sf-cn { display: flex; align-items: center; }
.sf-cn b { font-size: 15px; font-weight: 800; color: #111; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sf-cn .sf-wish { margin-left: auto; }
.sf-ct { margin-top: 2px; font-size: 12px; color: #888; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 16px; }
.sf-cm { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12.5px; color: #555; }
.sf-cm span:first-child { font-weight: 800; color: #372FFF; }
.sf-go, .sf-go:hover, .sf-go-btn { text-decoration: none; }
.sf-go { margin-left: auto; font-weight: 700; color: #372FFF; }
.sf-empty { padding: 28px 14px; text-align: center; color: #888; font-size: 14px; }

/* 업체 상세 */
.sf-dh { display: flex; align-items: center; gap: 10px; padding: 0 14px 8px; }
.sf-dn { flex: 1; min-width: 0; }
.sf-dt b { font-size: 18px; font-weight: 800; }
.sf-ds { font-size: 12.5px; color: #888; }
.sf-x { width: 32px; height: 32px; border: 0; background: none; position: relative; }
.sf-x::before, .sf-x::after { content: ''; position: absolute; left: 8px; top: 15px; width: 16px; height: 2px; background: #666; transform: rotate(45deg); }
.sf-x::after { transform: rotate(-45deg); }
.sf-tags { display: flex; gap: 6px; padding: 0 14px 10px; flex-wrap: wrap; }
.sf-tags span { padding: 3px 10px; border-radius: 999px; background: #eceaff; color: #372FFF; font-size: 12px; font-weight: 700; }
/* sticky 는 문서 흐름에서 버튼 높이를 차지하므로 마지막 후기까지 스크롤할 수 있다. */
/* .sf-content 의 padding-bottom 24px 만큼 떠 보이지 않게 bottom·margin 으로 상쇄한다(시트 바닥에 붙는다). */
.sf-btns { position: sticky; bottom: -24px; margin-bottom: -24px; z-index: 1; background: #fff; padding: 10px 14px 12px; border-top: 1px solid #f0f0f4; }
.sf-go-btn { display: block; height: 48px; line-height: 48px; text-align: center; border-radius: 14px; background: #372FFF; color: #fff; font-size: 16px; font-weight: 800; }

/* 정본 ID 범위 스타일을 업체찾기 ID에 적용. 공용 gd_custom.css는 변경하지 않는다. */
#sfFilterLayer .tab_group{padding:15px;display:flex;box-shadow:rgb(33 35 38 / 10%) 0 7px 6px -1px}
#sfFilterLayer .tab_group li{padding-right:16px;font-size:16px;font-weight:700;letter-spacing:-1px}
#sfFilterLayer .tab_group li a{color:#bbb}
#sfFilterLayer .tab_group li .active{color:#000}
#sfFilterLayer .tabContentsWrapper{position:relative;flex:1;min-height:0;height:auto;overflow-y:scroll;overflow-x:hidden;overscroll-behavior:contain}
#sfFilterLayer .botBttnWrapper{padding:15px 15px 0 15px;display:flex;justify-content:space-between;box-shadow:rgb(33 35 38 / 10%) 0 -3px 4px -1px}
#sfFilterLayer .botBttnWrapper a{border-radius:100px;font-weight:700;font-size:14px;display:block;text-align:center;line-height:44px}
#sfFilterLayer .botBttnWrapper a.reset{border:1px solid #ddd;width:35%}
#sfFilterLayer .botBttnWrapper a.reset img{width:20px;margin-bottom:-4px}
#sfFilterLayer .botBttnWrapper a.submit{border:1px solid #222;background-color:#222;color:#fff;width:calc(65% - 15px)}
#sfFilterLayer .tabContentsOne{padding:15px;border-bottom:8px solid #f7f7f7}
#sfFilterLayer .tabContentsOne h3{color:#999;font-size:12px;margin-bottom:5px}
#sfFilterLayer .tabContentsOne:last-child{border-bottom:none;min-height:100%;box-sizing:border-box;padding-bottom:15px}
/* 정본 fixed/bottom 전환·딤. 앱 영역의 실제 좌표/내부 폭은 filterGeometry가 맞춘다. */
#sfFilterMask { position: fixed; top: 0; bottom: 0; max-width: 440px; background: rgba(0,0,0,.6); z-index: 301; visibility: hidden; opacity: 0; transition: opacity .15s, visibility .15s; }
#sfFilterMask.open_layer { visibility: visible; opacity: 1; }
#sfFilterLayer { display: flex; flex-direction: column; box-sizing: border-box; height: calc(65vh + 161px); max-height: calc(100vh - 20px); }
#sfFilterLayer .filterWrapper, #sfFilterLayer .botBttnWrapper { flex-shrink: 0; }
#sfFilterLayer .tabContentsOne h3 { font-weight: 700; }
#sfFilterLayer .c3row { height: 44px; box-sizing: border-box; }
#sfFilterLayer a.c3pick { height: 43px; box-sizing: border-box; }
#sfFilterLayer a.c3pick::before { box-sizing: border-box; }
#sfFilterLayer .c3row > a[data-act="gps"] { display: block; flex: 1; padding: 11px 4px; font-weight: 700; color: #13161c; }
#sfFilterLayer .c3row > a[aria-disabled="true"] { opacity: .5; }
.sf-pop-msg { font-size: 13px; color: #d92c2c; margin-bottom: 10px; }

/* 안내·데이터 오류 */
.sf-note { margin: 8px 14px 0; padding: 8px 12px; border-radius: 8px; background: #f4f4f8; color: #555; font-size: 12px; line-height: 1.5; }
.sf-err { padding: 40px 14px; text-align: center; line-height: 2; }
.sf-err .sf-q { margin-top: 8px; }
