/**
 * Simple Hourly Booking - Public Styles
 * Professional, modern calendar and booking interface
 */

/* === MAIN CONTAINER === */
.shb-booking-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 6px -1px rgba(1, 30, 36, 0.1), 0 2px 4px -1px rgba(1, 30, 36, 0.06);
}

/* === HEADER SECTION === */
.shb-booking-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(1, 30, 36, 0.1);
}

.shb-booking-title {
    font-size: 2rem;
    font-weight: 700;
    color: #011e24;
    margin: 0 0 8px 0;
    letter-spacing: -0.025em;
}

.shb-booking-subtitle {
    font-size: 1.1rem;
    color: rgba(1, 30, 36, 0.7);
    margin: 0;
    font-weight: 400;
}

/* === CONTENT LAYOUT === */
.shb-booking-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 30px;
}

@media (max-width: 768px) {
    .shb-booking-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* === CALENDAR SECTION === */
.shb-calendar-section {
    background: rgba(1, 30, 36, 0.02);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(1, 30, 36, 0.1);
}

.shb-calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.shb-calendar-month-year {
    font-size: 1.25rem;
    font-weight: 600;
    color: #011e24;
    margin: 0;
    min-width: 180px;
    text-align: center;
}

.shb-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid rgba(1, 30, 36, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    color: rgba(1, 30, 36, 0.6);
}

.shb-calendar-nav:hover {
    background: rgba(1, 30, 36, 0.05);
    border-color: #011e24;
    color: #011e24;
    transform: translateY(-1px);
}

.shb-calendar-nav:active {
    transform: translateY(0);
}

.shb-calendar-grid {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid rgba(1, 30, 36, 0.15);
}

.shb-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: rgba(1, 30, 36, 0.03);
}

.shb-calendar-weekday {
    padding: 12px 8px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(1, 30, 36, 0.7);
    border-right: 1px solid rgba(1, 30, 36, 0.1);
}

.shb-calendar-weekday:last-child {
    border-right: none;
}

.shb-calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.shb-calendar-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    border-right: 1px solid #f3f4f6;
    border-bottom: 1px solid #f3f4f6;
    position: relative;
}

.shb-calendar-day:nth-child(7n) {
    border-right: none;
}

.shb-calendar-day.other-month {
    color: #d1d5db;
    background: #fafafa;
}

.shb-calendar-day.disabled {
    color: #d1d5db;
    cursor: not-allowed;
    background: #f9fafb;
}

.shb-calendar-day.today {
    background: rgba(1, 30, 36, 0.08);
    color: #011e24;
    font-weight: 600;
}

.shb-calendar-day.today::before {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: #011e24;
    border-radius: 50%;
}

.shb-calendar-day.selectable:hover {
    background: rgba(1, 30, 36, 0.05);
    color: #011e24;
    transform: scale(1.05);
}

.shb-calendar-day.selected {
    background: #011e24;
    color: #ffffff;
    font-weight: 600;
    transform: scale(1.05);
}

.shb-calendar-day.weekend {
    background: rgba(1, 30, 36, 0.1);
    color: #011e24;
    font-weight: 500;
}

.shb-calendar-day.weekend.selected {
    background: #011e24;
    color: #ffffff;
}

/* === SELECTED DATE INFO === */
.shb-selected-date-info {
    margin-top: 20px;
}

.shb-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(1, 30, 36, 0.1);
    color: #011e24;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 500;
}

.shb-date-badge.weekend {
    background: rgba(1, 30, 36, 0.15);
    color: #011e24;
    font-weight: 600;
}

/* === TIME SLOTS SECTION === */
.shb-timeslots-section {
    background: rgba(1, 30, 36, 0.02);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid rgba(1, 30, 36, 0.1);
}

.shb-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #011e24;
    margin: 0 0 20px 0;
}

.shb-timeslots-notice {
    text-align: center;
    padding: 40px 20px;
    color: rgba(1, 30, 36, 0.6);
    font-style: italic;
}

.shb-timeslots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.shb-timeslot {
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid rgba(1, 30, 36, 0.15);
    border-radius: 8px;
    text-align: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgba(1, 30, 36, 0.8);
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.shb-timeslot:hover {
    border-color: #011e24;
    background: rgba(1, 30, 36, 0.05);
    color: #011e24;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(1, 30, 36, 0.15);
}

.shb-timeslot.selected {
    background: #011e24;
    border-color: #011e24;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(1, 30, 36, 0.3);
}

.shb-timeslot.disabled {
    background: #f1f5f9;
    border-color: #e2e8f0;
    color: #cbd5e1;
    cursor: not-allowed;
}

.shb-timeslot.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* === PRICE SUMMARY SECTION === */
.shb-price-summary {
    background: linear-gradient(135deg, #011e24 0%, #034752 100%);
    border-radius: 12px;
    padding: 24px;
    color: #ffffff;
    margin-top: 20px;
}

.shb-summary-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #ffffff;
}

.shb-summary-content {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
}

.shb-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.shb-summary-row:last-child {
    margin-bottom: 0;
}

.shb-summary-label {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.shb-summary-value {
    font-weight: 600;
    color: #ffffff;
}

.shb-summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px 0;
}

.shb-discount-value {
    color: #34d399 !important;
}

.shb-total-row {
    font-size: 1.1rem;
    padding-top: 8px;
}

.shb-total-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.shb-summary-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shb-book-now-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 24px;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    color: #011e24;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(15px);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.shb-book-now-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.3);
}

.shb-book-now-btn:active {
    transform: translateY(0);
}

.shb-book-now-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.shb-book-now-btn.loading {
    pointer-events: none;
}

.shb-book-now-btn.loading::after {
    content: '';
    width: 18px;
    height: 18px;
    border: 2px solid rgba(1, 30, 36, 0.2);
    border-top: 2px solid #011e24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

.shb-clear-selection {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.shb-clear-selection:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

/* === ANIMATIONS === */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.shb-price-summary {
    animation: fadeIn 0.3s ease;
}

.shb-timeslots-grid {
    animation: fadeIn 0.3s ease;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 640px) {
    .shb-booking-container {
        padding: 15px;
        margin: 10px;
    }
    
    .shb-booking-title {
        font-size: 1.5rem;
    }
    
    .shb-calendar-section,
    .shb-timeslots-section {
        padding: 16px;
    }
    
    .shb-timeslots-grid {
        grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
        gap: 8px;
    }
    
    .shb-timeslot {
        padding: 10px 8px;
        font-size: 0.8rem;
    }
    
    .shb-calendar-day {
        font-size: 0.8rem;
    }
    
    .shb-calendar-month-year {
        font-size: 1.1rem;
        min-width: 140px;
    }
    
    .shb-calendar-nav {
        width: 36px;
        height: 36px;
    }
}

/* === ACCESSIBILITY === */
.shb-calendar-day:focus,
.shb-timeslot:focus,
.shb-calendar-nav:focus,
.shb-clear-selection:focus {
    outline: 2px solid #011e24;
    outline-offset: 2px;
}

/* === LOADING STATES === */
.shb-loading {
    opacity: 0.6;
    pointer-events: none;
}

.shb-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(1, 30, 36, 0.1);
    border-top: 2px solid #011e24;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}