/* ========== Reservation Skin - Default ========== */
.rsv_wrap { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Malgun Gothic", "맑은 고딕", sans-serif; color: #222; line-height: 1.5; }
.rsv_wrap * { box-sizing: border-box; }
.rsv_container { max-width: 1080px; margin: 0 auto; padding: 24px 16px 60px; }

/* Top header */
.rsv_top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 2px solid #eef1f5; }
.rsv_page_title { font-size: 26px; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }
.rsv_page_desc { color: #666; font-size: 14px; margin-top: 6px; max-width: 640px; }
.rsv_top_meta { display: flex; gap: 12px; align-items: center; }
.rsv_meta_box { padding: 8px 14px; background: #f0f6ff; border: 1px solid #d6e4ff; border-radius: 8px; font-size: 13px; }
.rsv_meta_label { color: #5272b5; margin-right: 6px; }
.rsv_meta_value strong { font-size: 16px; color: #2a4d9b; }

.rsv_breadcrumb { margin-bottom: 14px; font-size: 13px; }
.rsv_breadcrumb a { color: #666; text-decoration: none; }
.rsv_breadcrumb a:hover { color: #222; }

/* Alerts */
.rsv_alert { padding: 12px 16px; border-radius: 8px; margin-bottom: 16px; font-size: 14px; }
.rsv_alert_info { background: #eef5ff; color: #2450a4; border-left: 4px solid #4676d9; }
.rsv_alert_warning { background: #fff6e6; color: #8a5a0b; border-left: 4px solid #f39c12; }
.rsv_alert_error { background: #fdecea; color: #922b21; border-left: 4px solid #e74c3c; }

/* Calendar nav */
.rsv_calendar_nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 16px; }
.rsv_nav_btn { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: #f6f8fb; border: 1px solid #e2e8f0; border-radius: 8px; color: #333; text-decoration: none; font-size: 20px; font-weight: 500; }
.rsv_nav_btn:hover { background: #e8ebf0; color: #111; }
.rsv_calendar_title { font-size: 22px; font-weight: 700; color: #1a1a1a; margin: 0; min-width: 160px; text-align: center; }
.rsv_nav_today { background: #1a73e8; color: #fff; padding: 6px 14px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 500; margin-left: 12px; }
.rsv_nav_today:hover { background: #1558b0; color: #fff; }

/* Calendar grid */
.rsv_calendar { border: 1px solid #e2e8f0; border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.04); }
.rsv_calendar_head { display: grid; grid-template-columns: repeat(7, 1fr); background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
.rsv_dow { padding: 12px 8px; text-align: center; font-weight: 600; font-size: 13px; color: #555; }
.rsv_dow.rsv_sun { color: #e74c3c; }
.rsv_dow.rsv_sat { color: #3498db; }
.rsv_calendar_body { display: grid; grid-template-columns: repeat(7, 1fr); }
.rsv_cell { padding: 10px; border-right: 1px solid #edf0f4; border-bottom: 1px solid #edf0f4; min-height: 92px; position: relative; cursor: default; transition: background .1s; }
.rsv_cell:nth-child(7n) { border-right: none; }
.rsv_out { background: #fafbfc; }
.rsv_cell.rsv_today { background: #fffbe6; }
.rsv_cell.rsv_past { opacity: .55; }
.rsv_cell.rsv_has_slot { cursor: pointer; }
.rsv_cell.rsv_has_slot:hover { background: #f0f6ff; }
.rsv_cell.rsv_active { background: #e0edff !important; outline: 2px solid #1a73e8; z-index: 1; }

.rsv_day_num { font-size: 13px; font-weight: 600; color: #333; }
.rsv_cell.rsv_sun .rsv_day_num { color: #e74c3c; }
.rsv_cell.rsv_sat .rsv_day_num { color: #3498db; }
.rsv_cell.rsv_out .rsv_day_num { color: #bbb; }

.rsv_day_badge { margin-top: 4px; }
.rsv_badge_available { display: inline-block; padding: 2px 7px; background: #d1f5df; color: #16794a; border-radius: 10px; font-size: 11px; font-weight: 500; }
.rsv_badge_full { display: inline-block; padding: 2px 7px; background: #eee; color: #888; border-radius: 10px; font-size: 11px; font-weight: 500; }

/* Slot panel */
.rsv_slot_panel { position: fixed; right: 16px; bottom: 16px; width: 380px; max-width: calc(100vw - 32px); max-height: 70vh; background: #fff; border-radius: 14px; box-shadow: 0 20px 40px rgba(0,0,0,.15); overflow: hidden; display: flex; flex-direction: column; z-index: 100; }
.rsv_slot_panel_header { padding: 14px 18px; background: #1a73e8; color: #fff; display: flex; align-items: center; justify-content: space-between; }
.rsv_slot_panel_header h3 { margin: 0; font-size: 15px; font-weight: 600; }
.rsv_close { background: transparent; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 0; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.rsv_close:hover { background: rgba(255,255,255,.15); }
.rsv_slot_panel_body { padding: 14px 18px; overflow-y: auto; }

.rsv_slot_item { display: flex; justify-content: space-between; align-items: center; padding: 12px; border: 1px solid #e2e8f0; border-radius: 10px; margin-bottom: 8px; text-decoration: none; color: #222; transition: all .15s; }
.rsv_slot_item:hover { border-color: #1a73e8; background: #f0f6ff; transform: translateY(-1px); }
.rsv_slot_item.rsv_slot_full { opacity: .55; pointer-events: none; cursor: not-allowed; }
.rsv_slot_item.rsv_slot_inactive { opacity: .4; pointer-events: none; }
.rsv_slot_item_left { display: flex; flex-direction: column; gap: 2px; }
.rsv_slot_item_time { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.rsv_slot_item_title { font-size: 12px; color: #777; }
.rsv_slot_item_right { text-align: right; font-size: 12px; }
.rsv_slot_item_count { color: #666; }
.rsv_slot_item_count strong { color: #16794a; }
.rsv_slot_item_ticket { display: inline-block; margin-top: 2px; padding: 1px 6px; background: #fff2e0; color: #8a5a0b; border-radius: 6px; font-size: 10px; font-weight: 500; }

.rsv_empty { text-align: center; padding: 40px 20px; color: #999; font-size: 14px; }

/* Book form */
.rsv_slot_summary { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 16px 20px; margin-bottom: 20px; }
.rsv_slot_summary_row { display: flex; flex-wrap: wrap; gap: 16px; }
.rsv_slot_summary_cell { flex: 1 1 140px; }
.rsv_summary_label { font-size: 12px; color: #777; margin-bottom: 4px; }
.rsv_summary_value { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.rsv_slot_description { margin-top: 12px; padding-top: 12px; border-top: 1px dashed #dbe3ee; color: #555; font-size: 14px; }
.rsv_ticket_note { margin-top: 12px; padding: 8px 12px; background: #fff2e0; color: #8a5a0b; border-radius: 8px; font-size: 13px; }

.rsv_form_group { margin-bottom: 14px; }
.rsv_label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #333; }
.rsv_label.rsv_required::after { content: ' *'; color: #e74c3c; }
.rsv_wrap input[type="text"],
.rsv_wrap input[type="email"],
.rsv_wrap input[type="tel"],
.rsv_wrap input[type="number"],
.rsv_wrap input[type="password"],
.rsv_wrap textarea,
.rsv_wrap select,
.rsv_input, .rsv_textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d9e3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
}
.rsv_wrap input[type="date"],
.rsv_wrap input[type="time"] {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #d1d9e3;
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    color: #222;
    background: #fff;
    box-sizing: border-box;
    min-height: 42px;
}
.rsv_wrap input:focus,
.rsv_wrap textarea:focus,
.rsv_wrap select:focus,
.rsv_input:focus, .rsv_textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26,115,232,.15);
}
.rsv_textarea, .rsv_wrap textarea { resize: vertical; min-height: 80px; }

.rsv_ticket_confirm { padding: 10px 14px; background: #fff2e0; border-radius: 8px; margin: 12px 0; font-size: 13px; }
.rsv_checkbox_item { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.rsv_btn_area { display: flex; gap: 8px; margin-top: 20px; }
.rsv_btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 20px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; cursor: pointer; text-decoration: none; font-weight: 500; line-height: 1.4; transition: background .1s; }
.rsv_btn_primary { background: #1a73e8; color: #fff; }
.rsv_btn_primary:hover { background: #1558b0; color: #fff; }
.rsv_btn_secondary { background: #f0f2f5; color: #333; border-color: #e2e8f0; }
.rsv_btn_secondary:hover { background: #e4e8ee; color: #111; }
.rsv_btn_danger { background: #e74c3c; color: #fff; }
.rsv_btn_danger:hover { background: #c0392b; color: #fff; }
.rsv_btn_ghost {
    background: transparent;
    color: #6b7480;
    border: 1px dashed #c7ced7;
    cursor: help;
}
.rsv_btn_ghost:hover { background: #f6f8fb; border-color: #9aa3ad; color: #444; }
.rsv_btn_icon { display: inline-block; width: 14px; height: 14px; line-height: 14px; text-align: center; margin-right: 5px; font-size: 13px; opacity: .85; }

/* 취소 불가 안내 카드 (booking_view) */
.rsv_cancel_notice_card {
    margin-top: 16px;
    padding: 16px 20px;
    background: linear-gradient(180deg, #f6f8fb 0%, #eef3f9 100%);
    border: 1px solid #d6dee8;
    border-radius: 12px;
}
.rsv_cancel_notice_header {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 14px;
}
.rsv_cancel_notice_icon_lg {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: #2c3e50; color: #fff;
    border-radius: 50%;
    font-size: 14px; font-weight: 700;
}
.rsv_cancel_notice_body {
    color: #5a6773;
    font-size: 13px;
    line-height: 1.6;
    padding-left: 32px;
}

/* 취소 안내 팝업 (my_bookings 에서 취소 문의 버튼 클릭 시) */
.rsv_notice_backdrop {
    position: fixed; inset: 0; background: rgba(0,0,0,.45);
    display: flex; align-items: center; justify-content: center;
    z-index: 10000; animation: rsv_fade 0.15s ease;
}
.rsv_notice_dialog {
    background: #fff;
    max-width: 380px;
    width: calc(100vw - 32px);
    border-radius: 14px;
    padding: 24px 22px 18px;
    box-shadow: 0 24px 48px rgba(0,0,0,.18);
    text-align: center;
    animation: rsv_pop 0.18s ease;
}
.rsv_notice_dialog_icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; margin: 0 auto 10px;
    background: #eef3f9; color: #2c3e50;
    border-radius: 50%;
    font-size: 22px; font-weight: 700;
}
.rsv_notice_dialog_title { font-size: 15px; font-weight: 700; color: #222; margin-bottom: 10px; }
.rsv_notice_dialog_body { font-size: 13px; color: #555; line-height: 1.6; white-space: pre-wrap; margin-bottom: 18px; }
.rsv_notice_dialog_close {
    width: 100%;
    padding: 10px;
    background: #2c3e50; color: #fff;
    border: 0; border-radius: 8px;
    font-size: 14px; font-weight: 500;
    cursor: pointer;
}
.rsv_notice_dialog_close:hover { background: #1a2b3e; }
@keyframes rsv_fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rsv_pop  { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }

/* My bookings */
.rsv_booking_list { display: flex; flex-direction: column; gap: 10px; }
.rsv_booking_card { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.rsv_booking_card.rsv_booking_cancelled { opacity: .6; background: #fafafa; }
.rsv_booking_date { min-width: 120px; border-right: 1px solid #edf0f4; padding-right: 16px; }
.rsv_booking_date_main { font-size: 16px; font-weight: 700; color: #1a1a1a; }
.rsv_booking_date_time { font-size: 12px; color: #666; margin-top: 2px; }
.rsv_booking_info { flex: 1; }
.rsv_booking_title { font-size: 15px; font-weight: 600; color: #1a1a1a; margin-bottom: 4px; }
.rsv_booking_meta { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.rsv_booking_sub { color: #888; }
.rsv_ticket_tag { display: inline-block; margin-left: 4px; font-size: 13px; }
.rsv_booking_actions { display: flex; gap: 6px; }

/* Status badges */
.rsv_status { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.rsv_status_lg { padding: 5px 14px; font-size: 13px; }
.rsv_status_confirmed { background: #d1f5df; color: #16794a; }
.rsv_status_pending   { background: #fff3cd; color: #856404; }
.rsv_status_cancelled { background: #f8d7da; color: #721c24; }

/* Booking detail */
.rsv_booking_detail { background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; padding: 20px; }
.rsv_detail_status_line { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 16px; border-bottom: 1px solid #edf0f4; }
.rsv_booking_no { color: #888; font-size: 13px; }
.rsv_detail_table { width: 100%; border-collapse: collapse; }
.rsv_detail_table th, .rsv_detail_table td { padding: 10px 12px; border-bottom: 1px solid #edf0f4; text-align: left; vertical-align: top; font-size: 14px; }
.rsv_detail_table th { width: 110px; background: #f8fafc; color: #555; font-weight: 600; }

.rsv_pagenavi { text-align: center; margin: 24px 0; }

/* Mobile */
@media (max-width: 640px) {
  .rsv_cell { min-height: 62px; padding: 6px 4px; }
  .rsv_day_num { font-size: 12px; }
  .rsv_badge_available, .rsv_badge_full { font-size: 10px; padding: 1px 5px; }
  .rsv_slot_panel { right: 8px; left: 8px; bottom: 8px; width: auto; }
  .rsv_booking_card { flex-wrap: wrap; }
  .rsv_booking_date { border-right: none; border-bottom: 1px solid #edf0f4; padding-right: 0; padding-bottom: 8px; width: 100%; }
}
