/**
 * Edge Event System - CSS Framework
 * Comprehensive styling system with customization support
 */

/* ========================================
   CSS CUSTOM PROPERTIES (CSS VARIABLES)
   ======================================== */
:root {
    /* Primary Colors */
    --edge-primary-color: #667eea;
    --edge-primary-dark: #5a6fd8;
    --edge-primary-light: #7c8ef0;
    --edge-secondary-color: #764ba2;
    --edge-accent-color: #28a745;
    --edge-warning-color: #ffc107;
    --edge-danger-color: #dc3545;
    
    /* Neutral Colors */
    --edge-white: #ffffff;
    --edge-light-gray: #f8f9fa;
    --edge-medium-gray: #e0e0e0;
    --edge-dark-gray: #666666;
    --edge-text-color: #333333;
    --edge-text-muted: #646970;
    
    /* Typography */
    --edge-font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --edge-font-size-base: 16px;
    --edge-font-size-small: 14px;
    --edge-font-size-large: 18px;
    --edge-font-size-xl: 24px;
    --edge-line-height: 1.5;
    
    /* Spacing */
    --edge-spacing-xs: 5px;
    --edge-spacing-sm: 10px;
    --edge-spacing-md: 15px;
    --edge-spacing-lg: 20px;
    --edge-spacing-xl: 30px;
    --edge-spacing-xxl: 40px;
    
    /* Border Radius */
    --edge-border-radius-sm: 4px;
    --edge-border-radius-md: 8px;
    --edge-border-radius-lg: 12px;
    --edge-border-radius-xl: 16px;
    
    /* Shadows */
    --edge-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --edge-shadow-md: 0 4px 20px rgba(0, 0, 0, 0.1);
    --edge-shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.15);
    
    /* Transitions */
    --edge-transition-fast: 0.2s ease;
    --edge-transition-normal: 0.3s ease;
    --edge-transition-slow: 0.5s ease;
    
    /* Grid and Layout */
    --edge-container-max-width: 1200px;
    --edge-grid-gap: 20px;
    --edge-grid-columns: 3;
}

/* ========================================
   THEME VARIATIONS
   ======================================== */

/* Modern Theme */
.edge-theme-modern {
    --edge-primary-color: #667eea;
    --edge-secondary-color: #764ba2;
    --edge-border-radius-md: 12px;
    --edge-border-radius-lg: 16px;
}

/* Classic Theme */
.edge-theme-classic {
    --edge-primary-color: #0073aa;
    --edge-secondary-color: #005a87;
    --edge-border-radius-md: 4px;
    --edge-border-radius-lg: 6px;
}

/* Minimal Theme */
.edge-theme-minimal {
    --edge-primary-color: #333333;
    --edge-secondary-color: #666666;
    --edge-border-radius-md: 0px;
    --edge-border-radius-lg: 0px;
    --edge-shadow-md: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Dark Theme */
.edge-theme-dark {
    --edge-primary-color: #7c8ef0;
    --edge-secondary-color: #9b7bc7;
    --edge-white: #1a1a1a;
    --edge-light-gray: #2d2d2d;
    --edge-medium-gray: #404040;
    --edge-text-color: #ffffff;
    --edge-text-muted: #cccccc;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Spacing Utilities */
.edge-m-0 { margin: 0 !important; }
.edge-m-1 { margin: var(--edge-spacing-xs) !important; }
.edge-m-2 { margin: var(--edge-spacing-sm) !important; }
.edge-m-3 { margin: var(--edge-spacing-md) !important; }
.edge-m-4 { margin: var(--edge-spacing-lg) !important; }
.edge-m-5 { margin: var(--edge-spacing-xl) !important; }

.edge-p-0 { padding: 0 !important; }
.edge-p-1 { padding: var(--edge-spacing-xs) !important; }
.edge-p-2 { padding: var(--edge-spacing-sm) !important; }
.edge-p-3 { padding: var(--edge-spacing-md) !important; }
.edge-p-4 { padding: var(--edge-spacing-lg) !important; }
.edge-p-5 { padding: var(--edge-spacing-xl) !important; }

/* Text Utilities */
.edge-text-center { text-align: center !important; }
.edge-text-left { text-align: left !important; }
.edge-text-right { text-align: right !important; }
.edge-text-muted { color: var(--edge-text-muted) !important; }
.edge-text-primary { color: var(--edge-primary-color) !important; }
.edge-text-success { color: var(--edge-accent-color) !important; }
.edge-text-warning { color: var(--edge-warning-color) !important; }
.edge-text-danger { color: var(--edge-danger-color) !important; }

/* Display Utilities */
.edge-d-none { display: none !important; }
.edge-d-block { display: block !important; }
.edge-d-flex { display: flex !important; }
.edge-d-grid { display: grid !important; }

/* Flex Utilities */
.edge-justify-center { justify-content: center !important; }
.edge-justify-between { justify-content: space-between !important; }
.edge-align-center { align-items: center !important; }
.edge-flex-wrap { flex-wrap: wrap !important; }

/* Border Utilities */
.edge-border { border: 1px solid var(--edge-medium-gray) !important; }
.edge-border-0 { border: none !important; }
.edge-rounded { border-radius: var(--edge-border-radius-md) !important; }
.edge-rounded-lg { border-radius: var(--edge-border-radius-lg) !important; }

/* Shadow Utilities */
.edge-shadow-sm { box-shadow: var(--edge-shadow-sm) !important; }
.edge-shadow { box-shadow: var(--edge-shadow-md) !important; }
.edge-shadow-lg { box-shadow: var(--edge-shadow-lg) !important; }

/**
 * Public styles for Edge Event System
 */

/* ========================================
   RESPONSIVE GRID SYSTEM
   ======================================== */

.edge-container {
    max-width: var(--edge-container-max-width);
    margin: 0 auto;
    padding: 0 var(--edge-spacing-lg);
}

.edge-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 calc(-1 * var(--edge-grid-gap) / 2);
}

.edge-col {
    flex: 1;
    padding: 0 calc(var(--edge-grid-gap) / 2);
    margin-bottom: var(--edge-grid-gap);
}

/* Column Sizes */
.edge-col-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.edge-col-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.edge-col-3 { flex: 0 0 25%; max-width: 25%; }
.edge-col-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.edge-col-6 { flex: 0 0 50%; max-width: 50%; }
.edge-col-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.edge-col-9 { flex: 0 0 75%; max-width: 75%; }
.edge-col-12 { flex: 0 0 100%; max-width: 100%; }

/* Grid System */
.edge-grid {
    display: grid;
    gap: var(--edge-grid-gap);
}

.edge-grid-1 { grid-template-columns: 1fr; }
.edge-grid-2 { grid-template-columns: repeat(2, 1fr); }
.edge-grid-3 { grid-template-columns: repeat(3, 1fr); }
.edge-grid-4 { grid-template-columns: repeat(4, 1fr); }
.edge-grid-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* ========================================
   COMPONENT BASE STYLES
   ======================================== */

/* Reset all labels inside the form to prevent theme overrides */
.edge-event-form-container label,
.edge-event-form-container .form-group label,
.edge-event-form-container .radio-group label,
.edge-event-form-container .checkbox-label,
form.edge-event-form label {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    clip: auto !important;
    clip-path: none !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    text-indent: 0 !important;
    font-size: 14px !important;
    color: #333 !important;
    line-height: 1.4 !important;
    white-space: normal !important;
    letter-spacing: normal !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    float: none !important;
    transform: none !important;
}

/* Checkbox labels need flex, not block */
.edge-event-form-container .checkbox-label {
    display: flex !important;
}

/* Radio group labels need inline display */
.edge-event-form-container .radio-group label {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-right: 16px !important;
    cursor: pointer !important;
}

/* Form Container */
.edge-event-form-container {
    max-width: 800px;
    margin: 0 auto;
    padding: var(--edge-spacing-lg);
    font-family: var(--edge-font-family);
}

/* Progress Indicator */
.edge-form-progress {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.progress-steps {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-steps .step {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    transition: color 0.3s ease;
}

.progress-steps .step.active {
    color: #667eea;
    font-weight: 600;
}

.progress-steps .step.completed {
    color: #28a745;
}

/* Form Steps */
.edge-event-form {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 40px;
    min-height: 500px;
}

.form-step {
    display: none;
    animation: slideIn 0.3s ease-out;
}

.form-step.active {
    display: block;
}

.form-step h3 {
    margin: 0 0 30px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Event Type Cards */
.event-type-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.event-type-card {
    cursor: pointer !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 12px !important;
    padding: 30px 20px !important;
    text-align: center !important;
    transition: all 0.3s ease;
    background: #fff !important;
    position: relative !important;
    overflow: hidden !important;
    height: auto !important;
    max-height: none !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.event-type-card:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.event-type-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.event-type-card input[type="radio"]:checked + .card-content {
    color: #667eea;
}

.event-type-card input[type="radio"]:checked + .card-content::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    border-radius: 10px;
}

.card-content {
    position: relative;
    z-index: 1;
}

/* ---- Day-of-week chips (recurring) ---- */
.edge-dow-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.edge-dow-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 42px;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
    cursor: pointer;
    transition: all 0.15s;
}

.edge-dow-chip:hover {
    border-color: #667eea;
    background: #f5f3ff;
}

.edge-dow-chip.active {
    border-color: #667eea;
    background: #667eea;
    color: #fff;
}

/* ---- Monthly sub-options ---- */
.recurring-monthly-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recurring-monthly-options .radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.recurring-monthly-options .radio-text {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.recurring-monthly-options select {
    padding: 6px 8px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
}

/* ---- Recurring preview ---- */
.recurring-preview {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 10px;
    padding: 16px 20px;
    margin-top: 16px;
}

.recurring-preview-summary {
    font-weight: 700;
    font-size: 15px;
    color: #166534;
    margin-bottom: 10px;
}

.recurring-preview-dates {
    font-size: 13px;
    color: #374151;
    line-height: 1.7;
}

.recurring-preview-dates .preview-label {
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 4px;
}

.card-icon {
    font-size: 32px;
    margin-bottom: 15px;
}

.event-type-card h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
}

.event-type-card p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Form Groups */
.form-group {
    margin-bottom: 25px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 25px;
}

.edge-event-form .form-group label {
    display: block !important;
    margin-bottom: 8px !important;
    font-weight: 600 !important;
    color: #333 !important;
    font-size: 14px !important;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    box-sizing: border-box;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background: #fff;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-control.error {
    border-color: #dc3545;
}

.form-control.success {
    border-color: #28a745;
}

/* ---- Rich-text editor toolbar ---- */
.edge-editor-wrap {
    position: relative;
}

.edge-toolbar {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background: #f8fafc;
    border: 2px solid #e0e0e0;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    flex-wrap: wrap;
}

.edge-toolbar__block-type {
    padding: 4px 8px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 13px;
    background: #fff;
    cursor: pointer;
    color: #374151;
}

.edge-toolbar__sep {
    width: 1px;
    height: 22px;
    background: #d1d5db;
    margin: 0 4px;
}

.edge-toolbar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 4px;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
    transition: background 0.15s, color 0.15s;
    line-height: 1;
}

.edge-toolbar__btn:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.edge-toolbar__btn.active {
    background: #6366f1;
    color: #fff;
}

.edge-richtext {
    min-height: 160px;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 0 0 8px 8px;
    font-size: 16px;
    line-height: 1.6;
    background: #fff;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    overflow-y: auto;
    max-height: 400px;
}

.edge-richtext:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.edge-richtext:empty:before {
    content: attr(data-placeholder);
    color: #9ca3af;
    pointer-events: none;
}

.edge-richtext h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin: 0.5em 0 0.3em;
}

.edge-richtext h2 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0.5em 0 0.3em;
}

