/* Booking Modal Styles - Arimaze Brand Design */
.booking-modal-overlay {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(8px);
    z-index: 9999;
    animation: fadeIn 0.3s ease;
}

.booking-modal-overlay.active {
    display: flex !important;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.booking-modal {
    background: #3a3a3a;
    border-radius: 0;
    max-width: 650px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    padding: 50px 60px;
    position: relative;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
    font-family: 'Gotham Pro', sans-serif;
    border-top: 3px solid #fff;
}

.booking-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

.booking-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.booking-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 30px;
}

.booking-restaurant-icon {
    width: 80px;
    height: 80px;
    border-radius: 0;
    background: transparent;
    border: 2px solid #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 20px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 2px;
}

.booking-restaurant-name {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.booking-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.booking-step-indicator {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 15px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.booking-step {
    display: none;
}

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

.booking-form-group {
    margin-bottom: 30px;
}

.booking-form-label {
    display: block;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.booking-input {
    width: 100%;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    font-family: 'Gotham Pro', sans-serif;
    transition: all 0.3s ease;
}

.booking-input:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: #fff;
}

.booking-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.booking-time-grid,
.booking-table-grid {
   display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 15px;
}

.booking-time-slot,
.booking-table-item {
    padding: 16px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: #fff;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.booking-time-slot:hover,
.booking-table-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.booking-time-slot.selected,
.booking-table-item.selected {
    background: #fff;
    border-color: #fff;
    color: #222;
    font-weight: 700;
}

.booking-table-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-table-name {
    font-weight: 700;
    letter-spacing: 1px;
}

.booking-table-capacity {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.booking-button {
    width: 100%;
    padding: 18px;
    background: #fff;
    border: none;
    border-radius: 0;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-top: 15px;
    font-family: 'Gotham Pro', sans-serif;
}

.booking-button:hover {
    background: #f0f0f0;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.booking-button:disabled {
    background: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.booking-button-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #fff;
}

.booking-button-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    box-shadow: none;
    transform: translateY(-2px);
}

.booking-buttons-group {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.booking-buttons-group .booking-button {
    margin-top: 0;
}

.booking-select {
    width: 100%;
    padding: 16px 18px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: #fff;
    font-size: 16px;
    font-family: 'Gotham Pro', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.booking-select:focus {
    outline: none;
    background: rgba(0, 0, 0, 0.4);
    border-color: #fff;
}

.booking-select option {
    background: #3a3a3a;
    color: #fff;
}

.booking-summary {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 25px;
    margin-bottom: 30px;
}

.booking-summary-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.booking-summary-row:last-child {
    border-bottom: none;
}

.booking-summary-label {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.booking-summary-value {
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 1px;
}

.loading-indicator {
    text-align: center;
    padding: 30px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.error-message {
    background: rgba(220, 53, 69, 0.15);
    border: 1px solid rgba(220, 53, 69, 0.5);
    border-radius: 0;
    padding: 15px 20px;
    color: #ff6b6b;
    margin-bottom: 20px;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.success-message {
    background: rgba(40, 167, 69, 0.15);
    border: 1px solid rgba(40, 167, 69, 0.5);
    border-radius: 0;
    padding: 20px;
    color: #51cf66;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    letter-spacing: 1px;
}

.success-message h3 {
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.booking-skip-button {
    width: 100%;
    padding: 14px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    cursor: pointer;
    margin-top: 15px;
    transition: color 0.3s ease;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Gotham Pro', sans-serif;
}

.booking-skip-button:hover {
    color: #fff;
}

/* Table Location Sections */
#tableSlots.booking-table-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 220px));
    justify-content: center;
    align-items: start;
    gap: 18px;
}

#tableSlots .loading-indicator,
#tableSlots .no-tables-message,
#tableSlots .error-message {
    grid-column: 1 / -1;
}

.table-location-section {
    margin-bottom: 0;
    width: 100%;
    max-width: 220px;
    display: flex;
    flex-direction: column;
}

.table-location-section:last-child {
    margin-bottom: 0;
}

.table-location-title {
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 42px;
    line-height: 1.2;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.booking-tables-grid {
    display: grid;
    grid-template-columns: minmax(120px, 1fr);
    gap: 12px;
}

.booking-table-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.booking-table-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.booking-table-item.selected {
    background: rgba(0, 150, 180, 0.15);
    border-color: #0096B4;
    box-shadow: 0 0 15px rgba(0, 150, 180, 0.2);
}

.booking-table-id {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-family: 'Gotham Pro', sans-serif;
}

.booking-table-capacity {
    color: rgba(255, 255, 255, 0.6);
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 1px;
}

.booking-table-capacity svg {
    opacity: 0.6;
}

.no-tables-message {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    padding: 40px 20px;
    font-size: 13px;
    letter-spacing: 1px;
}

.booking-table-grid::-webkit-scrollbar {
    width: 6px;
}

.booking-table-grid::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
}

.booking-table-grid::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.booking-table-grid::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .booking-modal {
        padding: 40px 30px;
        max-height: 95vh;
    }
    
    .booking-time-grid,
    .booking-table-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    #tableSlots.booking-table-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 190px));
    }
    
    .booking-restaurant-name {
        font-size: 24px;
    }
    
    .booking-restaurant-icon {
        width: 60px;
        height: 60px;
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .booking-time-grid,
    .booking-table-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    #tableSlots.booking-table-grid {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .table-location-section {
        max-width: 260px;
    }
    
    .booking-modal {
        padding: 30px 20px;
    }
}

/* Custom Calendar Modal Styles */
.calendar-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(34, 34, 34, 0.95);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

.calendar-modal-container {
    background: #3a3a3a;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    border-top: 3px solid #fff;
    padding: 30px;
    position: relative;
    max-width: 500px;
    width: 90%;
    animation: slideUp 0.4s ease;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.7);
}

.calendar-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 35px;
    height: 35px;
    border-radius: 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-weight: 300;
}

.calendar-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.custom-calendar-modal {
    width: 100%;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-month-year {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.calendar-nav {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 0;
    color: #fff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    font-size: 18px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calendar-nav:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

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

.calendar-weekday {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    font-weight: 700;
    padding: 10px 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

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

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
    min-height: 45px;
}

.calendar-day:hover:not(.calendar-day-disabled):not(.calendar-day-other-month) {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
    transform: scale(1.05);
}

.calendar-day.calendar-day-selected {
    background: #fff;
    border-color: #fff;
    color: #222;
    font-weight: 700;
}

.calendar-day.calendar-day-today {
    border-color: rgba(0, 150, 180, 0.8);
    background: rgba(0, 150, 180, 0.1);
}

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

.calendar-day.calendar-day-other-month {
    opacity: 0.2;
    cursor: default;
}

@media (max-width: 480px) {
    .calendar-modal-container {
        padding: 20px;
    }
    
    .calendar-day {
        min-height: 38px;
        font-size: 13px;
    }
    
    .calendar-month-year {
        font-size: 14px;
        letter-spacing: 2px;
    }
}
