/* ============================================
   SierraVillas Booking — REZEO Modern Style
   ============================================ */

/* --- Container --- */
.svb-booking {
    font-family: 'Roboto', Arial, sans-serif;
    color: #333;
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 0 40px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    min-height: 700px;
}
.svb-booking * { box-sizing: border-box; }

.svb-booking h2 {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 32px;
    text-align: center;
    margin: 0 0 20px;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}
.svb-booking .svb-subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 32px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 300;
}

/* --- Step Indicator --- */
.svb-steps {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    margin-bottom: 24px;
    padding-top: 10px;
}
.svb-step-num {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    border: 2px solid #d4d4d4;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 600;
    color: #aaa;
    background: #fff;
    transition: all 0.3s;
}
.svb-step-num.active {
    border-color: #1a1a1a;
    color: #1a1a1a;
}
.svb-step-num.done {
    border-color: #1a1a1a;
    background: #1a1a1a;
    color: #fff;
}
.svb-step-line {
    width: 56px;
    height: 2px;
    background: #d4d4d4;
    transition: background 0.3s;
}
.svb-step-line.done {
    background: #1a1a1a;
}

/* --- Villa Selector --- */
.svb-villa-select {
    display: flex;
    gap: 16px;
    justify-content: center;
    margin-bottom: 36px;
}
.svb-villa-btn {
    padding: 14px 40px;
    border: 2px solid #d4d4d4;
    border-radius: 50px;
    background: #fff;
    cursor: pointer;
    font-family: 'Playfair Display SC', serif;
    font-size: 16px;
    transition: all 0.25s;
    color: #555;
    letter-spacing: 0.3px;
}
.svb-villa-btn:hover {
    border-color: #8B6914;
    color: #8B6914;
}
.svb-villa-btn.active {
    border-color: #8B6914;
    background: #8B6914;
    color: #fff;
}

/* --- Calendar Navigation --- */
.svb-calendar-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 20px;
}
.svb-nav-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: #1a1a1a;
    color: #fff;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.svb-nav-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}
.svb-nav-btn:hover:not(:disabled) {
    background: #333;
}

