/* GIS 지도 관리 페이지 전용 CSS */

/* 메인 컨테이너 */
.map2-container {
    background-color: #0f172a;
    /* dashboard-bg */
    font-family: 'Inter', 'Noto Sans KR', sans-serif;
    color: rgb(226 232 240);
    /* slate-200 */
    min-height: 100vh;
    letter-spacing: -0.025em;
    overflow: hidden;
}

/* 래퍼 */
.map2-wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

/* 메인 콘텐츠 영역 */
.map2-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    overflow: hidden;
}

/* 콘텐츠 컨테이너 */
.map2-content {
    flex: 1;
    display: flex;
    flex-direction: row;
    position: relative;
    overflow: hidden;
}

/* 좌측 패널 */
.map2-panel {
    width: 320px;
    /* w-80 */
    height: calc(100vh - 7rem);
    margin: 1rem;
    /* m-4 */
    background: rgba(30, 41, 59, 0.85);
    /* panel-bg with opacity */
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    /* rounded-xl */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 10px 10px -5px rgba(0, 0, 0, 0.3);
    /* shadow-2xl */
    z-index: 40;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: absolute;
    left: 0;
    /* AppSidebar가 없으므로 left: 0 */
    top: 0;
}

/* 패널 헤더 */
.map2-panel-header {
    padding: 1.25rem;
    /* p-5 */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.map2-panel-title {
    font-size: 1rem;
    /* text-base */
    font-weight: 700;
    color: rgb(255 255 255);
    /* white */
}

.map2-panel-subtitle {
    font-size: 0.75rem;
    /* text-xs */
    color: rgb(148 163 184);
    /* slate-400 */
    margin-top: 0.25rem;
    /* mt-1 */
}

/* 패널 바디 */
.map2-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    /* p-4 */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* space-y-6 */
}

/* 커스텀 스크롤바 */
.map2-panel-body::-webkit-scrollbar {
    width: 4px;
}

.map2-panel-body::-webkit-scrollbar-track {
    background: transparent;
}

.map2-panel-body::-webkit-scrollbar-thumb {
    background: #475569;
    /* slate-600 */
    border-radius: 10px;
}


.map2-section-title {
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 700;
    color: rgb(226 232 240);
    /* slate-200 */
    margin-bottom: 0.75rem;
    /* mb-3 */
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    /* gap-2 */
}

.map2-section-icon {
    font-size: 1.125rem;
    /* text-[18px] */
}

.map2-section-count {
    font-size: 0.625rem;
    /* text-[10px] */
    color: rgb(148 163 184);
    /* slate-400 */
    font-weight: 400;
}

/* 셀렉트 그리드 */
.map2-select-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    /* gap-2 */
}

.map2-select-grid-3depth {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* gap-2 */
}

.map2-select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    /* py-2 px-3 */
    background-color: rgb(15 23 42);
    /* dashboard-bg */
    border: 1px solid rgb(51 65 85);
    /* panel-border */
    border-radius: 0.5rem;
    /* rounded-lg */
    color: rgb(226 232 240);
    /* slate-200 */
    font-size: 0.75rem;
    /* text-xs */
    cursor: pointer;
    outline: none;
    transition: all 150ms;
    height: 36px;
    /* h-9 */
}

.map2-select:focus {
    border-color: #3b82f6;
    /* primary */
    box-shadow: 0 0 0 1px #3b82f6;
}

/* 레이어 그리드 */
.map2-layer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    /* gap-2 */
}

.map2-layer-chip {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    /* p-2 */
    min-height: 64px;
    border-radius: 0.5rem;
    /* rounded-lg */
    border: 1px solid rgb(51 65 85);
    /* border-slate-700 */
    background-color: rgba(30, 41, 59, 0.5);
    /* bg-slate-800/50 */
    transition: all 150ms;
    cursor: pointer;
}

.map2-layer-chip:hover {
    border-color: #3b82f6;
    /* primary */
}

.map2-layer-chip-active {
    border-color: #3b82f6;
    /* primary */
    background-color: rgba(59, 130, 246, 0.1);
    /* bg-primary/10 */
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.3);
}

