#rtsearchBoxList {
    max-width: 1200px;
    /* 박스의 최대 폭을 화면의 폭에 맞춤 */
    background-color: white;
    /* box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); */
    /* 쉐도우 효과 조절 */
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 5px;
    
    padding:20px;
    border:1px solid #e6e6eb;
}

.row > .search_input{
   padding-left:0;
   padding-right:0;
   display: flex;
   flex-direction: column;
   flex: inherit;
}
.search_input > label{
    color:#54585A;
    height:13px;
    line-height:13px;
    margin-bottom:14px;
    padding-left:3px;
}

.form-control{
    border-color: transparent;
    background-color: #f5f5f5 !important;
    height: 50px;
    border-radius: 5px;
    color: #000;
    /* 아래는 나중에 추가한 부분 */
    padding: .375rem .75rem !important;
    font-size: 0.9rem !important;
}
.search_input > .form-control option{
    background-color:#fff;
}
.search_input > .form-control::placeholder{
    color:#999;
}
.search_input > input:focus{
    outline:none;
}

.search_input > .form-select{
    border-color:transparent;
    background-color:#f5f5f5;
    height:50px;
    border-radius:5px;
    color:#000;
}
.search_input > .form-select option{
    background-color:#fff;
}

.search_input > .btn{
    height:50px;
    border-radius:5px;
}


.location-info {
    padding: 14px;
    background-color: #f7f7f7;
    border-radius: 5px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    /* font-size: 0.75em; */
    font-size:12px;
}
.location-info:after{
    content:'';
}

.location-info h6 {
    color: #333;
    padding-bottom:2px;
    font-size: 1.1em;
}

.location-info p {
    color: #666;
    font-weight:300;
    line-height: 1.4; /* 줄 간격 조정 */
    margin-bottom:4px;
    font-size: 1em; /* 명시적 폰트 크기 설정 */
}

.location-info p strong {
    color: #333;
}

.location-header {
    display: flex;
    align-items: center;
    /* padding-left: 5px; */
    padding-top: 0;
    justify-content: space-between;
    padding-bottom: 8px;
    font-size:16px;
}
.location-header > p{
    font-weight:500;
    margin-bottom:0;
    width:calc(100% - 60px);
}
.location-header:nth-child(n+2){
    border-top:1px solid #ddd;
    padding-top:8px;
    margin-top:8px;
}




#pickupcitySearchBoxContainer {
    position: relative;
    /* pickupcitySearchBox의 컨테이너에 상대적 위치 설정 */
    display: flex;
    /* Flexbox를 사용하여 요소들을 수평 정렬 */
}

#pickupcityLocationContainer {
    position: relative;
    /* pickupcitySearchBox의 컨테이너에 상대적 위치 설정 */
    display: flex;
    /* Flexbox를 사용하여 요소들을 수평 정렬 */
}

#pickupcityResultBox,
#pickupcityLocationBox {
    display: none;
    position: absolute;
    /* 절대 위치를 사용하여 overlay 효과 구현 */
    top: 100%;
    /* pickupcitySearchBox의 아래에 배치 */
    left: 0;
    width: 100%;
    /* pickupcitySearchBox의 너비와 동일하게 설정 */
    background-color: white;
    /* 배경색 설정 */
    border: 1px solid #ddd;
    /* 경계선 스타일 */
    z-index: 1000;
    /* 다른 요소들 위에 표시되도록 z-index 설정 */
    max-height: 300px;
    /* 최대 높이 설정 */
    overflow-y: auto;
    /* 내용이 많을 경우 스크롤 가능하도록 설정 */
    flex-grow: 1;
    /* 검색 박스가 컨테이너의 나머지 공간을 차지하도록 설정 */
    font-size: 16px;
}

.search-box-label{
    margin-bottom: 0 !important;
}


#pickupcityResultBox ul,
#pickupcityLocationBox ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

#pickupcityResultBox .location-item,
#pickupcityLocationBox .location-item {
    padding: 10px;
    cursor: pointer;
    font-size: 14px;
}

#pickupcityResultBox .location-item:hover,
#pickupcityLocationBox .location-item:hover {
    background-color: #f0f0f0;
}

#pickupcityClearButton {
    position: absolute;
    right: 10px;
    /* 오른쪽에서 10px 떨어진 위치에 배치 */
    top: 50%;
    /* 수직 중앙 정렬 */
    transform: translateY(-35%);
    /* 정확한 중앙 정렬을 위해 Y축 이동 */
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    /* 'X' 텍스트 색상 설정 */
    font-size: 16px;
    /* 'X' 문자 크기 설정 */
    font-weight: bold;
    /* 'X' 문자 두께 설정 */
}

#pickupcityLocationV {
    position: absolute;
    right: 10px;
    /* 오른쪽에서 10px 떨어진 위치에 배치 */
    top: 50%;
    /* 수직 중앙 정렬 */
    transform: translateY(-50%);
    /* 정확한 중앙 정렬을 위해 Y축 이동 */
    border: none;
    background: none;
    cursor: pointer;
    color: #333;
    /* 'X' 텍스트 색상 설정 */
    font-size: 16px;
    /* 'X' 문자 크기 설정 */
    font-weight: bold;
    /* 'X' 문자 두께 설정 */
}

