/*
Theme Name: 경기 어촌 아카이브 2025
Description: 경기도 어촌 특화 현황을 아카이브하는 워드프레스 테마
Version: 1.0.1
Author: Your Name
Text Domain: ggfv-archive
*/

/* --- 기본 & 레이아웃 --- */
body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    background-color: #f9fafb; /* bg-gray-50 */
    padding: 2rem;
}

.home .site-header,
.home .main-navigation {
    display: none;
}

.site-content-wrapper {
    max-width: 1280px;
    margin: 15px auto;
    padding: 25px;
    background-color: #fff;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.container {
    max-width: 100%;
    padding: 0;
}

.site-main {
    padding: 100px 25px 25px;
    background-color: #eee;
}

.fishing-village-selector {
    position: relative;
    left: calc(50% - 140px);
    width: 180px;
    margin: 35px 0 25px;
    padding-left: 50px;
}

.fishing-village-selector button#overall-view-button {
    width: 40px;
    height: 40px;
    position: absolute;
    left: 0;
    top: 5px;
    background: #fff;
    border-radius: 50%;
}

#fishing-village-select {
    display: inline-flex;
    align-items: center;
    border: 1px solid #d1d5db; /* border-gray-300 */
    border-radius: 0.375rem; /* rounded-md */
    width: 180px;
    padding: 0.85rem 1rem;
    font-size: 1.1rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #374151; /* text-gray-700 */
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

#fishing-village-select:focus {
    outline: none; /* 포커스 시 기본 outline 제거 */
    border-color: #d1d5db; /* 포커스 시 테두리 색상 유지 */
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.08); /* 포커스 시 그림자 효과 유지 */
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    background-color: #fff;
    color: #6b7280;
    box-shadow: 1px 1px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: background-color 0.2s;
}

.icon-button:hover {
    background-color: #f9fafb;
}

/* --- 로딩 인디케이터 --- */
.is-loading {
    position: relative;
    min-height: 300px; /* 로딩 중 최소 높이 확보 */
}

/* 로딩 중 기존 콘텐츠 흐리게 처리 */
.is-loading > *:not(.loading-indicator) {
    opacity: 0.2;
    filter: blur(4px);
    transition: opacity 0.3s, filter 0.3s;
    pointer-events: none; /* 로딩 중 클릭 방지 */
}

.loading-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1f2937;
    animation: blink-animation 1.5s infinite;
}

@keyframes blink-animation {
    50% { opacity: 0.3; }
}

/* --- 대시보드 (어촌계 선택) --- */
.dashboard {
    display: flex;
    flex-direction: column;
    /* gap: 1.5rem; */
}

.dashboard #fishing-village-content {
    background: none;
    border-radius: 0;
    box-shadow: none;
    /* padding: 15px 0 0; */
}

/* --- 콘텐츠 헤더 --- */
.entry-header {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 1.875rem; /* text-3xl */
    font-weight: 700; /* font-bold */
    color: #1f2937; /* text-gray-800 */
    margin: 0;
    display: none;
}

.entry-subtitle {
    color: #6b7280; /* text-gray-500 */
    margin-top: 0.25rem;
    display: none;
}

/* --- 지도 --- */
.map-container {
    border: 2px solid #e2e8f0; /* border-gray-300 */
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1rem; /* p-4 */
}

#naver-map {
    border-radius: 0.375rem; /* rounded-md */
    overflow: hidden;
}

/* --- 관련 링크 --- */
.related-links-container {
    margin-top: 1.5rem;
}

.related-links-container h4 {
    color: #1d5999;
    font-size: 0.875em;
    margin-bottom: 1rem;
}

.related-links-container ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.related-links-container li a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    background: #eff3f8;
    border: 1px solid #e5e7eb;
    border-radius: 0.375rem;
    text-decoration: none;
    color: #374151;
    font-size: 1.125em;
    font-weight: 500;
    line-height: 1.55em;
    transition: background-color 0.2s, box-shadow 0.2s;
    position: relative; /* ::after 요소를 위한 기준점 */
}

.related-links-container li a::after {
    content: '›'; /* 화살표 아이콘 */
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: normal; /* 화살표 두께를 가늘게 수정 */
    color: #d1d5db; /* 연한 회색 */
    opacity: 0; /* 평소에는 숨김 */
    transition: opacity 0.2s;
}

.related-links-container li a:hover {
    background-color: #f9fafb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.related-links-container li a:hover::after {
    opacity: 1; /* 마우스 호버 시 표시 */
}