.edge-richtext p {
    margin: 0 0 0.5em;
}

.edge-richtext ul {
    margin: 0 0 0.5em 1.5em;
    padding: 0;
}

/* ---- What Three Words field ---- */
.w3w-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.w3w-prefix {
    font-weight: 700;
    font-size: 18px;
    color: #e11d48;
    flex-shrink: 0;
    line-height: 1;
}

.w3w-input-row .form-control {
    flex: 1;
}

.w3w-find-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    background: #e11d48;
    color: #fff !important;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    flex-shrink: 0;
}

.w3w-find-btn:hover {
    background: #be123c;
    color: #fff !important;
}

.w3w-find-btn svg {
    flex-shrink: 0;
}

/* ---- W3W link on single event ---- */
.edge-single__w3w-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #e11d48;
    text-decoration: none;
    transition: color 0.2s;
}

.edge-single__w3w-link:hover {
    color: #be123c;
}

.edge-single__w3w-badge {
    display: inline-block;
    background: #e11d48;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    line-height: 1.3;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .w3w-input-row {
        flex-wrap: wrap;
    }
    .w3w-find-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Date/Time Section Headers */
.date-time-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #e0e0e0;
}

.date-time-header h4 {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.date-time-header p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

/* Input with Icons */
.input-with-icon {
    position: relative;
}

.date-picker-icon,
.time-picker-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    pointer-events: none;
    opacity: 0.6;
    z-index: 1;
    /* Position over the native icon area */
}

.input-with-icon .form-control {
    padding-right: 40px;
}

/* Time Groups */
.time-group {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    gap: 20px;
    align-items: end;
}

.end-time-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
    margin: 0;
    padding: 8px 12px;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.toggle-label:hover {
    background-color: #f8f9fa;
}

.toggle-text {
    font-size: 14px;
    color: #666;
}

.time-group .form-group {
    flex: 0 0 150px; /* Fixed width for time fields */
    min-width: 0;
}

.time-group .form-control {
    width: 100%;
    max-width: 150px; /* Limit the maximum width */
}

.end-time-group {
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
}

.end-time-group.visible {
    opacity: 1;
}

/* Multiple Dates */
.multiple-dates-container {
    margin-bottom: 20px;
}

.date-range-item {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    position: relative;
    transition: all 0.3s ease;
}

.date-range-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.1);
}

.date-range-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.date-range-counter {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-range-counter::before {
    content: '📅';
    font-size: 14px;
}

.date-range-item .remove-date {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 8px 12px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.date-range-item .remove-date:hover {
    background-color: #c82333;
    transform: translateY(-1px);
}

/* Recurring Event */
.recurring-pattern-section,
.recurring-end-section {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e0e0e0;
}

.interval-group {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px 12px;
    transition: border-color 0.3s ease;
}

.interval-group:focus-within {
    border-color: #667eea;
}

.interval-prefix {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.interval-group input {
    width: 60px;
    border: none;
    padding: 4px;
    text-align: center;
    font-weight: 600;
}

.interval-group input:focus {
    outline: none;
}

.interval-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.radio-option {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: normal;
    cursor: pointer;
    padding: 12px 16px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    background: white;
    transition: all 0.3s ease;
}

.radio-option:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.05);
}

.radio-option input[type="radio"] {
    margin: 0;
}

.radio-option input[type="radio"]:checked + .radio-icon + .radio-text {
    color: #667eea;
    font-weight: 600;
}

.radio-option input[type="radio"]:checked {
    accent-color: #667eea;
}

.radio-icon {
    font-size: 16px;
    opacity: 0.8;
}

.radio-text {
    font-size: 14px;
    color: #333;
}

/* Recurring Preview */
.recurring-preview {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 25px;
    margin-top: 25px;
}

.recurring-preview h4 {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.recurring-preview h4::before {
    content: '👁️';
    font-size: 16px;
}

.preview-content {
    color: rgba(255, 255, 255, 0.95);
}

.preview-empty {
    font-style: italic;
    opacity: 0.8;
    margin: 0;
}

.preview-description {
    margin-bottom: 20px;
}

.preview-description p {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.preview-dates h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    opacity: 0.9;
}

.sample-dates {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sample-dates li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 14px;
}

.sample-dates li:last-child {
    border-bottom: none;
}

.preview-note {
    margin: 12px 0 0 0;
    font-size: 12px;
    opacity: 0.8;
    font-style: italic;
}

/* Image Upload */
.image-upload-area {
    position: relative;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    padding: 40px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #fafafa;
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

/* Ensure upload area behaves like a block element */
div.image-upload-area {
    display: flex;
    margin-bottom: 0;
}

.image-upload-area:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.02);
    transform: translateY(-2px);
}

.image-upload-area.dragover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.08);
    border-style: solid;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

