@charset "utf-8";

/* --- 공통 CSS 및 3개 페이지 전체 CSS 통합 --- */
:root {
    --primary-blue: #0056b3;
    --accent-red: #d9534f;
    --border-color: #ddd;
    --bg-light: #f8f9fa;
    --widget-blue-bg: #f4f8ff;
    --widget-blue-border: #d1d9e4;
    --table-border-green: #b9d8b9;
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: "Malgun Gothic", sans-serif; }
body { background-color: #f2f4f7; font-size: 12px; color: #333; line-height: 1.5; padding-bottom: 0; }
ul { list-style: none; }
a { text-decoration: none; color: inherit; }

/* 헤더 영역 */
header { background: #fff; border-bottom: 2px solid var(--primary-blue); position: relative; z-index: 1000; }
.header-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; padding: 0 20px; }
.logo { font-size: 24px; font-weight: 900; color: #1a4a8d; cursor: pointer; white-space: nowrap; }
.gnb { display: flex; flex: 1; justify-content: flex-end; }
.gnb > li { position: relative; }
.gnb > li > a { display: block; padding: 20px 15px; font-size: 14px; font-weight: bold; color: #333; transition: all 0.2s; }
.gnb > li:hover > a { color: var(--primary-blue); background: #f0f4fb; }
.depth2 { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid #ccc; box-shadow: 0 4px 10px rgba(0,0,0,0.1); width: 160px; padding: 5px 0; border-radius: 0 0 4px 4px; z-index: 1001; }
.gnb > li:hover .depth2 { display: block; }
.depth2 li a { display: block; padding: 8px 15px; font-size: 12px; color: #555; border-bottom: 1px solid #f9f9f9; }
.depth2 li a:hover { background: #f8f9fa; color: var(--primary-blue); font-weight: bold; }
.depth2 li:last-child a { border-bottom: none; }
.lock-icon { font-size: 10px; color: #999; margin-left: 3px; }
.member-only-txt { font-size: 10px; color: #d9534f; font-weight: normal; margin-left: 5px; }

/* 배너 영역 */
.main-banner { max-width: 1200px; margin: 15px auto; display: flex; background: #fff; border: 1px solid var(--border-color); height: 100px; }
.banner-info { width: 220px; padding: 20px; border-right: 1px solid var(--border-color); text-align: center; background: #fafafa; }
.banner-info .tel { font-size: 20px; font-weight: bold; color: var(--primary-blue); }
.banner-img { flex: 1; background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)), url('https://images.unsplash.com/photo-1542314831-068cd1dbfeeb?q=80&w=1170&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D') center/cover; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 20px; font-weight: bold; text-shadow: 1px 1px 3px rgba(0,0,0,0.5); }

/* 레이아웃 및 사이드바 */
.wrapper { max-width: 1200px; margin: 0 auto; display: flex; gap: 20px; padding-bottom: 50px; }
aside.left-sidebar { width: 220px; flex-shrink: 0; }
.img-widget-box { border: 2px solid #dae3f3; border-radius: 6px; padding: 12px 15px; background: #fff; margin-bottom: 12px; }
.stat-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.stat-row:first-child { border-bottom: 1px dashed #ccc; }
.stat-label { color: #333; letter-spacing: -0.5px; }
.stat-val { font-weight: bold; font-family: Tahoma, sans-serif; font-size: 15px; }
.stat-val.today { color: #e73c30; }
.stat-val.total { color: #1c3d70; }
.stat-val .unit { color: #333; font-weight: normal; font-family: "Malgun Gothic", sans-serif; font-size: 13px; }
.quick-title-area { position: relative; padding-left: 14px; margin-bottom: 10px; }
.quick-title-area::before { content: '●'; position: absolute; left: 0; top: 4px; color: #82a3eb; font-size: 9px; line-height: 1.1; }
.qt-eng { font-size: 10px; color: #888; font-family: Tahoma, sans-serif; margin-bottom: -2px; }
.qt-kor { font-size: 15px; font-weight: bold; color: #333; letter-spacing: -1px; }
.quick-form-box { display: flex; border: 1px solid #aebce0; padding: 3px; border-radius: 3px; background: #fff; }
.quick-input { flex: 1; min-width: 0; border: none; background: #b5c7ef; height: 26px; padding: 0 5px; outline: none; }
.quick-btn { width: 45px; flex-shrink: 0; white-space: nowrap; background: linear-gradient(to bottom, #86a7e8, #5b83d8); color: #fff; border: 1px solid #4a6cb5; border-radius: 2px; font-weight: bold; font-size: 12px; cursor: pointer; margin-left: 4px; }
.side-box { background: #fff; border: 1px solid var(--border-color); margin-bottom: 15px; }
.side-title { background: #eee; padding: 8px 10px; font-weight: bold; border-bottom: 1px solid var(--border-color); font-size: 11px; }
.side-content { padding: 10px; }
.side-menu li { padding: 8px 0; border-bottom: 1px dotted #ddd; cursor: pointer; font-size: 11px; }
.blue-widget { background: var(--widget-blue-bg); border: 1px solid var(--widget-blue-border); border-radius: 8px; margin-bottom: 15px; padding: 12px; }
.widget-head { font-size: 13px; font-weight: bold; margin-bottom: 10px; display: flex; align-items: center; gap: 5px; color: #333; }
.widget-head::before { content: "●"; color: #7a9fec; font-size: 10px; }
.theme-list li { padding: 4px 0; font-size: 11px; color: #444; cursor: pointer; }
.calc-box { background: #fff; border: 1px solid #dce4f0; border-radius: 5px; padding: 8px; margin-top: 5px; }
.calc-row { display: flex; align-items: center; gap: 4px; font-size: 11px; margin: 5px 0; }
.calc-row input { width: 40px; height: 22px; border: 1px solid #ccc; text-align: right; min-width: 0; }
.calc-btn { background: #f8f8f8; border: 1px solid #bbb; padding: 2px 6px; cursor: pointer; font-size: 11px; flex-shrink: 0; white-space: nowrap; }
.dot-line { border-top: 1px dotted #ccc; margin: 8px 0; }

/* 메인 공통 */
main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--border-color); padding: 20px; }

/* 인덱스(song.html) 상세 CSS */
.smart-search-sec { margin-bottom: 30px; }
.search-box { display: flex; border: 3px solid #8ba4e4; border-radius: 10px; background: #fff; padding: 2px; }
.search-title-area { width: 130px; flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; border-right: 1px dotted #ccc; padding: 15px 10px; text-align: center; }
.search-title-area .eng { font-size: 10px; color: #888; letter-spacing: -0.5px; }
.search-title-area strong { font-size: 15px; font-weight: 900; letter-spacing: -1px; margin: 4px 0 8px; color: #222; }
.search-title-area .icon { font-size: 28px; line-height: 1; }
.search-form-area { flex: 1; padding: 12px 15px; font-size: 11px; }
.form-row { display: flex; align-items: center; margin-bottom: 8px; flex-wrap: wrap; gap: 4px; }
.form-row:last-child { margin-bottom: 0; }
.form-row .label { width: 65px; font-weight: bold; color: #444; flex-shrink: 0; }
.form-row .label span { color: #d9534f; font-size: 10px; margin-right: 3px; font-weight: bold; }
.search-form-area select, .search-form-area input { border: 1px solid #ccc; font-size: 11px; color: #555; padding: 0 4px; height: 22px; vertical-align: middle; }
.search-form-area select { height: 24px; }
.in-short { width: 50px; text-align: right; }
.in-med { width: 90px; }
.txt-space { margin: 0 3px; }
.btn-blue { background: #6184d8; color: #fff; border: 1px solid #4a6ec5; padding: 0 10px; font-weight: bold; cursor: pointer; height: 24px; border-radius: 2px; }
.btn-gray { background: #999; color: #fff; border: 1px solid #888; padding: 0 10px; cursor: pointer; height: 24px; border-radius: 2px; }
.list-section { margin-bottom: 30px; }
.bar-header { display: flex; justify-content: space-between; align-items: center; padding: 10px 15px; border-radius: 5px 5px 0 0; color: #fff; }
.bar-header h2 { font-size: 16px; margin: 0; color: #fff; font-weight: bold; }
.bar-header .more-btn { font-size: 11px; color: #fff; background: rgba(0,0,0,0.2); padding: 4px 10px; border-radius: 3px; cursor: pointer; border: 1px solid rgba(255,255,255,0.3); transition: background 0.2s; }
.bar-header .more-btn:hover { background: rgba(0,0,0,0.4); }
.bg-recommend { background-color: #0056b3; }
.bg-urgent { background-color: #9b59b6; }
.bg-latest { background-color: #00b894; }
.item-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 40px; }
.grid-card { border: 1px solid #eee; text-align: center; background: #fff; border-radius: 3px; overflow: hidden; }
.grid-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-bottom: 1px solid #eee; }
.grid-info { padding: 10px 8px; }
.grid-info .title { font-weight: bold; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 5px; font-size: 11px; }
.grid-info .price { color: var(--accent-red); font-weight: bold; font-size: 13px; }
.table-wrapper { width: 100%; overflow-x: auto; border: 1px solid var(--border-color); border-top: none; }
.list-table { width: 100%; border-collapse: collapse; min-width: 500px; }
.list-table th { background: #f8f9fa; border-bottom: 1px solid var(--border-color); padding: 12px 8px; font-size: 12px; color: #333; }
.list-table td { border-bottom: 1px solid #eee; padding: 15px 8px; text-align: center; font-size: 12px; vertical-align: middle; }
.subject-cell { text-align: left !important; padding-left: 20px !important; }
.subject-cell .loc-name { color: #666; font-size: 11px; display: block; margin-bottom: 2px; }
.subject-cell strong { display: block; color: var(--primary-blue); font-size: 13px; font-weight: bold; cursor: pointer; }
.type-text { color: #e84118; }
.area-info { text-align: left; display: inline-block; }
.area-badge { display: inline-block; width: 28px; padding: 1px 0; text-align: center; border-radius: 2px; color: #fff; font-size: 10px; margin-right: 5px; }
.bg-land { background: #6ab04c; }
.bg-build { background: #3498db; }
.price-cell { width: 120px; }
.price-val { color: #d35400; font-weight: bold; font-size: 15px; }

/* 서브페이지(song_cate.html, song_sub.html) 특화 CSS */
.section-header { display: flex; align-items: center; padding-bottom: 10px; border-bottom: 2px solid var(--primary-blue); margin-bottom: 20px; }
.section-header .icon-circle { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--primary-blue); background-color: #fff; margin-right: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary-blue); font-weight: bold; font-size: 12px; }
.section-header h2 { font-size: 16px; font-weight: bold; color: #333; }
.section-header span { font-size: 12px; color: #666; margin-left: 10px; }
#recommendation-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 15px; margin-bottom: 40px; }
.grid-item { border: 1px solid #ddd; background-color: #fff; padding: 8px; text-align: center; transition: border-color 0.2s; }
.grid-item:hover { border-color: var(--primary-blue); }
.grid-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border: 1px solid #eee; margin-bottom: 8px; }
.grid-item .title { font-weight: bold; font-size: 12px; margin-bottom: 5px; color: #333; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.grid-item .info { color: #666; font-size: 11px; margin-bottom: 5px; }
.grid-item .price-row { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 12px; }
.grid-item .price-label { font-weight: bold; color: #333; }
.grid-item .price-val { font-weight: bold; color: var(--accent-red); }
.badge { display: inline-block; padding: 1px 4px; border-radius: 2px; font-size: 10px; font-weight: bold; color: #fff; vertical-align: middle; }
.badge.recommend { background-color: #f0ad4e; }
.badge.best { background-color: #5bc0de; }
.badge.new { background-color: #d9534f; }
.badge.hot { background-color: #5cb85c; }
.badge.interior { background-color: #d9534f; }
.badge.star { background-color: #d9534f; }
#smart-search { border: 1px solid var(--primary-blue); border-radius: 8px; padding: 20px; background-color: #f0f4f8; margin-bottom: 40px; display: flex; align-items: center; gap: 20px; }
.search-title-box { display: flex; flex-direction: column; align-items: center; color: var(--primary-blue); font-weight: bold; text-align: center; width: 110px; flex-shrink: 0; }
.search-title-box span { font-size: 10px; }
.search-title-box h3 { font-size: 16px; margin: 5px 0; letter-spacing:-1px; }
.search-title-box .icon { font-size: 28px; line-height: 1; margin-top:5px; }
.search-form-box { flex: 1; display: grid; grid-template-columns: 80px 1fr; gap: 8px 10px; align-items: center; }
.form-label { font-weight: bold; color: #333; font-size:11px; }
.form-label .arrow { color: var(--accent-red); margin-right: 3px; }
.form-row .unit { color: #666; margin: 0 2px; font-size:11px; }
.form-row .btn { display: inline-block; padding: 0 10px; height: 24px; line-height: 22px; border-radius: 2px; font-size: 11px; font-weight: bold; cursor: pointer; border: 1px solid #999; }
.form-row .search-btn { background-color: var(--primary-blue); color: #fff; border-color: var(--primary-blue); }
.form-row .all-view-btn, .form-row .sort-btn { background-color: #999; color: #fff; }
#general-list-table { width: 100%; border-collapse: collapse; border-top: 1px solid #ddd; }
#general-list-table th, #general-list-table td { border-bottom: 1px solid #ddd; padding: 15px 10px; text-align: center; vertical-align: middle; }
#general-list-table thead th { background-color: var(--primary-blue); color: #fff; font-weight: bold; font-size: 12px; padding: 10px; }
#general-list-table th.col-photo, #general-list-table td.col-photo { width: 130px; }
#general-list-table th.col-loc, #general-list-table td.col-loc { text-align: left; }
#general-list-table .img-box { width: 110px; height: 80px; object-fit: cover; border: 1px solid #ccc; padding: 2px; }
#general-list-table .loc-name { font-size: 11px; color: #666; margin-bottom: 3px; display:inline-block; margin-right:10px;}
#general-list-table .type-name { font-size: 11px; color: var(--accent-red); font-weight: bold; display:inline-block;}
#general-list-table .item-title { color: var(--primary-blue); font-size: 14px; font-weight: bold; display: block; margin: 5px 0; }
#general-list-table .badge-row { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
#general-list-table .area-row {
    display: inline-flex;     /* td 내에서 전체 그룹을 가운데로 유지 */
    flex-direction: column;
    align-items: flex-start;  /* 내부 항목(뱃지)들을 왼쪽 시작선에 맞춰 고정 */
    gap: 4px;
    color: #444;
    font-size: 11px;
}

/* 매물 상세페이지 전용 CSS */
main.detail-page { border-top: 3px solid #6ab04c; padding: 30px; }
.page-title { font-size: 22px; font-weight: bold; color: #222; margin-bottom: 25px; border-bottom: 2px solid #333; padding-bottom: 10px; }
.sec-title { font-size: 15px; font-weight: bold; color: #444; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.sec-title::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; border: 2px solid #e67e22; background: #fff; }
.detail-table { width: 100%; border-collapse: collapse; border-top: 1px solid var(--table-border-green); margin-bottom: 30px; font-size: 13px; }
.detail-table th { width: 140px; background: #fdfdfd; border-bottom: 1px solid var(--table-border-green); border-right: 1px solid var(--table-border-green); padding: 12px 15px; text-align: left; font-weight: bold; color: #333; }
.detail-table td { border-bottom: 1px solid var(--table-border-green); padding: 12px 15px; color: #222; }
.txt-teal { color: #008B8B; font-weight: bold; }
.txt-price { color: #d81b60; font-weight: bold; font-size: 15px; }
.badge-rec { display: inline-block; background: #f37b54; color: #fff; font-size: 10px; padding: 2px 7px; border-radius: 12px; margin-left: 5px; vertical-align: middle; }
.detail-desc-box { border: 1px solid #ccc; padding: 20px; font-size: 15px; line-height: 1.8; color: #111; font-weight: bold; background: #fafafa; border-radius: 4px; }

/* 푸터 영역 */
footer { background: #fff; border-top: 1px solid #ccc; padding: 40px 0; margin-top: 20px; }
.footer-inner { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: flex-start; }
.footer-left .footer-logo { font-size: 20px; font-weight: bold; color: #333; margin-bottom: 10px; display: block; }
.footer-left p { color: #666; font-size: 11px; line-height: 1.8; }
.footer-right { text-align: right; }
.copyright { font-size: 11px; color: #999; margin-top: 10px; }
.mobile-call-bar { display: none; position: fixed; bottom: 0; left: 0; width: 100%; height: 60px; background: var(--primary-blue); color: #fff; text-align: center; line-height: 60px; font-size: 18px; font-weight: bold; z-index: 9999; }

@media (max-width: 768px) {

}
