@charset 'utf-8'; 

.searchbox-wrap {
    max-width: 1200px;
    margin: 20px auto 50px;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr) minmax(100px, 1fr) 0.5fr;
    gap: 20px;
}

/* 커스텀 Select 스타일 */
.custom-select {
    position: relative;
    width: 100%;
}

.custom-select label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #686868;
    margin-bottom: 8px;
}

.custom-select label i {
    color: #555;
    margin-right: 5px;
}

.select-trigger {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.select-trigger:hover {
    border-color: #0c8b86;
}

.select-trigger.active {
    border-color: #0c8b86;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.select-trigger .placeholder {
    color: #999;
}

.select-trigger .selected-text {
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select-trigger .arrow {
    margin-left: 10px;
    transition: transform 0.3s;
    color: #686868;
    font-size: 12px;
}

.select-trigger.active .arrow {
    transform: rotate(180deg);
}

/* 드롭다운 메뉴 */
.select-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background: #fff;
    border: 2px solid #0c8b86;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.select-dropdown.active {
    max-height: 400px;
    opacity: 1;
    overflow-y: auto;
}

.select-options {
    padding: 10px;
}
.select-options > p { font-size:16px; font-weight:600; color:#044b48; margin:10px 0 5px 10px; }
.select-option {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 6px;
    margin-bottom: 4px;
}

.select-option:last-child {
    margin-bottom: 0;
}

.select-option:hover {
    background: #ebebeb;
}

.select-option input[type="checkbox"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #044b48;
}

.select-option label {
    margin: 0 0 0 10px !important;
    cursor: pointer;
    font-weight: 400 !important;
    font-size: 14px;
    flex: 1;
    color: #333;
}

/* 라디오 버튼 스타일 (단일 선택용) */
.select-option input[type="radio"] {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #044b48;
}

/* 선택된 항목 카운트 */
.selected-count {
    display: inline-block;
    background: #044b48;
    color: #fff;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 5px;
}

/* 전체 선택/해제 버튼 */
.select-actions {
    display: flex;
    gap: 8px;
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
}

.select-actions button {
    flex: 1;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    color: #044b48;
    cursor: pointer;
    transition: all 0.2s;
}

.select-actions button:hover {
    background: #f5f7ff;
    border-color: #0c8b86;
}

/* 검색 입력 */
.select-search {
    padding: 10px;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
}

.select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
}

.select-search input:focus {
    border-color: #044b48;
}

/* 선택된 태그 표시 */
.selected-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    background: #f5f7ff;
    color: #044b48;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    border: 1px solid #e0e7ff;
}

.tag-remove {
    margin-left: 6px;
    cursor: pointer;
    font-weight: bold;
    color: #044b48;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.tag-remove:hover {
    opacity: 1;
}

/* 커스텀 달력 Select 스타일 */
.custom-date-select {
    position: relative;
    width: 100%;
}

.custom-date-select label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #686868;
    margin-bottom: 8px;
}

.custom-date-select label i {
    color: #555;
    margin-right: 5px;
}

.date-trigger {
    width: 100%;
    padding: 11px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.date-trigger:hover {
    border-color: #0c8b86;
}

.date-trigger.active {
    border-color: #0c8b86;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.date-trigger .placeholder {
    color: #999;
}

.date-trigger .selected-date {
    color: #333;
}

.date-trigger .icon {
    margin-left: 10px;
    color: #686868;
    font-size: 16px;
}

/* 달력 드롭다운 */
.calendar-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: #fff;
    border: 2px solid #0c8b86;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 320px;
}

.calendar-dropdown.active {
    max-height: 500px;
    opacity: 1;
    overflow: visible;
}

/* 달력 헤더 */
.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #e0e0e0;
    background: #f9f9f9;
    border-top-left-radius: 7px;
    border-top-right-radius: 7px;
}

.calendar-header button {
    background: #fff;
    border: 1px solid #e0e0e0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-header button:hover {
    background: #f5f7ff;
    border-color: #044b48;
    color: #044b48;
}

.calendar-header .current-month {
    font-weight: 600;
    color: #333;
    font-size: 15px;
}

/* 달력 그리드 */
.calendar-body {
    padding: 15px;
}

.calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 8px;
}

.calendar-weekday {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    color: #666;
    padding: 8px 0;
}

.calendar-weekday.sunday {
    color: #ff5252;
}

.calendar-weekday.saturday {
    color: #448aff;
}