/* File input is hidden via inline style; click is handled by JS */

.upload-placeholder {
    pointer-events: none;
    width: 100%;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.image-upload-area:hover .upload-icon {
    opacity: 0.8;
    transform: scale(1.1);
}

.upload-placeholder p {
    margin: 0 0 8px 0;
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.upload-placeholder small {
    color: #666;
    font-size: 14px;
    display: block;
    margin-top: 5px;
}

.upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.upload-loading .loading-spinner {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

.upload-loading p {
    margin: 0;
    color: #667eea;
    font-weight: 500;
}

.media-library-btn {
    font-size: 12px;
    padding: 6px 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
}

.media-library-btn:hover {
    background: white;
    border-color: #667eea;
    color: #667eea;
}

/* Image Preview */
.image-preview {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    background: white;
}

.preview-container {
    position: relative;
}

.preview-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.image-info {
    padding: 15px;
    background: white;
    border-top: 1px solid #f0f0f0;
}

.file-name {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 5px;
    word-break: break-word;
}

.file-size {
    font-size: 12px;
    color: #666;
}

.remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.remove-image:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Image upload states are handled by .image-upload-area.success / .error classes */

/* Responsive Image Upload */
@media (max-width: 768px) {
    .image-upload-area {
        padding: 30px 15px;
        min-height: 150px;
    }
    
    .upload-icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .upload-placeholder p {
        font-size: 14px;
    }
    
    .upload-placeholder small {
        font-size: 12px;
    }
    
    .image-preview {
        max-width: 100%;
    }
    
    .preview-image {
        max-height: 200px;
    }
    
    .media-library-btn {
        font-size: 11px;
        padding: 4px 8px;
    }
}

@media (max-width: 480px) {
    .image-upload-area {
        padding: 20px 10px;
        min-height: 120px;
    }
    
    .upload-icon {
        font-size: 28px;
    }
    
    .image-info {
        padding: 10px;
    }
    
    .file-name {
        font-size: 13px;
    }
    
    .file-size {
        font-size: 11px;
    }
}

/* Price Input */
.price-input {
    display: flex;
    align-items: center;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.price-input:focus-within {
    border-color: #667eea;
}

.currency {
    background: #f8f9fa;
    padding: 12px 16px;
    font-weight: 600;
    color: #666;
    border-right: 1px solid #e0e0e0;
}

.price-input input {
    border: none;
    padding: 12px 16px;
    flex: 1;
}

.price-input input:focus {
    outline: none;
    box-shadow: none;
}

/* Social Links */
.social-links-container {
    margin-bottom: 15px;
}

/* Social Links Empty State */
.social-empty-state {
    text-align: center;
    padding: 40px 20px;
    background: #f8f9fa;
    border: 2px dashed #e0e0e0;
    border-radius: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.social-empty-state:hover {
    border-color: #667eea;
    background-color: rgba(102, 126, 234, 0.02);
}

.empty-state-icon {
    font-size: 32px;
    margin-bottom: 12px;
    opacity: 0.6;
}

.social-empty-state p {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 500;
}

.social-empty-state small {
    font-size: 14px;
    opacity: 0.8;
}

/* Social Link Items */
.social-link-item {
    background: #fff;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
    position: relative;
}

.social-link-item:hover {
    border-color: #667eea;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.1);
}

.social-link-item.has-error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.02);
}

.social-link-item.is-valid {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.02);
}

/* Social Link Header */
.social-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #f0f0f0;
}

.social-link-number {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-link-number::before {
    content: '🔗';
    font-size: 16px;
    opacity: 0.7;
}

.remove-social {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: bold;
}

.remove-social:hover {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
    transform: scale(1.1);
}

.remove-icon {
    line-height: 1;
}

/* Social Link Fields */
.social-link-fields {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
    margin-bottom: 15px;
}

.platform-field,
.url-field {
    display: flex;
    flex-direction: column;
}

.platform-field label,
.url-field label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.platform-select,
.url-input {
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: white;
}

.platform-select:focus,
.url-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.platform-select:disabled,
.url-input:disabled {
    background: #f8f9fa;
    color: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.url-input.success {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.02);
}

.url-input.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.02);
}

/* URL Validation Feedback */
.url-validation-feedback {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.url-validation-feedback.valid {
    color: #28a745;
}

.url-validation-feedback.invalid {
    color: #dc3545;
}

/* Social Link Preview */
.social-link-preview {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.preview-content {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
}

.platform-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.platform-name {
    font-weight: 600;
    color: #333;
    min-width: 80px;
}

.url-preview {
    color: #667eea;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    word-break: break-all;
    flex: 1;
}

/* Add Social Link Button */
.add-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #c0c0c0;
    border-radius: 12px;
    color: #666;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.add-social-link:hover {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #667eea;
    transform: translateY(-1px);
}

.add-social-link .plus-icon {
    font-size: 18px;
    font-weight: bold;
}

/* Social Links Display (Frontend) */
.event-social-links {
    margin-top: 20px;
}

.social-links-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.social-links-title::before {
    content: '🔗';
    font-size: 14px;
    opacity: 0.7;
}

.social-links-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.social-link-icon {
    font-size: 16px;
}

.social-link-text {
    font-size: 13px;
}

/* Platform-specific colors */
.social-link.facebook:hover {
    background: #1877f2;
    border-color: #1877f2;
}

.social-link.twitter:hover {
    background: #1da1f2;
    border-color: #1da1f2;
}

.social-link.instagram:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: #bc1888;
}

.social-link.linkedin:hover {
    background: #0077b5;
    border-color: #0077b5;
}

.social-link.youtube:hover {
    background: #ff0000;
    border-color: #ff0000;
}

.social-link.tiktok:hover {
    background: #000000;
    border-color: #000000;
}

.social-link.website:hover {
    background: #28a745;
    border-color: #28a745;
}

/* Responsive Social Links */
@media (max-width: 768px) {
    .social-link-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .social-link-item {
        padding: 15px;
    }
    
    .social-link-header {
        margin-bottom: 15px;
        padding-bottom: 12px;
    }
    
    .social-links-list {
        gap: 8px;
    }
    
    .social-link {
        padding: 6px 10px;
        font-size: 13px;
    }
    
    .social-link-icon {
        font-size: 14px;
    }
    
    .social-link-text {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .social-link-item {
        padding: 12px;
    }
    
    .social-link-fields {
        gap: 12px;
    }
    
    .platform-select,
    .url-input {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .social-links-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .social-link {
        width: 100%;
        justify-content: flex-start;
    }
    
    .url-preview {
        font-size: 11px;
    }
}

/* Checkbox Labels */
.edge-event-form .checkbox-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    font-weight: normal !important;
    line-height: 1.5 !important;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 2px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background: #5a6268;
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
}

.btn-success:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #c82333;
}

