/**
 * Single Alloggi CSS - Layout Recovery
 * Blue Apulia Child Theme
 * 
 * Integra il layout funzionale di 10 giorni fa con l'architettura modulare attuale
 */

body {
    background: #fff !important;
}

.single-alloggio {
    background: #fff;
    padding: 0;
    margin: auto;
    max-width: 75rem;
}

/* =============================================================================
   SCOPED CONTAINER - Single Alloggio
   ============================================================================= */
main.single-alloggio > article > .container {
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0;
    padding-right: 0;
}

/* =============================================================================
   HERO SECTION - RECOVERY
   ============================================================================= */
.alloggio-hero,
.gallery-slider-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.hero-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    gap: 2rem;
}

.title-location {
    flex: 1;
}

.alloggio-title {
    font-size: 2.5rem;
    margin: 0 0 0.5rem;
    color: #2c3e50;
    font-weight: 700;
    line-height: 1.2;
}

.alloggio-location {
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    color: #666;
    margin: 0;
    font-weight: 500;
}

.alloggio-location .icon {
    font-size: 1.2rem;
}

/* =============================================================================
   MAIN LAYOUT GRID - RECOVERY
   ============================================================================= */
.alloggio-info {
    padding: 3rem 0;
}

.info-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 4rem;
    align-items: start;
}

.info-main {
    /* Colonna principale contenuto */
}

.info-sidebar {
    /* Sidebar con border separatore */
    border-left: 1px solid #e0e0e0;
    padding-left: 2rem;
}

/* =============================================================================
   QUICK INFO CARDS - RECOVERY
   ============================================================================= */
.quick-info {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    padding: 0;
    background: #fff;
    border-radius: 12px;
}

.info-item {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    justify-content: center;
    flex: 1;
    /* padding: 1rem; */
    border-radius: 99px;
    background: #f8f9fa;
    transition: all 0.3s ease;
    max-width: 100px;
    min-width: 100px;
    height: 100px;
}

.info-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.info-item .label {
    font-size: 1rem;
    color: #666;
    /* margin-bottom: 0.25rem; */
    font-weight: 500;
}

.info-item .value {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
}

/* =============================================================================
   CONTENT SECTIONS - RECOVERY
   ============================================================================= */
.description-section,
.services-section,
.accessories-section,
.map-section {
    background: #fff !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0;
    margin-bottom: 4rem;
}

.description-section h2,
.services-section h2,
.accessories-section h2,
.map-section h2 {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.description-content {
    line-height: 1.7;
    color: #444;
    font-size: 1.05rem;
}



/* =============================================================================
   SERVICES & ACCESSORIES GRID - COMPACT COLUMNS
   ============================================================================= */
.services-grid,
.accessories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.service-item,
.accessory-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.9rem;
}

.service-item:hover,
.accessory-item:hover {
    transform: translateY(-1px);
}

.service-item .icon,
.accessory-item .icon {
    font-size: 1rem;
    flex-shrink: 0;
}

/* =============================================================================
   MAP CONTAINER - RECOVERY
   ============================================================================= */
.map-container {
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

/* =============================================================================
   SIDEBAR PRICING CALENDAR BOX - RECOVERY
   ============================================================================= */
.pricing-calendar-box {
    background: #fff;
    margin-bottom: 2rem;
    border: none;
}

.pricing-calendar-box h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    text-align: center;
    padding-bottom: 0;
    border-bottom: none;
}

/* =============================================================================
   TAB NAVIGATION - RECOVERY
   ============================================================================= */
.tab-navigation {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 0.25rem;
}

.tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    color: #666;
}

