
/* ==========================
   셀렉트 박스 및 설정 레이어
========================== */

#custom-select {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: 0.15rem 0.3rem;
    font-size: 0.75rem;
    background-color: #f8f9fa;
    color: #495057;
    width: 200px;
}

#custom-select:focus {
    border-color: #80bdff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/*
!* 📌 매물 리스트 테이블 가로 스크롤 적용 *!
#property-container {
    width: 100%;
    overflow-x: auto;
}

!* 📌 테이블 기본 스타일 수정 *!
#property-container table {
    min-width: 800px; !* 테이블이 너무 작아지는 것을 방지 *!
    table-layout: auto;
    white-space: nowrap; !* 텍스트 줄바꿈 방지 *!
}

!* 📌 테이블 헤더 및 데이터 셀 스타일 *!
#property-container th,
#property-container td {
    padding: 8px 12px;
    text-align: center;
}

!* 📌 가로 스크롤이 필요할 경우 *!
@media (max-width: 768px) {
    #property-container {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; !* 모바일 스크롤 부드럽게 *!
    }
}*/


.briefing-estates {
    text-align: left; /* 왼쪽 정렬 */
}
.briefing-type {
    display: block; /* 줄바꿈 효과 */
    margin-bottom: 4px; /* 위쪽 여백 */
}
.briefing-dong-ho {
    font-size: 0.9rem; /* 폰트 크기 */
    font-weight: bold; /* 굵은 폰트 */
    display: block; /* 줄바꿈 효과 */
    margin-bottom: 4px; /* 위쪽 여백 */
}

/* 📌 페이지네이션 가로 스크롤 적용 */
#pagination-container {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch; /* 모바일에서 부드러운 스크롤 적용 */
}

/* 📌 페이지네이션 스타일 수정 */
#pagination {
    display: flex;
    flex-wrap: nowrap; /* 한 줄 유지 */
    gap: 5px; /* 페이지 간격 */
}

/* 📌 페이지 번호 버튼 크기 조정 */
#pagination .page-item {
    flex: 0 0 auto; /* 버튼 크기 고정 */
}

/* 📌 반응형: 작은 화면에서 페이지네이션 크기 조정 */
@media (max-width: 768px) {
    #pagination-container {
        display: block;
        width: 100%;
        overflow-x: auto;
    }

    #pagination {
        justify-content: flex-start;
    }
}


/* ==========================
   반응형 처리
========================== */

@media (max-width: 768px) {
    .badge-layer {
        width: 90%;
    }

    .badge-layer-header {
        font-size: 14px;
    }

    .badge-layer-buttons .btn {
        font-size: 12px;
    }
}

/* ==========================
   단지 선택 레이어 스타일
========================== */
#estate-layer .form-check-label {
    font-size: 0.85rem;
    text-align: left;
    width: 100%;
    display: inline-block;
}

#estate-layer-header {
    position: sticky;
    top: -10px;
    height: 50px;
    background-color: #fff;
    z-index: 1060;
    padding-bottom: 3px;
    border-bottom: 1px solid #dee2e6;
}


/* ✅ 부모 요소를 relative로 설정하여 레이어가 정확히 정렬되도록 함 */
.col-md-5 {
    position: relative;
}

/* ✅ 단지 선택 레이어가 단지 선택 박스 아래에 위치하도록 조정 */
#estate-layer {
    position: absolute;
    top: 100%; /* 선택 박스 바로 아래로 배치 */
    left: 10px; /* 선택 박스와 정렬 */
    width: 95%; /* 부모 요소의 너비를 따름 */
    max-width: 95%;
    max-height: 400px;
    border-radius: 6px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid #dee2e6;
    background-color: #fff;
    z-index: 1100;
    display: none; /* 기본적으로 숨김 */
    flex-direction: column;
}

/* ✅ 단지 선택 레이어 내부 스타일 */
#estate-layer .card-body {
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    max-height: 350px;
    flex-grow: 1;
}

/* ✅ 단지 선택 박스 스타일 */
#estate-select-box {
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    padding: .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    background-color: #fff;
    color: #212529;
    width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
}

/* ✅ 반응형 처리 */
@media (max-width: 768px) {
    #estate-layer {
        width: 100%; /* 작은 화면에서도 선택 박스와 너비 일치 */
    }
}

/*.table th{*/
/*    white-space: nowrap;*/
/*}*/

td {
    font-size: 0.85rem;
    background-color: inherit !important;
}
/* ✅ 매매 진행 중 (sale-row) */
#property-list tr.sale-row {
    /*background-color: #ffcccc !important; !* 연한 노란색 *!*/
}