.link-thumbnail {
    width: 62px;
    height: 48px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid #ffffff;
    box-shadow: 1px 1px 3px rgb(0 0 0 / 18%);
}

.related-links-container li .link-title {
    overflow: hidden; /* 부모 요소를 벗어나는 텍스트를 숨김 */
    text-overflow: ellipsis; /* 잘린 텍스트를 말줄임표(...)로 표시 */
    white-space: nowrap; /* 텍스트가 여러 줄로 줄바꿈되는 것을 방지 */
    min-width: 0; /* flex 아이템이 콘텐츠 크기보다 작아질 수 있도록 허용 */
}

/* --- 탭 --- */

.tabs-nav {
    display: flex;
}

.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

.no-data-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px; /* 최소 높이를 지정하여 세로 중앙 정렬이 잘 보이도록 함 */
    color: #6b7280; /* text-gray-500 */
    font-size: 1rem;
}

/* 메인 탭 */
.main-tabs-nav {
    border-top: 1px solid #d1d5db;
    border-left: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
    /* padding-bottom: 0.75em; */
    border-radius: 6px 6px 0 0;
    padding: 0 10px;
    width: calc(100% - 22px);
    display: block;
}

.main-tabs-nav ul {
    display: flex !important; /* header.css의 grid 스타일을 덮어쓰기 위해 !important 사용 */
    flex-wrap: wrap;
    list-style: none;
    margin: 0; 
    padding: 0;
}

.main-tabs-nav li {
    width: 16.6666%; /* 6등분 너비 설정 */
    box-sizing: border-box;
}

.main-tabs-nav .tab-link {
    display: block; /* li 너비를 채우도록 block으로 변경 */
    text-align: center; /* 텍스트 중앙 정렬 */
    padding: 1.25rem 0 1rem;
    font-size: 1rem; /* text-sm */
    font-weight: 500; /* font-medium */
    color: #6b7280; /* text-gray-500 */
    border-bottom: 3px solid transparent;
    text-decoration: none;
    background: none;
    border-top: none;
    border-left: none;
    border-right: none;
    cursor: pointer;
}

.main-tabs-nav .tab-link:hover {
    color: #4b5563; /* hover:text-gray-600 */
    border-color: #d1d5db; /* hover:border-gray-300 */
}

.main-tabs-nav .tab-link.active {
    color: #2563eb; /* text-blue-600 */
    border-color: #2563eb; /* border-blue-600 */
}

/* 경제 탭 활성화 시 포인트 색상 변경 */
.main-tabs-nav .tab-link[data-tab^="#econ_"].active {
    color: #02983b;
    border-color: #02983b;
}

/* 연도별 탭 */
.year-tabs-nav {
    gap: 0.35rem; /* space-x-4 */
    flex-wrap: wrap; /* 버튼이 많을 경우 다음 줄로 넘어가도록 설정 */
    justify-content: center; /* 버튼들을 중앙 정렬하여 보기 좋게 만듭니다. */
    padding: 12px 10px;
    background: #f4f4f4;
background: linear-gradient(155deg, rgba(244, 244, 244, 1) 0%, rgba(252, 252, 252, 1) 100%);
    border-radius: 0 0 5px 5px;
    box-shadow: 1px 2px 3px #cecece inset;
    border-bottom: 1px solid #d1d5db;
    border-right: 1px solid #d1d5db;
}

.year-tabs-nav .tab-link {
    padding: 0.35rem 0.75rem;
    font-size: 12px;
    border-radius: 9999px; /* rounded-full */
    border: none;
    cursor: pointer;
    background-color: #dadce0; /* bg-gray-200 */
    color: #9a9a9a; /* text-gray-600 */
    font-weight: 500;
}
.year-tabs-nav .tab-link.active {
    background-color: #2563eb; /* bg-blue-600 */
    color: #fff;
    font-weight: 600; /* font-semibold */
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06); /* shadow-md */
}

/* 경제 탭 하위의 연도 탭 활성화 시 포인트 색상 변경 */
.main-tab-content[id^="econ_"] .year-tabs-nav .tab-link.active {
    background-color: #02983b;
}

/* --- 콘텐츠 섹션 --- */
.content-area {
    display: flex;
    flex-direction: column;
    /* gap: 1rem;  */
}

.content-area > div {
    padding: 0.5rem 0;
}

.group-field,
.repeater-field {
    /* border: 2px solid #e2e8f0;
    border-radius: 0.5rem; 
    padding: 1.5rem;
    margin: 0; */
}

