/* 스타일 설정 */

@font-face {
    font-family: 'SUIT';
    font-weight: 100;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Thin.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 200;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-ExtraLight.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 300;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 400;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 500;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Medium.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 600;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-SemiBold.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 700;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Bold.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 800;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-ExtraBold.woff2') format('woff2');
}

@font-face {
    font-family: 'SUIT';
    font-weight: 900;
    src: url('https://cdn.jsdelivr.net/gh/sun-typeface/SUIT@2/fonts/static/woff2/SUIT-Heavy.woff2') format('woff2');
}

html, body {
    height: 90%;
    margin: 0;
    font-family: 'SUIT', sans-serif !important;
    font-weight: 400 !important;
    font: inherit;
}



.main-map {
    font-family: Arial, sans-serif; /* 폰트 설정 */
    background-color: #f4f4f9; /* 배경 색상 */
    margin: 0; /* 외부 여백 제거 */
    padding: 0; /* 내부 여백 제거 */
}

.main-map .check-layer {
    display: block;
    position: absolute;
    top: 10px;
    right: 60px;
    transform: translate(0, 0); /* 위치 초기화 */
    width: 300px; /* 레이어 너비 */
    height: 300px; /* 레이어 높이 */
    padding: 0; /* 내부 여백 제거 */
    background-color: #ffffff; /* 배경 색상 */
    border: none; /* 테두리 제거 */
    border-radius: 10px; /* 모서리 둥글게 */
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); /* 그림자 추가 */
    z-index: 500; /* 레이어를 위로 올림 */
}

/* 레이어 헤더 스타일 */
.main-map {
    background-color: #f1f1f1; /* 배경 색상 */
    border-bottom: 1px solid #ddd; /* 아래쪽 테두리 */
    border-top-left-radius: 10px; /* 왼쪽 상단 모서리 둥글게 */
    border-top-right-radius: 10px; /* 오른쪽 상단 모서리 둥글게 */
}

/* 드래그 중 커서 스타일 */
.main-map .layer-header:active {
    cursor: grabbing; /* 드래그 중 커서 스타일 */
}

/* 드래그 가능한 리스트 스타일 */
.main-map .draggable-checkbox-list {
    list-style: none; /* 리스트 스타일 제거 */
    margin: 0; /* 외부 여백 제거 */
    padding: 0; /* 내부 여백 제거 */
    background-color: rgb(221,235,253);
}

.draggable-checkbox-list li {
    display: flex;
    align-items: center; /* 수직 가운데 정렬 */
    gap: 10px; /* 각 요소 사이의 간격 */
    padding: 5px 10px; /* 내부 여백 */
    border-bottom: 1px solid #ddd;
    background-color: rgb(221,235,253); /* 리스트 항목 구분선 */
}

.draggable-checkbox-list li img {
    margin: 0; /* 이미지 기본 여백 제거 */
    filter: invert(21%) sepia(96%) saturate(5590%) hue-rotate(209deg) brightness(97%) contrast(102%);

}

.draggable-checkbox-list li label {
    flex-grow: 1; /* 라벨이 가로로 확장 */
}


/* 리스트 항목 스타일 */
.main-map .draggable-checkbox-list li {
    display: flex; /* 가로 정렬 */
    align-items: center; /* 세로 중앙 정렬 */
    padding: 10px; /* 내부 여백 */
    margin-bottom: 10px; /* 아래쪽 여백 */
    background-color: rgb(221,235,253);
    border-radius: 5px; /* 모서리 둥글게 */
    cursor: grab; /* 기본 커서 */
    transition: transform 0.2s ease, opacity 0.2s ease; /* 애니메이션 */
}

/* 드래그 중 항목 스타일 */
.main-map .draggable-checkbox-list li.dragging {
    opacity: 0.5; /* 투명도 감소 */
}

/* 드래그 대상 위치를 나타내는 플레이스홀더 */
.main-map .draggable-checkbox-list li.placeholder {
    background-color: #e9ecef; /* 배경 색상 */
    border: 1px dashed #bbb; /* 대시된 테두리 */
    height: 50px; /* 높이 설정 */
}