.map2-layer-checkbox {
    position: absolute;
    top: 0.25rem;
    /* top-1 */
    right: 0.25rem;
    /* right-1 */
    width: 0.75rem;
    /* w-3 */
    height: 0.75rem;
    /* h-3 */
    border-radius: 0.25rem;
    /* rounded */
    color: #3b82f6;
    /* primary */
    cursor: pointer;
}

.map2-layer-checkbox:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 1px;
}

.map2-layer-icon {
    font-size: 1.125rem;
    /* text-[18px] */
    margin-bottom: 0.25rem;
    /* mb-1 */
}

.map2-layer-label {
    font-size: 0.625rem;
    /* text-[10px] */
    font-weight: 500;
    text-align: center;
    line-height: 1.25;
    /* leading-tight */
}

/* 범례 */
.map2-legend {
    background-color: rgba(15, 23, 42, 0.5);
    /* bg-slate-900/50 */
    border-radius: 0.5rem;
    /* rounded-lg */
    padding: 0.75rem;
    /* p-3 */
    border: 1px solid rgb(30, 41, 59);
    /* border-slate-800 */
    display: flex;
    flex-direction: column;
    gap: 1rem;
    /* space-y-4 */
}


.map2-legend-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* space-y-2 */
}

.map2-legend-category {
    font-size: 0.625rem;
    /* text-[10px] */
    font-weight: 700;
    color: rgb(100 116 139);
    /* slate-500 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    /* tracking-wider */
    border-bottom: 1px solid rgb(30, 41, 59);
    /* border-slate-800 */
    padding-bottom: 0.25rem;
    /* pb-1 */
}

.map2-legend-items {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    /* gap-y-2 */
}

.map2-legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
}

.map2-legend-dot {
    width: 0.625rem;
    /* size-2.5 */
    height: 0.625rem;
    border-radius: 9999px;
    /* rounded-full */
}

.map2-legend-text {
    font-size: 0.6875rem;
    /* text-[11px] */
    color: rgb(148 163 184);
    /* slate-400 */
}

.map2-legend-pipes {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    /* space-y-2 */
}

.map2-legend-pipe {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    /* gap-3 */
}

.map2-legend-line {
    width: 2rem;
    /* w-8 */
    border-radius: 9999px;
    /* rounded-full */
}

.map2-legend-line-thick {
    height: 3px;
    /* h-[3px] */
    background-color: #2563eb;
    /* blue-600 */
}

.map2-legend-line-dashed {
    height: 2px;
    /* h-[2px] */
    background-color: #6366f1;
    /* indigo-500 */
    border-bottom: 2px dashed rgba(99, 102, 241, 0.3);
}

.map2-legend-line-thin {
    height: 1.5px;
    /* h-[1.5px] */
    background-color: #0891b2;
    /* cyan-600 */
}

/* 패널 푸터 */
.map2-panel-footer {
    padding: 1rem;
    /* p-4 */
    background-color: rgb(15, 23, 42);
    /* bg-slate-900 */
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.map2-sync-button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    /* gap-2 */
    padding: 0.625rem 0;
    /* py-2.5 */
    border-radius: 0.5rem;
    /* rounded-lg */
    background-color: #3b82f6;
    /* primary */
    color: white;
    font-size: 0.875rem;
    /* text-sm */
    font-weight: 700;
    border: none;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.2);
    /* shadow-lg shadow-primary/20 */
    transition: all 150ms;
}

.map2-sync-button:hover {
    filter: brightness(1.1);
}

.map2-sync-button:active {
    transform: scale(0.98);
}

.map2-button-icon {
    font-size: 1.125rem;
    /* text-[18px] */
}

/* 지도 컨테이너 */
.map2-map-container {
    flex: 1;
    position: relative;
    overflow: hidden;
    background-color: rgb(2, 6, 23);
    /* slate-950 */
}

/* 상단 플로팅 상태 필터 */
.map2-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);
}

