/* 모바일 예약 탭 — booking 카테고리 UI (모바일 전용, 룸 예약과 동등 레이아웃) */
.xt-rsv-hub-root,
.xt-rsv-hub-root a {
    font-family: var(--xt-font-sans, "Pretendard", system-ui, sans-serif) !important;
}

.booking-category-container {
    background-color: #ffffff;
    min-height: calc(100vh - 60px); /* 헤더와 바텀 네비게이션 높이 제외 */
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px)); /* 바텀 네비에 가리지 않도록 여백 */
}

/* 타이틀 */
.booking-page-title {
    text-align: center;
    margin: 0 0 2rem 0;
    padding-top: 2rem;
    font-size: 2rem;
    font-weight: bold;
    color: #000;
}

/* 탭 네비게이션 */
.booking-tab-navigation {
    display: flex;
    justify-content: center;
    gap: 2rem;
    
    border-bottom: 1px solid #e0e0e0;
}

.booking-tab-btn {
    background: none;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #999;
    cursor: pointer;
    position: relative;
    transition: color 0.3s;
}

.booking-tab-btn.active {
    color: var(--xt-primary, #3182f6);
    font-weight: 600;
}

.booking-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--xt-primary, #3182f6);
}

.booking-tab-btn:hover {
    color: var(--xt-primary, #3182f6);
}

/* 안내 문구 섹션 */
.booking-guide-section-main {
    background-color: #FFE9D9;
    padding: 1.5rem;
    
    
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.booking-guide-text {
    
    font-size: 0.95rem;
    color: #000000;
    
    text-align: left;
    margin-bottom: 0 !important;
}

.booking-guide-text:last-child {
    margin-bottom: 0;
}

/* 카테고리 리스트 */
.booking-category-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 600px;
    margin: 0 auto;
    background-color: #fff;
    border-top: 1px solid #e0e0e0;
}

.booking-category-item {
    width: 100%;
    padding: 1.25rem 1rem;
    background-color: transparent;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.booking-category-item i {
    font-size: 1.2rem;
    width: 24px;
    text-align: center;
    color: #666;
    transition: color 0.3s;
}

.booking-category-item img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    flex-shrink: 0;
}

.booking-category-item-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}
.booking-category-item-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: #000;
    line-height: 1.3;
}
.booking-category-item-desc {
    font-size: 0.85rem;
    font-weight: 400;
    color: #666;
    line-height: 1.4;
    text-align: left;
}

