/* Google Fonts — Inter (premium sans-serif) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/**
 * Lightweight Event Booking — Frontend Styles
 *
 * EventPress-inspired design with:
 *   - Card grid with date badges
 *   - Filter bar
 *   - Single event page (hero, info bar, sidebar, ticket section)
 *   - Calendar
 *   - Responsive breakpoints
 *
 * @package LightweightEventBooking
 */

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
    --leb-accent:         #d63031;
    --leb-accent-hover:   #c0392b;
    --leb-accent-light:   #ffeaea;
    --leb-primary:        #2d3436;
    --leb-blue:           #0984e3;
    --leb-blue-dark:      #0652DD;
    --leb-purple:         #6c5ce7;
    --leb-green:          #00b894;
    --leb-green-bg:       #e8f8f5;
    --leb-orange:         #e17055;
    --leb-text:           #2d3436;
    --leb-text-secondary: #636e72;
    --leb-text-muted:     #b2bec3;
    --leb-border:         #dfe6e9;
    --leb-bg:             #ffffff;
    --leb-bg-subtle:      #f5f6fa;
    --leb-bg-dark:        #2d3436;
    --leb-radius:         8px;
    --leb-radius-lg:      12px;
    --leb-shadow:         0 2px 8px rgba(0,0,0,0.06);
    --leb-shadow-md:      0 4px 16px rgba(0,0,0,0.08);
    --leb-shadow-lg:      0 8px 30px rgba(0,0,0,0.12);
    --leb-font:           'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
    --leb-transition:     all 0.3s ease;
}

/* ============================================================
   2. WIDE LAYOUT WRAPPER

   Overrides the theme's narrow content area by setting a generous
   max-width on our elements directly. No viewport-width hacks.
   ============================================================ */
.leb-listing-header,
.leb-filter-bar,
.leb-event-grid {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
}

/* Force the theme's content container to allow wider children */
.entry-content:has(.leb-listing-header),
.entry-content:has(.leb-event-grid),
.wp-block-post-content:has(.leb-listing-header),
.wp-block-post-content:has(.leb-event-grid) {
    max-width: 1400px !important;
    width: 100% !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Also target block theme layouts */
body:has(.leb-event-grid) .wp-block-group.has-global-padding.is-layout-constrained,
body:has(.leb-event-grid) .is-layout-constrained > .wp-block-post-content {
    max-width: 1400px !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
}

/* ============================================================
   3. LISTING HEADER
   ============================================================ */
.leb-listing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 20px;
    padding-bottom: 10px;
    font-family: var(--leb-font);
}

.leb-listing-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: var(--leb-primary);
    letter-spacing: 0.1em;
    margin: 0 0 14px;
    word-spacing: 4px;
    text-transform: uppercase;
}

.leb-title-decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.leb-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--leb-accent);
    display: inline-block;
}

.leb-line {
    width: 52px;
    height: 3px;
    background: linear-gradient(90deg, var(--leb-accent), var(--leb-blue));
    border-radius: 2px;
    margin-left: 6px;
}

/* ============================================================
   3. FILTER BAR
   ============================================================ */
.leb-filter-bar {
    display: flex;
    gap: 14px;
    margin-bottom: 32px;
    background: var(--leb-bg);
    border: 1px solid var(--leb-border);
    border-radius: var(--leb-radius-lg);
    padding: 18px 24px;
    box-shadow: var(--leb-shadow-md);
    flex-wrap: wrap;
    font-family: var(--leb-font);
}

.leb-filter-item {
    flex: 1;
    min-width: 200px;
}

.leb-filter-item input,
.leb-filter-item select {
    width: 100%;
    height: 48px;
    padding: 12px 16px;
    border: 1px solid var(--leb-border) !important;
    border-radius: var(--leb-radius) !important;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--leb-text) !important;
    background-color: var(--leb-bg-subtle) !important;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: var(--leb-font);
    letter-spacing: 0.01em;
}

