/* ==========================================
   EventMaster - Frontend Styles
   ========================================== */

/* --- Shared --- */
.em-no-events {
    text-align: center;
    color: #64748b;
    padding: 40px 20px;
    font-size: 1rem;
}
.em-badge {
    display: inline-block;
    background: #f5eef3;
    color: #512d47;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    margin-right: 4px;
}

/* ==========================================
   CALENDAR
   ========================================== */

/* Category filter pills */
.em-cal-widget { max-width: 100%; }
.em-cal-filters {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    position: static;
    padding: 15px 20px 20px;
    background: #f1f5f9;
    border-radius: 16px;
    margin-bottom: 0;
}
.em-cal-filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    line-height: 1;
}
.em-cal-filter-btn:hover { border-color: #0f172a; color: #0f172a; }
.em-cal-filter-btn.active { background: #0f172a; border-color: #0f172a; color: #fff; }
.em-cal-filter-parent.active { background: #7c092a; border-color: #7c092a; color: #fff; }
.em-cal-filter-parent:hover { border-color: #7c092a; color: #7c092a; }

/* Two-row filter layout */
.em-cal-filters-rows {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}
.em-cal-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.em-cal-filter-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: #512d47;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
    margin-right: 4px;
}

/* Two-column layout */
.em-cal-main {
    display: grid;
    grid-template-columns: 375px 1fr;
    gap: 20px;
}
.em-cal-side {
    height: 100%;
}
.em-cal-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    position: sticky;
    top: 150px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

/* Calendar header */
.em-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.em-cal-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}
.em-cal-nav {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.1rem;
    padding: 4px 10px;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    line-height: 1;
}
.em-cal-nav:hover { background: #f3f4f6; color: #1e293b; }

/* Calendar grid */
.em-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
}
.em-cal-weekday {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    padding: 0 0 10px;
    letter-spacing: 0.03em;
}
.em-cal-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 0 5px;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.12s;
    position: relative;
}
.em-cal-day:hover:not(.em-cal-empty) .em-cal-day-num:not(.em-cal-today .em-cal-day-num):not(.em-cal-selected .em-cal-day-num) {
    background: #f3f4f6;
}
.em-cal-empty { cursor: default; pointer-events: none; }
.em-cal-day-num {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 400;
    color: #374151;
    transition: background 0.12s, color 0.12s;
}
.em-cal-has-events .em-cal-day-num {
    background: #f3f4f6;
    font-weight: 600;
    color: #1e293b;
}
.em-cal-today .em-cal-day-num {
    background: #fef3c7 !important;
    color: #92400e !important;
    font-weight: 700;
}
.em-cal-selected .em-cal-day-num {
    background: #1e293b !important;
    color: #fff !important;
    font-weight: 600;
}
.em-cal-dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #512d47;
    margin-top: 2px;
}
.em-cal-dots { display: flex; gap: 2px; margin-top: 2px; justify-content: center; }
.em-cal-more { font-size: 0.6rem; color: #64748b; }

/* Events panel (right) */
.em-cal-panel { min-width: 0; }
.em-cal-events-panel {
    display: flex;
    flex-direction: column;
    transition: opacity 0.2s;
}
.em-cal-events-wrap {
    min-width: 0;
    max-width: 100%;
}
.em-cal-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 16px;
    padding: 60px 20px;
    margin-bottom: 24px;
    text-align: center;
    border: 2px dashed #e2e8f0;
    max-width: 600px;
}
.em-cal-empty-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 96px;
    height: 96px;
    background: #f8fafc;
    border-radius: 50%;
    margin-bottom: 24px;
}
.em-cal-empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #475569;
    margin: 0 0 12px;
}
.em-cal-empty-desc {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    max-width: 320px;
    line-height: 1.5;
}
.em-cal-event-item {
    display: flex;
    align-items: stretch;
    background: #fcf7f3;
    border-radius: 16px;
    margin-bottom: 24px;
    position: relative;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    width: 100%;
}
.em-cal-event-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}
.em-cal-event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 110px;
    background: #b9c9c0;
    border-right: 1px solid #e2e8f0;
    border-radius: 16px 0 0 16px;
    padding: 20px 10px;
}
.em-cal-event-month {
    font-size: 13px;
    font-weight: 600;
    color: #512d47;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.em-cal-event-day {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    line-height: 1;
    margin: 4px 0 8px;
}
.em-cal-event-time {
    font-size: 13px;
    color: #7c092a;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.em-cal-event-body {
    min-width: 0;
    flex: 1 1 0%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 15px 20px;
    overflow: hidden;
}
.em-cal-event-meta {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 20px;
    flex-wrap: wrap;
}
.em-cal-badge {
    display: inline-block;
    background: #f5eef3;
    color: #512d47;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 14px;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.em-cal-badge--recurring {
    background: #f0fdf4;
    color: #16a34a;
    font-size: 11px;
    padding: 4px 10px;
}
.em-cal-event-loc {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.em-cal-event-title {
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.3;
    word-break: break-word;
    overflow-wrap: break-word;
}
.em-cal-event-excerpt {
    font-size: 16px;
    color: #475569;
    line-height: 1.5;
    margin: 0;
    font-weight: 400;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
.em-cal-event-actions {
    display: flex;
    gap: 12px;
    margin-top: 16px;
    position: relative;
    z-index: 2;
}
.em-cal-btn-add {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 8px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s;
}
.em-cal-btn-add:hover {
    background: #ffffff;
    border-color: #cbd5e1;
    color: #0f172a;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05);
}
.em-cal-event-image {
    order: 99;
    width: 360px;
    flex-shrink: 0;
    align-self: stretch;
    background-size: cover;
    background-position: center;
    border-radius: 0 16px 16px 0;
    position: relative;
}
.em-cal-event-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, #fcf7f3 0%, transparent 30%);
    border-radius: 0 16px 16px 0;
    pointer-events: none;
}
.em-cal-event-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding-right: 16px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.em-cal-event-item:hover .em-cal-event-arrow {
    opacity: 1;
    transform: translateY(-50%) translateX(4px);
}
.em-cal-event-link {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    z-index: 1;
}
.em-cal-no-events {
    text-align: center;
    color: #9ca3af;
    padding: 40px 20px;
    font-size: 0.95rem;
}

/* Hide old day-events container */
.em-day-events-container { display: none !important; }

@media (max-width: 960px) {
    .em-cal-main { grid-template-columns: 1fr; }
    .em-cal-card { max-width: 380px; }
    .em-cal-event-image { display: none; }
}

/* ==========================================
   LIST VIEW
   ========================================== */
.em-list-wrap {
    max-width: 700px;
}
.em-list-month {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin: 25px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.em-list-month:first-child {
    margin-top: 0;
}
.em-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.em-list-item {
    display: flex;
    gap: 18px;
    padding: 14px 0;
    border-bottom: 1px solid #f1f5f9;
    align-items: flex-start;
}
.em-list-item:last-child {
    border-bottom: none;
}
.em-list-date {
    flex-shrink: 0;
    width: 55px;
    text-align: center;
    background: #f8fafc;
    border-radius: 8px;
    padding: 8px 6px;
}
.em-list-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #512d47;
    line-height: 1.2;
}
.em-list-weekday {
    display: block;
    font-size: 0.7rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}
.em-list-content {
    flex: 1;
    min-width: 0;
}
.em-list-title {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}
.em-list-title:hover {
    color: #512d47;
}
.em-list-meta {
    display: flex;
    gap: 15px;
    font-size: 0.85rem;
    color: #64748b;
    flex-wrap: wrap;
}
.em-list-time::before {
    content: "\1F552 ";
}
.em-list-location::before {
    content: "\1F4CD ";
}
.em-list-cats {
    margin-top: 6px;
}

/* ==========================================
   HORIZONTAL CARDS VIEW
   ========================================== */
.em-hcards-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.em-hcard {
    display: grid;
    grid-template-columns: 1fr 240px;
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.22s, box-shadow 0.22s;
    position: relative;
}
.em-hcard:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.10);
}
.em-hcard-body {
    grid-column: 1;
    grid-row: 1;
}
.em-hcard-image {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    background: #f1f5f9;
    overflow: hidden;
    align-self: stretch;
}
.em-hcard-img-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}
.em-hcard-img-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e1;
    font-size: 2.5rem;
}
.em-hcard-date-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255,255,255,0.95);
    border-radius: 10px;
    padding: 6px 11px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    line-height: 1.15;
    backdrop-filter: blur(4px);
}
.em-hcard-date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 800;
    color: #512d47;
    letter-spacing: -0.5px;
}
.em-hcard-date-month {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.em-hcard-date-year {
    display: block;
    font-size: 0.68rem;
    font-weight: 600;
    color: #94a3b8;
}
.em-hcard-body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.em-hcard-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.em-hcard:hover .em-hcard-title {
    color: #512d47;
    transition: color 0.15s;
}
.em-hcard-title-link {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: inherit;
}
.em-hcard-title-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.em-hcard-title-link:hover {
    text-decoration: none !important;
}
.em-hcard-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 10px;
}
.em-hcard-time::before    { content: "\1F552\00A0"; }
.em-hcard-location::before { content: "\1F4CD\00A0"; }
.em-hcard-organizer { color: #64748b; }
.em-hcard-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 0 0 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}
.em-hcard-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    position: relative;
    z-index: 2;
}
@media (max-width: 600px) {
    .em-hcard {
        grid-template-columns: 1fr;
    }
    .em-hcard-body  { grid-column: 1; grid-row: 2; }
    .em-hcard-image { grid-column: 1; grid-row: 1; min-height: 180px; }
}

