/* WooCommerce Events Manager - Frontend Styles */

/**
 * CUSTOMIZATION GUIDE
 * 
 * To customize the booking modal styling, override these CSS variables in your theme:
 * 
 * Example - Add to your theme's CSS or Customizer:
 * 
 * :root {
 *     --ekp-modal-bg: #f5f5f5;                    // Modal background color
 *     --ekp-modal-border-radius: 16px;            // Modal corner radius
 *     --ekp-modal-border: 2px solid #333;         // Modal border
 *     --ekp-modal-overlay-bg: rgba(0, 0, 0, 0.8); // Dark overlay background
 *     
 *     --ekp-modal-header-bg: #1a1a1a;             // Header background
 *     --ekp-modal-header-color: #ffffff;          // Header text color
 *     
 *     --ekp-step-active-bg: #ff6b6b;              // Active step background
 *     --ekp-step-completed-bg: #51cf66;           // Completed step background
 *     
 *     --ekp-btn-primary-bg: #ff6b6b;              // Primary button background
 *     --ekp-btn-primary-hover-bg: #ee5a52;        // Primary button hover
 *     --ekp-btn-secondary-bg: #495057;            // Secondary button background
 *     --ekp-btn-secondary-hover-bg: #343a40;      // Secondary button hover
 * }
 */

:root {
    /* Modal Background & Border */
    --ekp-modal-bg: #ffffff;
    --ekp-modal-border-radius: 8px;
    --ekp-modal-border: none;
    --ekp-modal-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    --ekp-modal-overlay-bg: rgba(0, 0, 0, 0.7);
    
    /* Modal Header */
    --ekp-modal-header-bg: #ffffff;
    --ekp-modal-header-color: #333333;
    --ekp-modal-header-border: 1px solid #eeeeee;
    --ekp-modal-header-padding: 20px 30px;
    
    /* Modal Body */
    --ekp-modal-body-bg: #ffffff;
    --ekp-modal-body-padding: 30px;
    
    /* Progress Steps */
    --ekp-step-inactive-bg: #dddddd;
    --ekp-step-inactive-color: #999999;
    --ekp-step-active-bg: #0073aa;
    --ekp-step-active-color: #0073aa;
    --ekp-step-completed-bg: #46b450;
    --ekp-step-completed-color: #46b450;
    
    /* Navigation Buttons */
    --ekp-btn-primary-bg: #0073aa;
    --ekp-btn-primary-color: #ffffff;
    --ekp-btn-primary-hover-bg: #005a87;
    --ekp-btn-secondary-bg: #f0f0f0;
    --ekp-btn-secondary-color: #333333;
    --ekp-btn-secondary-hover-bg: #e0e0e0;
    
    /* Form Elements */
    --ekp-input-border: #dddddd;
    --ekp-input-focus-border: #0073aa;
    --ekp-input-bg: #ffffff;
    --ekp-label-color: #333333;
    --ekp-required-color: #dc3232;
}

/* Booking Form */
.ekp-booking-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ekp-booking-form h3 {
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.ekp-booking-field {
    margin-bottom: 15px;
}

.ekp-booking-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.ekp-booking-field .required {
    color: #e74c3c;
}

.ekp-booking-field input[type="date"],
.ekp-booking-field input[type="number"],
.ekp-booking-field select,
.ekp-booking-field textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.ekp-booking-field textarea {
    resize: vertical;
}

.ekp-loading-times {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
}

/* Booking Modal Styles */
.ekp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.ekp-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--ekp-modal-overlay-bg);
}

.ekp-modal-content {
    position: relative;
    background: var(--ekp-modal-bg);
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
    margin: 5vh auto;
    border-radius: var(--ekp-modal-border-radius);
    border: var(--ekp-modal-border);
    box-shadow: var(--ekp-modal-shadow);
    display: flex;
    flex-direction: column;
}

.ekp-modal-header {
    padding: var(--ekp-modal-header-padding);
    background: var(--ekp-modal-header-bg);
    border-bottom: var(--ekp-modal-header-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: var(--ekp-modal-border-radius) var(--ekp-modal-border-radius) 0 0;
}

.ekp-modal-header h2 {
    margin: 0;
    font-size: 1.5em;
    color: var(--ekp-modal-header-color);
}

.ekp-modal-close {
    background: none;
    border: none;
    font-size: 2em;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    color: #999;
}

.ekp-modal-close:hover {
    color: #333;
}

.ekp-modal-body {
    padding: var(--ekp-modal-body-padding);
    background: var(--ekp-modal-body-bg);
    overflow-y: auto;
    flex: 1;
}

.ekp-modal-footer {
    padding: 20px 30px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

body.ekp-modal-open {
    overflow: hidden;
}

/* Progress Indicator */
.ekp-booking-progress {
    display: flex;
    justify-content: space-between;
    margin-bottom: 30px;
    position: relative;
}

.ekp-booking-progress::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 2px;
    background: #ddd;
    z-index: 0;
}

.ekp-progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.ekp-progress-step .step-number {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    border-radius: 50%;
    background: var(--ekp-step-inactive-bg);
    color: #fff;
    font-weight: bold;
    margin-bottom: 5px;
}

.ekp-progress-step .step-label {
    display: block;
    font-size: 0.85em;
    color: var(--ekp-step-inactive-color);
}

.ekp-progress-step.active .step-number {
    background: var(--ekp-step-active-bg);
}

.ekp-progress-step.active .step-label {
    color: var(--ekp-step-active-color);
    font-weight: 600;
}

.ekp-progress-step.completed .step-number {
    background: var(--ekp-step-completed-bg);
}

.ekp-progress-step.completed .step-label {
    color: var(--ekp-step-completed-color);
}

/* Form Styles */
.ekp-booking-step {
    min-height: 300px;
}

.ekp-booking-step h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #333;
}

.ekp-form-group {
    margin-bottom: 20px;
}

.ekp-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--ekp-label-color);
}

.ekp-form-group .required {
    color: var(--ekp-required-color);
}

.ekp-select,
.ekp-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--ekp-input-border);
    background: var(--ekp-input-bg);
    border-radius: 4px;
    font-size: 14px;
}

.ekp-select:focus,
.ekp-input:focus {
    outline: none;
    border-color: var(--ekp-input-focus-border);
    box-shadow: 0 0 0 1px var(--ekp-input-focus-border);
}

.ekp-availability-info {
    display: inline-block;
    margin-left: 10px;
    font-size: 0.9em;
    color: #666;
}