/* Select-specific fixes for theme overrides */
.leb-filter-item select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23636e72' stroke-width='1.5' fill='none'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 8px !important;
    padding-right: 40px;
    cursor: pointer;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leb-filter-item select option {
    background: #fff;
    color: var(--leb-text);
    padding: 8px;
}

.leb-filter-item input:focus,
.leb-filter-item select:focus {
    outline: none !important;
    border-color: var(--leb-accent) !important;
    box-shadow: 0 0 0 3px rgba(214, 48, 49, 0.08) !important;
    background-color: #fff !important;
}

.leb-filter-item input::placeholder {
    color: var(--leb-text-muted);
    font-weight: 400;
}

/* ============================================================
   4. EVENT GRID — CARD LAYOUT
   ============================================================ */
.leb-no-events {
    text-align: center;
    padding: 48px 20px;
    color: var(--leb-text-muted);
    font-size: 1.05rem;
    font-family: var(--leb-font);
}

.leb-event-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    font-family: var(--leb-font);
    margin-bottom: 40px;
}

/* --- Card --- */
.leb-event-card {
    background: var(--leb-bg);
    border: 1px solid var(--leb-border);
    border-radius: var(--leb-radius-lg);
    box-shadow: var(--leb-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: var(--leb-transition);
}

.leb-event-card:hover,
.leb-event-card.leb-hover {
    box-shadow: var(--leb-shadow-lg);
    transform: translateY(-6px);
    border-color: var(--leb-accent);
}

/* --- Card Image --- */
.leb-card-image-link {
    display: block;
    text-decoration: none;
}

.leb-card-image {
    height: 240px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.leb-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, rgba(0,0,0,0.08));
}

.leb-card-image-placeholder {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.leb-placeholder-icon {
    font-size: 3.5rem;
    opacity: 0.35;
}

/* --- Date Badge (overlaid on image) --- */
.leb-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, var(--leb-accent), #e74c3c);
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    text-align: center;
    min-width: 44px;
    box-shadow: 0 2px 8px rgba(214, 48, 49, 0.35);
    z-index: 2;
}

.leb-badge-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    line-height: 1.1;
}

.leb-badge-month {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* --- Card Body --- */
.leb-card-body {
    padding: 16px 18px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.leb-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.leb-card-title a {
    color: var(--leb-text);
    text-decoration: none;
    transition: color 0.2s;
}

.leb-card-title a:hover {
    color: var(--leb-accent);
}

.leb-card-price {
    font-size: 0.95rem;
    color: var(--leb-accent);
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: 0.01em;
}

.leb-card-price span {
    color: var(--leb-accent);
}

.leb-card-meta-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: auto;
}

.leb-card-meta-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 0.82rem;
    color: var(--leb-text-secondary);
    line-height: 1.4;
}

.leb-meta-icon {
    flex-shrink: 0;
    width: 16px;
    text-align: center;
    font-size: 0.85rem;
}

/* ============================================================
   5. SINGLE EVENT PAGE
   ============================================================ */
.leb-single-event {
    font-family: var(--leb-font);
    max-width: 1100px;
    margin: 0 auto;
}

/* --- Hero Image --- */
.leb-hero-image {
    border-radius: var(--leb-radius-lg);
    overflow: hidden;
    margin-bottom: 0;
    box-shadow: var(--leb-shadow-md);
}

.leb-hero-image img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 480px;
    object-fit: cover;
}

/* --- Info Bar (below hero image) --- */
.leb-info-bar {
    display: flex;
    gap: 0;
    background: var(--leb-bg-subtle);
    border: 1px solid var(--leb-border);
    border-top: none;
    border-radius: 0 0 var(--leb-radius-lg) var(--leb-radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
}

.leb-info-bar-item {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 24px;
    border-right: 1px solid var(--leb-border);
}

.leb-info-bar-item:last-child {
    border-right: none;
}

.leb-info-bar-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--leb-accent-light);
    border-radius: 50%;
    flex-shrink: 0;
}
.leb-info-bar-icon svg {
    color: var(--leb-accent);
}