/* Form Navigation */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.form-navigation .btn {
    min-width: 120px;
}

/* Success Message */
.form-success {
    text-align: center;
    padding: 60px 40px;
}

.success-icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.form-success h3 {
    color: #28a745;
    margin-bottom: 15px;
}

.form-success p {
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Error Messages */
.error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error-message.show {
    display: block;
}

.form-text {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
}

/* Loading States */
.loading-spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Upload Progress */
.upload-progress {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
}

.progress-bar-upload {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill-upload {
    height: 100%;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet and below */
@media (max-width: 1024px) {
    .edge-grid-4 { grid-template-columns: repeat(3, 1fr); }
    .edge-col-3 { flex: 0 0 50%; max-width: 50%; }
    .edge-col-4 { flex: 0 0 50%; max-width: 50%; }
}

/* Mobile landscape and below */
@media (max-width: 768px) {
    :root {
        --edge-spacing-lg: 15px;
        --edge-spacing-xl: 25px;
        --edge-spacing-xxl: 30px;
        --edge-grid-gap: 15px;
    }
    
    .edge-container {
        padding: 0 var(--edge-spacing-md);
    }
    
    .edge-grid-3,
    .edge-grid-4 { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    .edge-col-3,
    .edge-col-4,
    .edge-col-6 { 
        flex: 0 0 100%; 
        max-width: 100%; 
    }
    
    /* Event List Responsive */
    .edge-event-list-container {
        padding: var(--edge-spacing-md);
    }
    
    .edge-event-grid.columns-3,
    .edge-event-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .edge-event-card.layout-horizontal {
        flex-direction: column;
    }
    
    .edge-event-card.layout-horizontal .event-image-container {
        flex: none;
        height: 200px;
    }
    
    /* Form Responsive */
    .edge-event-form-container {
        padding: var(--edge-spacing-md);
    }
    
    .edge-event-form {
        padding: var(--edge-spacing-xl) var(--edge-spacing-lg);
    }
    
    .event-type-options {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: var(--edge-spacing-md);
    }
    
    .time-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .progress-steps {
        font-size: var(--edge-font-size-small);
    }
    
    .progress-steps .step {
        text-align: center;
        flex: 1;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: var(--edge-spacing-md);
    }
    
    .form-navigation .btn {
        width: 100%;
    }
    
    .social-link-item {
        flex-direction: column;
        align-items: stretch;
    }
    
    /* Date/Time Mobile Styles */
    .date-time-header {
        padding: var(--edge-spacing-md);
        margin-bottom: var(--edge-spacing-lg);
    }
    
    .date-time-header h4 {
        font-size: var(--edge-font-size-large);
    }
    
    .date-range-item {
        padding: var(--edge-spacing-lg) var(--edge-spacing-md);
    }
    
    .date-range-item .remove-date {
        position: static;
        margin-top: var(--edge-spacing-md);
        width: 100%;
    }
    
    .interval-group {
        flex-wrap: wrap;
        gap: var(--edge-spacing-xs);
    }
    
    .radio-option {
        padding: var(--edge-spacing-sm) var(--edge-spacing-md);
    }
    
    .recurring-preview {
        padding: var(--edge-spacing-lg) var(--edge-spacing-md);
    }
    
    .recurring-pattern-section,
    .recurring-end-section {
        padding: var(--edge-spacing-md);
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    :root {
        --edge-font-size-base: 14px;
        --edge-font-size-xl: 20px;
        --edge-spacing-lg: 12px;
        --edge-spacing-xl: 20px;
        --edge-spacing-xxl: 25px;
        --edge-grid-gap: 12px;
    }
    
    .edge-grid-2,
    .edge-grid-3,
    .edge-grid-4 { 
        grid-template-columns: 1fr; 
    }
    
    .edge-event-grid.columns-2,
    .edge-event-grid.columns-3,
    .edge-event-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    
    .edge-event-form {
        padding: var(--edge-spacing-lg);
    }
    
    .form-step h3 {
        font-size: var(--edge-font-size-xl);
    }
    
    .event-type-card {
        padding: var(--edge-spacing-lg) var(--edge-spacing-md);
    }
    
    .card-icon {
        font-size: 24px;
    }
    
    .progress-steps .step {
        font-size: 11px;
    }
}

/* Large screens */
@media (min-width: 1200px) {
    :root {
        --edge-container-max-width: 1400px;
        --edge-grid-gap: 30px;
    }
}
/* ========================================
   EVENT LIST AND GRID STYLES
   ======================================== */

.edge-event-list-container {
    max-width: var(--edge-container-max-width);
    margin: 0 auto;
    padding: var(--edge-spacing-lg);
    font-family: var(--edge-font-family);
}

/* Grid Layout Variations */
.edge-event-grid {
    display: grid;
    gap: var(--edge-grid-gap);
    margin-bottom: var(--edge-spacing-xxl);
}

.edge-event-grid.columns-1 { grid-template-columns: 1fr; }
.edge-event-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.edge-event-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.edge-event-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }
.edge-event-grid.columns-auto { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* List Layout */
.edge-event-list {
    display: flex;
    flex-direction: column;
    gap: var(--edge-spacing-lg);
}

/* Card Styles */
.edge-event-card {
    background: var(--edge-white);
    border-radius: var(--edge-border-radius-lg);
    box-shadow: var(--edge-shadow-md);
    overflow: hidden;
    transition: all var(--edge-transition-normal);
    border: 1px solid var(--edge-medium-gray);
    position: relative;
}

.edge-event-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--edge-shadow-lg);
}

/* Card Layout Variations */
.edge-event-card.layout-horizontal {
    display: flex;
    flex-direction: row;
}

.edge-event-card.layout-horizontal .event-image-container {
    flex: 0 0 200px;
    height: auto;
}

.edge-event-card.layout-horizontal .event-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.edge-event-card.layout-compact {
    padding: var(--edge-spacing-md);
}

.edge-event-card.layout-compact .event-image-container {
    height: 150px;
}

.edge-event-card.layout-detailed .event-content {
    padding: var(--edge-spacing-xl);
}

/* Event Image Styles */
.event-image-container {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.event-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.edge-event-card:hover .event-image {
    transform: scale(1.05);
}

.event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
}

.placeholder-content {
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 32px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

.placeholder-text {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.8;
}

/* Event Content */
.event-content {
    padding: 20px;
}

.event-title {
    margin: 0 0 12px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #667eea;
}

.event-excerpt {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Event Meta Information */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.event-dates,
.event-cost {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.date-icon,
.cost-icon {
    font-size: 16px;
    opacity: 0.7;
}

.event-date {
    font-weight: 600;
    color: #333;
}

.event-time {
    color: #666;
}

.event-end-time,
.custom-end-message {
    color: #666;
    font-style: italic;
}

.multiple-dates,
.recurring-event {
    color: #667eea;
    font-weight: 500;
}

.cost-free {
    color: #28a745;
    font-weight: 600;
}

.cost-paid {
    color: #333;
    font-weight: 600;
}

/* Event Actions */
.event-actions {
    display: flex;
    justify-content: flex-end;
}

.event-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-events-message p {
    font-size: 16px;
    margin: 0;
}

/* Event Pagination */
.edge-event-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
}

.edge-event-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 4px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    transition: all 0.3s ease;
}

.edge-event-pagination .page-numbers:hover,
.edge-event-pagination .page-numbers.current {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.edge-event-pagination .page-numbers.prev,
.edge-event-pagination .page-numbers.next {
    font-weight: 500;
}

/* Responsive Event Grid */
@media (max-width: 768px) {
    .edge-event-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 20px;
    }
    
    .event-image-container {
        height: 180px;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-meta {
        padding: 12px;
    }
}

@media (max-width: 480px) {
    .edge-event-list-container {
        padding: 15px;
    }
    
    .edge-event-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .event-image-container {
        height: 160px;
    }
    
    .event-content {
        padding: 12px;
    }
    
    .event-title {
        font-size: 15px;
    }
    
    .event-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .placeholder-icon {
        font-size: 24px;
    }
    
    .placeholder-text {
        font-size: 12px;
    }
}

/* Responsive Images */
.responsive-image {
    width: 100%;
    height: auto;
    max-width: 100%;
}

/* Image Loading States */
.event-image[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.3s ease;
}

.event-image[loading="lazy"].loaded {
    opacity: 1;
}
/* Locati
on Search Styles */
.location-search-container {
    position: relative;
    width: 100%;
}

.location-search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.location-results-list {
    padding: 0;
}

.location-result-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.location-result-item:last-child {
    border-bottom: none;
}

.location-result-item:hover {
    background: #f8f9fa;
}

.location-result-item.add-new-location {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #e0e0e0;
    font-weight: 500;
}

.location-result-item.add-new-location:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    color: #667eea;
}

.location-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 14px;
}

.location-address {
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.location-coords {
    font-size: 11px;
    color: #28a745;
    margin-top: 2px;
    font-weight: 500;
}

.search-loading,
.search-error,
.no-results {
    padding: 16px;
    text-align: center;
    color: #666;
    font-size: 14px;
    font-style: italic;
}

.search-error {
    color: #dc3545;
}

.no-results {
    color: #999;
}

/* Location Validation Feedback */
.validation-feedback {
    margin-top: 5px;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 8px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.validation-feedback.success {
    background: rgba(40, 167, 69, 0.1);
    color: #28a745;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.validation-feedback.error {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Enhanced New Location Fields */
.new-location-fields {
    margin-top: 20px;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #c0c0c0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.new-location-fields.active {
    border-color: #667eea;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
}

.new-location-fields .form-group {
    margin-bottom: 15px;
}

.new-location-fields .form-group:last-child {
    margin-bottom: 0;
}

.new-location-fields label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.new-location-fields .form-control {
    border: 2px solid #e0e0e0;
    background: white;
}

.new-location-fields .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.new-location-fields .form-control.success {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.02);
}

.new-location-fields .form-control.error {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.02);
}

/* Location Search Input Styling */
#location_search {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 40px;
}

#location_search:focus {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%23667eea" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><path d="m21 21-4.35-4.35"></path></svg>');
}

/* Mobile Responsive Location Search */
@media (max-width: 768px) {
    .location-search-results {
        max-height: 250px;
    }
    
    .location-result-item {
        padding: 10px 12px;
    }
    
    .location-name {
        font-size: 13px;
    }
    
    .location-address {
        font-size: 11px;
    }
    
    .new-location-fields {
        padding: 15px;
        margin-top: 15px;
    }
}

@media (max-width: 480px) {
    .location-search-results {
        max-height: 200px;
    }
    
    .location-result-item {
        padding: 8px 10px;
    }
    
    .search-loading,
    .search-error,
    .no-results {
        padding: 12px;
        font-size: 13px;
    }
    
    .new-location-fields {
        padding: 12px;
    }
    
    .validation-feedback {
        font-size: 11px;
        padding: 4px 6px;
    }
}

/* Location Search Animation */
@keyframes locationSearchPulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.search-loading {
    animation: locationSearchPulse 1.5s ease-in-out infinite;
}

/* Location Selection Highlight */
.location-result-item.selected {
    background: #667eea;
    color: white;
}

.location-result-item.selected .location-name,
.location-result-item.selected .location-address,
.location-result-item.selected .location-coords {
    color: white;
}

/* Accessibility Improvements */
.location-result-item:focus {
    outline: 2px solid #667eea;
    outline-offset: -2px;
}

.location-search-container [aria-expanded="true"] + .location-search-results {
    display: block;
}

.location-search-container [aria-expanded="false"] + .location-search-results {
    display: none;
}

/* Location Field States */
.form-group.location-field.has-selection .form-control {
    border-color: #28a745;
    background-color: rgba(40, 167, 69, 0.02);
}

.form-group.location-field.has-error .form-control {
    border-color: #dc3545;
    background-color: rgba(220, 53, 69, 0.02);
}

/* Location Info Tooltip */
.location-info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 5px;
    cursor: help;
}

.location-info-tooltip::before {
    content: 'ℹ️';
    font-size: 12px;
    opacity: 0.7;
}

.location-info-tooltip:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 8px;
    border-radius: 4px;
    font-size: 11px;
    white-space: nowrap;
    z-index: 1001;
}/
* Location Fields Header */
.location-fields-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0e0e0;
}