.map2-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(148, 163, 184, 0.7);
    background: rgba(51, 65, 85, 0.3);
    border: 1px solid rgba(148, 163, 184, 0.1);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    white-space: nowrap;
}

.map2-status-chip:hover {
    background: rgba(51, 65, 85, 0.5);
    color: rgba(226, 232, 240, 0.9);
}

.map2-status-chip-active {
    background: rgba(51, 65, 85, 0.6);
    color: #e2e8f0;
    border-color: rgba(148, 163, 184, 0.25);
}

.map2-status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.map2-map-background {
    width: 100%;
    height: 100%;
    background-image: url('../images/jin-an.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: contrast(1.1) brightness(0.6) saturate(0.8);
}

.map2-map-overlay {
    position: absolute;
    inset: 0;
}

/* 마커 */
.map2-marker {
    position: absolute;
}

.map2-marker-pulse {
    position: absolute;
    inset: -0.75rem;
    /* -inset-3 */
    background-color: rgba(59, 130, 246, 0.2);
    /* primary/20 */
    border-radius: 9999px;
    /* rounded-full */
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: .5;
    }
}

.map2-marker-pin {
    position: relative;
    cursor: pointer;
    background-color: #3b82f6;
    /* primary */
    width: 1.5rem;
    /* size-6 */
    height: 1.5rem;
    border-radius: 9999px;
    /* rounded-full */
    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;
}

.map2-marker-icon {
    font-size: 0.875rem;
    /* text-[14px] */
    color: white;
}

.map2-marker-small {
    position: absolute;
}

.map2-marker-dot {
    width: 0.75rem;
    /* size-3 */
    height: 0.75rem;
    border-radius: 9999px;
    /* rounded-full */
    border: 2px solid white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    cursor: pointer;
    transition: transform 150ms;
}

.map2-marker-dot:hover {
    transform: scale(1.25);
}

/* 팝업 */
.map2-popup {
    position: absolute;
    bottom: 2.5rem;
    /* bottom-10 */
    left: 50%;
    transform: translateX(-50%);
    width: 320px;
    /* w-80 */
    background-color: rgb(15, 23, 42);
    /* slate-900 */
    border-radius: 0.5rem;
    /* rounded-lg */
    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);
    /* slate-700 */
    overflow: hidden;
    z-index: 50;
}

.map2-popup-header {
    background-color: #3b82f6;
    /* primary */
    padding: 0.625rem 1rem;
    /* px-4 py-2.5 */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.map2-popup-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    /* gap-2 */
    color: white;
    font-size: 0.75rem;
    /* text-xs */
    font-weight: 700;
}

.map2-popup-title .material-symbols-outlined {
    font-size: 1rem;
    /* text-base */
}

.map2-popup-close {
    color: rgba(255, 255, 255, 0.8);
    background: none;
    border: none;
    cursor: pointer;
    transition: color 150ms;
}

.map2-popup-close:hover {
    color: white;
}

.map2-popup-close .material-symbols-outlined {
    font-size: 0.875rem;
    /* text-sm */
}

.map2-popup-body {
    padding: 0;
}

.map2-popup-table {
    width: 100%;
    border-collapse: collapse;
}

.map2-popup-table tr {
    border-bottom: 1px solid rgb(51 65 85);
    /* slate-700 */
}

.map2-popup-table td:first-child {
    background-color: rgb(30, 41, 59);
    /* slate-800 */
    color: rgb(148, 163, 184);
    /* slate-400 */
    font-weight: 600;
    font-size: 0.6875rem;
    /* text-[11px] */
    width: 90px;
    padding: 0.375rem 0.5rem;
    /* py-1.5 px-2 */
}

.map2-popup-table td:last-child {
    background-color: rgb(15, 23, 42);
    /* slate-900 */
    color: rgb(241, 245, 249);
    /* slate-100 */
    font-size: 0.75rem;
    /* text-[12px] */
    padding: 0.375rem 0.625rem;
    /* py-1.5 px-2.5 */
}

.map2-popup-highlight {
    font-weight: 700;
    color: #3b82f6 !important;
    /* primary */
}