.leb-info-bar-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--leb-text-secondary);
    margin-bottom: 2px;
}

.leb-info-bar-value {
    display: block;
    font-size: 0.92rem;
    color: var(--leb-text);
    font-weight: 500;
}

/* --- Two-Column Layout --- */
.leb-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    margin-bottom: 32px;
    align-items: start;
}

.leb-main-content {
    min-width: 0;
}

.leb-section-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--leb-text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--leb-border);
}

.leb-description-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--leb-text-secondary);
}

.leb-description-text p {
    margin-bottom: 14px;
}

.leb-desc-meta {
    margin-top: 18px;
    padding: 12px 16px;
    background: var(--leb-bg-subtle);
    border-radius: var(--leb-radius);
    font-size: 0.95rem;
    color: var(--leb-text);
}

/* --- Sidebar --- */
.leb-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.leb-sidebar-card {
    background: var(--leb-bg);
    border: 1px solid var(--leb-border);
    border-radius: var(--leb-radius);
    padding: 18px;
    box-shadow: var(--leb-shadow);
}

.leb-sidebar-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--leb-text);
    margin: 0 0 12px;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-color: var(--leb-border);
}

/* Organizer Card */
.leb-organizer-card {
    padding: 0;
    overflow: hidden;
}

.leb-organizer-header {
    padding: 16px 20px;
    background: linear-gradient(135deg, var(--leb-accent), #e74c3c);
    color: #fff;
    font-size: 0.95rem;
}

.leb-organizer-header strong {
    display: block;
    font-size: 1.1rem;
    margin-top: 4px;
}

/* Seats Card */
.leb-seats-card {
    padding: 0;
    overflow: hidden;
}

.leb-seats-row {
    display: flex;
}

.leb-seat-box {
    flex: 1;
    text-align: center;
    padding: 16px 12px;
    border-right: 1px solid var(--leb-border);
}

.leb-seat-box:last-child {
    border-right: none;
}

.leb-seat-label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--leb-text-secondary);
    margin-bottom: 6px;
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--leb-border);
}

.leb-seat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--leb-text);
}

.leb-seat-available {
    color: var(--leb-green);
}

/* Schedule Items */
.leb-schedule-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.88rem;
    color: var(--leb-text-secondary);
}

.leb-schedule-dot {
    color: var(--leb-accent);
    margin-top: 1px;
    flex-shrink: 0;
}

/* Location Text */
.leb-location-text {
    font-size: 0.92rem;
    color: var(--leb-text-secondary);
    margin: 0;
}

/* Share Icons */
.leb-share-card {
    text-align: center;
}

.leb-share-icons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}

.leb-share-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    transition: transform 0.2s, box-shadow 0.2s;
}

.leb-share-icon:hover {
    transform: scale(1.1);
    text-decoration: none;
}

.leb-share-fb { background: #3b5998; color: #fff; }
.leb-share-tw { background: #1da1f2; color: #fff; }
.leb-share-li { background: #0077b5; color: #fff; }
.leb-share-wa { background: #25d366; color: #fff; font-size: 1rem; }
.leb-share-em { background: #636e72; color: #fff; font-size: 0.9rem; }

/* ============================================================
   6. TICKET SECTION
   ============================================================ */
.leb-ticket-section {
    font-family: var(--leb-font);
    border: 1px solid var(--leb-border);
    border-radius: var(--leb-radius-lg);
    overflow: hidden;
    box-shadow: var(--leb-shadow-md);
    margin-top: 8px;
}

.leb-ticket-header {
    background: linear-gradient(135deg, var(--leb-accent), #e74c3c);
    padding: 14px 24px;
}

.leb-ticket-header h3 {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
}

.leb-ticket-date-select {
    padding: 16px 24px 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.leb-ticket-date-select label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--leb-text);
    white-space: nowrap;
}

.leb-ticket-date-dropdown {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--leb-border);
    border-radius: var(--leb-radius);
    font-size: 0.9rem;
    color: var(--leb-text);
    background: var(--leb-bg);
    max-width: 400px;
}

.leb-ticket-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    border-bottom: 1px solid var(--leb-border);
    gap: 16px;
    flex-wrap: wrap;
}

.leb-ticket-info {
    flex: 1;
    min-width: 160px;
}

.leb-ticket-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--leb-text);
    margin-bottom: 4px;
}

.leb-ticket-remaining {
    font-size: 0.82rem;
    color: var(--leb-green);
    font-weight: 600;
}

/* Quantity Controls */
.leb-qty-controls {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--leb-border);
    border-radius: var(--leb-radius);
    overflow: hidden;
}