.tab-btn.active {
    background: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.tab-btn:hover:not(.active) {
    background: #e9ecef;
    color: #2c3e50;
}

/* =============================================================================
   TAB CONTENT - RECOVERY
   ============================================================================= */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   PRICE LIST - RECOVERY
   ============================================================================= */
.price-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.price-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.price-item:hover {
    background: #e9ecef;
    transform: translateY(-1px);
}

.price-item .period {
    font-weight: 600;
    color: #2c3e50;
}

.price-item .price {
    font-weight: 700;
    color: #28a745;
    font-size: 1.1rem;
}

/* =============================================================================
   FLATPICKR INLINE CALENDAR - NATIVE STYLES
   ============================================================================= */
.flatpickr-container {
    margin: 1.5rem 0;
}

/* Placeholder message quando nessuna data è selezionata */
.dates-placeholder {
    text-align: center;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #6c757d;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Input dates affiancati (mostrati solo quando le date sono selezionate) */
.flatpickr-container input[type="text"].ba-datepicker {
    width: calc(50% - 0.5rem);
    padding: 0.75rem 1rem;
    border: 2px solid #007bff;
    border-radius: 8px;
    background: #e7f3ff;
    font-size: 1rem;
    font-weight: 600;
    color: #0056b3;
    text-align: center;
    pointer-events: none;
    /* Read-only visuale */
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.flatpickr-container input[name="checkin"].ba-datepicker {
    margin-right: 0.5rem;
}

.flatpickr-container input[name="checkout"].ba-datepicker {
    margin-left: 0.5rem;
}

/* Label visuali per gli input */
.flatpickr-container input[name="checkin"].ba-datepicker::before {
    content: "📅 Check-in: ";
    font-weight: 400;
}

/* Responsive per input affiancati */
@media (max-width: 768px) {
    .flatpickr-container input[type="text"].ba-datepicker {
        width: 100%;
        margin: 0 0 0.5rem 0;
    }

    .flatpickr-container input[name="checkin"].ba-datepicker {
        margin-right: 0;
    }

    .flatpickr-container input[name="checkout"].ba-datepicker {
        margin-left: 0;
    }
}

/* Riepilogo prenotazione styling */
#riepilogo-prenotazione {
    margin-top: 1.5rem;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============================================================================
   CALENDAR COMPONENT - RECOVERY
   ============================================================================= */
.calendario-container {
    margin-top: 1rem;
}

.calendario-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.calendario-nav {
    background: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    padding: 0.5rem 0.75rem;
    font-size: 1.2rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.calendario-nav:hover {
    background: #0056b3;
    transform: scale(1.05);
}

#mese-anno {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0;
}

.giorni-settimana {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: 700;
    margin-bottom: 0.5rem;
    padding: 0.5rem 0;
    background: #f8f9fa;
    border-radius: 6px;
    font-size: 0.9rem;
    color: #666;
}

.giorni-griglia {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.25rem;
    margin-bottom: 1.5rem;
}

.giorno {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #fff;
    border: 1px solid #e9ecef;
}

.giorno:hover:not(.disabled):not(.occupato) {
    background-color: #e7f3ff;
    border-color: #007bff;
    transform: scale(1.05);
}

.giorno.disabled {
    color: #ccc;
    cursor: not-allowed;
    background: #f8f9fa;
}

.giorno.selected {
    background-color: #007bff;
    color: white;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.giorno.occupato {
    background-color: #dc3545;
    color: white;
    cursor: not-allowed;
}

/* Calendar Legend */
.calendario-legenda {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.legenda-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.legenda-item .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.disponibile {
    background-color: #28a745;
}

.dot.occupato {
    background-color: #dc3545;
}

/* =============================================================================
   BOOKING CTA - RECOVERY
   ============================================================================= */
.booking-cta {
    margin-top: 2rem;
    text-align: center;
}

.booking-cta h4 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.booking-cta p {
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.booking-cta .btn-primary,
.booking-cta .btn-secondary {
    display: block;
    width: 100%;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 99px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #e9e9e9;
    background: #fff !important;
    color: #808285;
    cursor: pointer;
    font-size: 1rem;
}


.booking-cta .btn-primary:hover,
.booking-cta .btn-secondary:hover {
    background-color: #3f8ac9 !important;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
}

/* =============================================================================
   ADDITIONAL INFO BOX - RECOVERY
   ============================================================================= */
.additional-info-box {
    background: #fff;
    padding: 2rem;
}

.additional-info-box h4 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    font-weight: 700;
    padding-bottom: 0;
    border-bottom: none;
}

.additional-info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.additional-info-box li {
    padding: 0.75rem 0;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.additional-info-box li:last-child {
    border-bottom: none;
}

.additional-info-box li::before {
    content: "✓";
    color: #28a745;
    font-weight: 700;
}

/* =============================================================================
   RESPONSIVE DESIGN - RECOVERY
   ============================================================================= */
@media (max-width: 768px) {

    /* Riduci padding della sezione alloggio-info su mobile */
    .alloggio-info {
        padding: 1rem 0 140px 0;
        /* Extra padding-bottom per bottom sheet */
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* NASCONDI la sidebar su mobile - sostituita da bottom sheet */
    .info-sidebar {
        display: none !important;
    }

    .alloggio-title {
        font-size: 2rem;
        text-align: center;
    }

    .hero-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .alloggio-location {
        justify-content: center;
    }

    .alloggio-tipologia {
        display: none;
        /* Nasconde tipologia su mobile */
    }

    .quick-info {
        flex-direction: row;
        justify-content: space-around;
        margin-bottom: 2rem;
        /* Più spazio tra info box e descrizione */
    }

    /* Info box più piccoli su mobile */
    .info-item {
        max-width: 70px;
        min-width: 70px;
        height: 70px;
        padding: 0.5rem;
    }

    .info-item .label {
        font-size: 0.8rem;
        margin-bottom: 0.15rem;
    }

    .info-item .value {
        font-size: 1rem;
    }

    .services-grid,
    .accessories-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.4rem;
    }

    .service-item,
    .accessory-item {
        padding: 0.4rem;
        font-size: 0.8rem;
    }

    .map-container {
        height: 300px;
    }

    .pricing-calendar-box {
        padding: 1.5rem;
    }

    .calendario-legenda {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .alloggio-hero {
        padding: 1rem 0;
    }

    .alloggio-title {
        font-size: 1.5rem;
    }

    .description-section,
    .services-section,
    .accessories-section,
    .map-section,
    .pricing-calendar-box,
    .additional-info-box {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }

    .quick-info {
        padding: 0.5rem;
        gap: 0.5rem;
    }

    /* Info box ancora più piccoli per schermi molto piccoli */
    .info-item {
        max-width: 60px;
        min-width: 60px;
        height: 60px;
        padding: 0.4rem;
    }

    .info-item .label {
        font-size: 0.6rem;
        margin-bottom: 0.1rem;
    }

    .info-item .value {
        font-size: 0.9rem;
    }

    .tab-btn {
        font-size: 0.8rem;
        padding: 0.5rem;
    }

    .services-grid,
    .accessories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.3rem;
    }

    .service-item,
    .accessory-item {
        padding: 0.3rem;
        font-size: 0.75rem;
    }
}

/* =============================================================================
   GALLERY GLIDE.JS - RECOVERY STYLES (CONTAINER FISSO)
   ============================================================================= */

/* Gallery Container */
.gallery-slider-container {
    margin: 2rem 0 0.8rem 0;
    position: relative;
    overflow: hidden;
}

/* Glide Core - DIMENSIONI FISSE FORZATE */
.glide {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    height: 420px;
    /* HEIGHT FISSO per container principale */
}

.glide__track {
    overflow: hidden;
    border-radius: 10px;
    height: 100%;
    /* Eredita height dal parent */
}

.glide__slides {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
    height: 100%;
    /* Eredita height dal parent */
}

/* Slide Items - DIMENSIONI FISSE RIGIDE */
.glide__slide {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    background: #fff;
    transition: box-shadow 0.2s;
    width: 100%;
    height: 100%;
    /* Eredita height dal parent */
    flex-shrink: 0;
    /* Impedisce compressione */
    min-height: 420px;
    /* Fallback height minimo */
}

.glide__slide a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.glide__slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* FORZA taglio per mantenere proporzioni container */
    object-position: center;
    /* Centra l'immagine */
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.2s;
    position: absolute;
    /* FORZA posizione assoluta */
    top: 0;
    left: 0;
}

.glide__slide:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.glide__slide:hover img {
    transform: scale(1.02);
}

/* Frecce Navigation */
.glide__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #2c3e50;
    font-weight: bold;
}

.glide__arrow:hover {
    background: #007bff;
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.glide__arrow--left {
    left: 15px;
}

.glide__arrow--right {
    right: 15px;
}

/* Single Image Fallback - STESSO COMPORTAMENTO */
.single-image-container {
    position: relative;
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    height: 420px;
    /* HEIGHT FISSO RIGIDO */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.single-image-container a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.single-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
}

/* Responsive Heights - FISSI E RIGIDI */
@media (max-width: 900px) {
    .glide {
        height: 300px;
        /* HEIGHT FISSO per tablet */
    }

    .glide__slide,
    .single-image-container {
        min-height: 300px;
        /* Fallback per tablet */
    }
}

@media (max-width: 600px) {
    .glide {
        height: 250px;
        /* HEIGHT FISSO per mobile */
        max-width: 100%;
    }

    .glide__slide,
    .single-image-container {
        min-height: 250px;
        /* Fallback per mobile */
    }

    .gallery-slider-container {
        margin: 1rem 0 2rem 0;
    }

    /* Frecce più piccole su mobile */
    .glide__arrow {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }

    .glide__arrow--left {
        left: 10px;
    }

    .glide__arrow--right {
        right: 10px;
    }
}

/* =============================================================================
   GUEST SELECTOR - Ospiti Counter
   ============================================================================= */
.ospiti-selector {
    margin: 20px 0;
}

.ospiti-counter {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 0px;
}

.ospiti-btn {
    max-width: 36px;
    height: 36px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    background: transparent;
    color: #7c9cb6;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
}

#ospiti-value {
    font-size: 20px;
    font-weight: 600;
    color: #333;
    min-width: 50px;
    text-align: center;
}

.ospiti-max-warning {
    display: none;
    margin-top: 8px;
    font-size: 12px;
    color: #e74c3c;
    text-align: center;
}

/* =============================================================================
   DATE WARNING
   ============================================================================= */
.date-warning {
    display: none;
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #856404;
    text-align: center;
}

/* =============================================================================
   BOOKING CTA CONTACT LABEL
   ============================================================================= */
.booking-cta-contact-label {
    margin-top: 10px;
    font-size: 13px;
    color: #666;
    text-align: center;
}

/* =============================================================================
   MANUALE CASA SECTION
   ============================================================================= */
.manuale-casa-section {
    margin: 30px 0;
    text-align: center;
}

.btn-manuale-casa {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(135deg, #00a32a 0%, #00b894 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 163, 42, 0.3);
    transition: all 0.3s ease;
}

.btn-manuale-casa:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 163, 42, 0.4);
    color: white;
}

.ospiti-btn:hover {
    background: var(--ba-gray-50, #f8f9fa) !important;
    color: #333 !important;
}

.ospiti-btn:active {
    transform: scale(0.95);
    background: var(--ba-gray-100, #e9ecef) !important;
}

.ospiti-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* =============================================================================
   BOOKING BUTTON - Prenota
   ============================================================================= */
.btn-prenota {
    width: 100%;
    padding: 15px;
    background: #e19898;
    color: white;
    border: none;
    border-radius: 99px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s;
}

.btn-prenota:hover {
    background: #d88888 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(225, 152, 152, 0.3);
}

.btn-prenota:active {
    transform: translateY(0);
}

.btn-prenota:disabled {
    background: #ccc !important;
    cursor: not-allowed;
    opacity: 0.6;
}

/* =============================================================================
   MOBILE BOTTOM SHEET - Booking Widget
   ============================================================================= */

/* Nascondi bottom sheet su desktop */
.ba-booking-sheet {
    display: none;
}

@media (max-width: 768px) {

    /* =========================================================================
       BOTTOM SHEET — Premium Coastal Booking Experience
       Refined minimal aesthetic with Mediterranean warmth
       ========================================================================= */

    .ba-booking-sheet {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 85dvh;
        padding-bottom: env(safe-area-inset-bottom, 0px);
        background: #fff;
        z-index: 1000;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -4px 32px rgba(76, 114, 145, 0.12);
        transform: translateY(calc(100% - 170px - env(safe-area-inset-bottom, 0px)));
        overflow: visible;
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        display: flex;
        flex-direction: column;
        touch-action: pan-y;
        will-change: transform;
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }

    /* Safari iOS gap coverage */
    .ba-booking-sheet::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 100px;
        background: inherit;
        transform: translateY(100%);
        pointer-events: none;
    }

    .ba-booking-sheet.is-dragging {
        transition: none;
    }

    .ba-booking-sheet.is-expanded {
        transform: translateY(0);
    }

    /* Handle */
    .ba-sheet-handle {
        height: 28px;
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: grab;
        touch-action: pan-y;
        flex-shrink: 0;
    }

    .ba-sheet-handle:active {
        cursor: grabbing;
    }

    .ba-sheet-handle-pill {
        width: 36px;
        height: 4px;
        background: #d1d5db;
        border-radius: 2px;
    }

    /* Scrollable content area */
    .ba-sheet-content {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        padding: 4px 20px 32px;
    }

    /* ---- COLLAPSED STATE ---- */
    .ba-sheet-collapsed {
        padding: 8px 20px 16px;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .ba-sheet-dates-row {
        display: flex;
        justify-content: space-between;
        align-items: baseline;
    }

    .ba-sheet-dates {
        font-size: 15px;
        font-weight: 600;
        color: #1a1a1a;
        letter-spacing: -0.01em;
    }

    .ba-sheet-dates.empty {
        color: #9ca3af;
        font-weight: 500;
    }

    .ba-sheet-price {
        font-size: 15px;
        font-weight: 700;
        color: #4c7291;
        text-align: right;
        letter-spacing: -0.02em;
    }

    .ba-sheet-summary-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        font-size: 13px;
        color: #6b7280;
    }

    .ba-sheet-total {
        font-size: 17px;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: -0.02em;
    }

    /* CTA collapsed */
    .ba-sheet-cta-collapsed {
        width: 100%;
        padding: 14px 24px;
        background: #4c7291;
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 15px;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.15s ease;
    }

    .ba-sheet-cta-collapsed:active {
        transform: scale(0.98);
        background: #3d5f7a;
    }

    .ba-sheet-cta-collapsed:disabled {
        background: #d1d5db;
        color: #9ca3af;
        cursor: not-allowed;
    }

    /* ---- EXPANDED STATE ---- */
    .ba-sheet-expanded {
        display: none;
    }

    .ba-booking-sheet.is-expanded .ba-sheet-collapsed {
        display: none;
    }

    .ba-booking-sheet.is-expanded .ba-sheet-expanded {
        display: flex;
        flex-direction: column;
        flex: 1;
        min-height: 0;
    }

    /* Sections */
    .ba-sheet-section {
        margin-bottom: 20px;
    }

    .ba-sheet-section-title {
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.06em;
        margin-bottom: 10px;
        color: #9ca3af;
    }

    /* ---- DATE PICKERS ---- */
    .ba-sheet-dates-pickers {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ba-sheet-date-input {
        width: 100%;
        padding: 14px 12px;
        border: 1.5px solid #e5e7eb;
        border-radius: 10px;
        font-size: 15px;
        font-weight: 500;
        background: #f9fafb;
        color: #1a1a1a;
        cursor: pointer;
        transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
        text-align: center;
        -webkit-appearance: none;
    }

    .ba-sheet-date-input::placeholder {
        color: #9ca3af;
        font-weight: 400;
    }

    .ba-sheet-date-input:focus {
        outline: none;
        border-color: #4c7291;
        background: #fff;
        box-shadow: 0 0 0 3px rgba(76, 114, 145, 0.1);
    }

    .ba-sheet-date-input.has-value {
        border-color: #4c7291;
        background: #fff;
        font-weight: 600;
    }

    /* ---- GUEST COUNTER ---- */
    .ba-sheet-guests {
        background: #f9fafb;
        border: 1.5px solid #e5e7eb;
        padding: 12px 16px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .ba-sheet-guests-label {
        font-size: 15px;
        font-weight: 500;
        color: #374151;
    }

    .ba-sheet-guests-counter {
        display: flex;
        align-items: center;
        gap: 14px;
    }

    .ba-sheet-guest-btn {
        width: 36px;
        height: 36px;
        min-width: 36px;
        min-height: 36px;
        padding: 0;
        border: 1.5px solid #d1d5db;
        background: #fff;
        color: #374151;
        border-radius: 50%;
        font-size: 18px;
        line-height: 1;
        font-weight: 400;
        cursor: pointer;
        transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
        -webkit-appearance: none;
    }

    .ba-sheet-guest-btn:active {
        transform: scale(0.92);
        background: #f3f4f6;
        border-color: #9ca3af;
    }

    .ba-sheet-guest-btn:disabled {
        opacity: 0.25;
        cursor: not-allowed;
        box-shadow: none;
    }

    .ba-sheet-guest-value {
        font-size: 17px;
        font-weight: 600;
        color: #1a1a1a;
        min-width: 28px;
        text-align: center;
        letter-spacing: -0.02em;
    }

    /* ---- PRICING BREAKDOWN ---- */
    .ba-sheet-breakdown {
        background: transparent;
        padding: 0;
        border-radius: 0;
    }

    .ba-sheet-breakdown-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        font-size: 14px;
        color: #6b7280;
    }

    .ba-sheet-breakdown-row.total {
        padding-top: 12px;
        margin-top: 8px;
        border-top: 1px solid #e5e7eb;
        font-size: 17px;
        font-weight: 700;
        color: #1a1a1a;
        letter-spacing: -0.02em;
    }

    .ba-sheet-breakdown-label {
        flex: 1;
    }

    .ba-sheet-breakdown-value {
        font-weight: 600;
        color: #374151;
    }

    .ba-sheet-breakdown-row.total .ba-sheet-breakdown-value {
        color: #1a1a1a;
    }

    /* ---- CTA EXPANDED ---- */
    .ba-sheet-cta-expanded {
        width: 100%;
        padding: 16px 24px;
        background: #4c7291;
        color: #fff;
        border: none;
        border-radius: 12px;
        font-size: 16px;
        font-weight: 600;
        letter-spacing: 0.01em;
        cursor: pointer;
        transition: background 0.2s ease, transform 0.15s ease;
        margin-top: 8px;
        flex-shrink: 0;
    }

    .ba-sheet-cta-expanded:active {
        transform: scale(0.98);
        background: #3d5f7a;
    }

    .ba-sheet-cta-expanded:disabled {
        background: #d1d5db;
        color: #9ca3af;
        cursor: not-allowed;
    }

    /* ---- FLATPICKR INSIDE SHEET — static mode containment ---- */
    .ba-sheet-dates-pickers .flatpickr-calendar.static {
        position: absolute;
        width: calc(100vw - 40px) !important;
        left: -20px !important;
        margin-top: 4px;
    }

    .ba-sheet-date-input.flatpickr-input {
        box-sizing: border-box;
    }
}