/* ── Mordomo Tickets WordPress Plugin — Estilos ─────────────────────────────────── */

:root {
    --ef-primary:       #2563eb;
    --ef-primary-hover: #1d4ed8;
    --ef-primary-light: #eff6ff;
    --ef-success:       #16a34a;
    --ef-error:         #dc2626;
    --ef-warning:       #d97706;
    --ef-gray-50:       #f9fafb;
    --ef-gray-100:      #f3f4f6;
    --ef-gray-200:      #e5e7eb;
    --ef-gray-300:      #d1d5db;
    --ef-gray-500:      #6b7280;
    --ef-gray-600:      #4b5563;
    --ef-gray-700:      #374151;
    --ef-gray-900:      #111827;
    --ef-radius:        0.625rem;
    --ef-radius-sm:     0.375rem;
    --ef-shadow:        0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
    --ef-shadow-md:     0 4px 12px rgba(0,0,0,.10), 0 2px 4px rgba(0,0,0,.06);
    --ef-shadow-lg:     0 10px 40px rgba(0,0,0,.14);
}

/* ── Reset local ─────────────────────────────────────────────────────────────── */

.ef-event *, .ef-events-grid *, .ef-modal * {
    box-sizing: border-box;
}

/* ── Grelha de eventos ──────────────────────────────────────────────────────── */

.ef-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0;
}

@media (max-width: 1100px) {
    .ef-events-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
    .ef-events-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.ef-event-card {
    background: #fff;
    border: 1px solid var(--ef-gray-200);
    border-radius: var(--ef-radius);
    overflow: hidden;
    box-shadow: var(--ef-shadow);
    transition: box-shadow .2s, transform .2s;
    display: flex;
    flex-direction: column;
}

.ef-event-card:hover {
    box-shadow: var(--ef-shadow-md);
    transform: translateY(-3px);
}

.ef-event-card--sold-out { opacity: .7; }

.ef-event-card__photo img {
    width: 100%;
    height: 220px;
    object-position: top;
    object-fit: cover;
    display: block;
    border: none;
}

.ef-event-card__body {
    padding: 1.1rem 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: .5rem;
}

.ef-event-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ef-gray-900);
    margin: 0;
    line-height: 1.3;
}

.ef-event-card__meta {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    font-size: .85rem;
    color: var(--ef-gray-500);
}

.ef-event-card__btn { margin-top: auto; }

/* ── Badges ─────────────────────────────────────────────────────────────────── */

.ef-badge {
    display: inline-block;
    padding: .2rem .65rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ef-badge--sold-out  { background: var(--ef-gray-100); color: var(--ef-gray-500); }
.ef-badge--coming-soon { background: #fef3c7; color: #92400e; }
.ef-badge--lg { font-size: 1rem; padding: .45rem 1rem; }

.ef-sold-out-notice {
    text-align: center;
    padding: 2.5rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .875rem;
}

.ef-sold-out-notice p {
    color: var(--ef-gray-500);
    font-size: .9rem;
    margin: 0;
}

/* ── Botões ──────────────────────────────────────────────────────────────────── */

.ef-btn {
    display: inline-block;
    padding: .6rem 1.35rem;
    border-radius: var(--ef-radius-sm);
    font-size: .9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: background .15s, box-shadow .15s, transform .1s;
    text-align: center;
    text-decoration: none;
    line-height: 1.4;
}

.ef-btn--primary {
    background: var(--ef-primary);
    color: #fff;
    box-shadow: 0 1px 3px rgba(37,99,235,.3);
}

.ef-btn--primary:hover:not(:disabled) {
    background: var(--ef-primary-hover);
    box-shadow: 0 3px 8px rgba(37,99,235,.35);
    transform: translateY(-1px);
}

.ef-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.ef-btn--submit {
    width: 100%;
    padding: .875rem;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: .01em;
    border-radius: var(--ef-radius);
}

.ef-btn--external {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
}

.ef-btn-external-icon { font-style: normal; font-size: 1rem; }
.ef-btn--lg { padding: .8rem 2.25rem; font-size: 1rem; }

/* ── Modal ───────────────────────────────────────────────────────────────────── */

.ef-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 1.5rem 1rem;
    overflow-y: auto;
}

.ef-modal[hidden] { display: none; }

.ef-modal__overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    cursor: pointer;
    backdrop-filter: blur(2px);
}

