/* ========================================
   서브페이지 공통 스타일
   ======================================== */

/* ========================================
   서브 네비게이션 (공공데이터 등)
   ======================================== */
.sub-nav {
    background: var(--dashboard-header-bg, #1E293B);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-nav-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1860px;
    margin: 0 auto;
    padding: 0 30px;
}

.sub-nav-links {
    display: flex;
    align-items: center;
    gap: 0;
}

.sub-nav-link {
    display: inline-block;
    padding: 16px 24px;
    font-size: 18px;
    font-weight: 400;
    color: #94A3B8;
    text-decoration: none;
    transition: color 0.2s;
}

.sub-nav-link:hover {
    color: #F97316;
}

.sub-nav-link.active {
    color: #F97316;
    font-weight: 500;
}

/* 헤더 메뉴 호버 시 — 별도 floating 요소 (.sub-nav-hover) 가 원본 위에 오버레이 */
.sub-nav.sub-nav-hover {
    position: fixed;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--dashboard-header-bg, #1E293B);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   공공데이터 목록
   ======================================== */
.opendata-body {
    overflow: visible;
    font-weight: 400;
}

.opendata-content {
    overflow: visible;
    width: 100%;
}

/* 탭 + 검색 툴바 */
.opendata-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    gap: 16px;
}

/* 필터 탭 */
.opendata-tabs {
    display: flex;
    gap: 0;
}

.opendata-tab {
    padding: 10px 24px;
    font-size: 17px;
    font-weight: 500;
    color: #64748B;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.opendata-tab:hover {
    color: #1E293B;
}

.opendata-tab.active {
    color: #00B541;
    border-bottom-color: #00B541;
    font-weight: 600;
}

/* 분야별 시정지표 레이아웃 */
.indicator-layout {
    display: flex;
    gap: 16px;
}

/* 좌측 사이드바 */
.indicator-sidebar {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 90px;
    width: 90px;
    align-self: stretch;
    background: #FFFFFF;
    border-radius: 12px;
    padding: 8px;
}

.indicator-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 8px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    font-size: 17px;
    font-weight: 400;
    color: #94A3B8;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}

.indicator-tab .material-symbols-outlined {
    font-size: 26px;
}

.indicator-tab:hover {
    background: #F1F5F9;
    color: #475569;
}

.indicator-tab.active {
    background: #F97316;
    color: #FFFFFF;
}

/* 우측 콘텐츠 영역 */
.indicator-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}


/* 검색바 */
.indicator-search-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    max-width: 50%;
}

.indicator-search-input {
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    outline: none;
    width: 320px;
    color: #1E293B;
    background: #FFFFFF;
}

.indicator-search-input::placeholder {
    color: #94A3B8;
}

.indicator-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: #F97316;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.indicator-search-btn:hover {
    background: #EA580C;
}

.indicator-search-btn .material-symbols-outlined {
    font-size: 20px;
}

/* 카드 그리드 */
.indicator-card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    height: 830px;
    align-content: flex-start;
    overflow: hidden;
}

.indicator-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    cursor: pointer;
}

.indicator-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* 카드 상단 - 배지 + 엑셀 */
.indicator-card-top {
    padding: 14px 16px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.indicator-card-excel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: #F1F5F9;
    cursor: pointer;
    transition: background 0.2s;
}

.indicator-card-excel:hover {
    background: #E2E8F0;
}

.indicator-card-excel img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* 카드 차트 영역 (플레이스홀더) */
.indicator-card-chart {
    height: 220px;
    margin: 12px 16px;
    background: #F1F5F9;
    border-radius: 8px;
}

/* 카드 하단 - 제목, 메타 */
.indicator-card-bottom {
    padding: 0 16px 16px;
}

.indicator-category-badge {
    font-size: 11px;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-block;
}

.badge-population { background: #DBEAFE; color: #2563EB; }
.badge-economy { background: #FEF3C7; color: #D97706; }
.badge-welfare { background: #FCE7F3; color: #DB2777; }
.badge-environment { background: #D1FAE5; color: #059669; }
.badge-education { background: #EDE9FE; color: #7C3AED; }
.badge-traffic { background: #FFE4E6; color: #E11D48; }
.badge-administration { background: #E0E7FF; color: #4338CA; }

.indicator-card-title {
    font-size: 15px;
    font-weight: 600;
    color: #0F172A;
    margin: 0 0 8px;
}

.indicator-card-meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: #94A3B8;
}

.indicator-card-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.indicator-card-meta .material-symbols-outlined {
    font-size: 16px;
}

/* 반응형 - 시정지표 */
@media (max-width: 1400px) {
    .indicator-card-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .indicator-layout {
        flex-direction: column;
    }

    .indicator-sidebar {
        flex-direction: row;
        width: 100%;
        min-width: unset;
        overflow-x: auto;
    }

    .indicator-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .indicator-search-bar {
        max-width: 100%;
    }

    .indicator-search-input {
        flex: 1;
        width: auto;
    }

    .indicator-card-grid {
        height: auto;
    }
}

@media (max-width: 768px) {
    .indicator-card-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .indicator-card-chart {
        height: 160px;
    }
}

@media (max-width: 480px) {
    .indicator-card-grid {
        grid-template-columns: 1fr;
    }
}

/* 페이지네이션 */
.indicator-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 24px;
    padding: 8px 0;
}

.indicator-pagination button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #64748B;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.indicator-pagination button:hover {
    background: #F1F5F9;
    border-color: #CBD5E1;
}

.indicator-pagination button.active {
    background: #F97316;
    color: #FFFFFF;
    border-color: #F97316;
}

.indicator-pagination button.disabled {
    opacity: 0.4;
    cursor: default;
    pointer-events: none;
}

.indicator-pagination .material-symbols-outlined {
    font-size: 20px;
}

/* 검색 영역 */
.opendata-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.opendata-search-input {
    padding: 12px 16px;
    font-size: 16px;
    font-family: inherit;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    outline: none;
    width: 320px;
    color: #1E293B;
    background: #fff;
}

.opendata-search-input::placeholder {
    color: #94A3B8;
}

.opendata-search-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px 24px;
    background: #00B541;
    border: none;
    border-radius: 8px;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.2s;
}

.opendata-search-btn:hover {
    background: #009a37;
}

.opendata-search-btn .material-symbols-outlined {
    font-size: 20px;
}

/* 결과 건수 */
.opendata-result-count {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 20px;
}

.opendata-result-count strong {
    color: #00B541;
    font-weight: 700;
    font-size: 18px;
}

/* 데이터 카드 그리드 */
.opendata-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.opendata-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px 20px 20px;
    transition: box-shadow 0.2s;
}

.opendata-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* 파일 타입 뱃지 */
.opendata-badge {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 16px;
}

.badge-csv {
    background: #00B541;
}

.badge-xlsx {
    background: #3B82F6;
}

.badge-zip {
    background: #8B5CF6;
}

.badge-api {
    background: var(--color-secondary);
}

.badge-link {
    background: #EF4444;
}

.badge-report {
    background: #6366F1;
}

/* 카드 제목 */
.opendata-card-title {
    font-family: var(--paper);
    font-size: 20px;
    font-weight: 600;
    color: #1E293B;
    margin: 0 0 8px 0;
    line-height: 1.4;
}

/* 카드 설명 */
.opendata-card-desc {
    font-size: 15px;
    color: #4c5259;
    margin: 0 0 16px 0;
    line-height: 1.5;
    flex: 1;
}

/* 카드 메타 */
.opendata-card-meta {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 15px;
    color: #4c5259;
    margin-bottom: 16px;
    width: 100%;
    text-align: left;
}

/* 바로가기 버튼 */
.opendata-card-link {
    display: block;
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    font-weight: 500;
    color: #00B541;
    border: 1px solid #00B541;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s;
    box-sizing: border-box;
}

.opendata-card-link:hover {
    color: #fff;
    background: #00B541;
}

/* 페이지네이션 */
.opendata-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 10px;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #E2E8F0;
    border-radius: 6px;
    background: #fff;
    color: #64748B;
    font-size: 16px;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s;
}

.page-btn:hover:not(:disabled) {
    background: #F1F5F9;
    color: #1E293B;
}

.page-btn.active {
    background: #00B541;
    border-color: #00B541;
    color: #fff;
}

.page-btn:disabled {
    opacity: 0.4;
    cursor: default;
}

.page-btn .material-symbols-outlined {
    font-size: 20px;
}

/* ========================================
   공공데이터란? 페이지
   ======================================== */
.about-content {
    padding: 0;
}

/* 히어로 섹션 */
.about-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 50%, #0F172A 100%);
    border-radius: 20px;
    padding: 60px 100px;
    margin-bottom: 48px;
    position: relative;
    overflow: hidden;
    min-height: 300px;
}

.about-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 181, 65, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.about-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        /* 도트 패턴 */
        radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px),
        /* 좌측 하단 글로우 */
        radial-gradient(ellipse at 10% 90%, rgba(255,255,255,0.06) 0%, transparent 50%),
        /* 우측 상단 글로우 */
        radial-gradient(ellipse at 85% 15%, rgba(255,255,255,0.04) 0%, transparent 40%);
    background-size: 24px 24px, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 1;
}

/* 장식 - 떠다니는 기하학적 도형 */
.about-hero-deco {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

.about-hero-deco.deco-1 {
    width: 120px;
    height: 120px;
    border: 1px solid rgba(255,255,255,0.08);
    top: -20px;
    left: 15%;
    animation: float-slow 8s ease-in-out infinite;
}

.about-hero-deco.deco-2 {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.03);
    bottom: 20px;
    left: 35%;
    animation: float-slow 6s ease-in-out infinite reverse;
}

