/* ========================================
   Job Search Page  /jobs/search
   ======================================== */

.jobSearchPage {
    max-width: 960px;
    margin: 0 auto;
    padding-bottom: 80px;
}

.jobSearchPage .sectionTitleWrap {
    margin-bottom: 40px;
}

.jobSearchPage .sectionTitle {
    font-size: 28px;
    font-weight: bold;
    color: #000;
}

.jobSearchPage .sectionDesc {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
}

/* --- Search Section --- */
.searchSection {
    margin-bottom: 32px;
    border: 1px solid #d6d3d0;
    border-radius: 4px;
    overflow: hidden;
}

.searchSectionHeader {
    background-color: #f2f2f5;
    padding: 14px 20px;
    border-bottom: 1px solid #d6d3d0;
}

.searchSectionTitle {
    color: #007;
    font-size: 16px;
    font-weight: bold;
    line-height: 1.4;
}

.searchSectionBody {
    padding: 20px;
    background-color: #fff;
}

/* --- Checkbox Grid --- */
.checkGrid {
    display: grid;
    gap: 4px 0;
}

.checkGrid.cols4 {
    grid-template-columns: repeat(4, 1fr);
}

.checkGrid.cols3 {
    grid-template-columns: repeat(3, 1fr);
}

.checkItem {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 6px 0;
}

.checkItem input[type="checkbox"] {
    display: none;
}

.checkItem .checkLabel {
    position: relative;
    padding-left: 30px;
    font-size: 14px;
    line-height: 1.4;
    font-feature-settings: "palt";
    user-select: none;
}

.checkItem .checkLabel::before,
.checkItem .checkLabel::after {
    content: "";
    position: absolute;
    top: 50%;
}

.checkItem .checkLabel::before {
    left: 1px;
    width: 20px;
    height: 20px;
    border: 1px solid #d6d3d0;
    border-radius: 2px;
    box-sizing: border-box;
    transform: translateY(-50%);
    background-color: #fff;
    transition: border-color 0.2s ease;
}

.checkItem .checkLabel::after {
    display: none;
    left: 1.5px;
    width: 5px;
    height: 10px;
    border-bottom: 2px solid #007;
    border-right: 2px solid #007;
    transform: rotate(45deg) translateY(-95%);
}

.checkItem input[type="checkbox"]:checked + .checkLabel {
    color: #007;
}

.checkItem input[type="checkbox"]:checked + .checkLabel::after {
    display: block;
}

.checkItem input[type="checkbox"]:checked + .checkLabel::before {
    border-color: #007;
}

.checkItem.checkAll {
    margin-bottom: 8px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.checkItem.checkAll .checkLabel {
    font-weight: bold;
}

/* --- Area Groups --- */
.areaGroup {
    margin-bottom: 24px;
}

.areaGroup:last-child {
    margin-bottom: 0;
}

.areaGroupTitle {
    color: #007;
    font-size: 15px;
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #d6d3d0;
}

/* --- Facility Groups --- */
.facilityGroup {
    margin-bottom: 24px;
}

.facilityGroup:last-child {
    margin-bottom: 0;
}

.facilityGroupTitle {
    color: #007;
    font-size: 15px;
    font-weight: bold;
    padding-bottom: 10px;
    margin-bottom: 8px;
    border-bottom: 1px solid #d6d3d0;
}

/* --- Salary Row --- */
.salaryRow {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 40px;
}

.salaryField {
    display: flex;
    align-items: center;
    gap: 12px;
    /* 2列: (100% - 40px gap) / 2 */
    flex: 0 0 calc(50% - 20px);
    min-width: 0;
}

.salaryLabel {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
}

.salarySelectWrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.salarySelect {
    border: 1px solid #d6d3d0;
    border-radius: 4px;
    padding: 10px 36px 10px 12px;
    font-size: 14px;
    background-color: #fff;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%23333' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 10px 6px;
    min-width: 140px;
    cursor: pointer;
}

.salaryUnit {
    font-size: 14px;
    color: #333;
    white-space: nowrap;
}

/* --- Keyword Input --- */
.keywordInput {
    width: 100%;
    padding: 14px 20px;
    border: 1px solid #d6d3d0;
    border-radius: 4px;
    font-size: 14px;
    background-color: #fff;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.2s ease;
}

.keywordInput:focus {
    border-color: #007;
}

.keywordInput::placeholder {
    color: #ababab;
}

/* --- Buttons --- */
.searchBtnWrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin-top: 40px;
}

