/* Events Manager Frontend Styles */

/* Import Plus Jakarta Sans font */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --em-primary: #061c1c;
    --em-primary-dark: #061c1c;
    --em-secondary: #ec4899;
    --em-accent: #f97316;
    --em-success: #10b981;
    --em-warning: #f59e0b;
    --em-gradient: linear-gradient(135deg, #061c1c 0%, #061c1c 100%);
    --em-gradient-light: linear-gradient(135deg, #061c1c 0%, #061c1c 50%, #ec4899 100%);
    --em-text-primary: #1f2937;
    --em-text-secondary: #6b7280;
    --em-text-white: #ffffff;
    --em-bg-light: #f9fafb;
    --em-border: #e5e7eb;
    --em-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --em-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --em-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --em-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --em-radius-sm: 6px;
    --em-radius-md: 12px;
    --em-radius-lg: 16px;
    --em-font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --em-filter-overlap: 120px;
    --em-filter-gap: 48px;
}

@media (max-width: 1200px) {
    :root {
        --em-filter-overlap: 110px;
        --em-filter-gap: 40px;
    }
}

@media (max-width: 768px) {
    :root {
        --em-filter-overlap: 90px;
        --em-filter-gap: 32px;
    }
}

@media (max-width: 480px) {
    :root {
        --em-filter-overlap: 70px;
        --em-filter-gap: 24px;
    }
}

/* Reset & Base */
.em-events-wrapper * {
    box-sizing: border-box;
    font-family: var(--em-font-family);
}

.em-events-wrapper {
    font-family: var(--em-font-family);
    color: var(--em-text-primary);
    line-height: 1.6;
    margin: 0;
    max-width: 100%;
    padding: 0;
}

/* Hero Section */
.em-hero {
    background: linear-gradient(135deg, #061c1c 0%, #061c1c 100%);
    border-radius: 0;
    padding: 100px 40px calc(var(--em-filter-overlap) + var(--em-filter-gap)) 40px;
    text-align: center;
    margin-bottom: 0;
    margin-left: 0;
    margin-right: 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
}

/* Hero Media Background */
.em-hero-media-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.em-hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.em-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Gradient Overlay */
.em-hero-gradient-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

/* Hero Content Wrapper */
.em-hero-content {
    position: relative;
    z-index: 2;
}

.em-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(255,255,255,0.15) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.15) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

.em-hero-title {
    font-size: 48px;
    font-weight: 700;
    color: var(--em-text-white);
    margin: 0 0 16px 0;
    position: relative;
    z-index: 2;
}

.em-hero-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 32px 0;
    position: relative;
    z-index: 2;
}