.about-hero-deco.deco-3 {
    width: 200px;
    height: 200px;
    border: 1px solid rgba(255,255,255,0.05);
    top: -60px;
    right: 25%;
    animation: float-slow 10s ease-in-out infinite;
}

.about-hero-deco.deco-4 {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.04);
    bottom: 40px;
    right: 35%;
    border-radius: 8px;
    transform: rotate(45deg);
    animation: float-slow 7s ease-in-out infinite reverse;
}

.about-hero-deco.deco-5 {
    width: 80px;
    height: 80px;
    border: 1px dashed rgba(255,255,255,0.06);
    top: 30%;
    left: 5%;
    animation: spin-slow 20s linear infinite;
}

.about-hero-deco.deco-6 {
    width: 16px;
    height: 16px;
    background: rgba(255,255,255,0.1);
    top: 25%;
    left: 42%;
    animation: float-slow 5s ease-in-out infinite;
}

.about-hero-deco.deco-7 {
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.08);
    bottom: 30%;
    left: 25%;
    animation: float-slow 4s ease-in-out infinite reverse;
}

/* 하단 그라데이션 라인 */
.about-hero-line {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(0, 181, 65, 0.5), rgba(0, 181, 65, 0.8), rgba(0, 181, 65, 0.5), transparent);
    z-index: 2;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.about-hero-text {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.about-hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(0, 181, 65, 0.2);
    border: 1px solid rgba(0, 181, 65, 0.4);
    border-radius: 20px;
    color: #00B541;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 20px;
}

.about-hero-sub {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.7);
    margin: 0 0 8px 0;
    font-weight: 400;
}

.about-hero-title {
    font-size: 42px;
    font-weight: 700;
    font-family: var(--paper);
    color: #fff;
    margin: 0 0 20px 0;
    line-height: 1.2;
}

.about-hero-desc {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    margin: 0;
}

.about-hero-desc strong {
    color: #00B541;
    font-weight: 700;
}

/* 히어로 비주얼 - 네트워크 구조 */
.about-hero-visual {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 320px;
    height: 320px;
}

/* 배경 원형 링 */
.about-hero-circles {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
}

.circle {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(0, 181, 65, 0.15);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 0;
    left: 0;
    animation: pulse-ring 4s ease-in-out infinite;
}

.circle-2 {
    width: 210px;
    height: 210px;
    top: 45px;
    left: 45px;
    border-color: rgba(0, 181, 65, 0.25);
    animation: pulse-ring 4s ease-in-out 0.8s infinite;
}

.circle-3 {
    width: 120px;
    height: 120px;
    top: 90px;
    left: 90px;
    border-color: rgba(0, 181, 65, 0.35);
    animation: pulse-ring 4s ease-in-out 1.6s infinite;
}

@keyframes pulse-ring {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.06); opacity: 0.5; }
}

/* 연결선 SVG */
.hero-network-lines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* 중앙 허브 */
.hero-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, #00B541, #00963A);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 5;
    box-shadow: 0 0 30px rgba(0, 181, 65, 0.4), 0 0 60px rgba(0, 181, 65, 0.15);
    animation: hub-glow 3s ease-in-out infinite;
}

@keyframes hub-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(0, 181, 65, 0.4), 0 0 60px rgba(0, 181, 65, 0.15); }
    50% { box-shadow: 0 0 40px rgba(0, 181, 65, 0.6), 0 0 80px rgba(0, 181, 65, 0.25); }
}

.hero-hub .material-symbols-outlined {
    font-size: 32px;
    color: #fff;
}

.hero-hub span:last-child {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* 위성 노드 */
.hero-node {
    position: absolute;
    width: 68px;
    height: 68px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    z-index: 4;
    backdrop-filter: blur(4px);
    transition: all 0.3s;
}

.hero-node:hover {
    background: rgba(0, 181, 65, 0.2);
    border-color: rgba(0, 181, 65, 0.5);
    transform: scale(1.12);
}

.hero-node .material-symbols-outlined {
    font-size: 22px;
    color: #00B541;
}

.hero-node span:last-child {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

/* 노드 위치 (시계 방향 배치) */
.node-1 { top: 10px; left: 26px; animation: node-float 5s ease-in-out 0s infinite; }
.node-2 { top: 10px; right: 26px; animation: node-float 5s ease-in-out 0.8s infinite; }
.node-3 { top: 50%; left: 0; transform: translateY(-50%); animation: node-float 5s ease-in-out 1.6s infinite; }
.node-4 { top: 50%; right: 0; transform: translateY(-50%); animation: node-float 5s ease-in-out 2.4s infinite; }
.node-5 { bottom: 10px; left: 46px; animation: node-float 5s ease-in-out 3.2s infinite; }
.node-6 { bottom: 10px; right: 46px; animation: node-float 5s ease-in-out 4s infinite; }

@keyframes node-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* 노드3,4 특수 처리 (translateY 보존) */
.node-3 { animation: node-float-side 5s ease-in-out 1.6s infinite; }
.node-4 { animation: node-float-side 5s ease-in-out 2.4s infinite; }

@keyframes node-float-side {
    0%, 100% { transform: translateY(-50%); }
    50% { transform: translateY(calc(-50% - 6px)); }
}

/* 떠다니는 파티클 */
.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #00B541;
    border-radius: 50%;
    z-index: 3;
    opacity: 0.6;
}

.p1 { top: 30%; left: 15%; animation: particle-drift 6s ease-in-out infinite; }
.p2 { top: 65%; left: 80%; animation: particle-drift 7s ease-in-out 1s infinite; }
.p3 { top: 20%; right: 15%; width: 4px; height: 4px; animation: particle-drift 5s ease-in-out 2s infinite; }
.p4 { bottom: 20%; left: 25%; width: 5px; height: 5px; opacity: 0.4; animation: particle-drift 8s ease-in-out 3s infinite; }
.p5 { top: 45%; right: 8%; width: 3px; height: 3px; opacity: 0.5; animation: particle-drift 6s ease-in-out 1.5s infinite; }

@keyframes particle-drift {
    0%, 100% { transform: translate(0, 0); opacity: 0.6; }
    25% { transform: translate(8px, -10px); opacity: 0.3; }
    50% { transform: translate(-5px, -15px); opacity: 0.7; }
    75% { transform: translate(10px, 5px); opacity: 0.4; }
}

/* 섹션 공통 */
.about-section {
    margin-bottom: 48px;
}

.about-section-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.about-section-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #00B541;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 10px;
    flex-shrink: 0;
}

.about-section-title {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--paper);
    color: #1E293B;
    margin: 0;
}

/* 개방 섹션 본문 */
.about-section-body p {
    font-size: 17px;
    color: #475569;
    line-height: 1.9;
    margin: 0;
}

.about-section-body p:last-child {
    margin-bottom: 0;
}

/* 활용 방법 카드 */
.about-usage-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.about-usage-card {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.about-usage-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #00B541;
    transform: scaleX(0);
    transition: transform 0.3s;
}

.about-usage-card:hover {
    box-shadow: 0 8px 24px rgba(0, 181, 65, 0.12);
    transform: translateY(-4px);
}

.about-usage-card:hover::before {
    transform: scaleX(1);
}

.about-usage-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(0, 181, 65, 0.1);
    border-radius: 16px;
    margin: 0 auto 20px;
}

.about-usage-icon .material-symbols-outlined {
    font-size: 32px;
    color: #00B541;
}

.about-usage-card h3 {
    font-size: 19px;
    font-weight: 700;
    font-family: var(--paper);
    color: #1E293B;
    margin: 0 0 12px 0;
}

.about-usage-card p {
    font-size: 15px;
    color: #64748B;
    line-height: 1.6;
    margin: 0;
}

/* 포털 카드 */
.about-portal-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.about-portal-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 28px;
    background: #fff;
    border: 1px solid #E2E8F0;
    text-decoration: none;
    transition: all 0.3s;
}

.about-portal-card:hover {
    border-color: #00B541;
    box-shadow: 0 4px 16px rgba(0, 181, 65, 0.1);
    transform: translateX(4px);
}

.about-portal-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    background: rgba(0, 181, 65, 0.1);
    border-radius: 14px;
    flex-shrink: 0;
}

.about-portal-icon .material-symbols-outlined {
    font-size: 28px;
    color: #00B541;
}

.about-portal-icon.portal-blue {
    background: rgba(59, 130, 246, 0.1);
}

.about-portal-icon.portal-blue .material-symbols-outlined {
    color: #3B82F6;
}

.about-portal-icon.portal-purple {
    background: rgba(139, 92, 246, 0.1);
}

.about-portal-icon.portal-purple .material-symbols-outlined {
    color: #8B5CF6;
}

.about-portal-info {
    flex: 1;
}

.about-portal-info h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1E293B;
    margin: 0 0 4px 0;
}

.about-portal-info p {
    font-size: 14px;
    color: #64748B;
    margin: 0 0 4px 0;
}

.about-portal-url {
    font-size: 13px;
    color: #00B541;
    font-weight: 500;
}

.about-portal-arrow {
    font-size: 22px;
    color: #CBD5E1;
    transition: all 0.3s;
    flex-shrink: 0;
}

.about-portal-card:hover .about-portal-arrow {
    color: #00B541;
    transform: translateX(4px);
}

/* 가치 섹션 */
.about-value-box {
    background: linear-gradient(135deg, #F0FDF4 0%, #ECFDF5 100%);
    border: 1px solid rgba(0, 181, 65, 0.15);
    border-radius: 20px;
    padding: 40px;
}

.about-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.about-value-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 24px;
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(0, 181, 65, 0.1);
    transition: all 0.3s;
}

