/* 기본 스타일 */
body {
    background-color: #f8f9fa;
    color: #333;
    font-family: 'Noto Sans KR', sans-serif;
}

/* 카드 스타일 */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.container {
    max-width: 1140px;
}

/* 헤더 스타일 */
header h1 {
    font-weight: 700;
    color: #2c3e50;
}

/* 검색 폼 스타일 */
.search-form {
    border-radius: 10px;
    box-shadow: 0 0.125rem 0.25rem rgba(0,0,0,0.075);
    background-color: #ffffff;
}

/* 인기 지역 링크 스타일 */
.popular-region-link {
    transition: all 0.3s ease;
    color: #495057;
    border: 1px solid #e9ecef;
}

.popular-region-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,.1);
    color: #212529;
    background-color: #e9ecef;
    border-color: #0d6efd;
}

.region-name {
    font-weight: 600;
    color: #495057;
}

/* 테이블 스타일 */
.table thead th {
    background-color: #f5f5f5;
    font-weight: 600;
}

.table .price {
    font-weight: 700;
    color: #e74c3c;
}

/* 애드센스 컨테이너 스타일 */
.ad-container {
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    overflow: hidden;
}

/* 모바일 최적화 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    header h1 {
        font-size: 1.8rem;
    }
    
    .search-header h2 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* 데이터 시각화 영역 */
.chart-placeholder {
    height: 300px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 네비게이션 바 스타일 */
.navbar {
    padding: 0.7rem 1rem;
}

.navbar-brand {
    font-size: 1.4rem;
}

.nav-link {
    font-weight: 500;
    color: #495057;
    transition: color 0.2s;
}

.nav-link:hover, .nav-link.active {
    color: #0d6efd;
}

/* 활성화된 메뉴 아이템 밑줄 효과 */
.nav-link.active {
    position: relative;
}

.nav-link.active:after {
    content: '';
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0;
    height: 2px;
    background-color: #0d6efd;
}

/* 모바일에서 메뉴 스타일 개선 */
@media (max-width: 767.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        background-color: #f8f9fa;
        border-radius: 0.5rem;
    }
    
    .nav-link.active:after {
        display: none;
    }
    
    .nav-link.active {
        background-color: #e9ecef;
        border-radius: 0.25rem;
    }
    
    .apt-cards .card {
        margin-bottom: 15px;
    }
}

/* 가격 표시 */
.price {
    color: #dc3545;
    font-weight: bold;
}

/* 페이지 로드 시 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.container-md {
    animation: fadeIn 0.5s ease-in;
}

/* 차트 컨테이너 */
#chartContainer {
    margin-bottom: 30px;
}