.leb-qty-btn {
    width: 40px;
    height: 40px;
    border: none;
    background: var(--leb-bg-subtle);
    color: var(--leb-text);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.leb-qty-btn:hover {
    background: var(--leb-accent-light);
    color: var(--leb-accent);
}

.leb-qty-input {
    width: 50px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--leb-border);
    border-right: 1px solid var(--leb-border);
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    color: var(--leb-text);
    background: var(--leb-bg);
    -moz-appearance: textfield;
}

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

.leb-ticket-unit-price {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--leb-text);
    min-width: 100px;
    text-align: right;
}

/* Ticket Footer */
.leb-ticket-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: var(--leb-bg-subtle);
    gap: 16px;
    flex-wrap: wrap;
}

.leb-total-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--leb-accent);
}

#leb-total-amount {
    font-size: 1.2rem;
}

.leb-register-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, var(--leb-accent), #e74c3c);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: var(--leb-radius);
    cursor: pointer;
    transition: var(--leb-transition);
    box-shadow: 0 3px 10px rgba(214, 48, 49, 0.3);
    text-decoration: none;
}

.leb-register-btn:hover {
    background: linear-gradient(135deg, var(--leb-accent-hover), #c0392b);
    box-shadow: 0 5px 16px rgba(214, 48, 49, 0.4);
    transform: translateY(-1px);
    color: #fff;
}

.leb-register-btn:disabled {
    background: var(--leb-border);
    color: var(--leb-text-muted);
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.leb-ticket-unavailable {
    padding: 32px;
    text-align: center;
    color: var(--leb-text-muted);
}

/* ============================================================
   7. CALENDAR — [event_calendar]
   ============================================================ */
.leb-calendar {
    font-family: var(--leb-font);
    max-width: 900px;
    margin: 0 auto;
    background: var(--leb-bg);
    border: 1px solid var(--leb-border);
    border-radius: var(--leb-radius-lg);
    box-shadow: var(--leb-shadow-md);
    overflow: hidden;
}

.leb-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 24px;
    background: linear-gradient(135deg, var(--leb-accent), #e74c3c);
    color: #fff;
}

.leb-cal-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.leb-cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: 700;
    transition: background 0.2s;
}

.leb-cal-nav:hover {
    background: rgba(255,255,255,0.35);
    color: #fff;
    text-decoration: none;
}

.leb-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.leb-cal-day-header {
    text-align: center;
    padding: 12px 4px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--leb-text-muted);
    background: var(--leb-bg-subtle);
    border-bottom: 1px solid var(--leb-border);
}

.leb-cal-cell {
    min-height: 90px;
    padding: 6px 8px;
    border-right: 1px solid var(--leb-border);
    border-bottom: 1px solid var(--leb-border);
    position: relative;
    transition: background 0.15s;
}

.leb-cal-cell:nth-child(7n) {
    border-right: none;
}

.leb-cal-cell:hover {
    background: var(--leb-bg-subtle);
}

.leb-cal-empty {
    background: var(--leb-bg-subtle);
}

.leb-cal-day-num {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--leb-text-secondary);
    margin-bottom: 4px;
}

.leb-cal-today {
    background: var(--leb-accent-light);
}