.location-fields-header h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-fields-header p {
    margin: 0;
    font-size: 14px;
    color: #666;
    line-height: 1.4;
}

/* Enhanced Form Text */
.form-text {
    font-size: 12px;
    color: #666;
    margin-top: 5px;
    line-height: 1.4;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

.form-text::before {
    content: '💡';
    font-size: 12px;
    opacity: 0.7;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Location Field Enhancements */
.location-field.has-selection {
    position: relative;
}

.location-field.has-selection::after {
    content: '✓';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #28a745;
    font-weight: bold;
    font-size: 16px;
    pointer-events: none;
}

/* Mobile Responsive Enhancements */
@media (max-width: 480px) {
    .location-fields-header h4 {
        font-size: 15px;
    }
    
    .location-fields-header p {
        font-size: 13px;
    }
    
    .form-text {
        font-size: 11px;
    }
    
    .location-info-tooltip {
        display: none; /* Hide tooltips on mobile */
    }
}
/
* Event List Filters */
.edge-event-filters {
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
}

.filters-header h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filters-header h4::before {
    content: '🔍';
    font-size: 16px;
}

.clear-filters {
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 6px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-select {
    padding: 10px 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    transition: all 0.3s ease;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Loading State */
.events-loading {
    text-align: center;
    padding: 40px 20px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 12px;
    margin-bottom: 20px;
}

.events-loading .loading-spinner {
    font-size: 32px;
    margin-bottom: 15px;
    animation: spin 1s linear infinite;
}

.events-loading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    font-weight: 500;
}

/* Enhanced Event Grid */
.edge-event-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 40px;
    transition: all 0.3s ease;
}

.edge-event-grid[data-columns="1"] {
    grid-template-columns: 1fr;
}

.edge-event-grid[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.edge-event-grid[data-columns="3"] {
    grid-template-columns: repeat(3, 1fr);
}

.edge-event-grid[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Enhanced Event Card */
.edge-event-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
}

.edge-event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

/* Event Image Wrapper */
.event-image-wrapper {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f8f9fa;
}

.event-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 2;
}

.event-type-badge.event-type-single {
    background: rgba(40, 167, 69, 0.9);
}

.event-type-badge.event-type-multiple {
    background: rgba(255, 193, 7, 0.9);
    color: #333;
}

.event-type-badge.event-type-recurring {
    background: rgba(102, 126, 234, 0.9);
}

/* Event Header */
.event-header {
    margin-bottom: 15px;
}

.event-title {
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.event-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: #667eea;
}

/* Event Taxonomy */
.event-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.category-tag {
    background: #667eea;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.event-tag {
    background: #f8f9fa;
    color: #666;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    border: 1px solid #e0e0e0;
}

/* Event Meta Enhanced */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.event-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #666;
}

.location-icon {
    font-size: 16px;
    opacity: 0.7;
}

.location-name {
    font-weight: 500;
}

/* Event Actions Enhanced */
.event-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid #f0f0f0;
}

