@charset "UTF-8";

/* =========================================
   1. 기본 리셋 및 글로벌 폰트 설정
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, Arial, sans-serif;
}

body {
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}


/* =========================================
   2. 공통 상단 헤더
   ========================================= */
.site-header {
    background-color: #212838;
    color: #ffffff;
    display: flex;
    height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-logo {
    display: flex;
    align-items: center;
    font-size: 0.95rem;
}

.logo-icon {
    font-size: 1.2rem;
    margin-right: 8px;
    color: #ff6b6b;
}

.logo-icon img {
    width: 1.8rem;
    margin-left: 5px;
}

.logo-text {
    font-size: 1rem;
}

.menu-toggle-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 6px;
}


/* =========================================
   3. 우측 슬라이드 메뉴 (사이드바) 및 오버레이
   ========================================= */
.side-menu {
    position: fixed;
    top: 0;
    right: -300px;
    width: 290px;
    height: 100%;
    background-color: #ffffff;
    z-index: 1000;
    box-shadow: -4px 0 15px rgba(0,0,0,0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    right: 0;
}

.side-menu-header {
    background-color: #212838;
    color: #ffffff;
    padding: 10px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: bold;
    font-size: 1.1rem;
}

.close-btn {
    background: none;
    border: none;
    color: #ffffff;
    font-size: 1.8rem;
    cursor: pointer;
}

.menu-list {
    padding: 10px 0;
    overflow-y: auto;
}

.side-menu-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    font-size: 1rem;
    font-weight: 600;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.side-menu-item span i {
    width: 24px;
    text-align: center;
    margin-right: 8px;
}

.side-menu-item:hover {
    background-color: #fafafa;
}

.side-menu-item .arrow-icon {
    font-size: 0.85rem;
    color: #aaa;
    transition: transform 0.3s;
}

.side-menu-item.open .arrow-icon {
    transform: rotate(180deg);
}

.side-sub-menu {
    background-color: #fcfcfc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    border-bottom: 1px solid #eee;
}

.side-sub-menu.open {
    max-height: 250px;
}

.side-sub-menu li a {
    display: flex;
    align-items: center;
    padding: 12px 35px;
    font-size: 0.9rem;
    color: #555;
    font-weight: 500;
    transition: all 0.2s;
}

.side-sub-menu li a i {
    font-size: 0.85rem;
    margin-right: 8px;
    color: #777;
    width: 16px;
}

#sideAutumnSub li a:hover { color: #c93d38; background-color: #f5e9e9; padding-left: 40px; }
#sideWeatherSub li a:hover { color: #0077e6; background-color: #e6f1fc; padding-left: 40px; }

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    display: none;
}

.menu-overlay.active {
    display: block;
}


/* =========================================
   4. 메인 페이지 전용 스타일 (main.php)
   ========================================= */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px 16px;
}

.content-wrapper {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
}

.main-title {
    color: #ffffff;
    font-size: 1.8rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 24px;
    letter-spacing: -1px;
    text-shadow: -1px -1px 0 #a0201c, 1px -1px 0 #a0201c, -1px 1px 0 #a0201c, 1px 1px 0 #a0201c, 0px 4px 6px rgba(0,0,0,0.5);
}

/* 4-1. 2단 카드 영역 */
.card-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    width: 100%;
    margin-bottom: 14px;
}

.service-card {
    border-radius: 14px;
    padding: 16px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 165px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    user-select: none;
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}

.card-autumn {
    background: url('./img/bg_autumn.png') no-repeat center center;
    background-size: cover;
    animation: none;
}

.card-autumn .card-icon {
    display: none;
}

.card-autumn::after {
    display: none;
}