.ef-modal__box {
    position: relative;
    background: #fff;
    border-radius: calc(var(--ef-radius) * 1.5);
    width: min(720px, 100%);
    box-shadow: var(--ef-shadow-lg);
    margin: auto;
}

.ef-modal__close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    background: var(--ef-gray-100);
    border: none;
    font-size: 1.25rem;
    line-height: 1;
    color: var(--ef-gray-500);
    cursor: pointer;
    padding: .35rem .55rem;
    border-radius: 50%;
    z-index: 1;
    transition: background .15s, color .15s;
}

.ef-modal__close:hover {
    background: var(--ef-gray-200);
    color: var(--ef-gray-900);
}

.ef-modal__content { padding: 0; }

/* ── Formulário de evento ────────────────────────────────────────────────────── */

.ef-event {
    font-family: inherit;
}

.ef-event__photo {
    border-radius: var(--ef-radius) var(--ef-radius) 0 0;
    overflow: hidden;
    line-height: 0;
}

.ef-event__photo img {
    width: 100%;
    max-height: 260px; 
    object-position: left top;
    object-fit: contain;
    display: block;
    border: none !important;
    outline: none;
}

.ef-event__header {
    padding: 1.5rem 1.75rem 0;
}

.ef-event__title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--ef-gray-900);
    margin: 0 0 .5rem;
    line-height: 1.2;
}

.ef-event__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.25rem;
    font-size: .875rem;
    color: var(--ef-gray-500);
    margin-bottom: 0;
}

.ef-event__meta span {
    display: flex;
    align-items: center;
    gap: .3rem;
}

.ef-event__description {
    font-size: .9375rem;
    color: var(--ef-gray-700);
    line-height: 1.65;
}

/* ── Tabs ────────────────────────────────────────────────────────────────────── */

.ef-tabs {
    border: 1px solid var(--ef-gray-200);
    border-radius: var(--ef-radius);
    overflow: hidden;
    margin: 1.5rem 1.75rem;
}

.ef-tabs__nav {
    display: flex;
    border-bottom: 1px solid var(--ef-gray-200);
    background: var(--ef-gray-50);
}

.ef-tab-btn {
    padding: .7rem 1.35rem;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ef-gray-500);
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    outline: none;
}

.ef-tab-btn:hover { color: var(--ef-gray-700); }

.ef-tab-btn--active {
    color: var(--ef-primary);
    border-bottom-color: var(--ef-primary);
}

.ef-tab-panel {
    display: none;
    padding: 1.25rem;
}

.ef-tab-panel--active { display: block; }

/* ── Gallery ─────────────────────────────────────────────────────────────────── */

.ef-gallery__name {
    font-size: .85rem;
    font-weight: 700;
    color: var(--ef-gray-600);
    margin: 0 0 .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.ef-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: .5rem;
    margin-bottom: .5rem;
}

.ef-gallery-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--ef-radius-sm);
    background: var(--ef-gray-100);
    border: none !important;
    outline: none !important;
    padding: 0;
    cursor: pointer;
    display: block;
}

.ef-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s;
    display: block;
    border: none !important;
    outline: none !important;
}

.ef-gallery-item:hover img { transform: scale(1.08); }

.ef-gallery-item__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    opacity: 0;
    transition: background .2s, opacity .2s;
}

.ef-gallery-item:hover .ef-gallery-item__overlay {
    background: rgba(0,0,0,.35);
    opacity: 1;
}

/* ── Gallery lightbox standalone ─────────────────────────────────────────────── */

.ef-gal-lb {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.92);
}

.ef-gal-lb--open { display: flex; }

.ef-gal-lb__overlay {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.ef-gal-lb__img {
    position: relative;
    max-width: min(calc(100vw - 7rem), 960px);
    max-height: 88vh;
    object-fit: contain;
    border-radius: .5rem;
    z-index: 1;
    user-select: none;
    border: none;
    display: block;
}

.ef-gal-lb__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255,255,255,.15);
    border: none;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
}

.ef-gal-lb__close:hover { background: rgba(255,255,255,.3); }

.ef-gal-lb__counter {
    position: absolute;
    top: 1.1rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,.65);
    font-size: .8125rem;
    font-weight: 500;
    z-index: 2;
    pointer-events: none;
    white-space: nowrap;
}

.ef-gal-lb__prev,
.ef-gal-lb__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: background .15s;
    z-index: 2;
}

.ef-gal-lb__prev { left: 1rem; }
.ef-gal-lb__next { right: 1rem; }

