/* 기본 레이아웃 및 폰트 */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; 
    margin: 0; 
    padding: 0; 
    background: #f8f9fa; 
    color: #333; 
    line-height: 1.6; 
}

.container { 
    max-width: 1000px; 
    margin: 0 auto; 
    padding: 40px 20px; 
    min-height: 80vh; 
}

/* 네비게이션 바 */
nav { 
    background: #1a3d5c; 
    padding: 15px 20px; 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    flex-wrap: wrap; 
    gap: 15px; 
}

.nav-left { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.nav-left .logo { 
    color: white; 
    font-size: 1.4em; 
    font-weight: bold; 
    text-decoration: none; 
}

.nav-btn { 
    background: #e67e22; 
    color: white !important; 
    padding: 6px 15px; 
    border-radius: 20px; 
    text-decoration: none; 
    font-size: 0.9em; 
    font-weight: bold; 
    display: inline-flex; 
    align-items: center; 
    transition: background 0.2s; 
}

.nav-btn:hover { 
    background: #d35400; 
}

.nav-links { 
    display: flex; 
    gap: 15px; 
}

.nav-links a { 
    color: #ccc; 
    text-decoration: none; 
    font-size: 0.95em; 
}

.nav-links a:hover { 
    color: white; 
}

/* 푸터 */
footer { 
    text-align: center; 
    padding: 40px 20px; 
    background: #1a3d5c; 
    color: #aaa; 
    font-size: 0.9em; 
    margin-top: 40px; 
}

footer a { 
    color: #ddd; 
    text-decoration: none; 
    margin: 0 10px; 
}

footer a:hover { 
    text-decoration: underline; 
}

/* 공통 타이포그래피 */
h1 { 
    color: #1a3d5c; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
}

/* 카드 그리드 */
.card-grid { 
    display: grid; 
    grid-template-columns: 1fr 1fr; 
    gap: 30px; 
    margin-top: 40px; 
}

@media (max-width: 768px) { 
    .card-grid { 
        grid-template-columns: 1fr; 
    } 
}

.card { 
    background: white; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
    border-top: 5px solid #1a3d5c; 
}

.card h2 { 
    color: #1a3d5c; 
    margin-top: 0; 
    border-bottom: 2px solid #eee; 
    padding-bottom: 10px; 
}

.card.bad { 
    border-top-color: #e74c3c; 
}

.card.bad h2 { 
    color: #e74c3c; 
}

.county-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.county-list li { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 0; 
    border-bottom: 1px solid #f0f0f0; 
}

.county-list li a { 
    color: #1a3d5c; 
    text-decoration: none; 
    font-weight: bold; 
}

.county-list li a:hover { 
    text-decoration: underline; 
}

.score { 
    font-weight: bold; 
    color: #27ae60; 
}

.card.bad .score { 
    color: #e74c3c; 
}

.back-link { 
    display: inline-block; 
    margin-bottom: 20px; 
    color: #1a3d5c; 
    text-decoration: none; 
    font-weight: bold; 
}

/* 텍스트 섹션 */
.text-section { 
    background: white; 
    padding: 30px; 
    border-radius: 12px; 
    margin-top: 30px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); 
}

.text-section h2 { 
    color: #1a3d5c; 
    margin-top: 0; 
}

.text-section p { 
    font-size: 1.05em; 
    color: #444; 
    margin-bottom: 15px; 
}

/* 검색창 스타일 */
.search-container { 
    max-width: 700px; 
    margin: 0 auto 30px; 
    text-align: center; 
    position: relative; 
}

.search-box { 
    display: flex; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.08); 
    border-radius: 8px; 
    overflow: hidden; 
    border: 1px solid #ddd; 
    background: white; 
}

.search-box input { 
    flex: 1; 
    padding: 15px 20px; 
    border: none; 
    font-size: 1.1em; 
    outline: none; 
}

.search-box button { 
    background: #e67e22; 
    color: white; 
    border: none; 
    padding: 0 25px; 
    font-size: 1em; 
    font-weight: bold; 
    cursor: pointer; 
    transition: background 0.2s; 
}

.search-box button:hover { 
    background: #d35400; 
}

.search-helpers { 
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 15px; 
    margin-top: 15px; 
    font-size: 0.9em; 
    flex-wrap: wrap; 
}

.search-helpers a { 
    color: #1a3d5c; 
    text-decoration: none; 
    font-weight: bold; 
}

.search-helpers a:hover { 
    text-decoration: underline; 
}

.popular-links { 
    display: flex; 
    gap: 10px; 
    color: #666; 
}

.popular-links a { 
    font-weight: normal; 
    color: #3498db; 
}

.popular-links a:hover { 
    text-decoration: underline; 
}

/* 자동완성 드롭다운 */
.autocomplete-dropdown { 
    position: absolute; 
    top: 100%; 
    left: 0; 
    right: 0; 
    background: white; 
    border: 1px solid #ddd; 
    border-top: none; 
    border-radius: 0 0 8px 8px; 
    max-height: 300px; 
    overflow-y: auto; 
    list-style: none; 
    margin: 0; 
    padding: 0; 
    z-index: 1000; 
    box-shadow: 0 10px 20px rgba(0,0,0,0.1); 
    display: none; 
    text-align: left; 
}

.autocomplete-dropdown li { 
    padding: 12px 20px; 
    border-bottom: 1px solid #eee; 
    cursor: pointer; 
}

.autocomplete-dropdown li:hover { 
    background: #f0f8ff; 
    color: #1a3d5c; 
}

.autocomplete-dropdown li a { 
    text-decoration: none; 
    color: inherit; 
    display: block; 
    font-weight: 500; 
}

.autocomplete-dropdown li span { 
    font-size: 0.8em; 
    color: #888; 
    margin-left: 5px; 
}