/* Seat Picker */
.ekp-seat-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 8px;
    max-width: 600px;
    margin: 0 auto;
}

.ekp-seat {
    padding: 10px;
    border: 2px solid #ddd;
    background: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.ekp-seat.available:hover {
    border-color: #0073aa;
    background: #f0f9ff;
}

.ekp-seat.selected {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ekp-seat.unavailable {
    background: #f0f0f0;
    color: #999;
    cursor: not-allowed;
}

/* Menu Choices */
.ekp-guest-menu {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 15px;
}

.ekp-guest-menu h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

/* Review Section */
.ekp-booking-review {
    max-width: 600px;
}

.ekp-review-section {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.ekp-review-section:last-child {
    border-bottom: none;
}

.ekp-review-section h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: #0073aa;
}

.ekp-review-section p {
    margin: 8px 0;
    color: #333;
}

.ekp-review-total {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 4px;
}

.ekp-total-price {
    font-size: 1.5em;
    font-weight: bold;
    color: #0073aa;
}

.ekp-guest-menu-review {
    margin-bottom: 10px;
}

/* Buttons */
.ekp-btn-primary,
.ekp-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.ekp-btn-primary {
    background: var(--ekp-btn-primary-bg);
    color: var(--ekp-btn-primary-color);
}

.ekp-btn-primary:hover {
    background: var(--ekp-btn-primary-hover-bg);
}

.ekp-btn-secondary {
    background: var(--ekp-btn-secondary-bg);
    color: var(--ekp-btn-secondary-color);
}

.ekp-btn-secondary:hover {
    background: var(--ekp-btn-secondary-hover-bg);
}

/* Loading Spinner */
.ekp-modal-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

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

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

/* Responsive */
@media (max-width: 768px) {
    .ekp-modal-content {
        width: 95%;
        max-height: 95vh;
        margin: 2.5vh auto;
    }
    
    .ekp-modal-header,
    .ekp-modal-body,
    .ekp-modal-footer {
        padding: 15px 20px;
    }
    
    .ekp-booking-progress {
        flex-wrap: wrap;
    }
    
    .ekp-progress-step {
        flex-basis: 20%;
        margin-bottom: 10px;
    }
    
    .ekp-progress-step .step-label {
        font-size: 0.7em;
    }
    
    .ekp-seat-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 5px;
    }
}

/* Carousel */
.ekp-bookings-carousel-wrapper {
    margin: 20px 0;
    position: relative;
}

.swiper {
    padding: 10px 0;
}

.swiper-button-next,
.swiper-button-prev {
    color: #333;
}

.swiper-pagination-bullet-active {
    background: #333;
}

/* Arrow Positioning - Top Right */
.ekp-arrows-top-right .swiper-button-next,
.ekp-arrows-top-right .swiper-button-prev {
    top: -50px;
    bottom: auto;
}

.ekp-arrows-top-right .swiper-button-prev {
    right: 60px;
    left: auto;
}

.ekp-arrows-top-right .swiper-button-next {
    right: 10px;
    left: auto;
}

/* Booking Card */
.ekp-booking-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.ekp-booking-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ekp-booking-image {
    overflow: hidden;
    position: relative;
    padding-bottom: 66.67%; /* 3:2 aspect ratio */
}

.ekp-booking-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.ekp-booking-card:hover .ekp-booking-image img {
    transform: scale(1.05);
}

.ekp-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    font-size: 3em;
}

/* Match Height Feature */
.ekp-match-height .swiper-wrapper {
    align-items: stretch;
}

.ekp-match-height .swiper-slide {
    height: auto;
    display: flex;
}

.ekp-match-height .ekp-booking-card {
    width: 100%;
}

.ekp-booking-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ekp-booking-title {
    margin: 0 0 10px;
    font-size: 1.2em;
    line-height: 1.3;
}

.ekp-booking-title a {
    color: #333;
    text-decoration: none;
}

.ekp-booking-title a:hover {
    color: #007bff;
}

.ekp-booking-date {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9em;
}

.ekp-booking-location {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #666;
    font-size: 0.9em;
}

.ekp-booking-excerpt {
    color: #666;
    margin-bottom: 15px;
    flex: 1;
}

.ekp-booking-price {
    font-size: 1.2em;
    font-weight: bold;
    color: #007bff;
    margin-bottom: 15px;
}

.ekp-booking-actions {
    margin-top: auto;
}

/* No Content State - Image Only */
.ekp-booking-card.ekp-no-content {
    border: none;
    background: transparent;
}

.ekp-booking-card.ekp-no-content .ekp-booking-image {
    padding-bottom: 0;
    position: static;
}

.ekp-booking-card.ekp-no-content .ekp-booking-image img {
    position: static;
}

.ekp-book-now {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff !important;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
    text-align: center;
}

.ekp-book-now:hover {
    background: #0056b3;
}

/* Subtitle */
.ekp-booking-subtitle {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    opacity: 0.9;
}

/* Teaser */
.ekp-booking-teaser {
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 8px;
    opacity: 0.85;
}

/* Availability badge */
.ekp-booking-availability {
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
}
.ekp-avail-sold_out {
    color: #dc3545;
}
.ekp-avail-low_stock {
    color: #e67e22;
}
.ekp-avail-available {
    color: #28a745;
}

/* ============================================================
   Overlay layout
   ============================================================ */
.ekp-layout-overlay .ekp-overlay-card,
.ekp-overlay-card {
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    min-height: 380px;
    text-decoration: none !important;
    color: #fff !important;
}

a.ekp-overlay-card,
a.ekp-overlay-card:hover,
a.ekp-overlay-card:focus,
a.ekp-overlay-card:visited {
    color: #fff !important;
    text-decoration: none !important;
}

.ekp-overlay-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.ekp-overlay-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.ekp-overlay-card:hover .ekp-overlay-image img {
    transform: scale(1.05);
}

.ekp-overlay-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    flex: 1;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 60%, transparent 100%);
}

.ekp-overlay-content .ekp-booking-date {
    font-size: 1.6em;
    font-weight: 700;
    margin-bottom: 8px;
    color: #fff !important;
}

.ekp-overlay-content .ekp-booking-short-title {
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    margin: 0 0 4px;
    color: #fff !important;
}

.ekp-overlay-content .ekp-booking-title {
    margin: 0 0 4px;
    font-size: 1.1em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.25;
    color: #fff !important;
}

.ekp-overlay-content .ekp-booking-subtitle {
    font-size: 0.8em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    opacity: 0.9;
    color: #fff !important;
}

