@charset "UTF-8";
/* ============================================================
 * directory-search.css
 * 검색 페이지 디렉토리/메타데이터 영역 - 공통 기본 스타일
 *
 * 좌측 디렉토리 아코디언(분류 > 메타데이터 > 기초데이터), 검색 건수,
 * NEW 배지, 커스텀 툴팁 등 모든 검색 페이지가 공유하는 규칙.
 *
 * [사용 페이지 - 12개]
 *   user/renew         : govSearch, spaceDataSearch, textDataSearch, docDataSearch,
 *                        statsDataSearch, themeAnalSearch, fusionDataSearch, etcDataSearch
 *   user/renew/observe : rawSearch
 *   user/search        : searchMainRenew
 *   user/bigdata/openApiRenew : openAPISearch, openAPISearchAnal, openAPISearchMap
 *
 * [같이 쓰는 파일]
 *   directory-search-panel.css        : 우측 상세 패널 (openAPI 계열 제외)
 *   directory-search-layout.css       : #tab-2 반응형 레이아웃
 *   directory-search-layout-panel.css : 우측 패널 반응형 (openAPI 계열 제외)
 *
 * [Variant]
 *   .directory-search--open-api       : OpenAPI 검색 전용 (파일 하단 참고)
 *
 * NOTE) #total-count, #current-meta 는 id 선택자를 그대로 유지한다. 전역 스타일
 *       (`[class*="top-tit-"] .txt1 span` 등)보다 우선순위가 높아야 현재 화면이
 *       유지되므로 class 로 낮추면 글자 크기/색이 바뀐다.
 *       (JS에서 참조하는 id 이므로 마크업의 id 도 변경하지 않는다.)
 * ============================================================ */

#total-count {
    font-size: inherit; /* 부모 요소의 글씨 크기를 상속 */
    font-weight: bold;
}

#current-meta {
    font-size: 24px;
    margin-bottom: 0;
}

/* --- 우측 패널 헤더 스타일 --- */
.top-header-line {
    padding-bottom: 12px;
    margin-bottom: 16px;
    border-bottom: 3px solid #dee2e6;
}

/* --- 왼쪽 디렉토리 아코디언 메뉴 스타일 --- */

/* 1. 최상위 카테고리 헤더 (예: 분류: 공유수면) */
.category-header-toggle {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 5px;
    font-size: 30px !important;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 1px solid #e0e0e0;
    transition: color 0.2s;
}
.category-header-toggle:hover {
    color: var(--blue-600);
}
.category-header-toggle.active {
    color: var(--blue-600);
}

.category-header-toggle .icon-angle-down {
    transition: transform 0.3s ease;
}
.category-header-toggle.active .icon-angle-down {
    transform: rotate(180deg);
}

.category-title-wrap{
    display:flex;
    align-items:center;
    justify-content:space-between;
    flex: 1 1 auto;
    min-width: 0;           /* 말줄임 필수 */
    gap: 10px;
}

.category-title-text{
    flex: 1 1 auto;
    min-width: 0;           /* 말줄임 필수 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.category-count{
    flex: 0 0 auto;
    font-weight: 700;
    color: var(--gray-600); /* 원하면 */
}

.category-right{
    flex: 0 0 auto;
    margin-left: 10px;      /* 제목/카운트랑 화살표 간격 */
}

/* 2. 메타데이터 그룹 컨테이너 (카테고리 클릭 시 펼쳐지는 영역) */
.metadata-group-container {
    padding-left: 15px;
    /* border-left: 1px solid #e8e8e8; */
    display: none; /* 기본 숨김 */
}

