/**
 * Event Booking System - Complete Public Styles
 * File: assets/css/public.css
 * Version: 1.010
 */

/* ==========================================================================
   GENERAL STYLES
   ========================================================================== */

.ebs-events-container {
    margin: 30px 0;
    color: #000!important;
}

.ebs-no-events {
    text-align: center;
    padding: 40px 20px;
    background: #f9f9f9!important;
    border-radius: 8px;
    color: #666!important;
}

.ebs-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none!important;
    background: #0073aa!important;
    color: #fff!important;
}

.ebs-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.ebs-button-primary, .ebs-book-now-btn {
    background: #0073aa!important;
    color: #fff!important;
}

.ebs-button-primary:hover {
    background: #005a87!important;
}

.ebs-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.ebs-icon {
    flex-shrink: 0;
}
.ebs-event-description {
    color:#000!important;
}

.ebs-tab-buttons button.ebs-tab-btn {
    background-color: #0073aa!important;
    color: #fff!important; 
    border-radius: 0!important;
}

.ebs-tab-buttons button.ebs-tab-btn:hover {
    text-decoration: underline;
}

.ebs-tab-buttons button.ebs-tab-btn.active {
    background-color: #fff!important;
    color: #0073aa!important;
}

.ebs-event-details-content h3, .ebs-event-details-content .ebs-schedule-item {
    color: #000!important;
}
label.ebs-car-type-option {
    color: #333!important;
}
/* ==========================================================================
   CALENDAR VIEW
   ========================================================================== */