.about-value-item:hover {
    box-shadow: 0 4px 12px rgba(0, 181, 65, 0.08);
}

.about-value-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #00B541;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 50%;
    flex-shrink: 0;
}

.about-value-item p {
    font-size: 16px;
    color: #475569;
    line-height: 1.7;
    margin: 6px 0 0 0;
}

.about-value-item p strong {
    color: #00B541;
    font-weight: 700;
}

/* 서브페이지용 dashboard-grid 오버라이드 */
.dashboard-grid:has(.subpage-layout) {
    display: flex;
    gap: 0;
    width: 100%;
    max-width: 1860px;
    height: 980px;
    padding: 30px 30px;
    margin: 0 auto;
    box-sizing: border-box;
/*     overflow: hidden; */
}

/* 공공데이터/시정지표 등 스크롤 필요한 페이지: 높이 제한 해제 */
.dashboard-grid:has(.opendata-body):not(:has(.report-viewer-wrap)),
.dashboard-grid:has(.indicator-layout) {
    height: auto;
    overflow: visible;
}

.subpage-layout {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* 분야별 시정지표: 높이 자동 */
.dashboard-grid:has(.indicator-layout) {
    height: auto;
}
.dashboard-grid:has(.indicator-layout) .subpage-layout {
    height: auto;
}

/* 서브페이지 제목 */
.subpage-title {
    font-size: 22px;
    font-weight: 500;
    font-family: var(--paper);
    color: var(--text-primary);
    margin-bottom: 20px;
    flex-shrink: 0;
}

/* 서브페이지 본문 (사이드바 + 컨텐츠 가로 배치) */
.subpage-body {
    display: flex;
    flex: 1;
    gap: 20px;
    overflow: hidden;
    position: relative;
}

/* ========================================
   좌측 사이드바 (데스크톱)
   ======================================== */
.subpage-sidebar {
    display: flex;
    background: var(--dashboard-card-bg);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid rgba(13, 148, 136, 0.15);
}

/* 1뎁스 메뉴 래퍼 (스크롤 버튼 포함) */
.menu-depth1-wrap {
    display: contents;
}

.menu-scroll-btn {
    display: none;
}

/* 1뎁스 메뉴 */
.menu-depth1 {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 120px;
    flex-shrink: 0;
}

.menu-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.3s ease;
    gap: 8px;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.menu-item.active {
    background: var(--color-primary);
}

.menu-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-icon img {
    width: 32px;
    transition: filter 0.2s;
}

.menu-item.active .menu-icon img {
    filter: brightness(0) invert(1);
}

.menu-label {
    font-size: 16px;
    font-weight: 400;
    color: #777;
    text-align: center;
    transition: color 0.2s;
}

.menu-item.active .menu-label {
    color: #fff;
}

/* 2뎁스 전체 요약 바 */
.depth2-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F1F5F9;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 16px;
}