.event-read-more {
    flex: 1;
    margin-right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
}

.btn-icon {
    transition: transform 0.3s ease;
}

.event-read-more:hover .btn-icon {
    transform: translateX(3px);
}

.event-quick-actions {
    display: flex;
    gap: 8px;
}

.quick-action-btn {
    width: 36px;
    height: 36px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.quick-action-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-2px);
}

.website-btn:hover {
    background: #28a745;
    border-color: #28a745;
}

/* Enhanced Pagination */
.edge-event-pagination {
    display: flex;
    justify-content: center;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.edge-event-pagination .page-numbers {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}

.edge-event-pagination .page-numbers li {
    margin: 0;
}

.edge-event-pagination .page-numbers a,
.edge-event-pagination .page-numbers span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.edge-event-pagination .page-numbers a:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
    transform: translateY(-1px);
}

.edge-event-pagination .page-numbers .current {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.edge-event-pagination .page-numbers .dots {
    border: none;
    background: transparent;
    color: #999;
}

.edge-event-pagination .prev,
.edge-event-pagination .next {
    padding: 8px 16px;
    font-weight: 600;
}

/* No Events Message Enhanced */
.no-events-message {
    text-align: center;
    padding: 60px 40px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 2px dashed #e0e0e0;
}

.no-events-icon {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.6;
}

.no-events-message h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #333;
}

.no-events-message p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Error State */
.events-error {
    text-align: center;
    padding: 60px 40px;
    background: #fff5f5;
    border: 2px solid #fed7d7;
    border-radius: 12px;
}

.error-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.events-error h3 {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 600;
    color: #e53e3e;
}

.events-error p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}

.retry-btn {
    background: #e53e3e;
    border-color: #e53e3e;
}

.retry-btn:hover {
    background: #c53030;
    border-color: #c53030;
}

/* Notification System */
.edge-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #28a745;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    font-weight: 500;
}

.edge-notification.show {
    transform: translateX(0);
}

