/**
 * 부동산 개별 서비스 공통 - 심플 CSS
 * 기준: insurance_calc_modern.css
 */
body.realestate-apt-sale-page .main-content {
    padding-bottom: 20px !important;
}

body.realestate-apt-sale-page.unified-search-page,
body.realestate-building-register-page.unified-search-page,
body.realestate-apt-rent-page.unified-search-page,
body.realestate-lh-applyhome-page.unified-search-page,
body.realestate-lh-calendar-page.unified-search-page {
    background: #fff !important;
}

/* pc-search-interface, search-sidebar: insurance_calc와 동일 */
body.realestate-apt-sale-page .pc-search-interface,
body.realestate-building-register-page .pc-search-interface,
body.realestate-apt-rent-page .pc-search-interface,
body.realestate-lh-calendar-page .pc-search-interface {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    align-items: start;
}
body.realestate-apt-sale-page .search-sidebar,
body.realestate-building-register-page .search-sidebar,
body.realestate-apt-rent-page .search-sidebar,
body.realestate-lh-calendar-page .search-sidebar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    box-shadow: none;
    position: sticky;
    top: 20px;
}
body.realestate-apt-sale-page .search-sidebar .form-control,
body.realestate-building-register-page .search-sidebar .form-control,
body.realestate-apt-rent-page .search-sidebar .form-control,
body.realestate-lh-calendar-page .search-sidebar .form-control,
body.realestate-apt-sale-page .search-sidebar input[type="text"],
body.realestate-building-register-page .search-sidebar input[type="text"],
body.realestate-apt-rent-page .search-sidebar input[type="text"],
body.realestate-lh-calendar-page .search-sidebar input[type="text"],
body.realestate-apt-sale-page .search-sidebar select,
body.realestate-building-register-page .search-sidebar select,
body.realestate-apt-rent-page .search-sidebar select,
body.realestate-lh-calendar-page .search-sidebar select {
    border: 2px solid #4c4c4c;
}
body.realestate-apt-sale-page .back-btn,
body.realestate-building-register-page .back-btn,
body.realestate-apt-rent-page .back-btn,
body.realestate-lh-calendar-page .back-btn {
    background: #fff;
    border: 1px solid #4c4c4c;
    border-radius: 8px;
    color: #4c4c4c;
    width: 40px;
    height: 40px;
    min-width: 40px;
}
body.realestate-apt-sale-page .search-results-area,
body.realestate-building-register-page .search-results-area,
body.realestate-apt-rent-page .search-results-area,
body.realestate-lh-calendar-page .search-results-area {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: none;
}
/* LH 캘린더: 달력 영역 항상 노출 */
body.realestate-lh-calendar-page .search-results-area .calendar-main,
body.realestate-lh-calendar-page .search-results-area .calendar-wrapper,
body.realestate-lh-calendar-page .search-results-area .calendar-content {
    display: block !important;
    width: 100%;
}
body.realestate-lh-calendar-page .search-results-area #calendar {
    display: block !important;
    width: 100%;
    min-height: 400px;
}
body.realestate-apt-sale-page .search-btn-simple,
body.realestate-building-register-page .search-btn-simple,
body.realestate-apt-sale-page .search-btn-primary,
body.realestate-building-register-page .search-btn-primary {
    width: 100%;
    background: #374151;
    color: #fff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
}
body.realestate-apt-sale-page .search-btn-simple:hover,
body.realestate-building-register-page .search-btn-simple:hover,
body.realestate-apt-sale-page .search-btn-primary:hover,
body.realestate-building-register-page .search-btn-primary:hover {
    background: #1f2937;
}

/* 부동산 대시보드 (insu_info와 동일 패턴) */
.realestate-services-dashboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e5e7eb;
}
.realestate-dashboard-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
}
.realestate-dashboard-btn:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #1f2937;
}
.realestate-dashboard-btn.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
.realestate-dashboard-btn i { width: 18px; text-align: center; flex-shrink: 0; }
.realestate-btn-text-mobile { display: none; }