/* --- Calendar Grid --- */
.svb-calendar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-bottom: 20px;
}
.svb-month {
    min-width: 0;
}
.svb-month-title {
    text-align: center;
    font-size: 13px;
    color: #999;
    margin-bottom: 14px;
    letter-spacing: 0.5px;
}
.svb-month-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}
.svb-day-header {
    text-align: center;
    font-size: 11px;
    color: #aaa;
    padding: 6px 0;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Day Cells --- */
.svb-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    cursor: pointer;
    border-radius: 3px;
    transition: all 0.15s;
    position: relative;
    background: #fff;
    font-weight: 400;
}
.svb-day:hover:not(.svb-day-unavailable):not(.svb-day-past):not(.svb-day-empty) {
    background: #f0f0f0;
}
.svb-day-empty {
    cursor: default;
}
.svb-day-past {
    color: #d0d0d0;
    cursor: default;
}
.svb-day-today {
    border: 2px solid #1a1a1a;
    font-weight: 700;
}
.svb-day-unavailable {
    background: #b8a088;
    color: #fff;
    cursor: not-allowed;
}
.svb-day-boundary {
    background: linear-gradient(135deg, #fff 50%, #b8a088 50%);
    color: #555;
    cursor: not-allowed;
}
.svb-day-selected {
    background: #8B6914;
    color: #fff;
    font-weight: 600;
}
.svb-day-in-range {
    background: #f5edd9;
    color: #333;
}
.svb-day-checkin {
    background: #8B6914;
    color: #fff;
    border-radius: 3px 0 0 3px;
    font-weight: 600;
}
.svb-day-checkout {
    background: #8B6914;
    color: #fff;
    border-radius: 0 3px 3px 0;
    font-weight: 600;
}

/* --- Legend --- */
.svb-legend {
    display: flex;
    gap: 28px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 28px;
    font-size: 13px;
    color: #777;
}
.svb-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}
.svb-legend-box {
    width: 26px;
    height: 26px;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
}
.svb-legend-box.available { background: #fff; }
.svb-legend-box.unavailable { background: #b8a088; border-color: #b8a088; }
.svb-legend-box.boundary { background: linear-gradient(135deg, #fff 50%, #b8a088 50%); }
.svb-legend-box.today { border: 2px solid #1a1a1a; background: #fff; }

/* --- Date Bar (bottom) --- */
.svb-date-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 28px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.svb-date-field {
    flex: 1;
    min-width: 140px;
    padding-bottom: 4px;
    border-bottom: 1px solid #ddd;
}
.svb-date-field label {
    display: block;
    font-size: 10px;
    text-transform: uppercase;
    color: #aaa;
    margin-bottom: 4px;
    letter-spacing: 1px;
    font-weight: 500;
}
.svb-date-field .svb-date-value {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
}
.svb-date-field .svb-date-value.placeholder {
    color: #ccc;
    font-weight: 400;
}
.svb-price-display {
    font-size: 26px;
    font-weight: 700;
    color: #1a1a1a;
    white-space: nowrap;
}
.svb-price-label {
    font-size: 12px;
    color: #999;
    margin-right: 8px;
    font-weight: 400;
}

/* --- Buttons --- */
.svb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    text-decoration: none;
    letter-spacing: 0.3px;
}
.svb-btn-primary {
    background: #1a1a1a;
    color: #fff;
}
.svb-btn-primary:hover {
    background: #333;
}
.svb-btn-primary:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.svb-btn-secondary {
    background: #f5f5f5;
    border: 1px solid #ddd;
    color: #555;
}
.svb-btn-secondary:hover {
    background: #eee;
    border-color: #bbb;
}

/* --- Summary Card --- */
.svb-summary {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 28px;
    margin-bottom: 24px;
}
.svb-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}
.svb-summary-row:last-child {
    border-bottom: none;
}
.svb-summary-row .label { color: #888; font-weight: 400; }
.svb-summary-row .value { font-weight: 600; color: #1a1a1a; }
.svb-summary-total {
    display: flex;
    justify-content: space-between;
    padding: 16px 0 0;
    margin-top: 8px;
    border-top: 2px dashed #d4d4d4;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
}

/* --- Step 2 & 3 Layout --- */
.svb-step-content {
    display: none;
}
.svb-step-content.active {
    display: block;
}
.svb-two-col {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    align-items: start;
    margin-top: 24px;
}
.svb-sidebar {
    position: sticky;
    top: 20px;
}

/* --- Form --- */
.svb-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.svb-form-group {
    display: flex;
    flex-direction: column;
}
.svb-form-group.full {
    grid-column: 1 / -1;
}
.svb-form-group label {
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.8px;
}
.svb-form-group input,
.svb-form-group select {
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #d4d4d4;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: transparent;
    color: #1a1a1a;
}
.svb-form-group textarea {
    padding: 12px 0;
    border: none;
    border-bottom: 1px solid #d4d4d4;
    border-radius: 0;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: transparent;
    resize: vertical;
    min-height: 80px;
    color: #1a1a1a;
}
.svb-form-group input:focus,
.svb-form-group textarea:focus,
.svb-form-group select:focus {
    outline: none;
    border-bottom-color: #1a1a1a;
}
.svb-form-group input::placeholder,
.svb-form-group textarea::placeholder {
    color: #ccc;
}
.svb-form-group .svb-error-msg {
    color: #c0392b;
    font-size: 12px;
    margin-top: 4px;
}

/* --- Checkbox / Agreement --- */
.svb-agreement {
    margin: 28px 0 8px;
    font-size: 13px;
    color: #777;
}
.svb-agreement a {
    color: #1a1a1a;
    text-decoration: underline;
    font-weight: 600;
}

/* --- Action Buttons Row --- */
.svb-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    gap: 16px;
    padding-top: 20px;
}

/* --- Guests Selector --- */
.svb-guests-selector {
    margin: 32px 0;
}
.svb-guests-selector label {
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    color: #888;
    margin-bottom: 8px;
    font-weight: 500;
    letter-spacing: 0.8px;
}
.svb-guests-selector input {
    width: 80px;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #d4d4d4;
    border-radius: 0;
    font-size: 16px;
    text-align: center;
    background: transparent;
    color: #1a1a1a;
}
.svb-guests-selector input:focus {
    outline: none;
    border-bottom-color: #1a1a1a;
}

/* --- Messages --- */
.svb-message {
    padding: 16px 24px;
    border-radius: 8px;
    margin-bottom: 24px;
    font-size: 14px;
}
.svb-message-success {
    background: #f0f9f0;
    color: #1a6b1a;
    border: 1px solid #d0e8d0;
}
.svb-message-error {
    background: #fdf0f0;
    color: #8b1a1a;
    border: 1px solid #f0d0d0;
}

/* --- Success Screen --- */
.svb-success {
    text-align: center;
    padding: 60px 24px;
}
.svb-success h2 {
    color: #1a6b1a;
    margin-bottom: 12px;
}
.svb-success .svb-booking-ref {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 20px 0;
    letter-spacing: 1px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .svb-calendar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .svb-two-col {
        grid-template-columns: 1fr;
    }
    .svb-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    .svb-calendar-grid {
        grid-template-columns: 1fr;
    }
    .svb-villa-select {
        flex-direction: column;
        align-items: stretch;
        padding: 0 20px;
    }
    .svb-villa-btn {
        text-align: center;
    }
    .svb-date-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .svb-form-row {
        grid-template-columns: 1fr;
    }
    .svb-actions {
        flex-direction: column;
    }
    .svb-btn {
        width: 100%;
    }
    .svb-price-display {
        text-align: center;
    }
    .svb-booking h2 {
        font-size: 24px;
    }
    .svb-booking {
        padding: 16px 12px 32px;
    }
}