.content-area h4 {
    margin: 1.25rem 0 1.5rem;
    color: #1d5999;
    font-size: 0.875em;
    /* background: #f5f5f5;
    background: linear-gradient(270deg, rgba(245, 245, 245, 1) 0%, rgba(235, 235, 240, 1) 100%); */
    padding: 0.85em;
    border-radius: 5px;
    border: 1px solid #dfdfdf;
    box-shadow: 1px 1px 3px #f0f0f0;
}

h4 {
    font-size: 0.875rem; /* text-xl */
    font-weight: 600; /* font-semibold */
    color: #374151; /* text-gray-700 */
    margin-top: 0;
    margin-bottom: 0.5rem;
    border-bottom: none;
    padding-bottom: 0;
}

.content-area h4 i,
.related-links-container h4 i {
    margin-right: 0.5rem;
    color: #25a8eb;
    opacity: 0.5;
}

.dashed-box {
    margin: 0.5rem 0;
}

.field-row {
    display: flex;
    flex-wrap: wrap;
    /* margin: 0 -8px; */
}

.field-wrapper {
    padding: 0 8px;
    box-sizing: border-box;
    margin-bottom: 0.5rem;
}

.field-wrapper p {
    margin: 0 0 0.5em;
    font-size: 1.125em;
    font-weight: 500;
    line-height: 1.55em;
}

.field-wrapper p.textarea {
    font-size: 1em;
    font-weight: 300;
    line-height: 1.75em;
    /* word-break: break-all; */
}

.field-wrapper p label {
    font-weight: 300;
    font-size: 13px;
    line-height: 1em;
    color: #737d8d;
    margin-right: 0.5em;
    margin-bottom: 0.75em;
    display: block;
}

/* --- 테이블 스타일 --- */
.repeater-as-table .dashed-box {
    overflow-x: auto; /* 이 부분을 추가 */
    border-radius: 7px; /* 8px 둥근 모서리 */
    overflow: hidden; /* 내부 테이블이 둥근 모서리를 벗어나지 않도록 함 */
    border: 1px solid #737d8d;
}

.repeater-as-table table {
    width: 100%;
    text-align: left;
    color: #6b7280; /* text-gray-500 */
    font-size: 0.875rem; /* text-sm */
    border-collapse: collapse;
    border: none;
    table-layout: fixed; /* 셀 너비를 고정하여 레이아웃 깨짐 방지 */
    word-break: break-all; /* 긴 텍스트가 셀을 벗어나지 않도록 줄바꿈 처리 */
}

.repeater-as-table thead {
    font-size: 0.75rem; /* text-xs */
    color: #fff; /* text-gray-700 */
    text-transform: uppercase;
    background-color: #737d8d;
}

.repeater-as-table th,
.repeater-as-table td {
    padding: 1.25rem 1rem; /* px-6 py-3/4 */
    border: none;
    vertical-align: top;
    font-weight: 300;
    line-height: 1.55em;
}

.repeater-as-table th {
    padding: 0.75rem 1rem;
    line-height: 1em;
    font-size: 13px;
    font-weight: 500;
}

.repeater-as-table tbody tr {
    background-color: #fff;
    border-bottom: 1px solid #e5e7eb; /* border-b */
}

.repeater-as-table tbody tr:last-child {
    border-bottom: 0;
}

.repeater-as-table tbody tr:nth-of-type(2n) {
    background-color: #f9fafb; /* bg-gray-50 */
}

.repeater-as-table tbody tr:nth-of-type(2n+1) {
    background-color: #fff;
}

.repeater-as-table td:first-child {
    font-weight: 500;
    color: #111827; /* text-gray-900 */
}

/* 텍스트가 길 때 폰트 크기 축소 */
.repeater-as-table td.text-small {
    font-size: 81.25%;
}

/* --- Box Repeater --- */
.repeater-item-box {
    background: #eff3f8;
    border-radius: 0.5rem; /* rounded-lg */
    padding: 1.25rem 0.75em 0em !important;
    margin-bottom: 1rem !important;
    line-height: 1.35em;
}
.repeater-item-box:last-child {
    margin-bottom: 0 !important;
}

.overall-projects-container tbody tr {
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}
.overall-projects-container tbody tr:hover {
    background-color: #f0f5ff !important; /* 연한 파란색으로 변경 */
}
.overall-projects-container tbody tr:hover td:nth-child(2) {
    color: #2563eb;
    font-weight: 600;
}

