/* ============ Online Booking Drawer ============ */

:root {
    --primary-dark-green: #23352B;
    --olive-green: #314438;
    --luxury-gold: #C8A348;
    --cream: #F8F5EF;
    --white: #FFFFFF;
    --light-border: #E8E0D2;
    --success-green: #4A7C59;
}

/* Booking Drawer Overlay */
.booking-drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Booking Drawer */
.booking-drawer {
    width: 600px;
    max-height: 100vh;
    background: var(--white);
    overflow-y: auto;
    animation: slideIn 0.4s ease;
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Drawer Header */
.booking-drawer-header {
    position: relative;
    padding: 32px 32px 24px;
    background: linear-gradient(135deg, var(--primary-dark-green) 0%, var(--olive-green) 100%);
    color: var(--white);
    position: sticky;
    top: 0;
    z-index: 10;
}

.booking-drawer-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('../public/asset/reception.png');
    background-size: cover;
    background-position: center;
    opacity: 0.15;
    z-index: 0;
}

.booking-drawer-header > * {
    position: relative;
    z-index: 1;
}

.booking-drawer-title {
    font-size: 24px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.booking-drawer-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
}

.drawer-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    font-size: 28px;
    color: var(--white);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Progress Indicator */
.progress-indicator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 32px;
    background: var(--cream);
    border-bottom: 1px solid var(--light-border);
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    position: relative;
}

.progress-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--light-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 600;
    color: var(--olive-green);
    transition: all 0.3s ease;
    z-index: 2;
}

.progress-step.active .progress-step-number {
    background: var(--luxury-gold);
    border-color: var(--luxury-gold);
    color: var(--white);
    box-shadow: 0 0 0 4px rgba(200, 163, 72, 0.2);
}

.progress-step.completed .progress-step-number {
    background: var(--success-green);
    border-color: var(--success-green);
    color: var(--white);
}

.progress-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--olive-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    text-align: center;
}

.progress-step.active .progress-step-label {
    color: var(--luxury-gold);
}

.progress-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 20px;
    left: 50%;
    width: calc(100% - 40px);
    height: 2px;
    background: var(--light-border);
    z-index: 1;
}

.progress-step.completed:not(:last-child)::after {
    background: var(--success-green);
}

.progress-step.active:not(:last-child)::after {
    background: linear-gradient(to right, var(--success-green) 50%, var(--light-border) 50%);
}

/* Drawer Content */
.booking-drawer-content {
    padding: 24px;
}

/* Step Content */
.step-content {
    display: none;
}

.step-content.active {
    display: block;
}

/* Section Headers */
.step-section-header {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark-green);
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Form Styles */
.booking-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.booking-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.booking-form-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--olive-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-form-input {
    padding: 12px 16px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--primary-dark-green);
    background: var(--cream);
    transition: all 0.2s ease;
}

.booking-form-input:focus {
    outline: none;
    border-color: var(--luxury-gold);
    background: var(--white);
}

.booking-form-input::placeholder {
    color: var(--olive-green);
    opacity: 0.6;
}

.booking-form-select {
    padding: 12px 16px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--primary-dark-green);
    background: var(--cream);
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-form-select:focus {
    outline: none;
    border-color: var(--luxury-gold);
    background: var(--white);
}

.booking-form-textarea {
    padding: 12px 16px;
    border: 1px solid var(--light-border);
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    color: var(--primary-dark-green);
    background: var(--cream);
    resize: vertical;
    min-height: 100px;
    transition: all 0.2s ease;
}

.booking-form-textarea:focus {
    outline: none;
    border-color: var(--luxury-gold);
    background: var(--white);
}

.full-width {
    grid-column: span 2;
}

/* Room Cards */
.room-cards-grid {
    display: grid;
    gap: 16px;
}

.room-card {
    background: var(--white);
    border: 1px solid var(--light-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    cursor: pointer;
}

.room-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.room-card.selected {
    border-color: var(--luxury-gold);
    box-shadow: 0 4px 12px rgba(200, 163, 72, 0.3);
}

.room-card-image {
    width: 100%;
    height: 180px;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.room-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.room-card-content {
    padding: 16px;
}

.room-card-name {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary-dark-green);
    margin-bottom: 8px;
}

.room-card-description {
    font-size: 13px;
    color: var(--olive-green);
    line-height: 1.5;
    margin-bottom: 12px;
}

.room-card-details {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.room-card-detail {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--olive-green);
}

.room-card-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.room-card-amenity {
    background: var(--cream);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    color: var(--olive-green);
    font-weight: 500;
}

.room-card-rate {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--light-border);
}