.ef-gal-lb__prev:hover,
.ef-gal-lb__next:hover { background: rgba(255,255,255,.28); }

@media (max-width: 600px) {
    .ef-gal-lb__img { max-width: 100vw; border-radius: 0; }
    .ef-gal-lb__prev { left: .25rem; }
    .ef-gal-lb__next { right: .25rem; }
}

/* ── Sponsors carousel ───────────────────────────────────────────────────────── */

.ef-sponsors {
    border-top: 1px solid var(--ef-gray-100);
    padding: 1rem 1.75rem;
}

.ef-sponsors__label {
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .09em;
    color: var(--ef-gray-300);
    margin: 0 0 .75rem;
}

.ef-sponsors__track-wrap { overflow: hidden; }

.ef-sponsors__track {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    width: max-content;
    min-height: 44px;
    animation: ef-sponsor-scroll 20s linear infinite;
}

@keyframes ef-sponsor-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ef-sponsor-item {
    flex-shrink: 0;
    opacity: .6;
    transition: opacity .2s;
}

.ef-sponsor-item:hover { opacity: 1; }

.ef-sponsor-item img {
    display: block;
    height: 44px;
    width: 140px;
    object-fit: contain;
    object-position: center;
    border: none;
}

.ef-sponsor-item span {
    font-size: .875rem;
    font-weight: 600;
    color: var(--ef-gray-700);
    white-space: nowrap;
}

.ef-sponsor-item a {
    display: block;
    text-decoration: none;
}

/* ── Separador de secções ─────────────────────────────────────────────────────── */

.ef-section {
    padding: 1.5rem 1.75rem 0;
}

.ef-section + .ef-section {
    border-top: 1px solid var(--ef-gray-100);
    margin-top: 1rem;
}

.ef-section__title {
    font-size: .7rem;
    font-weight: 700;
    color: var(--ef-gray-500);
    margin: 0 0 1rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

/* ── Bilhetes ────────────────────────────────────────────────────────────────── */

.ef-tickets {
    display: flex;
    flex-direction: column;
    gap: .625rem;
}

.ef-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .75rem 1rem;
    padding: 1rem 1.1rem;
    border: 1.5px solid var(--ef-gray-200);
    border-radius: var(--ef-radius);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}

.ef-ticket:has(.ef-qty-select:not([value="0"]):focus-within) {
    border-color: var(--ef-primary);
}

.ef-ticket--sold-out { opacity: .55; }

.ef-ticket__info {
    display: flex;
    flex-direction: column;
    gap: .2rem;
    flex: 1;
    min-width: 0;
}

.ef-ticket__name {
    font-size: .9375rem;
    font-weight: 700;
    color: var(--ef-gray-900);
}

.ef-ticket__price {
    font-size: .9rem;
    color: var(--ef-primary);
    font-weight: 700;
}

.ef-ticket__desc {
    font-size: .8rem;
    color: var(--ef-gray-500);
    line-height: 1.4;
    margin-top: .1rem;
}

.ef-ticket__remaining {
    font-size: .78rem;
    color: var(--ef-warning);
    font-weight: 600;
}

.ef-ticket__qty { flex-shrink: 0; }

.ef-qty-select {
    padding: .45rem .65rem;
    border: 1.5px solid var(--ef-gray-200);
    border-radius: var(--ef-radius-sm);
    font-size: .95rem;
    font-weight: 600;
    width: 5.5rem;
    text-align: center;
    background: var(--ef-gray-50);
    cursor: pointer;
    transition: border-color .15s;
}

.ef-qty-select:focus {
    outline: none;
    border-color: var(--ef-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

/* ── Ticket options ──────────────────────────────────────────────────────────── */

.ef-ticket-options {
    width: 100%;
    border-top: 1px solid var(--ef-gray-100);
    padding-top: .875rem;
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: .25rem;
}

.ef-ticket-options[hidden] { display: none; }
.ef-input--select { appearance: auto; }

/* ── Resumo da encomenda ─────────────────────────────────────────────────────── */

.ef-order-summary {
    margin: 1rem 1.75rem 0;
    border: 1.5px solid var(--ef-primary-light);
    border-radius: var(--ef-radius);
    background: var(--ef-primary-light);
    padding: 1rem 1.25rem;
    overflow: hidden;
}

.ef-order-summary .ef-section__title { color: var(--ef-primary); margin-bottom: .625rem; }

.ef-summary-items {
    display: flex;
    flex-direction: column;
    gap: .3rem;
    margin-bottom: .625rem;
}

.ef-summary-line {
    display: flex;
    justify-content: space-between;
    font-size: .875rem;
    color: var(--ef-gray-700);
}

.ef-summary-free { color: var(--ef-success); font-weight: 600; }

.ef-summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(37,99,235,.2);
    padding-top: .55rem;
}

.ef-summary-total span { font-size: .875rem; font-weight: 600; color: var(--ef-gray-700); }

.ef-summary-total-value {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--ef-primary);
}