/* PC: 우측 결과 영역 대시보드는 숨김 (좌측 사이드바에만 표시). 모바일에서는 @media에서 표시 */
body.realestate-apt-sale-page .search-results-area .realestate-services-dashboard-mobile,
body.realestate-building-register-page .search-results-area .realestate-services-dashboard-mobile,
body.realestate-apt-rent-page .search-results-area .realestate-services-dashboard-mobile,
body.realestate-lh-calendar-page .search-results-area .realestate-services-dashboard-mobile {
    display: none !important;
}

.realestate-main .main-content {
    padding: 20px 0 24px;
    margin-top: 70px;
}
/* 히어로가 있는 페이지: 헤더 여백 제거, 히어로와 본문 붙임 */
body:has(.life-info-hero) .realestate-main .main-content {
    margin-top: 0;
    padding-top: 0;
}
.realestate-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}
.real-estate-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.real-estate-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}
.real-estate-card .card-header {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 10px;
}
.real-estate-card .card-header strong { font-size: 0.95rem; }
.real-estate-card .dong-info { font-size: 12px; color: #6b7280; }
.real-estate-card .card-body { font-size: 13px; }
.real-estate-card .card-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}
.real-estate-card .card-row span:first-child { color: #6b7280; }

/* 모바일: 대시보드 상단 고정, 사이드바 숨김 */
@media (max-width: 768px) {
    body.realestate-apt-sale-page .pc-search-interface,
    body.realestate-building-register-page .pc-search-interface,
    body.realestate-apt-rent-page .pc-search-interface,
    body.realestate-lh-calendar-page .pc-search-interface {
        display: grid !important;
        grid-template-columns: 1fr !important;
    }
    body.realestate-apt-sale-page .search-sidebar,
    body.realestate-building-register-page .search-sidebar,
    body.realestate-apt-rent-page .search-sidebar,
    body.realestate-lh-calendar-page .search-sidebar {
        display: none !important;
    }
    body.realestate-apt-sale-page .realestate-services-dashboard:not(.realestate-services-dashboard-mobile),
    body.realestate-building-register-page .realestate-services-dashboard:not(.realestate-services-dashboard-mobile),
    body.realestate-apt-rent-page .realestate-services-dashboard:not(.realestate-services-dashboard-mobile),
    body.realestate-lh-calendar-page .realestate-services-dashboard:not(.realestate-services-dashboard-mobile) {
        display: none !important;
    }
    /* 우측 결과 영역 안의 모바일 대시보드: 모바일에서만 상단에 표시 */
    body.realestate-apt-sale-page .search-results-area .realestate-services-dashboard-mobile,
    body.realestate-building-register-page .search-results-area .realestate-services-dashboard-mobile,
    body.realestate-apt-rent-page .search-results-area .realestate-services-dashboard-mobile,
    body.realestate-lh-calendar-page .search-results-area .realestate-services-dashboard-mobile {
        display: flex !important;
    }
    body.realestate-apt-sale-page .realestate-services-dashboard-mobile,
    body.realestate-building-register-page .realestate-services-dashboard-mobile,
    body.realestate-apt-rent-page .realestate-services-dashboard-mobile,
    body.realestate-lh-calendar-page .realestate-services-dashboard-mobile {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 8px 0 10px;
        margin: 0 0 12px 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        background: #fff;
        border-bottom: 2px solid #e5e7eb;
    }
    body.realestate-apt-sale-page .realestate-services-dashboard-mobile .realestate-dashboard-btn,
    body.realestate-building-register-page .realestate-services-dashboard-mobile .realestate-dashboard-btn,
    body.realestate-apt-rent-page .realestate-services-dashboard-mobile .realestate-dashboard-btn,
    body.realestate-lh-calendar-page .realestate-services-dashboard-mobile .realestate-dashboard-btn {
        flex: 1;
        min-width: 0;
        justify-content: center;
        white-space: nowrap;
        padding: 6px 4px;
        font-size: 11px;
        gap: 4px;
    }
    .realestate-services-dashboard-mobile .realestate-btn-text-pc { display: none !important; }
    .realestate-services-dashboard-mobile .realestate-btn-text-mobile { display: inline !important; }
    body.realestate-apt-sale-page .insu-info-mobile-title-bar,
    body.realestate-building-register-page .insu-info-mobile-title-bar,
    body.realestate-apt-rent-page .insu-info-mobile-title-bar,
    body.realestate-lh-calendar-page .insu-info-mobile-title-bar {
        display: block !important;
        padding: 10px 0 12px;
        background: #fff;
    }
    body.realestate-apt-sale-page .main-content,
    body.realestate-building-register-page .main-content,
    body.realestate-apt-rent-page .main-content,
    body.realestate-lh-calendar-page .main-content {
        margin-top: 46px !important;
        padding: 10px 0 24px !important;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .main-content,
    body:has(.life-info-hero).realestate-building-register-page .main-content,
    body:has(.life-info-hero).realestate-apt-rent-page .main-content,
    body:has(.life-info-hero).realestate-lh-calendar-page .main-content {
        margin-top: 0 !important;
        padding-top: 0 !important;
    }
    /* LH 캘린더: insurance_calc_modern이 768px에서 .search-results-area 숨김 방지 */
    body.realestate-lh-calendar-page .search-results-area {
        display: block !important;
    }

    /* 히어로 있는 부동산 페이지: 좌우 10px만(search-results-area에서만), 화면 위아래 전부 활용 */
    body:has(.life-info-hero).realestate-apt-sale-page .realestate-container,
    body:has(.life-info-hero).realestate-building-register-page .realestate-container,
    body:has(.life-info-hero).realestate-apt-rent-page .realestate-container,
    body:has(.life-info-hero).realestate-lh-calendar-page .realestate-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    /* 부 컨테이너 패딩 0, 내부에서만 10px */
    body:has(.life-info-hero).realestate-apt-sale-page .search-results-area,
    body:has(.life-info-hero).realestate-building-register-page .search-results-area,
    body:has(.life-info-hero).realestate-apt-rent-page .search-results-area,
    body:has(.life-info-hero).realestate-lh-calendar-page .search-results-area {
        padding: 0 !important;
        min-height: calc(100vh - var(--header-height, 70px) - 52px - 56px - env(safe-area-inset-bottom, 0)) !important;
        box-sizing: border-box;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .search-results-area .results-header,
    body:has(.life-info-hero).realestate-building-register-page .search-results-area .results-header,
    body:has(.life-info-hero).realestate-apt-rent-page .search-results-area .results-header {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .search-results-area .results-content,
    body:has(.life-info-hero).realestate-building-register-page .search-results-area .results-content,
    body:has(.life-info-hero).realestate-apt-rent-page .search-results-area .results-content {
        padding: 12px 10px calc(24px + env(safe-area-inset-bottom, 0)) 10px !important;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .search-results-area .realestate-services-dashboard-mobile,
    body:has(.life-info-hero).realestate-building-register-page .search-results-area .realestate-services-dashboard-mobile,
    body:has(.life-info-hero).realestate-apt-rent-page .search-results-area .realestate-services-dashboard-mobile,
    body:has(.life-info-hero).realestate-lh-calendar-page .search-results-area .realestate-services-dashboard-mobile {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    /* 모바일: 카테고리 하단 검색 폼 노출(아파트실거래가, 건축물대장, 전월세), 내부 10px */
    body:has(.life-info-hero).realestate-apt-sale-page .realestate-mobile-search-wrap,
    body:has(.life-info-hero).realestate-building-register-page .realestate-mobile-search-wrap,
    body:has(.life-info-hero).realestate-apt-rent-page .realestate-mobile-search-wrap {
        display: block !important;
        padding: 0 10px 12px 10px;
        background: #fff;
        border-bottom: 1px solid #e5e7eb;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .realestate-mobile-search-inner,
    body:has(.life-info-hero).realestate-building-register-page .realestate-mobile-search-inner,
    body:has(.life-info-hero).realestate-apt-rent-page .realestate-mobile-search-inner {
        padding: 0;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .realestate-mobile-search-form .form-group,
    body:has(.life-info-hero).realestate-apt-sale-page .realestate-mobile-search-form .form-control,
    body:has(.life-info-hero).realestate-building-register-page .realestate-mobile-search-form .form-group,
    body:has(.life-info-hero).realestate-building-register-page .realestate-mobile-search-form .form-control,
    body:has(.life-info-hero).realestate-apt-rent-page .realestate-mobile-search-form .form-group,
    body:has(.life-info-hero).realestate-apt-rent-page .realestate-mobile-search-form .form-control {
        margin-bottom: 10px;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .realestate-mobile-search-hint,
    body:has(.life-info-hero).realestate-building-register-page .realestate-mobile-search-hint,
    body:has(.life-info-hero).realestate-apt-rent-page .realestate-mobile-search-hint {
        margin: 8px 0 0 0;
        font-size: 12px;
        color: #6b7280;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .search-results-area .insu-info-mobile-title-bar .insu-link-mobile-header-inner,
    body:has(.life-info-hero).realestate-building-register-page .search-results-area .insu-info-mobile-title-bar .insu-link-mobile-header-inner,
    body:has(.life-info-hero).realestate-apt-rent-page .search-results-area .insu-info-mobile-title-bar .insu-link-mobile-header-inner,
    body:has(.life-info-hero).realestate-lh-calendar-page .search-results-area .insu-info-mobile-title-bar .insu-link-mobile-header-inner {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .search-results-area .dong-filter,
    body:has(.life-info-hero).realestate-apt-rent-page .search-results-area .dong-filter {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    /* 아파트실거래가 모바일: 법정동 버튼 숨기고 셀렉트만 표시 */
    body.realestate-apt-sale-page .dong-filter .dong-buttons {
        display: none !important;
    }
    body.realestate-apt-sale-page .dong-filter .dong-filter-mobile-select {
        display: block !important;
        margin-top: 6px;
    }
    body.realestate-apt-sale-page .dong-filter .dong-filter-mobile-select select {
        width: 100%;
        max-width: 100%;
        padding: 8px 12px;
        font-size: 14px;
        border: 1px solid #e5e7eb;
        border-radius: 8px;
        background: #fff;
        color: #374151;
    }
    /* 아파트실거래가 모바일: 거래일 월.일만 표시 */
    body.realestate-apt-sale-page .results-table .date-cell .date-full {
        display: none !important;
    }
    body.realestate-apt-sale-page .results-table .date-cell .date-short {
        display: inline !important;
    }
    /* 아파트실거래가 모바일: 결과 테이블 가로스크롤로 건축년도까지 모두 노출 */
    body.realestate-apt-sale-page .search-results-area .results-content {
        overflow-x: auto !important;
        overflow-y: auto !important;
        -webkit-overflow-scrolling: touch !important;
    }
    body.realestate-apt-sale-page .results-table-container {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        min-height: 0;
    }
    body.realestate-apt-sale-page .results-table {
        min-width: 720px !important;
        width: 100% !important;
    }
    body:has(.life-info-hero).realestate-apt-sale-page .main-content,
    body:has(.life-info-hero).realestate-building-register-page .main-content,
    body:has(.life-info-hero).realestate-apt-rent-page .main-content,
    body:has(.life-info-hero).realestate-lh-calendar-page .main-content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* 건축물대장 카드 - 1줄 3칸 (기본정보 | 구조정보 | 면적정보) - 표 헤더처럼 */
body.realestate-building-register-page .content-area .info-cards-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
body.realestate-building-register-page .content-area .info-card {
    background: #fff;
    border: none;
    border-radius: 0px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0px;
    gap: 0px !important;
}
body.realestate-building-register-page .content-area .info-card .card-header {
    padding: 10px 12px;
    background: #929292;
    border-radius: 10px 10px 0px 0px;
    flex-shrink: 0;
    text-align: center;
    margin: 0;
    width: 100%;
    align-items: center;
}
body.realestate-building-register-page .content-area .info-card .card-header h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    gap: 0px !important;
}
body.realestate-building-register-page .content-area .info-card .card-content {
    padding: 10px 12px;
    flex: 1;
    border-top: none;
}
body.realestate-building-register-page .content-area .info-card .info-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 6px 0;
    font-size: 12px;
    border-bottom: 1px solid #f3f4f6;
}
body.realestate-building-register-page .content-area .info-card .info-row:last-child {
    border-bottom: none;
}
body.realestate-building-register-page .content-area .info-card .info-label {
    color: #6b7280;
    font-size: 11px;
    margin-bottom: 2px;
}
body.realestate-building-register-page .content-area .info-card .info-value {
    color: #111827;
    font-weight: 500;
    font-size: 12px;
}

/* 전유면적, 층별정보 (세로 1열) */
body.realestate-building-register-page #exclusive-area-result,
body.realestate-building-register-page #floor-info-result {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
body.realestate-building-register-page #exclusive-area-result .info-card,
body.realestate-building-register-page #floor-info-result .info-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 10px;
}
body.realestate-building-register-page #exclusive-area-result .card-header,
body.realestate-building-register-page #floor-info-result .card-header {
    padding: 10px 12px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-building-register-page #exclusive-area-result .card-header h3,
body.realestate-building-register-page #floor-info-result .card-header h3 {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
}
body.realestate-building-register-page #exclusive-area-result .card-content,
body.realestate-building-register-page #floor-info-result .card-content {
    padding: 10px 12px;
}
body.realestate-building-register-page #exclusive-area-result .info-row,
body.realestate-building-register-page #floor-info-result .info-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 6px 0;
    font-size: 13px;
    border-bottom: 1px solid #f3f4f6;
}
body.realestate-building-register-page #exclusive-area-result .info-row:last-child,
body.realestate-building-register-page #floor-info-result .info-row:last-child {
    border-bottom: none;
}
body.realestate-building-register-page #exclusive-area-result .info-label,
body.realestate-building-register-page #floor-info-result .info-label {
    color: #6b7280;
    margin-right: 12px;
}
body.realestate-building-register-page #exclusive-area-result .info-value,
body.realestate-building-register-page #floor-info-result .info-value {
    color: #111827;
    font-weight: 500;
}

/* 층별정보 테이블 - 헤더 딱 붙임, 셀 가운데정렬 */
body.realestate-building-register-page .floor-info-container {
    margin-top: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}
body.realestate-building-register-page .floor-info-container h4 {
    margin: 0;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    background: #f8fafc;
    text-align: center;
}
body.realestate-building-register-page .floor-info-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
body.realestate-building-register-page .floor-info-table thead th {
    background: #f8fafc;
    color: #374151;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}
body.realestate-building-register-page .floor-info-table tbody td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
body.realestate-building-register-page .floor-info-table tbody tr:hover {
    background: #f9fafb;
}

/* 기본/구조/면적 카드 테이블 - 층별정보와 동일 스타일 */
body.realestate-building-register-page .content-area .info-card-table-wrap .info-card-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
body.realestate-building-register-page .content-area .info-card-table-wrap .info-card-table thead th {
    background: #f8fafc;
    color: #374151;
    padding: 10px 12px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #e5e7eb;
}
body.realestate-building-register-page .content-area .info-card-table-wrap .info-card-table tbody td {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    text-align: center;
}
body.realestate-building-register-page .content-area .info-card-table-wrap .info-card-table tbody tr:hover {
    background: #f9fafb;
}

@media (max-width: 768px) {
    body.realestate-building-register-page .content-area .info-cards-container {
        grid-template-columns: 1fr;
    }
}

/* 하위 호환 */
.building-register-cards .info-card { margin-bottom: 0; }

/* 건축물대장: 검색주소, 탭네비, 호수입력, 층별정보 */
body.realestate-building-register-page .search-address-display {
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f9fafb;
    border-radius: 8px;
    font-size: 14px;
}
body.realestate-building-register-page .address-label { color: #6b7280; margin-right: 6px; }
body.realestate-building-register-page .tab-navigation {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px 0;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-building-register-page .dong-select-wrapper .dong-select {
    padding: 8px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
}
body.realestate-building-register-page .unit-input-wrapper .unit-input {
    padding: 8px 12px;
    width: 180px;
    border: 2px solid #4c4c4c;
    border-radius: 8px;
    font-size: 14px;
}
body.realestate-building-register-page .unit-search-btn,
body.realestate-building-register-page .floor-info-btn {
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #374151;
}
body.realestate-building-register-page .unit-search-btn:hover,
body.realestate-building-register-page .floor-info-btn:hover {
    background: #f9fafb;
    border-color: #16a34a;
    color: #16a34a;
}
body.realestate-building-register-page #exclusive-area-result,
body.realestate-building-register-page #floor-info-result {
    margin-top: 12px;
}
body.realestate-building-register-page .building-msg {
    padding: 12px;
    color: #6b7280;
    font-size: 14px;
    margin: 0;
}
body.realestate-building-register-page .results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-building-register-page .results-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.realestate-building-register-page .results-title-section h4 { margin: 0; font-size: 1rem; font-weight: 600; }
body.realestate-building-register-page .results-summary { display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 13px; color: #6b7280; }
body.realestate-building-register-page .btn-back-to-menu { margin-left: auto; padding: 8px 14px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; cursor: pointer; }

/* 아파트 실거래가: results-header, results-summary, dong-filter, results-table */
/* 모바일 전용 검색 영역: PC에서는 숨김 */
.realestate-mobile-search-wrap {
    display: none;
}

body.realestate-apt-sale-page .search-results-area .results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-apt-sale-page .results-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.realestate-apt-sale-page .results-title-section h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}
body.realestate-apt-sale-page .results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
body.realestate-apt-sale-page .summary-item {
    font-size: 13px;
    color: #6b7280;
}
body.realestate-apt-sale-page .summary-item .label { margin-right: 4px; }
body.realestate-apt-sale-page .summary-item .value { font-weight: 500; color: #374151; }
body.realestate-apt-sale-page .btn-back-to-menu {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
body.realestate-apt-sale-page .btn-back-to-menu:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
body.realestate-apt-sale-page .dong-filter {
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-apt-sale-page .dong-filter h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
body.realestate-apt-sale-page .dong-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.realestate-apt-sale-page .dong-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 16px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}
body.realestate-apt-sale-page .dong-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
body.realestate-apt-sale-page .dong-btn.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
body.realestate-apt-sale-page .dong-btn span {
    font-size: 10px;
    opacity: 0.9;
}
/* PC: 모바일용 법정동 셀렉트 숨김 */
body.realestate-apt-sale-page .dong-filter .dong-filter-mobile-select {
    display: none;
}
/* PC: 거래일 전체 표시, 모바일용 월일만 숨김 */
body.realestate-apt-sale-page .results-table .date-cell .date-short {
    display: none;
}
body.realestate-apt-sale-page .results-table .date-cell .date-full {
    display: inline;
}
body.realestate-apt-sale-page .results-table-container {
    overflow-x: auto;
}
body.realestate-apt-sale-page .results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
body.realestate-apt-sale-page .results-table thead th {
    background: #f8fafc;
    color: #374151;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
body.realestate-apt-sale-page .results-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-apt-sale-page .results-table tbody tr:hover {
    background: #f9fafb;
}
body.realestate-apt-sale-page .apt-name { font-weight: 500; }
body.realestate-apt-sale-page .apt-dong { font-size: 11px; color: #6b7280; }
body.realestate-apt-sale-page .price-main { font-weight: 600; }
body.realestate-apt-sale-page .area-sub { font-size: 11px; color: #6b7280; }
body.realestate-apt-sale-page .results-table th.sortable {
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
}
body.realestate-apt-sale-page .results-table th.sortable:hover {
    background: rgba(22, 163, 74, 0.08);
    color: #16a34a;
}
body.realestate-apt-sale-page .sort-icon {
    margin-left: 6px;
    font-size: 11px;
    opacity: 0.5;
}
body.realestate-apt-sale-page .sort-icon.active {
    opacity: 1;
    color: #16a34a;
}

/* empty-state: 검색 전/결과 없음 */
.realestate-main .empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #6b7280;
}
.realestate-main .empty-state i {
    font-size: 2.5rem;
    color: #9ca3af;
    margin-bottom: 16px;
}
.realestate-main .empty-state h4 {
    font-size: 1.1rem;
    color: #374151;
    margin: 0 0 8px 0;
}
.realestate-main .empty-state p {
    font-size: 14px;
    margin: 0;
}

/* 아파트 전월세: 실거래가와 동일한 results-header, dong-filter, results-table */
body.realestate-apt-rent-page .search-results-area .results-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-apt-rent-page .results-title-section {
    display: flex;
    align-items: center;
    gap: 8px;
}
body.realestate-apt-rent-page .results-title-section h4 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}
body.realestate-apt-rent-page .results-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
}
body.realestate-apt-rent-page .summary-item {
    font-size: 13px;
    color: #6b7280;
}
body.realestate-apt-rent-page .summary-item .label { margin-right: 4px; }
body.realestate-apt-rent-page .summary-item .value { font-weight: 500; color: #374151; }
body.realestate-apt-rent-page .btn-back-to-menu {
    margin-left: auto;
    padding: 8px 14px;
    font-size: 13px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #374151;
    cursor: pointer;
}
body.realestate-apt-rent-page .btn-back-to-menu:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
body.realestate-apt-rent-page .dong-filter {
    padding: 12px 20px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-apt-rent-page .dong-filter h4,
body.realestate-apt-rent-page .dong-filter .rent-type-filter-title {
    margin: 12px 0 10px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}
body.realestate-apt-rent-page .dong-filter .rent-type-filter-title:first-of-type { margin-top: 0; }
body.realestate-apt-rent-page .dong-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
body.realestate-apt-rent-page .dong-btn {
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 16px;
    white-space: nowrap;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #374151;
    cursor: pointer;
    transition: all 0.2s ease;
}
body.realestate-apt-rent-page .dong-btn:hover {
    background: #f3f4f6;
    border-color: #d1d5db;
}
body.realestate-apt-rent-page .dong-btn.active {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}
body.realestate-apt-rent-page .dong-btn span {
    font-size: 10px;
    opacity: 0.9;
}
body.realestate-apt-rent-page .results-table-container {
    overflow-x: auto;
}
body.realestate-apt-rent-page .results-table,
body.realestate-apt-rent-page .apt-rent-results-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
body.realestate-apt-rent-page .results-table thead th,
body.realestate-apt-rent-page .apt-rent-results-table thead th {
    background: #f8fafc;
    color: #374151;
    padding: 10px 12px;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
}
body.realestate-apt-rent-page .results-table tbody td,
body.realestate-apt-rent-page .apt-rent-results-table tbody td {
    padding: 10px 12px;
    border-bottom: 1px solid #e5e7eb;
}
body.realestate-apt-rent-page .results-table tbody tr:hover,
body.realestate-apt-rent-page .apt-rent-results-table tbody tr:hover {
    background: #f9fafb;
}
body.realestate-apt-rent-page .apt-name { font-weight: 500; }
body.realestate-apt-rent-page .apt-dong { font-size: 11px; color: #6b7280; }
body.realestate-apt-rent-page .price-main { font-weight: 600; }
body.realestate-apt-rent-page .rent-type-badge {
    display: inline-block;
    padding: 4px 8px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 6px;
    background: #dbeafe;
    color: #1d4ed8;
}
body.realestate-apt-rent-page .rent-type-badge.wolse {
    background: #dcfce7;
    color: #15803d;
}