.depth2-total-label {
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.depth2-total-count {
    font-size: 12px;
    font-weight: 400;
    color: #666;
}

.depth2-total-count i {
    font-size: 22px;
    font-weight: 700;
    font-style: normal;
    color: var(--color-primary);
    margin-right: 4px;
}

/* 2뎁스 메뉴 */
.menu-depth2 {
    display: flex;
    flex-direction: column;
    background: #fff;
    width: 240px;
    flex-shrink: 0;
    padding: 20px 16px;
    box-sizing: border-box;
}

button.depth2-item {
    display: flex;
    width: 100%;
    align-items: center;
    background: none;
    border: none;
    padding: 12px 8px;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    gap: 10px;
    border-radius: 8px;
}

button.depth2-item:hover {
    background: #f5f5f5;
}

.depth2-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.depth2-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.depth2-label {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    flex: 1;
    text-align: left;
}

.depth2-item.active .depth2-icon {
    background: var(--color-secondary);
}

.depth2-item.active .depth2-label {
    color: var(--color-secondary);
    font-weight: 600;
}

.depth2-count {
    font-size: 12px;
    font-weight: 400;
    color: #999;
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.depth2-count i {
    font-size: 22px;
    font-weight: 500;
    font-style: normal;
    color: #333;
}

.depth2-item.active .depth2-count i {
    color: var(--color-secondary);
}

.depth2-count small {
    font-size: 12px;
    font-weight: 400;
}

/* 주차장 - 여유 (녹색) */
.depth2-item.parking-available.active .depth2-icon { background: #10B981; }
.depth2-item.parking-available.active .depth2-label { color: #10B981; }
.depth2-item.parking-available.active .depth2-count i { color: #10B981; }

/* 주차장 - 보통 (주황) */
.depth2-item.parking-normal.active .depth2-icon { background: #F59E0B; }
.depth2-item.parking-normal.active .depth2-label { color: #F59E0B; }
.depth2-item.parking-normal.active .depth2-count i { color: #F59E0B; }

/* 주차장 - 혼잡 (빨강) */
.depth2-item.parking-crowded.active .depth2-icon { background: #EF4444; }
.depth2-item.parking-crowded.active .depth2-label { color: #EF4444; }
.depth2-item.parking-crowded.active .depth2-count i { color: #EF4444; }

/* ========================================
   버스 검색 패널
   ======================================== */
.bus-search-panel {
    flex-direction: column !important;
    gap: 0 !important;
    padding: 0 !important;
}

.bus-search-box {
    display: flex;
    gap: 8px;
    padding: 12px;
    border-bottom: 1px solid var(--border-color);
}

.bus-search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    font-size: 14px;
    font-family: var(--paper);
    background: #F8FAFC;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.bus-search-input:focus {
    border-color: var(--color-primary);
    background: #fff;
}

.bus-search-btn {
    width: 40px;
    height: 40px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.bus-search-btn:hover {
    background: var(--color-primary-hover);
}

.bus-search-btn .material-symbols-outlined {
    font-size: 20px;
}

/* 버스 탭 */
.bus-tabs {
    display: flex;
    border-bottom: 2px solid #E2E8F0;
}

.bus-tab {
    flex: 1;
    padding: 12px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--paper);
    color: var(--text-tertiary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.bus-tab.active {
    color: var(--color-primary);
    font-weight: 600;
}

.bus-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* 버스 탭 콘텐츠 */
.bus-tab-content {
    flex: 1;
    overflow-y: auto;
}

/* 버스 노선 목록 */
.bus-route-list,
.bus-stop-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.bus-route-item,
.bus-stop-item {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    cursor: pointer;
    transition: background 0.2s;
}

.bus-route-item:hover,
.bus-stop-item:hover {
    background: rgba(13, 148, 136, 0.04);
}

.bus-route-item.active,
.bus-stop-item.active {
    background: rgba(13, 148, 136, 0.08);
    border-left: 3px solid var(--color-primary);
}

.bus-route-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 6px;
}

.bus-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    font-family: var(--paper);
    color: #fff;
    min-width: 40px;
}

.bus-number.small {
    padding: 2px 8px;
    font-size: 12px;
    min-width: 32px;
}

.bus-number.type-mainline {
    background: #3B82F6;
}

.bus-number.type-branch {
    background: #22C55E;
}

.bus-number.type-express {
    background: #EF4444;
}

.bus-route-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.bus-route-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: var(--text-tertiary);
    padding-left: 2px;
}

/* 정류장 목록 */
.bus-stop-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.bus-stop-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.bus-stop-id {
    font-size: 12px;
    color: var(--text-tertiary);
    background: #F1F5F9;
    padding: 2px 8px;
    border-radius: 4px;
}

/* 도착 정보 */
.bus-stop-arrivals {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bus-arrival-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    background: #F8FAFC;
    border-radius: 8px;
}

.bus-arrival-time {
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary);
    min-width: 55px;
}

.bus-arrival-remaining {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-left: auto;
}

/* 버스 패널 + 지도 래퍼 */
.bus-map-wrap {
    display: contents;
}

/* ========================================
   버스 노선 상세 패널
   ======================================== */
.bus-detail-panel {
    width: 360px;
    flex-shrink: 0;
    background: var(--dashboard-card-content-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bus-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.bus-detail-title-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bus-detail-title-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bus-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.bus-detail-sub {
    font-size: 12px;
    color: var(--text-tertiary);
}

.bus-detail-close {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    font-size: 24px;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-detail-close:hover {
    color: var(--text-primary);
}

/* 노선 정보 */
.bus-detail-info {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    background: #F8FAFC;
}

.bus-detail-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
}

.bus-detail-label {
    color: var(--text-tertiary);
    min-width: 60px;
    font-weight: 500;
}

.bus-detail-value {
    color: var(--text-primary);
    font-weight: 400;
}

/* 방향 토글 */
.bus-detail-direction {
    display: flex;
    gap: 0;
    padding: 0;
    border-bottom: 1px solid var(--border-color);
}

.bus-direction-btn {
    flex: 1;
    padding: 10px;
    background: none;
    border: none;
    font-size: 13px;
    font-weight: 500;
    font-family: var(--paper);
    color: var(--text-tertiary);
    cursor: pointer;
    position: relative;
    transition: color 0.2s;
}

.bus-direction-btn.active {
    color: var(--color-primary);
    font-weight: 600;
}

.bus-direction-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--color-primary);
}

/* 정류장 경로 */
.bus-route-stops {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.bus-stop-line {
    position: relative;
    padding: 16px 16px 16px 40px;
}

.bus-stop-line::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 30px;
    bottom: 30px;
    width: 3px;
    background: linear-gradient(to bottom, #EC4899, #EC4899);
    border-radius: 2px;
}

.bus-stop-node {
    position: relative;
    padding: 12px 0 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.bus-stop-dot {
    position: absolute;
    left: -18px;
    width: 12px;
    height: 12px;
    background: #EC4899;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #EC4899;
    z-index: 2;
}

.bus-stop-node.start .bus-stop-dot,
.bus-stop-node.end .bus-stop-dot {
    width: 14px;
    height: 14px;
    left: -19px;
}

.bus-stop-info {
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.bus-stop-station-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
}

.bus-stop-tag {
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    color: #fff;
}

.bus-stop-tag.tag-start {
    background: #3B82F6;
}

.bus-stop-tag.tag-end {
    background: #EF4444;
}

.bus-stop-status {
    font-size: 12px;
    white-space: nowrap;
}

.bus-stop-status.no-info {
    color: var(--text-muted);
}

.bus-stop-status.arriving {
    color: var(--color-primary);
    font-weight: 600;
}

/* 현재 버스 위치 마커 */
.bus-stop-node.has-bus {
    background: rgba(13, 148, 136, 0.06);
    border-radius: 8px;
    margin: 0 -8px;
    padding-left: 28px;
    padding-right: 8px;
    cursor: pointer;
}

.bus-stop-node.has-bus:hover {
    background: rgba(13, 148, 136, 0.12);
}

.bus-current-marker {
    position: absolute;
    left: -32px;
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    box-shadow: 0 2px 6px rgba(13, 148, 136, 0.4);
}

.bus-current-marker .material-symbols-outlined {
    font-size: 16px;
    color: #fff;
}

/* ========================================
   버스 정보 팝업 (지도 위)
   ======================================== */
.bus-info-popup {
    display: none;
    position: absolute;
    top: 16px;
    right: 80px;
    width: 360px;
    background: #fff;
    border: 1px solid #ccc;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    z-index: 100;
    font-family: var(--paper);
}

.bus-info-popup.active {
    display: block;
}

.bus-info-popup-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #3B5AC6;
    padding: 10px 14px;
}

.bus-info-popup-title {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.bus-info-popup-close {
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    font-size: 20px;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bus-info-popup-close:hover {
    opacity: 0.7;
}

.bus-info-popup-body {
    padding: 14px;
}

.bus-info-section {
    margin-bottom: 12px;
}

.bus-info-section.bordered {
    border: 1px solid #E2E8F0;
    border-radius: 4px;
    padding: 10px 12px;
    margin-bottom: 12px;
}

.bus-info-section-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 0 0 8px 0;
}

.bus-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 1.8;
}

.bus-info-label {
    color: #555;
    font-weight: 500;
    white-space: nowrap;
}

.bus-info-value {
    color: #333;
}

.bus-info-value.highlight {
    color: #3B5AC6;
    font-weight: 700;
}

/* 운행간격 바 */
.bus-interval-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 10px 0 6px;
}

.bus-interval-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.bus-interval-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    border: 1px solid;
}

.bus-interval-badge.behind {
    color: #3B82F6;
    border-color: #3B82F6;
    background: #EFF6FF;
}

.bus-interval-badge.current {
    color: #fff;
    border-color: #EF4444;
    background: #EF4444;
}

.bus-interval-badge.ahead {
    color: #3B82F6;
    border-color: #3B82F6;
    background: #EFF6FF;
}

.bus-interval-arrow {
    font-size: 18px;
    color: #94A3B8;
    font-weight: 700;
    margin: 0 4px;
}

.bus-interval-item:last-child .bus-interval-arrow {
    display: none;
}

.bus-interval-id {
    text-align: center;
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* 버스 상세 뷰 전환 */
.bus-detail-view,
.bus-info-view {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.bus-info-back-btn {
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border-radius: 6px;
    transition: background 0.2s;
}

.bus-info-back-btn:hover {
    background: rgba(0,0,0,0.05);
}

/* ========================================
   버스 노선 경로 오버레이 (지도 위)
   ======================================== */
.bus-route-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
}

.bus-route-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bus-route-line {
    fill: none;
    stroke: #EF4444;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
    filter: drop-shadow(0 1px 2px rgba(0,0,0,0.3));
}

/* 버스 위치 마커 (지도 위) */
.bus-map-marker {
    position: absolute;
    width: 32px;
    height: 32px;
    background: #EF4444;
    border: 3px solid #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 8px rgba(239,68,68,0.5);
    pointer-events: auto;
    cursor: pointer;
    z-index: 6;
    animation: bus-pulse 2s ease-in-out infinite;
}

.bus-map-marker .material-symbols-outlined {
    font-size: 16px;
    color: #fff;
}

@keyframes bus-pulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(239,68,68,0.5); }
    50% { box-shadow: 0 2px 16px rgba(239,68,68,0.8), 0 0 0 6px rgba(239,68,68,0.15); }
}

/* 정류장 점 (지도 위) */
.bus-map-stop {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #EC4899;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    z-index: 5;
}

.bus-map-stop span {
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 11px;
    font-weight: 600;
    color: #333;
    background: rgba(255,255,255,0.9);
    padding: 2px 6px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}
		
/* ========================================
   카드 영역 (실시간 도시현황)
   ======================================== */
.realtime-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 357px;
    flex-shrink: 0;
}

.realtime-card {
    background: var(--dashboard-card-content-bg);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.realtime-card.situation-card {
    flex: 1;
    min-height: 0;
}

.realtime-card.chart-card {
    height: 320px;
}

.realtime-card-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.realtime-card-title {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--paper);
    color: var(--text-primary);
    margin: 0;
}

/* 토글 버튼 */
.toggle-buttons {
    display: flex;
    gap: 8px;
    background: var(--promise-bar-bg);
    border-radius: 12px;
    padding: 6px;
    width: 100%;
}

.toggle-btn {
    flex: 1;
    padding: 14px 20px;
    background: transparent;
    border: none;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600;
    font-family: var(--paper);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.toggle-btn:hover {
    color: var(--text-primary);
}

.toggle-btn.active {
    background: var(--color-primary);
    color: #FFFFFF;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3);
}

.realtime-card-body {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
    background: transparent;
    border-radius: 10px;
    padding: 0;
}

/* 상황 리스트 */
.situation-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.situation-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px;
    gap: 9px;
    background: var(--card-bg-secondary);
    border-radius: 10px;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    min-height: 40px;
}

.situation-item:hover {
    background: var(--card-bg-hover);
}

.situation-info {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
}

.situation-type {
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    line-height: 1.4;
}

.situation-type.type-emergency {
    background: rgba(255, 105, 180, 0.2);
    color: #FF69B4;
}

.situation-type.type-warning {
    background: rgba(239, 68, 68, 0.2);
    color: #EF4444;
}

.situation-type.type-info {
    background: rgba(34, 197, 94, 0.2);
    color: #22C55E;
}

.situation-type.type-other {
    background: rgba(59, 130, 246, 0.2);
    color: #3B82F6;
}

.situation-title {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
    flex: 1;
    line-height: 1.6;
}

.situation-time {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-secondary);
    white-space: nowrap;
    line-height: 1.4;
}

/* 차트 영역 */
.chart-card .realtime-card-body {
    position: relative;
    height: 100%;
}

#realtimeChart {
    width: 100% !important;
    height: 100% !important;
}

/* ========================================
   우측 지도 영역
   ======================================== */
.subpage-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: flex 0.3s ease;
}

.subpage-content.full-width {
    flex: 1 1 100%;
}

.map-container-full {
    flex: 1;
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 500px;
}

.map-container-full iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 지도 마커 */
.map-markers {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 5;
    pointer-events: none;
}

.map-marker {
    position: absolute;
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    transition: transform 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-marker:hover {
    transform: scale(1.2);
}

.map-marker img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 마커 대기자 말풍선 */
.marker-badge {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    padding: 4px 10px;
    border-radius: 6px;
    margin-bottom: 6px;
}

.marker-badge::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.7);
}

.marker-badge i {
    font-style: normal;
    font-weight: 700;
    font-size: 14px;
}

/* 지도 컨트롤 버튼 */
.map-overlay-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: #FFFFFF;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.map-control-btn:hover {
    background: #F8FAFC;
    transform: scale(1.05);
}

/* 지도 범례 - dashboard.css 기본 스타일 리셋 */
.subpage-content .map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    left: auto;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(4px);
    width: auto;
}

.subpage-content .legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.subpage-content .legend-icon {
    width: 30px;
    height: 36px;
    border-radius: 0;
}

.subpage-content .legend-label {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    text-shadow: none;
}

/* CCTV 팝업 */
.cctv-popup {
    position: absolute;
    display: none;
    background: #FFFFFF;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 1000;
    min-width: 320px;
}

.cctv-popup.active {
    display: block;
}

.cctv-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.cctv-popup-title {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
}

