:root {
    --primary: #8B7355;
    --primary-dark: #6B5740;
    --primary-light: #A89070;
    --accent: #D4AF37;
    --cream: #FDF8F0;
    --cream-dark: #F5EDE0;
    --text: #333333;
    --text-light: #666666;
    --text-lighter: #999999;
    --white: #ffffff;
    --border: #E5DDD0;
    --border-light: #F0EBE3;
    --success: #2E7D32;
    --success-bg: #E8F5E9;
    --error: #C62828;
    --error-bg: #FFEBEE;
    --warning: #F57F17;
    --warning-bg: #FFF8E1;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body.booking-page {
    font-family: 'Montserrat', sans-serif;
    background: var(--cream);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.booking-header {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1.2rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.booking-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.booking-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
}

.booking-logo img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
}

.booking-logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: var(--primary-dark);
    letter-spacing: 3px;
    margin: 0;
    line-height: 1.2;
}

.booking-logo p {
    font-size: 0.65rem;
    color: var(--text-light);
    letter-spacing: 2px;
    margin: 0;
}

/* Main */
.booking-main {
    flex: 1;
    padding: 2rem 1rem;
}

.container {
    max-width: 800px;
    margin: 0 auto;
}

/* Step Indicator */
.step-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2.5rem;
    gap: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-lighter);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
    transition: var(--transition);
}

.step.active .step-number,
.step.completed .step-number {
    background: var(--primary);
    color: var(--white);
}

.step-label {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-lighter);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.step.active .step-label,
.step.completed .step-label {
    color: var(--primary-dark);
}

.step-line {
    width: 60px;
    height: 2px;
    background: var(--border);
    margin: 0 0.5rem;
    margin-bottom: 1.2rem;
    transition: var(--transition);
}

.step-line.active {
    background: var(--primary);
}

/* Steps */
.booking-step {
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-md);
}

.step-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
}

.step-description {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* Date Picker */
.date-picker-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.date-field label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.date-field input {
    width: 100%;
    padding: 0.9rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.date-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,115,85,0.1);
}

.nights-display {
    text-align: center;
    font-size: 1rem;
    color: var(--primary);
    font-weight: 600;
    margin-bottom: 2rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: var(--radius-md);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-primary:disabled {
    background: var(--border);
    color: var(--text-lighter);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text);
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* Step Buttons */
.step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* Date Summary */
.dates-summary {
    background: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.dates-summary .date-range {
    font-weight: 600;
    color: var(--primary-dark);
}

.dates-summary .nights {
    color: var(--primary);
    font-size: 0.9rem;
}

/* Room List */
.room-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.room-card {
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    gap: 1.2rem;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.room-card:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-sm);
}

.room-card.selected {
    border-color: var(--primary);
    background: rgba(139,115,85,0.03);
}

.room-card input[type="checkbox"] {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
    cursor: pointer;
}

.room-image {
    width: 100px;
    height: 80px;
    border-radius: var(--radius-sm);
    background: var(--cream-dark);
    overflow: hidden;
    flex-shrink: 0;
}

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

.room-info {
    flex: 1;
}

.room-info h4 {
    font-size: 1rem;
    color: var(--primary-dark);
    margin-bottom: 0.3rem;
}

.room-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.room-facilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.5rem;
}

.room-facilities span {
    background: var(--cream);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.7rem;
    color: var(--text-light);
}

.room-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.room-guests {
    font-size: 0.8rem;
    color: var(--text-light);
}

.room-guests i {
    color: var(--primary);
    margin-right: 0.3rem;
}

.room-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.room-price small {
    font-weight: 400;
    font-size: 0.75rem;
    color: var(--text-lighter);
}

/* Rooms Summary */
.rooms-summary {
    background: var(--cream);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.rooms-summary h4 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.rooms-summary .room-tag {
    display: inline-block;
    background: var(--primary);
    color: var(--white);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin: 0.2rem;
}

/* Guest Form */
.guest-form .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
    color: var(--text);
    background: var(--white);
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(139,115,85,0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

/* Form Errors */
.form-errors {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: var(--radius-sm);
    padding: 1rem;
    margin-top: 1rem;
    color: var(--error);
    font-size: 0.9rem;
}

/* Confirmation */
.confirmation-content {
    text-align: center;
    padding: 3rem 2.5rem;
}

.confirmation-icon {
    font-size: 4rem;
    color: var(--success);
    margin-bottom: 1rem;
}

.confirmation-content h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.confirmation-content p {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.confirmation-details {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Confirmation Page (full) */
.confirmation-wrapper {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-wrapper .confirmation-icon {
    font-size: 5rem;
    color: var(--success);
}

.confirmation-wrapper h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    color: var(--primary-dark);
    margin: 1rem 0 0.5rem;
}

.confirmation-subtitle {
    color: var(--text-light);
    margin-bottom: 2rem;
}

.confirmation-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 1.5rem;
}

.confirmation-card h3 {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-lighter);
    margin-bottom: 0.5rem;
}

.booking-ref {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: var(--primary-dark);
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    text-align: left;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.detail-item label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-lighter);
    margin-bottom: 0.2rem;
}

.detail-item span {
    font-weight: 600;
    color: var(--text);
}

.detail-item.full-width {
    grid-column: 1 / -1;
}

.confirmation-note {
    background: var(--cream);
    border-radius: var(--radius-md);
    padding: 1.2rem;
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    text-align: left;
}

.confirmation-note i {
    color: var(--primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.confirmation-note p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin: 0;
}

.confirmation-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.not-found {
    text-align: center;
    padding: 4rem 2rem;
}

.not-found h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-dark);
    margin-bottom: 1rem;
}

/* Footer */
.booking-footer {
    background: var(--white);
    border-top: 1px solid var(--border);
    padding: 1.5rem 0;
    text-align: center;
}

.booking-footer p {
    font-size: 0.8rem;
    color: var(--text-lighter);
    margin: 0.3rem 0;
}

/* Loading */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 640px) {
    .step-content {
        padding: 1.5rem;
    }

    .step-content h2 {
        font-size: 1.4rem;
    }

    .date-picker-row {
        grid-template-columns: 1fr;
    }

    .step-label {
        font-size: 0.6rem;
    }

    .step-line {
        width: 30px;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .room-card {
        flex-direction: column;
    }

    .room-image {
        width: 100%;
        height: 120px;
    }

    .guest-form .form-grid {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .step-buttons {
        flex-direction: column-reverse;
        gap: 1rem;
    }

    .step-buttons .btn {
        width: 100%;
        justify-content: center;
    }

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