.card-weather {
    background: linear-gradient(135deg, #0077e6, #0059b3);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.15rem;
    font-weight: 700;
}

.toggle-arrow {
    transition: transform 0.3s ease;
}

.service-card.open .toggle-arrow {
    transform: rotate(180deg);
}

.card-icon {
    text-align: center;
    font-size: 4.2rem;
    opacity: 0.95;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thermometer {
    font-size: 2.8rem;
    color: #ff4d4d;
    background: #ffffff;
    border-radius: 50px;
    padding: 2px;
    margin-left: 5px;
}

/* 4-2. 카드 클릭 시 펼쳐지는 서브 메뉴 패널 */
.sub-menu-panel {
    width: 100%;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    margin-bottom: 14px;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.35s ease-in-out, opacity 0.25s ease-in-out;
    border: 1px solid rgba(255,255,255,0.4);
}

.panel-autumn { background: rgba(255, 255, 255, 0.88); }
.panel-weather { background: rgba(240, 246, 255, 0.9); }

.sub-menu-panel.open {
    max-height: 300px;
    opacity: 1;
    padding: 6px 0;
}

.sub-panel-item {
    display: flex; justify-content: space-between; align-items: center;
    padding: 14px 20px; color: #222; font-weight: 700; font-size: 1rem;
    border-bottom: 1px solid rgba(0,0,0,0.05); transition: background 0.2s, padding-left 0.2s, color 0.2s;
}

.sub-panel-item:last-child { border-bottom: none; }
.sub-panel-item i:first-child { margin-right: 10px; width: 20px; }
.sub-panel-item i:last-child { color: #888; font-size: 0.9rem; }

.panel-autumn .sub-panel-item i:first-child { color: #c93d38; }
.panel-autumn .sub-panel-item:hover { background-color: rgba(201, 61, 56, 0.08); color: #c93d38; padding-left: 24px; }

.panel-weather .sub-panel-item i:first-child { color: #0077e6; }
.panel-weather .sub-panel-item:hover { background-color: rgba(0, 119, 230, 0.08); color: #0077e6; padding-left: 24px; }

/* 4-3. 하단 3단 바튼 목록 */
.button-list { width: 100%; display: flex; flex-direction: column; gap: 10px; }

.list-btn {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-radius: 12px; font-size: 1.05rem; font-weight: 700;
    color: #222; box-shadow: 0 3px 8px rgba(0,0,0,0.15); transition: transform 0.2s, filter 0.2s;
}

.list-btn:hover { transform: scale(1.01); filter: brightness(0.96); }
.list-btn i { font-size: 1.2rem; color: #444; }

.btn-green { background-color: #e3ebd0; }
.btn-pink { background-color: #f3e3e8; }
.btn-yellow { background-color: #fceec5; }


/* =========================================
   5. 서브 페이지 전용 스타일 (maple_photo.php)
   ========================================= */
.sub-page .sub-content {
    background: #f4f6f9;
    padding: 20px 16px 40px;
}

.sub-wrapper {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

.back-link { font-size: 1.2rem; margin-right: 12px; }
.sub-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 20px; color: #1b263b; }

/* 5-1. 국립공원 탭 및 코스 선택 */
.park-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.tab-btn {
    text-align: center; padding: 12px 5px; background: #ffffff;
    border: 1px solid #dcdfe6; border-radius: 10px; font-weight: 700;
    color: #555; transition: all 0.2s; font-size: 1rem;
}

.tab-btn.active {
    background: #212838; color: #ffffff; border-color: #212838;
    box-shadow: 0 4px 10px rgba(33,40,56,0.2);
}

.course-selector {
    display: flex;
    flex-wrap: wrap; 
    gap: 8px;
    margin-bottom: 24px;
}

.course-btn {
    padding: 8px 16px; background: #e9ecef; border-radius: 20px;
    font-size: 0.92rem; font-weight: 600; color: #495057; transition: all 0.2s;
    border: 1px solid transparent;
}

.course-btn.active { background: #c93d38; color: #ffffff; border-color: #c93d38; }

/* 5-2. 탐방로 실황 그래픽 영역 (SVG) */
.trail-section {
    background: #ffffff;
    padding: 10px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.trail-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 5px; flex-wrap: wrap; gap: 10px;
}

.trail-header h2 { font-size: 1.0rem; font-weight: 800; color: #222; }
.tip-text { font-size: 0.8rem; font-weight: 500; color: #888; }

.reset-btn {
    background: #6c757d; color: #fff; border: none; padding: 6px 12px;
    border-radius: 5px; font-size: 0.8rem; cursor: pointer; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}

/* SVG 커스텀 스크롤바 */
.trail-graphic::-webkit-scrollbar { height: 6px; }
.trail-graphic::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
.trail-graphic::-webkit-scrollbar-thumb { background: #ccc; border-radius: 4px; }

/* SVG 단풍잎 노드 애니메이션 */
.trail-node text { transition: fill 0.2s; }
.trail-node:hover text, 
.trail-node.active text { fill: #c93d38; }

.node-leaf { 
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), filter 0.3s; 
}

.trail-node:hover .node-leaf {
    transform: scale(1.2);
    filter: drop-shadow(0px 3px 5px rgba(0,0,0,0.3));
}

.trail-node.active .node-leaf {
    transform: scale(1.4);
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.4));
}

/* 5-3. 현장 실황 사진 피드 갤러리 */
.photo-section .section-title { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; color: #222; }

.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.photo-card {
    background: #ffffff; border-radius: 10px; overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); transition: transform 0.2s;
}

.photo-card:hover { transform: translateY(-3px); }

.card-image { height: 180px; background-size: cover; background-position: center; position: relative; }

.status-badge {
    position: absolute; top: 10px; left: 10px; color: #fff;
    padding: 4px 10px; border-radius: 6px; font-size: 0.75rem;
    font-weight: 700; box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.card-body { padding: 14px; }
.spot-title { font-size: 1.05rem; font-weight: 700; color: #222; margin-bottom: 6px; }
.card-meta { font-size: 0.82rem; color: #777; }
.empty-msg { text-align: center; color: #888; padding: 40px 0; grid-column: 1 / -1; font-weight: 500; background:#fff; border-radius: 12px;}


/* =========================================
   6. 공통 하단 푸터
   ========================================= */
.site-footer {
    background-color: #eaeff5;
    padding: 15px 10px;
    font-size: 0.75rem;
    color: #444;
    border-top: 1px solid #d8e0e8;
}

.footer-info {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px 15px;
    font-weight: 500;
    margin-bottom: 10px;
}

.footer-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 10px;
    padding: 8px 0;
    border-top: 1px solid #d0d8e0;
    border-bottom: 1px solid #d0d8e0;
}

.agency {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    color: #1b263b;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
}

.link-tag {
    background-color: #d6dedf;
    color: #333;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.78rem;
    font-weight: 600;
}


/* =========================================
   7. 관리자 업로드 페이지 전용 (maple_upload.php)
   ========================================= */
.admin-page {
    background: #eaeff5;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 16px;
}

.admin-page .admin-box {
    background: #fff;
    max-width: 540px;
    width: 100%;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.admin-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
    color: #212838;
    border-bottom: 2px solid #212838;
    padding-bottom: 10px;
    font-weight: 800;
}

.admin-page .form-group {
    margin-bottom: 20px;
}

.admin-page label {
    display: block;
    font-weight: 700;
    margin-bottom: 8px;
    color: #333;
    font-size: 0.95rem;
}

.admin-page select, 
.admin-page input[type="date"], 
.admin-page input[type="file"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: 1rem;
    background-color: #fff;
}

.admin-page .radio-group {
    display: flex;
    gap: 10px;
}

.admin-page .radio-label {
    display: block;
    text-align: center;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.2s;
}

.admin-page input[type="radio"] {
    display: none;
}

.admin-page input[value="green"]:checked + .radio-label { background: #e8f5e9; border-color: #2e7d32; color: #2e7d32; }
.admin-page input[value="red"]:checked + .radio-label { background: #ffebee; border-color: #d32f2f; color: #d32f2f; }
.admin-page input[value="brown"]:checked + .radio-label { background: #efebe9; border-color: #795548; color: #795548; }

.admin-page .submit-btn {
    width: 100%;
    padding: 15px;
    background: #c93d38;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s;
}

.admin-page .submit-btn:hover {
    background: #b02a26;
}

.admin-page .alert {
    padding: 14px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-weight: 600;
    text-align: center;
}

.admin-page .alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.admin-page .alert.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }

.admin-page .back-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: #666;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.admin-page .back-link:hover {
    color: #c93d38;
}


/* =========================================
   8. 기상 실황 및 예보 페이지 전용 (weather_info.php)
   ========================================= */
#aws_wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.page_header {
    margin-bottom: 40px;
}

.page_title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a1e25;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.5px;
}

.page_title .title_icon {
    font-size: 1.5rem;
    color: #d35400;
}

.park_buttons {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 5px;
    -webkit-overflow-scrolling: touch;
}

.btn_park {
    flex: 1; 
    min-width: 100px;
    text-align: center;
    padding: 14px 20px;
    border: 1px solid #e0e4e8;
    border-radius: 8px;
    background-color: #ffffff;
    color: #4a5568;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease-in-out;
}

.btn_park:hover {
    background-color: #f8f9fa;
    color: #1a1e25;
    border-color: #cbd5e1;
}

.btn_park.active {
    background-color: #272d38;
    color: #ffffff;
    border-color: #272d38;
    box-shadow: 0 4px 10px rgba(39, 45, 56, 0.2);
}

.btn_park.active:hover {
    background-color: #1a1e25;
}

#aws_title, 
#knps_title, 
.mnt_title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #333;
    margin-top: 20px;
    margin-bottom: -15px;
    padding-left: 12px;
    border-left: 5px solid #d35400; 
}

.mnt_title {
    margin-bottom: 5px;
}

.aws_table, 
.knps_table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 10px;
    font-size: 0.8rem;
    text-align: center;
}

.aws_table caption, 
.knps_table caption {
    text-align: right;
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 8px;
}

.aws_table th, 
.knps_table th {
    background-color: #fdf8f5; 
    color: #444;
    font-weight: 600;
    padding: 12px 8px;
    border-top: 2px solid #d35400;
    border-bottom: 1px solid #ddd;
}

.aws_table th span, 
.knps_table th span {
    font-size: 0.8rem;
    font-weight: 400;
    color: #666;
}

.aws_table td, 
.knps_table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
    color: #555;
}

.aws_table tr:nth-child(even) td, 
.knps_table tr:nth-child(even) td {
    background-color: #fafafa;
}

.aws_table tr:hover td, 
.knps_table tr:hover td {
    background-color: #fff4ed; 
}

.aws_table td.ll, 
.knps_table td.ll {
    text-align: left;
    padding-left: 15px;
}

#con_maple {
    width: 100%;
    height: 880px;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    overflow: hidden;
    background-color: #f9f9f9;
}

#weather_fct {
    width: 100%;
    height: 100%;
}

/* 기상특보 페이지 전용 추가 CSS */
.wrn_image_container {
    text-align: center;
    margin-bottom: 20px;
    background: #fff;
    padding: 10px;
    border: 1px solid #e0e4e8;
    border-radius: 5px;
}
.wrn_image_container img {
    max-width: 100%;
    height: auto;
}
.wrn_section {
    margin-bottom: 20px;
}
.wrn_section_title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1e25;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
}
.wrn_info_text {
    font-size: 0.95rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 5px;
}
.wrn_content_box {
    background-color: #fff;
    border: 1px solid #e0e4e8;
    padding: 15px 20px;
    border-radius: 5px;
    font-size: 1rem;
    color: #333;
    line-height: 1.6;
}
.wrn_list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.wrn_list li {
    margin-bottom: 12px;
    word-break: keep-all;
}
.wrn_list li:last-child {
    margin-bottom: 0;
}

.wrn_card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 5px 15px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
    text-decoration: none;
    color: #2c3e50; /* 네이비 계열의 기본 텍스트 색상 */
    box-shadow: 0 2px 3px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 호버(마우스 오버) 효과: 가을 테마의 테라코타/오렌지 포인트 강조 */
.wrn_card:hover {
    transform: translateY(-2px);
    background-color: #d95c41; /* 테라코타 색상 */
    border-color: #d95c41;
    color: #ffffff;
    box-shadow: 0 5px 10px rgba(217, 92, 65, 0.3);
}

.wrn_card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.wrn_link_text {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.wrn_card:hover .wrn_link_text {
    opacity: 1;
}


/* 시·군 관광 가이드 전용 스타일 */
.tour_grid {
    display: grid;
    /* 화면 크기에 맞춰 최소 220px, 최대 1fr로 자동 배치되는 반응형 그리드 */
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.tour_card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 30px 20px;
    background-color: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    text-decoration: none;
    color: #2c3e50; /* 네이비 계열의 기본 텍스트 색상 */
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

/* 호버(마우스 오버) 효과: 가을 테마의 테라코타/오렌지 포인트 강조 */
.tour_card:hover {
    transform: translateY(-5px);
    background-color: #d95c41; /* 테라코타 색상 */
    border-color: #d95c41;
    color: #ffffff;
    box-shadow: 0 8px 15px rgba(217, 92, 65, 0.3);
}

.tour_card h3 {
    margin: 0 0 10px 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.tour_link_text {
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.tour_card:hover .tour_link_text {
    opacity: 1;
}


/* 만족도 조사 전용 스타일 */
.event_grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}



/* 새창 열기 아이콘 스타일 */
.external_icon {
    font-size: 0.8rem;
    margin-left: 5px;
}

/* 기존 갤러리 스타일 유지 */
.gallery_grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); 
    gap: 20px; 
    margin-top: 25px; 
    margin-bottom: 40px;
}
.photo_card { 
    background: #fff; 
    border-radius: 12px; 
    overflow: hidden; 
    box-shadow: 0 4px 12px rgba(0,0,0,0.06); 
    transition: transform 0.2s; 
}
.photo_card:hover { transform: translateY(-4px); }
.photo_card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.photo_info { padding: 16px; text-align: center; }
.photo_info h3 { margin: 0; color: #212838; font-size: 1.1rem; font-weight: 700; }
.photo_info p { margin: 6px 0 0; font-size: 0.82rem; color: #777; }
.empty_msg { text-align: center; padding: 60px 0; color: #666; font-size: 1.1rem; font-weight: 500; background: #fff; border-radius: 12px; }

/* 페이징 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
}
.page_btn {
    padding: 8px 14px;
    background: #ffffff;
    border: 1px solid #dcdfe6;
    border-radius: 6px;
    font-weight: 600;
    color: #555;
    text-decoration: none;
    transition: all 0.2s;
}
.page_btn:hover { background: #f1f3f5; color: #212838; }
.page_btn.active { background: #212838; color: #ffffff; border-color: #212838; }

/* 필터 셀렉트 박스 스타일 */
.filter_select {
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 0.95rem;
    color: #333;
    background-color: #fff;
    cursor: pointer;
}

/* CCTV 페이지 전용 레이아웃 및 디자인 */
.cctv_grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: -30px;
    margin-bottom: 20px;
}

.cctv_card {
    background: #ffffff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    border: 1px solid #e0e4e8;
}

.cctv_header {
    background: #212838; /* 메인 네이비 테마[cite: 1] */
    color: #ffffff;
    padding: 7px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.cctv_header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: -0.5px;
}

.live_badge {
    background: #c93d38; /* 메인 테라코타 테마[cite: 1] */
    color: #fff;
    font-size: 0.75rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    animation: blink 2s infinite;
}

.cctv_link {
    color: #333;
    font-weight: 700;
}

.cctv_link:hover {
    color: #b02a26;
    text-decoration: none;
}


/* 드론 페이지 전용 스타일 */
.drone_grid {
    display: flex;
    flex-direction: column;
    gap: 40px;
    margin-top: 30px;
}

.drone_card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    padding: 30px;
    text-align: center;
}

.drone_card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: #222;
}

.video_wrapper {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background-color: #000;
}

.video_wrapper video {
    width: 100%;
    display: block;
}

/* 기본 상태: PC 영상 노출, 모바일 영상 숨김 */
.pc_video {
    display: block;
}
.mobile_video {
    display: none;
}

/* 모바일 화면 (768px 이하) 해상도 분기점 */
@media (max-width: 768px) {
    .drone_card {
        padding: 20px 15px;
    }
    
    /* 모바일 상태: PC 영상 숨김, 모바일 영상 노출 */
    .pc_video {
        display: none;
    }
    .mobile_video {
        display: block;
    }
}


/* LIVE 배지 깜빡임 애니메이션 */
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0.6; }
    100% { opacity: 1; }
}

/* Video.js 커스텀 스킨 (사이트 테마 적용) */
.video-js {
    width: 100%;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    overflow: hidden;
}
.video-js .vjs-big-play-button {
    background-color: rgba(33, 40, 56, 0.8); /* 네이비 반투명 */
    border: 2px solid #ffffff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    line-height: 56px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    transition: all 0.3s ease;
}
.video-js:hover .vjs-big-play-button {
    background-color: #c93d38; /* 마우스 오버 시 테라코타 색상[cite: 1] */
    border-color: #c93d38;
}
.video-js .vjs-control-bar {
    background-color: rgba(33, 40, 56, 0.9);
}
.video-js .vjs-play-progress {
    background-color: #c93d38;
}


/* =========================================
   9. 미디어 쿼리 (모바일 반응형 대응)
   ========================================= */
@media screen and (max-width: 1024px) {
    /* 기상 실황 페이지 표 스크롤 지원 */
    .aws_table, 
    .knps_table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch; 
    }
    
    #aws_wrap {
        padding: 15px;
    }
    
    .btn_park {
        font-size: 0.95rem;
        padding: 10px 15px;
    }
}

@media (max-width: 480px) {
    /* 메인 페이지 */
    .main-title { font-size: 1.45rem; }
    .card-header { font-size: 1.05rem; }
    .card-icon { font-size: 3.5rem; }
    .sub-panel-item { font-size: 0.95rem; }
    .list-btn { font-size: 0.95rem; padding: 13px 16px; }
    
    /* 서브 페이지 */
    .park-tabs { grid-template-columns: repeat(2, 1fr); }
    .trail-graphic { padding-bottom: 10px; }
}