/* 3. 중간 메타데이터 헤더 (예: 공유수면매립) */
.meta-item-header {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 10px 5px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}
.meta-item-header:hover {
    background-color: #f7f9fc;
}
.meta-item-header.active {
    background-color: #eef5ff;
}
.meta-item-header .txt2 {
    flex-grow: 1;
    font-size: 15px; /* 중간 크기 */
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 4. 기초데이터 목록 컨테이너 (메타데이터 클릭 시 펼쳐지는 영역) */
.bsis-data-container {
    padding-left: 20px;
    background-color: #fdfdfd;
    display: none; /* 기본 숨김 */
}

/* 5. 최하위 기초데이터 항목 (예: 공유수면매립계획공간정보) */
.bsis-data-item {
    display: flex;
    justify-content: space-between; /* 양쪽 끝으로 요소를 정렬 */
    align-items: center;
    padding: 8px 5px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: background-color 0.2s;
}

.bsis-data-item:hover {
    background-color: #f7f9fc;
}

.bsis-data-item.active {
    background-color: #eef5ff;
    font-weight: 600;
}

.bsis-data-item .bsis-name {
    flex-grow: 1; /* 남는 공간을 모두 차지 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0; /* Flexbox 환경에서 text-overflow가 잘 동작하도록 보장 */
}
.bsis-data-item .icons {
    margin-left: 10px;
    font-size: 16px;
    color: var(--gray-500);
}

/* --- 기타 스타일 --- */
.db-preview.hidden {
    display: none;
}

/* 'NEW' 배지 스타일 */
.new-badge {
    flex-shrink: 0; /* 공간이 부족해도 줄어들지 않음 */
    margin-left: 8px; /* 이름과의 간격 유지 */
    /* 나머지 스타일은 기존과 동일 */
    display: inline-block;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: bold;
    color: white;
    background-color: #d9534f;
    border-radius: 10px;
    line-height: 1;
    vertical-align: middle;
}

/* 커스텀 툴팁 스타일 */
[data-tooltip] {
    position: relative; /* 툴팁의 기준점이 됩니다. */
}

/* 툴팁의 기본 상태(숨겨진 상태)를 정의합니다. */
[data-tooltip]::after {
    content: attr(data-tooltip); /* 내용을 미리 설정 */
    position: absolute;
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
    padding: 5px 10px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    z-index: 1000;

    /* 기본적으로 보이지 않도록 설정 */
    opacity: 0;
    visibility: hidden;
/*             transition: opacity 0.2s, visibility 0.2s; */ /* 부드러운 효과를 위한 트랜지션 */
}

/* 마우스를 올렸을 때만 보이도록 설정 */
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    /* 딜레이 설정: 0.5초 후에 나타나도록 설정 */
    transition-delay: 0.5s;
}

/* ============================================================
 * Variant: OpenAPI 검색 (.directory-search--open-api)
 *
 * 적용 : user/bigdata/openApiRenew/openAPISearch, openAPISearchAnal, openAPISearchMap
 * 마크업: <form:form id="listForm" cssClass="directory-search--open-api">
 *
 * 각 JSP에 인라인으로 중복돼 있던 페이지 전용 규칙을 variant 로 옮긴 것.
 * 기존 전역 선택자(label, .txt2, a.icon-info-circle:hover)가 헤더/푸터 등
 * 페이지 전체에 걸리지 않도록 listForm 범위로 제한한다.
 * ============================================================ */
.directory-search--open-api label {
    cursor: pointer;
}

@media (max-width: 576px) {
    .directory-search--open-api .list-title {
        overflow: hidden;
        text-overflow: ellipsis;
        width: 205px;
    }
}

.directory-search--open-api .meta-item {
    min-width: 0 !important;
}

.directory-search--open-api .meta-item.active .txt2 {
    color: var(--blue-500);
}

.directory-search--open-api .meta-item > .txt2 {
    font-size: 17px;
}

/* 우측 패널 정보 버튼: renew 계열의 알약형 버튼이 아니라 아이콘으로 표시 */
.directory-search--open-api #right-panel-info-btn {
    font-size: 24px;
    color: var(--gray-500);
}

.directory-search--open-api a.icon-info-circle:hover {
    color: var(--blue-500) !important;
}
