/* 필 매장찾기 — 디자인필 */
.fsf, .fsf-single { --fsf-c: #1f6fff; --fsf-line: #e3e5e8; --fsf-text: #1d2127; --fsf-sub: #6b7280; --fsf-bg: #fff; font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; color: var(--fsf-text); line-height: 1.5; letter-spacing: -0.01em; }
.fsf *, .fsf *::before, .fsf *::after, .fsf-single * { box-sizing: border-box; }
.fsf { position: relative; margin: 0 0 20px; }
.fsf button { font-family: inherit; }
.fsf [hidden] { display: none !important; }

/* 상단: 분류 탭 + 검색 */
.fsf-top { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.fsf-tabs { display: flex; flex-wrap: wrap; }
.fsf-tabs button { appearance: none; border: 1px solid #d5d8dc; background: #fff; color: #444; padding: 9px 18px; margin: 0 -1px -1px 0; font-size: 14px; font-weight: 500; cursor: pointer; border-radius: 0; line-height: 1.2; transition: background .15s, color .15s; }
.fsf-tabs button:hover { color: #111; }
.fsf-tabs button.on { background: #222; border-color: #222; color: #fff; position: relative; z-index: 1; }
.fsf-search { display: flex; margin: 0; flex: 0 1 300px; }
.fsf-search input { flex: 1; min-width: 0; height: 40px; border: 1px solid #d5d8dc; border-right: 0; padding: 0 12px; font-size: 14px; border-radius: 0; background: #fff; color: var(--fsf-text); font-family: inherit; box-shadow: none; margin: 0; }
.fsf-search input:focus { outline: none; border-color: #222; }
.fsf-search button { width: 44px; height: 40px; border: 0; background: #222; color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; border-radius: 0; padding: 0; }

/* 본문 */
.fsf-body { display: flex; height: var(--fsf-h); border: 1px solid var(--fsf-line); background: var(--fsf-bg); overflow: hidden; }
.fsf-list-right .fsf-body { flex-direction: row-reverse; }
.fsf-side { flex: 0 0 var(--fsf-list); width: var(--fsf-list); overflow-y: auto; border-right: 1px solid var(--fsf-line); background: #fff; -webkit-overflow-scrolling: touch; }
.fsf-list-right .fsf-side { border-right: 0; border-left: 1px solid var(--fsf-line); }
.fsf-mapwrap { position: relative; flex: 1; min-width: 0; }
.fsf-map { position: absolute; inset: 0; width: 100%; height: 100%; }

.fsf-count { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--fsf-line); font-size: 13px; color: var(--fsf-sub); }
.fsf-count b { color: var(--fsf-c); font-weight: 700; }
.fsf-count small { color: #9aa0a6; }
.fsf-all { border: 1px solid #d5d8dc; background: #fff; padding: 4px 10px; font-size: 12px; cursor: pointer; color: #333; border-radius: 0; }
.fsf-all:hover { border-color: #222; }

.fsf-items { list-style: none; margin: 0; padding: 0; }
.fsf-items li { display: flex; gap: 14px; padding: 16px; border-bottom: 1px solid #f0f1f3; cursor: pointer; transition: background .15s; margin: 0; }
.fsf-items li:hover { background: #f8f9fb; }
.fsf-items li.on { background: #f3f6ff; box-shadow: inset 3px 0 0 var(--fsf-c); }
.fsf-items li.fsf-more { display: block; cursor: default; text-align: center; color: var(--fsf-sub); font-size: 13px; }
.fsf-th { flex: 0 0 84px; width: 84px; height: 84px; background: #f3f4f6; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fsf-th img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.fsf-items li:hover .fsf-th img { transform: scale(1.05); }
.fsf-th span { opacity: .35; transform: scale(.8); }
.fsf-tx { min-width: 0; flex: 1; }
.fsf-tx strong { display: block; font-size: 16px; font-weight: 700; margin: 0 0 3px; color: var(--fsf-text); }
.fsf-tx p { margin: 0; font-size: 13px; color: var(--fsf-sub); line-height: 1.5; }
.fsf-tx p.fsf-intro { color: #3d434b; margin-bottom: 2px; }
.fsf-tx a { color: inherit; text-decoration: none; }
.fsf-badge { display: inline-block; font-size: 11px; font-weight: 600; color: var(--fsf-c); margin-bottom: 3px; }

/* 목록 스크롤바: 평소엔 숨김, 마우스를 올리면 얇게 (사이트 스크롤바 디자인과 무관하게 고정) */
.fsf .fsf-side { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.fsf .fsf-side:hover { scrollbar-color: rgba(0,0,0,.22) transparent; }
.fsf .fsf-side::-webkit-scrollbar { width: 3px !important; height: 3px !important; background: transparent !important; }
.fsf .fsf-side::-webkit-scrollbar-track { background: transparent !important; border: 0 !important; box-shadow: none !important; }
.fsf .fsf-side::-webkit-scrollbar-thumb { background: transparent !important; border: 0 !important; border-radius: 3px !important; box-shadow: none !important; }
.fsf .fsf-side:hover::-webkit-scrollbar-thumb { background: rgba(0,0,0,.22) !important; }
.fsf .fsf-side::-webkit-scrollbar-button { display: none !important; }
/* 아래에 더 있음을 알리는 흐림 */
.fsf .fsf-side::after { content: ""; position: sticky; bottom: 0; display: block; height: 48px; margin-top: -48px; background: linear-gradient(rgba(255,255,255,0), #fff); pointer-events: none; transition: opacity .2s; }
.fsf .fsf-side.is-end::after { opacity: 0; }

/* 핀·묶음 */
.fsf-mk { position: relative; width: 30px; height: 40px; cursor: pointer; }
.fsf-mk-pin { position: absolute; left: 0; bottom: 0; width: 30px; height: 40px; display: flex; align-items: flex-end; justify-content: center; transform-origin: 50% 100%; transition: transform .15s; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
.fsf-mk-pin svg { display: block; }
.fsf-mk-pin img { display: block; max-width: 48px; max-height: 56px; width: auto; height: auto; }
.fsf-mk.is-hover .fsf-mk-pin, .fsf-mk.is-sel .fsf-mk-pin { transform: scale(1.25); }
.fsf-mk-lb { position: absolute; top: 43px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 180px; overflow: hidden; text-overflow: ellipsis; background: #fff; color: #222; font-size: 12px; font-weight: 600; padding: 3px 8px; border: 1px solid rgba(0,0,0,.12); box-shadow: 0 1px 3px rgba(0,0,0,.12); line-height: 1.3; font-family: "Pretendard Variable", Pretendard, sans-serif; }
.fsf-mk.is-sel .fsf-mk-lb { background: #222; color: #fff; border-color: #222; }
.fsf-cl { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--fsf-c); color: #fff; font-weight: 700; font-size: 14px; cursor: pointer; box-shadow: 0 0 0 6px color-mix(in srgb, var(--fsf-c) 25%, transparent), 0 2px 6px rgba(0,0,0,.2); font-family: "Pretendard Variable", Pretendard, sans-serif; transition: transform .15s; }
.fsf-cl:hover { transform: scale(1.08); }
.fsf-me { width: 18px; height: 18px; border-radius: 50%; background: #1a73e8; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.2), 0 1px 4px rgba(0,0,0,.3); }

/* 내 위치 */
.fsf-myloc { position: absolute; right: 10px; bottom: 30px; z-index: 5; width: 40px; height: 40px; border: 1px solid rgba(0,0,0,.15); background: #fff; color: #333; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 0 1px 4px rgba(0,0,0,.15); border-radius: 0; padding: 0; }
.fsf-myloc:hover { color: var(--fsf-c); }
.fsf-myloc.is-busy { opacity: .5; }

/* 정보 카드 */
.fsf-card { position: absolute; left: 12px; top: 12px; z-index: 6; width: 300px; max-height: calc(100% - 24px); overflow-y: auto; background: #fff; box-shadow: 0 6px 24px rgba(0,0,0,.18); animation: fsfIn .18s ease-out; }
@keyframes fsfIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.fsf-card-x { position: absolute; right: 6px; top: 6px; z-index: 2; width: 30px; height: 30px; border: 0; background: rgba(255,255,255,.9); font-size: 22px; line-height: 1; cursor: pointer; color: #333; border-radius: 0; padding: 0; }
.fsf-card-img { aspect-ratio: 16/9; background: #f3f4f6; overflow: hidden; }
.fsf-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fsf-card-bd { padding: 16px 18px 18px; }
.fsf-card-bd strong { display: block; font-size: 18px; font-weight: 700; margin: 0 30px 4px 0; }
.fsf-card-bd .fsf-intro { margin: 0 0 8px; font-size: 13px; color: #3d434b; }
.fsf-card-bd dl { margin: 8px 0 0; font-size: 13px; }
.fsf-card-bd dl div { display: flex; gap: 10px; padding: 3px 0; }
.fsf-card-bd dt { flex: 0 0 30px; color: #9aa0a6; font-weight: 500; margin: 0; }
.fsf-card-bd dd { margin: 0; color: #3d434b; }
.fsf-card-bd dd a { color: inherit; text-decoration: none; }
.fsf-card-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.fsf .fsf-b, .fsf-single .fsf-b { display: inline-flex; align-items: center; justify-content: center; height: 36px; padding: 0 14px; background: var(--fsf-c); color: #fff; border: 1px solid var(--fsf-c); font-size: 13px; font-weight: 600; text-decoration: none; border-radius: 0; transition: opacity .15s; }
.fsf .fsf-b:hover, .fsf-single .fsf-b:hover { opacity: .88; color: #fff; }
.fsf .fsf-b-line, .fsf-single .fsf-b-line { background: #fff; color: #333; border-color: #d5d8dc; }
.fsf .fsf-b-line:hover, .fsf-single .fsf-b-line:hover { color: #111; border-color: #222; opacity: 1; }
.fsf-b-tel { display: none !important; }

.fsf-msg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7; background: rgba(20,22,25,.88); color: #fff; font-size: 14px; padding: 16px 20px; text-align: center; max-width: 90%; line-height: 1.6; }
.fsf-credit { text-align: right; margin-top: 6px; font-size: 10px; line-height: 1; }
.fsf-credit a { color: #c4c7cc; text-decoration: none; letter-spacing: .04em; }
.fsf-admin-msg { padding: 16px; border: 1px dashed #d63638; color: #d63638; font-size: 14px; }

/* 전체화면형 */
.fsf-full .fsf-top { padding: 0 20px; }
.fsf-full .fsf-body { border-left: 0; border-right: 0; }

/* 상세페이지 */
.fsf-single { margin: 0 0 32px; }
.fsf-single-map { width: 100%; height: 360px; margin-bottom: 20px; border: 1px solid var(--fsf-line); }
.fsf-info { margin: 0; border-top: 2px solid #222; }
.fsf-info div { display: flex; gap: 16px; padding: 12px 4px; border-bottom: 1px solid #eceef1; font-size: 15px; }
.fsf-info dt { flex: 0 0 72px; color: #8a9097; font-weight: 500; margin: 0; }
.fsf-info dd { margin: 0; color: #2a2f35; }
.fsf-info dd a { color: inherit; }
.fsf-single-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* 모바일 */
@media (max-width: 767px) {
	.fsf-top { flex-direction: column; align-items: stretch; }
	.fsf-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.fsf-tabs::-webkit-scrollbar { display: none; }
	.fsf-tabs button { flex: 0 0 auto; padding: 9px 14px; }
	.fsf-search { flex: 1 1 auto; }
	.fsf-body, .fsf-list-right .fsf-body { flex-direction: column-reverse; height: auto !important; }
	.fsf-mapwrap { flex: 0 0 var(--fsf-mh); height: var(--fsf-mh); }
	.fsf-side { flex: 1 1 auto; width: 100%; border: 0 !important; border-top: 1px solid var(--fsf-line) !important; overflow: visible; }
	.fsf-count { position: static; }
	.fsf .fsf-side::after { display: none; }
	.fsf-th { flex-basis: 72px; width: 72px; height: 72px; }
	.fsf-card { left: 8px; right: 8px; top: auto; bottom: 8px; width: auto; max-height: calc(100% - 16px); display: flex; }
	.fsf-card-img { flex: 0 0 96px; aspect-ratio: auto; }
	.fsf-card-bd { padding: 12px 14px; }
	.fsf-card-bd strong { font-size: 16px; }
	.fsf-card-bd dl div:nth-child(n+2) { display: none; }
	.fsf-b-tel { display: inline-flex !important; }
	.fsf-myloc { right: auto; left: 8px; top: 8px; bottom: auto; }
	.fsf-full .fsf-top { padding: 0; }
	.fsf-single-map { height: 260px; }
	.fsf-info dt { flex-basis: 60px; }
}
