﻿/* Booking Step Wrapper */
.booking-step {
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 0 20px rgba(0,0,0,0.08);
    font-family: 'Segoe UI', sans-serif;
}

/* Box container */
.booking-box {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Titoli */
.step-title {
    font-size: 28px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.step-subtitle {
    font-size: 20px;
    font-weight: 500;
    color: #555;
    margin-top: 10px;
}

/* Campi */
.step-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-field {
    display: flex;
    flex-direction: column;
}

    .step-field label {
        font-weight: 500;
        margin-bottom: 6px;
        color: #444;
    }

    .step-field input,
    .step-field select {
        padding: 10px 12px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: 16px;
        transition: border-color 0.2s;
    }

        .step-field input:focus,
        .step-field select:focus {
            border-color: #0078D4;
            outline: none;
        }

/* Due campi affiancati */
.step-row {
    display: flex;
    gap: 20px;
}

    .step-row .step-field {
        flex: 1;
    }

/* Pulsante */
.step-btn {
    padding: 12px 20px;
    background-color: #0078D4;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s;
}

    .step-btn:hover {
        background-color: #005fa3;
    }

/* Riepilogo */
.summary-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

    .summary-list li {
        margin-bottom: 8px;
        font-size: 16px;
    }

/* Info pagamento */
.payment-info {
    padding: 15px;
    border-radius: 8px;
    background-color: #f9f9f9;
    border-left: 4px solid #ccc;
}

    .payment-info.success {
        border-color: #4CAF50;
    }

    .payment-info.warning {
        border-color: #FF9800;
    }

    .payment-info.notice {
        border-color: #2196F3;
    }

/* Responsive */
@media (max-width: 600px) {
    .step-row {
        flex-direction: column;
    }
}

/* Spazio sotto l'header */
header, .site-header {
    padding: 15px 0 !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Distanza tra header e contenuto */
.booking-step {
    margin-top: 50px !important;
}

/* HEADER SCURO PER LE PAGINE BOOKING */
.header-premium.header-dark {
    position: relative !important;
    background: #4b2e1a !important; /* marrone premium */
    border-bottom: 1px solid rgba(0,0,0,0.15) !important;
}

    /* Logo più piccolo nelle pagine interne */
    .header-premium.header-dark .header-logo img {
        height: 120px !important;
    }

    /* Link bianchi */
    .header-premium.header-dark a {
        color: white !important;
    }

    /* Hamburger bianco */
    .header-premium.header-dark .hamburger span {
        background: white !important;
    }

/* =============================================
   STEP 2 — Selezione camera
   ============================================= */

.room-option {
    border: 2px solid #ddd;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.room-option:hover {
    border-color: #4b2e1a;
    box-shadow: 0 3px 12px rgba(75, 46, 26, 0.15);
}

.room-option.selected {
    border-color: #4b2e1a;
    background-color: #fdf7f2;
    box-shadow: 0 4px 16px rgba(75, 46, 26, 0.18);
}

.room-option-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    flex-wrap: wrap;
}

.room-option-info {
    flex: 1;
    min-width: 0;
}

.room-option-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.room-option-check {
    width: 22px;
    height: 22px;
    border: 2px solid #bbb;
    border-radius: 50%;
    flex-shrink: 0;
    transition: border-color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.room-option-check.checked {
    border-color: #4b2e1a;
    background-color: #4b2e1a;
}

.room-option-name {
    font-size: 1.15em;
    font-weight: 700;
    color: #333;
}

.room-option-detail {
    margin: 4px 0 0 34px;
    color: #555;
    font-size: 0.95em;
}

.room-option-mezzanine-badge {
    margin: 8px 0 0 34px;
    background-color: #fff3cd;
    padding: 6px 10px;
    border-radius: 5px;
    border-left: 3px solid #ffc107;
    font-size: 0.88em;
    display: inline-block;
}

.room-option-thumb {
    width: 110px;
    height: 75px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.room-option-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =============================================
   PRICING GRID PER OCCUPAZIONE
   ============================================= */
.room-price-grid {
    margin: 8px 0 4px 34px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.room-price-grid-label {
    font-size: 0.78em;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 5px;
}

.room-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 8px;
    border-radius: 5px;
    font-size: 0.87em;
    color: #777;
    border-left: 3px solid transparent;
    transition: background 0.15s;
}

.room-price-row.active {
    background-color: #e8f5e9;
    color: #1b5e20;
    font-weight: 700;
    border-left-color: #43a047;
}

.room-price-label {
    flex: 1;
}

.room-price-value {
    font-weight: 600;
    white-space: nowrap;
}

/* Pannello anteprima camera */
.room-preview-panel {
    border: 2px solid #4b2e1a;
    border-radius: 12px;
    overflow: hidden;
    margin-top: 25px;
    animation: previewSlideIn 0.3s ease;
}

@keyframes previewSlideIn {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

.room-preview-image {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.room-preview-body {
    padding: 20px 22px 16px;
}

.room-preview-name {
    font-size: 1.4em;
    font-weight: 700;
    color: #4b2e1a;
    margin: 0 0 10px;
}

.room-preview-desc {
    color: #444;
    line-height: 1.65;
    margin-bottom: 14px;
    font-size: 0.95em;
}

.room-preview-specs {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    font-size: 0.95em;
    color: #333;
    margin-bottom: 10px;
}

.room-preview-mezzanine {
    background-color: #fff3cd;
    padding: 8px 12px;
    border-radius: 6px;
    border-left: 3px solid #ffc107;
    font-size: 0.9em;
    margin-top: 10px;
}

.room-preview-actions {
    padding: 15px 22px;
    background: #f9f5f1;
    border-top: 1px solid #e8ddd5;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.step-btn-outline {
    background: transparent;
    border: 2px solid #4b2e1a;
    color: #4b2e1a;
    padding: 10px 18px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s;
}

.step-btn-outline:hover {
    background-color: #4b2e1a;
    color: #fff;
}

@media (max-width: 520px) {
    .room-option-thumb {
        width: 80px;
        height: 55px;
    }

    .room-preview-image {
        height: 180px;
    }

    .room-preview-actions {
        flex-direction: column;
    }

    .step-btn-outline,
    .room-preview-actions .step-btn {
        width: 100%;
        text-align: center;
    }
}