/* 전체 국고지원사업 현황 표 스타일 재정의 */
.overall-projects-container th:nth-child(1) { width: 35%; }
.overall-projects-container th:nth-child(2) { width: 20%; }
.overall-projects-container th:nth-child(3) { width: 15%; }
.overall-projects-container th:nth-child(4) { width: 15%; }
.overall-projects-container th:nth-child(5) { width: 15%; }

.overall-projects-container tbody td:first-child {
    font-weight: 500; /* 볼드체 */
    font-size: 1.125em; /* 글씨 크기 확대 */
    color: #111827;
}

.overall-projects-container tbody td:nth-child(2) {
    font-weight: 300;
    color: #111827;
}
.overall-projects-container tbody tr:hover td:nth-child(2) {
    font-weight: 500;
}

.overall-projects-container .repeater-as-table .dashed-box {
    border-radius: 0;
    border: none;
    overflow: auto;
}
.overall-projects-container {
    flex: 1 1 calc(50% - 1rem); /* .entry-content와 동일한 너비 설정 */
    box-sizing: border-box;
}

/* 국고지원사업 현황 테이블 최소 너비 설정 */
.overall-projects-container .repeater-as-table table {
    min-width: 750px;
}


.overall-projects-container .hidden-project-row {
    display: none;
}

.show-more-container {
    text-align: center;
    margin-top: 1.5rem;
}

.show-more-button {
    background-color: #fff;
    border: 1px solid #d1d5db;
    /* border-radius: 9999px; */
    padding: 0.75rem 1.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.show-more-button:hover {
    background-color: #f9fafb;
    border-color: #9ca3af;
}

.projects-header {
    display: flex;
    /* justify-content: space-between; */
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1.5rem; /* 어촌계 목록 필터와 동일한 간격 추가 */
}

.projects-header h4 {
    margin-bottom: 0;
    flex: 1; /* 어촌계 목록 필터와 동일한 너비 비율 */
    font-size: 1.25rem;
    color: #1d5999
}

.projects-header h4 i {
    margin-right: 0.5rem;
    color: #ffffff;
    opacity: 0.5;
    background: #25a8eb;
    border-radius: 50%;
    text-align: center;
    width: 31px;
    line-height: 31px;
    padding: 0 0 1px 1px;
}

.project-search-container {
    position: relative;
    /* width: 350px; */
    flex: 1;
    margin-left: calc(50% + 0.5rem);
}

.project-search-container .fa-magnifying-glass {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

#project-search-input {
    width: 100%;
    background: #f0f3f7;
    border: 1px solid #e6e7e9;
    font-size: 1rem;
    box-sizing: border-box;
    padding: 0.25rem 0.75rem;
    height: 48px;
    padding-left: 2.5rem;
}

.no-results-message {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 1rem;
}

.login-prompt-box {
    /* background-color: #eff3f8; */
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    color: #9ca3af;
    font-weight: 300;
    line-height: 1.75em;
    border: 1px dashed #d1d5db;
    margin: 1.25rem 0 1.5rem;
}


.repeater-item-box table {
    width: 100%;
}
.repeater-item-box table th {
    width: 20%;
    text-align: left;
    vertical-align: top;
    padding: 4px 10px 4px 0;
    font-weight: 500;
    color: #4b5563;
}
.repeater-item-box table td {
    padding: 4px 0;
}

/* --- Fishing Village Content Layout --- */
#fishing-village-content > article {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start; /* 자식 요소들을 상단에 정렬 */
    gap: 1.5rem;
    position: relative;
}

#fishing-village-content > article > .map-container,
#fishing-village-content > article > .entry-content {
    flex: 1 1 calc(50% - 1rem);
    box-sizing: border-box;
    /* 데이터가 없을 때 중앙 정렬을 위해 flex 컨테이너로 설정 */
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* 전체 목록 필터 컨테이너 */
.list-filters-container {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

/* 전체 목록 검색창 */
.list-search-container {
    position: relative;
}

.list-search-container .fa-magnifying-glass {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af; /* text-gray-400 */
}

.theme-filter-container,
.list-search-container {
    flex: 1;
}

.theme-filter-container {
    position: relative;
}

#theme-filter-select,
#list-search-input {
    width: 100%;
    background: #f0f3f7;
    border: 1px solid #e6e7e9;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: 0.25rem 0.75rem;
    height: 48px; /* 입력창과 높이 통일 */
}

