/* 아파트 실거래가 전용 스타일 */
.life-info-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: 'Noto Sans KR', sans-serif;
}

/* breadcrumb */
.breadcrumb {
    background: #f8f9fa;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb .separator {
    margin: 0 8px;
    color: #6c757d;
}

.breadcrumb .current {
    color: #495057;
    font-weight: 500;
}

/* 페이지 제목 */
.page-title {
    font-size: 2.2rem;
    color: #2c3e50;
    text-align: center;
    margin-bottom: 30px;
    font-weight: 700;
}

/* 정보 박스 */
.info-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    margin-bottom: 30px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.info-header {
    background: rgba(255,255,255,0.1);
    padding: 15px 20px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
}

.info-header i {
    margin-right: 8px;
}

.info-content {
    padding: 20px;
    color: white;
}

.info-content p {
    margin: 8px 0;
    font-size: 0.95rem;
    line-height: 1.5;
}

/* 검색 섹션 */
.search-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.search-section h2 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 1.4rem;
}

.search-section h2 i {
    margin-right: 8px;
    color: #007bff;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #495057;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group select {
    background: white;
    cursor: pointer;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.help-text {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 5px;
}

.form-actions {
    text-align: center;
}

.btn-search {
    background: linear-gradient(45deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-search i {
    margin-right: 8px;
}

/* 결과 섹션 */
.results-section {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.result-header {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    padding: 20px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h2 {
    margin: 0;
    font-size: 1.3rem;
}

.result-header h2 i {
    margin-right: 8px;
}

.result-summary {
    display: flex;
    gap: 20px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.summary-item .label {
    font-size: 0.85rem;
    opacity: 0.9;
    margin-bottom: 4px;
}

.summary-item .value {
    font-size: 1.1rem;
    font-weight: 600;
}

/* 필터 섹션 */
.filter-section {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e9ecef;
}

.filter-section h3 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 1.1rem;
}

.filter-section h3 i {
    margin-right: 8px;
    color: #007bff;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    background: white;
    border: 2px solid #dee2e6;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #495057;
}

.filter-btn:hover {
    border-color: #007bff;
    color: #007bff;
    transform: translateY(-1px);
}

.filter-btn.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* 테이블 */
.table-container {
    overflow-x: auto;
}

.results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.results-table th {
    background: #f8f9fa;
    color: #495057;
    padding: 15px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.results-table td {
    padding: 12px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.results-table tbody tr {
    transition: all 0.2s ease;
}

.results-table tbody tr:hover {
    background: #f8f9fa;
}

/* 테이블 셀 스타일 */
.date-cell {
    font-weight: 500;
    color: #495057;
}

.price-cell {
    text-align: right;
}

.price-main {
    color: #dc3545;
    font-weight: 700;
    font-size: 1.05rem;
}

.price-per-pyeong {
    color: #fd7e14;
    font-weight: 600;
}

.location-cell {
    color: #6c757d;
    font-size: 0.9rem;
}

.apt-cell {
    max-width: 200px;
}

.apt-name {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 4px;
}

.apt-dong {
    color: #6c757d;
    font-size: 0.85rem;
}

.area-cell {
    text-align: center;
}

.area-main {
    font-weight: 500;
    color: #495057;
}

.area-sub {
    color: #6c757d;
    font-size: 0.85rem;
    margin-top: 2px;
}

.floor-cell, .year-cell {
    text-align: center;
    color: #495057;
}

.action-cell {
    text-align: center;
}

.btn-detail {
    background: linear-gradient(45deg, #17a2b8, #138496);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-detail:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(23,162,184,0.4);
}

.btn-detail i {
    margin-right: 4px;
}

/* 검색 결과 없음 */
.no-results {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.no-results-icon {
    font-size: 4rem;
    color: #dee2e6;
    margin-bottom: 20px;
}

.no-results h3 {
    color: #495057;
    margin-bottom: 15px;
}

.no-results p {
    color: #6c757d;
    margin-bottom: 25px;
}

.suggestions {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    text-align: left;
    max-width: 400px;
    margin: 0 auto;
}

.suggestions p {
    color: #495057;
    font-weight: 600;
    margin-bottom: 10px;
}

.suggestions ul {
    color: #6c757d;
    margin: 0;
    padding-left: 20px;
}

.suggestions li {
    margin-bottom: 5px;
}

/* 모달 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 20px 30px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.modal-close {
    color: rgba(255,255,255,0.8);
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: white;
}

.modal-body {
    padding: 30px;
}

/* 상세 정보 테이블 */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}

.detail-table th {
    background: #f8f9fa;
    padding: 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #dee2e6;
    width: 30%;
    color: #495057;
}

.detail-table td {
    padding: 12px;
    border-bottom: 1px solid #dee2e6;
    color: #212529;
}

.detail-table .section-header {
    background: #007bff;
    color: white;
    text-align: center;
    font-weight: 600;
    padding: 12px;
}

/* 반응형 */
@media (max-width: 768px) {
    .life-info-container {
        padding: 15px;
    }
    
    .page-title {
        font-size: 1.8rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .result-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .result-summary {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .summary-item {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .filter-section {
        padding: 15px 20px;
    }
    
    .results-table {
        font-size: 0.8rem;
    }
    
    .results-table th,
    .results-table td {
        padding: 8px 6px;
    }
    
    .modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .modal-body {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    /* 기본 컨테이너 */
    .life-info-container {
        padding: 10px;
    }
    
    /* 브레드크럼 */
    .breadcrumb {
        font-size: 0.7rem;
        padding: 8px 12px;
        margin-bottom: 15px;
    }
    
    .breadcrumb a {
        padding: 4px 6px;
    }
    
    /* 페이지 제목 */
    .page-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
        text-align: center;
    }
    
    /* 정보 박스 */
    .info-box {
        margin-bottom: 20px;
    }
    
    .info-content p {
        font-size: 0.8rem;
        margin-bottom: 5px;
    }
    
    /* 검색 섹션 */
    .search-section {
        padding: 15px;
    }
    
    .search-section h2 {
        font-size: 1.1rem;
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
    }
    
    .form-group input,
    .form-group select {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .help-text {
        font-size: 0.75rem;
    }
    
    .btn-search {
        width: 100%;
        padding: 12px;
        font-size: 0.95rem;
        margin-top: 10px;
    }
    
    /* 결과 헤더 */
    .result-header {
        padding: 15px 20px;
    }
    
    .result-header h2 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .result-summary {
        flex-direction: column;
        gap: 8px;
    }
    
    .summary-item {
        background: rgba(255,255,255,0.1);
        padding: 8px 12px;
        border-radius: 6px;
        flex-direction: row;
        justify-content: space-between;
    }
    
    .summary-item .label {
        font-size: 0.8rem;
        margin: 0;
    }
    
    .summary-item .value {
        font-size: 0.9rem;
        font-weight: 700;
    }
    
    /* 필터 섹션 */
    .filter-section {
        padding: 12px 15px;
    }
    
    .filter-section h3 {
        font-size: 0.95rem;
        margin-bottom: 10px;
    }
    
    .filter-buttons {
        justify-content: flex-start;
        gap: 6px;
    }
    
    .filter-btn {
        font-size: 0.75rem;
        padding: 5px 10px;
        border-radius: 15px;
        white-space: nowrap;
    }
    
    /* 테이블 - 카드형으로 변경 */
    .table-container {
        padding: 0;
    }
    
    .results-table {
        display: none; /* 기본 테이블 숨김 */
    }
    
    /* 모바일 카드 레이아웃 */
    .mobile-card-container {
        display: block;
        gap: 10px;
    }
    
    .mobile-card {
        background: white;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 12px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #e9ecef;
    }
    
    .mobile-card-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        padding-bottom: 8px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .mobile-card-title {
        font-size: 0.9rem;
        font-weight: 600;
        color: #212529;
        line-height: 1.3;
        flex: 1;
    }
    
    .mobile-card-price {
        font-size: 0.95rem;
        font-weight: 700;
        color: #dc3545;
        text-align: right;
        margin-left: 10px;
    }
    
    .mobile-card-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        font-size: 0.8rem;
        margin-bottom: 10px;
    }
    
    .mobile-card-info-item {
        display: flex;
        justify-content: space-between;
    }
    
    .mobile-card-info-label {
        color: #6c757d;
        font-weight: 500;
    }
    
    .mobile-card-info-value {
        color: #212529;
        font-weight: 600;
    }
    
    .mobile-card-footer {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 10px;
        padding-top: 8px;
        border-top: 1px solid #f8f9fa;
    }
    
    .mobile-card-date {
        font-size: 0.75rem;
        color: #6c757d;
    }
    
    .mobile-card-detail {
        background: #007bff;
        color: white;
        border: none;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 0.75rem;
        cursor: pointer;
    }
    
    /* 모달 모바일 최적화 */
    .modal-content {
        width: 98%;
        margin: 5% auto;
        border-radius: 8px;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h3 {
        font-size: 1rem;
    }
    
    .modal-body {
        padding: 15px;
    }
    
    .detail-table th,
    .detail-table td {
        padding: 8px;
        font-size: 0.8rem;
    }
    
    .detail-table th {
        width: 35%;
    }
    
    /* 검색 결과 없음 */
    .no-results {
        padding: 30px 15px;
    }
    
    .no-results h3 {
        font-size: 1.1rem;
    }
    
    .no-results p {
        font-size: 0.9rem;
    }
    
    .suggestions {
        padding: 15px;
        margin-top: 15px;
    }
    
    .suggestions p {
        font-size: 0.85rem;
    }
    
    .suggestions ul {
        font-size: 0.8rem;
    }
} 