.ekp-overlay-content .ekp-booking-teaser {
    font-size: 0.9em;
    font-style: italic;
    margin-bottom: 10px;
    opacity: 0.85;
    color: #fff !important;
}

.ekp-overlay-content .ekp-booking-availability {
    font-size: 0.85em;
    font-weight: 600;
    color: #fff !important;
    opacity: 0.9;
}

.ekp-overlay-content .ekp-booking-price {
    font-size: 1em;
    font-weight: 600;
    color: #fff !important;
}

.ekp-overlay-content .ekp-book-now-btn {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s ease;
    cursor: pointer;
}

.ekp-overlay-card:hover .ekp-book-now-btn {
    background: rgba(255,255,255,0.35);
}

/* Ensure swiper slides fill overlay cards */
.ekp-layout-overlay .swiper-slide {
    height: auto;
    display: flex;
}

.ekp-layout-overlay.ekp-match-height .swiper-slide {
    align-items: stretch;
}

.ekp-layout-overlay .ekp-overlay-card {
    width: 100%;
    flex: 1;
}

/* Full Width Button */
.ekp-button-full .ekp-book-now {
    display: block;
    width: 100%;
}

/* Grid Layout */
.ekp-bookings-grid {
    display: grid;
    gap: var(--ekp-grid-gap, 30px);
    margin: 20px 0;
}

/* Match-height grids: stretch cards uniformly */
.ekp-bookings-grid.ekp-match-height .ekp-grid-item,
.ekp-bookings-grid.ekp-match-height .ekp-grid-item > .ekp-booking-card,
.ekp-bookings-grid.ekp-match-height .ekp-grid-item > .ekp-overlay-card {
    height: 100%;
}

.ekp-columns-1 { grid-template-columns: 1fr; }
.ekp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ekp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ekp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.ekp-columns-5 { grid-template-columns: repeat(5, 1fr); }
.ekp-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Grid items – ensure overlay cards stretch to fill the grid cell */
.ekp-bookings-grid .ekp-grid-item {
    display: flex;
}
.ekp-bookings-grid .ekp-grid-item > .ekp-overlay-card,
.ekp-bookings-grid .ekp-grid-item > .ekp-booking-card {
    flex: 1;
}

@media (max-width: 1024px) {
    .ekp-columns-4,
    .ekp-columns-5,
    .ekp-columns-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ekp-columns-3,
    .ekp-columns-4,
    .ekp-columns-5,
    .ekp-columns-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .ekp-bookings-grid {
        grid-template-columns: 1fr;
    }
}

/* List Layout */
.ekp-bookings-list {
    margin: 20px 0;
}

.ekp-list-item {
    margin-bottom: 20px;
}

.ekp-layout-list {
    display: flex;
    gap: 20px;
}

.ekp-layout-list .ekp-booking-image {
    flex: 0 0 200px;
    padding-bottom: 0;
    height: 150px;
}

.ekp-layout-list .ekp-booking-content {
    flex: 1;
}

/* Single Booking Template */
.ekp-single-booking-container {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 40px;
    margin: 40px 0;
}

.ekp-booking-image-gallery img {
    width: 100%;
    border-radius: 8px;
}

.ekp-booking-title {
    font-size: 2em;
    margin-bottom: 20px;
}

.ekp-booking-meta {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.ekp-meta-label {
    font-weight: 600;
    color: #666;
}

.ekp-booking-price {
    font-size: 1.8em;
    font-weight: bold;
    color: #007bff;
    margin: 20px 0;
}

.ekp-booking-features {
    margin: 30px 0;
}

.ekp-booking-features h3 {
    margin-bottom: 15px;
}

.ekp-booking-features ul {
    list-style: none;
    padding: 0;
}

.ekp-booking-features li {
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.ekp-booking-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

.ekp-booking-form-container,
.ekp-cancellation-policy,
.ekp-need-help {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.ekp-booking-form-container h3 {
    margin-top: 0;
}

@media (max-width: 1024px) {
    .ekp-single-booking-container {
        grid-template-columns: 1fr;
    }
    
    .ekp-booking-sidebar {
        position: static;
    }
}

/* Booking Info in Orders */
.ekp-booking-info {
    margin: 10px 0;
    padding: 10px;
    background: #f0f8ff;
    border-left: 3px solid #007bff;
}

/* Responsive */
@media (max-width: 768px) {
    .ekp-booking-form {
        padding: 15px;
    }
    
    .ekp-layout-list {
        flex-direction: column;
    }
    
    .ekp-layout-list .ekp-booking-image {
        flex: 0 0 auto;
        padding-bottom: 66.67%;
        height: auto;
    }
}

/* Single Event Display */
.ekp-single-event-display {
    max-width: 1200px;
    margin: 0 auto;
}

.ekp-single-event-display.ekp-layout-top {
    display: block;
}

.ekp-single-event-display.ekp-layout-left,
.ekp-single-event-display.ekp-layout-right {
    display: flex;
    align-items: flex-start;
    gap: 24px;
}

.ekp-single-event-display.ekp-layout-right {
    flex-direction: row-reverse;
}

.ekp-single-event-display.ekp-layout-left .ekp-event-image,
.ekp-single-event-display.ekp-layout-right .ekp-event-image {
    flex: 0 0 40%;
    max-width: 40%;
    margin-bottom: 0;
}

.ekp-single-event-display.ekp-layout-left .ekp-event-body,
.ekp-single-event-display.ekp-layout-right .ekp-event-body {
    flex: 1 1 auto;
    min-width: 0;
}

@media (max-width: 768px) {
    .ekp-single-event-display.ekp-layout-left,
    .ekp-single-event-display.ekp-layout-right {
        flex-direction: column;
    }
    .ekp-single-event-display.ekp-layout-left .ekp-event-image,
    .ekp-single-event-display.ekp-layout-right .ekp-event-image {
        flex: 1 1 auto;
        max-width: 100%;
    }
}

/* Split layout: image + description on left, booking on right */
.ekp-single-event-display.ekp-layout-split {
    display: grid;
    grid-template-columns: 60% 1fr;
    gap: 24px;
    align-items: start;
}

.ekp-single-event-display.ekp-layout-split .ekp-split-left,
.ekp-single-event-display.ekp-layout-split .ekp-split-right {
    min-width: 0;
}

.ekp-single-event-display.ekp-layout-split .ekp-event-image {
    margin-bottom: 24px;
}

.ekp-single-event-display.ekp-layout-split .ekp-event-image img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .ekp-single-event-display.ekp-layout-split {
        grid-template-columns: 1fr;
    }
}

/* Collapsible description with Read more / Read less toggle */
.ekp-event-description.ekp-collapsible {
    position: relative;
    overflow: hidden;
}

.ekp-event-description.ekp-collapsible.ekp-collapsed {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent 100%);
}

.ekp-event-description.ekp-collapsible.ekp-expanded {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    mask-image: none;
    -webkit-mask-image: none;
}

.ekp-description-toggle {
    display: inline-block;
    margin-top: 8px;
    padding: 0;
    background: none;
    border: 0;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.ekp-description-toggle:hover,
.ekp-description-toggle:focus {
    text-decoration: none;
}

.ekp-event-image {
    margin-bottom: 30px;
    border-radius: 8px;
    overflow: hidden;
}

.ekp-event-image img {
    width: 100%;
    height: auto;
}

.ekp-event-title {
    font-size: 2.5em;
    margin: 0 0 20px;
    line-height: 1.2;
}

.ekp-event-meta-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
}

.ekp-event-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1em;
}