.ef-summary-total--free { color: var(--ef-success); }

/* ── Campos do formulário ────────────────────────────────────────────────────── */

.ef-form-fields {
    display: flex;
    flex-wrap: wrap;
    gap: .875rem;
}

.ef-field {
    display: flex;
    flex-direction: column;
    gap: .375rem;
}

.ef-field--full  { width: 100%; }
.ef-field--half  { width: calc(50% - .4375rem); }

@media (max-width: 520px) {
    .ef-field--half { width: 100%; }
}

.ef-label {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ef-gray-700);
    letter-spacing: .01em;
}

.ef-required { color: var(--ef-error); margin-left: .2rem; }

.ef-input {
    padding: .6rem .875rem;
    border: 1.5px solid var(--ef-gray-200);
    border-radius: var(--ef-radius-sm);
    font-size: .9375rem;
    color: var(--ef-gray-900);
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.4;
}

.ef-input::placeholder { color: var(--ef-gray-300); }

.ef-input:focus {
    outline: none;
    border-color: var(--ef-primary);
    box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

textarea.ef-input {
    resize: vertical;
    min-height: 96px;
}

.ef-help {
    font-size: .78rem;
    color: var(--ef-gray-500);
    margin: 0;
    line-height: 1.4;
}

/* ── Radio / Checkbox grupos ─────────────────────────────────────────────────── */

.ef-radio-group,
.ef-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem .875rem;
}

.ef-radio-label,
.ef-checkbox-label {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .9rem;
    cursor: pointer;
    color: var(--ef-gray-700);
}

/* ── Dados de faturação ──────────────────────────────────────────────────────── */

.ef-billing-same-label {
    font-size: .875rem;
    color: var(--ef-gray-600);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
}

.ef-billing-fields { margin-top: 1rem; }

/* ── Métodos de pagamento ────────────────────────────────────────────────────── */

.ef-payment-methods {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ef-payment-method {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .4rem;
    padding: .875rem 1.1rem;
    border: 1.5px solid var(--ef-gray-200);
    border-radius: var(--ef-radius);
    cursor: pointer;
    transition: border-color .15s, background .15s, box-shadow .15s;
    background: #fff;
}

.ef-payment-method:has(input:checked) {
    border-color: var(--ef-primary);
    background: var(--ef-primary-light);
    box-shadow: 0 0 0 1px var(--ef-primary);
}

.ef-payment-method input { margin-top: .15rem; flex-shrink: 0; }

.ef-payment-method span {
    font-size: .9375rem;
    font-weight: 600;
    color: var(--ef-gray-800);
    flex: 1;
}

.ef-payment-instructions {
    width: 100%;
    color: var(--ef-gray-500);
    font-size: .8rem;
    line-height: 1.5;
    margin-left: 1.4rem;
}

/* ── Consentimentos RGPD ─────────────────────────────────────────────────────── */

.ef-section--consent {
    background: var(--ef-gray-50);
    border-radius: var(--ef-radius);
    border: 1px solid var(--ef-gray-200);
    margin: 1rem 1.75rem 0;
    padding: 1rem 1.25rem;
}

.ef-section--consent .ef-section__title {
    margin-bottom: .75rem;
}

.ef-consent-label {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    font-size: .875rem;
    color: var(--ef-gray-700);
    cursor: pointer;
    line-height: 1.5;
}

.ef-consent-item { margin-top: .625rem; }
.ef-consent-item:first-child { margin-top: 0; }

.ef-consent-label a { color: var(--ef-primary); text-decoration: underline; }

.ef-consent-read-btn {
    background: none;
    border: none;
    padding: 0;
    color: var(--ef-primary);
    font-size: inherit;
    text-decoration: underline;
    cursor: pointer;
}

/* ── Consent modals ──────────────────────────────────────────────────────────── */

.ef-consent-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.ef-consent-modal[hidden] { display: none; }

.ef-consent-modal__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.5);
}