/* Search */
.em-search-wrapper {
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.em-search-input {
    width: 100%;
    padding: 16px 56px 16px 20px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-family: var(--em-font-family);
    box-shadow: var(--em-shadow-lg);
    transition: all 0.3s ease;
}

.em-search-input:focus {
    outline: none;
    box-shadow: 0 20px 30px -5px rgba(0, 0, 0, 0.2);
}

.em-search-button {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--em-primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.em-search-button:hover {
    background: var(--em-primary-dark);
    transform: translateY(-50%) scale(1.05);
}

/* Events Container */
.em-events-container {
    margin-top: calc(var(--em-filter-overlap) * -1);
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
    position: relative;
    z-index: 10;
}

@media (max-width: 768px) {
    .em-events-container {
        padding-left: 20px;
        padding-right: 20px;
    }
}

@media (max-width: 480px) {
    .em-tabs {
        gap: 12px;
    }

    .em-tabs .em-tab {
        min-width: max-content;
    }
}

/* Events Filter Card */
.em-events-filter-card {
    background: white;
    border-radius: 16px;
    padding: 32px 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
    margin-bottom: 48px;
}

@media (max-width: 768px) {
    .em-events-filter-card {
        padding: 24px 20px;
    }
}

.em-events-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0;
    flex-wrap: wrap;
    gap: 20px;
}

.em-events-header h2 {
    font-size: 32px;
    font-weight: 700;
    margin: 0;
    color: var(--em-text-primary);
}

/* Events Content Container */
.em-events-content {
    padding-left: 30px;
    padding-right: 30px;
    width: 100%;
    position: relative;
}

@media (max-width: 768px) {
    .em-events-content {
        padding-left: 20px;
        padding-right: 20px;
    }
}

/* Tabs */
.em-tabs {
    display: flex;
    gap: 24px;
    background: transparent;
    padding: 0;
    border-radius: 0;
    border-bottom: 2px solid var(--em-border);
}

.em-tab {
    padding: 12px 0;
    border: none;
    background: transparent;
    color: var(--em-text-secondary);
    border-radius: 0;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.em-tab:hover {
    color: var(--em-primary);
    background: transparent;
}

.em-tab.active {
    background: transparent;
    color: var(--em-primary);
    box-shadow: none;
    border-bottom-color: var(--em-primary);
}

.em-tab-count {
    background: var(--em-bg-light);
    color: var(--em-text-secondary);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.em-tab.active .em-tab-count {
    background: var(--em-primary);
    color: white;
}

/* View Toggle */
.em-view-toggle {
    display: flex;
    gap: 4px;
    background: var(--em-bg-light);
    padding: 4px;
    border-radius: var(--em-radius-sm);
}

.em-view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    color: var(--em-text-secondary);
    border-radius: var(--em-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-view-btn:hover {
    color: var(--em-primary);
}

.em-view-btn.active {
    background: white;
    color: var(--em-primary);
    box-shadow: var(--em-shadow-sm);
}

/* Section */
.em-section {
    margin-bottom: 40px;
}

.em-section:last-child {
    margin-bottom: 0;
}

.em-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.em-section-header h3 {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
    color: var(--em-text-primary);
}

.em-view-all {
    color: var(--em-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.em-view-all:hover {
    color: var(--em-primary-dark);
}

/* Featured Events Grid */
.em-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 24px;
}

.em-featured-card {
    background: white;
    border-radius: var(--em-radius-lg);
    overflow: hidden;
    box-shadow: var(--em-shadow-lg);
    cursor: pointer;
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.em-featured-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--em-shadow-xl);
}

.em-featured-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 300px;
}

.em-featured-content {
    padding: 32px;
    display: flex;
    flex-direction: column;
}

.em-featured-title {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 16px 0;
    color: var(--em-text-primary);
}

.em-featured-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
}

.em-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--em-text-secondary);
    font-size: 14px;
}

.em-meta-item svg {
    flex-shrink: 0;
}

.em-featured-excerpt {
    color: var(--em-text-secondary);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: auto;
}

.em-featured-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--em-border);
}

/* Price */
.em-price {
    display: flex;
    align-items: center;
    gap: 8px;
}

.em-price-original {
    color: var(--em-text-secondary);
    text-decoration: line-through;
    font-size: 14px;
}

.em-price-current {
    color: var(--em-primary);
    font-size: 24px;
    font-weight: 700;
}

.em-price-free {
    color: var(--em-success);
    font-size: 24px;
    font-weight: 700;
}

/* Buttons */
.em-btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--em-radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--em-font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.em-btn-primary {
    background: var(--em-accent);
    color: white;
}

.em-btn-primary:hover {
    background: #ea580c;
    transform: translateY(-1px);
    box-shadow: var(--em-shadow-md);
}

/* Category Badge */
.em-category-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 6px 14px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    text-transform: capitalize;
    z-index: 2;
    background: #061c1c;
}

.em-featured-card .em-category-badge {
    background: #061c1c;
}