.ekp-event-meta .ekp-icon {
    font-size: 1.2em;
}

.ekp-event-meta .ekp-icon img,
.ekp-event-meta .ekp-icon svg {
    display: inline-block;
    width: 1.2em;
    height: 1.2em;
    vertical-align: middle;
}

/* Sessions list inside Single Event widget */
.ekp-sessions-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 20px;
}

.ekp-session-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background-color: #fafafa;
}

.ekp-session-row.ekp-session-soldout {
    opacity: 0.6;
}

.ekp-session-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.ekp-session-label {
    font-weight: 600;
}

.ekp-session-meta {
    font-size: 0.9em;
    opacity: 0.8;
}

.ekp-book-now-btn.ekp-disabled {
    pointer-events: none;
    cursor: not-allowed;
    opacity: 0.65;
}

@media (max-width: 600px) {
    .ekp-session-row {
        flex-direction: column;
        align-items: stretch;
    }
    .ekp-session-action .ekp-book-now-btn {
        width: 100%;
        text-align: center;
    }
}

.ekp-event-price {
    font-size: 2em;
    font-weight: bold;
    color: #007bff;
    margin: 20px 0;
}

.ekp-event-description {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
}

.ekp-event-booking-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

@media (max-width: 768px) {
    .ekp-event-title {
        font-size: 1.8em;
    }
    
    .ekp-event-meta-wrapper {
        flex-direction: column;
        gap: 10px;
    }
    
    .ekp-event-price {
        font-size: 1.5em;
    }
    
    .ekp-event-booking-form {
        padding: 20px;
    }
}

/* Individual Event Widgets */
.ekp-event-location-widget,
.ekp-event-date-widget {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

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

.ekp-event-price-widget .prefix {
    font-size: 0.7em;
    opacity: 0.8;
}

.ekp-event-image-widget {
    display: block;
}

.ekp-event-image-widget img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

.ekp-event-description-widget {
    line-height: 1.6;
}

/* ========================================
   EVENT CALENDAR WIDGET
   ======================================== */

/* Calendar Container */
.ekp-calendar-widget {
    position: relative;
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
}

/* Calendar Views */
.ekp-calendar-widget .ekp-calendar-view {
    display: block;
    width: 100%;
    transition: opacity 200ms ease;
}

.ekp-calendar-widget .ekp-list-view {
    display: block;
    width: 100%;
    transition: opacity 200ms ease;
}

.ekp-calendar-widget.is-fading .ekp-calendar-view,
.ekp-calendar-widget.is-fading .ekp-list-view {
    opacity: 0;
}

/* Loading overlay */
.ekp-loading-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 150ms ease, visibility 0s linear 150ms;
    z-index: 10;
    pointer-events: none;
}

.ekp-calendar-widget.is-loading .ekp-loading-overlay {
    opacity: 1;
    visibility: visible;
    transition: opacity 150ms ease, visibility 0s linear 0s;
}

.ekp-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(0, 0, 0, 0.12);
    border-top-color: #8B1F3C;
    border-radius: 50%;
    animation: ekp-spin 0.8s linear infinite;
}

@keyframes ekp-spin {
    to { transform: rotate(360deg); }
}

/* Calendar Controls */
.ekp-calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.ekp-calendar-nav {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ekp-calendar-nav button {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    color: #666;
    transition: all 0.2s;
}

.ekp-calendar-nav button:hover {
    background: #f0f0f0;
    color: #333;
}

.ekp-calendar-nav button[disabled],
.ekp-calendar-nav button[aria-disabled="true"] {
    opacity: 0.35;
    cursor: not-allowed;
    background: transparent;
    color: inherit;
}

.ekp-calendar-nav button[disabled]:hover,
.ekp-calendar-nav button[aria-disabled="true"]:hover {
    background: transparent;
    color: inherit;
}

.ekp-calendar-nav button .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.ekp-calendar-title {
    margin: 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #333;
}

.ekp-view-switcher {
    display: flex;
    gap: 10px;
    align-items: center;
}

.ekp-view-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: #fff;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
    color: #666;
}

.ekp-view-btn:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.ekp-view-btn.active {
    background: #0073aa;
    color: #fff;
    border-color: #0073aa;
}

.ekp-view-btn .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

/* Calendar Grid */
.ekp-calendar-widget .ekp-calendar-grid {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 0;
    width: 100%;
}

/* Ensure grid items don't have display overrides */
.ekp-calendar-widget .ekp-calendar-grid > * {
    display: block !important;
    box-sizing: border-box;
}