.cctv-popup-close {
    width: 24px;
    height: 24px;
    background: transparent;
    border: none;
    font-size: 20px;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cctv-popup-close:hover {
    color: var(--color-primary);
}

.cctv-popup-image {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 12px;
}

.cctv-popup-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cctv-popup-row {
    display: flex;
    align-items: center;
    font-size: 13px;
}

.cctv-popup-label {
    font-weight: 500;
    color: #64748B;
    min-width: 60px;
}

.cctv-popup-value {
    font-weight: 400;
    color: #0F172A;
}

.cctv-popup-btn {
    width: 100%;
    padding: 10px;
    background: var(--color-primary);
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.cctv-popup-btn:hover {
    background: #0F766E;
}

/* 주차장 상세 팝업 */
.parking-popup {
    position: absolute;
    display: none;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 24px 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    z-index: 100;
    top: 16px;
    right: 16px;
    bottom: 16px;
    width: 480px;
    overflow-y: auto;
    box-sizing: border-box;
}

.parking-popup.active {
    display: block;
}

/* 헤더 */
.parking-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 24px 20px 10px;
    margin: -24px -20px 0;
    position: sticky;
    top: -24px;
    background: #FFFFFF;
    z-index: 1;
}

.parking-popup-title-wrap {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.parking-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.parking-tag {
    font-size: 11px;
    font-weight: 400;
    padding: 4px 12px;
    border-radius: 5px;
    line-height: 1;
}

.parking-tag.tag-public {
    background: #DBEAFE;
    color: #2563EB;
}

.parking-tag.tag-free {
    background: #D1FAE5;
    color: #059669;
}

.parking-popup-close {
    width: 28px;
    height: 28px;
    background: transparent;
    border: none;
    font-size: 28px;
    color: #94A3B8;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.parking-popup-close:hover {
    color: #0F172A;
}

/* 메타 정보 */
.parking-popup-meta {
    padding-bottom: 16px;
    margin-bottom: 0;
    border-bottom: 1px solid #E2E8F0;
}

.parking-popup-meta p {
    font-size: 15px;
    color: #333;
    margin: 0;
    line-height: 1.8;
}

/* 섹션 */
.parking-popup-section {
    padding-top: 20px;
}

.parking-popup-subtitle {
    font-size: 16px;
    font-weight: 500;
    color: #0F172A;
    margin: 0 0 14px 0;
}

/* 주차정보 카드 (여유 주차면 / 전체 주차면) */
.parking-info-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
}

.parking-info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border-radius: 12px;
    gap: 6px;
}

.parking-info-card.card-available {
    background: #F43F5E;
}

.parking-info-card.card-total {
    background: #334155;
}

.parking-info-top {
    font-size: 13px;
    font-weight: 400;
    color: #fff;
}

.parking-info-bottom {
    font-size: 24px;
    font-weight: 800;
    color: #fff;
}

/* 테이블 공통 */
.parking-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin-bottom: 0;
}

.parking-table th,
.parking-table td {
    border: 1px solid #E2E8F0;
    padding: 10px 12px;
    text-align: center;
    color: #1E293B;
    font-size: 14px;
}

.parking-table th {
    background: #F8FAFC;
    font-weight: 600;
    color: #0F172A;
}

.parking-th-total {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #64748B !important;
    vertical-align: middle;
    line-height: 1.6;
}

.parking-th-total strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #F97316;
    margin-top: 4px;
}

.parking-td-center {
    vertical-align: middle;
    color: #94A3B8;
}

/* 기본정보 테이블 */
.parking-popup-section .parking-table th {
    min-width: 70px;
}

/* ========================================
   어린이집 상세 팝업
   ======================================== */
.daycare-popup {
    position: absolute;
    display: none;
    background: #FFFFFF;
    border-radius: 0px;
    padding: 28px 24px;
    width: 480px;
    top: 20px;
    left: 20px;
    z-index: 100;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    border-top: 4px solid var(--color-primary);
}

.daycare-popup.active {
    display: block;
}

/* 헤더 */
.daycare-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.daycare-popup-title-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.daycare-popup-title {
    font-size: 20px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

.daycare-tag {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 500;
    background: #EDE9FE;
    color: #7C3AED;
}

/* 정원/현원/대기자 카드 */
.daycare-info-cards {
    display: flex;
    gap: 10px;
    margin-bottom: 24px;
}

.daycare-info-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 10px;
    border-radius: 12px;
    text-align: center;
    gap: 4px;
}

.daycare-info-card.card-capacity {
    background: #334155;
    color: #fff;
}

.daycare-info-card.card-current {
    background: #E2E8F0;
    color: #1E293B;
}

.daycare-info-card.card-waiting {
    background: var(--color-secondary);
    color: #fff;
}

.daycare-info-top {
    font-size: 14px;
    font-weight: 500;
}

.daycare-info-bottom {
    font-size: 14px;
    font-weight: 400;
}

.daycare-info-bottom i {
    font-size: 28px;
    font-weight: 700;
    font-style: normal;
}

/* 상세정보 테이블 */
.daycare-popup-section {
    border-top: 1px solid #E2E8F0;
    padding-top: 20px;
}

.daycare-table {
    width: 100%;
    border-collapse: collapse;
}

.daycare-table tr {
    border-bottom: 1px solid #F1F5F9;
}

.daycare-table tr:last-child {
    border-bottom: none;
}

.daycare-table th {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    color: #383f47;
    background: #F8FAFC;
    padding: 14px 16px;
    border-radius: 8px;
}

.daycare-table td {
    font-size: 15px;
    font-weight: 600;
    color: #1E293B;
    padding: 14px 20px;
}

/* ========================================
   빅데이터란? 페이지 - 색상 테마 오버라이드
   ======================================== */

/* 히어로 배경 그라데이션 */
.bigdata-hero::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* 원형 링 색상 */
.bigdata-about .circle {
    border-color: rgba(99, 102, 241, 0.15);
}

.bigdata-about .circle-2 {
    border-color: rgba(99, 102, 241, 0.25);
}

.bigdata-about .circle-3 {
    border-color: rgba(99, 102, 241, 0.35);
}

/* 허브 */
.bigdata-hub {
    background: linear-gradient(135deg, #6366F1, #4F46E5);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), 0 0 60px rgba(99, 102, 241, 0.15);
    animation: bigdata-hub-glow 3s ease-in-out infinite;
}

@keyframes bigdata-hub-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.4), 0 0 60px rgba(99, 102, 241, 0.15); }
    50% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.6), 0 0 80px rgba(99, 102, 241, 0.25); }
}

/* 위성 노드 */
.bigdata-node:hover {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.5);
}

.bigdata-node .material-symbols-outlined {
    color: #818CF8;
}

/* 파티클 */
.bigdata-particle {
    background: #818CF8;
}

/* 빅데이터 하단 라인 */
.bigdata-line {
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(99, 102, 241, 0.8), rgba(99, 102, 241, 0.5), transparent);
}

/* 빅데이터 ::before 글로우 */
.bigdata-hero::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

/* 배지 */
.bigdata-about .about-hero-badge {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(99, 102, 241, 0.4);
    color: #818CF8;
}

/* desc strong */
.bigdata-about .about-hero-desc strong {
    color: #818CF8;
}

/* 섹션 넘버 */
.bigdata-num {
    background: #6366F1;
}

/* 카드 상단 라인 + 호버 */
.bigdata-card::before {
    background: #6366F1;
}

.bigdata-card:hover {
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.12);
}

/* 카드 아이콘 */
.bigdata-icon {
    background: rgba(99, 102, 241, 0.1);
}

.bigdata-icon .material-symbols-outlined {
    color: #6366F1;
}

/* 프로세스 카드 (포털 카드 재사용) */
.bigdata-process-card:hover {
    border-color: #6366F1;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.1);
}

.bigdata-process-icon {
    background: rgba(99, 102, 241, 0.1);
}

.bigdata-process-icon .material-symbols-outlined {
    color: #6366F1;
}

.bigdata-about .about-portal-url {
    color: #6366F1;
}

.bigdata-about .about-portal-card:hover .about-portal-arrow {
    color: #6366F1;
}

/* 가치 섹션 */
.bigdata-value-box {
    background: linear-gradient(135deg, #EEF2FF 0%, #E8EAFF 100%);
    border-color: rgba(99, 102, 241, 0.15);
}

.bigdata-value-box .about-value-item {
    border-color: rgba(99, 102, 241, 0.1);
}

.bigdata-value-box .about-value-item:hover {
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.08);
}

.bigdata-value-num {
    background: #6366F1;
}

.bigdata-value-box .about-value-item p strong {
    color: #6366F1;
}

/* ========================================
   분석보고서 뷰어 레이아웃
   ======================================== */
.report-viewer-wrap {
    display: flex;
    gap: 24px;
    width: 100%;
    height: 100%;
    min-height: 0;
}

/* 좌측: 보고서 목록 */
.report-list-panel {
    width: 340px;
    min-width: 340px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.report-list-title {
    font-size: 18px;
    font-weight: 500;
    color: #1E293B;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
}

.report-count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: #1E293B;
    background: rgba(30, 41, 59, 0.1);
    margin-left: 6px;
    vertical-align: middle;
}

.report-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

.report-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    border-left: 3px solid transparent;
    transition: background 0.2s;
}

.report-item:hover {
    background: #F8FAFC;
}

.report-item.active {
    background: #EEF2FF;
    border-left-color: #6366F1;
}

.report-thumb {
    width: 72px;
    height: 102px;
    min-width: 72px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #F1F5F9;
}

.report-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
}

.report-name {
    font-size: 15px;
    font-weight: 500;
    color: #1E293B;
}

.report-item.active .report-name {
    color: #6366F1;
}

.report-date {
    font-size: 12px;
    font-weight: 300;
    color: #94A3B8;
}

/* 우측: PDF 뷰어 */
.report-pdf-panel {
    flex: 1;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.report-pdf-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.report-pdf-title {
    font-size: 18px;
    font-weight: 500;
    color: #1E293B;
}

.report-fullscreen-btn {
    padding: 6px 16px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #fff;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.report-fullscreen-btn:hover {
    background: #F1F5F9;
    border-color: #6366F1;
    color: #6366F1;
}

.report-pdf-viewer {
    flex: 1;
    background: #E8E8E8;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: auto;
}

.report-pdf-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: #94A3B8;
}

.report-pdf-placeholder .material-symbols-outlined {
    font-size: 64px;
}

.report-pdf-placeholder p {
    font-size: 15px;
    margin: 0;
}

/* 전체화면 모드 */
.report-pdf-viewer:fullscreen {
    background: #333;
}

.report-pdf-viewer:-webkit-full-screen {
    background: #333;
}