.em-category-technology { background: #061c1c; }
.em-category-music { background: #061c1c; }
.em-category-food { background: #061c1c; }
.em-category-art { background: #061c1c; }
.em-category-wine { background: #061c1c; }
.em-category-photography { background: #061c1c; }
.em-category-comedy { background: #061c1c; }
.em-category-literature { background: #061c1c; }
.em-category-fitness { background: #061c1c; }
.em-category-business { background: #061c1c; }

/* Event Logo */
.em-event-logo {
    position: absolute;
    bottom: 16px;
    right: 16px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: var(--em-radius-sm);
    box-shadow: var(--em-shadow-md);
    z-index: 2;
    max-width: 120px;
}

.em-event-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 40px;
    object-fit: contain;
}

/* Regular Events Grid */
.em-events-grid {
    position: relative;
}

.em-tab-content {
    display: none;
}

.em-tab-content.active {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* Subsections for "Alle" tab */
.em-tab-content[data-content="all"] {
    display: none;
}

.em-tab-content[data-content="all"].active {
    display: block;
}

.em-tab-content .em-section {
    margin-bottom: 64px;
}

.em-tab-content .em-section:last-child {
    margin-bottom: 0;
}

.em-tab-content .em-section h3 {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--em-text-primary);
}

.em-tab-content.active > .em-section,
.em-tab-content.active > .em-events-subsection {
    grid-column: 1 / -1;
}

.em-events-subsection {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 1200px) {
    .em-tab-content.active {
        grid-template-columns: repeat(2, 1fr);
    }

    .em-events-subsection {
        grid-template-columns: repeat(2, 1fr);
    }
}

.em-events-grid[data-view="list"] .em-tab-content.active {
    grid-template-columns: 1fr;
}

.em-events-grid[data-view="list"] .em-events-subsection {
    grid-template-columns: 1fr;
}

/* Event Card */
.em-event-card {
    background: white;
    border-radius: var(--em-radius-md);
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.em-event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: rgba(6, 28, 28, 0.2);
}

.em-events-grid[data-view="list"] .em-event-card {
    flex-direction: row;
}

.em-event-image {
    position: relative;
    background-size: cover;
    background-position: center;
    height: 180px;
    background-color: var(--em-bg-light);
}

.em-events-grid[data-view="list"] .em-event-image {
    width: 300px;
    height: auto;
    min-height: 180px;
    flex-shrink: 0;
}

.em-event-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 4px;
}

.em-event-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--em-text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.em-event-meta {
    margin: 0;
}

.em-meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--em-text-secondary);
    font-size: 12px;
}

.em-meta-date svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.em-event-location {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--em-text-secondary);
    font-size: 12px;
    margin-bottom: auto;
}

.em-event-location svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
}

.em-event-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.em-read-more {
    font-size: 14px;
    font-weight: 600;
    color: #061c1c;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.em-read-more:hover {
    opacity: 0.7;
}

.em-event-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--em-text-primary);
}

.em-event-price strong {
    color: var(--em-text-primary);
}

.em-event-stats {
    font-size: 11px;
    color: var(--em-text-secondary);
}

.em-spots-left {
    color: var(--em-warning);
    font-weight: 600;
}

.em-attendees {
    color: var(--em-text-secondary);
}

.em-no-events {
    text-align: center;
    padding: 60px 20px;
    color: var(--em-text-secondary);
    font-size: 16px;
}

/* Modal */
.em-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
}

.em-modal.active {
    display: flex;
}

/* Luxury Modal Opening Animation */
/* Overlay animation removed - now handled by .active class transition */

.em-modal.modal-opening .em-modal-wrapper {
    animation: luxuryModalEntrance 600ms cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.em-modal.modal-opening .em-modal-close {
    animation: luxuryFadeIn 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 300ms backwards;
}

/* Hero Content Animations */
.em-modal.modal-opening .em-modal-tag-badges {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 400ms backwards;
}

.em-modal.modal-opening .em-modal-rating {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 420ms backwards;
}

.em-modal.modal-opening .em-modal-title {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 480ms backwards;
}

.em-modal.modal-opening .em-modal-short-description {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 560ms backwards;
}

.em-modal.modal-opening .em-modal-info-boxes {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 640ms backwards;
}

/* Price Card Animations */
.em-modal.modal-opening .em-modal-price-card {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 500ms backwards;
}

.em-modal.modal-opening .em-modal-price-logo {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 400ms backwards;
}

.em-modal.modal-opening .em-modal-price-amount {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 520ms backwards;
}

.em-modal.modal-opening .em-modal-get-tickets-btn {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 600ms backwards;
}

.em-modal.modal-opening .em-modal-tickets-left {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 700ms backwards;
}

/* Section Animations */
.em-modal.modal-opening .em-modal-section {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) 700ms backwards;
}

/* Gallery Items with Cascade Effect */
.em-modal.modal-opening .em-modal-gallery-item {
    animation: luxuryContentFade 600ms cubic-bezier(0.25, 0.1, 0.25, 1) backwards;
    /* Individual delays set via JavaScript for cascade effect */
}

@keyframes luxuryModalEntrance {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes luxuryFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.em-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 800ms cubic-bezier(0.4, 0.0, 0.2, 1),
                background 800ms cubic-bezier(0.4, 0.0, 0.2, 1);
    will-change: opacity, background;
    transform: translateZ(0);
}

.em-modal.active .em-modal-overlay {
    background: rgba(0, 0, 0, 0.7);
    opacity: 1;
}

.em-modal-content {
    position: relative;
    background: white;
    border-radius: var(--em-radius-lg);
    overflow: hidden;
    width: 100%;
    height: 100%;
}

.em-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.em-modal-close i {
    font-size: 18px;
}

.em-modal-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: rotate(90deg);
}

