/**
 * Reservation Custom - Frontend Styles
 * Version: 2.0.0 - Luxury Theme (Black & Gold)
 * Theme: Intimate Luxury for Loveroom Experience
 * Last updated: 2025-10-22
 */

/* ========================================
   VARIABLES & BASE STYLES
   ======================================== */

.reservation-calendar-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

/* ========================================
   CALENDAR HEADER
   ======================================== */

.reservation-calendar-header {
    text-align: center;
    margin-bottom: 30px;
}

.reservation-calendar-header h3 {
    margin: 0 0 10px;
    font-size: 32px;
    font-weight: 300;
    color: #CFAE70;
    letter-spacing: 1px;
}

.reservation-calendar-header .product-description {
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
    font-size: 15px;
    font-weight: 300;
}

/* ========================================
   DEPOSIT NOTICE (Caution Information)
   ======================================== */

.rc-calendar-deposit-notice {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 30px;
    padding: 18px 22px;
    background: rgba(207, 174, 112, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 174, 112, 0.2);
    border-radius: 8px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.rc-calendar-deposit-notice::before {
    display: none;
}

.deposit-notice-icon {
    font-size: 24px;
    line-height: 1;
    flex-shrink: 0;
    filter: none;
    opacity: 0.6;
}

.deposit-notice-content {
    flex: 1;
}

.deposit-notice-content h4 {
    margin: 0 0 8px;
    color: rgba(207, 174, 112, 0.85);
    font-size: 16px;
    font-weight: 500;
    letter-spacing: 0.3px;
    text-shadow: none;
}

.deposit-notice-content p {
    margin: 6px 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 14px;
    line-height: 1.5;
    font-weight: 400;
}

.deposit-notice-content strong {
    color: rgba(207, 174, 112, 0.9);
    font-weight: 500;
    font-size: 14px;
}

.deposit-notice-detail {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.5) !important;
    font-style: italic;
    margin-top: 8px !important;
    background: rgba(0, 0, 0, 0.1);
    padding: 6px 10px;
    border-radius: 4px;
    border-left: 1px solid rgba(207, 174, 112, 0.25);
}

/* ========================================
   CALENDAR CONTROLS (Month Navigation)
   ======================================== */

.reservation-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 18px 25px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 174, 112, 0.15);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.reservation-calendar-controls button {
    background: transparent;
    border: 1px solid rgba(207, 174, 112, 0.3);
    cursor: pointer;
    font-size: 20px;
    padding: 8px 16px;
    color: #CFAE70;
    transition: all 0.3s ease;
    border-radius: 6px;
}

.reservation-calendar-controls button:hover {
    background: rgba(207, 174, 112, 0.1);
    border-color: #CFAE70;
    color: #CFAE70;
    transform: scale(1.05);
}

.current-month-year {
    font-size: 20px;
    font-weight: 400;
    color: #CFAE70;
    letter-spacing: 1px;
}

/* ========================================
   CALENDAR TABLE
   ======================================== */

.calendar-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(207, 174, 112, 0.15);
    border-radius: 12px;
    overflow: hidden;
}

/* Days of week header */
.calendar-table th {
    background: linear-gradient(135deg, rgba(207, 174, 112, 0.15) 0%, rgba(207, 174, 112, 0.08) 100%);
    color: #CFAE70;
    padding: 14px;
    text-align: center;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-bottom: 1px solid rgba(207, 174, 112, 0.2);
}

/* Calendar cells */
.calendar-table td {
    border: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    vertical-align: middle;
    height: 90px;
    position: relative;
    padding: 0;
    overflow: hidden;
    background: rgba(20, 20, 20, 0.5);
}

.calendar-table td.empty {
    background: rgba(10, 10, 10, 0.3);
}

/* ========================================
   DAY CELLS - STATES
   ======================================== */