/* ========================================
   구정지표 - 통계보고서 3단 레이아웃
   ======================================== */

/* 3단 레이아웃 (목록 + 미리보기 + PDF뷰어) */
.district-report {
    display: flex;
    gap: 24px;
}

.district-report .report-list-panel {
    width: 340px;
    min-width: 340px;
}

.district-report .report-list-panel .report-item {
    padding: 14px 20px;
}

.district-report .report-list-panel .report-info {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

/* 중앙: 보고서 미리보기 */
.report-preview-panel {
    flex: 0.7;
    min-width: 280px;
    background: #fff;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.report-preview-title {
    font-size: 18px;
    font-weight: 500;
    color: #1E293B;
    padding: 20px 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
}

.report-preview-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

.report-preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.report-preview-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.preview-page-thumb {
    width: 100%;
    aspect-ratio: 210 / 297;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.preview-page-thumb:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.preview-page-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.report-preview-page.active .preview-page-thumb {
    border: 2px solid #D97706;
    box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.report-preview-page.active .preview-page-num {
    color: #D97706;
    font-weight: 700;
}

.preview-page-num {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
}

/* 구정지표 골드/앰버 테마 */
.district-report .report-item.active {
    background: #FFFBEB;
    border-left-color: #D97706;
}

.district-report .report-item.active .report-name {
    color: #D97706;
}

.district-report .report-fullscreen-btn:hover {
    border-color: #D97706;
    color: #D97706;
}

/* ========================================
   구정지표란? 페이지 - 골드/앰버 색상 테마 오버라이드
   ======================================== */
.district-hero::before {
    background: radial-gradient(ellipse at center, rgba(217,119,6,0.08) 0%, transparent 70%);
}

.district-about .circle-1 {
    border-color: rgba(217,119,6,0.15);
}
.district-about .circle-2 {
    border-color: rgba(217,119,6,0.10);
}
.district-about .circle-3 {
    border-color: rgba(217,119,6,0.05);
}

.district-hub {
    background: linear-gradient(135deg, #D97706, #B45309);
    box-shadow: 0 0 30px rgba(217,119,6,0.3), 0 0 60px rgba(217,119,6,0.15);
}

@keyframes district-hub-glow {
    0%, 100% { box-shadow: 0 0 30px rgba(217,119,6,0.3), 0 0 60px rgba(217,119,6,0.15); }
    50% { box-shadow: 0 0 40px rgba(217,119,6,0.4), 0 0 80px rgba(217,119,6,0.2); }
}

.district-hub {
    animation: district-hub-glow 3s ease-in-out infinite;
}

.district-node:hover {
    border-color: #E5A00D;
    background: rgba(217,119,6,0.15);
}

.district-node .material-symbols-outlined {
    color: #E5A00D;
}

.district-particle {
    background: #E5A00D;
}

.district-about .about-hero-badge {
    background: rgba(217,119,6,0.15);
    color: #D97706;
    border: 1px solid rgba(217,119,6,0.3);
}

/* 구정지표 하단 라인 */
.district-line {
    background: linear-gradient(90deg, transparent, rgba(217, 119, 6, 0.5), rgba(217, 119, 6, 0.8), rgba(217, 119, 6, 0.5), transparent);
}

/* 구정지표 ::before 글로우 */
.district-hero::before {
    background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, transparent 70%);
}

.district-num {
    background: #D97706;
    color: #fff;
}

.district-card::before {
    background: linear-gradient(135deg, #D97706, #B45309);
}

.district-icon {
    background: rgba(217,119,6,0.1);
    color: #D97706;
}

.district-icon .material-symbols-outlined {
    color: #D97706;
}

.district-process-card {
    border-left: 3px solid #D97706;
}

.district-process-card:hover {
	border-color: #D97706;
    box-shadow: 0 4px 16px rgba(217, 119, 6, 0.15);
    transform: translateX(4px);
}

.district-card:hover {
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.15);
    transform: translateX(4px);
}

.district-process-icon {
    background: rgba(217,119,6,0.1);
}

.district-process-icon .material-symbols-outlined {
    color: #D97706;
}

.district-process-card .about-portal-url {
    color: #D97706;
}

.district-value-box {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid rgba(217, 119, 6, 0.15);
}

.district-value-item:hover {
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15);
}

.district-value-num {
    background: linear-gradient(135deg, #D97706, #B45309);
    color: #fff;
}

.district-process-card:hover .about-portal-arrow {
    color: #D97706;
    transform: translateX(4px);
}

.district-value-box .about-value-item p strong {
    color: #D97706;
}

/* ========================================
   반응형 - 태블릿 (1400px 이하)
   ======================================== */
@media (max-width: 1400px) {
    .sub-nav-inner {
        padding: 0 24px;
    }

    .sub-nav-link {
        padding: 12px 16px;
        font-size: 13px;
    }

    .subpage-layout .dashboard-grid,
    .dashboard-grid:has(.subpage-layout) {
        padding: 30px 24px;
    }

    .subpage-layout {
        height: auto;
    }

    .opendata-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .opendata-tabs {
        overflow-x: auto;
        white-space: nowrap;
    }

    .opendata-tab {
        flex-shrink: 0;
    }

    .opendata-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .opendata-body .opendata-content {
        height: auto;
        overflow: visible;
    }

    .subpage-body {
        flex-direction: column;
        flex: 1;
        overflow: visible;
    }

    .subpage-content {
        flex: none;
        height: 60vh;
        overflow: visible;
        order: 1;
    }

    .realtime-cards {
        order: 2;
    }

    .bus-map-wrap {
        display: flex;
        flex-direction: row;
        gap: 16px;
        order: 1;
        flex: none;
/*         height: 60vh; */
    }

    .bus-map-wrap .bus-detail-panel {
        width: 320px;
        flex-shrink: 0;
        max-height: 60vh;
        overflow-y: auto;
    }

    .bus-map-wrap .subpage-content {
        flex: 1;
        height: auto;
        order: unset;
    }

    .map-container-full {
        height: 60vh;
    }

    .map-container-full iframe {
        height: 60vh;
    }

    /* 사이드바 → 상단 가로 레이아웃으로 전환 */
    .subpage-sidebar {
        display: flex;
        flex-direction: column;
        width: 100%;
        border-radius: 10px;
        overflow: visible;
    }

    /* 1뎁스 래퍼: 스크롤 버튼 포함 가로 배치 */
    .menu-depth1-wrap {
        display: flex;
        align-items: stretch;
        position: relative;
    }

    .menu-scroll-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        flex-shrink: 0;
        background: rgba(148, 163, 184, 0.6);
        border: none;
        color: #fff;
        font-size: 18px;
        font-weight: 700;
        cursor: pointer;
        transition: background 0.2s;
        z-index: 2;
    }

    .menu-scroll-btn:hover {
        background: #7C8FA5;
    }

    .menu-scroll-left {
        border-radius: 10px 0 0 0;
    }

    .menu-scroll-right {
        border-radius: 0 10px 0 0;
    }

    /* 1뎁스: 가로 탭 형태 */
    .menu-depth1 {
        flex-direction: row;
        flex: 1;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .menu-depth1::-webkit-scrollbar {
        display: none;
    }

    .menu-item {
        flex-direction: row;
        padding: 14px 20px;
        gap: 6px;
        border-bottom: none;
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        white-space: nowrap;
        flex: 1;
        justify-content: center;
    }

    .menu-item:last-child {
        border-right: none;
    }

    .menu-icon {
        width: 28px;
        height: 28px;
    }

    .menu-icon img {
        width: 20px;
    }

    .menu-label {
        font-size: 16px;
    }

    /* 2뎁스: 가로 카드 배치 */
    .menu-depth2 {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        padding: 16px;
        gap: 10px;
        border-radius: 0 0 10px 10px;
    }

    /* 2뎁스 전체 요약 바 */
    .depth2-total {
        width: 100%;
        margin-bottom: 4px;
    }

    /* 2뎁스 아이템: 카드 형태 */
    button.depth2-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 14px 10px;
        background: #F8FAFC;
        border-radius: 10px;
        gap: 6px;
        flex: 1;
        min-width: 100px;
    }

    button.depth2-item:hover {
        background: #EEF2FF;
    }

    .depth2-label {
        text-align: center;
        font-size: 13px;
    }

    .depth2-count {
        align-items: baseline;
    }

    .realtime-cards {
        flex-direction: row;
        width: 100%;
    }

    .realtime-card.situation-card {
        flex: 1;
        max-height: 400px;
    }

    .realtime-card.chart-card {
        flex: 1;
        height: 400px;
    }

    .subpage-content {
        min-height: 400px;
    }

    .map-container-full {
        min-height: 400px;
    }

    .toggle-btn {
        font-size: 15px;
        padding: 10px 16px;
    }

    .parking-popup {
        width: 420px;
        max-height: 65vh;
        overflow-y: auto;
    }

    .daycare-popup {
        width: 420px;
        max-height: 65vh;
        overflow-y: auto;
    }

    .daycare-table tr {
        display: flex;
        align-items: center;
    }

    .daycare-table th {
        width: 60px;
        font-size: 13px;
        padding: 10px 5px;
    }

    .daycare-table td {
        font-size: 14px;
        padding: 10px 12px;
    }

    /* 공공데이터란? 반응형 */
    .about-hero {
        padding: 40px 36px;
        min-height: auto;
    }

    .about-hero-title {
        font-size: 32px;
    }

    .about-hero-desc {
        font-size: 15px;
    }

    .about-hero-desc br {
        display: none;
    }

    .about-hero-visual {
        width: 260px;
        height: 260px;
    }

    .hero-hub {
        width: 74px;
        height: 74px;
    }

    .hero-hub .material-symbols-outlined {
        font-size: 26px;
    }

    .hero-node {
        width: 56px;
        height: 56px;
    }

    .hero-node .material-symbols-outlined {
        font-size: 18px;
    }

    .hero-node span:last-child {
        font-size: 9px;
    }

    .node-1 { top: 5px; left: 18px; }
    .node-2 { top: 5px; right: 18px; }
    .node-5 { bottom: 5px; left: 34px; }
    .node-6 { bottom: 5px; right: 34px; }

    .about-usage-cards {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .about-usage-card {
        padding: 28px 20px;
    }

    .about-value-box {
        padding: 30px;
    }

    .about-value-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .report-viewer-wrap {
        flex-direction: column;
        height: auto;
    }

    .report-list-panel {
        width: 100%;
        min-width: auto;
        max-height: 280px;
    }

    .report-pdf-panel {
        min-height: calc(100vh - 300px);
    }

    .district-report {
        flex-direction: column;
        height: auto;
    }

    .district-report .report-list-panel {
        width: 100%;
        min-width: auto;
        max-height: 200px;
    }

    .report-preview-panel {
        max-height: 400px;
    }

    .report-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   반응형 - 모바일 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
    .sub-nav-inner {
        flex-direction: column;
        padding: 0 16px;
        gap: 8px;
    }

    .sub-nav-links {
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .sub-nav-links::-webkit-scrollbar {
        display: none;
    }

    .sub-nav-link {
        padding: 10px 14px;
        font-size: 13px;
        white-space: nowrap;
    }

    .subpage-layout .dashboard-grid,
    .dashboard-grid:has(.subpage-layout) {
        padding: 20px 16px;
    }

    .opendata-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .opendata-tabs {
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .opendata-tab {
        flex-shrink: 0;
    }

    .opendata-search-input {
        flex: 1;
    }

    .opendata-grid {
        grid-template-columns: 1fr;
    }

    .subpage-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .subpage-body {
        flex-direction: column;
        gap: 16px;
        overflow: visible;
        flex: none;
    }

    /* 사이드바 모바일 조정 */
    .menu-item {
        padding: 10px 14px;
        gap: 4px;
    }

    .menu-icon {
        width: 24px;
        height: 24px;
    }

    .menu-icon img {
        width: 16px;
    }

    .menu-label {
        font-size: 15px;
    }

    .subpage-sidebar {
        overflow: visible;
    }

    .menu-depth2 {
        padding: 12px;
        gap: 8px;
        width: 100%;
        box-sizing: border-box;
    }

    .bus-search-panel {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .bus-search-box {
        max-width: 100%;
        box-sizing: border-box;
    }

    .bus-search-btn {
        flex-shrink: 0;
    }

    .bus-route-name,
    .bus-route-meta {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .bus-tab-content {
        overflow-x: hidden;
        max-width: 100%;
    }

    button.depth2-item {
        padding: 10px 8px;
        min-width: 80px;
    }

    .depth2-icon {
        width: 30px;
        height: 30px;
    }

    .depth2-label {
        font-size: 12px;
    }

    .depth2-count i {
        font-size: 18px;
    }

    .depth2-count small {
        font-size: 10px;
    }

    .realtime-cards {
        flex-direction: column;
        width: 100%;
    }

    .realtime-card.situation-card {
        max-height: 350px;
    }

    .realtime-card.chart-card {
        height: 280px;
    }

    .realtime-card {
        padding: 16px;
    }

    .toggle-btn {
        font-size: 14px;
        padding: 10px 12px;
    }

    .situation-type {
        padding: 4px 10px;
        font-size: 12px;
    }

    .situation-title {
        font-size: 13px;
    }

    .situation-time {
        font-size: 12px;
    }

    .map-container-full {
        min-height: 300px;
    }

    .subpage-content .map-legend {
        bottom: 10px;
        right: 10px;
        padding: 12px;
    }

    .map-overlay-controls {
        top: 10px;
        right: 10px;
    }

    .map-control-btn {
        width: 34px;
        height: 34px;
    }

    .cctv-popup {
        min-width: auto;
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
    }

    .parking-popup {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        max-height: 60vh;
        overflow-y: auto;
    }

    .daycare-popup {
        width: calc(100% - 32px);
        left: 16px;
        right: 16px;
        max-height: 60vh;
        overflow-y: auto;
    }

    /* 공공데이터란? 모바일 */
    .about-hero {
        flex-direction: column;
        padding: 32px 24px;
        gap: 20px;
        text-align: center;
    }

    .about-hero-text {
        max-width: 100%;
    }

    .about-hero-title {
        font-size: 28px;
    }

    .about-hero-sub {
        font-size: 15px;
    }

    .about-hero-desc {
        font-size: 14px;
    }

    .about-hero-desc br {
        display: none;
    }

    .about-hero-visual {
        width: 240px;
        height: 240px;
    }

    .about-hero-circles {
        width: 220px;
        height: 220px;
    }

    .circle-1 { width: 220px; height: 220px; }
    .circle-2 { width: 150px; height: 150px; top: 35px; left: 35px; }
    .circle-3 { width: 80px; height: 80px; top: 70px; left: 70px; }

    .hero-hub {
        width: 66px;
        height: 66px;
    }

    .hero-hub .material-symbols-outlined {
        font-size: 24px;
    }

    .hero-hub span:last-child {
        font-size: 10px;
    }

    .hero-node {
        width: 50px;
        height: 50px;
    }

    .hero-node .material-symbols-outlined {
        font-size: 16px;
    }

    .hero-node span:last-child {
        font-size: 8px;
    }

    .node-1 { top: 2px; left: 12px; }
    .node-2 { top: 2px; right: 12px; }
    .node-3 { left: -5px; }
    .node-4 { right: -5px; }
    .node-5 { bottom: 2px; left: 26px; }
    .node-6 { bottom: 2px; right: 26px; }

    .hero-particle { display: none; }

    .about-section {
        margin-bottom: 36px;
    }

    .about-section-title {
        font-size: 20px;
    }

    .about-usage-cards {
        grid-template-columns: 1fr;
    }

    .about-usage-card {
        padding: 24px 20px;
    }

    .about-value-box {
        padding: 24px 20px;
    }

    .about-value-grid {
        grid-template-columns: 1fr;
    }

    .about-value-num {
        display: none;
    }

    .about-value-item {
        justify-content: center;
    }

    .about-value-item p {
        text-align: center;
        margin: 0;
    }

    .about-portal-card {
        padding: 18px 20px;
        gap: 14px;
    }

    .about-portal-icon {
        width: 46px;
        height: 46px;
    }
}

/* ========================================
   버스 상세 패널 - 바텀시트 (768px 이하)
   ======================================== */
@media (max-width: 768px) {
    .bus-detail-panel {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        max-height: 70vh;
        border-radius: 20px 20px 0 0;
        z-index: 1000;
        box-shadow: 0 -4px 24px rgba(0,0,0,0.15);
        transform: translateY(100%);
        transition: transform 0.3s ease;
    }

    .bus-detail-panel.show {
        transform: translateY(0);
    }

    .bus-detail-header {
        padding: 20px 16px 12px;
        position: relative;
    }

    .bus-detail-header::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #CBD5E1;
        border-radius: 2px;
    }

    .bus-route-stops {
        max-height: calc(70vh - 200px);
    }

    /* 모바일에서 버스 정보 팝업 숨김 (바텀시트 내 뷰 전환으로 대체) */
    .bus-info-popup {
        display: none !important;
    }
}

/* 바텀시트 오버레이 */
.bus-detail-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 999;
}

.bus-detail-overlay.show {
    display: block;
}

/* 재난/교통 상세 팝업 */
.disaster-detail-popup {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background: #FFFFFF;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    z-index: 100;
    overflow: hidden;
}

.disaster-detail-popup.active {
    display: block;
}

.disaster-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.disaster-detail-title {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
}

.disaster-detail-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #94A3B8;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.disaster-detail-body {
    padding: 16px 20px;
}

.disaster-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
}

.disaster-detail-row + .disaster-detail-row {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.disaster-detail-label {
    font-size: 13px;
    color: #64748B;
}

.disaster-detail-value {
    font-size: 13px;
    font-weight: 500;
    color: #0F172A;
}

.disaster-detail-status.status-occur {
    color: #EF4444;
}

.disaster-detail-status.status-progress {
    color: #F59E0B;
}

.disaster-detail-status.status-done {
    color: #10B981;
}

/* 시설정보 상세현황 섹션 */
.facility-detail-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #fff;
    border-left: 1px solid #e9ecef;
    width: 280px;
    min-width: 280px;
}

.facility-detail-section,
.facility-detail-section *:not(.material-symbols-outlined) {
    font-family: var(--paper) !important;
}

.facility-detail-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    font-family: var(--paper);
    margin: 0;
}

.facility-search-box {
    display: flex;
    gap: 8px;
    width: 100%;
    padding: 0;
    border-bottom: none;
    box-sizing: border-box;
}

.facility-search-input {
    flex: 1;
    padding: 10px 14px;
    background: #F8F9FA;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 13px;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.facility-search-input::placeholder {
    color: #aaa;
}

.facility-count-info {
    font-size: 13px;
    color: #666;
    font-family: var(--paper);
    padding: 0 4px;
}

.facility-count-info strong {
    color: var(--color-primary);
    font-weight: 700;
}

.facility-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

.facility-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 4px;
    border-bottom: 1px solid #F3F4F6;
    transition: background 0.2s;
}

.facility-item:hover {
    background: #F8F9FA;
}

.facility-item:last-child {
    border-bottom: none;
}

.facility-location {
    display: inline-block;
    padding: 2px 0;
    width: 50px;
    text-align: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 600;
    font-family: var(--paper);
    white-space: nowrap;
    flex-shrink: 0;
}

.facility-name {
    flex: 1;
    font-size: 15px;
    font-family: var(--paper);
    color: #333;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.facility-view-btn {
    padding: 3px 12px;
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    background: #fff;
    color: var(--color-primary);
    font-size: 11px;
    font-weight: 600;
    font-family: var(--paper);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.facility-view-btn:hover {
    background: var(--color-primary);
    color: #fff;
}

/* ===== LNB 라디오 패널 (생활지도 2뎁스) ===== */
.lnb-radio-panel {
    flex-direction: column;
    padding: 20px;
    gap: 0;
    width: 240px;
}

.lnb-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 16px;
}

.lnb-panel-icon {
    width: 36px;
    height: 36px;
    object-fit: cover;
    background: var(--color-secondary);
    border-radius: 50%;
    padding: 6px;
    box-sizing: border-box;
}

.lnb-panel-header span {
    font-size: 16px;
    font-weight: 600;
    font-family: var(--paper);
    color: var(--color-secondary);
}

.lnb-radio-group {
    margin-bottom: 20px;
}

.lnb-group-title {
    font-size: 14px;
    font-weight: 700;
    font-family: var(--paper);
    color: #333;
    margin: 0 0 10px;
}

.lnb-radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    cursor: pointer;
    font-size: 14px;
    font-family: var(--paper);
    color: #555;
}