.leb-cal-today .leb-cal-day-num {
    background: var(--leb-accent);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.leb-cal-has-event {
    background: #fef9e7;
}

.leb-cal-event-dot {
    display: block;
    font-size: 0.7rem;
    padding: 2px 6px;
    background: var(--leb-accent);
    color: #fff;
    border-radius: 4px;
    text-decoration: none;
    margin-top: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background 0.15s;
}

.leb-cal-event-dot:hover {
    background: var(--leb-accent-hover);
    color: #fff;
    text-decoration: none;
}

/* ============================================================
   8. SINGLE EVENT — THEME OVERRIDES
   
   Hides the theme's default post meta ("Written by … in …"),
   the duplicate featured image, and styles the page title
   to match our EventPress-like layout.
   ============================================================ */

/* Apply Inter font to all plugin elements */
:root {
    --leb-font: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/*
 * Hide theme's post meta on single event pages.
 * Targets all common theme selectors.
 */
body.single-event .entry-meta,
body.single-event .post-meta,
body.single-event .byline,
body.single-event .posted-on,
body.single-event .cat-links,
body.single-event .comments-link,
body.single-event .edit-link,
body.single-event .entry-footer,
body.single-event .post-categories,
body.single-event .post-author,
body.single-event .meta-info,
body.single-event .post-info,
body.single-event article > header .entry-meta,
body.single-event .entry-header .entry-meta,
body.single-event .hentry .entry-meta,
body.single-event .wp-block-post-author,
body.single-event .wp-block-post-date,
body.single-event .wp-block-post-terms {
    display: none !important;
}

/*
 * Block themes (Twenty Twenty Five, etc.) wrap post meta
 * in a wp-block-group with has-small-font-size.
 */
body.single-event .wp-block-group.has-small-font-size,
body.single-event .wp-block-group.has-accent-color.has-text-color.has-link-color,
body.single-event .wp-block-post-author-name,
body.single-event .wp-block-post-date,
body.single-event .wp-block-post-terms,
body.single-event .taxonomy-category {
    display: none !important;
}

/*
 * Event Title — premium styling.
 * Aligns with the max-width of .leb-single-event (1100px).
 */
body.single-event .entry-title,
body.single-event .wp-block-post-title,
body.single-event article > header h1,
body.single-event .entry-header h1 {
    font-family: var(--leb-font) !important;
    font-size: 2rem !important;
    font-weight: 800 !important;
    color: var(--leb-primary) !important;
    letter-spacing: -0.02em !important;
    line-height: 1.3 !important;
    margin: 0 auto 8px !important;
    max-width: 1100px !important;
    padding: 0 0 16px !important;
    border-bottom: 3px solid var(--leb-accent) !important;
    position: relative !important;
}

/* Constrain the entry header to match plugin content width */
body.single-event .entry-header,
body.single-event article > header {
    max-width: 1100px !important;
    margin: 0 auto 24px !important;
    padding: 0 !important;
}

/* Also constrain the entry content wrapper */
body.single-event .entry-content {
    max-width: 1100px !important;
    margin: 0 auto !important;
    padding: 0 !important;
}

/* Hide theme breadcrumbs if any on event pages */
body.single-event .breadcrumbs,
body.single-event .breadcrumb,
body.single-event .woocommerce-breadcrumb {
    display: none !important;
}

/* ============================================================
   9. RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) {
    .leb-event-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .leb-event-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .leb-content-wrapper {
        grid-template-columns: 1fr;
    }

    .leb-info-bar {
        flex-direction: column;
    }

    .leb-info-bar-item {
        border-right: none;
        border-bottom: 1px solid var(--leb-border);
    }

    .leb-info-bar-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 600px) {
    .leb-event-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .leb-filter-bar {
        flex-direction: column;
        gap: 8px;
    }

    .leb-filter-item {
        min-width: unset;
    }

    .leb-ticket-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .leb-ticket-footer {
        flex-direction: column;
        text-align: center;
    }

    .leb-register-btn {
        width: 100%;
        justify-content: center;
    }

    .leb-cal-cell {
        min-height: 60px;
        padding: 4px;
    }

    .leb-cal-event-dot {
        font-size: 0.6rem;
        padding: 1px 4px;
    }

    .leb-listing-title {
        font-size: 1.2rem;
    }
}