.map2-popup-footer {
    padding: 0.5rem;
    /* p-2 */
    background-color: rgba(30, 41, 59, 0.5);
    /* slate-800/50 */
    border-top: 1px solid rgb(51 65 85);
    /* slate-700 */
}

.map2-popup-button {
    width: 100%;
    padding: 0.5rem 0;
    /* py-2 */
    background-color: rgb(30, 41, 59);
    /* slate-800 */
    border: 1px solid rgb(51 65 85);
    /* slate-700 */
    border-radius: 0.25rem;
    /* rounded */
    font-size: 0.6875rem;
    /* text-[11px] */
    font-weight: 700;
    color: rgb(203, 213, 225);
    /* slate-300 */
    cursor: pointer;
    transition: background-color 150ms;
}

.map2-popup-button:hover {
    background-color: rgb(51, 65, 85);
    /* slate-700 */
}

.map2-popup-arrow {
    position: absolute;
    bottom: -0.5rem;
    /* -bottom-2 */
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 1rem;
    /* w-4 */
    height: 1rem;
    /* h-4 */
    background-color: rgba(30, 41, 59, 0.5);
    /* slate-800/50 */
    border-right: 1px solid rgb(51 65 85);
    border-bottom: 1px solid rgb(51 65 85);
}

/* SVG 파이프 */
.map2-pipe-svg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    width: 100%;
    height: 100%;
    opacity: 0.6;
}

/* 컨트롤 버튼 */
.map2-controls {
    position: absolute;
    top: 1.5rem;
    /* top-6 */
    right: 1.5rem;
    /* right-6 */
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    /* gap-3 */
    z-index: 40;
}

.map2-zoom-controls {
    display: flex;
    flex-direction: column;
    background-color: rgb(15, 23, 42);
    /* slate-900 */
    border-radius: 0.5rem;
    /* rounded-lg */
    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);
    /* slate-700 */
    overflow: hidden;
}

.map2-zoom-button {
    width: 2.75rem;
    /* size-11 */
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(203, 213, 225);
    /* slate-300 */
    background: none;
    border: none;
    cursor: pointer;
    transition: background-color 150ms;
}

.map2-zoom-button:hover {
    background-color: rgb(30, 41, 59);
    /* slate-800 */
}

.map2-zoom-button:first-child {
    border-bottom: 1px solid rgb(30, 41, 59);
    /* slate-800 */
}

.map2-control-button {
    width: 2.75rem;
    /* size-11 */
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgb(15, 23, 42);
    /* slate-900 */
    border-radius: 0.5rem;
    /* rounded-lg */
    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);
    /* slate-700 */
    color: rgb(203, 213, 225);
    /* slate-300 */
    cursor: pointer;
    transition: background-color 150ms;
}

.map2-control-button:hover {
    background-color: rgb(30, 41, 59);
    /* slate-800 */
}

.map2-control-button-active {
    color: #3b82f6;
    /* primary */
}

/* 정보 바 */
.map2-info-bar {
    position: absolute;
    bottom: 1.5rem;
    /* bottom-6 */
    right: 1.5rem;
    /* right-6 */
    z-index: 40;
    background-color: rgba(15, 23, 42, 0.8);
    /* slate-900/80 */
    backdrop-filter: blur(12px);
    padding: 0.5rem 1rem;
    /* px-4 py-2 */
    border-radius: 0.5rem;
    /* rounded-lg */
    border: 1px solid rgb(51 65 85);
    /* slate-700 */
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
    pointer-events: none;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    /* gap-5 */
}

.map2-info-item {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    /* gap-1.5 */
    font-size: 0.6875rem;
    /* text-[11px] */
    font-weight: 500;
    color: rgb(226, 232, 240);
    /* slate-200 */
}

.map2-info-icon {
    font-size: 0.875rem;
    /* text-[14px] */
}

.map2-info-divider {
    height: 0.75rem;
    /* h-3 */
    width: 1px;
    background-color: rgb(51, 65, 85);
    /* slate-700 */
}