/* ====================================================
   GIS 지도 관리 - 네이버 지도 전용 CSS
   map3.css 기반으로 생성, Leaflet 의존성 제거
   ==================================================== */

/* 메인 컨테이너 */
.map3-container {
    background-color: #0f172a;
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: rgb(226 232 240);
    min-height: 100vh;
    letter-spacing: -0.025em;
    overflow: hidden;
}

.map3-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.map3-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

.map3-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}

/* 좌측 패널 */
.map3-panel {
    width: 320px;
    height: calc(100vh - 7rem);
    margin: 1rem;
    background: rgba(30, 41, 59, 0.85);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    left: 0;
    top: 0;
}

.map3-panel-header {
    padding: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map3-panel-title {
    font-size: 1rem;
    font-weight: 700;
    color: rgb(255 255 255);
}

.map3-panel-subtitle {
    font-size: 0.75rem;
    color: rgb(148 163 184);
    margin-top: 0.25rem;
}

.map3-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map3-panel-body::-webkit-scrollbar {
    width: 4px;
}

.map3-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.map3-panel-body::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

/* 섹션 */
.map3-section {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.map3-section:last-child {
    border-bottom: none;
}

.map3-section-title {
    font-size: 0.875rem;
    font-weight: 700;
    color: rgb(226 232 240);
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.map3-section-icon {
    font-size: 1.125rem;
}

.map3-section-count {
    font-size: 0.625rem;
    color: rgb(148 163 184);
    font-weight: 400;
}

/* ── 아코디언 토글 ── */
.map3-accordion-toggle {
    cursor: pointer;
    padding: 0.625rem 0.5rem;
    border-radius: 0.375rem;
    transition: background-color 150ms;
    user-select: none;
}

.map3-accordion-toggle:hover {
    background-color: rgba(255, 255, 255, 0.04);
}

.map3-chevron {
    font-size: 1.25rem;
    color: rgb(148 163 184);
    transition: transform 200ms ease;
    flex-shrink: 0;
}

/* ── 뷰 전환 토글 (드롭다운 / 트리) ── */
.map3-view-toggle {
    display: flex;
    gap: 0.25rem;
    margin: 0.5rem 0;
    padding: 0.25rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    border: 1px solid rgb(51 65 85);
}

.map3-view-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.375rem;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: rgb(148 163 184);
    cursor: pointer;
    transition: all 150ms;
}

.map3-view-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

.map3-view-btn:hover {
    color: rgb(226 232 240);
    background: rgba(51, 65, 85, 0.5);
}

.map3-view-btn-active {
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.map3-view-btn-active:hover {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

/* ── 셀렉트 (드롭다운 모드) ── */
.map3-select-grid-3depth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map3-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    background-color: rgb(15 23 42);
    border: 1px solid rgb(51 65 85);
    border-radius: 0.5rem;
    color: rgb(226 232 240);
    font-size: 0.75rem;
    cursor: pointer;
    outline: none;
    transition: all 150ms;
    height: 36px;
}

.map3-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px #3b82f6;
}

.map3-select:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── 트리 뷰 ── */
.map3-tree {
    max-height: 400px;
    overflow-y: auto;
    padding: 0.25rem 0;
}

.map3-tree::-webkit-scrollbar {
    width: 4px;
}

.map3-tree::-webkit-scrollbar-track {
    background: transparent;
}

.map3-tree::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 10px;
}

.map3-tree-node {
    display: flex;
    flex-direction: column;
}

.map3-tree-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: background-color 120ms;
    user-select: none;
}

.map3-tree-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.map3-tree-selected {
    background: rgba(59, 130, 246, 0.15) !important;
    outline: 1px solid rgba(59, 130, 246, 0.3);
}

.map3-tree-depth0 {
    padding-left: 0.25rem;
    font-weight: 600;
    font-size: 0.8125rem;
}

.map3-tree-depth1 {
    padding-left: 1.5rem;
    font-weight: 500;
    font-size: 0.775rem;
    color: rgb(203 213 225);
}

.map3-tree-depth2 {
    padding-left: 3rem;
    font-weight: 400;
    font-size: 0.75rem;
    color: rgb(148 163 184);
}