#list-search-input {
    padding-left: 2.5rem;
}

#theme-filter-select {
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor"><path fill-rule="evenodd" d="M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z" clip-rule="evenodd" /></svg>');
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    background-size: 1.25rem;
    padding-right: 2.5rem;
}

/* 테마 필터에 값이 선택되었을 때 스타일 */
#theme-filter-select.has-value {
    padding-left: 2.5rem;
    color: #1f2937;
    font-weight: 500;
}

.clear-filter-button {
    display: none; /* JS로 제어 */
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 0.25rem;
}
.clear-filter-button:hover {
    color: #374151;
}

#theme-filter-select:focus {
    outline: none;
    border-color: #d1d5db; /* 포커스 시 테두리 색상 유지 */
    box-shadow: none; /* 포커스 시 그림자 효과 제거 */
}

#list-search-input:focus {
    outline: none;
    border-color: #2563eb; /* focus:border-blue-600 */
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* 전체 목록 포스트 목록 스크롤 */
.overall-view-post-list {
    height: 511px; /* 지도 높이와 동일하게 설정 */
    overflow-y: auto; /* 내용이 넘칠 경우 세로 스크롤바 표시 */
}

/* 전체 목록 포스트 목록 */
.overall-view-post-list ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    /* gap: 0.5rem; */
}

.overall-view-post-list li a {
    display: flex;
    flex-direction: column;
    padding: 1rem 0.5em 0.75em;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
    text-decoration: none;
    color: #374151;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.overall-view-post-list .post-title {
    font-size: 1.125rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    padding-left: 0.1em;
}

.overall-view-post-list .post-meta-info {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    color: #6b7280;
}

.overall-view-post-list .post-meta-info > * {
    font-size: 13px;
}

.overall-view-post-list .post-meta-info i {
    margin-right: 0.25rem;
    color: #1d5999;
    opacity: 0.5;
    font-size: inherit;
}

.overall-view-post-list .post-meta-info span {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overall-view-post-list li a.active,
.overall-view-post-list li a:hover {
    background-color: #f3f4f6;
    background-color: #eff3f8;
}

.overall-projects-container .no-results-message td {
    text-align: center;
    padding: 3rem 1rem; /* 어촌계 목록 메시지와 스타일 통일 */
    color: #6b7280;
    font-size: 1rem;
}

/* 관리자 아이콘 */
.admin-icon {
    display: none !important; /* 기본적으로 숨김 */
    background-color: #fff;
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    font-size: 2rem;
    color: #9ca3af; /* text-gray-400 */
    cursor: pointer;
    z-index: 10; /* 다른 요소 위에 표시되도록 z-index 추가 */
}

/* '일반·개발' 탭이 활성화되면 아이콘 표시 */
#fishing-village-content > article.gen_4 .admin-icon {
    display: block !important;
    display: block;
    opacity: 0.6;
    animation: fadeIn 0.5s forwards;
}

/* --- Password Modal --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.password-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    z-index: 1001;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-overlay.is-visible,
.password-modal.is-visible {
    display: block;
}

.password-modal .close-modal {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.75rem;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
}

.password-modal h4 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 0;
    margin-bottom: 0.5rem;
    color: #111827;
}

.password-modal p {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #6b7280;
}

.password-modal input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
    box-sizing: border-box;
}

.password-modal button[type="submit"] {
    width: 100%;
    padding: 0.75rem;
    background-color: #2563eb;
    color: #fff;
    border: none;
    border-radius: 0.375rem;
    font-weight: 600;
    cursor: pointer;
}

@media screen and (max-width: 1100px) {
    #fishing-village-content > article > .map-container,
    #fishing-village-content > article > .entry-content {
        width: 100%;
    }

    #fishing-village-content > article {
        flex-direction: column;
    }

    .overall-projects-container {
        width: 100%; /* 화면이 좁아지면 다시 100% 너비 차지 */
        flex-basis: 100%;
    }

    .projects-header {
        gap: 1rem;
    }

    .project-search-container {
        margin-left: 0;
    }
}


@media screen and (max-width: 750px) {
    .site-main {
        padding: 100px 15px 25px;
    }
    .site-content-wrapper {
        padding: 15px;
    }
    .list-filters-container {
        gap: 0.5rem;
    }
    .projects-header h4 {
        font-size: 1.1rem;
    }
    .projects-header h4 i {
        width: 25px;
        line-height: 25px;
        margin-right: 0.35rem;
        font-size: 0.75rem;
    }
}