.em-modal-body {
    padding: 0;
}

.em-modal-header-image {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--em-radius-lg) var(--em-radius-lg) 0 0;
}

.em-modal-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 24px 0;
    color: var(--em-text-primary);
}

.em-modal-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    padding: 24px;
    background: var(--em-bg-light);
    border-radius: var(--em-radius-md);
    margin-bottom: 24px;
}

.em-modal-meta-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.em-modal-meta-icon {
    width: 40px;
    height: 40px;
    background: white;
    border-radius: var(--em-radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--em-primary);
}

.em-modal-meta-text {
    flex: 1;
}

.em-modal-meta-label {
    font-size: 12px;
    color: var(--em-text-secondary);
    margin-bottom: 4px;
    text-transform: uppercase;
    font-weight: 600;
}

.em-modal-meta-value {
    font-size: 14px;
    color: var(--em-text-primary);
    font-weight: 600;
}

.em-modal-description {
    color: var(--em-text-secondary);
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 32px;
}

.em-modal-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 24px;
    border-top: 1px solid var(--em-border);
}

.em-modal-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.em-modal-price-amount {
    font-size: 36px;
    font-weight: 700;
    color: var(--em-primary);
}

.em-btn-large {
    padding: 16px 40px;
    font-size: 16px;
}

/* Luxury Loader */
.em-modal-loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    opacity: 1;
    transition: opacity 400ms ease-out;
    pointer-events: none;
}

.em-modal-loading.fade-out {
    opacity: 0;
}

.em-luxury-loader {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 48px 64px;
    text-align: center;
    min-width: 320px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    will-change: opacity;
    transform: translateZ(0);
}

/* Progress Ring */
.em-loader-progress {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 24px;
}

.em-progress-ring {
    transform: rotate(-90deg);
    will-change: transform;
}

.em-progress-ring-circle {
    stroke-dasharray: 226;
    stroke-dashoffset: 226;
    transition: stroke-dashoffset 0.3s ease;
    animation: progressSpin 2s ease-in-out infinite;
}

@keyframes progressSpin {
    0% {
        stroke-dashoffset: 226;
    }
    50% {
        stroke-dashoffset: 56;
    }
    100% {
        stroke-dashoffset: 226;
    }
}