.ebs-calendar-view {
    margin-top: 75px;
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.ebs-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.ebs-calendar-title {
    margin: 0;
    font-size: 28px;
    color: #333;
}

.ebs-calendar-nav {
    padding: 10px 20px;
    background: #f5f5f5;
    border-radius: 6px;
    text-decoration: none;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.ebs-calendar-nav:hover {
    background: #0073aa;
    color: #fff;
}

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

.ebs-weekday {
    text-align: center;
    font-weight: 700;
    color: #666;
    padding: 15px 0;
    background: #f9f9f9;
    border-radius: 6px;
}

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

.ebs-calendar-day {
    min-height: 100px;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    transition: all 0.3s ease;
}

.ebs-calendar-day.ebs-empty {
    background: #f9f9f9;
    border-color: transparent;
}

.ebs-calendar-day.is-today {
    border-color: #0073aa;
    background: #f5f9fc;
}

.ebs-calendar-day.has-events {
    border-color: #4caf50;
    cursor: pointer;
}

.ebs-calendar-day.has-events:hover {
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
    transform: translateY(-2px);
}

.ebs-day-number {
    font-weight: 700;
    font-size: 18px;
    color: #333;
    margin-bottom: 8px;
}

.ebs-day-events {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.ebs-day-event {
    display: block;
    padding: 6px 8px;
    background: #e3f2fd;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    color: #1976d2;
    transition: background 0.2s ease;
}

.ebs-day-event:hover {
    background: #bbdefb;
}

.ebs-event-time {
    font-weight: 600;
    display: block;
}

.ebs-event-title {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ebs-calendar-legend {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ebs-legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ebs-legend-dot {
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
}

.ebs-legend-dot.is-today {
    border-color: #0073aa;
    background: #f5f9fc;
}

.ebs-legend-dot.has-events {
    border-color: #4caf50;
    background: #fff;
}

/* ==========================================================================
   LIST VIEW
   ========================================================================== */

.ebs-list-view {
    margin-top: 75px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ebs-event-list-item {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.ebs-event-list-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    transform: translateY(-4px);
}

.ebs-event-row {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
}

.ebs-event-thumbnail {
    height: 100%;
    overflow: hidden;
}

.ebs-event-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ebs-event-list-item:hover .ebs-event-thumbnail img {
    transform: scale(1.1);
}

.ebs-event-details {
    padding: 30px;
    display: flex;
    flex-direction: column;
}

.ebs-event-title {
    margin: 0 0 15px 0;
    font-size: 24px;
}

.ebs-event-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.ebs-event-title a:hover {
    color: #0073aa;
}

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

.ebs-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.ebs-event-excerpt {
    margin-bottom: 20px;
    color: #555;
    line-height: 1.6;
    flex-grow: 1;
}

.ebs-event-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ebs-event-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ebs-price-label {
    color: #666;
    font-size: 14px;
}

.ebs-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
}

/* ==========================================================================
   GRID VIEW
   ========================================================================== */

.ebs-grid-view {
    margin-top: 75px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

.ebs-event-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.ebs-event-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    transform: translateY(-5px);
}

.ebs-event-image {
    position: relative;
    overflow: hidden;
    height: 220px;
}

.ebs-event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.ebs-event-card:hover .ebs-event-image img {
    transform: scale(1.15);
}

.ebs-event-categories {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.ebs-category-badge {
    padding: 6px 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: #0073aa;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ebs-event-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ebs-event-date-badge {
    width: 60px;
    height: 60px;
    background: #0073aa;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 15px;
    box-shadow: 0 4px 12px rgba(0,115,170,0.3);
}

.ebs-date-month {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.ebs-date-day {
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.ebs-event-meta-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #666;
}

/* ==========================================================================
   BOOKING FORM
   ========================================================================== */

.ebs-booking-form-container {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.ebs-form-step {
    display: none;
}

.ebs-form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

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

.ebs-form-step h3 {
    margin: 0 0 30px 0;
    font-size: 28px;
    color: #333;
    border-bottom: 3px solid #0073aa;
    padding-bottom: 15px;
}

.ebs-date-selection {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.ebs-date-option {
    position: relative;
    display: block;
    padding: 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ebs-date-option:hover {
    border-color: #0073aa;
    background: #f5f9fc;
    transform: translateY(-2px);
}

.ebs-date-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.ebs-date-option input[type="radio"]:checked ~ .ebs-date-display {
    color: #0073aa!important;
}

.ebs-date-option:has(input:checked) {
    border-color: #0073aa!important;
    background: #f5f9fc!important;
    box-shadow: 0 4px 12px rgba(0,115,170,0.15);
}

.ebs-date-display strong {
    color:#000;
    display: block;
    font-size: 18px;
    margin-bottom: 5px;
}

.ebs-date-full {
    color: #666;
    font-size: 14px;
}

/* Car Type Selection (Step 2) */
.ebs-car-type-selection {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.ebs-car-type-card {
    position: relative;
    display: block;
    padding: 30px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
}

.ebs-car-type-card:hover {
    border-color: #0073aa;
    background: #f5f9fc;
    transform: translateY(-2px);
}

.ebs-car-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.ebs-car-type-card:has(input:checked) {
    border-color: #0073aa !important;
    background: #f5f9fc !important;
    box-shadow: 0 4px 12px rgba(0,115,170,0.15);
}

.ebs-car-type-card input[type="radio"]:checked ~ .ebs-car-type-display {
    color: #0073aa !important;
}

.ebs-car-type-display strong {
    display: block;
    font-size: 20px;
    color: #333;
    margin-bottom: 8px;
}

.ebs-car-type-desc {
    display: block;
    color: #666;
    font-size: 14px;
}

.ebs-time-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 30px;
}

.ebs-time-slot {
    padding: 0;
    border: none;
    border-radius: 12px;
    background: transparent;
    transition: all 0.3s ease;
}

.ebs-slot-hidden {
    display: none;
}

.ebs-show-more-slots-wrap {
    text-align: center;
    margin-top: 10px;
    grid-column: 1 / -1;
}

.ebs-show-more-slots {
    background: none;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 10px 24px;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.ebs-show-more-slots:hover {
    border-color: #c00;
    color: #c00;
}

.ebs-slot-time {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.ebs-slot-availability {
    color: #4caf50;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

/* Simplified slot option (Step 3 - single car type already selected) */
.ebs-slot-option {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 18px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #333;
    background: #fff;
}

.ebs-slot-option:hover {
    border-color: #0073aa;
    background: #f5f9fc;
    transform: translateY(-1px);
}

.ebs-slot-option:has(input:checked) {
    border-color: #0073aa;
    background: #f5f9fc;
    box-shadow: 0 4px 12px rgba(0,115,170,0.15);
}

.ebs-slot-option input[type="radio"],
.ebs-slot-option input[type="checkbox"] {
    margin-right: 5px;
    flex-shrink: 0;
}

.ebs-slot-option .ebs-slot-time {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin-bottom: 0;
}

.ebs-slot-option .ebs-slot-availability {
    font-size: 13px;
    color: #4caf50;
    font-weight: 600;
    margin-bottom: 0;
}

.ebs-slot-price {
    margin-left: auto;
    font-weight: 700;
    font-size: 16px;
    color: #0073aa;
}

.ebs-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.ebs-form-field {
    margin-bottom: 20px;
}

.ebs-form-field label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #333;
}

.ebs-form-field .required {
    color: #dc3232;
}

.ebs-form-field .optional {
    color: #999;
    font-weight: 400;
}

.ebs-form-field input[type="text"],
.ebs-form-field input[type="email"],
.ebs-form-field input[type="tel"],
.ebs-form-field textarea {
    width: 100%;
    padding: 14px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
}

.ebs-form-field input:focus,
.ebs-form-field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0,115,170,0.1);
}

.ebs-reservation-timer {
    display: flex;
    align-items: center;
    gap: 15px;
    background: linear-gradient(135deg, #fff3cd 0%, #fff8e1 100%);
    border-left: 4px solid #ffc107;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.ebs-timer-icon {
    font-size: 32px;
}

.ebs-timer-label {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #856404;
}

.ebs-timer-display {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #f57c00;
    font-family: 'Courier New', monospace;
}

.ebs-form-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
    margin-top: 30px;
}

.ebs-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.ebs-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 15px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.ebs-form-messages {
    margin-top: 30px;
}

.ebs-message {
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.ebs-message-success {
    background: #d4edda;
    border-left: 4px solid #28a745;
    color: #155724;
}

.ebs-message-error {
    background: #f8d7da;
    border-left: 4px solid #dc3545;
    color: #721c24;
}

.ebs-feature span {
    color: #000!important;
}

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

@media (max-width: 1024px) {
    .ebs-grid-view {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
}

@media (max-width: 768px) {
    .ebs-calendar-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .ebs-calendar-title {
        font-size: 22px;
    }
    
    .ebs-calendar-day {
        min-height: 80px;
        padding: 8px;
    }
    
    .ebs-event-row {
        grid-template-columns: 1fr;
    }
    
    .ebs-event-thumbnail {
        height: 200px;
    }
    
    .ebs-grid-view {
        grid-template-columns: 1fr;
    }
    
    .ebs-booking-form-container {
        padding: 25px;
    }
    
    .ebs-form-row {
        grid-template-columns: 1fr;
    }
    
    .ebs-car-type-selection {
        grid-template-columns: 1fr;
    }

    .ebs-time-slots {
        grid-template-columns: 1fr;
    }

    .ebs-form-actions {
        flex-direction: column-reverse;
    }
    
    .ebs-button {
        width: 100%;
        justify-content: center;
    }
}

/* ==========================================================================
   WOOCOMMERCE CART — BOOKING ROW QUANTITY LOCK
   Themes often inject +/- buttons via JavaScript around the quantity cell.
   We hide every interactive quantity control on booking rows and show a
   plain "1" via JS (.ebs-qty-locked span).
   ========================================================================== */

tr.ebs-booking-cart-item .quantity button,
tr.ebs-booking-cart-item .quantity a,
tr.ebs-booking-cart-item .quantity input.qty,
tr.ebs-booking-cart-item .quantity .plus,
tr.ebs-booking-cart-item .quantity .minus,
tr.ebs-booking-cart-item .qty-btn {
    display: none !important;
}

.ebs-qty-locked {
    font-weight: 600;
    font-size: 1em;
    line-height: 1;
    display: inline-block;
}

@media (max-width: 480px) {
    .ebs-calendar-weekdays,
    .ebs-calendar-days {
        grid-template-columns: repeat(7, 1fr);
        gap: 5px;
    }
    
    .ebs-weekday {
        padding: 10px 5px;
        font-size: 12px;
    }
    
    .ebs-calendar-day {
        min-height: 60px;
        padding: 5px;
    }
    
    .ebs-day-number {
        font-size: 14px;
    }
    
    .ebs-day-event {
        font-size: 10px;
        padding: 4px;
    }
    
    .ebs-date-selection {
        grid-template-columns: 1fr;
    }
}