/* 스크롤 가능한 레이어 콘텐츠 */
.layer-content {
    overflow-y: auto; /* 세로 스크롤 활성화 */
    max-height: calc(100% - 90px); /* 푸터를 제외한 영역에 맞게 스크롤 영역 설정 */
    margin: 10px; /* 푸터와 콘텐츠 간 공간 확보 */
    box-sizing: border-box; /* 패딩 포함 크기 계산 */
    
}

/* 슬라이드 메뉴 컨테이너 스타일 */
.menu {
    z-index: 500;
    position: absolute;
    top: 0;
    left: 0;
    width: 400px;
    height: 100%;
    background-color: white;
    color: black;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
    overflow-y: auto;
    transition: left 0.3s ease; /* 슬라이드 애니메이션 */
    overflow-x: hidden; /* 가로 스크롤 숨김 */
}

/* 메뉴 숨김 상태 */
.menu.hidden {
    left: -400px; /* 메뉴를 화면 왼쪽으로 숨김 */
}

/* 메뉴 헤더 스타일 */
.menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: rgb(221,235,253);
    border-bottom: 1px solid rgb(221,235,253);
}

/* 닫기 버튼 스타일 */
.menu-header button {
    background-color: transparent;
    border: none;
    color: black;
    font-size: 20px;
    cursor: pointer;
}

.menu-header button:hover {
    color: #555;
}

/* 공통 버튼 스타일 */
.swap-button {
    display: flex; /* 버튼들을 가로로 배치 */
    justify-content: space-between; /* 버튼 간의 간격 균등하게 배치 */
    gap: 10px; /* 버튼 간격 */
    padding: 1px; /* 버튼 컨테이너 여백 */
    background-color: rgb(221,235,253);
}

/* 버튼 기본 스타일 */
.swap-button button {
    flex: 1; /* 버튼 크기를 균등하게 설정 */
    background-color: rgb(221,235,253);
    border: 2px solid #007bff; /* 테두리: 파란색 */
    border-radius: 5px; /* 모서리 둥글게 */
    color: #007bff; /* 텍스트 색상: 파란색 */
    font-size: 17px; /* 글꼴 크기 */
    padding: 10px 20px; /* 내부 여백 */
    margin: 5px; /* 버튼 간격 */
    cursor: pointer; /* 커서 모양 */
    transition: all 0.3s ease; /* 전환 효과 */
    text-align: center; /* 텍스트 가운데 정렬 */
}

/* 버튼에 마우스를 올렸을 때 */
.swap-button button.on, .swap-button button:hover {
    background-color: #007bff; /* 호버 배경색: 파란색 */
    color: #ffffff; /* 호버 텍스트 색상: 흰색 */
}

/* 버튼이 활성화(클릭)되었을 때 */
.swap-button button.active {
    background-color: #007bff; /* 배경색: 파란색 */
    color: #ffffff; /* 텍스트 색상: 흰색 */
    border-color: #007bff; /* 테두리 색상: 파란색 */
}

/* 검색창 스타일 */
.menu-search {
    display: flex;                  /* 입력창과 버튼을 가로로 배치 */
    align-items: center;            /* 세로 중앙 정렬 */
    justify-content: center;        /* 가운데 정렬 */
    padding: 5px;                   /* 내부 여백 */
    width: 100%;                    /* 전체 너비 */
    max-width: 100%;                /* 최대 너비를 100%로 설정 */
    margin: 0 auto;                 /* 가운데 정렬 */
    background-color: rgb(221, 235, 253); /* 배경색을 100%로 적용 */
    box-sizing: border-box;         /* 패딩과 테두리를 포함한 크기 계산 */
}

/* 입력창 스타일 */
.menu-search input {
    flex: 1;                         /* 입력창이 가능한 최대 너비를 차지 */
    padding: 8px 10px;               /* 내부 여백 */
    border: 1px solid #ddd;          /* 연한 회색 테두리 */
    border-right: none;              /* 버튼과 연결되게 오른쪽 테두리 제거 */
    border-radius: 5px 0 0 5px;      /* 왼쪽 모서리 둥글게 */
    font-size: 14px;                 /* 글꼴 크기 */
    color: #bbb;                     /* 글자 색상 */
    outline: none;                   /* 포커스 시 외곽선 제거 */
    box-sizing: border-box;
    width: calc(85% - 70px);         /* 초기화 버튼을 제외한 너비 계산 (90%) */
}