.calendar-day {
    cursor: default;
    padding: 10px;
    height: 100%;
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Available days */
.calendar-day.available {
    cursor: pointer;
    background: linear-gradient(135deg, rgba(207, 174, 112, 0.08) 0%, rgba(207, 174, 112, 0.03) 100%);
    transition: all 0.3s ease;
}

.calendar-day.available:hover {
    background: linear-gradient(135deg, rgba(207, 174, 112, 0.2) 0%, rgba(207, 174, 112, 0.1) 100%);
    transform: scale(1.05);
    box-shadow: inset 0 0 20px rgba(207, 174, 112, 0.2);
}

/* Unavailable days */
.calendar-day.unavailable {
    background: linear-gradient(135deg, rgba(139, 35, 35, 0.3) 0%, rgba(100, 20, 20, 0.25) 100%);
    color: rgba(255, 255, 255, 0.4);
    position: relative;
    cursor: not-allowed;
}

.calendar-day.unavailable::before {
    display: none;
}

/* Past days */
.calendar-day.past {
    background: rgba(20, 20, 20, 0.7);
    color: rgba(255, 255, 255, 0.2);
    cursor: not-allowed;
    opacity: 0.5;
}

.calendar-day.past .day-number {
    color: rgba(255, 255, 255, 0.2);
}

.calendar-day.past .day-price {
    color: rgba(255, 255, 255, 0.2);
}

/* Today indicator */
.calendar-day.today {
    background: linear-gradient(135deg, rgba(207, 174, 112, 0.15) 0%, rgba(207, 174, 112, 0.08) 100%);
    box-shadow: inset 0 0 0 2px rgba(207, 174, 112, 0.3);
}

/* Selected day */
.calendar-day.selected {
    background: linear-gradient(135deg, #CFAE70 0%, #B89A5F 100%) !important;
    color: #1a1a1a;
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(207, 174, 112, 0.4);
}

.calendar-day.selected .day-price {
    color: #1a1a1a;
    font-weight: 600;
}

.calendar-day.selected .day-number {
    color: #1a1a1a;
    font-weight: 700;
}

/* ========================================
   DAY CONTENT
   ======================================== */

.day-number {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.9);
    position: relative;
    z-index: 2;
}

.day-price {
    font-size: 13px;
    color: #CFAE70;
    font-weight: 500;
    position: relative;
    z-index: 2;
    letter-spacing: 0.3px;
}

.calendar-day.selected .day-price {
    color: rgba(0, 0, 0, 0.8);
}

/* ========================================
   BOOKING FORM
   ======================================== */

.reservation-booking-form {
    margin-top: 30px;
    padding: 30px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid #CFAE70;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.5);
}

.reservation-booking-form h4 {
    margin: 0 0 25px;
    color: #CFAE70;
    font-size: 24px;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.booking-details {
    margin-bottom: 25px;
}

.booking-details p {
    margin: 12px 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.booking-details strong {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.selected-date-display,
.selected-date-price,
.check-in-display,
.check-out-display {
    color: #CFAE70;
    font-weight: 600;
}

.reservation-booking-form button {
    width: 100%;
    padding: 16px;
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(135deg, #CFAE70 0%, #B89A5F 100%);
    color: #1a1a1a;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-size: 16px;
}

.reservation-booking-form button:hover {
    background: linear-gradient(135deg, #B89A5F 0%, #A68850 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(207, 174, 112, 0.4);
}

/* ========================================
   CALENDAR LEGEND
   ======================================== */

.reservation-calendar-legend {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-top: 20px;
    padding: 18px;
    background: rgba(15, 15, 15, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(207, 174, 112, 0.15);
    border-radius: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legend-color {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(207, 174, 112, 0.3);
}

.legend-color.available {
    background: linear-gradient(135deg, rgba(207, 174, 112, 0.2) 0%, rgba(207, 174, 112, 0.1) 100%);
}

.legend-color.unavailable {
    background: linear-gradient(135deg, rgba(139, 35, 35, 0.3) 0%, rgba(100, 20, 20, 0.25) 100%);
    position: relative;
}

.legend-color.unavailable::before {
    display: none;
}

.legend-color.selected {
    background: linear-gradient(135deg, #CFAE70 0%, #B89A5F 100%);
}

.legend-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

/* ========================================
   LOADING & ERROR STATES
   ======================================== */

.loading,
.error {
    text-align: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.6);
}

.error {
    color: #ff6b6b;
}

/* ========================================
   BOOKING EXTRAS SECTION
   ======================================== */

.booking-extras-section {
    margin: 25px 0;
    padding: 25px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    border: 1px solid rgba(207, 174, 112, 0.15);
}

.booking-extras-section h5 {
    margin: 0 0 12px;
    color: #CFAE70;
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.extras-description {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
}

.booking-extras-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.booking-extra-item {
    display: flex;
    align-items: flex-start;
    padding: 16px;
    background: rgba(30, 30, 30, 0.6);
    border: 1px solid rgba(207, 174, 112, 0.15);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 0;
}

.booking-extra-item:hover {
    background: rgba(207, 174, 112, 0.1);
    border-color: #CFAE70;
    transform: translateX(5px);
}

.booking-extra-item input[type="checkbox"] {
    margin: 4px 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
    accent-color: #CFAE70;
}

.extra-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    width: 100%;
}

.extra-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.extra-details {
    flex: 1;
}

.extra-name {
    display: block;
    margin: 0 0 4px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 16px;
    font-weight: 600;
}

.extra-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    line-height: 1.5;
}

.extra-price {
    font-size: 16px;
    font-weight: 600;
    color: #CFAE70;
    white-space: nowrap;
    flex-shrink: 0;
}

.booking-extras-total {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(207, 174, 112, 0.2);
}

.booking-extras-total p {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.extras-total-price {
    font-size: 18px;
    font-weight: 600;
    color: #CFAE70;
}

.no-extras,
.loading-extras,
.error-extras {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.error-extras {
    color: #ff6b6b;
}

/* ========================================
   BOOKING TOTAL
   ======================================== */

.booking-total {
    margin-top: 20px;
    padding: 22px;
    background: rgba(20, 20, 20, 0.8);
    border-radius: 12px;
    border: 1px solid #CFAE70;
}

.booking-total .total-price {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
}

.booking-total-price {
    font-size: 26px;
    font-weight: 600;
    color: #CFAE70;
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .reservation-calendar-wrapper {
        padding: 10px;
        max-width: 100%;
    }

    .reservation-calendar-header h3 {
        font-size: 24px;
    }

    .rc-calendar-deposit-notice {
        flex-direction: column;
        gap: 12px;
        padding: 15px 18px;
        margin-bottom: 20px;
    }

    .deposit-notice-icon {
        font-size: 22px;
        align-self: center;
    }

    .deposit-notice-content h4 {
        font-size: 15px;
        text-align: center;
    }

    .deposit-notice-content p {
        font-size: 13px;
        text-align: center;
    }

    .deposit-notice-detail {
        font-size: 11px !important;
        text-align: center;
    }

    .reservation-calendar-controls {
        padding: 12px 15px;
    }

    .current-month-year {
        font-size: 16px;
    }

    .calendar-table {
        font-size: 14px;
    }

    .calendar-table th {
        padding: 10px 4px;
        font-size: 11px;
        letter-spacing: 0.5px;
    }

    .calendar-table td {
        height: 60px;
        padding: 0;
    }

    .calendar-day {
        min-height: 60px;
        padding: 6px 2px;
    }

    .day-number {
        font-size: 16px;
        margin-bottom: 3px;
    }

    /* Hide prices on mobile, show availability indicator */
    .day-price {
        display: none;
    }

    .calendar-day.available::after {
        content: '✓';
        font-size: 11px;
        color: #CFAE70;
        font-weight: bold;
    }

    .calendar-day.unavailable::before {
        font-size: 28px;
    }

    .reservation-calendar-legend {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }

    .legend-item {
        font-size: 13px;
    }

    .booking-extras-section {
        padding: 18px;
    }

    .booking-extra-item {
        padding: 14px;
    }

    .extra-content {
        flex-wrap: wrap;
    }

    .extra-icon {
        font-size: 28px;
    }

    .extra-price {
        margin-top: 8px;
        width: 100%;
        text-align: right;
    }

    .booking-total .total-price {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .reservation-booking-form {
        padding: 20px;
    }

    .reservation-booking-form h4 {
        font-size: 20px;
    }
}

/* ========================================
   MOBILE OPTIMIZATION (480px)
   ======================================== */

@media (max-width: 480px) {
    .reservation-calendar-wrapper {
        padding: 8px;
    }

    .reservation-calendar-header h3 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .reservation-calendar-header .product-description {
        font-size: 13px;
    }

    .reservation-calendar-controls {
        padding: 10px;
        margin-bottom: 12px;
    }

    .reservation-calendar-controls button {
        font-size: 28px;
        padding: 8px 14px;
        font-weight: 300;
    }

    .current-month-year {
        font-size: 14px;
    }

    .calendar-table {
        font-size: 12px;
    }

    .calendar-table th {
        padding: 8px 2px;
        font-size: 10px;
    }

    .calendar-table td {
        height: 50px;
        border: 1px solid rgba(255, 255, 255, 0.05);
    }

    .calendar-day {
        min-height: 50px;
        padding: 4px 1px;
    }

    .day-number {
        font-size: 14px;
        margin-bottom: 2px;
    }

    .calendar-day.available::after {
        font-size: 10px;
    }

    .calendar-day.unavailable::before {
        font-size: 24px;
    }

    .reservation-calendar-legend {
        padding: 10px;
        gap: 10px;
    }

    .legend-item {
        font-size: 12px;
    }

    .legend-color {
        width: 20px;
        height: 20px;
    }

    .legend-color.unavailable::before {
        font-size: 12px;
    }

    .booking-details p {
        font-size: 14px;
        margin: 10px 0;
    }

    .booking-extras-section h5 {
        font-size: 18px;
    }

    .extras-description {
        font-size: 13px;
    }

    .booking-extra-item {
        padding: 12px;
    }

    .extra-icon {
        font-size: 26px;
    }

    .extra-name {
        font-size: 14px;
    }

    .extra-description {
        font-size: 12px;
    }

    .extra-price {
        font-size: 14px;
    }

    .booking-total {
        padding: 18px;
    }

    .booking-total .total-price {
        font-size: 16px;
    }

    .booking-total-price {
        font-size: 22px;
    }

    .reservation-booking-form button {
        padding: 14px;
        font-size: 15px;
    }
}