.em-loader-percentage {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    font-weight: 700;
    color: white;
}

/* Loader Logo with Breathing Animation */
.em-loader-logo {
    margin-bottom: 32px;
    display: flex;
    justify-content: center;
    animation: loaderLogoBreathing 2s ease-in-out infinite;
}

.em-loader-logo img {
    max-width: 120px;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.9;
}

@keyframes loaderLogoBreathing {
    0%, 100% {
        opacity: 0.9;
        transform: scale(1);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
}

/* Pulsing Dots Wave Animation */
.em-loader-dots {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
}

.em-loader-dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: loaderDotPulse 1.6s ease-in-out infinite;
}

/* Stagger delays for elegant wave effect */
.em-loader-dot:nth-child(1) { animation-delay: 0ms; }
.em-loader-dot:nth-child(2) { animation-delay: 200ms; }
.em-loader-dot:nth-child(3) { animation-delay: 400ms; }
.em-loader-dot:nth-child(4) { animation-delay: 600ms; }
.em-loader-dot:nth-child(5) { animation-delay: 800ms; }
.em-loader-dot:nth-child(6) { animation-delay: 1000ms; }
.em-loader-dot:nth-child(7) { animation-delay: 1200ms; }
.em-loader-dot:nth-child(8) { animation-delay: 1400ms; }

@keyframes loaderDotPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(0.8);
    }
    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

/* Loading Text with Subtle Fade */
.em-loader-text {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    animation: loaderTextFade 2s ease-in-out infinite;
}

