/**
 * Booking Page - Frontend Styles
 * Complete styles for /prenota/{slug} booking page
 * All inline styles extracted from templates
 *
 * @package Xeora
 * @subpackage Assets/CSS/Bookings
 * @version 3.7.0
 * @updated Admin UI improvements: filters, badges, hover effects
 */

/* ================================================
   ADMIN BOOKINGS UI IMPROVEMENTS (v3.7.0)
   ================================================ */

/* Filters Panel */
.xeora-filters-panel {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s ease;
}

.xeora-filters-panel:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.xeora-filters-panel .xeora-card-body {
    padding: 24px;
}

#xeora-bookings-filters .row {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

#xeora-bookings-filters .col-md-3,
#xeora-bookings-filters .col-md-2 {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
}

#xeora-bookings-filters label {
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
    display: block;
}

#xeora-bookings-filters .form-control,
#xeora-bookings-filters .form-select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

#xeora-bookings-filters .form-control:focus,
#xeora-bookings-filters .form-select:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

#xeora-bookings-filters .btn-primary {
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

#xeora-bookings-filters .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.3);
}

/* Badge Styles */
.xeora-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.xeora-badge i {
    font-size: 13px;
}

/* Status Badges */
.xeora-badge-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.xeora-badge-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.xeora-badge-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.xeora-badge-info {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    color: white;
}

.xeora-badge-secondary {
    background: linear-gradient(135deg, #6b7280, #4b5563);
    color: white;
}

/* Booking Type Badges */
.xeora-badge-type-daily {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
}

.xeora-badge-type-hourly {
    background: linear-gradient(135deg, #f093fb, #f5576c);
    color: white;
}

/* Calendar Improvements */
.xeora-calendar-wrapper {
    position: relative;
    min-height: 500px;
}

/* Booking Card Hover Effects */
.booking-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid transparent;
    background: white;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
}

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

.booking-card.status-confirmed {
    border-left-color: #10b981;
}

.booking-card.status-pending {
    border-left-color: #f59e0b;
}

.booking-card.status-cancelled {
    border-left-color: #ef4444;
}

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

.xeora-loading-overlay .spinner-border {
    width: 50px;
    height: 50px;
    border-width: 4px;
}

.xeora-loading-overlay p {
    margin-top: 16px;
    font-size: 16px;
    font-weight: 600;
    color: #667eea;
}

/* Toast Notifications */
.toast-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: white;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    z-index: 10000;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.toast-notification.success {
    border-left: 4px solid #10b981;
}

.toast-notification.error {
    border-left: 4px solid #ef4444;
}

.toast-notification i {
    font-size: 20px;
}

.toast-notification.success i {
    color: #10b981;
}

.toast-notification.error i {
    color: #ef4444;
}

/* Responsive Filters */
@media (max-width: 768px) {
    #xeora-bookings-filters .row {
        flex-direction: column;
    }
    
    #xeora-bookings-filters .col-md-3,
    #xeora-bookings-filters .col-md-2 {
        width: 100%;
        min-width: auto;
    }
}

/* ================================================
   ORIGINAL STYLES (PRESERVED)
   ================================================ */

/* ================================================
   RESET & BASE
   ================================================ */

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

