/* =========================================
   공통 및 레이아웃
========================================= */
.mlr-25 {
    margin-left: 25px;
    margin-right: 25px;
}

.main-visual-bg {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
}

.over_select {
    float: left;
}

.wrap_scroll {
    height: 300px;
    overflow-y: scroll;
    border-radius: 0 0 10px 10px;
    border: 1px solid #EFEFEF;
    border-top: none;
}

/* =========================================
   모달 (.modal_estate)
========================================= */
.modal_estate {
    display: none;
    position: absolute;
    top: 10px;
    left: 0;
    width: 100%;
    min-height: 360px;
    padding: 10px 10px 50px 10px;
    background-color: #FFF;
    border-radius: 10px;
    border: 3px solid #333;
    z-index: 100;
}

.modal_estate .btn-back {
    position: absolute;
    top: 30px;
    left: 20px;
    z-index: 10;
    cursor: pointer;
    padding: 5px 10px;
    color: #9ca2ab;
    font-size: 14px;
}

/* 모달 헤더 */
.modal_estate .head {
    position: relative;
    width: 100%;
    height: 90px;
    background-color: #FFF;
    color: #121212;
    text-align: center;
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #c4c4c4;
}

.modal_estate .head h1 {
    margin: 0;
    padding-top: 15px;
    padding-bottom: 5px;
    font-size: 1.875rem;
    font-weight: 600;
}

.modal_estate .head h2 {
    margin: 0;
    color: #444;
    font-size: 16px;
    font-weight: 500;
}

.modal_estate .head h2 strong {
    color: #121212;
    font-size: 16px;
    font-weight: 500;
}

.modal_estate .head .btn-close {
    position: absolute;
    top: 30px;
    right: 30px;
    cursor: pointer;
}

/* 모달 리스트 영역 */
.modal_estate .list,
.modal_estate .listbig {
    width: 100%;
    height: 300px;
    overflow-y: scroll;
}

.modal_estate .list {
    padding-left: 40px;
}

.modal_estate .listbig {
    padding-left: 0;
}

/* 리스트 아이템 기본형 */
.modal_estate .list li {
    float: left;
    width: 140px;
    height: 58px;
    line-height: 58px;
    margin: 8px 4px;
    padding-left: 20px;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    background-color: #FFF;
    border: 1px solid #eaeaea;
    border-left: 5px solid #e9463f;
    cursor: pointer;
}

/* 리스트 아이템 큰형 (.listbig) */
.modal_estate .listbig li {
    float: left;
    width: 15%;
    height: 100px;
    line-height: 78px;
    margin: 10px;
    padding: 10px 20px;
    color: #121212;
    font-size: 16px;
    font-weight: 500;
    background-color: #FFF;
    border: 1px solid #eaeaea;
    border-left: 5px solid #e9463f;
    border-radius: 8px;
    cursor: pointer;
}

.modal_estate .listbig i {
    font-size: 36px;
    font-weight: 500;
}

.modal_estate .listbig img {
    min-width: 60px;
    width: 60px;
    height: 60px;
    margin-top: 0;
    margin-right: 20px;
    background-color: #f3f6fb;
    border: 1px solid #ddd;
    border-radius: 60px;
    overflow: hidden;
    box-shadow: 8px -4px 20px 0 rgba(221, 231, 255, 0.2);
}

/* =========================================
   STEP 03 & 사이드바
========================================= */
.day-info {
    position: absolute;
    top: 58px;
    left: 145px;
    width: 120px;
    height: 20px;
    color: #FFF;
    padding-left: 10px;
    font-size: 13px;
}

.day-info e {
    display: inline-block;
    position: absolute;
    top: 5px;
    left: 0;
    width: 10px;
    height: 10px;
    background-color: #e74c3c;
    border: 3px solid #e74c3c;
    border-radius: 100%;
    margin-right: 5px;
}

.day-info b {
    position: absolute;
    top: -1px;
    left: 25px;
    color: #000;
}

.sidebar-social .main-list a:hover {
    background: #e1f8e0;
    box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.1);
}

/* =========================================
   캘린더
========================================= */
.calendar_wrap {
    width: 100%;
    margin: 0 auto;
}

.calendar_wrap:after {
    content: "";
    clear: both;
    display: block;
    height: 0;
    visibility: hidden;
}

.calendar {
    float: left;
    width: 270px;
    margin: 0 auto;
    text-align: center;
    cursor: pointer;
}

.calendar:nth-child(4),
.calendar:nth-child(5) {
    display: block;
}

.calendar_wrap .calendar:last-child {
    margin-right: 0;
}

.calendar h1 {
    position: relative;
    text-align: center;
    font-size: 20px;
}

.calendar h1 a {
    display: none;
}

.calendar h1 a:first-child {
    position: absolute;
    top: 8px;
    left: 15px;
}

.calendar h1 a:last-child {
    position: absolute;
    top: 8px;
    right: 15px;
}

.calendar .head {
    width: 100%;
    height: 40px;
    line-height: 40px;
    background-color: #c4c4c4;
    color: #FFF;
    border-radius: 0;
    border-bottom: 0;
}

.calendar .head li {
    display: block;
    float: left;
    width: 38px;
    height: 50px;
}

.calendar .week {
    float: left;
    width: 100%;
    border-bottom: 1px solid #F7F7F7;
}

.calendar .week li {
    display: block;
    float: left;
    position: relative;
    width: 32px;
    height: 32px;
    line-height: 32px;
    margin: 1px;
    color: #000;
    font-weight: 400;
    border-radius: 100%;
    border: 2px solid #FFF;
}

.calendar .outdated {
    color: #DDD !important;
}