.calendar-dates {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.calendar-date {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.calendar-date:not(.disabled):not(.other-month):hover {
    background: #f5f7ff;
    color: #044b48;
}

.calendar-date.other-month {
    color: #ccc;
    cursor: default;
}

.calendar-date.disabled {
    color: #ddd;
    cursor: not-allowed;
}

.calendar-date.today {
    border: 2px solid #044b48;
    font-weight: 600;
}

.calendar-date.selected {
    background: #044b48;
    color: #fff;
    font-weight: 600;
}

.calendar-date.sunday:not(.other-month):not(.disabled) {
    color: #ff5252;
}

.calendar-date.saturday:not(.other-month):not(.disabled) {
    color: #448aff;
}

.calendar-date.selected.sunday,
.calendar-date.selected.saturday {
    color: #fff;
}

/* 빠른 선택 버튼 */
.quick-select {
    padding: 12px 15px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    background: #f9f9f9;
    border-bottom-left-radius: 7px;
    border-bottom-right-radius: 7px;
}

.quick-select button {
    flex: 1;
    min-width: 70px;
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-size: 12px;
    color: #044b48;
    cursor: pointer;
    transition: all 0.2s;
}

.quick-select button:hover {
    background: #f5f7ff;
    border-color: #044b48;
}



/* 오버레이 */
.select-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 999;
    display: none;
}

.select-overlay.active {
    display: block;
}


/* 여행인원 카운터 스타일 */
.custom-people-select {
    position: relative;
    width: 100%;
}

.custom-people-select label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #686868;
    margin-bottom: 8px;
}

.custom-people-select label i {
    color: #555;
    margin-right: 5px;
}

.people-trigger {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    color: #333;
    background: #fff;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}

.people-trigger:hover {
    border-color: #044b48;
}

.people-trigger.active {
    border-color: #0c8b86;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.people-trigger .placeholder {
    color: #999;
}

.people-trigger .selected-text {
    color: #333;
    word-break: keep-all;
    line-height: 1.2;
}

.people-trigger .arrow {
    margin-left: 10px;
    transition: transform 0.3s;
    color: #686868;
    font-size: 12px;
}

.people-trigger.active .arrow {
    transform: rotate(180deg);
}

.people-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    min-width: 300px;
    background: #fff;
    border: 2px solid #0c8b86;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.people-dropdown.active {
    max-height: 400px;
    opacity: 1;
    overflow: visible;
}

.people-options {
    padding: 15px;
}

.people-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.people-option:last-child {
    border-bottom: none;
}

.people-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.people-type {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.people-desc {
    font-size: 12px;
    color: #999;
}

.people-counter {
    display: flex;
    align-items: center;
    gap: 12px;
}

.counter-btn {
    width: 32px;
    height: 32px;
    border: 2px solid #e0e0e0;
    background: #fff;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    color: #044b48;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.counter-btn:hover:not(:disabled) {
    background: #f5f7ff;
    border-color: #044b48;
}

.counter-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.counter-value {
    min-width: 30px;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.people-actions {
    display: flex;
    gap: 8px;
    padding: 12px 15px;
    border-top: 1px solid #e0e0e0;
    background: #f9f9f9;
}

.people-reset-btn,
.people-confirm-btn {
    flex: 1;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.people-reset-btn {
    background: #fff;
    border: 1px solid #e0e0e0;
    color: #666;
}

.people-reset-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.people-confirm-btn {
    background: #044b48;
    border: none;
    color: #fff;
}

.people-confirm-btn:hover {
    background: #5568d3;
}

/* 검색 버튼 래퍼 */
.search-button-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding-bottom:10px;
}

/* 인라인 검색 버튼 */
.inline-search-btn {
    flex: 1;
    height: 40px;
    background: linear-gradient(135deg, #0b7a76 0%, #298985 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.inline-search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.inline-search-btn:active {
    transform: translateY(0);
}

.inline-search-btn .search-icon {
    font-size: 18px;
}

.inline-search-btn .search-text {
    font-size: 15px;
}

/* 인라인 초기화 버튼 */
.inline-reset-btn {
    width: 46px;
    height: 46px;
    background: #fff;
    color: #044b48;
    border: 2px solid #044b48;
    border-radius: 8px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inline-reset-btn:hover {
    background: #f5f7ff;
    transform: rotate(180deg);
}

.inline-reset-btn:active {
    transform: rotate(180deg) scale(0.95);
}