.modal-content {
    min-width:320px;
    border-radius: 5px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Default styles for larger screens (PC) */
.modal-dialog {
    display: flex;
    justify-content: center;
    align-items: center;
    /* 수직 방향으로 중앙 정렬 */
    min-height: calc(100vh - 60px);
    /* 뷰포트 높이의 100%에서 상단 및 하단 여백 제거 */
}

/* 달력 모달에 대한 기본 폭 설정 */
#dateModal .modal-dialog {
    max-width: 650px;
    width: 100%;
}

#citySearchModal .modal-dialog {
    max-width: 650px;
    width: 100%;
}


/* 모달 내용에 대한 스타일 */
.modal-content {
    min-width:320px;
    margin: auto;
    /* 자동 마진을 통한 추가 중앙 정렬 */
}

#modal-info {
    max-height: 800px;
    overflow-y: auto;
}

.modal .close {
    display: none;
}

/* 로딩 오버레이 스타일 */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 반투명 검정 배경 */
    z-index: 9999; /* 다른 요소 위에 표시 */
    display: flex;
    justify-content: center; /* 가운데 정렬 */
    align-items: center; /* 세로 가운데 정렬 */
  }
  
  /* 로딩 애니메이션 스타일 */
  .loader {
    border: 4px solid #f3f3f3; /* Light grey */
    border-top: 4px solid #36b77c; /* Blue */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
.hidden {
    display: none;
}

#pickupcitySearchBox {
    margin-top: 5px; /* 검색 박스에 상단 마진 추가 */
}

#pickupcityLocation {
    margin-top: 5px; /* 드롭다운에 상단 마진 추가 */
}

#locationInfo {
    margin-top: 20px; /* 위치 정보에 상단 마진 추가 */
}

#map_canvas {
    /* margin-top: 10px; */
     /* 지도 캔버스에 상단 마진 추가 */
}

#timeselect {
    margin-top: 20px; /* 시간 선택 위 상단 마진 추가 */
}

.btn-view-map {
    margin-left: 10px; /* '지도보기' 버튼에 왼쪽 마진 추가 */
}

#company-summary{
    margin-top: 5px; 
    margin-bottom: 5px; 
    text-align: right;
}

/* 도시선택 모달을 위한 CSS */
.location-info {
    background-color: #f8f8f8;
    padding: 15px;
    border-radius: 5px;
    /* box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); */
    margin-top: 5px;
    /* font-size: 0.75em; */
    font-size:12px;
}

.location-info h6 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.location-info p {
    color: #666;
    font-weight:300;
    line-height: 1.6; /* 줄 간격 조정 */
    margin-bottom:2px;
    font-size: 1em; /* 명시적 폰트 크기 설정 */
}

.location-info p strong {
    color: #333;
}

.location-header {
    display: flex;
    align-items: center;
    /* padding-left: 5px; */
    padding-top: 5px;
    justify-content: space-between;
}
.location-header > p{
    font-weight:500;
    font-size:16px;
    margin-bottom:4px;
}

.view-map-button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em; /* 명시적 폰트 크기 설정 */
}

.view-map-button:hover {
    background-color: #0056b3;
}

input[type="checkbox"] {
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1em;
}

/* 오픈 정보 테이블 */
/* rt-search.css 내에 추가 */
.opening-hours-table {
    width: 100%;
    border-collapse: collapse;
    margin: auto;
    /* 표를 중앙 정렬 */
}

.opening-hours-table th,
.opening-hours-table td {
    border: 1px solid black;
    /* 1px 테두리 추가 */
    text-align: center;
    /* 텍스트 중앙 정렬 */
    padding: 4px;
    /* 셀 패딩 추가 */
    width: 14.28%;
    min-width:50 px;
}
.m_icon{
    display:none;
}

@media (max-width: 768px) {
    .modal-dialog {
        max-width: 90%;
        /* 모바일 화면에서 모달의 최대 폭을 화면의 95%로 설정 */
        width: 100%;
        /* 폭을 100%로 설정하여 실제로 max-width에 정의된 폭까지만 확장되도록 함 */
        justify-content: flex-start;
        /* Align to the start (left) for mobile */
    }

    /* 달력 모달에 대한 기본 폭 설정 */
    #dateModal .modal-dialog {
        max-width: 96%;
        width: 100%;
    }

    #citySearchModal .modal-dialog {
        max-width: 96%;
        width: 100%;
    }


    #modal-info {
        max-height: 340px;
        overflow-y: auto;
    }
    
    /* .search_input + .search_input{
        border-top:1px solid #eee;
        margin-bottom:4px;
    } */
    .search_input:last-child{
        border-top:none;     
    }
    .search_input > label{
        margin-top:14px;
        margin-bottom:4px;
        padding-left:0;
    }

   .search_input > .form-control{
        background-color:transparent;
        padding:0;
   }
   .search_input > .form-control::placeholder{
        color:#bbb;
    }
   .search_input > .form-select{
        margin-top:8px;
   }

   .row > .search_input{
        display:flex;
        align-items: center;
        gap:8px;
        flex-direction: row;
   }
   .m_icon{
        display: inline-flex;
        font-size: 16px;
        width: 20px;
        justify-content: center;
        align-items: center;
        margin-left: 4px;
   }
   .search_list_box #searchBoxList .search_input > .btn{
        margin-top:6px;
   }

}