.searchBtn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 480px;
    padding: 18px 32px;
    background-color: #d60708;
    color: #fff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: opacity 0.2s ease;
}

.searchBtn:hover {
    opacity: 0.8;
}

.searchBtnIcon {
    display: inline-block;
    width: 20px;
    height: 20px;
    background: #fff;
    mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>") no-repeat center/contain;
    -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 109.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>") no-repeat center/contain;
}

.clearBtn {
    background: none;
    border: none;
    color: #007;
    font-size: 14px;
    cursor: pointer;
    padding: 4px 8px;
    transition: color 0.2s ease;
}

.clearBtn:hover {
    color: #d60708;
}

/* ========================================
   Responsive: Tablet
   ======================================== */
@media only screen and (min-width: 768px) and (max-width: 1079px) {
    .jobSearchPage {
        padding: 0 20px 60px;
    }

    .checkGrid.cols4 {
        grid-template-columns: repeat(3, 1fr);
    }

    .salaryRow {
        gap: 20px 24px;
    }

    .salaryField {
        flex: 0 0 calc(50% - 12px);
    }
}

/* ========================================
   Responsive: Mobile
   ======================================== */
@media only screen and (max-width: 767px) {
    .jobSearchPage {
        padding: 0 0 13.0208333333vw;
    }

    .jobSearchPage .sectionTitleWrap {
        margin-bottom: 5.2083333333vw;
    }

    .jobSearchPage .sectionTitle {
        font-size: 6.25vw;
    }

    .jobSearchPage .sectionDesc {
        font-size: 3.6458333333vw;
    }

    .searchSection {
        margin-bottom: 5.2083333333vw;
    }

    .searchSectionHeader {
        padding: 3.125vw 4.1666666667vw;
    }

    .searchSectionTitle {
        font-size: 3.6458333333vw;
    }

    .searchSectionBody {
        padding: 4.1666666667vw;
    }

    .checkGrid.cols4,
    .checkGrid.cols3 {
        grid-template-columns: repeat(2, 1fr);
    }

    .checkItem {
        padding: 1.5625vw 0;
    }

    .checkItem .checkLabel {
        padding-left: 7.8125vw;
        font-size: 3.6458333333vw;
    }

    .checkItem .checkLabel::before {
        width: 5.2083333333vw;
        height: 5.2083333333vw;
        border-radius: 0.5208333333vw;
    }

    .checkItem .checkLabel::after {
        left: -0.2604166667vw;
        width: 1.3020833333vw;
        height: 2.6041666667vw;
    }

    .areaGroupTitle,
    .facilityGroupTitle {
        font-size: 3.6458333333vw;
        padding-bottom: 2.0833333333vw;
        margin-bottom: 2.0833333333vw;
    }

    .areaGroup,
    .facilityGroup {
        margin-bottom: 5.2083333333vw;
    }

    .salaryRow {
        flex-direction: column;
        gap: 4.1666666667vw;
    }

    .salaryField {
        gap: 2.0833333333vw;
    }

    .salaryLabel {
        font-size: 3.6458333333vw;
        min-width: 16.6666666667vw;
    }

    .salarySelect {
        padding: 2.6041666667vw 9.375vw 2.6041666667vw 3.125vw;
        font-size: 3.6458333333vw;
        min-width: 0;
        flex: 1;
    }

    .salaryUnit {
        font-size: 3.6458333333vw;
    }

    .keywordInput {
        padding: 3.6458333333vw 4.1666666667vw;
        font-size: 3.6458333333vw;
    }

    .searchBtnWrap {
        margin-top: 6.5104166667vw;
        gap: 3.125vw;
    }

    .searchBtn {
        max-width: 100%;
        padding: 4.1666666667vw 6.25vw;
        font-size: 4.1666666667vw;
    }

    .searchBtnIcon {
        width: 5.2083333333vw;
        height: 5.2083333333vw;
    }

    .clearBtn {
        font-size: 3.125vw;
    }
}