/* ==========================================
   CARDS VIEW
   ========================================== */

/* Filter bar */
.em-cards-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
    align-items: center;
}
.em-cards-filter-clear-wrap {
    margin: 20px 0;
}
.em-cards-filter-clear {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #fff;
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
    line-height: 1.4;
}
.em-cards-filter-clear:hover {
    border-color: #cbd5e1;
    color: #64748b;
}

.em-cards-loadmore-wrap {
    text-align: center;
    margin-top: 32px;
}
.em-cards-loadmore {
    display: inline-block;
    padding: 10px 32px;
    background: transparent;
    border: 2px solid #7c092a;
    color: #7c092a;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}
.em-cards-loadmore:hover {
    background: #7c092a;
    color: #fff;
}

@keyframes emCardIn {
    from { opacity: 0; transform: translateY(22px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0)    scale(1); }
}

.em-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
}
.em-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.22s, box-shadow 0.22s, opacity 0.22s;
    animation: emCardIn 0.45s ease both;
}
.em-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.11);
}
.em-card {
    position: relative;
}
.em-card-title-link {
    text-decoration: none !important;
    border-bottom: none !important;
    box-shadow: none !important;
    color: #0f172a;
}
.em-card-title-link::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
}
.em-card-title-link:hover {
    text-decoration: none !important;
    color: #512d47;
}
.em-card-cats {
    position: relative;
    z-index: 2;
}
.em-card-image {
    height: 200px;
    background: #f1f5f9;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.em-card-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #cbd5e1;
    font-size: 3rem;
}
.em-card-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #fff;
    border-radius: 10px;
    padding: 6px 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.13);
    line-height: 1.15;
}
.em-card-date-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 800;
    color: #512d47;
    letter-spacing: -0.5px;
}
.em-card-date-month {
    display: block;
    font-size: 0.68rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.em-card-body {
    padding: 20px 20px 18px;
}
.em-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 10px;
    line-height: 1.35;
    letter-spacing: -0.01em;
}
.em-card:hover .em-card-title {
    color: #512d47;
    transition: color 0.15s;
}
.em-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #64748b;
    margin-bottom: 10px;
}
.em-card-time::before {
    content: "\1F552\00A0";
}
.em-card-location::before {
    content: "\1F4CD\00A0";
}
.em-card-organizer {
    color: #64748b;
}
.em-card-excerpt {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin: 10px 0 0;
}
.em-card-cats {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

/* ==========================================
   CARDS – STYLE VARIANTS
   ========================================== */

/* --- minimal --- */
.em-style-minimal .em-card {
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}
.em-style-minimal .em-card:hover {
    transform: none;
    box-shadow: none;
    border-color: #512d47;
    border-width: 2px;
}
.em-style-minimal .em-card-image { height: 160px; border-radius: 0; }
.em-style-minimal .em-card-body  { padding: 14px 16px 12px; }
.em-style-minimal .em-card-date-badge { border-radius: 6px; }

/* --- glass --- */
.em-style-glass .em-card {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px rgba(37,99,235,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
}
.em-style-glass .em-card:hover {
    box-shadow: 0 18px 52px rgba(37,99,235,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-5px);
}
.em-style-glass .em-card-date-badge {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(4px);
}

/* --- dark --- */
.em-style-dark .em-card {
    background: #1e293b;
    border-color: #334155;
}
.em-style-dark .em-card:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.em-style-dark .em-card-title   { color: #f1f5f9; }
.em-style-dark .em-card-title-link { color: #f1f5f9; }
.em-style-dark .em-card:hover .em-card-title { color: #c9a8bf; }
.em-style-dark .em-card-meta    { color: #94a3b8; }
.em-style-dark .em-card-excerpt { color: #94a3b8; }
.em-style-dark .em-card-no-image { color: #334155; }
.em-style-dark .em-card-date-badge { background: rgba(15,23,42,0.88); }
.em-style-dark .em-card-date-day   { color: #c9a8bf; }
.em-style-dark .em-card-date-month { color: #475569; }
.em-style-dark .em-badge { background: #3d1f35; color: #c9a8bf; }

/* --- gradient --- */
.em-style-gradient .em-card {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}
.em-style-gradient .em-card:hover {
    box-shadow: 0 18px 44px rgba(37,99,235,0.22);
}
.em-style-gradient .em-card-image { height: 220px; }
.em-style-gradient .em-card-date-badge {
    background: linear-gradient(135deg, #512d47 0%, #7c3aed 100%);
    box-shadow: 0 4px 14px rgba(37,99,235,0.45);
}
.em-style-gradient .em-card-date-day   { color: #fff; }
.em-style-gradient .em-card-date-month { color: rgba(255,255,255,0.8); }
.em-style-gradient .em-card:hover .em-card-title { color: #7c3aed; }
.em-style-gradient .em-card-title-link:hover { color: #7c3aed; }
.em-style-gradient .em-badge { background: #f3e8ff; color: #7c3aed; }

/* ==========================================
   HCARDS – STYLE VARIANTS
   ========================================== */

/* --- minimal --- */
.em-style-minimal .em-hcard {
    border-radius: 8px;
    box-shadow: none;
    border: 1px solid #e2e8f0;
}
.em-style-minimal .em-hcard:hover {
    transform: none;
    box-shadow: none;
    border-color: #512d47;
    border-width: 2px;
}

/* --- glass --- */
.em-style-glass .em-hcard {
    background: rgba(255,255,255,0.65);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 8px 32px rgba(37,99,235,0.10), inset 0 1px 0 rgba(255,255,255,0.8);
}
.em-style-glass .em-hcard:hover {
    box-shadow: 0 18px 52px rgba(37,99,235,0.18), inset 0 1px 0 rgba(255,255,255,0.8);
    transform: translateY(-3px);
}
.em-style-glass .em-hcard-date-badge {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(4px);
}

/* --- dark --- */
.em-style-dark .em-hcard {
    background: #1e293b;
    border-color: #334155;
}
.em-style-dark .em-hcard:hover { box-shadow: 0 12px 32px rgba(0,0,0,0.35); }
.em-style-dark .em-hcard-title   { color: #f1f5f9; }
.em-style-dark .em-hcard-title-link { color: #f1f5f9; }
.em-style-dark .em-hcard:hover .em-hcard-title { color: #c9a8bf; }
.em-style-dark .em-hcard-meta    { color: #94a3b8; }
.em-style-dark .em-hcard-excerpt { color: #94a3b8; }
.em-style-dark .em-hcard-image   { background: #0f172a; }
.em-style-dark .em-hcard-img-placeholder { color: #334155; }
.em-style-dark .em-hcard-date-badge { background: rgba(15,23,42,0.88); }
.em-style-dark .em-hcard-date-day   { color: #c9a8bf; }
.em-style-dark .em-hcard-date-month { color: #475569; }
.em-style-dark .em-hcard-date-year  { color: #475569; }
.em-style-dark .em-badge { background: #3d1f35; color: #c9a8bf; }

/* --- gradient --- */
.em-style-gradient .em-hcard {
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    grid-template-columns: 240px 1fr;
}
.em-style-gradient .em-hcard:hover {
    box-shadow: 0 18px 44px rgba(37,99,235,0.22);
}
.em-style-gradient .em-hcard-date-badge {
    background: linear-gradient(135deg, #512d47 0%, #7c3aed 100%);
    box-shadow: 0 4px 14px rgba(37,99,235,0.45);
}
.em-style-gradient .em-hcard-date-day   { color: #fff; }
.em-style-gradient .em-hcard-date-month { color: rgba(255,255,255,0.8); }
.em-style-gradient .em-hcard-date-year  { color: rgba(255,255,255,0.7); }
.em-style-gradient .em-hcard:hover .em-hcard-title { color: #7c3aed; }
.em-style-gradient .em-badge { background: #f3e8ff; color: #7c3aed; }

/* ==========================================
   SLIDER
   ========================================== */
@keyframes em-kb {
    from { transform: scale(1.08); }
    to   { transform: scale(1.0); }
}
@keyframes em-slide-up {
    from { transform: translateY(110%); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes em-fade-in-up {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes em-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.em-slider-wrapper {
    margin: 0 5%;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.18);
}

.em-slider {
    position: relative;
    width: 100%;
    height: 600px;
    min-height: 500px;
    overflow: hidden;
    background: #000;
}

/* Slides stacked, opacity crossfade */
.em-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    pointer-events: none;
}
.em-slide.active {
    opacity: 1;
    pointer-events: auto;
}

/* Background with Ken Burns */
.em-slide-bg {
    position: absolute;
    inset: 0;
    background: #1e293b;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 10s linear;
}
.em-slide.active .em-slide-bg {
    animation: em-kb 10s linear forwards;
}

/* Dark gradient overlays */
.em-slide-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top,  rgba(0,0,0,0.88) 0%, rgba(0,0,0,0.45) 40%, transparent 75%),
        linear-gradient(to right, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0.15) 55%, transparent 80%);
    z-index: 1;
}

/* Content positioned bottom-left */
.em-slide-body {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: flex-end;
    padding-bottom: 76px;
}
.em-slide-inner {
    display: flex;
    flex-direction: column;
    max-width: 600px;
    padding-left: 60px;
    padding-right: 60px;
}

/* Date badge */
.em-slide-date-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.22);
    border-radius: 999px;
    padding: 6px 16px;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
    width: fit-content;
    opacity: 0;
}
.em-slide.active .em-slide-date-badge {
    animation: em-fade-in-up 0.6s ease-out 0.1s forwards;
}

/* Title overflow clip for slide-up animation */
.em-slide-titles {
    overflow: hidden;
    margin-bottom: 18px;
}
.em-slide-title {
    font-size: 3rem;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 10px;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 20px rgba(0,0,0,0.5);
    transform: translateY(110%);
    opacity: 0;
}
.em-slide.active .em-slide-title {
    animation: em-slide-up 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.05s forwards;
}
.em-slide-title a {
    color: #fff;
    text-decoration: none;
}
.em-slide-title a:hover { opacity: 0.88; }

.em-slide-subtitle {
    color: rgba(255,255,255,0.72);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.55;
    margin: 0;
    opacity: 0;
}
.em-slide.active .em-slide-subtitle {
    animation: em-fade-in 0.9s ease-out 0.5s forwards;
}

/* Meta row */
.em-slide-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 26px;
    opacity: 0;
}
.em-slide.active .em-slide-meta-row {
    animation: em-fade-in 1s ease-out 0.65s forwards;
}
.em-slide-meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.85);
}
.em-meta-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: rgba(255,255,255,0.08);
    border-radius: 9px;
    flex-shrink: 0;
    color: #c9a8bf;
}
.em-meta-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.4);
    margin: 0 0 2px;
}
.em-meta-value {
    font-size: 0.88rem;
    font-weight: 500;
    color: rgba(255,255,255,0.9);
    margin: 0;
}

/* CTA button */
.em-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #0f172a !important;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 12px 26px;
    border-radius: 999px;
    text-decoration: none !important;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    width: fit-content;
    opacity: 0;
}
.em-slide.active .em-slide-cta {
    animation: em-fade-in 1s ease-out 0.85s forwards;
}
.em-slide-cta:hover {
    background: #fbbf24;
    color: #0f172a !important;
    transform: scale(1.04);
    box-shadow: 0 8px 28px rgba(0,0,0,0.4);
    text-decoration: none !important;
}
.em-slide-cta svg { flex-shrink: 0; }

/* Progress bars — bottom center */
.em-slider-progress {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center;
    gap: 5px;
    z-index: 20;
}
.em-progress-bar {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: content-box !important;
    width: 14px;
    height: 22px;        /* click target */
    padding: 0;
    margin: 0;
    background: transparent !important;
    border: none !important;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    flex-shrink: 0;
}
.em-progress-bar::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 7px;
    border-radius: 999px;
    box-sizing: border-box;
    background: rgba(255,255,255,0.08);
    border: 2px solid rgba(255,255,255,0.40);
    transition: background 0.3s, border-color 0.3s;
}
.em-progress-bar.active {
    width: 38px;
}
.em-progress-bar.active::after {
    background: rgba(255,255,255,0.82);
    border-color: rgba(255,255,255,0.88);
}
.em-progress-bar:hover:not(.active)::after {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.62);
}

/* Navigation — bottom center */
.em-slider-nav {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex !important;
    align-items: center;
    gap: 10px;
    z-index: 20;
}
.em-slider-prev,
.em-slider-next {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    align-items: center;
    justify-content: center;
    box-sizing: content-box !important;
    width: 48px !important;
    height: 48px !important;
    padding: 0 !important;
    margin: 0;
    border-radius: 50% !important;
    background: rgba(255,255,255,0.13) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255,255,255,0.32) !important;
    color: rgba(255,255,255,0.92) !important;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
    box-shadow: 0 2px 12px rgba(0,0,0,0.3), inset 0 1px 0 rgba(255,255,255,0.18) !important;
    line-height: 1;
    font-size: 0;
    flex-shrink: 0;
}
.em-slider-prev:hover,
.em-slider-next:hover {
    background: rgba(255,255,255,0.92) !important;
    color: #0f172a !important;
    border-color: rgba(255,255,255,0.85) !important;
    transform: scale(1.08);
    box-shadow: 0 4px 20px rgba(0,0,0,0.35) !important;
}
.em-slider-prev svg,
.em-slider-next svg {
    display: block;
    flex-shrink: 0;
    color: inherit;
}

/* Circular timer — top right */
.em-slide-timer {
    position: absolute !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    top: 24px;
    right: 32px;
    width: 44px !important;
    height: 44px !important;
    z-index: 20;
    pointer-events: none;
}
.em-timer-svg {
    display: block !important;
    visibility: visible !important;
    width: 44px !important;
    height: 44px !important;
    transform: rotate(-90deg);
    overflow: visible;
}
.em-timer-track {
    fill: none !important;
    stroke: rgba(255,255,255,0.18) !important;
    stroke-width: 2 !important;
    display: block !important;
    visibility: visible !important;
}
.em-timer-ring {
    fill: none !important;
    stroke: rgba(255,255,255,0.82) !important;
    stroke-width: 2 !important;
    stroke-linecap: round !important;
    stroke-dasharray: 125.66 !important;
    display: block !important;
    visibility: visible !important;
}

/* ==========================================
   SLIDER TRANSITION VARIANTS
   ========================================== */

/* ── zoom-fade ────────────────────────────── */
.em-slider[data-transition="zoom-fade"] .em-slide {
    transform: scale(0.80);
    transition: opacity 0.85s ease, transform 0.85s ease;
}
.em-slider[data-transition="zoom-fade"] .em-slide.active {
    transform: scale(1);
}
.em-slider[data-transition="zoom-fade"] .em-slide.em-leaving {
    transform: scale(1.06);
    opacity: 0 !important;
    transition: opacity 0.85s ease, transform 0.85s ease;
}

/* ── blur ─────────────────────────────────── */
.em-slider[data-transition="blur"] .em-slide {
    filter: blur(14px);
    transition: opacity 0.9s ease, filter 0.9s ease;
}
.em-slider[data-transition="blur"] .em-slide.active {
    filter: blur(0px);
}
.em-slider[data-transition="blur"] .em-slide.em-leaving {
    filter: blur(14px);
    opacity: 0 !important;
    transition: opacity 0.9s ease, filter 0.9s ease;
}

/* ── clip-path reveal ─────────────────────── */
.em-slider[data-transition="clip-path"] .em-slide {
    clip-path: circle(0% at 50% 50%);
    opacity: 1;
    transition: clip-path 1.3s cubic-bezier(.4,0,.2,1);
}
.em-slider[data-transition="clip-path"] .em-slide.active {
    clip-path: circle(150% at 50% 50%);
    opacity: 1;
}
.em-slider[data-transition="clip-path"] .em-slide.em-leaving {
    clip-path: circle(150% at 50% 50%) !important;
    opacity: 1 !important;
    transition: none;
}

/* ── slide (horizontal) ───────────────────── */
/* Fix: non-active/non-leaving slides stay hidden (opacity:0 from base rule) */
.em-slider[data-transition="slide"] .em-slide {
    transition: none;
}
.em-slider[data-transition="slide"] .em-slide.active {
    animation: em-t-slide-in-right 0.75s cubic-bezier(.4,0,.2,1) forwards;
}
.em-slider[data-transition="slide"][data-direction="prev"] .em-slide.active {
    animation: em-t-slide-in-left 0.75s cubic-bezier(.4,0,.2,1) forwards;
}
.em-slider[data-transition="slide"] .em-slide.em-leaving {
    animation: em-t-slide-out-left 0.75s cubic-bezier(.4,0,.2,1) forwards;
}
.em-slider[data-transition="slide"][data-direction="prev"] .em-slide.em-leaving {
    animation: em-t-slide-out-right 0.75s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes em-t-slide-in-right {
    from { transform: translateX(100%); opacity: 1; }
    to   { transform: translateX(0);    opacity: 1; }
}
@keyframes em-t-slide-in-left {
    from { transform: translateX(-100%); opacity: 1; }
    to   { transform: translateX(0);     opacity: 1; }
}
@keyframes em-t-slide-out-left {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(-100%); opacity: 0; }
}
@keyframes em-t-slide-out-right {
    from { transform: translateX(0);   opacity: 1; }
    to   { transform: translateX(100%); opacity: 0; }
}

/* ── vertical slide ───────────────────────── */
.em-slider[data-transition="vertical"] .em-slide {
    transition: none;
}
.em-slider[data-transition="vertical"] .em-slide.active {
    animation: em-t-vert-in-down 0.75s cubic-bezier(.4,0,.2,1) forwards;
}
.em-slider[data-transition="vertical"][data-direction="prev"] .em-slide.active {
    animation: em-t-vert-in-up 0.75s cubic-bezier(.4,0,.2,1) forwards;
}
.em-slider[data-transition="vertical"] .em-slide.em-leaving {
    animation: em-t-vert-out-up 0.75s cubic-bezier(.4,0,.2,1) forwards;
}
.em-slider[data-transition="vertical"][data-direction="prev"] .em-slide.em-leaving {
    animation: em-t-vert-out-down 0.75s cubic-bezier(.4,0,.2,1) forwards;
}

@keyframes em-t-vert-in-down {
    from { transform: translateY(-100%); opacity: 1; }
    to   { transform: translateY(0);     opacity: 1; }
}
@keyframes em-t-vert-in-up {
    from { transform: translateY(100%); opacity: 1; }
    to   { transform: translateY(0);    opacity: 1; }
}
@keyframes em-t-vert-out-up {
    from { transform: translateY(0);    opacity: 1; }
    to   { transform: translateY(-100%); opacity: 0; }
}
@keyframes em-t-vert-out-down {
    from { transform: translateY(0);   opacity: 1; }
    to   { transform: translateY(100%); opacity: 0; }
}

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 600px) {
    .em-cards-grid {
        grid-template-columns: 1fr;
    }
    .em-cal-day {
        min-height: 50px;
        padding: 4px;
    }
    .em-cal-day-num {
        font-size: 0.75rem;
        width: 22px;
        height: 22px;
    }
    .em-cal-dot {
        width: 6px;
        height: 6px;
    }
    .em-slider        { height: 420px; min-height: 380px; }
    .em-slide-inner   { padding-left: 24px; padding-right: 24px; }
    .em-slide-title   { font-size: 1.8rem; }
    .em-slide-subtitle { font-size: 0.9rem; }
    .em-slide-body    { padding-bottom: 70px; }
    .em-slider-progress { left: 50%; transform: translateX(-50%); bottom: 18px; }
    .em-slider-nav      { left: 50%; transform: translateX(-50%); bottom: 14px; }
    .em-slider-prev,
    .em-slider-next   { width: 38px !important; height: 38px !important; }
    .em-slide-cta     { font-size: 0.84rem; padding: 10px 20px; }
    .em-slide-timer   { top: 16px; right: 18px; width: 36px; height: 36px; }
    .em-timer-svg     { width: 36px; height: 36px; }
}

/* ==========================================
   SINGLE EVENT VIEW
   ========================================== */
.em-single-wrapper {
    max-width: 1100px;
    margin: 40px auto;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 40px -10px rgba(0,0,0,0.05), 0 0 0 1px rgba(0,0,0,0.02);
    position: relative;
    z-index: 1;
}
.em-single-hero {
    width: 100%;
    height: 450px;
    background: #f8fafc;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.em-single-hero:not(.em-hero-no-image)::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.80) 0%, rgba(15,23,42,0.15) 60%);
    z-index: 1;
}
.em-single-hero:not(.em-hero-no-image) .em-single-hero-content {
    position: relative;
    z-index: 2;
}
.em-title-light {
    color: #fff;
    text-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.em-single-hero:not(.em-hero-no-image) .em-badge {
    background: rgba(255,255,255,0.18);
    color: #fff;
    border-color: rgba(255,255,255,0.35);
}
.em-hero-no-image {
    height: auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    padding: 60px 40px 40px;
}
.em-single-hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    inset: 0;
    z-index: 0;
}
.em-single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15,23,42,0.85) 0%, rgba(15,23,42,0) 60%);
    z-index: 1;
}
.em-single-hero-content {
    position: relative;
    z-index: 2;
    padding: 40px;
}
.em-hero-no-image .em-single-hero-content {
    padding: 0;
}
.em-single-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1.2;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
    letter-spacing: -0.02em;
}
.em-title-dark {
    color: #0f172a;
    text-shadow: none;
}
.em-single-cats {
    margin-bottom: 12px;
}
.em-badge.em-badge-light {
    background: rgba(255,255,255,0.2);
    color: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.3);
}

.em-single-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) 1fr;
    gap: 50px;
    padding: 50px;
}
.em-single-main { border-radius: 0 0 0 24px; }
.em-single-sidebar { border-radius: 20px; }
.em-single-main {
    min-width: 0;
}
.em-single-content-body {
    font-size: 1.05rem;
    color: #334155;
    line-height: 1.8;
}
.em-single-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 25px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

/* Sidebar Widgets */
.em-single-sidebar {
    background: #ffffff;
    border: none;
    border-radius: 20px;
    padding: 35px;
    align-self: start;
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.02);
}
.em-widget-section {
    display: flex;
    gap: 16px;
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #f1f5f9;
}
.em-widget-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}
.em-widget-icon {
    font-size: 22px;
    color: #512d47;
    background: #f5eef3;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    flex-shrink: 0;
    line-height: 1;
}
.em-widget-data {
    display: flex;
    flex-direction: column;
}
.em-data-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    color: #94a3b8;
    margin-bottom: 6px;
    letter-spacing: 0.05em;
}
.em-data-value {
    font-size: 0.95rem;
    color: #0f172a;
    line-height: 1.6;
}
.em-data-value strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #0f172a;
}
.em-time-detail,
.em-address-detail,
.em-contact-detail {
    color: #475569;
    font-size: 0.9rem;
}
.em-maps-link,
.em-website-link {
    display: inline-block;
    margin-top: 8px;
    color: #512d47;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.15s;
}
.em-maps-link:hover,
.em-website-link:hover {
    color: #3d1f35;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .em-single-grid {
        grid-template-columns: 1fr;
        padding: 30px;
    }
    .em-single-hero {
        height: 350px;
    }
    .em-single-hero-content {
        padding: 30px;
    }
    .em-single-title {
        font-size: 2rem;
    }
}

/* Ticket CTA button */
.em-ticket-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    padding: 14px 20px;
    background: linear-gradient(135deg, #512d47 0%, #3d1f35 100%);
    color: #fff !important;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
    transition: transform 0.18s, box-shadow 0.18s;
    letter-spacing: 0.02em;
}
.em-ticket-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.45);
    color: #fff !important;
}
.em-ticket-btn .dashicons {
    font-size: 20px;
    line-height: 1;
    width: auto;
    height: auto;
}

/* Registration button variant */
.em-registration-btn {
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    box-shadow: 0 4px 14px rgba(22, 163, 74, 0.35);
}
.em-registration-btn:hover {
    box-shadow: 0 8px 24px rgba(22, 163, 74, 0.45);
}

/* Paid at venue indicator */
.em-ticket-venue {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
    cursor: default;
}
.em-ticket-venue:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
}

/* Free Entry Indicator */
.em-free-indicator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 20px;
    background: #f1f5f9;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: 10px;
    border: 1px dashed #cbd5e1;
}
.em-free-indicator .dashicons {
    color: #64748b;
}