.ekp-calendar-widget .ekp-calendar-day-header {
    padding: 15px 10px;
    text-align: center;
    font-weight: 600;
    background: #8B1F3C;
    color: #ffffff;
    font-size: 0.9em;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.ekp-calendar-widget .ekp-calendar-day-header:last-child {
    border-right: none;
}

.ekp-calendar-widget .ekp-calendar-day-header:nth-child(7) {
    border-right: none;
}

.ekp-calendar-widget .ekp-calendar-day {
    min-height: 120px;
    padding: 8px;
    border: 1px solid #e5e5e5;
    border-top: none;
    border-left: none;
    background: #ffffff;
    position: relative;
    display: block;
}

/* Remove right border from 7th column (Sunday) */
.ekp-calendar-widget .ekp-calendar-grid > *:nth-child(7n) {
    border-right: none !important;
}

.ekp-calendar-day.empty {
    background: #fafafa;
}

.ekp-calendar-day.today {
    background: #fff8e6;
    border-color: #ffcc00;
}

.ekp-day-number {
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    font-size: 0.95em;
}

.ekp-day-events {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ekp-calendar-event {
    display: block;
    padding: 6px 8px;
    background: #f9f9f9;
    border-radius: 4px;
    text-decoration: none;
    color: #8B1F3C;
    font-size: 0.85em;
    line-height: 1.3;
    transition: all 0.2s;
    border-left: 3px solid #8B1F3C;
}

.ekp-calendar-event:hover {
    background: #8B1F3C;
    color: #ffffff;
}

.ekp-event-title {
    display: block;
    font-weight: 500;
    margin-bottom: 2px;
}

.ekp-event-tag {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(139, 31, 60, 0.1);
    border-radius: 3px;
    font-size: 0.85em;
    color: #666;
}

.ekp-calendar-event:hover .ekp-event-tag {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.ekp-more-events {
    padding: 4px 8px;
    color: #666;
    font-size: 0.85em;
    font-style: italic;
    cursor: pointer;
}

.ekp-more-events:hover {
    color: #8B1F3C;
}

/* List View */
.ekp-list-container {
    padding: 20px;
}

.ekp-list-date-group {
    margin-bottom: 30px;
}

.ekp-list-date-header {
    background: #8B1F3C;
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 4px 4px 0 0;
    font-weight: 600;
    font-size: 1.1em;
}

.ekp-list-date-header .ekp-day-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 5px 12px;
    border-radius: 50%;
    margin: 0 5px;
    font-weight: 700;
}

.ekp-list-events {
    border: 1px solid #e5e5e5;
    border-top: none;
    border-radius: 0 0 4px 4px;
    background: #ffffff;
}

.ekp-list-event {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #e5e5e5;
    transition: all 0.2s;
}

.ekp-list-event:last-child {
    border-bottom: none;
}

.ekp-list-event:hover {
    background: #f9f9f9;
}

.ekp-list-event-title {
    margin: 0;
    flex: 1 1 auto;
    font-size: 1.1em;
    font-weight: 600;
    color: #8B1F3C;
}

.ekp-list-event:hover .ekp-list-event-title {
    color: #6B1730;
}

.ekp-list-event .ekp-event-tag {
    display: inline-block;
    padding: 4px 10px;
    background: #f0f0f0;
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
    flex: 0 0 auto;
}

.ekp-list-event-button {
    display: inline-block;
    flex: 0 0 auto;
    padding: 8px 16px;
    background: #8B1F3C;
    color: #ffffff;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;
}

.ekp-list-event:hover .ekp-list-event-button {
    background: #6B1730;
    color: #ffffff;
}

.ekp-no-events {
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Mobile Responsiveness */
@media (max-width: 1024px) {
    .ekp-calendar-day {
        min-height: 100px;
        font-size: 0.9em;
    }
    
    .ekp-calendar-event {
        font-size: 0.8em;
        padding: 4px 6px;
    }
}

@media (max-width: 768px) {
    .ekp-calendar-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .ekp-calendar-nav {
        width: 100%;
        justify-content: space-between;
    }
    
    .ekp-calendar-title {
        font-size: 1.2em;
    }
    
    .ekp-view-switcher {
        width: 100%;
        justify-content: center;
    }
    
    .ekp-switch-label {
        display: none;
    }
    
    /* Hide calendar grid, show list on mobile */
    .ekp-calendar-view {
        display: none !important;
    }
    
    .ekp-list-view {
        display: block !important;
    }
    
    .ekp-list-date-header {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .ekp-list-event {
        padding: 15px;
    }
    
    .ekp-list-event-title {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .ekp-calendar-day {
        min-height: 80px;
        padding: 5px;
    }
    
    .ekp-calendar-day-header {
        padding: 10px 5px;
        font-size: 0.75em;
    }
    
    .ekp-day-number {
        font-size: 0.85em;
    }
}

.ekp-event-book-button-widget .ekp-book-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 30px;
    background: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.ekp-event-book-button-widget .ekp-book-button.full-width {
    width: 100%;
    display: flex;
    justify-content: center;
}

.ekp-event-book-button-widget .ekp-book-button:hover {
    background: #0056b3;
    transform: translateY(-2px);
}

/* Event Sessions Widget */
.ekp-event-sessions-widget {
    width: 100%;
}

.ekp-sessions-container {
    width: 100%;
}

.ekp-sessions-loading {
    text-align: center;
    padding: 40px;
}

.ekp-spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    animation: ekp-spin 1s linear infinite;
}

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

.ekp-session-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
}

.ekp-session-header {
    margin-bottom: 15px;
}

.ekp-session-name {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: #8b1f3c;
}

.ekp-session-description {
    font-size: 15px;
    color: #555;
    margin: 0 0 12px 0;
    line-height: 1.5;
}

.ekp-session-attachments {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 15px 0;
}

.ekp-session-attachment {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.ekp-session-attachment:hover {
    background: #e8e8e8;
    border-color: #ccc;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.ekp-attachment-icon {
    font-size: 20px;
    line-height: 1;
}

.ekp-attachment-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ekp-attachment-title {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.ekp-attachment-size {
    font-size: 12px;
    color: #777;
}

.ekp-session-date {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 5px 0;
    color: #333;
}

.ekp-session-time {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.ekp-ticket-types {
    width: 100%;
    margin-top: 15px;
}

.ekp-ticket-type {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.ekp-ticket-type:hover {
    background: #f0f0f0;
    border-color: #ccc;
}

.ekp-ticket-info {
    flex: 1;
    pointer-events: none;
}

.ekp-ticket-name {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
    color: #333;
}

.ekp-ticket-price {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
    color: #666;
}

.ekp-ticket-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    z-index: 10;
}

.ekp-qty-btn {
    width: 50px;
    height: 50px;
    border: 2px solid #d0d0d0;
    background: #fff;
    color: #666;
    cursor: pointer;
    font-size: 24px;
    font-weight: 300;
    line-height: 1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0;
    flex-shrink: 0;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    position: relative;
    z-index: 100;
}

.ekp-qty-btn:hover {
    background: #8b7d6b;
    border-color: #8b7d6b;
    color: #fff;
}

.ekp-qty-plus {
    background: #8b7d6b;
    border-color: #8b7d6b;
    color: #fff;
}

.ekp-qty-plus:hover {
    background: #6d6253;
    border-color: #6d6253;
}

.ekp-ticket-qty {
    width: 80px;
    height: 50px;
    text-align: center;
    border: 2px solid #d0d0d0;
    background: #fff;
    color: #333;
    font-size: 18px;
    font-weight: 500;
    padding: 4px;
    border-radius: 8px;
    -moz-appearance: textfield;
}

.ekp-ticket-qty::-webkit-outer-spin-button,
.ekp-ticket-qty::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.ekp-sessions-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.ekp-subtotal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    font-size: 18px;
    font-weight: 600;
    padding: 15px 20px;
    margin-bottom: 15px;
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.ekp-subtotal-label {
    color: #333;
}

.ekp-subtotal-amount {
    color: #8b7d6b;
    font-size: 20px;
}

.ekp-add-tickets-to-cart {
    background: #8b7d6b;
    color: #fff;
    border: none;
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    min-width: 200px;
}

.ekp-add-tickets-to-cart:hover {
    background: #6d6253;
}

.ekp-add-tickets-to-cart:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* ========================================
   Event Categories Widget Styles
   ======================================== */

.ekp-event-categories {
    display: grid;
    gap: 20px;
    width: 100%;
}

/* Grid Layout */
.ekp-categories-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ekp-categories-grid.ekp-columns-1 { grid-template-columns: 1fr; }
.ekp-categories-grid.ekp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ekp-categories-grid.ekp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ekp-categories-grid.ekp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.ekp-categories-grid.ekp-columns-5 { grid-template-columns: repeat(5, 1fr); }
.ekp-categories-grid.ekp-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* Masonry Layout */
.ekp-categories-masonry {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
}

.ekp-categories-masonry.ekp-columns-1 { grid-template-columns: 1fr; }
.ekp-categories-masonry.ekp-columns-2 { grid-template-columns: repeat(2, 1fr); }
.ekp-categories-masonry.ekp-columns-3 { grid-template-columns: repeat(3, 1fr); }
.ekp-categories-masonry.ekp-columns-4 { grid-template-columns: repeat(4, 1fr); }
.ekp-categories-masonry.ekp-columns-5 { grid-template-columns: repeat(5, 1fr); }
.ekp-categories-masonry.ekp-columns-6 { grid-template-columns: repeat(6, 1fr); }

/* List Layout */
.ekp-categories-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Category Item */
.ekp-category-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
    min-height: 150px; /* Ensure minimum height even without images */
}

.ekp-category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Category Card */
.ekp-category-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 150px; /* Ensure visible height */
}

.ekp-categories-list .ekp-category-card {
    flex-direction: row;
}

/* Category Image */
.ekp-category-image {
    position: relative;
    width: 100%;
    overflow: hidden;
}

.ekp-categories-list .ekp-category-image {
    width: 200px;
    min-width: 200px;
}

.ekp-category-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.ekp-categories-list .ekp-category-image img {
    height: 100%;
}

.ekp-category-item:hover .ekp-category-image img {
    transform: scale(1.05);
}

/* Image Overlay */
.ekp-category-image.has-overlay {
    position: relative;
}

.ekp-category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #fff;
}

.ekp-category-overlay .ekp-category-name {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

.ekp-category-overlay .ekp-category-count {
    margin-top: 5px;
    font-size: 14px;
    opacity: 0.9;
}

/* Category Content */
.ekp-category-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.ekp-categories-list .ekp-category-content {
    flex: 1;
}

.ekp-category-name {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.ekp-category-name a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.ekp-category-name a:hover {
    color: #8b7d6b;
}

.ekp-category-description {
    margin: 0;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    flex: 1;
}

.ekp-category-count {
    color: #999;
    font-size: 13px;
    font-weight: 500;
}

.ekp-category-button {
    display: inline-block;
    padding: 10px 20px;
    background: #8b7d6b;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    transition: background 0.3s ease;
    align-self: flex-start;
}

.ekp-category-button:hover {
    background: #6d6253;
    color: #fff;
}

/* Card Style 2: All Content on Image */
.ekp-card-style-2 .ekp-category-overlay {
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    padding: 30px 20px;
}

/* Card Style 3: Title on Image, Content Below */
.ekp-card-style-3 .ekp-category-overlay {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
}

.ekp-card-style-3 .ekp-category-overlay .ekp-category-name {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

/* Card Style 4: Shape Divider */
.ekp-card-style-4 .ekp-category-card {
    overflow: visible;
}

.ekp-card-style-4 .ekp-category-image {
    position: relative;
}

.ekp-card-style-4 .ekp-category-overlay {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
    padding: 20px;
}

.ekp-card-style-4 .ekp-category-overlay .ekp-category-name {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
}

/* Shape: Tilt */
.ekp-card-style-4[data-shape="tilt"] .ekp-category-image {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.ekp-card-style-4[data-shape="tilt"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

/* Shape: Tilt - Flipped */
.ekp-card-style-4[data-shape="tilt"][data-shape-flip="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="tilt"][data-shape-flip="yes"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 85%);
}

/* Shape: Tilt - Inverted (top) */
.ekp-card-style-4[data-shape="tilt"][data-shape-invert="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="tilt"][data-shape-invert="yes"] .ekp-category-image img {
    clip-path: polygon(0 15%, 100% 0, 100% 100%, 0 100%);
}

/* Shape: Tilt - Flipped + Inverted */
.ekp-card-style-4[data-shape="tilt"][data-shape-flip="yes"][data-shape-invert="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="tilt"][data-shape-flip="yes"][data-shape-invert="yes"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 15%, 100% 100%, 0 100%);
}

/* Shape: Curve */
.ekp-card-style-4[data-shape="curve"] .ekp-category-image,
.ekp-card-style-4[data-shape="curve"] .ekp-category-image img {
    clip-path: ellipse(100% 93% at 50% 0%);
}

/* Shape: Curve - Inverted */
.ekp-card-style-4[data-shape="curve"][data-shape-invert="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="curve"][data-shape-invert="yes"] .ekp-category-image img {
    clip-path: ellipse(100% 93% at 50% 100%);
}

/* Shape: Opacity Tilt */
.ekp-card-style-4[data-shape="opacity-tilt"] .ekp-category-image,
.ekp-card-style-4[data-shape="opacity-tilt"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
}

/* Shape: Opacity Tilt - Flipped */
.ekp-card-style-4[data-shape="opacity-tilt"][data-shape-flip="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="opacity-tilt"][data-shape-flip="yes"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 90%);
}

/* Shape: Waves */
.ekp-card-style-4[data-shape="waves"] .ekp-category-image,
.ekp-card-style-4[data-shape="waves"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 85%, 90% 87%, 80% 90%, 70% 87%, 60% 85%, 50% 87%, 40% 90%, 30% 87%, 20% 85%, 10% 87%, 0 90%);
}

/* Shape: Waves - Inverted */
.ekp-card-style-4[data-shape="waves"][data-shape-invert="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="waves"][data-shape-invert="yes"] .ekp-category-image img {
    clip-path: polygon(0 10%, 10% 13%, 20% 15%, 30% 13%, 40% 10%, 50% 13%, 60% 15%, 70% 13%, 80% 10%, 90% 13%, 100% 15%, 100% 100%, 0 100%);
}

/* Shape: Mountains */
.ekp-card-style-4[data-shape="mountains"] .ekp-category-image,
.ekp-card-style-4[data-shape="mountains"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 90%, 90% 85%, 80% 92%, 70% 88%, 60% 95%, 50% 85%, 40% 93%, 30% 87%, 20% 94%, 10% 88%, 0 95%);
}

/* Shape: Mountains - Inverted */
.ekp-card-style-4[data-shape="mountains"][data-shape-invert="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="mountains"][data-shape-invert="yes"] .ekp-category-image img {
    clip-path: polygon(0 5%, 10% 12%, 20% 6%, 30% 13%, 40% 7%, 50% 15%, 60% 5%, 70% 12%, 80% 8%, 90% 15%, 100% 10%, 100% 100%, 0 100%);
}

/* Shape: Triangle */
.ekp-card-style-4[data-shape="triangle"] .ekp-category-image,
.ekp-card-style-4[data-shape="triangle"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 85%, 0 100%);
}

/* Shape: Triangle - Flipped */
.ekp-card-style-4[data-shape="triangle"][data-shape-flip="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="triangle"][data-shape-flip="yes"] .ekp-category-image img {
    clip-path: polygon(0 0, 50% 15%, 100% 0, 100% 100%, 0 100%);
}

/* Shape: Arrow */
.ekp-card-style-4[data-shape="arrow"] .ekp-category-image,
.ekp-card-style-4[data-shape="arrow"] .ekp-category-image img {
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
}

/* Shape: Arrow - Inverted */
.ekp-card-style-4[data-shape="arrow"][data-shape-invert="yes"] .ekp-category-image,
.ekp-card-style-4[data-shape="arrow"][data-shape-invert="yes"] .ekp-category-image img {
    clip-path: polygon(0 20%, 50% 0, 100% 20%, 100% 100%, 0 100%);
}

/* Content Positioning for Style 2 and Style 3 */
/* Top positions */
.ekp-position-top-left .ekp-category-overlay {
    justify-content: flex-start;
    align-items: flex-start;
    text-align: left;
}

.ekp-position-top-center .ekp-category-overlay {
    justify-content: flex-start;
    align-items: center;
    text-align: center;
}

.ekp-position-top-right .ekp-category-overlay {
    justify-content: flex-start;
    align-items: flex-end;
    text-align: right;
}

/* Center positions */
.ekp-position-center-left .ekp-category-overlay {
    justify-content: center;
    align-items: flex-start;
    text-align: left;
}

.ekp-position-center-center .ekp-category-overlay {
    justify-content: center;
    align-items: center;
    text-align: center;
}

.ekp-position-center-right .ekp-category-overlay {
    justify-content: center;
    align-items: flex-end;
    text-align: right;
}

/* Bottom positions */
.ekp-position-bottom-left .ekp-category-overlay {
    justify-content: flex-end;
    align-items: flex-start;
    text-align: left;
}

.ekp-position-bottom-center .ekp-category-overlay {
    justify-content: flex-end;
    align-items: center;
    text-align: center;
}

.ekp-position-bottom-right .ekp-category-overlay {
    justify-content: flex-end;
    align-items: flex-end;
    text-align: right;
}

/* Width constraints for left/right aligned content */
.ekp-position-top-left .ekp-category-overlay > *,
.ekp-position-center-left .ekp-category-overlay > *,
.ekp-position-bottom-left .ekp-category-overlay > * {
    max-width: 75%;
    align-self: flex-start;
}

.ekp-position-top-right .ekp-category-overlay > *,
.ekp-position-center-right .ekp-category-overlay > *,
.ekp-position-bottom-right .ekp-category-overlay > * {
    max-width: 75%;
    align-self: flex-end;
}

.ekp-card-style-2 .ekp-category-overlay .ekp-category-name {
    margin: 0;
    font-size: 28px;
}

.ekp-card-style-2 .ekp-category-overlay .ekp-category-description {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    line-height: 1.6;
    max-height: 4.8em; /* ~3 lines */
    overflow: hidden;
}

.ekp-card-style-2 .ekp-category-overlay .ekp-category-count {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.ekp-card-style-2 .ekp-category-overlay .ekp-category-button-wrapper {
    margin-top: 0;
}

.ekp-card-style-2 .ekp-category-overlay .ekp-category-button {
    display: inline-block;
    padding: 10px 24px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease;
    backdrop-filter: blur(10px);
}

.ekp-card-style-2 .ekp-category-overlay .ekp-category-button:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
}

/* Ensure Style 2 images have adequate min-height when no custom height set */
.ekp-card-style-2 .ekp-category-image img {
    min-height: 300px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .ekp-categories-grid.ekp-columns-tablet-1,
    .ekp-categories-masonry.ekp-columns-tablet-1 {
        grid-template-columns: 1fr;
    }
    
    .ekp-categories-grid.ekp-columns-tablet-2,
    .ekp-categories-masonry.ekp-columns-tablet-2 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .ekp-categories-grid.ekp-columns-tablet-3,
    .ekp-categories-masonry.ekp-columns-tablet-3 {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .ekp-categories-grid.ekp-columns-tablet-4,
    .ekp-categories-masonry.ekp-columns-tablet-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .ekp-categories-list .ekp-category-card {
        flex-direction: column;
    }
    
    .ekp-categories-list .ekp-category-image {
        width: 100%;
        min-width: 100%;
    }
    
    .ekp-categories-list .ekp-category-image img {
        height: 200px;
    }
    
    .ekp-categories-grid.ekp-columns-mobile-1,
    .ekp-categories-masonry.ekp-columns-mobile-1 {
        grid-template-columns: 1fr;
    }
    
    .ekp-categories-grid.ekp-columns-mobile-2,
    .ekp-categories-masonry.ekp-columns-mobile-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ========================================
   EVENT FEATURE WIDGET (2-COLUMN)
   ======================================== */

.ekp-event-feature {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 30px;
    flex-wrap: nowrap;
    box-sizing: border-box;
}

.ekp-event-feature .ekp-event-image {
    position: relative;
    overflow: hidden;
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    min-height: 400px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
    display: block;
    transition: filter 0.3s ease;
    padding: 0;
    margin: 0;
}

.ekp-event-feature .ekp-event-image:hover {
    filter: brightness(1.05);
}

.ekp-event-feature .ekp-event-details {
    display: flex;
    flex-direction: column;
    flex: 1 1 50%;
    max-width: 50%;
    min-width: 0;
    gap: 15px;
    box-sizing: border-box;
}

/* Inherit theme typography/colour by default; widget Style
   controls override per element via {{WRAPPER}} selectors. */
.ekp-event-feature .ekp-event-date,
.ekp-event-feature .ekp-event-title,
.ekp-event-feature .ekp-event-teaser,
.ekp-event-feature .ekp-event-price {
    color: inherit;
    font: inherit;
    margin: 0;
    padding: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.ekp-event-feature .ekp-event-title {
    line-height: 1.3;
    hyphens: auto;
}

.ekp-event-feature .ekp-price-prefix {
    font-weight: 400;
    opacity: 0.8;
}

/* Button: layout only. Colour, padding, radius and typography
   are all driven by widget Style controls (no defaults here). */
.ekp-event-feature .ekp-event-button {
    display: inline-block;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    border: none;
    cursor: pointer;
    margin: 0;
    width: auto;
}

.ekp-event-feature .ekp-event-button:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

/* Mobile Stacking */
@media (max-width: 768px) {
    .ekp-event-feature.mobile-stack {
        flex-direction: column;
    }

    .ekp-event-feature.mobile-stack .ekp-event-image,
    .ekp-event-feature.mobile-stack .ekp-event-details {
        max-width: 100%;
    }

    .ekp-event-feature .ekp-event-image {
        min-height: 300px;
    }
}

@media (max-width: 480px) {
    .ekp-event-feature .ekp-event-image {
        min-height: 250px;
    }
}
    }
}

/* =================================================================
   Event Detail — [ekp_event_detail] shortcode
   ================================================================= */

.ekp-event-detail {
    max-width: 1100px;
    margin: 0 auto;
}

/* ---- Header: image left 1/4, intro right 3/4 ---- */

.ekp-event-detail__header {
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 32px;
    margin-bottom: 40px;
    align-items: start;
}

.ekp-event-detail__image {
    border-radius: 12px;
    overflow: hidden;
}

.ekp-event-detail__image img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 3/4;
}

.ekp-event-detail__intro {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ekp-event-detail__tags {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ekp-tag {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
}

.ekp-tag--category {
    background: var(--ekp-tag-category-bg, #e8f5e9);
    color: var(--ekp-tag-category-color, #2e7d32);
}

.ekp-tag--type {
    background: var(--ekp-tag-type-bg, #e3f2fd);
    color: var(--ekp-tag-type-color, #1565c0);
}

.ekp-event-detail__title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.25;
}

.ekp-event-detail__description {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 16px;
}

.ekp-event-detail__description p {
    margin-bottom: 12px;
}

.ekp-event-detail__description p:last-child {
    margin-bottom: 0;
}

.ekp-event-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 8px;
}

.ekp-event-detail__meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    color: #555;
}

.ekp-event-detail__meta-item .ekp-icon {
    font-size: 18px;
}

.ekp-event-detail__date,
.ekp-event-detail__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    color: #555;
}

.ekp-event-detail__image {
    margin-bottom: 24px;
}

.ekp-event-detail__image img {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 10px;
}

.ekp-event-detail__actions {
    margin-top: 24px;
}

.ekp-event-detail__book-btn {
    display: inline-block;
    padding: 14px 36px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    background: var(--ekp-btn-primary-bg, #1976d2);
    color: #fff;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
}

.ekp-event-detail__book-btn:hover {
    background: var(--ekp-btn-primary-hover-bg, #1565c0);
}

/* ---- Sessions ---- */

.ekp-event-detail__sessions {
    margin-bottom: 32px;
}

.ekp-event-detail__sessions h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0 0 16px;
}

.ekp-session-card {
    background: #f9f9f9;
    border: 1px solid #e0e0e0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-bottom: 12px;
}

.ekp-session-card__header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.ekp-session-card__title {
    font-size: 17px;
    font-weight: 600;
    margin: 0;
}

.ekp-session-card__time {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #666;
}

.ekp-session-card__desc {
    margin: 0 0 8px;
    font-size: 14px;
    color: #555;
}

.ekp-session-card__availability {
    display: inline-block;
    font-size: 13px;
    color: #2e7d32;
    font-weight: 500;
}

/* ---- Tickets CTA bar ---- */

.ekp-event-detail__tickets-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px 28px;
    margin-bottom: 32px;
}

.ekp-event-detail__tickets-cta-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ekp-event-detail__tickets-cta-info h2 {
    font-size: 22px;
    font-weight: 600;
    margin: 0;
}

.ekp-event-detail__from-price {
    font-size: 15px;
    color: #666;
}

.ekp-book-now-btn--large {
    padding: 14px 40px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: var(--ekp-btn-primary-bg, #1976d2) !important;
    color: #fff !important;
    border: none !important;
    cursor: pointer;
    transition: background 0.2s;
}

.ekp-book-now-btn--large:hover {
    background: var(--ekp-btn-primary-hover-bg, #1565c0) !important;
}

/* ---- Responsive ---- */

@media (max-width: 768px) {
    .ekp-event-detail__header {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .ekp-event-detail__image img {
        aspect-ratio: 16/9;
        max-height: 300px;
    }

    .ekp-event-detail__title {
        font-size: 22px;
    }

    .ekp-event-detail__meta {
        flex-direction: column;
        gap: 10px;
    }

    .ekp-session-card__header {
        flex-direction: column;
    }

    .ekp-event-detail__tickets-cta {
        flex-direction: column;
        gap: 16px;
        text-align: center;
        padding: 20px;
    }
}

/* ---------------------------------------------------------------
   Category Events Archive
   --------------------------------------------------------------- */

.ekp-category-events-archive {
    width: 100%;
}

.ekp-category-header {
    margin-bottom: 30px;
}

.ekp-category-header__title {
    margin: 0 0 10px;
    font-size: 2em;
    font-weight: 700;
    line-height: 1.2;
}

.ekp-category-header__description {
    font-size: 1em;
    line-height: 1.6;
    color: #666;
}

.ekp-category-header__description p:last-child {
    margin-bottom: 0;
}

.ekp-no-events {
    padding: 40px 20px;
    text-align: center;
    color: #888;
    font-size: 1.1em;
}