/* 초기화 버튼 */
.reset-button {
    padding: 8px 15px;               /* 내부 여백 */
    font-size: 14px;                 /* 글자 크기 */
    border: none;                    /* 테두리 제거 */
    border-radius: 0 5px 5px 0;      /* 오른쪽 모서리 둥글게 */
    background-color: #ff7f3f;       /* 주황색 배경 */
    color: white;                    /* 흰색 글자 */
    font-weight: bold;               /* 굵은 글자 */
    cursor: pointer;                 /* 마우스 오버 시 포인터 표시 */
    transition: background-color 0.3s ease; /* 색상 전환 효과 */
    width: 80px;                     /* 버튼 고정 너비 */
    text-align: center;              /* 텍스트 가운데 정렬 */
}

/* 초기화 버튼 호버 효과 */
.reset-button:hover {
    background-color: #ff5c1b;       /* 마우스 오버 시 더 어두운 주황색 */
}


/* 메뉴 리스트 스타일 */
.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    background-color: #ffffff;
}

.menu ul li:hover {
    background-color: #ffffff;
    cursor: pointer;
}

.menu ul li .submenu.active {
    max-height: 10000px; /* 서브메뉴가 표시됨 */
    margin-top: 15px; /* 상위 메뉴와 하위 메뉴 간격 추가 */
}

.menu ul li {
    border-bottom: 1px solid rgb(221, 235, 253);
    position: relative;
    font-size: 18px;
    font-weight: bold;
    background-color: #ffffff;
    color: #343a40;
    border-bottom: 1px solid rgb(221, 235, 253);
    cursor: pointer;
    padding: 20px; /* 상위 메뉴 패딩 추가로 여유 공간 확보 */
    border-bottom: 1px solid rgb(221, 235, 253);
    align-items: center;
}

/* 서브메뉴 기본 숨김 상태 */
.menu ul li .submenu {
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column; /* 세로 정렬 */
    padding: 0;
    list-style: none;
    background-color: #ffffff; /* 기본 흰색 배경 */
    border-left: 3px solid rgb(221, 235, 253); /* 옅은 색상 강조 */
    border-left: 3px solid rgb(221, 235, 253); /* 강조선 */
}

.menu ul li .submenu li {
    text-align: left;
    border-bottom: none;
    align-items: center;
    font-size: 16px;
    color: #495057;
    background-color: #ffffff; /* 하위 메뉴 기본 배경 */
    border-bottom: 1px solid rgb(221, 235, 253);
    cursor: pointer;
    padding: 15px 20px; /* 하위 메뉴 아이템 여유 공간 */
    border-bottom: 1px solid rgb(221, 235, 253);
    display: block; /* 수직 정렬 유지 */
}

.menu ul li .submenu li.check-item {
    display: flex; /* 수평 정렬 */
    align-items: center; /* 체크박스와 텍스트 정렬 */
    gap: 10px; /* 체크박스와 텍스트 간 간격 */
}

/* 하위 메뉴 Hover 효과 */
.menu ul li .submenu li:hover {
    background-color: #f8f9fa; /* 옅은 회색으로 강조 */
}

/* 상위 메뉴 Hover 효과 */
.menu ul li:hover {
    background-color: rgb(221, 235, 253); /* 조금 더 진한 회색 */
}

.menu ul li .submenu li input[type="checkbox"] {
    width: 16px;
    height: 16px;
}

.menu ul li .submenu-item {
    display: block;
    color: black;
    cursor: pointer;
}

.menu ul li .submenu-item:hover {
    text-decoration: underline;
}

/* 서브메뉴 활성화 상태 */
.menu ul li.active .submenu {
    max-height: 10000px; /* 서브메뉴가 표시됨 */
}