.map3-tree-toggle {
    font-size: 1.125rem;
    color: rgb(148 163 184);
    cursor: pointer;
    flex-shrink: 0;
    transition: color 120ms;
}

.map3-tree-toggle:hover {
    color: #60a5fa;
}

.map3-tree-folder {
    font-size: 1rem;
    color: #f59e0b;
    flex-shrink: 0;
}

.map3-tree-leaf {
    font-size: 0.875rem;
    color: #60a5fa;
    flex-shrink: 0;
    margin-left: 0.125rem;
}

.map3-tree-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ── 레이어 그리드 ── */
.map3-layer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.map3-layer-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    min-height: 64px;
    border-radius: 0.5rem;
    border: 1px solid rgb(51 65 85);
    background-color: rgba(30, 41, 59, 0.5);
    transition: all 150ms;
    cursor: pointer;
}

.map3-layer-chip:hover {
    border-color: #3b82f6;
}

.map3-layer-chip-active {
    border-color: #3b82f6;
    background-color: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.map3-layer-checkbox {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 0.25rem;
    color: #3b82f6;
    cursor: pointer;
}

.map3-layer-checkbox:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.map3-layer-icon {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.map3-layer-label {
    font-size: 0.625rem;
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
}

/* ── 범례 ── */
.map3-legend {
    background-color: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    padding: 0.75rem;
    border: 1px solid rgb(30, 41, 59);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.map3-legend-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map3-legend-category {
    font-size: 0.625rem;
    font-weight: 700;
    color: rgb(100 116 139);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid rgb(30, 41, 59);
    padding-bottom: 0.25rem;
}

.map3-legend-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.map3-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map3-legend-dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 9999px;
}

.map3-legend-text {
    font-size: 0.6875rem;
    color: rgb(148 163 184);
}

.map3-legend-pipes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.map3-legend-pipe {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.map3-legend-line {
    width: 2rem;
    border-radius: 9999px;
}

.map3-legend-line-thick {
    height: 3px;
    background-color: #2563eb;
}

.map3-legend-line-dashed {
    height: 2px;
    background-color: #6366f1;
    border-bottom: 2px dashed rgba(99, 102, 241, 0.3);
}

.map3-legend-line-thin {
    height: 1.5px;
    background-color: #0891b2;
}

/* ── 패널 푸터 ── */
.map3-panel-footer {
    padding: 0.5rem 1rem;
    background-color: rgb(15, 23, 42);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ── 지도 컨테이너 ── */
.map3-map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: rgb(2, 6, 23);
}

/* 네이버 지도 컨테이너 */
.naver-map-container {
    width: 100%;
    height: 100%;
}

/* 상단 플로팅 상태 필터 */
.map3-status-filter {
    position: absolute;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    border-radius: 2rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.map3-status-chip {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.85rem;
    border-radius: 1.25rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(100, 116, 139, 0.6);
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(71, 85, 105, 0.3);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.map3-status-chip:hover {
    background: rgba(51, 65, 85, 0.6);
    color: rgba(226, 232, 240, 0.9);
    border-color: rgba(148, 163, 184, 0.4);
}

.map3-status-chip-active {
    background: rgba(59, 130, 246, 0.2);
    color: #f1f5f9;
    border: 1.5px solid rgba(96, 165, 250, 0.6);
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.3);
}

.map3-status-chip-active:hover {
    background: rgba(59, 130, 246, 0.3);
    border-color: rgba(96, 165, 250, 0.8);
}

.map3-status-chip-disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.map3-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── 마커 ── */
.map3-marker {
    position: absolute;
}

.map3-marker-pulse {
    position: absolute;
    inset: -0.75rem;
    background-color: rgba(59, 130, 246, 0.2);
    border-radius: 9999px;
    animation: map3-pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes map3-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.map3-marker-pin {
    position: relative;
    cursor: pointer;
    background-color: #3b82f6;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 9999px;
    border: 2px solid white;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.map3-marker-icon {
    font-size: 0.875rem;
    color: white;
}

.map3-marker-small {
    position: absolute;
}

.map3-marker-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 9999px;
    border: 2px solid white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 150ms;
}

.map3-marker-dot:hover {
    transform: scale(1.25);
}

/* ── 팝업 ── */
.map3-popup {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    background-color: rgb(15, 23, 42);
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgb(51 65 85);
    overflow: hidden;
    z-index: 50;
}

.map3-popup-header {
    background-color: #3b82f6;
    padding: 0.625rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map3-popup-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
}

.map3-popup-title .material-symbols-outlined {
    font-size: 1rem;
}

.map3-popup-close {
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 150ms;
}

.map3-popup-close:hover {
    color: white;
}

.map3-popup-close .material-symbols-outlined {
    font-size: 0.875rem;
}

.map3-popup-body {
    padding: 0;
}

.map3-popup-table {
    width: 100%;
    border-collapse: collapse;
}

.map3-popup-table tr {
    border-bottom: 1px solid rgb(51 65 85);
}

.map3-popup-table td:first-child {
    background-color: rgb(30, 41, 59);
    color: rgb(148, 163, 184);
    font-weight: 600;
    font-size: 0.6875rem;
    width: 90px;
    padding: 0.375rem 0.5rem;
}

.map3-popup-table td:last-child {
    background-color: rgb(15, 23, 42);
    color: rgb(241, 245, 249);
    font-size: 0.75rem;
    padding: 0.375rem 0.625rem;
}

.map3-popup-highlight {
    font-weight: 700;
    color: #3b82f6 !important;
}

.map3-popup-footer {
    padding: 0.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-top: 1px solid rgb(51 65 85);
}

.map3-popup-button {
    width: 100%;
    padding: 0.5rem 0;
    background-color: rgb(30, 41, 59);
    border: 1px solid rgb(51 65 85);
    border-radius: 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: rgb(203, 213, 225);
    cursor: pointer;
    transition: background-color 150ms;
}

.map3-popup-button:hover {
    background-color: rgb(51, 65, 85);
}

.map3-popup-arrow {
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 1rem;
    height: 1rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-right: 1px solid rgb(51 65 85);
    border-bottom: 1px solid rgb(51 65 85);
}

/* ── 컨트롤 버튼 ── */
.map3-controls {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 40;
}

.map3-zoom-controls {
    display: flex;
    flex-direction: column;
    background-color: rgb(15, 23, 42);
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgb(51 65 85);
    overflow: hidden;
}

.map3-zoom-button {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(203, 213, 225);
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 150ms;
}

.map3-zoom-button:hover {
    background-color: rgb(30, 41, 59);
}

.map3-zoom-button:first-child {
    border-bottom: 1px solid rgb(30, 41, 59);
}

.map3-control-button {
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(15, 23, 42);
    border-radius: 0.5rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    border: 1px solid rgb(51 65 85);
    color: rgb(203, 213, 225);
    cursor: pointer;
    transition: background-color 150ms;
}

.map3-control-button:hover {
    background-color: rgb(30, 41, 59);
}

.map3-control-button-active {
    color: #3b82f6;
}

/* ── 정보 바 ── */
.map3-info-bar {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    z-index: 40;
    background-color: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid rgb(51 65 85);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.map3-info-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.6875rem;
    font-weight: 500;
    color: rgb(226, 232, 240);
}

.map3-info-icon {
    font-size: 0.875rem;
}

.map3-info-divider {
    height: 0.75rem;
    width: 1px;
    background-color: rgb(51, 65, 85);
}

/* ====================================================
   수도계량기 전용 팝업 스타일 (네이버 InfoWindow용)
   ==================================================== */

/* 수도계량기 팝업 메인 컨테이너 */
.wm-popup {
    width: 320px;
    background-color: rgb(15, 23, 42);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgb(51, 65, 85);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
}

/* 헤더 */
.wm-popup-header {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    padding: 0.75rem 1rem;
}

.wm-popup-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.wm-popup-title .material-symbols-outlined {
    font-size: 1.25rem;
}

/* 바디 */
.wm-popup-body {
    padding: 0;
}

/* 테이블 */
.wm-popup-table {
    width: 100%;
    border-collapse: collapse;
}

.wm-popup-table tr {
    border-bottom: 1px solid rgb(51, 65, 85);
}

.wm-popup-table tr:last-child {
    border-bottom: none;
}

.wm-popup-table td:first-child {
    background-color: rgb(30, 41, 59);
    color: rgb(148, 163, 184);
    font-weight: 600;
    font-size: 0.6875rem;
    width: 90px;
    padding: 0.5rem 0.75rem;
    white-space: nowrap;
}

.wm-popup-table td:last-child {
    background-color: rgb(15, 23, 42);
    color: rgb(241, 245, 249);
    font-size: 0.75rem;
    padding: 0.5rem 0.75rem;
}

/* 하이라이트 (구경 등) */
.wm-highlight {
    font-weight: 700;
    color: #3b82f6 !important;
}

/* 조사상태 뱃지 */
.wm-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wm-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* 푸터 */
.wm-popup-footer {
    padding: 0.5rem;
    background-color: rgba(30, 41, 59, 0.5);
    border-top: 1px solid rgb(51, 65, 85);
}

.wm-popup-button {
    width: 100%;
    padding: 0.5rem 0;
    background-color: rgb(30, 41, 59);
    border: 1px solid rgb(51, 65, 85);
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(203, 213, 225);
    cursor: pointer;
    transition: background-color 0.2s;
}

.wm-popup-button:hover {
    background-color: rgb(51, 65, 85);
}

/* ====================================================
   네이버 지도 전용 스타일
   ==================================================== */

/* 네이버 지도 InfoWindow 커스텀 스타일 */
.naver-infowindow {
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
}

/* 네이버 클러스터 마커 스타일 */
.naver-cluster-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 2px solid white;
    cursor: pointer;
    transition: transform 0.15s ease;
}

.naver-cluster-marker:hover {
    transform: scale(1.1);
}

/* 블록 마커 스타일 */
.naver-block-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.naver-block-marker:hover {
    transform: scale(1.05);
}

/* 시설물 마커 아이콘 */
.naver-facility-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.naver-facility-marker:hover {
    transform: scale(1.15);
}

.naver-facility-marker .material-symbols-outlined {
    font-size: 16px;
    color: white;
}

/* ====================================================
   블록 클러스터 팝업 (12종 시설물 테이블)
   ==================================================== */
.block-popup {
    width: 340px;
    background-color: rgb(15, 23, 42);
    border-radius: 0.5rem;
    overflow: hidden;
    border: 1px solid rgb(51, 65, 85);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

.block-popup-header {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.block-popup-header.block-large {
    background: linear-gradient(135deg, #4c1d95, #5b21b6);
}

.block-popup-header.block-medium {
    background: linear-gradient(135deg, #1e40af, #2563eb);
}

.block-popup-header.block-small {
    background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.block-popup-title {
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
}

.block-popup-body {
    padding: 0.75rem;
}

.block-popup-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
}

.block-popup-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0.5rem;
    background: rgba(30, 41, 59, 0.5);
    border-radius: 0.375rem;
}

.block-popup-item-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.block-popup-item-icon .material-symbols-outlined {
    font-size: 14px;
    color: white;
}

.block-popup-item-label {
    flex: 1;
    font-size: 0.6875rem;
    color: rgb(148, 163, 184);
}

.block-popup-item-count {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgb(226, 232, 240);
}

.block-popup-footer {
    padding: 0.5rem;
    border-top: 1px solid rgb(51, 65, 85);
}

.block-popup-drilldown {
    width: 100%;
    padding: 0.5rem;
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 0.375rem;
    color: #60a5fa;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.15s ease;
}

.block-popup-drilldown:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
}

.block-popup-drilldown .material-symbols-outlined {
    font-size: 1rem;
}

/* ====================================================
   로딩 오버레이
   ==================================================== */
.map3-loading-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.map3-loading-spinner {
    width: 48px;
    height: 48px;
    border: 3px solid rgba(59, 130, 246, 0.2);
    border-top-color: #3b82f6;
    border-radius: 50%;
    animation: map3-spin 1s linear infinite;
}

@keyframes map3-spin {
    to { transform: rotate(360deg); }
}