/* Responsive Design for Event List */
@media (max-width: 1024px) {
    .edge-event-grid[data-columns="4"] {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .edge-event-grid[data-columns="3"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .edge-event-list-container {
        padding: 15px;
    }
    
    .edge-event-filters {
        padding: 20px 15px;
    }
    
    .filters-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .edge-event-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .event-image-wrapper {
        height: 180px;
    }
    
    .event-content {
        padding: 15px;
    }
    
    .event-taxonomy {
        margin-bottom: 8px;
    }
    
    .event-meta {
        padding: 12px;
        gap: 8px;
    }
    
    .event-actions {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
    
    .event-read-more {
        margin-right: 0;
    }
    
    .event-quick-actions {
        justify-content: center;
    }
    
    .edge-event-pagination .page-numbers {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .edge-event-pagination .page-numbers a,
    .edge-event-pagination .page-numbers span {
        min-width: 36px;
        height: 36px;
        padding: 6px 10px;
        font-size: 14px;
    }
    
    .no-events-message,
    .events-error {
        padding: 40px 20px;
    }
    
    .no-events-icon,
    .error-icon {
        font-size: 36px;
    }
    
    .no-events-message h3,
    .events-error h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .edge-event-list-container {
        padding: 10px;
    }
    
    .edge-event-filters {
        padding: 15px 10px;
    }
    
    .edge-event-grid {
        gap: 15px;
    }
    
    .event-image-wrapper {
        height: 160px;
    }
    
    .event-content {
        padding: 12px;
    }
    
    .event-title {
        font-size: 16px;
    }
    
    .event-excerpt {
        font-size: 13px;
    }
    
    .event-meta {
        padding: 10px;
    }
    
    .event-dates,
    .event-cost,
    .event-location {
        font-size: 13px;
    }
    
    .category-tag,
    .event-tag {
        font-size: 10px;
        padding: 3px 6px;
    }
    
    .quick-action-btn {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
    
    .edge-notification {
        top: 10px;
        right: 10px;
        left: 10px;
        transform: translateY(-100%);
    }
    
    .edge-notification.show {
        transform: translateY(0);
    }
}

/* Print Styles */
@media print {
    .edge-event-filters,
    .edge-event-pagination,
    .event-quick-actions,
    .events-loading {
        display: none !important;
    }
    
    .edge-event-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .edge-event-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
/* ===================================
   Single Event Template v2
   =================================== */

.edge-single-v2 {
    max-width: 1400px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    color: #1a1a2e;
}

/* ---------- Hero split ---------- */
.edge-single-hero {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 560px;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

/* Image panel */
.edge-single-hero__image {
    position: relative;
    overflow: hidden;
    background: #0f0f23;
}

.edge-single-hero__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.edge-single-hero__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 400px;
    background: linear-gradient(145deg, #667eea 0%, #764ba2 100%);
    color: rgba(255, 255, 255, 0.85);
    gap: 1rem;
    text-align: center;
    padding: 2rem;
}

.edge-single-hero__placeholder span {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Info panel */
.edge-single-hero__info {
    padding: 2.5rem 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 0;
    overflow-y: auto;
}

/* Title */
.edge-single__title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: #1a1a2e;
    letter-spacing: -0.02em;
}

/* Badge */
.edge-single__badge {
    display: inline-block;
    align-self: flex-start;
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 1.5rem;
    background: #eef2ff;
    color: #4f46e5;
}

.edge-single__badge--recurring {
    background: #fef3c7;
    color: #b45309;
}

.edge-single__badge--multiple {
    background: #ecfdf5;
    color: #047857;
}

/* Detail rows */
.edge-single__detail-row {
    display: flex;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #f1f5f9;
}

.edge-single__detail-row:first-of-type {
    border-top: 1px solid #e2e8f0;
}

.edge-single__detail-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f8fafc;
    color: #6366f1;
}

.edge-single__detail-body {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.edge-single__detail-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}

.edge-single__detail-value {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    display: block;
}

.edge-single__detail-sub {
    font-size: 0.85rem;
    color: #64748b;
    display: block;
}

/* Recurring dates — trigger button */
.edge-single__dates-trigger {
    background: #6366f1;
    color: #fff !important;
    border: none;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    margin-left: 6px;
    vertical-align: middle;
}

.edge-single__dates-trigger:hover {
    background: #4f46e5;
}

/* Recurring dates — modal overlay */
.edge-dates-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.edge-dates-modal {
    background: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: edgeDatesModalIn 0.2s ease-out;
}

@keyframes edgeDatesModalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.edge-dates-modal__header {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
}

.edge-dates-modal__header h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
}

.edge-dates-modal__count {
    margin-left: 10px;
    font-size: 0.8rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 10px;
}

.edge-dates-modal__close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
}

.edge-dates-modal__close:hover {
    color: #1e293b;
}

.edge-dates-modal__body {
    overflow-y: auto;
    padding: 16px 20px;
}

.edge-dates-modal__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.edge-dates-modal__item {
    display: flex;
    flex-direction: column;
    padding: 10px 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.edge-dates-modal__item--past {
    opacity: 0.45;
}

.edge-dates-modal__day {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6366f1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edge-dates-modal__date {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
}

.edge-dates-modal__time {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
}

@media (max-width: 480px) {
    .edge-dates-modal__grid {
        grid-template-columns: 1fr;
    }
    .edge-dates-modal {
        max-height: 90vh;
    }
}

/* Price highlights */
.edge-single__price--free {
    color: #059669;
}

.edge-single__price--paid {
    color: #1e293b;
    font-size: 1.15rem;
}

/* Map link */
.edge-single__map-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
}

.edge-single__map-link:hover {
    color: #4338ca;
}

/* Website link */
.edge-single__website-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #6366f1;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.edge-single__website-link:hover {
    color: #4338ca;
}

/* Social link buttons */
.edge-single__social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.edge-single__social-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.9rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: #fff;
    background: #64748b;
    transition: transform 0.15s, box-shadow 0.15s;
}

.edge-single__social-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.edge-single__social-btn--facebook  { background: #1877f2; }
.edge-single__social-btn--twitter   { background: #1da1f2; }
.edge-single__social-btn--instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.edge-single__social-btn--linkedin  { background: #0a66c2; }
.edge-single__social-btn--youtube   { background: #ff0000; }
.edge-single__social-btn--tiktok    { background: #010101; }
.edge-single__social-btn--discord   { background: #5865f2; }
.edge-single__social-btn--whatsapp  { background: #25d366; }
.edge-single__social-btn--telegram  { background: #229ed9; }
.edge-single__social-btn--snapchat  { background: #fffc00; color: #000; }
.edge-single__social-btn--pinterest { background: #e60023; }
.edge-single__social-btn--website   { background: #6366f1; }

/* ---------- Description ---------- */
.edge-single__description {
    max-width: 900px;
    margin: 3rem auto 0;
    padding: 0 1rem;
}

.edge-single__description h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid #e2e8f0;
}

.edge-single__description-body {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #334155;
}

.edge-single__description-body p {
    margin-bottom: 1rem;
}

/* ---------- Share bar ---------- */
.edge-single__share-bar {
    max-width: 900px;
    margin: 2.5rem auto 0;
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.edge-single__share-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    white-space: nowrap;
}

.edge-single__share-bar .social-sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.edge-single__share-bar .share-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    border: none;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s;
    color: #fff;
}

.edge-single__share-bar .share-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #fff;
}

.edge-single__share-bar .share-facebook { background: #1877f2; }
.edge-single__share-bar .share-twitter  { background: #1da1f2; }
.edge-single__share-bar .share-linkedin { background: #0a66c2; }
.edge-single__share-bar .share-whatsapp { background: #25d366; }
.edge-single__share-bar .share-email    { background: #475569; }
.edge-single__share-bar .share-copy     { background: #94a3b8; }
.edge-single__share-bar .share-copy.copied { background: #059669; }

/* ---------- Footer (tags/categories) ---------- */
.edge-single__footer {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 1.5rem 1rem 0;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.edge-single__tags-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.edge-single__tags-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    margin-right: 0.25rem;
}

.edge-single__tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.edge-single__tag--cat {
    background: #eef2ff;
    color: #4f46e5;
}

.edge-single__tag--tag {
    background: #fef2f2;
    color: #dc2626;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .edge-single-hero {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .edge-single-hero__image {
        max-height: 420px;
    }

    .edge-single-hero__info {
        padding: 2rem;
    }

    .edge-single__title {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
    .edge-single-hero__image {
        max-height: 300px;
    }

    .edge-single-hero__info {
        padding: 1.5rem;
    }

    .edge-single__title {
        font-size: 1.4rem;
    }

    .edge-single__share-bar {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.25rem;
    }

    .edge-single__share-bar .share-button .share-label {
        display: none;
    }
}
/* =====
===================================
   EVENT FILTERS AND PAGINATION
   ======================================== */

.edge-event-filters {
    background: var(--edge-white);
    border: 1px solid var(--edge-medium-gray);
    border-radius: var(--edge-border-radius-lg);
    padding: var(--edge-spacing-xl);
    margin-bottom: var(--edge-spacing-xl);
    box-shadow: var(--edge-shadow-sm);
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--edge-spacing-lg);
    padding-bottom: var(--edge-spacing-md);
    border-bottom: 1px solid var(--edge-medium-gray);
}

.filters-header h4 {
    margin: 0;
    color: var(--edge-text-color);
    font-size: var(--edge-font-size-large);
    font-weight: 600;
}

.clear-filters {
    font-size: var(--edge-font-size-small);
    padding: var(--edge-spacing-xs) var(--edge-spacing-md);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--edge-spacing-lg);
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    color: var(--edge-text-color);
    margin-bottom: var(--edge-spacing-xs);
    font-size: var(--edge-font-size-small);
}

.filter-select {
    padding: var(--edge-spacing-sm) var(--edge-spacing-md);
    border: 2px solid var(--edge-medium-gray);
    border-radius: var(--edge-border-radius-md);
    font-size: var(--edge-font-size-small);
    background: var(--edge-white);
    transition: border-color var(--edge-transition-fast);
}

.filter-select:focus {
    outline: none;
    border-color: var(--edge-primary-color);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Events Loading State */
.events-loading {
    text-align: center;
    padding: var(--edge-spacing-xxl);
    color: var(--edge-text-muted);
}

.events-loading .loading-spinner {
    font-size: 24px;
    margin-bottom: var(--edge-spacing-md);
    animation: spin 1s linear infinite;
}

/* No Events Message */
.no-events-message {
    text-align: center;
    padding: var(--edge-spacing-xxl);
    background: var(--edge-light-gray);
    border-radius: var(--edge-border-radius-lg);
    border: 2px dashed var(--edge-medium-gray);
}

.no-events-icon {
    font-size: 48px;
    margin-bottom: var(--edge-spacing-lg);
    opacity: 0.6;
}

.no-events-message h3 {
    margin: 0 0 var(--edge-spacing-md) 0;
    color: var(--edge-text-color);
    font-size: var(--edge-font-size-xl);
}

.no-events-message p {
    margin: 0;
    color: var(--edge-text-muted);
    font-size: var(--edge-font-size-base);
    line-height: var(--edge-line-height);
}

/* Event Pagination */
.edge-event-pagination {
    margin-top: var(--edge-spacing-xxl);
    display: flex;
    justify-content: center;
}

.edge-event-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    margin: 0 var(--edge-spacing-xs);
    padding: var(--edge-spacing-xs) var(--edge-spacing-md);
    border: 1px solid var(--edge-medium-gray);
    border-radius: var(--edge-border-radius-md);
    text-decoration: none;
    color: var(--edge-text-color);
    font-weight: 500;
    transition: all var(--edge-transition-fast);
}

.edge-event-pagination .page-numbers:hover {
    background: var(--edge-primary-color);
    color: var(--edge-white);
    border-color: var(--edge-primary-color);
    transform: translateY(-1px);
}

.edge-event-pagination .page-numbers.current {
    background: var(--edge-primary-color);
    color: var(--edge-white);
    border-color: var(--edge-primary-color);
}

.edge-event-pagination .page-numbers.dots {
    border: none;
    background: none;
    cursor: default;
}

.edge-event-pagination .page-numbers.dots:hover {
    background: none;
    color: var(--edge-text-muted);
    transform: none;
}

/* Event Type Badges */
.event-type-badge {
    position: absolute;
    top: var(--edge-spacing-sm);
    right: var(--edge-spacing-sm);
    background: rgba(0, 0, 0, 0.8);
    color: var(--edge-white);
    padding: var(--edge-spacing-xs) var(--edge-spacing-sm);
    border-radius: var(--edge-border-radius-sm);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.event-type-badge.event-type-single {
    background: rgba(40, 167, 69, 0.9);
}

.event-type-badge.event-type-multiple {
    background: rgba(255, 193, 7, 0.9);
    color: var(--edge-text-color);
}

.event-type-badge.event-type-recurring {
    background: rgba(102, 126, 234, 0.9);
}

/* ========================================
   MASONRY LAYOUT SUPPORT
   ======================================== */

.edge-event-grid.masonry-layout {
    column-count: var(--edge-grid-columns, 3);
    column-gap: var(--edge-grid-gap);
    column-fill: balance;
}

.edge-event-grid.masonry-layout .event-card-wrapper {
    break-inside: avoid;
    margin-bottom: var(--edge-grid-gap);
    display: inline-block;
    width: 100%;
}

/* ========================================
   ANIMATION KEYFRAMES
   ======================================== */

@keyframes edgeFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes edgeSlideIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

@keyframes edgeScaleIn {
    from { 
        opacity: 0; 
        transform: scale(0.9); 
    }
    to { 
        opacity: 1; 
        transform: scale(1); 
    }
}

@keyframes edgeFormFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .edge-event-filters,
    .edge-event-pagination,
    .form-navigation,
    .edge-form-progress {
        display: none !important;
    }
    
    .edge-event-card {
        break-inside: avoid;
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
    
    .edge-event-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
}/* ====
====================================
   IMAGE UPLOAD ENHANCEMENTS
   ======================================== */

.upload-success {
    color: var(--edge-accent-color);
    font-size: 12px;
    font-weight: 600;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.image-upload-area.uploading {
    pointer-events: none;
    opacity: 0.7;
}

.image-upload-area.uploading .upload-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.upload-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
}

.upload-loading .loading-spinner {
    font-size: 24px;
    animation: spin 1s linear infinite;
}

.upload-loading p {
    margin: 0;
    color: var(--edge-primary-color);
    font-weight: 500;
    font-size: 14px;
}

/* Enhanced image preview */
.image-preview .preview-container {
    position: relative;
    border-radius: var(--edge-border-radius-md);
    overflow: hidden;
    background: var(--edge-white);
    box-shadow: var(--edge-shadow-sm);
}

.image-preview .preview-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
}

.image-preview .image-info {
    padding: 15px;
    background: var(--edge-white);
    border-top: 1px solid var(--edge-medium-gray);
}

.image-preview .file-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--edge-text-color);
    margin-bottom: 5px;
    word-break: break-word;
}

.image-preview .file-size {
    font-size: 12px;
    color: var(--edge-text-muted);
    margin-bottom: 5px;
}

.image-preview .remove-image {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(220, 53, 69, 0.9);
    color: var(--edge-white);
    border: none;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--edge-transition-fast);
    backdrop-filter: blur(4px);
    z-index: 10;
}

.image-preview .remove-image:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Error states */
.image-upload-area.error {
    border-color: var(--edge-danger-color);
    background-color: rgba(220, 53, 69, 0.02);
}

.image-upload-area.success {
    border-color: var(--edge-accent-color);
    background-color: rgba(40, 167, 69, 0.02);
}

/* Drag and drop states */
.image-upload-area.dragover {
    border-color: var(--edge-primary-color);
    background-color: rgba(102, 126, 234, 0.08);
    border-style: solid;
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    transform: scale(1.02);
}

.image-upload-area.dragover .upload-icon {
    transform: scale(1.2);
    opacity: 0.8;
}/* =======
=================================
   END TIME TOGGLE FUNCTIONALITY
   ======================================== */

.end-time-options {
    text-align: center;
    margin: var(--edge-spacing-lg) 0;
}

.no-end-time-btn {
    background: none;
    border: 2px dashed var(--edge-medium-gray);
    color: var(--edge-text-muted);
    padding: var(--edge-spacing-sm) var(--edge-spacing-lg);
    border-radius: var(--edge-border-radius-md);
    cursor: pointer;
    font-size: var(--edge-font-size-small);
    transition: all var(--edge-transition-fast);
    font-weight: 500;
}

.no-end-time-btn:hover {
    border-color: var(--edge-primary-color);
    color: var(--edge-primary-color);
    background: rgba(102, 126, 234, 0.05);
}

.end-time-restore {
    text-align: center;
    margin-top: var(--edge-spacing-md);
}

.restore-end-time-btn {
    background: var(--edge-light-gray);
    border: 1px solid var(--edge-medium-gray);
    color: var(--edge-text-color);
    padding: var(--edge-spacing-xs) var(--edge-spacing-md);
    border-radius: var(--edge-border-radius-sm);
    cursor: pointer;
    font-size: var(--edge-font-size-small);
    transition: all var(--edge-transition-fast);
    font-weight: 500;
}

.restore-end-time-btn:hover {
    background: var(--edge-medium-gray);
    color: var(--edge-text-color);
}

/* Hide end time options when custom message is active */
.custom-end-message-active .end-time-options {
    display: none;
}

.custom-end-message-active .end-time-group {
    display: none;
}

/* Custom end message container styling */
.custom-end-message {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 4px;
    box-sizing: border-box;
}

.custom-end-message .form-control {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.end-time-restore {
    margin-top: 10px;
}

.restore-end-time-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.restore-end-time-btn:hover {
    background: #5a6268;
}

/* Style browser native date/time picker icons to work with custom icons */
input[type="date"]::-webkit-calendar-picker-indicator,
input[type="time"]::-webkit-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    /* Keep pointer events so they're still clickable */
}

/* For Firefox */
input[type="date"]::-moz-calendar-picker-indicator,
input[type="time"]::-moz-calendar-picker-indicator {
    opacity: 0;
    position: absolute;
    right: 12px;
    width: 20px;
    height: 20px;
    cursor: pointer;
}/* Ensure
 no duplicate navigation buttons appear */
.form-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 15px;
}

.form-navigation .btn {
    flex: 0 0 auto;
}

/* Removed problematic CSS that was hiding legitimate buttons */
/*
 ===========================================
   DISPLAY FIXES - Override conflicting rules
   =========================================== */

/* Fix grid column sizing - ensure equal columns */
.edge-event-grid {
    display: grid !important;
    gap: 20px !important;
    align-items: start !important;
}

.edge-event-grid.columns-1 { 
    grid-template-columns: 1fr !important; 
}
.edge-event-grid.columns-2 { 
    grid-template-columns: repeat(2, 1fr) !important; 
}
.edge-event-grid.columns-3 { 
    grid-template-columns: repeat(3, 1fr) !important; 
}
.edge-event-grid.columns-4 { 
    grid-template-columns: repeat(4, 1fr) !important; 
}

/* Fix event header layout - remove two-column layout */
.event-header {
    display: block !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

/* Fix event title sizing and spacing */
.event-title {
    font-size: 1.2rem !important;
    line-height: 1.4 !important;
    margin: 0 0 10px 0 !important;
    font-weight: 600 !important;
    display: block !important;
    width: 100% !important;
}

.event-title a {
    color: #333 !important;
    text-decoration: none !important;
    display: block !important;
    word-wrap: break-word !important;
    hyphens: auto !important;
}

.event-title a:hover {
    color: var(--edge-primary-color, #667eea) !important;
}

/* Ensure event cards have consistent sizing */
.edge-event-card {
    width: 100% !important;
    max-width: none !important;
    min-height: auto !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Remove event type badge styles */
.event-type-badge {
    display: none !important;
}

/* Fix event taxonomy spacing */
.event-taxonomy {
    margin-top: 10px !important;
    margin-bottom: 15px !important;
}

/* Responsive fixes */
@media (max-width: 1024px) {
    .edge-event-grid.columns-4 {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    
    .edge-event-grid.columns-3 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .edge-event-grid.columns-2,
    .edge-event-grid.columns-3,
    .edge-event-grid.columns-4 {
        grid-template-columns: 1fr !important;
    }
    
    .event-title {
        font-size: 1.1rem !important;
    }
}

@media (max-width: 480px) {
    .edge-event-grid {
        gap: 15px !important;
    }
    
    .event-title {
        font-size: 1rem !important;
    }
}