/* wp-content/plugins/booking-salles/assets/css/booking-salles-front.css */
.section-booking {
    padding-top: 60px;
    padding-bottom: 40px;
}
.booking-salles-selector-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

    margin: 0;
    padding: 30px;
    background: #F0E7D8;
    border-radius: 10px;
}
/* Header */
.booking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--Brand-Brown-500, #BDAB93);
}
.booking-header h2 {
    color: var(--Brand-Brown-900, #401B0A);
    /* Headline H3 */
    font-family: "DM Serif Display";
    font-size: 42px;
    font-style: normal;
    font-weight: 400;
    line-height: 120%; /* 50.4px */
    margin: 0;
}
.week-navigation {
    display: flex;
    gap: 12px;
}
.btn-week-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #DACCBA;
    border: none;
    border-radius: 50px;
    color: var(--Brand-Brown-800, #78572A);
    /* Button */
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-week-nav:hover:not(:disabled) {
    background: #B8A898;
    transform: translateY(-2px);
}
.btn-week-nav:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.btn-week-nav svg {
    width: 20px;
    height: 20px;
}
/* Room Tabs */
.room-selector-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 30px;
    align-items: center;
    flex-wrap: wrap;
    padding-bottom: 30px;
    margin-bottom: 30px;
    border-bottom: 1px solid var(--Brand-Brown-500, #BDAB93);
}
.room-tab {
    padding: 12px 32px;
    background: #D4C7B3;
    border: 2px solid transparent;
    border-radius: 50px;
    font-family: Poppins;
    font-size: 16px;
    font-style: normal;
    font-weight: 500;
    line-height: normal;
    letter-spacing: 0.16px;
    cursor: pointer;
    transition: all 0.2s ease;
}
.room-tab:hover {
    background: #C8BBA8;
}
.room-tab.active {
    background: #3C2A21;
    color: #EFE8D8;
    border-color: #3C2A21;
}
.room-info {
    display: flex;
    gap: 20px;
    margin-left: auto;
}
.info-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #5C4A3A;
}
.info-item svg {
    width: 16px;
    height: 16px;
}
/* Days Container */
.days-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 30px;
    min-height: 160px;
}
.day-card {
    background: white;
    border: 1px solid #E0D7C7;
    border-radius: 10px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    font-family: Poppins;
}
.day-card.available {
    background: linear-gradient(135deg, #D4E8D4 0%, #CBD3C3 100%);
    border-color: #454F3C;
}
.day-card.partial {
    background: linear-gradient(135deg, #FFF4D6 0%, #FDF0D3 100%);
    border-color: #D4A74F;
}
.day-card.unavailable {
    background: #F5F2ED;
    border-color: #D4C7B3;
    opacity: 0.6;
    cursor: not-allowed;
}
.day-card:hover:not(.unavailable) {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.day-card.selected {
    border-width: 2px;
    border-color: #3C2A21;
    box-shadow: 0 8px 24px rgba(60, 42, 33, 0.2);
}
.day-header {
    margin-bottom: 12px;
}
.day-name {
    font-size: 14px;
    font-weight: 600;
    color: #5C4A3A;
    text-transform: capitalize;
}
.day-date {
    display: flex;
    flex-direction: column;
    margin-bottom: 12px;
}
.day-number {
    font-size: 32px;
    font-weight: 700;
    color: #3C2A21;
    line-height: 1;
}
.month-name {
    font-size: 13px;
    color: #7C6A5A;
    margin-top: 4px;
}
.day-status {
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
    margin-top: 8px;
}
.day-card.available .day-status {
    background: #7CAA7C;
    color: white;
}
.day-card.partial .day-status {
    background: #D4A74F;
    color: white;
}
.day-card.unavailable .day-status {
    background: #9B8978;
    color: white;
}
/* Slots Selector */
.slots-selector {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-bottom: 30px;
    padding: 24px;
    background: #F8F5F0;
    border-radius: 10px;
    flex-wrap: wrap;
}
.slot-button {
    padding: 12px 32px;
    background: white;
    border: 2px solid #D4C7B3;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 500;
    color: #5C4A3A;
    cursor: pointer;
    transition: all 0.2s ease;
}
.slot-button:hover {
    background: #C8BBA8;
    border-color: #B8A898;
}
.slot-button.selected {
    background: #3C2A21;
    color: white;
    border-color: #3C2A21;
}
.btn-add-to-cart {
    padding: 14px 40px;
    background: #B89968;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-left: auto;
}
.btn-add-to-cart:hover:not(:disabled) {
    background: #A88858;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(184, 153, 104, 0.3);
}
.btn-add-to-cart:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
/* Cart Summary */
.cart-summary {
    background: white;
    border: 2px solid #D4C7B3;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}
.cart-summary h3 {
    font-size: 20px;
    font-weight: 600;
    color: #3C2A21;
    margin: 0 0 16px 0;
}
.cart-items {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: #F8F5F0;
    border-radius: 12px;
    gap: 16px;
}
.cart-item-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-item-room {
    display: inline-block;
    padding: 4px 12px;
    background: #3C2A21;
    color: white;
    font-size: 12px;
    font-weight: 600;
    border-radius: 12px;
    width: fit-content;
}
.cart-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cart-item-info strong {
    font-size: 15px;
    color: #3C2A21;
}
.cart-item-info span {
    font-size: 13px;
    color: #7C6A5A;
}
.cart-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}
.cart-item-price {
    font-size: 16px;
    font-weight: 600;
    color: #B89968;
    white-space: nowrap;
}
.btn-remove-item {
    padding: 8px;
    background: #DC3545;
    border: none;
    border-radius: 8px;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-remove-item:hover {
    background: #C82333;
    transform: scale(1.05);
}
.btn-remove-item svg {
    width: 20px;
    height: 20px;
}
.btn-checkout {
    width: 100%;
    padding: 16px;
    background: #3C2A21;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-checkout:hover {
    background: #2C1A11;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(60, 42, 33, 0.3);
}
/* Legend */
.availability-legend {
    display: flex;
    gap: 24px;
    /* justify-content: center; */
    padding: 20px;
    /* background: #F8F5F0; */
    border-radius: 12px;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5C4A3A;
}
.legend-badge {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}
.legend-badge.available {
    background: linear-gradient(135deg, #D4E8D4 0%, #C2DFC2 100%);
    border: 1px solid #7CAA7C;
}
.legend-badge.partial {
    background: linear-gradient(135deg, #FFF4D6 0%, #FFE8A8 100%);
    border: 1px solid #D4A74F;
}
.legend-badge.unavailable {
    background: #F5F2ED;
    border: 1px solid #D4C7B3;
}
.horaires {
    display: flex;
    margin-left: auto;
    gap: 20px;
    color: var(--Brand-Brown-900, #401B0A);
}
/* Loading Spinner */
.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 16px;
}
.spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #E0D7C7;
    border-top-color: #3C2A21;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.loading-spinner p {
    font-size: 14px;
    color: #7C6A5A;
}
/* Responsive */
@media (max-width: 1024px) {
    .days-container {
        grid-template-columns: repeat(3, 1fr);
    }
    .availability-legend {
        flex-wrap: wrap;
    }
    .horaires {
        width: 100%;
    }
}
@media (max-width: 768px) {
    .booking-header {
        flex-direction: column;
        gap: 20px;
        align-items: flex-start;
    }
    
    .week-navigation {
        width: 100%;
    }
    
    .btn-week-nav {
        flex: 1;
        justify-content: center;
    }
    
    .days-container {
        grid-template-columns: 1fr;
    }
    
    .room-selector-tabs {
        flex-direction: column;
        align-items: stretch;
    }
    
    .room-info {
        margin-left: 0;
        flex-direction: column;
        gap: 8px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    
    .slots-selector {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn-add-to-cart {
        margin-left: 0;
        width: 100%;
    }
    
    .cart-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cart-item-actions {
        width: 100%;
        justify-content: space-between;
    }
}
/* Notifications */
.booking-notification {
    font-family: Poppins;
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 16px 24px;
    background: white;
    border-radius: 12px;
    /* box-shadow: 10px rgba(0, 0, 0, 0.15); */
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    font-size: 15px;
    font-weight: 500;
}
.booking-notification.show {
    transform: translateX(0);
    opacity: 1;
}
.booking-notification.success {
    /* border-left: 4px solid #10b981; */
    background-color: #065f46;
    color: #fff;
}
.booking-notification.info {
    /* border-left: 4px solid #3b82f6; */
    background-color: #1e40af;
    color: #fff;
}
.booking-notification.error {
    /* border-left: 4px solid #ef4444; */
    background-color: #991b1b;
    color: #fff;
}
@media (max-width: 768px) {
    .booking-salles-selector-wrapper {
        padding: 20px;
    }
    .booking-header h2 {
        font-size: 24px;
    }
    .btn-week-nav {
        padding: 10px 12px;
        font-size: 13px;
    }
    .cart-summary {
        padding: 20px;
    }
    .availability-legend {
        flex-direction: column;
    }
    .section-booking {
        padding-top: 10px;
        padding-bottom: 20px;
    }
}