.room-card-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--luxury-gold);
}

.room-card-price span {
    font-size: 12px;
    font-weight: 400;
    color: var(--olive-green);
}

.select-room-btn {
    background: var(--luxury-gold);
    border: none;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.select-room-btn:hover {
    background: #D4B358;
}

.room-card.selected .select-room-btn {
    background: var(--success-green);
}

/* Booking Summary */
.booking-summary {
    background: var(--cream);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--light-border);
}

.summary-row:last-child {
    border-bottom: none;
}

.summary-label {
    font-size: 14px;
    color: var(--olive-green);
    font-weight: 500;
}

.summary-value {
    font-size: 14px;
    color: var(--primary-dark-green);
    font-weight: 600;
}

.summary-total {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 2px solid var(--luxury-gold);
}

.summary-total .summary-label {
    font-size: 16px;
    font-weight: 600;
}

.summary-total .summary-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--luxury-gold);
}

/* Action Buttons */
.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.booking-btn {
    flex: 1;
    padding: 14px 24px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.booking-btn-primary {
    background: var(--luxury-gold);
    border: none;
    color: var(--white);
}

.booking-btn-primary:hover {
    background: #D4B358;
}

.booking-btn-secondary {
    background: var(--white);
    border: 1px solid var(--light-border);
    color: var(--primary-dark-green);
}

.booking-btn-secondary:hover {
    border-color: var(--luxury-gold);
    background: var(--luxury-gold);
    color: var(--white);
}

/* Success Screen */
.success-screen {
    text-align: center;
    padding: 40px 24px;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
    background: var(--success-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 40px;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-dark-green);
    margin-bottom: 16px;
}

.success-message {
    font-size: 14px;
    color: var(--olive-green);
    line-height: 1.6;
    margin-bottom: 32px;
}

.success-reference {
    background: var(--cream);
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 24px;
}

.reference-number {
    font-size: 18px;
    font-weight: 700;
    color: var(--luxury-gold);
    margin-bottom: 8px;
}

.reference-label {
    font-size: 12px;
    color: var(--olive-green);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.success-actions {
    display: flex;
    gap: 12px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .booking-drawer {
        width: 100%;
        max-width: 100%;
    }

    .booking-drawer-header {
        padding: 16px 20px;
    }

    .booking-drawer-title {
        font-size: 18px;
    }

    .booking-drawer-subtitle {
        font-size: 11px;
    }

    .drawer-close-btn {
        top: 16px;
        right: 16px;
        font-size: 24px;
    }

    .progress-indicator {
        padding: 24px 20px;
        background: var(--white);
        border-bottom: 2px solid var(--light-border);
    }

    .progress-step {
        gap: 8px;
    }

    .progress-step-number {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .progress-step-label {
        font-size: 12px;
        display: block;
    }

    .progress-step:not(:last-child)::after {
        top: 20px;
        width: calc(100% - 40px);
    }

    .booking-drawer-content {
        padding: 20px;
    }

    .step-section-header {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .booking-form-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .booking-form-group label {
        font-size: 11px;
        margin-bottom: 6px;
    }

    .booking-form-input,
    .booking-form-select,
    .booking-form-textarea {
        padding: 12px 14px;
        font-size: 14px;
    }

    .full-width {
        grid-column: span 1;
    }

    .room-cards-grid {
        grid-template-columns: 1fr;
    }

    .room-card-image {
        height: 140px;
    }

    .room-card-name {
        font-size: 16px;
    }

    .room-card-description {
        font-size: 12px;
    }

    .room-card-amenities {
        gap: 6px;
    }

    .room-card-amenity {
        font-size: 10px;
        padding: 3px 8px;
    }

    .room-card-price {
        font-size: 18px;
    }

    .booking-actions {
        flex-direction: column;
    }

    .booking-btn {
        width: 100%;
    }

    .success-screen {
        padding: 24px 16px;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 32px;
    }

    .success-title {
        font-size: 22px;
    }

    .success-message {
        font-size: 13px;
    }

    .success-actions {
        flex-direction: column;
    }

    .success-actions .booking-btn {
        width: 100%;
    }
}