.booking-category-item:hover {
    color: var(--xt-primary, #3182f6);
    background-color: transparent;
}

.booking-category-item:hover i {
    color: var(--xt-primary, #3182f6);
}

.booking-category-item:active {
    color: var(--xt-primary, #3182f6);
}

.booking-category-item:active i {
    color: var(--xt-primary, #3182f6);
}

/* 뷰티상담 폼 스타일 */
.booking-form-section {
    width: 100%;
    
}

.booking-form-header {
    display: flex;
    align-items: center;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    min-height: 52px;
    box-sizing: border-box;
}
#consultationFormSection {
    padding-top: 52px;
}

.booking-back-btn {
    background: none;
    border: none;
    padding: 0.5rem;
    cursor: pointer;
    font-size: 1.2rem;
    color: #000;
}

.booking-form-title-text {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
}

/* 상담 안내 섹션 */
.booking-guide-section {
    background-color: #E4E0E0;
    padding: 1.5rem;
    
    margin-bottom: 2rem;
}

.booking-guide-header {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.booking-guide-title {
    margin: 0;
    font-size: 1.2rem;
    font-weight: bold;
    color: #000;
}

.booking-guide-intro {
    margin: 0 0 1rem 0;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.6;
}

.booking-guide-list {
    margin: 0 0 1rem 0;
    padding-left: 1.5rem;
    font-size: 0.95rem;
    color: #000;
    line-height: 1.8;
}

.booking-guide-list li {
    margin-bottom: 0.5rem;
}

.booking-guide-note {
    margin: 0;
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
}

/* 폼 콘텐츠 */
.booking-form-content {
    background-color: #fff;
}

.booking-form-field {
    margin-bottom: 2rem;
}

.booking-form-label {
    display: block;
    font-size: 1.1rem;
    font-weight: 600;
    color: #000;
    margin-bottom: 0.5rem;
}

.booking-form-label.required::after {
    
    {#color: #ff0000;#}
}

.booking-form-instruction {
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 0.75rem 0;
    line-height: 1.5;
}

.booking-form-input {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #fff;
    box-sizing: border-box;
}

.booking-form-input:focus {
    outline: none;
    border-color: var(--xt-primary, #3182f6);
}

/* 라디오 버튼 그룹 */
.booking-radio-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-radio-group-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.booking-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    {#border: 1px solid #e0e0e0;#}
    border-radius: 0.5rem;
    transition: all 0.3s;
    flex: 0 0 auto;
    min-width: fit-content;
    gap: .5rem;
}

.booking-radio-item:hover {
    background-color: #f9f9f9;
}

.booking-radio-item input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    accent-color: var(--xt-primary, #3182f6);
    cursor: pointer;
}

.booking-radio-item input[type="radio"]:checked + span {
    color: var(--xt-primary, #3182f6);
    font-weight: 600;
}

.booking-radio-item span {
    font-size: 1rem;
    color: #000;
}

/* 날짜/시간 입력 */
.booking-date-time-wrapper {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.booking-date-time-item {
    flex: 1;
}

.booking-date-time-item label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.booking-icon-input-wrapper {
    position: relative;
}

.booking-icon-input-wrapper input {
    padding-right: 2.5rem;
}

.booking-icon-input-wrapper i {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
}

/* 날짜 입력 필드 placeholder 스타일 */
.booking-date-placeholder {
    position: absolute;
    left: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    pointer-events: none;
    font-size: 1rem;
    z-index: 1;
}

.booking-icon-input-wrapper.has-placeholder input[type="date"]:not(:focus) {
    color: transparent;
}

.booking-icon-input-wrapper.has-placeholder input[type="date"]:focus {
    color: #000;
}

/* 텍스트 영역 */
.booking-form-textarea {
    width: 100%;
    padding: 0.875rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
}

.booking-form-textarea:focus {
    outline: none;
    border-color: var(--xt-primary, #3182f6);
}

/* 체크박스 그룹 */
.booking-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.booking-checkbox-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
    {#border: 1px solid #e0e0e0;#}
    border-radius: 0.5rem;
    transition: all 0.3s;
    flex: 0 0 auto;
    min-width: fit-content;
}

.booking-checkbox-item:hover {
    background-color: #f9f9f9;
}

.booking-checkbox-item input[type="checkbox"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    accent-color: var(--xt-primary, #3182f6);
    cursor: pointer;
}

.booking-checkbox-item input[type="checkbox"]:checked + span {
    color: var(--xt-primary, #3182f6);
    font-weight: 600;
}

.booking-checkbox-item span {
    font-size: 1rem;
    color: #000;
}

.booking-radio-item {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0.75rem;
}
.booking-radio-item:hover {
    background-color: #f9f9f9;
}
.booking-radio-item input[type="radio"] {
    margin-right: 0.75rem;
    width: 20px;
    height: 20px;
    accent-color: var(--xt-primary, #3182f6);
    cursor: pointer;
}
.booking-radio-item input[type="radio"]:checked + span {
    color: var(--xt-primary, #3182f6);
    font-weight: 600;
}
.booking-radio-item span {
    font-size: 1rem;
    color: #000;
}

/* 신청하기 버튼 */
.booking-submit-btn {
    width: 100%;
    padding: 1.25rem;
    background-color: var(--xt-primary, #3182f6);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s;
    margin-bottom: 0.75rem;
}

.booking-submit-btn:hover {
    background-color: var(--xt-blue-600, #2272eb);
}

.booking-submit-btn:active {
    transform: scale(0.98);
}

.booking-form-footer-note {
    text-align: center;
    font-size: 0.85rem;
    color: #999;
    margin: 0;
}

/* SNS 아이콘 스타일 */
.booking-sns-icon {
    width: 24px;
    height: 24px;
    margin-right: 0.5rem;
    display: inline-block;
}

.booking-radio-item-with-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.booking-radio-item-with-input input[type="text"] {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 0.95rem;
}

/* 인원 수 입력 */
.booking-people-counter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.booking-counter-btn {
    width: 40px;
    height: 40px;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    background-color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.booking-counter-btn:hover {
    background-color: #f5f5f5;
    border-color: var(--xt-primary, #3182f6);
}

.booking-counter-value {
    
    text-align: center;
    font-size: 1.1rem;
    font-weight: 600;
}

/* 상담 항목 기타 (체크박스와 동일 UI) */
.booking-other-option {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.75rem;
    padding: 0.75rem;
    {#border: 1px solid #e0e0e0;#}
    border-radius: 0.5rem;
    transition: all 0.3s;
}

.booking-other-option:hover {
    background-color: #f9f9f9;
}

.booking-other-option .booking-item-other-input {
    width: 100%;
    margin-top: 0.25rem;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    background-color: #fff;
    box-sizing: border-box;
}
.booking-other-option .booking-item-other-input:focus {
    outline: none;
    border-color: var(--xt-primary, #3182f6);
}

/* 상담 항목 그룹 내 기타 입력란 (같은 간격) */
.booking-item-other-input-wrap input {
    width: 100%;
    box-sizing: border-box;
}

/* 신청 내역 섹션 */
.booking-history-section {
    display: none;
    padding: 2rem 1rem;
    text-align: center;
}

.booking-history-section.active {
    display: block;
}

.booking-history-empty {
    padding: 4rem 2rem;
    color: #999;
}

.booking-history-empty-icon {
    font-size: 4rem;
    color: #e0e0e0;
    margin-bottom: 1.5rem;
}

.booking-history-empty-text {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
}
/* 신청 내역: 이메일 검색 + 목록 */
.booking-history-search {
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.booking-history-search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}
.booking-history-search-btn {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--xt-primary, #3182f6);
    color: #fff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.booking-history-search-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}
.booking-history-list {
    padding: 1rem;
    max-width: 600px;
    margin: 0 auto;
}
.booking-history-item {
    background: #f8f8f8;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border: 1px solid #e0e0e0;
    font-size: 0.95rem;
    color: #333;
}
.booking-history-item-type {
    font-weight: 600;
    color: var(--xt-primary, #3182f6);
    margin-bottom: 0.25rem;
}
.booking-history-item-date {
    color: #666;
    font-size: 0.9rem;
}
.booking-history-item-detail {
    margin-top: 0.5rem;
    color: #555;
    line-height: 1.4;
}
.booking-history-item-status {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.2rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.85rem;
    font-weight: 600;
}
.booking-history-item-status.confirmed {
    background: #e8f5e9;
    color: #2e7d32;
}
.booking-history-item-status.pending {
    background: #fff3e0;
    color: #e65100;
}
/* 상담 폼 제출 로딩 오버레이 */
.booking-consultation-loading-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 1rem;
}
.booking-consultation-loading-overlay.active {
    display: flex;
}
.booking-consultation-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.3);
    border-top-color: var(--xt-primary, #3182f6);
    border-radius: 50%;
    animation: booking-spin 0.8s linear infinite;
}
.booking-consultation-loading-text {
    color: #fff;
    font-size: 1.1rem;
}
@keyframes booking-spin {
    to { transform: rotate(360deg); }
}
#consultationForm {
    padding: 0 1rem;
}

/* 호텔 메시지 인라인: 채팅이 길어져도 영역 안에서 스크롤 */
#bookingHotelMessageInline {
    position: absolute;
    top: 56px;
    bottom: 60px;
    display: flex;
    flex-direction: column;
    width: 100%;
}
#bookingHotelMessageInline #hotelMessageChatList {
    
    height: 100%;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-height: 1440px) {
    .booking-tab-btn {
        font-size: 2.3rem;
    }
    .booking-guide-text {
        font-size: 1.5rem;
    }
    .booking-category-item {
        font-size: 2.1rem;
    }
    .booking-history-empty-text {
        font-size: 1.8rem;
    }
    .booking-history-empty-icon {
        font-size: 6rem;
    }
    .room-home-btn img, #room-current-flag, .top-info-btn img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}
}

/* 프리미엄 상담 버튼 스타일 */
.book-connect-button {
    width: calc(100% - 2rem);
    max-width: 600px;
    margin: 1.5rem auto 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, var(--xt-primary, #3182f6) 0%, var(--xt-blue-500, #3182f6) 100%);
    border: none;
    border-radius: 1rem;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(49, 130, 246, 0.25);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    
    text-decoration: none;
}

.book-connect-button:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 25px rgba(49, 130, 246, 0.35);
    background: linear-gradient(135deg, var(--xt-blue-500, #3182f6) 0%, var(--xt-blue-600, #2272eb) 100%);
}

.book-connect-button:active {
    transform: translateY(0) scale(0.98);
    box-shadow: 0 2px 10px rgba(49, 130, 246, 0.2);
}

.book-connect-button-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 1;
}

.book-connect-button-text {
    margin: 0 !important;
    font-size: 1.2rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.book-connect-button i {
    font-size: 1.4rem;
    color: #fff;
}

.book-connect-button-desc {
    width: calc(100% - 2rem);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #000;
}

/* LINE 외부 상담 링크 (로컬 아이콘 + 텍스트) */
.book-line-consult-button {
    width: calc(100% - 2rem);
    max-width: 600px;
    margin: 0.35rem auto 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.65rem 1.25rem;
    background: #19bc05;
    border: none;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
    box-shadow: 0 4px 14px rgba(6, 199, 85, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.book-line-consult-button:hover {
    color: #fff;
    background: #05b34c;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(6, 199, 85, 0.45);
}
.book-line-consult-button:active {
    transform: translateY(0);
}
.book-line-consult-button .book-line-consult-icon {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}
@media (min-height: 1440px) {
    .book-line-consult-button {
        padding: 0.85rem 1.5rem;
        font-size: 1.35rem;
        margin-top: 0.5rem;
    }
    .book-line-consult-button .book-line-consult-icon {
        width: 36px;
        height: 36px;
    }
}

@media (min-height: 1440px) {
    .book-connect-button {
        padding: 1.5rem 2rem;
        border-radius: 1.5rem;
        margin: 2.5rem auto ;
    }
    .book-connect-button-text {
        font-size: 2rem;
    }
    .book-connect-button i {
        font-size: 2.2rem;
    }
}

/* 예약 페이지 토스트 */
.booking-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 9999;
    padding: 0.75rem 1.25rem;
    background: rgba(0,0,0,0.85);
    color: #fff;
    border-radius: 9999px;
    font-size: 0.95rem;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.booking-toast.show {
    opacity: 1;
}

/* base-mobile 앱 헤더 아래에 폼 뒤로가기 바 고정 */
.xt-rsv-hub-root .booking-form-header {
    top: calc(3.25rem + env(safe-area-inset-top, 0px));
}