/* ✅ 전세 진행 중 (lease-row) */
#property-list tr.lease-row {
    /*background-color: #cce5ff !important; !* 연한 파란색 *!*/
}

/* ✅ 전세 완료 (lease-completed-row) */
#property-list tr.lease-completed-row {
    /*background-color: #b8daff !important; !* 더 연한 파란색 *!*/
    opacity: 0.8; /* 완료된 느낌 */
}

/* ✅ 월세 진행 중 (rent-row) */
#property-list tr.rent-row {
    /*background-color: #d4edda !important; !* 연한 초록색 *!*/
}

/* ✅ 월세 완료 (rent-completed-row) */
#property-list tr.rent-completed-row {
    /*background-color: #c3e6cb !important; !* 더 연한 초록색 *!*/
    opacity: 0.8;
}

/* ✅ 테이블 행 마우스 오버 효과 */
#property-list tr:hover {
    opacity: 1;
    filter: brightness(1.1);
}

.badge-sale {
    background-color: #dc3545; /* 붉은색 */
    color: #fff; /* 흰색 글씨 */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.badge-jeonse {
    background-color: #007bff; /* 푸른색 */
    color: #fff; /* 흰색 글씨 */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.badge-jeonse-completed {
    background-color: #002855; /* 푸른색 */
    color: #fff; /* 흰색 글씨 */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.badge-rent {
    background-color: #28a745; /* 연두색 (초록 계통) */
    color: #fff; /* 흰색 글씨 */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}

.badge-rent-completed {
    background-color: #002855; /* 연두색 (초록 계통) */
    color: #fff; /* 흰색 글씨 */
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 5px;
}


/* 기본정보 테이블 색상 */
.basic-info-section {
    background-color: #2b2b2b; /* 어두운 배경색 */
    color: #eaeaea; /* 밝은 텍스트 색상 */
    border-radius: 8px; /* 둥근 모서리 */
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* 부드러운 그림자 효과 */
    font-size: 19px; /* 기본 글씨 크기 */
}

/* 테이블 레이아웃 자동 조정 */
.basic-info-section .table {
    table-layout: auto; /* 자동 레이아웃 적용 */
    width: 100%; /* 테이블 전체는 100%를 유지 */
}
/* 매물정보 테이블 스타일 */
.basic-info-section .table th {
    width: auto; /* 너비를 텍스트 길이에 맞춤 */
    white-space: nowrap; /* 텍스트 줄바꿈 방지 */
    font-size: 0.95rem; /* 표 내 글씨 크기 */
    font-weight: 700; /* 더 굵게 */
    padding: 6px 10px;
    text-align: left;
    background-color: #2b2b2b; /* 어두운 배경색 */

}

.basic-info-section th,
.basic-info-section td {
    padding: 6px 10px;
    border-bottom: 1px solid #444; /* 경계선 색상 */
}

.basic-info-section th {
    font-size: 19px; /* 표 내 글씨 크기 */
    font-weight: 700; /* 더 굵게 */
    text-transform: uppercase; /* 대문자 변환으로 헤더 강조 */
    letter-spacing: 1px; /* 글자 간격을 약간 넓게 */
    color: #ffffff; /* 밝은 텍스트 색상 */
}

.basic-info-section td {
    font-size: 15px; /* 표 내 글씨 크기 */
    color: #dcdcdc; /* 더 밝은 텍스트 색상으로 대비 강화 */
    font-weight: 400; /* 중간 두께로 가독성 향상 */
}

.basic-info-section tr:last-child td {
    /*border-bottom: none; !* 마지막 행 경계선 제거 *!*/
}

#search-message {
    font-size: 1.25rem; /* 글씨 크기 */
    font-weight: bold; /* 글씨 굵게 */
    color: #555; /* 약간 진한 회색 */
    padding: 20px 0;
}

/* 📌 모달 하단 배너 이미지 크기 조정 */
.property-info-section .contact-banner {
    max-width: 100%; /* 부모 요소보다 커지지 않도록 설정 */
    height: auto; /* 비율 유지 */
    display: block;
    margin: 0 auto; /* 중앙 정렬 */
    object-fit: contain; /* 이미지가 깨지지 않도록 조정 */
}

/* 📌 컨테이너 스타일 조정 */
.contact-banner-container {
    background-color: #0c5460;
    padding: 5px;
    text-align: center; /* 이미지 중앙 정렬 */
    overflow: hidden; /* 내용이 넘치지 않도록 설정 */
}

.property-info-section th {
    font-size: 13px; /* 표 내 글씨 크기 */
    font-weight: 700; /* 중간 두께로 가독성 향상 */
    white-space: nowrap;
}