/* 메뉴 버튼 스타일 */
.menu-button {
    display: flex;
    align-items: center; /* 수직 중앙 정렬 */
    justify-content: center; /* 가로 중앙 정렬 */
    top: 50%;
    left: 10px;
    position: absolute;
    z-index: 1001;
    width: 40px; /* Small square button */
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.menu-button:focus {
    /*outline: none;*/
}

.menu-button.hidden {
    transform: rotate(180deg); /* 180도 회전 */
    left: 375px;
}

.overlay-button-container {
    position: absolute;
    top: 10px; /* Slightly offset from the top */
    right: 10px; /* Slightly offset from the right */
    display: flex;
    flex-direction: column; /* Arrange buttons vertically */
    gap: 10px;
    z-index: 500; /* Ensure it appears above other elements */
}
.overlay-button-containerBtn {
    width: 40px; /* Small square button */
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.overlay-button-containerBtn.active {
    width: 40px; /* Small square button */
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: rgba(120, 120, 120, 0.6);
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

.overlay-button-container button:hover {
    background-color: rgba(120, 120, 120, 0.6); /* Darker semi-transparent background on hover */
}

.map {
    width: 100%;
    height: 100%;
}

.search-list-visible {
    display: block !important; /* 강제로 표시 */
}

.search-list {
    display: none; /* 기본 숨김 */
    position: absolute;
    left: 0;
    top: 110px;
    width: 100%;
    max-height: 250px;
    overflow-y: auto;
    background: #ffffff;
    border: 1px solid #ccc;
    border-radius: 5px;
    list-style: none;
    padding: 5px 0;
    margin: 5px 0 0 0;
    z-index: 1002;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* 검색 리스트 항목 스타일 */
.search-list li.check-item {
    display: flex; /* 수평 정렬 */
    align-items: center; /* 중앙 정렬 */
    padding: 10px 15px;
    cursor: pointer;
    gap: 10px; /* 체크박스와 텍스트 사이 간격 */
    background-color: #ffffff;
    transition: background-color 0.3s ease;
    border-bottom: 1px solid #e9ecef;
}

.search-list li.check-item:hover {
    background-color: #f8f9fa; /* Hover 시 배경색 변경 */
}

/* 체크박스 스타일 */
.search-list li input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 체크박스 라벨 스타일 */
.search-list li .submenu-item {
    font-size: 16px;
    color: #343a40;
}

/* 체크박스 선택 시 강조 효과 */
.search-list li input[type="checkbox"]:checked + .submenu-item {
    font-weight: bold;
    color: #007bff; /* 선택 시 파란색으로 강조 */
}


.cancel-button {
    position: relative;
    background-color: transparent;
    border: none;
    color: black;
    font-size: 25px;
    cursor: pointer;
    padding: 0;
}

.cancel-layer {
    align-items: center;
    background-color: transparent;
    border: none;
    color: black;
    font-size: 25px;
    cursor: pointer;
}

.layer-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 10px; /* 패딩 조절 */
    background-color: #007bff; /* 파란색 배경 */
    color: white; /* 텍스트 흰색 */
    font-weight: bold;
    font-size: 16px;
}

.cancel-image {
    position: relative;
    margin-left: auto;
    width: 20px;
    height: 20px;
    cursor: pointer;
    filter: invert(1);
}

.layer-header span {
    margin-left: 10px; /* 왼쪽 여백 추가 */
    margin-right: auto; /* 자동 마진을 통해 왼쪽 정렬 */
}

/* 카테고리 전체 스타일 */
.menu-category {
    padding: 5px;
    background-color: rgb(221,235,253);
}

.menu-category h1 {
    font-size: 24px;
    color: #333;
    text-align: center; /* 제목 중앙 정렬 */
    margin-bottom: 10px;
    margin-top: 10px;
}

/* 버튼 컨테이너 */
.category-button {
    display: flex; /* 수평 정렬 */
    justify-content: space-between; /* 버튼 사이에 여백 */
    gap: 10px; /* 버튼 간 간격 */
    margin-bottom: 10px;
}

button[data-tooltip] {
    position: relative;
    z-index: 1001;
}
button[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
}
button[data-tooltip]::after {
    z-index: 9999;
    content: attr(data-tooltip);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

button[data-tooltip2] {
    position: relative;
}
button[data-tooltip2]:hover::after {
    opacity: 1;
    visibility: visible;
}
button[data-tooltip2]::after {
    z-index: 9999;
    content: attr(data-tooltip2);
    position: absolute;
    top: 120%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease-in-out;
}

/* 버튼 스타일 */
.category-button button {
    flex: 1;
    height: 100px;
    color: #007bff; /* 텍스트 파란색 */
    background-color: #ffffff; /* 기본 흰색 배경 */
    border: 2px solid #007bff; /* 파란색 테두리 */
    border-radius: 10px; /* 둥근 모서리 */
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column; /* 아이콘과 텍스트 수직 정렬 */
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    gap: 5px; /* 아이콘과 텍스트 사이 간격 */
    width: 90px;
}

/* 아이콘 스타일 */
.category-button button img {
    width: 30px;
    height: 30px;
    filter: brightness(0) saturate(100%) invert(35%) sepia(71%) saturate(1683%) hue-rotate(204deg) brightness(95%) contrast(92%);
    /* 아이콘 색상 파란색으로 변경 */
}

.category-button button p {
    margin: 0;               /* 기본 마진 제거 */
    font-size: 14px;         /* 글꼴 크기 */
    font-weight: 500;        /* 글꼴 두께 */
    color: #007bff;          /* 기본 파란색 */
    text-align: center;      /* 가운데 정렬 */
    transition: color 0.3s ease;

}

/* 활성화 상태일 때 p 태그 */
.category-button button.active p {
    color: #ffffff;          /* 흰색 글자 */
}

/* 호버 시 p 태그 */
.category-button button:hover p {
    color: #ffffff;          /* 흰색 글자 */
}

/* 활성화된 버튼 (선택 시) */
.category-button button.active {
    background-color: #007bff; /* 파란색 배경 */
    color: #ffffff; /* 흰색 텍스트 */
    border: 2px solid #007bff;
}

.category-button button.active img {
    filter: brightness(0) invert(1); /* 아이콘 색상을 흰색으로 변경 */
}

/* 버튼 호버 효과 */
.category-button button:hover {
    background-color: #007bff;
    color: #ffffff;
    border: 2px solid #007bff;
}

.category-button button:hover img {
    filter: brightness(0) invert(1); /* 호버 시 아이콘 흰색 */
}

.submenu-list li {
    display: list-item; /* 기본적으로 모두 보이게 설정 */
}

.submenu-list li.hidden {
    display: none; /* 숨겨야 할 항목에만 적용 */
}

.submenu-list2 li {
    display: list-item; /* 기본적으로 모두 보이게 설정 */
}

.submenu-list2 li.hidden {
    display: none;  /* 숨겨야 할 항목에만 적용 */
}

.modal {
    display: none; /* 기본적으로 숨김 */
    position: fixed;
    bottom: 20px; /* 하단 여백 추가 */
    left: 420px; /* 슬라이드 메뉴(400px) 공간을 고려한 여백 */
    width: calc(100% - 480px); /* 오른쪽 여백 추가: 60px, 왼쪽 여백 20px */
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
    padding: 20px;
    font-family: Arial, sans-serif;
    font-size: 14px;
    z-index: 2000;
    border-radius: 10px; /* 모서리 둥글게 */
    min-height: 120px; /* 최소 높이 2배 증가 */
    max-height: 400px; /* 모달 최대 높이 설정 */
    overflow-y: auto; /* 내용이 넘칠 경우 스크롤 생성 */

}

.modal .modal-close {
    cursor: pointer;
    background: none;
    border: none;
    position: absolute;
    top: 20px;
    right: 20px;
}

.modal .modal-close img {
    display: block;
    width: 20px;
    height: 20px;
}

.menu-badge {
    display: inline-block;
    background-color: #335cff;
    color: white;
    font-size: 14px;
    font-weight: bold;
    margin-left: 8px; /* 텍스트와 뱃지 간격 */
    padding: 2px 6px;
    border-radius: 12px; /* 둥근 모양 */
    text-align: center;
    line-height: 1; /* 뱃지 내부 숫자 정렬 */
    vertical-align: middle; /* 텍스트와 수평 정렬 */
    position: relative; /* 뱃지 위치 조정을 위해 추가 */
    top: -2px; /* 텍스트와 수직으로 맞추기 위해 살짝 올림 */
}

.analysis-layer {
    position: absolute;
    top: 320px;
    right: 60px;
    width: 450px;
    height: 193px;
    padding: 0;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: flex; /* 내부 레이아웃을 flex로 설정 */
    flex-direction: column; /* 자식 요소를 세로로 배치 */
    overflow: hidden; /* 넘치는 콘텐츠를 숨김 */


}

.analysis-header {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 15px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    font-weight: bold;
}

.analysis-header button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

.analysis-header img {
    width: 16px;
    height: 16px;
}

.tabs {
    display: flex;
    justify-content: space-around;
    background-color: rgba(255, 255, 255, 0.95);
    border-bottom: 1px solid #ddd;
    min-height: 50px;
    overflow: hidden;
}

.tabs.hidden{
    display: none;
}

.tab-button {
    flex: 1;
    border: 1px solid #c5d7e7; /* 옅은 파란색 테두리 */
    border-right: none;
    padding: 12px 0;
    cursor: pointer;
    font-size: 14px;
    color: #7a7a7a; /* 비활성화된 글자색 */
    text-align: center;
    background-color: rgba(255, 255, 255, 0.95);
    transition: background 0.3s, color 0.3s;
}

.tab-button:hover {
    background-color: #ddd;
}

.tab-button.active {
 background-color: #ff7f3f; /* 주황색 배경 */
    color: white; /* 글자 흰색 */
    font-weight: bold;
    border: none; /* 활성화 시 테두리 제거 */
    border-radius: 0px; 
}

.tab-contents {
    overflow-y: auto;
}

.tab-content {
	display:none;
    width:200px;
    height:1px;
    padding: 20px;
    /*overflow-y: auto; !* 내용이 넘칠 경우 스크롤 가능 *!*/
}

.tab-content input {
    padding: 10px;
    margin-bottom: 10px;
    font-size: 14px;
    box-sizing: border-box; /* 패딩과 테두리를 포함한 너비 계산 */
}

.action-buttons {
    padding: 10px;
    border-top: 1px solid #ddd;
    display: flex;
    justify-content: center; /* 버튼을 중앙 정렬 */
    align-items: center;
}

.action-buttons button {
    padding: 10px 20px;
    background-color: #001f4d !important; /* 어두운 남색 배경 */
    color: white; /* 흰색 글씨 */
    border: none;
    border-radius: 20px; /* 둥근 모서리 */
    font-size: 16px; /* 글씨 크기 */
    font-weight: bold; /* 굵은 글씨 */
    cursor: pointer;
    width: 300px; /* 버튼 너비를 고정 (원하는 크기로 조절 가능) */
    text-align: center; /* 텍스트 중앙 정렬 */
    transition: background-color 0.3s;
}

.action-buttons button:hover {
    background-color: #003366; /* 호버 시 더 진한 남색 */
}



.analysis-cancel {
    position: relative;
    background-color: transparent;
    border: none;
    color: black;
    font-size: 25px;
    cursor: pointer;
    padding: 0;
    right: 10px;
}

.mapOption-layer {
    position: absolute;
    top: 150px;
    right: 0;
    width: 100px;
    height: 130px;
    padding: 10px;
    background-color: #ffffff;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    display: none; /* 내부 레이아웃을 flex로 설정 */
    flex-direction: column; /* 자식 요소를 세로로 배치 */
    overflow: hidden; /* 넘치는 콘텐츠를 숨김 */
}

.mapOption-header {
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f4f4f4;
    border-bottom: 1px solid #ddd;
}

.mapOption-header span{
}

.mapOption-header button {
    display: flex;
    align-items: center;
    background: none;
    border: none;
    cursor: pointer;
}

#mapOptionBtn:hover .mapOption-layer {
    display: flex;
}

.mapOption-button {
    margin-top: 5px;
    width: 80px; /* Small square button */
    height: 40px;
    border: none;
    border-radius: 5px;
    background-color: white;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    transition: background-color 0.3s;
}

/* 도움말 텍스트를 tab-content의 오른쪽 하단에 고정 */
.help-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    bottom: 10px;
    right: 10px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}
/* 숨겨진 도움말 설명 */
.tooltip-left {
    display: none;
    position: absolute;
    bottom: 0;
    left: -300px; /* tab-content 왼쪽 외부에 표시 */
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

/* 도움말 텍스트에 마우스를 올릴 때 설명 표시 */
.help-icon:hover .tooltip-left {
    display: block;
}

.sticky-header {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1010;
}

    .button-container {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin: 10px 0;
    }

    .action-button, .result-button {
        padding: 10px 20px;
        font-size: 16px;
        border: none;
        border-radius: 5px;
        cursor: pointer;
        background-color: #0078d7;
        color: white;
        transition: background-color 0.3s;
    }

    .action-button:hover, .result-button:hover {
        background-color: #0056a3;
    }

    .result-button {
        background-color: #28a745;
    }

    .result-button:hover {
        background-color: #218838;
    }