@keyframes loaderTextFade {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* Responsive Loader */
@media (max-width: 768px) {
    .em-luxury-loader {
        padding: 36px 48px;
        min-width: 280px;
    }

    .em-loader-dots {
        gap: 10px;
    }

    .em-loader-dot {
        width: 8px;
        height: 8px;
    }

    .em-loader-text {
        font-size: 14px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .em-featured-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .em-hero {
        padding: 60px 24px calc(var(--em-filter-overlap) + var(--em-filter-gap)) 24px;
    }

    .em-hero-title {
        font-size: 36px;
    }

    .em-hero-subtitle {
        font-size: 16px;
    }

    .em-events-container {
        padding: 24px;
        margin-top: calc(var(--em-filter-overlap) * -1);
    }

    .em-events-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .em-tabs {
        width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        flex-wrap: nowrap;
        gap: 16px;
        -webkit-overflow-scrolling: touch;
    }

    .em-tabs::-webkit-scrollbar {
        height: 6px;
    }

    .em-tabs::-webkit-scrollbar-thumb {
        background: rgba(31, 41, 55, 0.15);
        border-radius: 10px;
    }

    .em-tabs .em-tab {
        flex: 0 0 auto;
        min-width: max-content;
        white-space: nowrap;
        text-align: left;
    }

    .em-view-toggle {
        display: none;
    }

    .em-featured-card {
        grid-template-columns: 1fr;
    }

    .em-featured-image {
        min-height: 240px;
    }

    .em-tab-content.active {
        grid-template-columns: 1fr;
    }

    .em-events-subsection {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .em-events-grid[data-view="list"] .em-event-card {
        flex-direction: column;
    }

    .em-events-grid[data-view="list"] .em-event-image {
        width: 100%;
        height: 200px;
    }

    .em-modal-body {
        padding: 24px;
    }

    .em-modal-title {
        font-size: 24px;
    }

    .em-modal-footer {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }

    .em-btn-large {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .em-hero-title {
        font-size: 28px;
    }

    .em-events-header h2 {
        font-size: 24px;
    }

    .em-section-header h3 {
        font-size: 20px;
    }
}

/* Event Detail Modal (Image Background Design) */
.em-modal-wrapper {
    position: relative;
    background: transparent;
    border-radius: var(--em-radius-lg);
    max-width: 1200px;
    width: 90%;
    max-height: calc(90vh - 15px);
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    scroll-behavior: smooth;
    top: 15px;
    opacity: 0; /* Hidden by default */
    will-change: opacity, transform;
    transform: translateZ(0);
}

/* CRITICAL: Base visibility from .active class - keeps wrapper visible */
.em-modal.active .em-modal-wrapper {
    opacity: 1;
    transition: opacity 300ms ease-out;
}

/* Custom Scrollbar for WebKit browsers (Chrome, Safari, Edge) */
.em-modal-wrapper::-webkit-scrollbar {
    width: 8px;
}

.em-modal-wrapper::-webkit-scrollbar-track {
    background: transparent;
    border-radius: var(--em-radius-lg);
}

.em-modal-wrapper::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.em-modal-wrapper::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Custom Scrollbar for Firefox */
.em-modal-wrapper {
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
}

.em-modal-hero {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    padding: 45px 55px 45px 55px;
    display: flex;
    align-items: flex-end;
    border-radius: var(--em-radius-lg) var(--em-radius-lg) 0 0;
}

.em-modal-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
        rgba(6, 28, 28, 0.65) 0%,
        rgba(6, 28, 28, 0.88) 40%,
        rgba(6, 28, 28, 0.95) 100%
    );
    z-index: 1;
    border-radius: var(--em-radius-lg) var(--em-radius-lg) 0 0;
}

.em-modal-hero-container {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: stretch;
    justify-content: space-between;
    gap: 48px;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.em-modal-hero-left {
    flex: 1;
    max-width: 700px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.em-modal-hero-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.em-modal-tag-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.em-modal-tag-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    color: white !important;
    text-transform: capitalize;
    display: inline-block;
    white-space: nowrap;
}

.em-modal-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: white;
}

.em-modal-rating svg {
    width: 16px;
    height: 16px;
    fill: #fbbf24;
    stroke: none;
}

.em-modal-rating .em-reviews-count {
    color: rgba(255, 255, 255, 0.9);
}

.em-modal-hero-left .em-modal-title,
.em-modal-title,
h1.em-modal-title {
    font-size: 48px !important;
    font-weight: 700 !important;
    color: white !important;
    margin: 0 0 20px 0 !important;
    line-height: 1.15 !important;
}

.em-modal-title.fusion-responsive-typography-calculated,
h1.em-modal-title.fusion-responsive-typography-calculated {
    font-size: 48px !important;
}

.em-modal-short-description {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.85) !important;
    margin: 0 0 36px 0;
    line-height: 1.6;
    display: block;
}

.em-modal-info-boxes {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.em-modal-info-box {
    background: transparent;
    backdrop-filter: none;
    border: none;
    border-radius: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 0 0 auto;
}

.em-modal-location-box {
    flex: 0 0 auto;
}

.em-modal-info-icon-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.em-modal-info-icon-circle svg {
    width: 20px;
    height: 20px;
    stroke: rgba(255, 255, 255, 0.95);
}

.em-modal-info-content {
    flex: 1;
}

.em-modal-info-label {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95) !important;
    line-height: 1.3;
    margin-bottom: 2px;
}

.em-modal-info-sublabel {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.65) !important;
    line-height: 1.3;
}

.em-modal-hero-right {
    flex-shrink: 0;
    width: 360px;
    display: flex;
    flex-direction: column;
}

.em-modal-price-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px) saturate(110%);
    -webkit-backdrop-filter: blur(8px) saturate(110%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--em-radius-lg);
    padding: 32px 32px 32px 32px;
    text-align: center;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.em-modal-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1;
    margin-bottom: 8px;
}

.em-modal-price-label {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 24px;
}

.em-modal-get-tickets-btn {
    width: 100%;
    background: white;
    color: #1f2937;
    border: none;
    border-radius: var(--em-radius-sm);
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 700;
    font-family: var(--em-font-family);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 0;
}

