/* ===== 내 예약 목록 페이지 ===== */

/* 필터 탭 */
.rsv-filter-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    border-bottom: 1px solid #E5E8EB;
    padding-bottom: 0;
}

.rsv-tab {
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    cursor: pointer;
    margin-bottom: -1px;
    transition: color 0.15s, border-color 0.15s;
}

.rsv-tab:hover {
    color: #1A1A1A;
}

.rsv-tab.active {
    color: #1A6EFF;
    border-bottom-color: #1A6EFF;
}

/* 예약 카드 목록 */
.rsv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 예약 카드 */
.rsv-card {
    background: #ffffff;
    border: 1px solid #E5E8EB;
    border-radius: 10px;
    padding: 16px;
    transition: box-shadow 0.15s;
}

.rsv-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.rsv-card-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.rsv-card-number {
    font-size: 12px;
    color: #8B95A1;
    font-family: monospace;
    margin-left: auto;
}

.rsv-card-pkg {
    font-size: 16px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 4px;
    line-height: 1.4;
}

.rsv-card-category {
    font-size: 12px;
    color: #8B95A1;
    margin-bottom: 10px;
}

.rsv-card-meta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.rsv-card-date,
.rsv-card-people {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    color: #4B5563;
}

.rsv-card-date svg,
.rsv-card-people svg {
    flex-shrink: 0;
    color: #8B95A1;
}

.rsv-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding-top: 12px;
    border-top: 1px solid #F3F4F6;
}

.rsv-card-amount {
    font-size: 16px;
    font-weight: 700;
    color: #1A1A1A;
}

/* 결제 상태 */
.rsv-card-pay-status {
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.rsv-pay-paid        { background: #ECFDF5; color: #10B981; }
.rsv-pay-pending     { background: #FEF9C3; color: #92400E; }
.rsv-pay-refunded    { background: #EFF6FF; color: #3B82F6; }
.rsv-pay-cancelled   { background: #F3F4F6; color: #6B7280; }
.rsv-pay-failed      { background: #FEF2F2; color: #EF4444; }
.rsv-pay-none        { background: #F3F4F6; color: #6B7280; }

/* 액션 버튼 */
.rsv-card-actions {
    display: flex;
    gap: 8px;
}

.rsv-btn-detail {
    flex: 1;
    padding: 9px 16px;
    background: #F3F4F6;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1A1A1A;
    cursor: pointer;
    transition: background 0.15s;
}

.rsv-btn-detail:hover {
    background: #E5E8EB;
}

.rsv-btn-cancel {
    padding: 9px 16px;
    background: #FEF2F2;
    border: 1px solid #FECACA;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #EF4444;
    cursor: pointer;
    transition: background 0.15s;
}

.rsv-btn-cancel:hover {
    background: #FEE2E2;
}

/* 예약 상태 뱃지 */
.rsv-status-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.rsv-status-pending   { background: #FEF9C3; color: #92400E; }
.rsv-status-confirmed { background: #ECFDF5; color: #10B981; }
.rsv-status-completed { background: #EFF6FF; color: #3B82F6; }
.rsv-status-cancelled { background: #F3F4F6; color: #6B7280; }
.rsv-status-no_show   { background: #FEF2F2; color: #EF4444; }

/* 페이지네이션 */
.rsv-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.rsv-page-btn {
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #ffffff;
    border: 1px solid #E5E8EB;
    border-radius: 6px;
    font-size: 14px;
    color: #4B5563;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.rsv-page-btn:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}

.rsv-page-btn.active {
    background: #1A6EFF;
    border-color: #1A6EFF;
    color: #ffffff;
    font-weight: 600;
}

/* 취소 사유 입력 모달 */
.rsv-cancel-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.rsv-cancel-modal-overlay.is-open {
    display: flex;
}

.rsv-cancel-modal-box {
    background: #ffffff;
    border-radius: 10px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.rsv-cancel-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid #E5E8EB;
}

.rsv-cancel-modal-title {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
}

.rsv-cancel-modal-close {
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    color: #8B95A1;
    line-height: 1;
}

.rsv-cancel-modal-close:hover {
    color: #1A1A1A;
}

.rsv-cancel-modal-body {
    padding: 20px;
}

.rsv-cancel-modal-body label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 8px;
}

.rsv-cancel-modal-textarea {
    width: 100%;
    min-height: 100px;
    padding: 10px 12px;
    border: 1px solid #D1D5DB;
    border-radius: 6px;
    font-size: 14px;
    color: #1A1A1A;
    resize: vertical;
    font-family: inherit;
    box-sizing: border-box;
    outline: none;
    transition: border-color 0.15s;
}

.rsv-cancel-modal-textarea:focus {
    border-color: #1A6EFF;
}

.rsv-cancel-modal-footer {
    display: flex;
    gap: 8px;
    padding: 0 20px 20px;
    justify-content: flex-end;
}

.rsv-cancel-modal-btn-cancel {
    padding: 9px 18px;
    background: #F3F4F6;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #4B5563;
    cursor: pointer;
    transition: background 0.15s;
}

.rsv-cancel-modal-btn-cancel:hover {
    background: #E5E8EB;
}

.rsv-cancel-modal-btn-confirm {
    padding: 9px 18px;
    background: #EF4444;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #ffffff;
    cursor: pointer;
    transition: background 0.15s;
}

.rsv-cancel-modal-btn-confirm:hover {
    background: #DC2626;
}

/* 반응형 */
@media (max-width: 480px) {
    .rsv-tab {
        padding: 8px 12px;
        font-size: 13px;
    }

    .rsv-card {
        padding: 14px;
    }

    .rsv-card-pkg {
        font-size: 15px;
    }

    .rsv-card-actions {
        flex-direction: column;
    }

    .rsv-btn-cancel {
        width: 100%;
    }

    .rsv-cancel-modal-footer {
        flex-direction: column;
    }

    .rsv-cancel-modal-btn-cancel,
    .rsv-cancel-modal-btn-confirm {
        width: 100%;
        text-align: center;
    }
}
