:root {
    --primary: #FF7B22; 
    --primary-dark: #E86A18;
    --text-main: #111827;
    --text-sub: #6B7280;
    --bg-color: #F8F9FA;
    --bg-gray: #F3F4F6;
    --border-color: #E5E7EB;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", sans-serif; }
html, body { width: 100%; height: 100%; overflow: hidden; background-color: var(--bg-gray); }

/* ==== SPA View Management ==== */
.view-container { display: none; width: 100%; height: calc(100% - 65px); height: calc(100dvh - 65px); overflow-y: auto; overflow-x: hidden; position: relative; background: #F9FAFB; padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
.view-container.active { display: block; }
body.has-subview .top-header { display: none; } /* Backup selector if needed */
#view-home { overflow: hidden; padding-bottom: 0 !important; }
#view-candidate, #view-pledge { padding-bottom: 20px !important; background: #F3F4F6; }

/* ==== Common Header (Mobile Floating Glassmorphism) ==== */
.top-header { 
    background: rgba(255, 255, 255, 0.9); 
    backdrop-filter: blur(10px); 
    -webkit-backdrop-filter: blur(10px);
    padding: 24px 20px 20px; 
    border-bottom: 1px solid rgba(255, 123, 34, 0.15); 
    z-index: 1000; 
    position: absolute; 
    top: 0; left: 0; right: 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.main-title { font-size: 1.45rem; font-weight: 800; color: var(--text-main); margin-bottom: 6px; letter-spacing: -0.5px; }
.sub-title { font-size: 0.9rem; font-weight: 600; color: var(--primary); letter-spacing: -0.3px; }

/* ==== Home View Elements ==== */
.filter-bar { 
    position: absolute; 
    top: 110px; /* 헤더 텍스트 아래에 여유 공간(Gap) 주기 */
    left: 0; right: 0; 
    z-index: 1000; 
    padding: 0; 
    background: transparent; border: none;
    pointer-events: none; /* 스크롤 영역 외 클릭 통과 */
}
.filter-scroll { display: flex; gap: 8px; overflow-x: auto; padding: 12px 20px; white-space: nowrap; scrollbar-width: none; pointer-events: auto; }
.filter-scroll::-webkit-scrollbar { display: none; }
.filter-btn { padding: 8px 16px; border-radius: 20px; border: none; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); font-weight: 700; font-size: 0.85rem; color: var(--text-sub); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.2s; }
.filter-btn.active { background: var(--text-main); color: white; box-shadow: 0 4px 12px rgba(0,0,0,0.2); }
.filter-tag { padding: 8px 14px; border-radius: 12px; border: none; background: rgba(255,255,255,0.9); backdrop-filter: blur(8px); font-weight: 700; font-size: 0.85rem; color: var(--text-main); cursor: pointer; box-shadow: 0 4px 12px rgba(0,0,0,0.08); transition: 0.2s; }
.filter-tag.active { background: var(--primary); color: white; box-shadow: 0 4px 12px rgba(255,123,34,0.4); }

.map-wrapper { width: 100%; height: 100%; z-index: 1; touch-action: none; position: relative; }
.fab-btn { position: absolute; bottom: 20px; right: 20px; z-index: 1000; background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: white; border: none; border-radius: 30px; padding: 14px 24px; font-size: 1.05rem; font-weight: 800; display: flex; align-items: center; gap: 8px; box-shadow: 0 8px 20px rgba(255, 123, 34, 0.4); cursor: pointer; transition: transform 0.2s; }
.fab-btn:active { transform: scale(0.95); }

/* ==== Bottom Navigation (Glassmorphism) ==== */
.bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; height: 65px; background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(15px); -webkit-backdrop-filter: blur(15px); border-top: 1px solid rgba(0,0,0,0.05); display: flex; justify-content: space-around; align-items: center; z-index: 5000; padding-bottom: env(safe-area-inset-bottom); }
.nav-btn { flex: 1; background: none; border: none; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #9CA3AF; font-size: 0.7rem; font-weight: 700; cursor: pointer; transition: 0.2s; }
.nav-btn i, .nav-btn span { pointer-events: none; }
.nav-btn i { font-size: 1.35rem; transition: transform 0.2s; }
.nav-btn.active { color: var(--primary); }
.nav-btn.active i { transform: scale(1.1); }

/* ==== Candidate View ==== */
.candy-header { background: #FFF3EB; border-bottom: none; }
.candy-name { color: var(--primary); font-size: 1.6rem; }
.candy-content { padding: 20px; }
.candy-stats { display: flex; gap: 12px; margin-bottom: 24px; }
.stat-box { flex: 1; background: var(--bg-gray); padding: 16px; border-radius: 12px; text-align: center; }
.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.stat-label { font-size: 0.85rem; font-weight: 600; color: var(--text-sub); }
.section-title { font-size: 1.15rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.mini-map { width: 100%; height: 200px; border-radius: 12px; background: #e5e5e5; margin-bottom: 24px; overflow: hidden; position: relative;}
.video-grid { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 20px; }
.video-card { min-width: 160px; }
.video-thumb { height: 90px; border-radius: 8px; background: #333; display: flex; align-items: center; justify-content: center; color: white; margin-bottom: 8px; }
.video-card p { font-size: 0.85rem; font-weight: 600; line-height: 1.3; }

/* ==== Admin View ==== */
.admin-header { display: flex; justify-content: space-between; align-items: center; }
.dropdown-flat { border: none; font-size: 1rem; font-weight: 700; color: var(--primary); background: transparent; outline: none; }
.admin-tabs { display: flex; background: white; border-bottom: 1px solid var(--border-color); }
.admin-tab { flex: 1; padding: 14px 0; background: none; border: none; border-bottom: 3px solid transparent; font-size: 0.95rem; font-weight: 700; color: var(--text-sub); cursor: pointer; }
.admin-tab.active { color: var(--text-main); border-bottom-color: var(--text-main); }
.badge { background: #EF4444; color: white; padding: 2px 6px; border-radius: 10px; font-size: 0.7rem; margin-left: 4px; }
.admin-content { padding: 16px; height: calc(100% - 110px); overflow-y: auto; background: var(--bg-gray); }
.admin-pane { display: none; }
.admin-pane.active { display: block; }
.admin-card { background: white; border-radius: 12px; padding: 16px; margin-bottom: 12px; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.admin-card-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.status-badge { font-size: 0.75rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; }
.status-received { background: #FEE2E2; color: #EF4444; }
.status-checking { background: #FEF3C7; color: #D97706; }
.status-field { background: #E0E7FF; color: #4F46E5; }
.status-solved { background: #D1FAE5; color: #059669; }
.admin-card h4 { font-size: 1.05rem; margin-bottom: 4px; }
.admin-card p { font-size: 0.85rem; color: var(--text-sub); margin-bottom: 12px; line-height: 1.4; }
.admin-actions { display: flex; gap: 8px; border-top: 1px solid var(--border-color); padding-top: 12px; align-items: center; justify-content: space-between;}
.admin-select { padding: 6px; border-radius: 6px; border: 1px solid var(--border-color); font-size: 0.85rem; }
.content-check { font-size: 0.85rem; font-weight: 600; color: #EC4899; display: flex; align-items: center; gap: 4px; }

/* ==== Bottom Sheet Forms ==== */
.sheet-overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.4); backdrop-filter: blur(2px); z-index: 6000; opacity: 0; visibility: hidden; transition: 0.3s; }
.sheet-overlay.active { opacity: 1; visibility: visible; }
.bottom-sheet { position: fixed; bottom: -100%; left: 0; width: 100%; max-height: 65vh; background: white; border-radius: 24px 24px 0 0; z-index: 6001; transition: 0.4s cubic-bezier(0.1, 0.8, 0.2, 1); display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); padding-bottom: env(safe-area-inset-bottom); }
.bottom-sheet.active { bottom: 0; }
.sheet-handle-area { padding: 16px 0 12px; display: flex; justify-content: center; cursor: pointer; }
.sheet-handle { width: 44px; height: 6px; background: #E5E7EB; border-radius: 3px; }
.sheet-content { padding: 0 24px 40px; overflow-y: auto; flex: 1; -webkit-overflow-scrolling: touch; }
.sheet-title { font-size: 1.35rem; margin-bottom: 24px; font-weight: 800; display: flex; align-items: center; gap: 8px;}

/* Form UI */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }

#picker-map { position: relative; touch-action: none; }
#picker-map::after {
    content: '+';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 24px; color: var(--primary); font-weight: bold;
    z-index: 10;
    pointer-events: none;
}

.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 20px; border: 1px solid var(--border-color); font-size: 0.85rem; font-weight: 600; color: var(--text-sub); cursor: pointer; transition: 0.2s; }
.chip.active { background: var(--primary); color: white; border-color: var(--primary); }
.form-input { width: 100%; padding: 12px; border: 1px solid var(--border-color); border-radius: 10px; font-size: 0.95rem; background: #F9FAFB; }
.form-input:focus { outline: none; border-color: var(--primary); background: white; }
.row-flex { display: flex; justify-content: space-between; align-items: center; }
.row-flex label { margin-bottom: 0; }
.btn-primary.full-btn { width: 100%; padding: 16px; background: var(--primary); color: white; font-weight: 800; font-size: 1.1rem; border: none; border-radius: 12px; cursor: pointer; }
.btn-primary:active { opacity: 0.8; }

/* ==== Reference UI Markers ==== */
/* 1. Square Category Markers */
.marker-square { 
    display: flex; align-items: center; justify-content: center; 
    width: 38px; height: 38px;  /* slightly larger to match screenshot */
    border-radius: 10px; border: 2.5px solid white; 
    box-shadow: 0 4px 8px rgba(0,0,0,0.25); 
    color: white; font-size: 1.2rem; cursor: pointer;
    position: relative;
    transform: translate(-50%, -100%); 
}
/* 2. Simple Red Dot */
.marker-dot {
    width: 14px; height: 14px;
    background-color: #EF4444;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
    cursor: pointer;
}
/* 3. Numbered Cluster (Mock) */
.marker-cluster {
    display: flex; align-items: center; justify-content: center;
    border: 2px solid white;
    border-radius: 50%;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    color: white; font-weight: 800; font-size: 1rem;
}
.cluster-md { width: 34px; height: 34px; font-size: 1.1rem; }
.cluster-lg { width: 44px; height: 44px; font-size: 1.3rem; }
.bg-split-rt { background: linear-gradient(135deg, #EF4444 50%, #14B8A6 50%); } /* Red-Teal Split */
/* 4. Politician Detail Card */
.politician-marker {
    display: flex; flex-direction: column; align-items: center;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
    cursor: pointer;
    z-index: 100;
}
/* Profile Picture Block */
.pol-pic-wrapper {
    width: 64px; height: 64px;
    background: #FF7B22; /* Brand Orange */
    border-radius: 12px;
    padding: 3px;
    position: relative;
    z-index: 2;
}
.pol-pic-wrapper img {
    width: 100%; height: 100%;
    border-radius: 9px;
    object-fit: cover;
    background-color: #F3F4F6;
}
/* Green Top Tag */
.pol-tag {
    position: absolute;
    top: -10px; right: -20px;
    background: #10B981; color: white;
    font-size: 0.65rem; font-weight: 800;
    padding: 2px 6px; border-radius: 4px;
    border: 1px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    white-space: nowrap;
}
/* Info Box Below */
.pol-info-box {
    background: white;
    border: 2px solid #FF7B22;
    border-radius: 8px;
    padding: 8px;
    text-align: center;
    margin-top: -8px; /* Overlap slightly with pic */
    min-width: 110px;
    z-index: 1;
}
.pol-name { font-size: 1rem; font-weight: 800; color: #111827; margin-bottom: 2px; }
.pol-desc1 { font-size: 0.65rem; color: #4B5563; }
.pol-desc2 { font-size: 0.65rem; font-weight: 700; color: #FF7B22; }
.pol-desc3 { font-size: 0.65rem; color: #FF7B22; }

/* Colors */
.bg-teal { background-color: #14B8A6; } 
.bg-orange { background-color: #F97316; } 
.bg-danger { background-color: #EF4444; } 
.bg-blue { background-color: #3B82F6; }
.bg-yellow { background-color: #EAB308; }
.bg-gray-icon { background-color: #6B7280; }
.bg-purple { background-color: #8B5CF6; }
.detail-type { font-size: 0.8rem; font-weight: 800; color: var(--primary); margin-bottom: 4px; }
.detail-addr { font-size: 0.9rem; color: var(--text-sub); margin-bottom: 16px; }
.detail-desc { font-size: 1.05rem; line-height: 1.5; background: var(--bg-gray); padding: 16px; border-radius: 12px; margin-bottom: 20px; }
.detail-status-box { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--border-color); border-radius: 12px; margin-bottom: 24px;}
.detail-candy-img { width: 40px; height: 40px; border-radius: 50%; background: #ccc; overflow: hidden; }
.detail-candy-img img { width: 100%; height: 100%; object-fit: cover; }

/* ==== Desktop Responsive Layout ==== */
.app-layout {
    display: flex;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

/* Far Left Slim Navigation */
.desktop-side-nav {
    display: none; /* hidden on mobile */
    width: 72px;
    background: white;
    border-right: 1px solid var(--border-color);
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    z-index: 2000;
}
.nav-brand {
    width: 44px; height: 44px; border-radius: 12px; background: var(--primary);
    color: white; display: flex; justify-content: center; align-items: center;
    font-size: 1.5rem; margin-bottom: 30px;
}
.side-item {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    color: var(--text-sub); font-size: 0.7rem; font-weight: 700; margin-bottom: 24px; gap: 6px;
    width: 100%; padding: 8px 0;
}
.side-item i { font-size: 1.2rem; }
.side-item.active { color: var(--primary); border-left: 3px solid var(--primary); }

/* Sidebar */
.desktop-sidebar {
    display: none; /* hidden on mobile */
    width: 320px;
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.05);
    z-index: 1000;
    flex-direction: column;
    overflow-y: auto;
}
.sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); }
.sidebar-header h2 { font-size: 1.4rem; font-weight: 800; color: var(--text-main); margin-bottom: 4px; }
.sidebar-header p { font-size: 0.85rem; color: var(--text-sub); }
.sidebar-search { padding: 16px 20px; border-bottom: 1px solid var(--border-color); position: relative; }
.sidebar-search input { width: 100%; padding: 10px 10px 10px 36px; border: 1px solid var(--border-color); border-radius: 8px; font-size: 0.9rem; background: #F9FAFB; }
.sidebar-search i { position: absolute; left: 32px; top: 50%; transform: translateY(-50%); color: #9CA3AF; }
.sidebar-section { padding: 20px; border-bottom: 1px solid var(--border-color); }
.section-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.section-title h3 { font-size: 1rem; font-weight: 800; color: var(--text-main); }
.section-title a { font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 600; }
.sidebar-list { display: flex; flex-direction: column; gap: 16px; }

/* Main Content Wrapper */
.main-content {
    flex-grow: 1;
    position: relative;
    height: 100%;
}

/* Floating Top Controls (Map Overlay) */
.floating-top-controls {
    display: none; /* hidden on mobile */
    position: absolute; top: 20px; left: 20px; right: 20px; z-index: 1000;
    align-items: center; gap: 10px; pointer-events: none;
}
.top-ctrl-btn {
    pointer-events: auto; background: white; border: 1px solid var(--border-color);
    padding: 10px 16px; border-radius: 20px; font-size: 0.9rem; font-weight: 700;
    color: var(--text-main); display: flex; align-items: center; gap: 6px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); cursor: pointer;
}
.top-ctrl-btn.active-theme { background: var(--primary); color: white; border-color: var(--primary); }

/* Responsive Media Query for Desktop */
@media (min-width: 769px) {
    .desktop-side-nav { display: flex; }
    .desktop-sidebar { display: flex; }
    .floating-top-controls { display: flex; }
    
    .bottom-nav { display: none !important; } /* Hide bottom nav on desktop */
    .top-header { display: none !important; } /* Hide mobile top header */
    .filter-bar { display: none !important; } /* Hide mobile filter scroll */
    
    .view-container { height: 100% !important; top: 0; border-radius: 0; }
    .map-wrapper { height: 100% !important; } /* Map takes full height on desktop */
}

/* Reference Bubble Marker for Pledges */
.marker-bubble {
    background: #14B8A6; color: white;
    padding: 6px 12px; border-radius: 20px;
    font-size: 0.8rem; font-weight: 800;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    position: relative; white-space: nowrap;
    border: 2px solid white; cursor: pointer;
    transform: translate(-50%, -100%);
    display: flex; align-items: center; gap: 6px;
}
.marker-bubble::after {
    content: ''; position: absolute; bottom: -6px; left: 50%; transform: translateX(-50%);
    border-width: 6px 6px 0; border-style: solid; border-color: #14B8A6 transparent transparent transparent;
}
.marker-bubble i { font-size: 0.9rem; }

/* ==== Toast Animation ==== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ==== Recent Reports Slider ==== */
.recent-reports-container {
    position: absolute; bottom: 80px; left: 0; right: 0;
    z-index: 900; pointer-events: none;
}
.recent-slider {
    display: flex; gap: 10px; padding: 0 16px;
    overflow-x: auto; scrollbar-width: none;
    pointer-events: auto;
}
.recent-slider::-webkit-scrollbar { display: none; }
.recent-card {
    min-width: 200px; background: white; border-radius: 12px;
    padding: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    border: 1px solid var(--border-color); cursor: pointer; flex-shrink: 0;
    display: flex; align-items: center; gap: 10px;
}
.recent-card .rc-emoji { font-size: 1.4rem; flex-shrink: 0; }
.recent-card .rc-text { font-size: 0.82rem; font-weight: 700; color: var(--text-main); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.3; }
.recent-card .rc-addr { font-size: 0.72rem; color: #9CA3AF; margin-top: 2px; }

/* ==== Pledge Page ==== */
/* 후보별 색상 */
:root {
    --cand-이진현: #6366F1;
    --cand-김주연: #EC4899;
    --cand-최제일: #F59E0B;
}

/* 공약 지도 컨테이너 */
#pledge-map {
    width: 100%; height: 260px;
    background: #e5e5e5;
    position: relative;
    touch-action: none;
}

/* 원형 공약 핀 */
.pledge-pin {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    color: white; font-size: 1.15rem;
    cursor: pointer;
    transform: translate(-50%, -50%);
    transition: transform 0.15s;
}
.pledge-pin:hover { transform: translate(-50%, -50%) scale(1.15); }
.pledge-pin::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 50%; transform: translateX(-50%);
    border-width: 8px 6px 0;
    border-style: solid;
    border-color: inherit transparent transparent transparent;
}

/* 공약 카드 */
.pledge-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.07);
    border: 1.5px solid var(--border-color);
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    display: flex; gap: 14px; align-items: flex-start;
}
.pledge-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.11);
}
.pledge-card-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: white; flex-shrink: 0;
}
.pledge-card-body { flex: 1; min-width: 0; }
.pledge-card-title {
    font-size: 0.97rem; font-weight: 800;
    color: var(--text-main); margin-bottom: 5px;
    line-height: 1.4;
}
.pledge-card-meta {
    display: flex; align-items: center; gap: 6px;
    flex-wrap: wrap; margin-bottom: 6px;
}
.pledge-cat-chip {
    font-size: 0.68rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    color: white;
}
.pledge-cand-chip {
    font-size: 0.68rem; font-weight: 700;
    padding: 2px 8px; border-radius: 20px;
    background: #F3F4F6; color: var(--text-sub);
}
.pledge-card-addr {
    font-size: 0.78rem; color: #9CA3AF;
    display: flex; align-items: center; gap: 4px;
}

/* 공약 탭 필터 */
.pledge-cand-tab {
    padding: 8px 14px; border-radius: 20px; border: none;
    font-weight: 700; font-size: 0.85rem; color: var(--text-sub);
    cursor: pointer; transition: 0.2s; background: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}
.pledge-cand-tab.active {
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}
.pledge-cat-filter {
    padding: 7px 13px; border-radius: 20px; border: 1.5px solid var(--border-color);
    font-weight: 700; font-size: 0.82rem; color: var(--text-sub);
    cursor: pointer; transition: 0.2s; background: white; white-space: nowrap;
}
.pledge-cat-filter.active {
    background: #6366F1; border-color: #6366F1; color: white;
}

/* 공약 피커 맵 */
#pledge-picker-map { position: relative; touch-action: none; }
#pledge-picker-map::after {
    content: '📌';
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -60%);
    font-size: 28px; z-index: 10; pointer-events: none;
}

/* 공약 바텀시트 */
#pledgeSheet .sheet-title { color: #6366F1; }
.pledge-detail-icon {
    width: 60px; height: 60px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 16px;
}
/* ==== Candidate Intro View Responsive Header ==== */
.candy-header {
    background: linear-gradient(135deg, #FF7B22, #FF4500);
    padding: 24px 20px 40px; position: relative; overflow: hidden;
}
.candy-header-inner {
    position: relative; z-index: 10; display: flex; flex-direction: column; gap: 16px;
}
.candy-profile-row {
    display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.candy-profile-main {
    display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.candy-profile-img {
    width: 82px; height: 82px; border-radius: 50%; object-fit: cover; 
    border: 3px solid rgba(255,255,255,0.95); box-shadow: 0 6px 16px rgba(0,0,0,0.2); 
    flex-shrink: 0; cursor: pointer;
}
.candy-profile-name {
    font-size: 1.8rem; font-weight: 900; color: white; letter-spacing: -0.5px; line-height: 1.1;
}
.candy-profile-role {
    font-size: 0.82rem; color: rgba(255,255,255,0.8); margin-top: 4px; font-weight: 500;
}
.candy-switcher {
    display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto;
}
.candy-switcher-list {
    display: flex; gap: 10px;
}
.candy-switcher-item {
    cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.candy-switcher-img {
    width: 42px; height: 42px; border-radius: 50%; object-fit: cover; 
    border: 2px solid rgba(255,255,255,0.4); box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* ==== Candidate Bottom Content Responsive ==== */
.candy-stats-row {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 16px; margin-top: -16px;
}
.candy-stat-item {
    background: white; border-radius: 14px; padding: 14px 10px; text-align: center; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.candy-stat-val { font-size: 1.6rem; font-weight: 900; margin-bottom: 2px; }
.candy-stat-lbl { font-size: 0.78rem; color: #9CA3AF; font-weight: 700; }

.candy-section { padding: 0 20px 16px; width: 100%; box-sizing: border-box; overflow-x: hidden; }
.candy-sec-title { font-weight: 800; font-size: 0.95rem; color: #111827; margin-bottom: 12px; }

.candy-tag-list { display: flex; gap: 8px; flex-wrap: wrap; }
.candy-tag-box { 
    border-radius: 10px; padding: 8px 14px; display: flex; align-items: center; gap: 6px; 
    font-size: 0.9rem;
}

.candy-card {
    background: white; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; 
    box-shadow: 0 2px 8px rgba(0,0,0,0.06); display: flex; align-items: flex-start; gap: 12px;
}
.candy-card-icon {
    width: 36px; height: 36px; border-radius: 10px; display: flex; 
    align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.candy-card-body { flex: 1; min-width: 0; }
.candy-card-title { font-weight: 700; font-size: 0.9rem; color: #111827; }
.candy-card-sub { font-size: 0.78rem; color: #9CA3AF; margin-top: 3px; }

/* Standard Mobile devices (iPhone SE, etc - max-width: 400px) refinement */
@media (max-width: 400px) {
    .candy-header { padding: 16px 14px 24px; min-height: 120px; box-sizing: border-box; }
    .candy-profile-row { flex-direction: column; align-items: flex-start; gap: 12px; width: 100%; box-sizing: border-box; }
    .candy-profile-main { width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); padding-bottom: 12px; }
    .candy-profile-img { width: 62px; height: 62px; }
    .candy-profile-name { font-size: 1.45rem; }
    .candy-profile-role { font-size: 0.74rem; }
    
    .candy-switcher { 
        width: 100%; 
        margin-left: 0; 
        align-items: flex-start; 
        background: rgba(0,0,0,0.1); 
        padding: 8px 10px; 
        border-radius: 12px;
        box-sizing: border-box;
    }
    .candy-switcher-list { width: 100%; justify-content: flex-start; gap: 8px; overflow-x: auto; padding-right: 4px; }
    .candy-switcher-item { flex-direction: row; gap: 4px; background: rgba(255,255,255,0.1); padding: 3px 6px; border-radius: 16px; flex-shrink: 0; }
    .candy-switcher-img { width: 28px; height: 28px; }
    .candy-switcher-item span { font-size: 0.65rem !important; }

    /* Career List Refinement */
    .career-item { font-size: 0.88rem; gap: 8px; margin-bottom: 10px; }
    .sns-btn { width: 44px; height: 44px; font-size: 1.2rem; border-radius: 12px; }
    
    /* Bottom content tweaks (320px Precision) */
    .candy-stats-row { padding: 12px 10px; gap: 6px; width: 100%; box-sizing: border-box; }
    .candy-stat-item { padding: 10px 4px; }
    .candy-stat-val { font-size: 1.25rem; }
    .candy-section { padding: 0 12px 12px; }
    .candy-card { padding: 10px; gap: 8px; }
}

/* Global Horizontal Scroll Prevention for small screens */
@media (max-width: 400px) {
    .view-container { overflow-x: hidden !important; }
}

/* ==== My Location Buttons ==== */
.my-loc-btn {
    position: absolute;
    bottom: 90px;
    right: 20px;
    z-index: 1000;
    width: 48px;
    height: 48px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-main);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: 0.2s;
}
.my-loc-btn:active { transform: scale(0.9); }
.my-loc-btn i { color: #3B82F6; }

.picker-loc-btn {
    position: absolute;
    bottom: 15px;
    right: 15px;
    z-index: 1005;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    color: #3B82F6;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
}
.picker-loc-btn:active { transform: scale(0.9); }

/* Removed pulse-picker animation to fix severe mobile zoom/pan FPS drops */
#picker-map::after {
    /* animation removed for performance */
}

/* Candidate Profile Redesign Styles */
.career-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: 0.95rem; line-height: 1.5; color: var(--text-main); }
.career-item i { color: #FF7B22; margin-top: 4px; font-size: 0.9rem; }

.sns-btn-group { display: flex; gap: 12px; margin-top: 10px; }
.sns-btn { width: 50px; height: 50px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: white; transition: 0.2s; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.sns-btn.insta { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.sns-btn.facebook { background: #1877F2; }
.sns-btn.blog { background: #2DB400; }
.sns-btn.youtube { background: #FF0000; }
.sns-btn:hover { transform: translateY(-3px); box-shadow: 0 6px 15px rgba(0,0,0,0.15); }

.candy-switcher-list-horizontal { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 10px; scrollbar-width: none; }
.candy-switcher-list-horizontal::-webkit-scrollbar { display: none; }
.candy-switcher-card { flex: 0 0 100px; background: #F9FAFB; border-radius: 16px; padding: 12px; text-align: center; border: 1px solid #F3F4F6; transition: 0.2s; cursor: pointer; }
.candy-switcher-card:hover { border-color: #FF7B22; background: #FFF7F2; }
.candy-switcher-card-img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; margin-bottom: 8px; border: 2px solid white; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.candy-switcher-card-name { font-size: 0.85rem; font-weight: 800; color: var(--text-main); }

/* Added wrapper class for candidate cards to separate from background */
.candy-box {
    background: white; border-radius: 16px; padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04); border: 1px solid var(--border-color);
}

/* ==== PLEDGE TAB CSS ==== */
.hide-scroll { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scroll::-webkit-scrollbar { display: none; }

.pledge-cand-tab { padding: 8px 16px; border-radius: 20px; font-weight: 700; font-size: 0.9rem; background: #E5E7EB; color: var(--text-sub); border: none; white-space: nowrap; cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s !important; }
.pledge-cand-tab.active { background: #FF7B22 !important; color: white !important; box-shadow: 0 4px 10px rgba(255,123,34,0.3); }

.pledge-cat-filter { padding: 6px 14px; border-radius: 16px; font-size: 0.85rem; font-weight: 600; background: white; border: 1px solid var(--border-color); color: var(--text-sub); white-space: nowrap; cursor: pointer; transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s !important; }
.pledge-cat-filter.active { border-color: #FF7B22 !important; color: #FF7B22 !important; background: #FFF3EB !important; font-weight: 800; }

.pledge-card { display: flex; gap: 14px; background: white; border-radius: 18px; padding: 18px; margin-bottom: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.04); border: 1px solid var(--border-color); text-align: left; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.pledge-card-icon { width: 44px; height: 44px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: white; flex-shrink: 0; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.pledge-card-body { flex-grow: 1; min-width: 0; }
.pledge-card-meta { display: flex; gap: 6px; margin-bottom: 8px; flex-wrap: wrap; }
.pledge-card-title { font-size: 1.05rem; font-weight: 800; color: var(--text-main); margin-bottom: 8px; line-height: 1.4; word-break: keep-all; overflow-wrap: break-word; }
.pledge-card-addr { font-size: 0.85rem; color: var(--text-sub); display: flex; align-items: center; gap: 4px; }
.pledge-cat-chip, .pledge-cand-chip { padding: 4px 10px; border-radius: 12px; font-size: 0.75rem; font-weight: 800; }

/* ========================================================
   ==== GLOBAL UX / UI POLISHING & ANIMATIONS ====
   ======================================================== */

/* Softer Typography & Letter-spacing */
body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    letter-spacing: -0.2px;
}
h1, h2, h3, .main-title, .sheet-title {
    letter-spacing: -0.5px;
    line-height: 1.35;
}

/* Polished Shadows & Cards */
.admin-card, .candy-card, .issue-feed-card, .solved-feed-card, .pledge-card, .candy-box {
    border: none !important;
    background: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.04), 0 1px 3px rgba(0,0,0,0.02) !important;
    border-radius: 18px !important;
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.25s !important;
}
.candy-card:active, .issue-feed-card:active, .solved-feed-card:active, .pledge-card:active {
    transform: scale(0.97) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}

/* Bottom Sheet Handles and Header */
.bottom-sheet {
    border-radius: 36px 36px 0 0 !important;
    box-shadow: 0 -8px 40px rgba(0,0,0,0.12) !important;
}
.sheet-handle {
    width: 48px !important;
    height: 5px !important;
    border-radius: 3px !important;
    background: #E5E7EB !important;
}

/* Bottom Nav Indicator & Glassmorphism */
.bottom-nav {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border-top: none !important;
    box-shadow: 0 -4px 30px rgba(0,0,0,0.05) !important;
}
.nav-btn {
    position: relative;
    padding-top: 8px !important;
}
.nav-btn.active::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 32px;
    height: 32px;
    background: rgba(255, 123, 34, 0.1);
    border-radius: 50%;
    z-index: -1;
}

/* Input Fields Refinement */
.form-input {
    border: 1.5px solid var(--border-color) !important;
    border-radius: 14px !important;
    padding: 14px 16px !important;
    transition: all 0.2s !important;
    background: #F9FAFB !important;
}
.form-input:focus {
    border-color: var(--primary) !important;
    background: white !important;
    box-shadow: 0 0 0 4px rgba(255,123,34,0.12) !important;
}

/* Chips and Filters Bounciness */
.chip, .filter-tag, .pledge-cand-tab, .pledge-cat-filter {
    transition: transform 0.2s, background 0.2s, color 0.2s, box-shadow 0.2s !important;
}
.chip:active, .filter-tag:active, .pledge-cand-tab:active, .pledge-cat-filter:active {
    transform: scale(0.92) !important;
}

/* Floating Action Button Pulse & Scale */
.fab-btn {
    padding: 16px 28px !important;
    border-radius: 32px !important;
    box-shadow: 0 10px 25px rgba(255, 123, 34, 0.35) !important;
    transition: transform 0.15s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.15s !important;
}
.fab-btn:active {
    transform: scale(0.94) !important;
    box-shadow: 0 4px 12px rgba(255, 123, 34, 0.3) !important;
}

/* Buttons */
.btn-primary {
    transition: transform 0.15s, box-shadow 0.15s !important;
    box-shadow: 0 6px 16px rgba(255,123,34,0.2) !important;
}
.btn-primary:active {
    transform: scale(0.96) !important;
    box-shadow: 0 2px 8px rgba(255,123,34,0.2) !important;
}

/* Segmented Tabs (Issue/Pledge) */
#issue-tab-report:active, #issue-tab-solved:active {
    opacity: 0.8;
}

/* Badge tags smoother look */
.pledge-cat-chip, .pledge-cand-chip {
    font-weight: 800 !important;
}
.status-badge {
    font-weight: 800 !important;
    padding: 4px 10px !important;
}
