/* ========= 기본 리셋 ========= */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
	margin: 0; padding: 0; min-height: 100%;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
	-webkit-font-smoothing: antialiased; color: #0f172a;
}
body.page-map { height: 100%; overflow: hidden; }
body.page-doc { background: #f8fafc; }

/* ========= 지도 컨테이너 ========= */
#map {
	position: fixed;
	top: 0; left: 0;
	width: 100vw; height: 100vh;
	height: 100dvh;
}

/* ========= App Header ========= */
.app-header {
	position: fixed;
	top: 0; left: 0; right: 0;
	height: calc(56px + env(safe-area-inset-top));
	padding-top: env(safe-area-inset-top);
	background: #fff;
	z-index: 25;
	display: flex; align-items: center;
	padding-left: 6px; padding-right: 6px;
	box-shadow: 0 2px 8px rgba(15,23,42,.08);
}
.hamburger-btn {
	width: 44px; height: 44px;
	background: transparent; border: 0;
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; border-radius: 50%;
	color: #334155;
}
.hamburger-btn:active { background: #f1f5f9; }
.app-header .header-title {
	flex: 1; text-align: center;
	font-size: 17px; font-weight: 700;
	color: #0f172a;
	letter-spacing: -0.3px;
}
.header-spacer { width: 44px; flex-shrink: 0; }

/* ========= Drawer ========= */
.drawer-backdrop {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15,23,42,.45);
	opacity: 0; pointer-events: none;
	transition: opacity .2s ease;
	z-index: 70;
}
.drawer-backdrop.show { opacity: 1; pointer-events: auto; }
.drawer {
	position: fixed; top: 0; left: 0; bottom: 0;
	width: 280px; max-width: 80%;
	background: #fff;
	z-index: 80;
	transform: translateX(-105%);
	transition: transform .26s cubic-bezier(.32,.72,0,1);
	box-shadow: 4px 0 16px rgba(0,0,0,.18);
	display: flex; flex-direction: column;
}
.drawer.show { transform: translateX(0); }
.drawer-head {
	padding: calc(28px + env(safe-area-inset-top)) 22px 22px;
	background: linear-gradient(135deg, #1d4ed8 0%, #3b82f6 100%);
	color: #fff;
}
.drawer-brand { font-size: 11px; opacity: .85; letter-spacing: 0.4px; }
.drawer-name { font-size: 20px; font-weight: 700; margin-top: 4px; }
.drawer-nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.drawer-link {
	display: flex; align-items: center; gap: 14px;
	padding: 13px 14px;
	border-radius: 10px;
	color: #334155;
	font-size: 15px; font-weight: 500;
	text-decoration: none;
}
.drawer-link:active { background: #f1f5f9; }
.drawer-link.active { background: #eff6ff; color: #1d4ed8; font-weight: 700; }
.drawer-link svg { flex-shrink: 0; color: #64748b; }
.drawer-link.active svg { color: #1d4ed8; }
.drawer-foot {
	padding: 14px 20px calc(20px + env(safe-area-inset-bottom));
	border-top: 1px solid #f1f5f9;
	font-size: 11px; color: #94a3b8;
}

/* ========= Top search bar ========= */
.topbar {
	position: fixed; left: 12px; right: 12px;
	top: calc(68px + env(safe-area-inset-top));
	z-index: 20;
	display: flex; align-items: center; gap: 8px;
	background: #fff; border-radius: 14px;
	box-shadow: 0 4px 16px rgba(15,23,42,.12), 0 1px 3px rgba(15,23,42,.06);
	padding: 10px 14px;
}
.topbar svg { flex: 0 0 20px; color: #64748b; }
.topbar input {
	flex: 1; border: 0; outline: 0;
	font-size: 15px; color: #0f172a; background: transparent;
	min-width: 0;
}
.topbar input::placeholder { color: #94a3b8; }
.topbar .clear {
	display: none; flex: 0 0 24px; height: 24px;
	border: 0; border-radius: 50%; background: #e2e8f0;
	color: #475569; font-size: 14px; cursor: pointer;
}
.topbar .clear.show { display: inline-flex; align-items: center; justify-content: center; }

/* ========= Mode Badge ========= */
.mode-badge {
	position: fixed;
	top: calc(124px + env(safe-area-inset-top));
	right: 12px;
	z-index: 18;
	background: rgba(15, 23, 42, 0.85);
	color: #fff;
	padding: 7px 12px;
	border-radius: 999px;
	font-size: 11px; font-weight: 600;
	text-decoration: none;
	box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.mode-badge:active { background: rgba(15, 23, 42, 0.95); }
.mode-badge .swap { color: #93c5fd; margin-left: 4px; }

/* ========= FAB ========= */
.fab {
	position: fixed; right: 16px;
	bottom: calc(24px + env(safe-area-inset-bottom));
	z-index: 15;
	width: 52px; height: 52px;
	border: 0; border-radius: 50%;
	background: #fff; color: #1d4ed8;
	box-shadow: 0 6px 20px rgba(15,23,42,.18);
	display: flex; align-items: center; justify-content: center;
	cursor: pointer; transition: transform .1s;
}
.fab:active { transform: scale(0.94); }

/* ========= Bottom Sheet ========= */
.sheet-backdrop {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15,23,42,.4);
	opacity: 0; pointer-events: none;
	transition: opacity .2s ease;
	z-index: 30;
}
.sheet-backdrop.show { opacity: 1; pointer-events: auto; }
.sheet {
	position: fixed; left: 0; right: 0; bottom: 0;
	z-index: 40;
	background: #fff;
	border-top-left-radius: 22px; border-top-right-radius: 22px;
	box-shadow: 0 -8px 32px rgba(15,23,42,.18);
	transform: translateY(100%);
	transition: transform .26s cubic-bezier(.32,.72,0,1);
	padding-bottom: calc(16px + env(safe-area-inset-bottom));
	max-height: 85vh; overflow: hidden;
}
.sheet.show { transform: translateY(0); }
.sheet-handle {
	display: flex; justify-content: center; padding: 10px 0 4px;
	cursor: grab; touch-action: none;
}
.sheet-handle::before {
	content: ""; width: 40px; height: 4px;
	background: #cbd5e1; border-radius: 2px;
}
.sheet-header {
	padding: 8px 24px 4px;
	display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.sheet-title { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -0.4px; flex: 1; min-width: 0; }
.score-badge.header-score { padding: 6px 14px; font-size: 16px; font-weight: 800; flex-shrink: 0; }

/* ========= Sheet Tabs ========= */
.sheet-tabs {
	display: flex;
	border-bottom: 1px solid #e5e7eb;
	padding: 0 8px;
	margin-top: 10px;
}
.sheet-tab {
	flex: 1;
	background: transparent; border: 0;
	padding: 13px 4px;
	font-size: 14px; font-weight: 600;
	color: #94a3b8;
	cursor: pointer;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
}
.sheet-tab.active { color: #1d4ed8; border-bottom-color: #1d4ed8; }

/* 모든 탭을 grid로 겹쳐서 가장 큰 패널 높이에 body가 맞춰지도록 */
.sheet-body {
	padding: 0;
	overflow-y: auto;
	max-height: 42vh;
	display: grid;
}
.tab-panel {
	grid-column: 1; grid-row: 1;
	padding: 6px 24px 12px;
	visibility: hidden;
	pointer-events: none;
}
.tab-panel.active { visibility: visible; pointer-events: auto; }

.info-grid { font-size: 14px; }
.info-grid .row {
	display: flex; gap: 12px;
	padding: 12px 0;
	border-bottom: 1px solid #f1f5f9;
}
.info-grid .row:last-child { border-bottom: 0; }
.info-grid .lbl { width: 70px; flex-shrink: 0; color: #64748b; font-weight: 500; }
.info-grid .val { flex: 1; color: #0f172a; font-weight: 500; word-break: break-word; }
.overview-text {
	font-size: 14px; line-height: 1.65;
	color: #334155;
	white-space: pre-wrap;
	padding: 10px 0;
}
.placeholder { text-align: center; padding: 50px 20px; color: #94a3b8; font-size: 14px; }
.placeholder svg { display: block; margin: 0 auto 12px; color: #cbd5e1; }

/* ========= Visit Tab ========= */
.visit-photo-area {
	background: #f8fafc;
	border: 1px dashed #e2e8f0;
	border-radius: 12px;
	padding: 28px 20px;
	text-align: center;
	color: #94a3b8; font-size: 13px;
	margin-bottom: 4px;
}
.visit-photo-area svg { display: block; margin: 0 auto 8px; color: #cbd5e1; }
.visit-row {
	display: flex; align-items: center;
	gap: 12px; padding: 14px 0;
	border-bottom: 1px solid #f1f5f9;
	font-size: 14px;
}
.visit-row .visit-label { width: 70px; flex-shrink: 0; color: #64748b; font-weight: 500; }
.visit-row .visit-value { flex: 1; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.status-not-visited { background: #f1f5f9; color: #64748b; }
.visit-memo-section { padding: 14px 0 4px; }
.visit-memo-section .visit-label {
	display: block; margin-bottom: 8px;
	color: #64748b; font-weight: 500; font-size: 14px;
}
.memo-textarea {
	width: 100%; min-height: 90px;
	padding: 10px 12px;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	font-family: inherit; font-size: 14px; line-height: 1.5;
	color: #0f172a; background: #f8fafc;
	resize: vertical; outline: none;
}
.memo-textarea:focus { border-color: #1d4ed8; background: #fff; }
.memo-textarea::placeholder { color: #cbd5e1; }
.sheet-actions { padding: 12px 16px 4px; display: flex; gap: 10px; }
.btn {
	flex: 1; min-width: 0; height: 50px;
	border: 0; border-radius: 12px; cursor: pointer;
	font-size: 14px; font-weight: 600;
	display: flex; align-items: center; justify-content: center; gap: 4px;
	transition: transform .1s, opacity .1s;
	white-space: nowrap;
}
.btn:active { transform: scale(0.98); opacity: 0.9; }
.btn-primary { background: #1d4ed8; color: #fff; }
.btn-secondary { background: #f1f5f9; color: #334155; }

/* ========= Panorama Modal ========= */
.pano-modal {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: #000;
	z-index: 60;
	transform: translateY(100%);
	transition: transform .3s cubic-bezier(.32,.72,0,1);
	display: flex; flex-direction: column;
	pointer-events: none;
}
.pano-modal.show { transform: translateY(0); pointer-events: auto; }
.pano-header {
	flex: 0 0 auto;
	height: 56px;
	padding: 0 12px;
	padding-top: env(safe-area-inset-top);
	background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,0) 100%);
	color: #fff;
	display: flex; align-items: center; gap: 12px;
	position: absolute; top: 0; left: 0; right: 0; z-index: 1;
}
.pano-close {
	background: rgba(0,0,0,.45); border: 0;
	color: #fff; cursor: pointer;
	width: 40px; height: 40px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
}
.pano-close:active { background: rgba(0,0,0,.7); }
.pano-header h3 {
	margin: 0; font-size: 16px; font-weight: 600; flex: 1;
	text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.pano-external {
	background: rgba(0,0,0,.5); border: 0; color: #fff;
	cursor: pointer; padding: 0 12px; height: 36px;
	border-radius: 18px; font-size: 12px; font-weight: 500;
	display: inline-flex; align-items: center; gap: 4px;
	white-space: nowrap; flex-shrink: 0;
}
.pano-external:active { background: rgba(0,0,0,.75); }
.pano-canvas { flex: 1; width: 100%; background: #111; }
.pano-empty {
	position: absolute; inset: 0;
	display: none;
	align-items: center; justify-content: center;
	color: #94a3b8; font-size: 14px;
	pointer-events: none;
}
.pano-empty.show { display: flex; }

/* ========= 영업점수 마커 ========= */
.marker-pin {
	width: 22px; height: 22px;
	border-radius: 50%;
	border: 2px solid #fff;
	box-shadow: 0 2px 4px rgba(0,0,0,.35);
	box-sizing: border-box;
}
.marker-pin.red    { background: #dc2626; }
.marker-pin.orange { background: #f97316; }
.marker-pin.yellow { background: #facc15; }

/* 영업점수 뱃지 (시트) */
.score-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.score-badge.red    { background: #fee2e2; color: #b91c1c; }
.score-badge.orange { background: #ffedd5; color: #c2410c; }
.score-badge.yellow { background: #fef3c7; color: #a16207; }
.score-badge.gray   { background: #f1f5f9; color: #64748b; }

/* ========= 내 위치 마커 (펄스) ========= */
.user-dot { width: 22px; height: 22px; position: relative; pointer-events: none; }
.user-dot::before {
	content: ''; position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	border-radius: 50%;
	background: #1d4ed8;
	border: 3px solid #fff;
	box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.user-dot::after {
	content: ''; position: absolute;
	top: -10px; left: -10px; right: -10px; bottom: -10px;
	border-radius: 50%;
	background: rgba(29, 78, 216, 0.25);
	animation: user-pulse 2s ease-out infinite;
}
@keyframes user-pulse {
	0%   { transform: scale(0.4); opacity: 0.9; }
	100% { transform: scale(1.6); opacity: 0; }
}

/* ========= App Picker Action Sheet ========= */
.app-picker {
	position: fixed; left: 0; right: 0; bottom: 0;
	z-index: 45;
	transform: translateY(110%);
	transition: transform .26s cubic-bezier(.32,.72,0,1);
	padding: 0 12px calc(12px + env(safe-area-inset-bottom));
	pointer-events: none;
}
.app-picker.show { transform: translateY(0); pointer-events: auto; }
.app-card {
	background: #fff; border-radius: 14px; overflow: hidden;
	margin-bottom: 8px;
	box-shadow: 0 -6px 24px rgba(15,23,42,.18);
}
.app-title {
	padding: 14px 16px 12px;
	text-align: center;
	color: #94a3b8; font-size: 12px;
	border-bottom: 1px solid #f1f5f9;
}
.app-item {
	display: flex; align-items: center;
	padding: 16px 18px;
	border: 0; background: #fff;
	width: 100%; text-align: left;
	font-size: 15px; font-weight: 500; color: #0f172a;
	cursor: pointer;
	border-bottom: 1px solid #f1f5f9;
}
.app-item:last-child { border-bottom: 0; }
.app-item:active { background: #f8fafc; }
.app-icon {
	width: 32px; height: 32px;
	border-radius: 9px;
	margin-right: 14px;
	display: flex; align-items: center; justify-content: center;
	font-weight: 800; font-size: 14px;
	letter-spacing: -0.5px; flex-shrink: 0;
}
.app-cancel {
	background: #fff; border-radius: 14px;
	padding: 16px; text-align: center;
	font-size: 16px; font-weight: 600;
	color: #ef4444;
	border: 0; width: 100%;
	cursor: pointer;
	box-shadow: 0 -6px 24px rgba(15,23,42,.12);
}
.app-cancel:active { background: #f1f5f9; }
@media (min-width: 640px) {
	.app-picker { left: 50%; transform: translate(-50%, 110%); width: 460px; right: auto; }
	.app-picker.show { transform: translate(-50%, 0); }
}

/* ========= Visit In Progress ========= */
.visit-progress {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 90;
	background: #fff;
	border-top-left-radius: 22px; border-top-right-radius: 22px;
	box-shadow: 0 -8px 32px rgba(15,23,42,.22);
	padding: 22px 22px calc(22px + env(safe-area-inset-bottom));
	transform: translateY(110%);
	transition: transform .3s cubic-bezier(.32,.72,0,1);
	pointer-events: none;
}
.visit-progress.show { transform: translateY(0); pointer-events: auto; }
@media (min-width: 640px) {
	.visit-progress {
		left: 50%; right: auto; width: 460px;
		transform: translate(-50%, 110%);
		border-radius: 22px; bottom: 20px;
	}
	.visit-progress.show { transform: translate(-50%, 0); }
}
.vp-live { display: flex; align-items: center; justify-content: center; gap: 6px; margin-bottom: 6px; }
.vp-live-dot {
	width: 8px; height: 8px;
	background: #22c55e; border-radius: 50%;
	animation: vp-pulse 1.5s ease-in-out infinite;
}
.vp-live-text { font-size: 12px; font-weight: 700; color: #22c55e; letter-spacing: 0.5px; }
@keyframes vp-pulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.55; transform: scale(1.3); }
}
.vp-title { margin: 0 0 4px; text-align: center; font-size: 22px; font-weight: 700; color: #0f172a; }
.vp-subtitle { margin: 0 0 18px; text-align: center; font-size: 13px; color: #64748b; }
.vp-card {
	display: flex; align-items: center;
	gap: 12px; padding: 14px;
	background: #f8fafc; border-radius: 14px;
	margin-bottom: 6px;
}
.vp-thumb { width: 44px; height: 44px; background: #fce7f3; border-radius: 50%; flex-shrink: 0; }
.vp-info { flex: 1; min-width: 0; }
.vp-name { font-size: 15px; font-weight: 700; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-addr { font-size: 12px; color: #64748b; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vp-score {
	flex-shrink: 0;
	padding: 6px 12px;
	font-size: 15px; font-weight: 800;
	border-radius: 8px;
	min-width: 42px; text-align: center;
	color: #fff;
}
.vp-score.red    { background: #dc2626; }
.vp-score.orange { background: #f97316; }
.vp-score.yellow { background: #facc15; color: #422006; }
.vp-score.gray   { background: #f1f5f9; color: #64748b; }
.vp-time { display: flex; align-items: center; gap: 8px; padding: 10px 6px; font-size: 14px; color: #475569; }
.vp-time svg { color: #94a3b8; flex-shrink: 0; }
.vp-time-label { flex: 1; }
.vp-time-value { font-weight: 700; color: #0f172a; font-size: 16px; }
.vp-banner {
	display: flex; align-items: center; gap: 8px;
	padding: 10px 12px;
	background: #eff6ff; border-radius: 10px;
	font-size: 12px; color: #1d4ed8;
	margin: 6px 0 16px;
}
.vp-banner svg { flex-shrink: 0; color: #3b82f6; }
.vp-actions { display: flex; gap: 10px; }
.vp-btn {
	flex: 1; height: 52px;
	border: 0; border-radius: 12px;
	font-size: 15px; font-weight: 700;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center; gap: 6px;
	transition: transform .1s, opacity .1s;
}
.vp-btn:active { transform: scale(0.98); opacity: 0.9; }
.vp-btn-cancel { background: #fff; color: #475569; border: 1px solid #e2e8f0; }
.vp-btn-complete { background: #22c55e; color: #fff; }

/* ========= Loading Overlay ========= */
.loading-overlay {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(255,255,255,0.95);
	z-index: 100;
	display: none;
	flex-direction: column;
	align-items: center; justify-content: center; gap: 16px;
}
.loading-overlay.show { display: flex; }
.loading-spinner {
	width: 44px; height: 44px;
	border: 3px solid #e2e8f0;
	border-top-color: #1d4ed8;
	border-radius: 50%;
	animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: #475569; font-size: 14px; font-weight: 500; }

/* ========= Fetching Pill ========= */
.fetching-pill {
	position: fixed;
	top: calc(124px + env(safe-area-inset-top));
	left: 50%;
	z-index: 18;
	background: rgba(15, 23, 42, 0.88); color: #fff;
	padding: 7px 14px 7px 10px;
	border-radius: 999px;
	font-size: 12px; font-weight: 500;
	display: flex; align-items: center; gap: 8px;
	box-shadow: 0 4px 12px rgba(0,0,0,.25);
	opacity: 0;
	transform: translateX(-50%) translateY(-12px);
	transition: opacity .2s ease, transform .2s ease;
	pointer-events: none;
}
.fetching-pill.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.fetching-pill .mini-spinner {
	width: 12px; height: 12px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.8s linear infinite;
	flex-shrink: 0;
}

/* ========= Toast ========= */
.toast {
	position: fixed; left: 50%; bottom: calc(40px + env(safe-area-inset-bottom));
	transform: translateX(-50%) translateY(20px);
	background: rgba(15,23,42,.92); color: #fff;
	padding: 12px 20px; border-radius: 999px;
	font-size: 13px; opacity: 0; pointer-events: none;
	transition: opacity .2s, transform .2s; z-index: 50;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (min-width: 640px) {
	.sheet { left: 50%; right: auto; transform: translate(-50%, 100%); width: 480px; border-radius: 22px 22px 0 0; }
	.sheet.show { transform: translate(-50%, 0); }
}

/* ========= List Page ========= */
.list-page {
	padding: calc(64px + env(safe-area-inset-top)) 0 calc(40px + env(safe-area-inset-bottom));
	max-width: 720px; margin: 0 auto;
}
.list-toolbar {
	position: sticky;
	top: calc(56px + env(safe-area-inset-top));
	z-index: 10;
	background: #f8fafc;
	padding: 12px 14px;
	display: flex; gap: 8px; align-items: center;
}
.list-search {
	flex: 1;
	display: flex; align-items: center; gap: 8px;
	background: #fff; border-radius: 12px;
	padding: 10px 14px;
	box-shadow: 0 2px 6px rgba(15,23,42,.06);
}
.list-search svg { flex: 0 0 18px; color: #64748b; }
.list-search input {
	flex: 1; border: 0; outline: 0; min-width: 0;
	font-size: 14px; background: transparent; color: #0f172a;
}
.list-search input::placeholder { color: #94a3b8; }
.list-filter-btn {
	flex-shrink: 0;
	width: 44px; height: 44px;
	border: 0; border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 6px rgba(15,23,42,.06);
	color: #475569; cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	position: relative;
}
.list-filter-btn:active { background: #f1f5f9; }
.list-filter-btn .dot {
	display: none;
	position: absolute; top: 8px; right: 8px;
	width: 8px; height: 8px;
	background: #1d4ed8;
	border-radius: 50%;
	border: 1.5px solid #fff;
}
.list-filter-btn.has-filter .dot { display: block; }

.list-info {
	padding: 8px 18px 4px;
	font-size: 12px; color: #64748b;
}
.list-info b { color: #1d4ed8; }

.site-list { list-style: none; margin: 0; padding: 0 12px; }
.site-item {
	background: #fff;
	border-radius: 12px;
	margin-bottom: 8px;
	padding: 14px 16px;
	box-shadow: 0 1px 3px rgba(15,23,42,.06);
	cursor: pointer;
	display: flex; align-items: center; gap: 12px;
	transition: transform .1s, box-shadow .15s;
}
.site-item:active { transform: scale(0.99); }
.site-item:hover { box-shadow: 0 3px 10px rgba(15,23,42,.10); }
.site-item .meta { flex: 1; min-width: 0; }
.site-item .name {
	font-size: 15px; font-weight: 700; color: #0f172a;
	margin-bottom: 4px;
	overflow: hidden; text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	line-height: 1.35;
}
.site-item .addr {
	font-size: 12px; color: #64748b;
	overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.site-item .score-badge { flex-shrink: 0; }

.list-empty {
	padding: 60px 24px;
	text-align: center;
	color: #94a3b8;
	font-size: 14px;
}

.pagination {
	display: flex; justify-content: center; gap: 4px;
	padding: 20px 12px;
	flex-wrap: wrap;
}
.pagination button, .pagination span {
	min-width: 36px; height: 36px;
	border: 1px solid #e2e8f0;
	border-radius: 8px;
	background: #fff; color: #334155;
	font-size: 13px; font-weight: 600;
	cursor: pointer;
	display: flex; align-items: center; justify-content: center;
	padding: 0 8px;
}
.pagination button:hover:not(:disabled):not(.active) { background: #f8fafc; }
.pagination button.active {
	background: #1d4ed8; color: #fff; border-color: #1d4ed8;
}
.pagination button:disabled { color: #cbd5e1; cursor: not-allowed; }
.pagination span.ellipsis { border: 0; background: transparent; color: #94a3b8; }

/* ========= Filter Modal ========= */
.filter-backdrop {
	position: fixed; top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(15,23,42,.45);
	opacity: 0; pointer-events: none;
	transition: opacity .2s ease;
	z-index: 75;
}
.filter-backdrop.show { opacity: 1; pointer-events: auto; }
.filter-modal {
	position: fixed; top: 0; right: 0; bottom: 0;
	width: 320px; max-width: 86%;
	background: #fff;
	z-index: 85;
	transform: translateX(105%);
	transition: transform .26s cubic-bezier(.32,.72,0,1);
	box-shadow: -4px 0 16px rgba(0,0,0,.18);
	display: flex; flex-direction: column;
}
.filter-modal.show { transform: translateX(0); }
.filter-head {
	padding: calc(18px + env(safe-area-inset-top)) 20px 14px;
	display: flex; align-items: center; justify-content: space-between;
	border-bottom: 1px solid #f1f5f9;
}
.filter-head h2 { margin: 0; font-size: 17px; font-weight: 700; color: #0f172a; }
.filter-close {
	background: transparent; border: 0;
	color: #475569; cursor: pointer;
	width: 32px; height: 32px;
	display: flex; align-items: center; justify-content: center;
	border-radius: 50%;
}
.filter-close:active { background: #f1f5f9; }
.filter-body {
	flex: 1;
	overflow-y: auto;
	padding: 16px 20px 20px;
}
.filter-field { margin-bottom: 20px; }
.filter-field > label {
	display: inline-block;
	background: #fff;
	padding: 4px 10px;
	border: 1px solid #e2e8f0;
	border-radius: 6px;
	font-size: 13px; font-weight: 600; color: #334155;
	margin-bottom: 10px;
}
.filter-row { display: flex; align-items: center; gap: 8px; }
.filter-input {
	flex: 1; min-width: 0;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	padding: 10px 12px;
	font-size: 13px;
	background: #fff;
	color: #0f172a;
	outline: none;
}
.filter-input:focus { border-color: #1d4ed8; }
.filter-input-suffix { font-size: 12px; color: #64748b; flex-shrink: 0; }
.filter-input.full { width: 100%; }
.filter-tilde { color: #94a3b8; font-size: 14px; flex-shrink: 0; }

/* 듀얼 슬라이더 (영업점수) */
.dual-slider {
	position: relative; height: 32px;
	margin: 6px 4px 0;
}
.dual-slider .track {
	position: absolute; top: 50%; left: 0; right: 0;
	height: 4px;
	background: #e2e8f0; border-radius: 2px;
	transform: translateY(-50%);
}
.dual-slider .fill {
	position: absolute; top: 50%;
	height: 4px;
	background: #1d4ed8; border-radius: 2px;
	transform: translateY(-50%);
}
.dual-slider input[type="range"] {
	position: absolute; top: 0; left: 0; right: 0;
	width: 100%; height: 100%;
	-webkit-appearance: none; appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
}
.dual-slider input[type="range"]::-webkit-slider-thumb {
	-webkit-appearance: none; appearance: none;
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #1d4ed8;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	cursor: pointer;
}
.dual-slider input[type="range"]::-moz-range-thumb {
	pointer-events: auto;
	width: 18px; height: 18px;
	border-radius: 50%;
	background: #1d4ed8;
	border: 2px solid #fff;
	box-shadow: 0 1px 4px rgba(0,0,0,.25);
	cursor: pointer;
}
.slider-labels {
	display: flex; justify-content: space-between;
	font-size: 11px; color: #94a3b8;
	margin-top: 6px; padding: 0 2px;
}
.slider-values {
	display: flex; justify-content: center; gap: 14px;
	font-size: 13px; font-weight: 700; color: #1d4ed8;
	margin-top: 2px;
}

.filter-actions {
	padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
	border-top: 1px solid #f1f5f9;
	display: flex; gap: 10px;
}
.filter-reset {
	flex: 0 0 100px;
	height: 50px;
	background: #f1f5f9;
	color: #475569;
	border: 0; border-radius: 12px;
	font-size: 14px; font-weight: 600;
	cursor: pointer;
}
.filter-reset:active { opacity: .85; }
.filter-apply {
	flex: 1;
	height: 50px;
	background: #1d4ed8;
	color: #fff;
	border: 0; border-radius: 12px;
	font-size: 15px; font-weight: 700;
	cursor: pointer;
}
.filter-apply:active { opacity: .9; }

/* ========= Placeholder Page (Home / Stats / Settings) ========= */
.page-content {
	padding-top: calc(56px + env(safe-area-inset-top));
	min-height: 100vh;
	display: flex; align-items: center; justify-content: center;
}
.empty-state { text-align: center; padding: 40px 24px; max-width: 360px; }
.empty-icon {
	width: 80px; height: 80px;
	border-radius: 24px;
	background: linear-gradient(135deg, #dbeafe 0%, #eff6ff 100%);
	color: #1d4ed8;
	margin: 0 auto 20px;
	display: flex; align-items: center; justify-content: center;
}
.empty-state h2 { margin: 0 0 8px; font-size: 22px; font-weight: 700; color: #0f172a; }
.empty-state p { margin: 0 0 24px; color: #64748b; font-size: 14px; line-height: 1.6; }
.btn-back {
	display: inline-block;
	padding: 12px 24px;
	background: #1d4ed8; color: #fff;
	text-decoration: none;
	border-radius: 10px;
	font-size: 14px; font-weight: 600;
}
.btn-back:active { opacity: .85; }
</content>
</invoke>