.lnb-radio-item.sub {
    padding-left: 0;
}

.lnb-radio-item input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    width: 14px;
    height: 14px;
    border: 2px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.lnb-radio-item input[type="radio"]:checked {
    border-color: var(--color-primary);
}

.lnb-radio-item input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.lnb-radio-item input[type="radio"]:checked + span {
    color: var(--color-primary);
    font-weight: 600;
}

/* ===== 지도 위 범례 패널 ===== */
.map-legend-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 20;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    padding: 8px 0;
    width: 280px;
}

.legend-panel-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.legend-panel-item:last-child {
    border-bottom: none;
}

.legend-panel-icon {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.legend-panel-label {
    flex: 1;
    font-size: 14px;
    font-family: var(--paper);
    font-weight: 500;
    color: #333;
}

/* 토글 스위치 */
.legend-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

.legend-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #ccc;
    border-radius: 24px;
    transition: background 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.3s;
}

.legend-toggle input:checked + .toggle-slider {
    background: #3B82F6;
}

.legend-toggle input:checked + .toggle-slider::before {
    transform: translateX(20px);
}

/* 닫기 버튼 */
.legend-close-btn {
    width: 24px;
    height: 24px;
    border: none;
    background: #e5e7eb;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.legend-close-btn .material-symbols-outlined {
    font-size: 16px;
}