.step_before,
.step_next {
    display: none;
}

/* =========================================
   커스텀 UI (v1.12.1 css 수정)
========================================= */
.ui-state-hover::before {
    content: "";
    display: inline-block;
    position: absolute;
    bottom: 8px;
    left: 0;
    width: 100%;
    height: 5px;
    background: #b7ddf3;
    opacity: 0.4;
}

.ui-datepicker thead tr {
    background: #b7ddf3;
}

.ui-datepicker td span {
    display: block;
    position: absolute;
    top: 26px;
    left: 16px;
    width: 5px;
    height: 5px;
    padding: 0 !important;
    background: #fa480a;
    border-radius: 5px;
}

.ui-datepicker.ui-datepicker-multi {
    width: 840px;
    height: 240px;
}

/* =========================================
   반응형 (Mobile: max-width 767px)
========================================= */
@media (max-width: 767px) {
    .mlr-25 {
        margin-left: 0;
        margin-right: 0;
    }

    .calendar:nth-child(4),
    .calendar:nth-child(5) {
        display: none;
    }

    .modal_estate {
        height: auto;min-height:500px;
        padding: 0;
    }

    .modal_estate .head {
        height: 80px;
    }

    .modal_estate .head h1 {
        padding-top: 15px;
        padding-bottom: 0;
        font-size: 20px;
        cursor: default;
    }

    .modal_estate .head h2 {
        padding: 5px 10px;
        font-size: 12px;
    }

    .modal_estate .head .btn-close {
        top: 10px;
        right: 10px;
    }

    .modal_estate .list,
    .modal_estate .listbig {
        height: 360px;
    }
    
    .modal_estate .list {
        padding-left: 20px;
    }

    .modal_estate .list li {
        width: 130px;
        height: 35px;
        line-height: 35px;
    }

    .modal_estate .listbig li {
        width: 45%;
        height: 80px;
        line-height: 80px;
        padding: 0 10px; /* 데스크탑 패딩 조절 필요 시 수정 */
    }

    .modal_estate .listbig i {
        font-size: 24px;
    }
}


/* 1. 기본 배경 이미지 제거 및 텍스트 숨김 해제 */
.ui-dialog .ui-dialog-titlebar-close .ui-icon {
    background-image: none !important; /* 기존 이미지 스프라이트 제거 */
    text-indent: 0 !important;         /* jQuery UI의 텍스트 숨김(-9999px) 무효화 */
    overflow: visible !important;
}

/* 2. 가상의 '✕' 문자 삽입 */
.ui-dialog .ui-dialog-titlebar-close .ui-icon::before {
    content: "\2715"; /* '✕' 모양의 유니코드 */
    display: block;
    text-align: center;
    font-size: 14px;
    font-weight: bold;
    color: #555; /* 닫기 버튼 색상 (원하는 색으로 변경 가능) */
    line-height: 1;
}

/* 3. 버튼 자체의 테두리나 배경을 깔끔하게 정리 (선택 사항) */
.ui-dialog .ui-dialog-titlebar-close {
    background: transparent;
    border: none;
    box-shadow: none;
    cursor: pointer;
}

/* 마우스 호버 시 색상 변경 */
.ui-dialog .ui-dialog-titlebar-close:hover .ui-icon::before {
    color: #000;
}

/* 다이얼로그 전체 박스 스타일 (테두리, 그림자, 배경) */
.ui-dialog {
    border: 1px solid #d1d1d1 !important; /* 깔끔한 옅은 회색 테두리 */
    border-radius: 8px !important; /* 모서리를 부드럽게 둥글림 */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important; /* 부드럽고 깊은 그림자 효과 */
    background-color: #ffffff !important; /* 배경을 흰색으로 지정하여 뒤쪽 콘텐츠 비침 방지 */
    padding: 0 !important; /* 기본 패딩 여백 제거 (선택 사항) */
}

/* 다이얼로그 헤더(제목 표시줄) 스타일 다듬기 (선택 사항) */
.ui-dialog .ui-dialog-titlebar {
    background: #f8f8f8; /* 헤더 배경색을 약간 다르게 주어 본문과 구분 */
    border: none;
    border-bottom: 1px solid #eeeeee; /* 헤더와 본문 사이의 구분선 */
    border-radius: 8px 8px 0 0; /* 위쪽 모서리만 둥글게 */
    padding: 15px;
}


/* =========================================
   1번 팝업 (후기 게시판) 스타일 
   ========================================= */
.board-review-style {
    border: 1px solid #d1d1d1 !important; 
    border-radius: 8px !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2) !important;
}

.board-review-style .ui-dialog-titlebar {
    background: #f8f8f8; /* 밝은 회색 헤더 */
    border-bottom: 1px solid #eeeeee;
}

/* 후기 팝업의 닫기 버튼 텍스트 색상 (선택 사항) */
.board-review-style .ui-dialog-titlebar-close .ui-icon::before {
    color: #555; 
}


/* =========================================
   2번 팝업 (공지사항 게시판) 스타일 
   ========================================= */
.board-notice-style {
    border: 2px solid #0056b3 !important; /* 눈에 띄는 파란색 굵은 테두리 */
    border-radius: 0 !important; /* 각진 모서리 (예시) */
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3) !important;
}

.board-notice-style .ui-dialog-titlebar {
    background: #0056b3; /* 파란색 배경 헤더 */
    color: #ffffff; /* 흰색 텍스트 */
    border-bottom: none;
}

/* 공지사항 팝업의 닫기 버튼은 배경이 파란색이므로 하얀색 텍스트로 변경 */
.board-notice-style .ui-dialog-titlebar-close .ui-icon::before {
    color: #ffffff; 
}