body.xeora-booking-page {
    font-family: var(--booking-font, 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif);
    color: var(--booking-text, #333);
    background: #f8f9fa;
    line-height: 1.6;
}

/* ================================================
   HERO SECTION
   ================================================ */

.booking-hero {
    background: linear-gradient(135deg, var(--booking-primary, #667eea), var(--booking-secondary, #764ba2));
    padding: 80px 20px 60px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.booking-hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.booking-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
}

.booking-hero-title {
    font-size: 48px;
    font-weight: 800;
    color: white;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.booking-hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 30px 0;
}

/* legacy fallback — sovrascritta dall'inline style nel template */
.booking-hero-business {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 20px 30px;
    border-radius: 16px;
    text-align: left;
}

.business-icon { font-size: 32px; }

.business-name {
    font-size: 20px;
    font-weight: 700;
    color: white;
    margin-bottom: 5px;
}

.business-address {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ================================================
   PROGRESS STEPS
   ================================================ */

.booking-progress {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 70px;
    z-index: 100;
    transition: top 0.3s ease;
}

@media (max-width: 768px) {
    .booking-progress { top: 60px; }
}

.booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.progress-line {
    flex: 1;
    height: 3px;
    background: #e0e0e0;
    margin: 0 10px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 2;
}

.step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 3px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #999;
    transition: all 0.3s ease;
}

.progress-step.active .step-number {
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    border-color: var(--booking-primary);
    color: white;
    transform: scale(1.1);
}

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

.step-label {
    font-size: 13px;
    font-weight: 600;
    color: #999;
    text-align: center;
}

.progress-step.active .step-label { color: var(--booking-primary); }

/* ================================================
   BOOKING SECTIONS
   ================================================ */

.booking-section {
    padding: 60px 0;
    display: none;
}

.booking-section.active { display: block; }

.booking-section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 10px 0;
    color: var(--booking-text);
}

.section-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* ================================================
   SERVICES SECTION
   ================================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.service-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 4px; height: 100%;
    background: var(--service-color, #667eea);
    transform: scaleY(0);
    transition: transform 0.3s;
}

.service-card:hover::before { transform: scaleY(1); }

.service-card:hover {
    border-color: var(--service-color, #667eea);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.service-card.selected {
    border-color: var(--service-color, #667eea);
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
}

.service-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--service-color, #667eea), var(--service-color, #764ba2));
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.service-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.service-icon {
    width: 50px; height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.service-card h3 { margin: 0; font-size: 20px; font-weight: 700; color: #333; }

.service-description { font-size: 14px; color: #666; line-height: 1.6; margin: 0 0 15px 0; position: relative; }
.service-description .desc-dots { color: #666; }

/* Leggi tutto button */
.desc-read-more-btn {
    display: inline;
    background: none;
    border: none;
    color: #667eea;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-size: 14px;
    text-decoration: underline;
    margin-left: 4px;
}
.desc-read-more-btn:hover { color: #5a6fd6; }

/* Modal descrizione */
.service-desc-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
.service-desc-modal.active { display: flex; }
.service-desc-modal .desc-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
}
.service-desc-modal .desc-modal-content {
    position: relative;
    background: #fff;
    border-radius: 12px;
    padding: 30px 40px 25px;
    max-width: 800px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    animation: descModalIn 0.2s ease;
}
.service-desc-modal h3 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 700;
    color: #333;
}
.service-desc-modal .desc-modal-body {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}
.service-desc-modal .desc-modal-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #999;
    line-height: 1;
}
.service-desc-modal .desc-modal-close:hover { color: #333; }

@keyframes descModalIn {
    from { opacity: 0; transform: scale(0.95) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.service-meta { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; }

.service-duration,
.service-price {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 8px;
    background: #f8f9fa;
}

.service-price {
    background: linear-gradient(135deg, var(--service-color, #667eea), var(--service-color, #764ba2));
    color: white;
}

.service-select-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--service-color, #667eea) 0%, var(--service-color, #764ba2) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.service-select-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.3);
}

.service-card:focus-visible,
.service-select-btn:focus-visible {
    outline: 3px solid rgba(102,126,234,0.35);
    outline-offset: 2px;
}

/* ================================================
   STAFF SECTION
   ================================================ */

.staff-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.staff-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
}

.staff-card:hover {
    border-color: var(--booking-primary);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.staff-card.selected {
    border-color: var(--booking-primary);
    background: linear-gradient(135deg, rgba(102,126,234,0.1), rgba(118,75,162,0.1));
}

.staff-card.selected::after {
    content: '\f058';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 14px; right: 14px;
    width: 28px; height: 28px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    box-shadow: 0 8px 20px rgba(0,0,0,0.18);
}

.staff-avatar {
    width: 80px; height: 80px;
    border-radius: 50%;
    margin: 0 auto 15px;
    background: linear-gradient(135deg, var(--booking-primary) 0%, var(--booking-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.staff-name { font-size: 18px; font-weight: 700; margin: 0 0 5px 0; color: #333; }
.staff-bio  { font-size: 13px; color: #666; margin: 0; line-height: 1.5; }

.staff-card:focus-visible {
    outline: 3px solid rgba(102,126,234,0.35);
    outline-offset: 2px;
}

/* ================================================
   CALENDAR SECTION
   ================================================ */

.calendar-mode { margin-top: 30px; }
.calendar-mode.hidden { display: none; }

.calendar-wrapper,
.daily-calendar-wrapper { max-width: 600px; margin: 0 auto; }

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.calendar-header h3 { margin: 0; font-size: 20px; font-weight: 700; }

.calendar-nav-btn {
    width: 40px; height: 40px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav-btn:hover {
    border-color: var(--booking-primary);
    color: var(--booking-primary);
    background: rgba(102,126,234,0.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    font-size: 12px;
    color: #666;
    padding: 10px 0;
}

.calendar-day {
    aspect-ratio: 1;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.calendar-day:hover:not(.disabled):not(.closed) {
    border-color: var(--booking-primary);
    background: rgba(102,126,234,0.05);
}

.calendar-day.selected {
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    color: white;
    border-color: var(--booking-primary);
}

.calendar-day.disabled { opacity: 0.3; cursor: not-allowed; }
.calendar-day.closed { background: #ffebee; color: #d32f2f; cursor: not-allowed; }

.calendar-day.in-range {
    background: rgba(102,126,234,0.1);
    border-color: var(--booking-primary);
}

.timeslots-wrapper {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid #f0f0f0;
}

.timeslots-wrapper.hidden { display: none; }
.timeslots-wrapper h4 { margin: 0 0 20px 0; font-size: 18px; font-weight: 700; }

.timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.timeslot {
    padding: 12px;
    border: 2px solid #f0f0f0;
    border-radius: 10px;
    text-align: center;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    background: white;
}

.timeslot:hover:not(.disabled) {
    border-color: var(--booking-primary);
    background: rgba(102,126,234,0.05);
}

.timeslot.selected {
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    color: white;
    border-color: var(--booking-primary);
}

.timeslot.disabled { opacity: 0.3; cursor: not-allowed; }

.daily-info { display: flex; gap: 15px; margin-bottom: 25px; flex-wrap: wrap; }

.info-card {
    flex: 1;
    background: #e8f4fd;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    min-width: 200px;
}

.info-card i { font-size: 20px; color: var(--booking-primary); }
.info-card.hidden { display: none; }

.daily-times-info {
    display: flex;
    gap: 15px;
    margin: 25px 0 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(102,126,234,0.05), rgba(118,75,162,0.05));
    border-radius: 12px;
    border: 2px solid rgba(102,126,234,0.2);
}

.daily-times-info.hidden { display: none; }

.time-info-card {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    min-width: 250px;
}

.time-info-icon {
    width: 50px; height: 50px;
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    flex-shrink: 0;
}

.time-info-content { flex: 1; }
.time-info-label { font-size: 12px; color: #666; margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.5px; font-weight: 600; }
.time-info-value { font-size: 20px; font-weight: 700; color: var(--booking-primary); }

.daily-summary { margin-top: 30px; padding: 25px; background: #f8f9fa; border-radius: 12px; }
.daily-summary.hidden { display: none; }

.summary-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #e0e0e0; }

.summary-total-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    margin-top: 10px;
    font-size: 18px;
}

.summary-total-row strong { color: var(--booking-primary); font-size: 24px; }

.confirm-dates-btn {
    width: 100%;
    padding: 14px;
    margin-top: 20px;
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.confirm-dates-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102,126,234,0.3);
}

.calendar-loading { grid-column: 1 / -1; text-align: center; padding: 60px 20px; }

/* ================================================
   LOADING & EMPTY STATES
   ================================================ */

.loading-state,
.empty-state {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1 / -1;
}

.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f0f0f0;
    border-top-color: var(--booking-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

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

.empty-icon { font-size: 48px; margin-bottom: 15px; }
.empty-state p, .loading-state p { color: #999; font-size: 16px; margin: 10px 0 0 0; }

/* ================================================
   PREMIUM SUMMARY (DESKTOP RECEIPT + MOBILE SHEET)
   ================================================ */

/* Overlay solo mobile */
.booking-summary-overlay { display: none; }

.booking-summary-sticky {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 300px;
    border-radius: 18px;
    z-index: 1000;
    overflow: hidden;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.18);
    transform: translateY(0);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.booking-summary-sticky:hover {
    box-shadow: 0 22px 72px rgba(0,0,0,0.22);
    transform: translateY(-2px);
}

.summary-header {
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    color: white;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.summary-header h3 { margin: 0; font-size: 16px; font-weight: 800; letter-spacing: 0.2px; }

.summary-close {
    background: rgba(255,255,255,0.18);
    border: none;
    color: white;
    width: 34px; height: 34px;
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.summary-close:hover { background: rgba(255,255,255,0.32); transform: scale(1.1); }

/* Minimized summary — solo header visibile */
.booking-summary-sticky.minimized .summary-content {
    display: none !important;
    padding: 0;
}
.booking-summary-sticky.minimized .summary-total {
    display: none !important;
}
.booking-summary-sticky.minimized .summary-actions {
    display: none !important;
}
.booking-summary-sticky.minimized .summary-header {
    cursor: pointer;
}
.booking-summary-sticky.minimized {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-height: none;
}
.booking-summary-sticky.minimized:hover {
    transform: none;
}

/* ─── FIX LAYOUT VERTICALE ──────────────────────────────────── */
.summary-content {
    padding: 18px;
    display: flex !important;
    flex-direction: column !important;
    gap: 0;
}

.summary-item {
    padding: 12px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex !important;
    flex-direction: column !important;
    gap: 5px;
}

.summary-item:last-child { border-bottom: none; }
.summary-item.hidden { display: none !important; }
/* ──────────────────────────────────────────────────────────── */

.summary-label { font-size: 12px; color: rgba(0,0,0,0.55); margin-bottom: 2px; }
.summary-value { font-size: 15px; font-weight: 700; color: #1a1a1a; }

/* Riga prodotti nel riepilogo */
.summary-item.products-row { border-top: 1px dashed rgba(0,0,0,0.08); margin-top: 4px; padding-top: 12px; }

.summary-total {
    padding: 15px 18px;
    margin-top: 0;
    border-top: 2px dashed rgba(0,0,0,0.08);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.summary-total .summary-label { font-size: 15px; font-weight: 800; color: #1a1a1a; }
.summary-total .summary-value { font-size: 24px; font-weight: 900; color: var(--booking-primary); }

/* Mobile bottom bar */
.booking-mobile-bar {
    display: none;
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    z-index: 1001;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(255,255,255,0.55);
    backdrop-filter: blur(14px);
    box-shadow: 0 18px 60px rgba(0,0,0,0.22);
    border-radius: 16px;
    padding: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mobile-bar-left { display: flex; flex-direction: column; line-height: 1.15; }
.mobile-bar-label { font-size: 11px; font-weight: 700; color: rgba(0,0,0,0.55); text-transform: uppercase; letter-spacing: 0.5px; }
.mobile-bar-total { font-size: 18px; font-weight: 900; color: var(--booking-primary); }

.mobile-bar-btn {
    border: none;
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 800;
    cursor: pointer;
    color: white;
    background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary));
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}

.mobile-bar-btn:disabled { opacity: 0.55; cursor: not-allowed; }

/* Tablet/Mobile: summary diventa bottom sheet */
@media (max-width: 1024px) {
    body.xeora-booking-page { padding-bottom: 90px; }

    .booking-mobile-bar { display: flex; }

    .booking-summary-overlay {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.35);
        backdrop-filter: blur(2px);
        z-index: 999;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        cursor: pointer;
    }

    .booking-summary-overlay.show { opacity: 1; pointer-events: auto; }

    .booking-summary-sticky {
        left: 0; right: 0; bottom: 0;
        width: 100%;
        border-radius: 18px 18px 0 0;
        transform: translateY(110%);
        max-height: min(72vh, 620px);
        overflow: hidden;
    }

    .booking-summary-sticky.open { transform: translateY(0); }

    .summary-content {
        overflow-y: auto;
        max-height: calc(min(72vh, 620px) - 56px);
    }
}

/* ================================================
   WISHLIST MODAL
   ================================================ */

.xeora-wishlist-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.xeora-wishlist-modal.show { display: flex; }

.wishlist-modal-inner {
    background: white;
    border-radius: 20px;
    padding: 32px;
    max-width: 500px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    animation: modalSlideUp 0.35s ease;
    position: relative;
}

.wishlist-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.wishlist-modal-title { font-size: 20px; font-weight: 800; margin: 0; }

.wishlist-modal-close {
    width: 36px; height: 36px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background 0.2s;
}

.wishlist-modal-close:hover { background: #e0e0e0; }

.wishlist-item-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
}

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

.wishlist-item-img {
    width: 56px; height: 56px;
    border-radius: 10px;
    object-fit: cover;
    background: #f5f5f5;
    flex-shrink: 0;
}

.wishlist-item-info { flex: 1; min-width: 0; }
.wishlist-item-name { font-size: 15px; font-weight: 700; color: #1a1a1a; margin: 0 0 4px 0; }
.wishlist-item-qty  { font-size: 13px; color: #777; }
.wishlist-item-price { font-size: 17px; font-weight: 800; color: var(--booking-primary); white-space: nowrap; }

.wishlist-modal-empty { text-align: center; color: #aaa; padding: 30px 0; font-size: 15px; }

/* ================================================
   SUCCESS MODAL
   ================================================ */

.booking-success-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.booking-success-modal.show { display: flex; }

.success-modal-content {
    background: white;
    border-radius: 24px;
    padding: 50px;
    max-width: 500px;
    text-align: center;
    animation: modalSlideUp 0.4s ease;
}

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

/* Confetti Animation */
.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}

.confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    opacity: 0;
}

.confetti.active {
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        opacity: 1;
        transform: translateY(-20px) rotate(0deg);
    }
    100% {
        opacity: 0;
        transform: translateY(400px) rotate(720deg);
    }
}

.success-icon { font-size: 80px; margin-bottom: 20px; }
.success-modal-content h2 { font-size: 28px; font-weight: 800; margin: 0 0 15px 0; }
.success-modal-content p  { font-size: 16px; color: #666; margin: 0 0 30px 0; }
.success-details { text-align: left; margin-bottom: 30px; }

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

.success-btn-primary,
.success-btn-secondary {
    flex: 1;
    padding: 14px 24px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.success-btn-primary { background: linear-gradient(135deg, var(--booking-primary), var(--booking-secondary)); color: white; }
.success-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(102,126,234,0.3); }
.success-btn-secondary { background: #f0f0f0; color: #666; }
.success-btn-secondary:hover { background: #e0e0e0; }

/* ================================================
   UTILITY CLASSES
   ================================================ */

.hidden { display: none !important; }

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

@media (max-width: 768px) {
    .booking-hero { padding: 60px 20px 40px; }
    .booking-hero-title { font-size: 32px; }
    .booking-hero-subtitle { font-size: 16px; }
    .progress-steps { gap: 5px; }
    .step-number { width: 36px; height: 36px; font-size: 14px; }
    .step-label { font-size: 11px; }
    .progress-line { margin: 0 5px; }
    .section-title { font-size: 24px; }
    .services-grid { grid-template-columns: 1fr; }
    .staff-grid { grid-template-columns: 1fr; }
    .calendar-grid { gap: 5px; }
    .timeslots-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
    .daily-info { flex-direction: column; }
    .daily-times-info { flex-direction: column; }
    .time-info-card { min-width: auto; }
    .booking-section { padding: 40px 0; }
    .success-modal-content { padding: 30px 20px; margin: 20px; }
    .success-actions { flex-direction: column; }
    .wishlist-modal-inner { padding: 24px 16px; }
}