.legend-close-btn:hover {
    background: #d1d5db;
}

/* ===== LNB 아이콘 리스트 (시설정보) ===== */
.lnb-icon-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e9ecef;
}

.lnb-icon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 6px;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 16px;
    font-family: var(--paper);
    color: #555;
}

.lnb-icon-item:hover {
    background: #f5f5f5;
}

.lnb-icon-item.active {
    color: var(--color-secondary);
    font-weight: 600;
}

.lnb-icon-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c4c4c4;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.lnb-icon-item.active .lnb-icon-circle {
    background: var(--color-secondary);
}

.lnb-icon-circle img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ===== 인구정보 차트 패널 ===== */
.pop-chart-panel {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 380px;
    min-width: 380px;
    overflow-y: auto;
    border-radius: 12px;
    flex-shrink: 0;
    align-self: stretch;
    min-height: 0;
}

.pop-chart-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.pop-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.pop-chart-header h4 {
    font-size: 16px;
    font-weight: 700;
    font-family: var(--paper);
    color: #333;
    margin: 0;
}

.pop-chart-date {
    font-size: 12px;
    color: #999;
    font-family: var(--paper);
}

.pop-chart-body {
    position: relative;
    flex: 1;
    min-height: 0;
    margin-bottom: 12px;
}

.pop-chart-body > div {
    width: 100% !important;
    height: 100% !important;
}

.pop-chart-legend {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    font-size: 13px;
    font-family: var(--paper);
    color: #555;
    margin-bottom: 8px;
}

.pop-chart-legend.age {
    flex-wrap: wrap;
    gap: 10px;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 4px;
}

.legend-dot.male { background: #3B82F6; }
.legend-dot.female { background: #EC4899; }
.legend-dot.age0 { background: #60A5FA; }
.legend-dot.age10 { background: #34D399; }
.legend-dot.age20 { background: #FBBF24; }
.legend-dot.age30 { background: #F87171; }
.legend-dot.age40 { background: #A78BFA; }
.legend-dot.age50 { background: #9CA3AF; }
.legend-dot.age60 { background: #F43F5E; }

.pop-chart-source {
    text-align: right;
    font-size: 11px;
    color: #aaa;
    font-family: var(--paper);
}

/* ===== 반응형 ===== */
/* 생활지도: 반응형에서 높이 제한 해제 */
@media (max-width: 1400px) {
    .dashboard-grid:has(.pop-chart-panel) {
        height: auto;
        overflow: visible;
    }

    .dashboard-grid:has(.pop-chart-panel) .subpage-layout {
        height: auto;
    }
    .pop-chart-panel {
        width: 100%;
        min-width: unset;
        order: 3;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        align-self: auto;
        min-height: auto;
        height: auto;
    }

    .pop-chart-card {
        min-width: 300px;
        flex: 1;
    }

    .pop-chart-body {
        min-height: 200px;
    }

    .lnb-radio-panel {
        width: 200px;
    }

    .facility-detail-section {
        width: 100%;
        min-width: unset;
        order: 2;
        border-left: none;
        border-top: 1px solid #e9ecef;
        max-height: 350px;
    }

    .subpage-body:has([data-panel="facility"][style*="flex"]) .subpage-content,
    .subpage-body:has([data-panel="environment"][style*="flex"]) .subpage-content {
        flex: 1;
        height: auto;
        order: 3;
    }

    .subpage-body:has([data-panel="facility"][style*="flex"]),
    .subpage-body:has([data-panel="environment"][style*="flex"]) {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .subpage-body:has([data-panel="facility"][style*="flex"]) .subpage-sidebar,
    .subpage-body:has([data-panel="environment"][style*="flex"]) .subpage-sidebar {
        width: 100%;
        order: 1;
    }

    /* 라디오 → 버튼 스타일 전환 */
    .lnb-radio-panel {
        width: 100%;
        padding: 16px;
    }

    .lnb-panel-header {
        display: flex;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    /* 아이콘 리스트 가로 정렬 */
    .lnb-icon-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
        border-bottom: 1px solid #e9ecef;
        padding-bottom: 12px;
        margin-bottom: 12px;
    }

    .lnb-icon-item {
        padding: 6px 14px;
        border: 1px solid #ddd;
        border-radius: 20px;
        gap: 6px;
        font-size: 13px;
    }

    .lnb-icon-circle {
        width: 24px;
        height: 24px;
    }

    .lnb-icon-circle img {
        width: 14px;
        height: 14px;
    }

    .lnb-radio-group {
        margin-bottom: 12px;
    }

    .lnb-group-title {
        font-size: 13px;
        margin-bottom: 8px;
    }

    .lnb-radio-group {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 8px;
    }

    .lnb-group-title {
        width: 100%;
    }

    .lnb-radio-item {
        display: inline-flex;
        padding: 6px 16px;
        border: 1px solid #ddd;
        border-radius: 20px;
        gap: 0;
        font-size: 13px;
    }

    .lnb-radio-item.sub {
        padding-left: 16px;
    }

    .lnb-radio-item input[type="radio"] {
        display: none;
    }

    .lnb-radio-item:has(input:checked) {
        background: var(--color-primary);
        border-color: var(--color-primary);
        color: #fff;
    }

    .lnb-radio-item:has(input:checked) span {
        color: #fff !important;
        font-weight: 600;
    }

    .lnb-radio-item span {
        color: #555;
    }
}

@media (max-width: 1024px) {
    .pop-chart-panel {
        width: 100%;
        min-width: unset;
        order: 3;
        flex-direction: row;
        overflow-x: auto;
        overflow-y: visible;
        align-self: auto;
        min-height: auto;
        height: auto;
    }

    .pop-chart-card {
        min-width: 300px;
        flex: 1;
    }

    .pop-chart-body {
        min-height: 200px;
    }

    .facility-detail-section {
        width: 100%;
        min-width: unset;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }

    .lnb-radio-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .pop-chart-panel {
        flex-direction: column;
    }

    .pop-chart-card {
        min-width: unset;
    }

    .pop-chart-body {
        min-height: 180px;
    }

    .pop-chart-header h4 {
        font-size: 14px;
    }

    .lnb-panel-header span {
        font-size: 14px;
    }

    /* 시설/도시환경: 상세현황-지도 세로 배치 */
    .subpage-body:has([data-panel="facility"][style*="flex"]),
    .subpage-body:has([data-panel="environment"][style*="flex"]) {
        flex-direction: column;
        flex-wrap: nowrap;
    }

    .facility-detail-section {
        width: 100%;
        min-width: unset;
        max-height: 300px;
        border-left: none;
        border-top: 1px solid #e9ecef;
        padding: 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .facility-search-box {
        max-width: 100%;
        box-sizing: border-box;
    }

    .lnb-radio-panel {
        box-sizing: border-box;
        overflow-x: auto;
    }

    .lnb-radio-item {
        font-size: 13px;
    }
}

