/* 기본 초기화 및 폰트 설정 */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
body {
    font-family: 'Malgun Gothic', 'Apple SD Gothic Neo', sans-serif;
    background-color: #f8f9fa;
    color: #333333;
    line-height: 1.6;
}
a {
    text-align: inherit;
    color: inherit;
    text-decoration: none;
}

/* 헤더 레이아웃 */
header {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    padding: 15px 20px;
    position: sticky;
    top: 0;
    z-index: 1000;
}
header .site-logo {
    max-width: 1200px;
    margin: 0 auto;
    font-size: 1.4rem;
    font-weight: bold;
    color: #007bff;
}

/* 컨테이너 및 메인 레이아웃 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
}

/* 히어로 섹션 */
.hero-section {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background-color: #ffffff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}
.hero-section h1 {
    font-size: 2rem;
    color: #111;
    margin-bottom: 10px;
}
.hero-section p {
    color: #666;
    font-size: 1.05rem;
}

/* 지역 선택 스타일 */
.region-selector {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-bottom: 30px;
}
.region-selector h2 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #222;
    border-left: 4px solid #007bff;
    padding-left: 10px;
}
.sido-list, .sigungu-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}
.sigungu-list {
    border-top: 1px dashed #e9ecef;
    padding-top: 15px;
    margin-bottom: 0;
}
.sido-list a, .sigungu-list a {
    display: inline-block;
    padding: 8px 14px;
    background-color: #f1f3f5;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}
.sido-list a:hover, .sigungu-list a:hover {
    background-color: #e9ecef;
}
.sido-list a.active, .sigungu-list a.active {
    background-color: #007bff;
    color: #ffffff;
    font-weight: bold;
}

/* 안내 및 결과 섹션 */
.results-section {
    margin-bottom: 40px;
}
.section-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #111;
}
.main-guide {
    background-color: #e8f4fd;
    border: 1px solid #bee5eb;
    color: #0c5460;
    padding: 20px;
    border-radius: 6px;
    font-size: 1.05rem;
}
.no-data {
    text-align: center;
    padding: 50px 20px;
    background-color: #fff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    color: #777;
}

/* 결과 카드 그리드 및 카드 스타일 */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}
.card {
    background-color: #ffffff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.card-header {
    padding: 20px 20px 10px 20px;
}
.card-header h4 {
    font-size: 1.2rem;
    color: #111;
    margin-top: 8px;
}
.badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 0.75rem;
    font-weight: bold;
    border-radius: 3px;
}
.badge-private {
    background-color: #fff3cd;
    color: #856404;
}
.badge-public {
    background-color: #d1ecf1;
    color: #0c5460;
}
.card-body {
    padding: 0 20px 20px 20px;
    font-size: 0.95rem;
    color: #555;
}
.card-body p {
    margin-bottom: 6px;
}
.card-body p strong {
    color: #333;
}
.card-footer-info {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #f1f3f5;
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #888;
}

/* 하단 푸터 커스텀 적용 */
footer {
    background-color: #ffffff;
    padding: 30px 20px;
    font-size: 0.9rem;
    color: #666;
}

/* 모바일 반응형 조정 */
@media (max-width: 576px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
    .hero-section h1 {
        font-size: 1.6rem;
    }
}

/* 탭 메뉴 스타일 */
.tab-menu {
    display: flex;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 25px;
    gap: 5px;
}
.tab-item {
    display: block;
    padding: 12px 24px;
    font-size: 1.05rem;
    font-weight: 500;
    color: #666666;
    background-color: transparent;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.2s ease;
    cursor: pointer;
}
.tab-item:hover {
    color: #007bff;
}
.tab-item.active {
    color: #007bff;
    font-weight: bold;
    border-bottom: 2px solid #007bff;
}

/* 모바일 탭 대응 */
@media (max-width: 576px) {
    .tab-item {
        flex: 1;
        text-align: center;
        padding: 10px 10px;
        font-size: 0.95rem;
    }
}

/* 지도보기 버튼 디자인 스타일 */
.card-action {
    margin-top: 15px;
    border-top: 1px solid #f1f3f5;
    padding-top: 12px;
    text-align: right;
}
.btn-map {
    display: inline-block;
    padding: 6px 14px;
    font-size: 0.85rem;
    font-weight: bold;
    color: #007bff;
    background-color: #ffffff;
    border: 1px solid #007bff;
    border-radius: 4px;
    transition: all 0.2s ease;
    text-align: center;
}
.btn-map:hover {
    color: #ffffff;
    background-color: #007bff;
    text-decoration: none;
}

/* 출처 및 안내문 스타일 */
.data-notice-section {
    margin-top: 40px;
    margin-bottom: 20px;
    padding: 0 15px;
}
.notice-box {
    background-color: #f8f9fa;
    border-left: 4px solid #6c757d;
    padding: 15px 20px;
    border-radius: 0 4px 4px 0;
}
.source-text {
    font-size: 0.9rem;
    font-weight: bold;
    color: #495057;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
}
.notice-desc {
    font-size: 0.82rem;
    color: #6c757d;
    line-height: 1.6;
    margin: 0;
}

/* 모바일 화면 대응 */
@media (max-width: 576px) {
    .notice-box {
        padding: 12px 15px;
    }
    .notice-desc {
        font-size: 0.78rem;
    }
}