/* ==========================================
   FILTER SHORTCODE
   ========================================== */
.em-filter-wrap {
    max-width: 100%;
}
.em-filter-bar {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px 24px;
    margin-bottom: 28px;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
}
.em-filter-search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.em-filter-search {
    flex: 1 1 220px;
    padding: 10px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    font-size: 0.9rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s;
    background: #f8fafc;
}
.em-filter-search:focus {
    border-color: #512d47;
    background: #fff;
}
.em-filter-dates {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.em-filter-dates input[type="date"] {
    padding: 9px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 100px;
    font-size: 0.875rem;
    color: #1e293b;
    background: #f8fafc;
    outline: none;
    transition: border-color 0.15s;
}
.em-filter-dates input[type="date"]:focus {
    border-color: #512d47;
    background: #fff;
}
.em-filter-date-sep {
    color: #94a3b8;
    font-weight: 500;
}
.em-filter-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 4px;
}
.em-filter-results {
    transition: opacity 0.2s;
}
@media (max-width: 640px) {
    .em-filter-search-row { flex-direction: column; }
    .em-filter-dates { flex-direction: column; align-items: flex-start; }
}

/* ==========================================
   SOLD OUT
   ========================================== */

/* Badge on card / hcard images — diagonal stamp */
.em-sold-out-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-18deg);
    background: rgba(153, 27, 27, 0.82);
    color: #fff;
    font-size: 0.88rem;
    font-weight: 900;
    padding: 9px 22px;
    border-radius: 6px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    border: 2px solid rgba(255, 255, 255, 0.45);
    box-shadow: 0 4px 18px rgba(0,0,0,0.35);
    pointer-events: none;
    z-index: 2;
}

/* Disabled ticket button */
.em-ticket-sold-out {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.22);
    cursor: not-allowed;
    opacity: 0.82;
}
.em-ticket-sold-out:hover {
    transform: none;
    box-shadow: 0 4px 14px rgba(107, 114, 128, 0.22);
    color: #fff !important;
}

/* Small "Elkelt" badge in calendar events panel */
.em-cal-badge--sold-out {
    background: #fef2f2;
    color: #b91c1c;
    font-weight: 700;
}
