#dealsBtn::after {
    content: "";
    position: absolute;
    bottom: -4px;
    width: 85%;
    height: 2px;
    background-color: #0081ff;
    left: 50%;
    transform: translateX(-50%);
}



.deals-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 0 0;
    box-sizing: border-box;
}

.deals-main-container {
    margin: 0 auto 20px;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.deals-header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* ✅ 수직 가운데 정렬로 변경 */
    margin-bottom: 16px;     /* 아래 간격 추가 */
}

.deals-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0;         /* ✅ 기본 마진 제거 */
    padding: 0;        /* ✅ 패딩 제거로 높이 맞춤 */
    line-height: 1;    /* ✅ 라인 정렬 기준 맞춤 */
}

.deals-report-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 10px;
    background-color: #f0f4f9;
    color: #0052A4;
    border: 1px solid #b0c4de;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.deals-report-btn:hover {
    background-color: #e3ecf7;
    border-color: #8ca9c4;
}



.deals-search-container {
    width: 100%;
    padding: 24px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-sizing: border-box;
    font-family: sans-serif;
}

.deals-form-group {
    margin-bottom: 20px;
}
.deals-sub-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.deals-label {
    display: block;
    font-weight: 900;
    margin-bottom: 8px;
    font-size: 17px;
}

.deals-address-selects,
.deals-date-selects,
.deals-range-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.deals-select,
.deals-input {
    padding: 11px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
    min-width: 100px;
    flex: 1;
}

.deals-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 14px;
}

.deals-form-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    width: 100%; /* ✅ 이거 추가 */
}

.deals-btn {
    padding: 10px 16px;
    font-size: 15px;
    border-radius: 4px;
    cursor: pointer;
    min-width: 100px;
    border: none;
}

.deals-btn-reset {
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ccc;
}

.deals-btn-search {
    background: #00398A;
    color: #fff;
    font-weight: 600;
}


/* 🟦 커스텀 Select 전체 wrapper */
.deals-address-selects {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

/* 각 셀렉트 wrapper */
.deals-select-wrapper {
    flex: 1;
    min-width: 150px;
    width: 240px;
    margin-bottom: 20px;
}

/* 셀렉트 박스 스타일 */
.deals-custom-select {
    position: relative;
    background: #fff;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
}

/* 셀렉트 내부 텍스트 */
.deals-selected {
    font-size: 15px;
}

/* ▼ 화살표 표시 */
.deals-custom-select::after {
    content: "▼";
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    font-size: 15px;
    color: #333;
    pointer-events: none;
}



/* 옵션 박스 */
.deals-select-options {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    height: 200px;
    overflow: auto;
}

/* 옵션 항목 */
.deals-option {
    padding: 10px;
    font-size: 15px;
    cursor: pointer;
}

.deals-option:hover,
.deals-option.active {
    background-color: #e3f2fd;
}

/*지목 검색*/
.deals-zimok-group {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
    gap: 8px;
}

/* 기본 라벨 버튼 스타일 */
.deals-zimok-group label {
    display: inline-block;
    cursor: pointer;
}

/* 체크박스 숨김 */
.deals-zimok-group input[type="checkbox"] {
    display: none;
}

/* 체크 시 스타일 */

.deals-zimok-group label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: clamp(15px, 2vw, 15px);
    color: #888;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-weight: 700;
}


.deals-zimok-group input[type="checkbox"]:checked + span {
    border-color: #0081ff;
    color: #0081ff;
}



/*용도 검색 */
.filter-sub-title{
    margin-bottom: 10px;
    font-size: 14px;
}
.deals-use-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.deals-use-grid label {
    display: inline-block;
    cursor: pointer;
}

.deals-use-grid input[type="checkbox"] {
    display: none;
}
.deals-use-grid label span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 0;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-size: clamp(15px, 2vw, 15px);
    color: #888;
    background: #fff;
    transition: all 0.2s ease;
    box-sizing: border-box;
    font-weight: 700;
}

.deals-use-grid input[type="checkbox"]:checked + span {
    border-color: #0081ff;
    color: #0081ff;
}




/* 가로로 나란히 배치 */
.deals-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 20px;
}

/* 각 항목 최소 크기 + 유연한 비율 */
.deals-inline-group .deals-form-group {
    flex: 1 1 0;
    min-width: 240px;
}

.deals-date-section {
    flex: 1;
    min-width: 80px;
    width: 240px;
}
/* 내부 요소 정렬용 (이미 있는 클래스면 중복 선언 X) */
.deals-date-selects,
.deals-range-inputs {
    display: flex;
    gap: 8px;
    flex-wrap: nowrap;
    align-items: center;
}

.deals-input {
    flex: 1;
    min-width: 80px;
}



/* 전체선택 체크박스 커스텀 */
.deals-custom-checkbox {
    display: inline-flex;
    font-size: 15px;
    align-items: center;
    gap: 6px;
    color: #888;
    cursor: pointer;
}

.deals-custom-checkbox input[type="checkbox"] {
    display: none;
}

.deals-custom-checkbox .deals-box {
    width: 16px;
    height: 16px;
    border: 1px solid #bbb;
    border-radius: 6px;
    background: #fff;
    box-sizing: border-box;
    position: relative;
    flex-shrink: 0;
}

.deals-custom-checkbox .deals-label-text {
    padding-top: 1px;
}
.label-import {
    color: #F20000;
}

.deals-custom-checkbox input[type="checkbox"]:checked + .deals-box::after {
    content: "";
    position: absolute;
    top: 1px;
    left: 4px;
    width: 3px;
    height: 7px;
    border: solid #0081ff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}




#dealsView {
    /*margin-top: 30px;*/
    padding: 20px;
}
.deals-result-wrap {
}

.deals-result-summary {
    font-size: 15px;
    font-weight: 500;
    margin-bottom: 12px;
    color: #222;
}

.deals-result-table-wrap {
    overflow-x: auto;
    border-radius: 10px;
}

.deals-result-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 1100px;
    font-size: 14px;
    color: #333;
}

.deals-result-table thead th {
    background: #f0f0f0;
    padding: 10px 8px;
    font-weight: 600;
    border-bottom: 1px solid #ddd;
    white-space: nowrap;
    font-size: 15px;
}

.deals-result-table tbody td {
    /*padding: 10px 8px;*/
    border-bottom: 1px solid #eee;
    white-space: nowrap;
    background: #fff;
    text-align: center;
    font-size: 15px;
    padding: 20px;
}



@media (max-width: 857px) {
    .deals-inline-group {
        gap: 10px;
    }
}


/* ✅ 반응형 */
@media (max-width: 1032px) {
    .deals-container{
        padding: 10px 0 0;
    }
    .deals-address-selects {
        flex-wrap: wrap;
    }
    .deals-select-wrapper {
        margin-bottom: 5px;
    }

    .deals-sido,
    .deals-sigungu {
        flex: 1 1 calc(50% - 6px); /* 시도/시군구는 한 줄에 */
    }

    .deals-emd {
        flex: 1 1 100%; /* 읍면동은 아래 한 줄 */
    }


    .deals-select,
    .deals-input {
        flex: 1 1 100%;
    }

    /*.deals-date-selects,
    .deals-range-inputs {
        flex-direction: column;
    }*/


    .deals-btn {
        width: 100% !important; /* ✅ 강제로 버튼을 꽉 채우게 */
        min-width: auto;        /* ✅ 기본 최소 너비 무시 */
    }




    .deals-result-table {
        font-size: 12px;
        min-width: 1000px;
    }

    .deals-result-summary {
        padding: 0 10px;
    }

}