.em-modal-get-tickets-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.3);
}

.em-modal-tickets-left {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.em-modal-tickets-dot {
    width: 8px;
    height: 8px;
    background: #ef4444;
    border-radius: 50%;
}

.em-modal-tickets-text {
    font-weight: 500;
}

.em-modal-price-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.em-modal-price-logo img {
    max-width: 120px;
    height: auto;
    max-height: 60px;
    object-fit: contain;
    opacity: 0.95;
}

/* Modal Sections */
.em-modal-section {
    padding: 40px 55px;
    border-bottom: none;
    background: white;
}

.em-modal-section:last-child {
    border-bottom: none;
}

.em-modal-section h3 {
    font-size: 32px;
    font-weight: 700;
    color: var(--em-text-primary);
    margin: 0 0 32px 0;
}

.em-modal-description-content {
    color: var(--em-text-secondary);
    font-size: 17px;
    line-height: 1.8;
    max-width: 900px;
}

.em-modal-description-content p {
    margin-bottom: 20px;
}

.em-modal-description-content p:last-child {
    margin-bottom: 0;
}

/* Gallery Grid */
.em-modal-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    grid-auto-flow: dense;
}

.em-modal-gallery-item {
    position: relative;
    border-radius: var(--em-radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.em-modal-gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--em-shadow-lg);
}

.em-modal-gallery-item img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* Varied grid spans for interesting layout */
.em-modal-gallery-item:nth-child(6n+1) {
    grid-column: span 2;
    grid-row: span 2;
}

.em-modal-gallery-item:nth-child(6n+4) {
    grid-column: span 2;
}

.em-modal-gallery-item:nth-child(6n+5) {
    grid-row: span 2;
}

/* Lightbox */
.em-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.80);
    z-index: 2147483647;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.em-lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.em-lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--em-radius-md);
}

.em-lightbox-close {
    position: absolute;
    top: 80px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.em-lightbox-close i {
    font-size: 20px;
}

.em-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.em-lightbox-prev,
.em-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.em-lightbox-prev i,
.em-lightbox-next i {
    font-size: 22px;
}

.em-lightbox-prev:hover,
.em-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.em-lightbox-prev {
    left: 20px;
}

.em-lightbox-next {
    right: 20px;
}

/* Responsive Modal */
@media (max-width: 1024px) {
    .em-modal-hero {
        padding: 48px 40px;
    }

    .em-modal-hero-container {
        flex-direction: column;
        gap: 40px;
    }

    .em-modal-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .em-modal-gallery-item:nth-child(6n+1) {
        grid-column: span 2;
        grid-row: span 1;
    }

    .em-modal-gallery-item:nth-child(6n+4),
    .em-modal-gallery-item:nth-child(6n+5) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .em-modal-hero-right {
        width: 100%;
        max-width: 400px;
    }

    .em-modal-section {
        padding: 48px 40px;
    }
}

@media (max-width: 768px) {
    .em-modal-hero {
        padding: 32px 24px;
        min-height: 400px;
    }

    .em-modal-title {
        font-size: 32px;
    }

    .em-modal-short-description {
        font-size: 16px;
        margin-bottom: 32px;
    }

    .em-modal-info-boxes {
        flex-direction: column;
        gap: 12px;
    }

    .em-modal-info-box {
        min-width: 100%;
    }

    .em-modal-price-amount {
        font-size: 42px;
    }

    .em-modal-section {
        padding: 32px 24px;
    }

    .em-modal-section h3 {
        font-size: 24px;
    }

    .em-modal-description-content {
        font-size: 16px;
    }

    .em-modal-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .em-modal-gallery-item:nth-child(6n+1),
    .em-modal-gallery-item:nth-child(6n+4),
    .em-modal-gallery-item:nth-child(6n+5) {
        grid-column: span 1;
        grid-row: span 1;
    }

    .em-modal-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(10px);
    }
}