.ef-consent-modal__box {
    position: relative;
    background: #fff;
    border-radius: var(--ef-radius);
    box-shadow: var(--ef-shadow-lg);
    max-width: 600px;
    width: 100%;
    max-height: 82vh;
    display: flex;
    flex-direction: column;
}

.ef-consent-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--ef-gray-200);
    flex-shrink: 0;
}

.ef-consent-modal__header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ef-gray-900);
}

.ef-consent-modal__close {
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--ef-gray-500);
    line-height: 1;
    padding: .25rem;
    border-radius: 50%;
    transition: color .15s;
}

.ef-consent-modal__close:hover { color: var(--ef-gray-700); }

.ef-consent-modal__body {
    padding: 1.25rem 1.5rem;
    overflow-y: auto;
    font-size: .875rem;
    line-height: 1.6;
    color: var(--ef-gray-700);
}

/* ── Acções do formulário ────────────────────────────────────────────────────── */

.ef-form__actions {
    padding: 1.5rem 1.75rem 1.75rem;
}

/* ── Feedback ────────────────────────────────────────────────────────────────── */

.ef-form__feedback {
    margin: 0 1.75rem 1rem;
    padding: .875rem 1.1rem;
    border-radius: var(--ef-radius);
    font-size: .9rem;
    line-height: 1.5;
}

.ef-form__feedback--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
}

.ef-form__feedback--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: var(--ef-error);
}

.ef-form__feedback--success .ef-feedback-ref {
    display: block;
    margin-top: .5rem;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: .01em;
}

/* ── Loading spinner ─────────────────────────────────────────────────────────── */

.ef-loading {
    text-align: center;
    padding: 2.5rem;
    color: var(--ef-gray-500);
}

.ef-spinner {
    display: inline-block;
    width: 2.25rem;
    height: 2.25rem;
    border: 3px solid var(--ef-gray-200);
    border-top-color: var(--ef-primary);
    border-radius: 50%;
    animation: ef-spin .7s linear infinite;
    margin-bottom: .75rem;
}

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

/* ── Sem eventos ─────────────────────────────────────────────────────────────── */

.ef-no-events {
    color: var(--ef-gray-500);
    text-align: center;
    padding: 2.5rem;
}

/* ── Filtros de categoria ───────────────────────────────────────────────────── */

.ef-category-filters {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1.5rem;
}

.ef-category-filter {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .4rem 1.1rem;
    border-radius: 9999px;
    font-size: .85rem;
    font-weight: 600;
    background: var(--ef-gray-100);
    color: var(--ef-gray-700);
    text-decoration: none;
    border: 2px solid transparent;
    transition: background .15s, color .15s;
}

.ef-category-filter:hover {
    background: var(--ef-gray-200);
    color: var(--ef-gray-900);
}

.ef-category-filter--active {
    background: var(--ef-primary);
    color: #fff;
    border-color: var(--ef-primary);
}

.ef-category-dot {
    display: inline-block;
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Badge de categoria no cartão ───────────────────────────────────────────── */

.ef-category-badge {
    display: inline-block;
    padding: .125rem .625rem;
    border-radius: 9999px;
    font-size: .72rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: .375rem;
}

/* ── Screen reader only ──────────────────────────────────────────────────────── */

.ef-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ── Bilheteira Externa ───────────────────────────────────────────────── */

.ef-external-ticketing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    padding: 2rem 1.75rem;
    text-align: center;
}

.ef-external-ticketing__text {
    color: var(--ef-gray-600);
    font-size: .9375rem;
    margin: 0;
}

/* ── Attachments ─────────────────────────────────────────────────────────────── */

.ef-attachments { padding: 0 1.75rem; margin-bottom: .5rem; }

.ef-attachments__list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.ef-attachment-item {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1rem;
    background: #fff;
    border: 1px solid var(--ef-gray-200);
    border-radius: var(--ef-radius);
    text-decoration: none;
    color: var(--ef-gray-700);
    font-size: .875rem;
    font-weight: 500;
    transition: border-color .15s, box-shadow .15s;
}

.ef-attachment-item:hover {
    border-color: var(--ef-primary);
    box-shadow: var(--ef-shadow);
    color: var(--ef-primary);
}

.ef-attachment-item__icon { font-size: 1.1rem; flex-shrink: 0; }
.ef-attachment-item__label { flex: 1; }
.ef-attachment-item__arrow { color: var(--ef-gray-500); font-size: .9rem; }
