/* 매장·사격장 지도 — 밝은 바탕 + 올리브 포인트 */
.shops { --bg:#F6F5F2; --card:#fff; --line:#E2E0D8; --line2:#CFCDC3; --text:#1C1C1C; --sub:#666; --olive:#4F6137; --olive-d:#3A4A28; --olive-t:#EEF2E6; --orange:#B8560A; --ok:#2F6B2F; --warn:#8A3B00;
	position:relative; display:flex; height:78vh; min-height:600px; background:var(--bg); color:var(--text); font-size:16px; line-height:1.4; border:1px solid var(--line); border-radius:12px; overflow:hidden; box-sizing:border-box; }
.shops *, .shops *::before, .shops *::after { box-sizing:border-box; }
.shops button, .shops select, .shops input, .shops textarea { font:inherit; color:inherit; }
.shops [hidden] { display:none !important; }

/* 왼쪽 패널 */
.shops-left { width:380px; flex:none; display:flex; flex-direction:column; background:var(--card); border-right:1px solid var(--line); min-height:0; }
.shops-top { padding:18px 18px 12px; display:flex; flex-direction:column; gap:12px; }
.shops-title { margin:0; font-size:22px; font-weight:700; }
.shops-search { display:flex; align-items:center; gap:10px; height:48px; padding:0 14px; border:1px solid var(--line2); border-radius:10px; background:#fff; color:var(--sub); }
.shops-search input { flex:1; min-width:0; border:0; outline:0; background:transparent; font-size:16px; color:var(--text); }
.shops-search:focus-within { border-color:var(--olive); box-shadow:0 0 0 2px rgba(79,97,55,.25); }
.shops-tabs, .shops-filters { display:flex; flex-wrap:wrap; gap:8px; }
.shops-tab, .shops-chip { min-height:44px; padding:0 14px; border-radius:22px; border:1px solid var(--line2); background:#fff; font-size:15px; cursor:pointer; }
.shops-tab { font-weight:700; padding:0 16px; }
.shops-tab.is-on, .shops-chip.is-on { background:var(--olive); border-color:var(--olive); color:#fff; }
.shops-tab .n { font-weight:500; }
select.shops-chip { padding-right:8px; max-width:100%; }

.shops-side { flex:1; min-height:0; display:flex; flex-direction:column; }
.shops-handle { display:none; }
.shops-count { display:flex; justify-content:space-between; padding:8px 18px; font-size:14px; color:var(--sub); border-top:1px solid var(--line); border-bottom:1px solid var(--line); background:#FAF9F6; }
.shops-list { flex:1; min-height:0; overflow-y:auto; padding:12px 14px 16px; display:flex; flex-direction:column; gap:10px; }
.shops-empty { padding:32px 12px; text-align:center; color:var(--sub); }

.shops-item { text-align:left; width:100%; display:flex; flex-direction:column; gap:6px; padding:14px; border-radius:12px; border:1px solid var(--line); background:#fff; cursor:pointer; }
.shops-item:hover { border-color:var(--olive); }
.shops-item.is-sel { border:2px solid var(--olive); background:var(--olive-t); padding:13px; }
.shops-item .r1 { display:flex; align-items:center; gap:10px; }
.shops-item .nm { flex:1; min-width:0; font-size:17px; font-weight:700; }
.shops-item .meta { font-size:14px; color:var(--sub); }
.shops-item .st { display:flex; gap:8px; align-items:center; font-size:14px; }
.shops-item .br { font-size:14px; color:#444; }
.badge { flex:none; width:28px; height:28px; display:flex; align-items:center; justify-content:center; color:#fff; font-size:14px; font-weight:700; }
.badge.shop { background:var(--olive); border-radius:50%; }
.badge.field, .badge.range { background:var(--orange); border-radius:9px; }
.tag { flex:none; font-size:13px; font-weight:700; color:var(--olive); background:#E3EAD6; border-radius:6px; padding:3px 8px; }
.on { font-weight:700; color:var(--ok); }
.off { font-weight:700; color:var(--warn); }
.na { color:var(--sub); }

/* 지도 */
.shops-mapwrap { position:relative; flex:1; min-width:0; background:#ECEBE4; }
.shops-map { position:absolute; inset:0; }
.shops-nomap { position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; padding:24px; text-align:center; color:var(--sub); background:#ECEBE4; }
.shops-nomap p { margin:0; }
.shops-legend { position:absolute; left:16px; top:16px; z-index:5; display:flex; gap:16px; align-items:center; padding:10px 14px; background:#fff; border:1px solid var(--line); border-radius:10px; font-size:14px; }
.shops-legend span { display:flex; align-items:center; gap:6px; }
.dot { width:14px; height:14px; display:inline-block; }
.dot.shop { background:var(--olive); border-radius:50%; }
.dot.field { background:var(--orange); border-radius:3px; }
.shops-btn { position:absolute; z-index:5; min-height:44px; padding:0 18px; border-radius:24px; border:1px solid var(--line2); background:#fff; font-size:15px; font-weight:500; cursor:pointer; display:flex; align-items:center; gap:8px; }
.shops-btn.is-on { background:var(--olive); border-color:var(--olive); color:#fff; }
.shops-bounds { left:50%; top:16px; transform:translateX(-50%); }
.shops-near { left:16px; bottom:16px; min-height:48px; background:var(--olive); border-color:var(--olive); color:#fff; font-weight:700; font-size:16px; }
.shops-new { left:150px; bottom:16px; min-height:48px; }
.shops-zoom { position:absolute; z-index:5; right:16px; bottom:16px; display:flex; flex-direction:column; border:1px solid var(--line2); border-radius:10px; overflow:hidden; background:#fff; }
.shops-zoom button { width:44px; height:44px; border:0; background:#fff; font-size:22px; cursor:pointer; }
.shops-zoom button + button { border-top:1px solid var(--line); }

/* 상세 카드 */
.shops-detail { position:absolute; z-index:10; right:16px; top:16px; width:330px; max-height:calc(100% - 100px); overflow-y:auto; padding:18px; background:#fff; border:1px solid var(--line); border-radius:14px; box-shadow:0 6px 24px rgba(0,0,0,.14); display:flex; flex-direction:column; gap:12px; }
.shops-detail .ph { width:100%; height:130px; border-radius:10px; background:#E3E1D8; object-fit:cover; display:block; }
.shops-detail .hd { display:flex; justify-content:space-between; align-items:flex-start; gap:8px; padding-right:40px; }
.shops-detail .nm { font-size:20px; font-weight:700; }
.shops-detail .sub { font-size:14px; color:var(--sub); margin-top:2px; }
.shops-detail .rows { display:flex; flex-direction:column; gap:6px; font-size:15px; }
.shops-detail .rows .k { color:var(--sub); }
.shops-detail .brands { display:flex; flex-wrap:wrap; gap:6px; }
.shops-detail .brands span { min-height:32px; padding:0 12px; display:flex; align-items:center; border-radius:16px; background:var(--olive-t); color:var(--olive-d); font-size:14px; font-weight:500; }
.shops-detail .extra { white-space:pre-line; color:#444; font-size:15px; }
.shops-detail .acts { display:flex; gap:8px; }
.shops-detail a.btn, .shops-detail button.btn { flex:1; min-height:44px; display:flex; align-items:center; justify-content:center; text-align:center; text-decoration:none; border-radius:10px; border:1px solid var(--olive); color:var(--olive); font-size:15px; font-weight:500; background:#fff; cursor:pointer; }
.shops-detail a.btn.primary { min-height:48px; background:var(--olive); color:#fff; font-weight:700; font-size:16px; }
.shops-detail .ft { display:flex; justify-content:space-between; align-items:center; font-size:13px; color:var(--sub); }
.shops-detail .ft button { min-height:44px; border:0; background:none; color:var(--olive); font-size:14px; font-weight:500; cursor:pointer; text-decoration:underline; }
.shops-detail .back { display:none; min-height:44px; border:0; background:none; color:var(--olive); font-size:15px; font-weight:500; cursor:pointer; text-align:left; padding:0; }
.shops-detail .x { position:absolute; right:6px; top:6px; width:44px; height:44px; border:0; background:none; font-size:22px; cursor:pointer; color:var(--text); }

/* 제보 창 */
.shops-modal { position:absolute; inset:0; z-index:50; background:rgba(0,0,0,.45); display:flex; align-items:center; justify-content:center; padding:16px; }
.shops-modal-box { width:100%; max-width:420px; background:#fff; border-radius:14px; padding:20px; display:flex; flex-direction:column; gap:12px; }
.shops-modal-box h2 { margin:0; font-size:19px; }
.shops-modal-sub { margin:0; color:var(--sub); font-size:14px; }
.shops-field { display:flex; flex-direction:column; gap:6px; font-size:15px; font-weight:500; }
.shops-field select, .shops-field textarea { border:1px solid var(--line2); border-radius:10px; padding:10px 12px; font-size:16px; font-weight:400; background:#fff; }
.shops-field select { min-height:48px; }
.shops-modal-msg { margin:0; min-height:20px; font-size:14px; color:var(--warn); }
.shops-modal-msg.ok { color:var(--ok); }
.shops-modal-actions { display:flex; gap:8px; justify-content:flex-end; }
.shops-btn-ghost, .shops-btn-primary { min-height:48px; padding:0 22px; border-radius:10px; font-size:16px; font-weight:700; cursor:pointer; }
.shops-btn-ghost { background:#fff; border:1px solid var(--line2); }
.shops-btn-primary { background:var(--olive); border:1px solid var(--olive); color:#fff; }
.shops-btn-primary:disabled { opacity:.6; cursor:default; }

.shops button:focus-visible, .shops a:focus-visible, .shops select:focus-visible, .shops textarea:focus-visible { outline:3px solid #2B5BD7; outline-offset:2px; }

/* 모바일: 지도 전체 + 바텀시트 */
@media (max-width:768px) {
	.shops { display:block; height:calc(100vh - 90px); height:calc(100dvh - 90px); min-height:520px; border-radius:0; border-left:0; border-right:0; }
	.shops-left { display:contents; }
	.shops-mapwrap { position:absolute; inset:0; }
	.shops-top { position:absolute; z-index:20; left:10px; right:10px; top:10px; padding:0; gap:8px; }
	.shops-title { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
	.shops-search { box-shadow:0 2px 8px rgba(0,0,0,.14); border-radius:24px; }
	.shops-tabs, .shops-filters { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
	.shops-tab, .shops-chip { flex:none; box-shadow:0 1px 4px rgba(0,0,0,.12); }
	.shops-side { position:absolute; z-index:25; left:0; right:0; bottom:0; height:78%; background:#fff; border-radius:20px 20px 0 0; box-shadow:0 -4px 20px rgba(0,0,0,.15); transition:transform .22s ease; }
	.shops-side[data-sheet="peek"] { transform:translateY(calc(100% - 104px)); }
	.shops-side[data-sheet="half"] { transform:translateY(48%); }
	.shops-side[data-sheet="full"] { transform:translateY(0); }
	.shops-handle { display:flex; justify-content:center; align-items:center; width:100%; height:28px; flex:none; border:0; background:none; cursor:pointer; touch-action:none; }
	.shops-handle span { width:44px; height:5px; border-radius:3px; background:var(--line2); display:block; }
	.shops-count { border-top:0; background:#fff; padding:2px 16px 10px; font-size:15px; }
	.shops-count #shops-total { font-weight:700; font-size:17px; color:var(--text); }
	.shops-legend { display:none; }
	.shops-bounds { left:auto; right:10px; top:112px; transform:none; z-index:19; }
	.shops-near { left:auto; right:10px; bottom:calc(52% + 14px); }
	.shops-new { display:none; }
	.shops-zoom { display:none; }
	.shops-detail { position:absolute; z-index:30; left:0; right:0; top:auto; bottom:0; width:auto; max-height:78%; border-radius:20px 20px 0 0; border-left:0; border-right:0; border-bottom:0; }
	.shops-detail .back { display:block; }
	.shops-detail .x { display:none; }
	.shops-detail .hd { padding-right:0; }
}
