/* Eventbrite-inspired events UI for RidenRoll */
:root {
    --eb-primary: #f05537;
    --eb-primary-hover: #d64d32;
    --eb-primary-light: #fef3f0;
    --eb-ink: #1e0a3c;
    --eb-body: #3a3247;
    --eb-muted: #6f7287;
    --eb-border: #eeedf2;
    --eb-bg: #ffffff;
    --eb-surface: #fafafa;
    --eb-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

.eb-events-page,
.eb-event-detail-page {
    font-family: var(--eb-font);
    color: var(--eb-body);
    background: var(--eb-bg);
    padding-top: 88px;
    padding-bottom: 64px;
    min-height: 100vh;
}

.eb-events-page a,
.eb-event-detail-page a {
    color: inherit;
}

.eb-events-page {
    position: relative;
}

.eb-events-ajax-shell {
    transition: opacity 0.2s ease;
}

.eb-events-page.is-loading .eb-events-ajax-shell {
    opacity: 0.45;
    pointer-events: none;
}

.eb-ajax-loader {
    position: fixed;
    inset: 0;
    z-index: 9990;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.eb-events-page.is-loading .eb-ajax-loader {
    display: flex;
    pointer-events: all;
}

.eb-ajax-loader__spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(240, 85, 55, 0.2);
    border-top-color: var(--eb-primary);
    animation: ebSpin 0.7s linear infinite;
}

.eb-clear-city {
    color: var(--eb-primary) !important;
    font-weight: 700;
    text-decoration: none;
}

.eb-clear-city:hover {
    text-decoration: underline;
}

@keyframes ebSpin {
    to { transform: rotate(360deg); }
}

/* ── Search hero ── */
.eb-browse-header {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 24px 0;
}

/* Override global theme h1/h2 rules (e.g. color15.css sets h1 span to 107px). */
.eb-events-page h1,
.eb-events-page h2,
.eb-events-page h3,
.eb-events-page .eb-browse-title,
.eb-events-page .eb-section-heading {
    text-transform: none !important;
    letter-spacing: normal;
}

.eb-browse-title {
    font-size: clamp(1.35rem, 2.5vw, 1.875rem) !important;
    font-weight: 700 !important;
    color: var(--eb-ink) !important;
    margin: 0 0 20px;
    line-height: 1.35 !important;
}

.eb-browse-location {
    display: inline;
    font-size: inherit !important;
    font-weight: inherit !important;
    color: var(--eb-primary) !important;
    word-break: break-word;
}

.eb-search-form {
    display: flex;
    gap: 0;
    max-width: 920px;
    margin-bottom: 20px;
    border: 1px solid var(--eb-border);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(30, 10, 60, 0.06);
    background: #fff;
}

.eb-search-form:focus-within {
    border-color: var(--eb-primary);
    box-shadow: 0 0 0 3px rgba(240, 85, 55, 0.15);
}

.eb-search-input-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 14px;
    border-right: 1px solid var(--eb-border);
    min-width: 0;
}

.eb-search-location-wrap {
    flex: 1.1;
    position: relative;
    padding-right: 36px;
}

.eb-search-location-input {
    width: 100%;
}

.eb-location-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--eb-muted);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.eb-location-clear:hover {
    background: var(--eb-primary-light);
    color: var(--eb-primary);
}

.eb-maps-hint {
    margin-top: -8px;
    margin-bottom: 12px;
}

.pac-container {
    z-index: 10050 !important;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(30, 10, 60, 0.12);
    border: 1px solid var(--eb-border);
    font-family: var(--eb-font);
}

.eb-search-input-wrap i {
    color: var(--eb-muted);
    margin-right: 10px;
    font-size: 16px;
}

.eb-search-input {
    flex: 1;
    border: 0;
    outline: none;
    padding: 16px 0;
    font-size: 15px;
    color: var(--eb-ink);
    background: transparent;
}

.eb-search-input::placeholder {
    color: var(--eb-muted);
}

.eb-search-btn {
    border: 0;
    background: var(--eb-primary);
    color: #fff;
    font-weight: 700;
    font-size: 15px;
    padding: 0 28px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.eb-search-btn:hover {
    background: var(--eb-primary-hover);
}

/* ── Category scroll ── */
.eb-categories-wrap {
    max-width: 1280px;
    margin: 0 auto;
    padding: 8px 24px 0;
    border-bottom: 1px solid var(--eb-border);
}

.eb-categories {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 14px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.eb-categories::-webkit-scrollbar {
    display: none;
}

.eb-category-pill {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid var(--eb-border);
    background: #fff;
    color: var(--eb-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.eb-category-pill:hover {
    border-color: var(--eb-ink);
    color: var(--eb-ink);
    text-decoration: none;
}

.eb-category-pill.is-active {
    background: var(--eb-ink);
    border-color: var(--eb-ink);
    color: #fff;
}

/* ── When filters (All / Today / Weekend) ── */
.eb-when-filters {
    max-width: 1280px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: flex;
    gap: 28px;
    border-bottom: 1px solid var(--eb-border);
}

.eb-when-tab {
    position: relative;
    padding: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--eb-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.eb-when-tab:hover {
    color: var(--eb-ink);
    text-decoration: none;
}

.eb-when-tab.is-active {
    color: var(--eb-ink);
}

.eb-when-tab.is-active::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 3px;
    background: var(--eb-primary);
    border-radius: 3px 3px 0 0;
}

/* ── Main content ── */
.eb-main {
    max-width: 1280px;
    margin: 0 auto;
    padding: 28px 24px 0;
}

.eb-section-heading {
    font-size: 1.25rem !important;
    font-weight: 700 !important;
    color: var(--eb-ink) !important;
    margin: 0 0 20px;
    line-height: 1.3 !important;
}

.eb-section-heading--spaced {
    margin-top: 48px;
}

/* ── Event grid (Eventbrite cards) ── */
.eb-events-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px 20px;
}

.eb-event-card {
    display: flex;
    flex-direction: column;
}

.eb-event-card__link {
    text-decoration: none;
    color: inherit;
}

.eb-event-card__link:hover {
    text-decoration: none;
}

.eb-event-card__link:hover .eb-event-card__title {
    color: var(--eb-primary);
}

.eb-event-card__media {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 2 / 1;
    background: var(--eb-surface);
    margin-bottom: 12px;
}

.eb-event-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.eb-event-card:hover .eb-event-card__media img {
    transform: scale(1.04);
}

.eb-event-card__save {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
}

.eb-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.eb-share-btn--card {
    position: absolute;
    top: 10px;
    right: 54px;
    z-index: 2;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    color: var(--eb-ink);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, color 0.2s, background 0.2s;
}

.eb-share-btn--card:hover {
    transform: scale(1.08);
    color: #3659e3;
}

.eb-share-menu {
    position: absolute;
    z-index: 1080;
    width: 220px;
    padding: 6px;
    margin: 0;
    background: #fff;
    border: 1px solid var(--eb-border, #eeedf2);
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(15, 15, 15, 0.14);
}

.eb-share-menu[hidden] {
    display: none !important;
}

.eb-share-menu__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--eb-ink, #1e0a3c);
    text-align: left;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
}

.eb-share-menu__item:hover,
.eb-share-menu__item:focus {
    background: #f8f7fa;
    color: #3659e3;
    text-decoration: none;
    outline: none;
}

.eb-share-menu__item i {
    width: 18px;
    text-align: center;
    font-size: 15px;
    color: inherit;
}

.eb-share-menu__item.is-copied {
    color: #0a7a3e;
}

.eb-share-menu__item.is-copied:hover,
.eb-share-menu__item.is-copied:focus {
    color: #0a7a3e;
    background: #edf9f1;
}

.eb-heart-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    color: var(--eb-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    transition: transform 0.2s, color 0.2s, background 0.2s;
}

.eb-heart-btn:hover {
    transform: scale(1.08);
}

.eb-heart-btn.is-active,
.eb-heart-btn.is-selected {
    color: var(--eb-primary);
}

.eb-heart-btn.is-active i,
.eb-heart-btn.is-selected i {
    font-weight: bold;
}

.eb-event-card__date {
    font-size: 13px;
    font-weight: 600;
    color: var(--eb-primary);
    margin: 0 0 6px;
    line-height: 1.3;
}

.eb-event-card__title {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--eb-ink) !important;
    margin: 0 0 6px;
    line-height: 1.35 !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s;
}

.eb-event-card__venue {
    font-size: 13px;
    color: var(--eb-muted);
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eb-event-card__interest {
    font-size: 12px;
    color: var(--eb-muted);
    margin-top: 6px;
}

/* ── Destinations grid ── */
.eb-destinations-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.eb-destination-tile {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    text-decoration: none;
    display: block;
}

.eb-destination-tile:hover {
    text-decoration: none;
}

.eb-destination-tile__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.4s ease;
}

.eb-destination-tile:hover .eb-destination-tile__bg {
    transform: scale(1.06);
}

.eb-destination-tile__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(30, 10, 60, 0.75) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 16px;
}

.eb-destination-tile__name {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.01em;
}

/* gradient placeholders per city */
.eb-destination-tile--0 .eb-destination-tile__bg { background: linear-gradient(135deg, #667eea, #764ba2); }
.eb-destination-tile--1 .eb-destination-tile__bg { background: linear-gradient(135deg, #f093fb, #f5576c); }
.eb-destination-tile--2 .eb-destination-tile__bg { background: linear-gradient(135deg, #4facfe, #00f2fe); }
.eb-destination-tile--3 .eb-destination-tile__bg { background: linear-gradient(135deg, #43e97b, #38f9d7); }
.eb-destination-tile--4 .eb-destination-tile__bg { background: linear-gradient(135deg, #fa709a, #fee140); }
.eb-destination-tile--5 .eb-destination-tile__bg { background: linear-gradient(135deg, #a18cd1, #fbc2eb); }
.eb-destination-tile--6 .eb-destination-tile__bg { background: linear-gradient(135deg, #ff9a9e, #fecfef); }
.eb-destination-tile--7 .eb-destination-tile__bg { background: linear-gradient(135deg, #ffecd2, #fcb69f); }
.eb-destination-tile--8 .eb-destination-tile__bg { background: linear-gradient(135deg, #a1c4fd, #c2e9fb); }
.eb-destination-tile--9 .eb-destination-tile__bg { background: linear-gradient(135deg, #d299c2, #fef9d7); }
.eb-destination-tile--10 .eb-destination-tile__bg { background: linear-gradient(135deg, #89f7fe, #66a6ff); }
.eb-destination-tile--11 .eb-destination-tile__bg { background: linear-gradient(135deg, #fddb92, #d1fdff); }
.eb-destination-tile--12 .eb-destination-tile__bg { background: linear-gradient(135deg, #96fbc4, #f9f586); }
.eb-destination-tile--13 .eb-destination-tile__bg { background: linear-gradient(135deg, #cd9cf2, #f6f3ff); }

/* ── Popular cities ── */
.eb-popular-cities {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px 24px;
}

.eb-popular-city-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--eb-body);
    text-decoration: none;
    padding: 6px 0;
    transition: color 0.2s;
}

.eb-popular-city-link:hover {
    color: var(--eb-primary);
    text-decoration: none;
}

.eb-popular-city-link span {
    color: var(--eb-muted);
    font-weight: 400;
}

/* ── Empty + pagination ── */
.eb-empty {
    text-align: center;
    padding: 64px 24px;
    color: var(--eb-muted);
}

.eb-empty h3 {
    color: var(--eb-ink);
    font-weight: 800;
}

.eb-pagination {
    margin-top: 40px;
    display: flex;
    justify-content: center;
}

.eb-pagination .pagination .page-link {
    color: var(--eb-ink);
    border-color: var(--eb-border);
    border-radius: 6px;
    margin: 0 3px;
    font-weight: 600;
}

.eb-pagination .pagination .page-item.active .page-link {
    background: var(--eb-primary);
    border-color: var(--eb-primary);
}

/* ── Interest widget (Eventbrite ticket-box style) ── */
.event-interest-widget {
    margin-top: 0;
}

.event-interest-widget--ticket .event-interest-actions {
    flex-direction: column;
    gap: 8px;
}

.event-interest-btn {
    width: 100%;
    justify-content: center;
    border-radius: 8px;
    padding: 12px 16px;
    font-weight: 700;
    font-size: 14px;
    border: 2px solid var(--eb-border);
    background: #fff;
    color: var(--eb-ink);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.event-interest-btn:hover {
    border-color: var(--eb-ink);
}

.event-interest-btn--yes.is-selected {
    background: var(--eb-primary-light);
    border-color: var(--eb-primary);
    color: var(--eb-primary);
}

.event-interest-btn--no.is-selected {
    background: #f4f4f5;
    border-color: var(--eb-muted);
    color: var(--eb-muted);
}

.event-interest-party {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.event-interest-party.is-hidden {
    display: none !important;
}

.event-interest-party-label {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--eb-ink);
}

.event-interest-party-select {
    min-width: 72px;
    height: 36px;
    border: 1px solid #d4d4d8;
    border-radius: 8px;
    padding: 0 10px;
    background: #fff;
    color: var(--eb-ink);
    font-size: 14px;
    font-weight: 600;
}

.event-interest-count {
    font-size: 13px;
    color: var(--eb-muted);
    margin-top: 12px;
    padding: 0;
    background: none;
}

.event-interest-count-value {
    color: var(--eb-ink);
    font-weight: 800;
}

.event-interest-count-value.is-bump {
    animation: ebCountBump 0.45s ease;
}

.event-interest-feedback {
    font-size: 13px;
    margin-top: 10px;
    padding: 0;
    background: none !important;
}

.event-interest-widget.is-loading {
    opacity: 0.6;
    pointer-events: none;
}

.event-interest-widget--heart {
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
}

/* ── Event detail (Eventbrite layout) ── */
.eb-event-detail-page {
    background: var(--eb-bg);
}

.eb-detail-breadcrumb {
    max-width: 1100px;
    margin: 0 auto;
    padding: 16px 24px 0;
    font-size: 13px;
    color: var(--eb-muted);
}

.eb-detail-breadcrumb a {
    color: var(--eb-primary);
    text-decoration: none;
    font-weight: 600;
}

.eb-detail-breadcrumb a:hover {
    text-decoration: underline;
}

.eb-detail-layout {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px 24px 0;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 40px;
    align-items: start;
}

.eb-detail-main-image {
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 2 / 1;
    object-fit: cover;
    margin-bottom: 28px;
    background: var(--eb-surface);
}

.eb-detail-type {
    font-size: 13px;
    font-weight: 700;
    color: var(--eb-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}

.eb-detail-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 800;
    color: var(--eb-ink);
    line-height: 1.15;
    margin: 0 0 24px;
    letter-spacing: -0.03em;
}

.eb-detail-organizer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--eb-border);
    border-bottom: 1px solid var(--eb-border);
    margin-bottom: 28px;
}

.eb-detail-organizer__avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--eb-primary-light);
    color: var(--eb-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
}

.eb-detail-organizer__label {
    font-size: 13px;
    color: var(--eb-muted);
    margin: 0;
}

.eb-detail-organizer__name {
    font-size: 15px;
    font-weight: 700;
    color: var(--eb-ink);
    margin: 0;
}

.eb-detail-organizer__name a,
.eb-detail-organizer__media {
    color: inherit;
    text-decoration: none;
}

.eb-detail-organizer__name a:hover {
    color: #3659e3;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eb-detail-organizer__media:hover .eb-detail-organizer__photo,
.eb-detail-organizer__media:hover .eb-detail-organizer__avatar {
    box-shadow: 0 0 0 3px rgba(54, 89, 227, 0.25);
}

.eb-detail-section h2 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--eb-ink);
    margin: 0 0 16px;
}

.eb-detail-info-row {
    display: flex;
    gap: 14px;
    margin-bottom: 16px;
    font-size: 15px;
    line-height: 1.5;
}

.eb-detail-info-row i {
    color: var(--eb-primary);
    width: 20px;
    margin-top: 3px;
}

.eb-detail-sidebar {
    position: sticky;
    top: 100px;
}

.eb-ticket-box {
    border: 1px solid var(--eb-border);
    border-radius: 8px;
    padding: 24px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(30, 10, 60, 0.08);
}

.eb-ticket-box__date {
    font-size: 15px;
    font-weight: 700;
    color: var(--eb-ink);
    margin-bottom: 4px;
}

.eb-ticket-box__location {
    font-size: 14px;
    color: var(--eb-muted);
    margin-bottom: 20px;
    line-height: 1.45;
}

.eb-ticket-cta {
    display: block;
    width: 100%;
    text-align: center;
    border: 0;
    border-radius: 8px;
    padding: 14px 20px;
    font-size: 15px;
    font-weight: 800;
    background: var(--eb-primary);
    color: #fff !important;
    text-decoration: none;
    transition: background 0.2s;
    margin-bottom: 10px;
}

.eb-ticket-cta:hover {
    background: var(--eb-primary-hover);
    color: #fff !important;
    text-decoration: none;
}

.eb-ticket-cta--secondary {
    background: #fff;
    color: var(--eb-ink) !important;
    border: 2px solid var(--eb-border);
}

.eb-ticket-cta--secondary:hover {
    border-color: var(--eb-ink);
    background: #fff;
    color: var(--eb-ink) !important;
}

.eb-ticket-divider {
    border-top: 1px solid var(--eb-border);
    margin: 20px 0;
}

@keyframes ebCountBump {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); color: var(--eb-primary); }
}

/* ── Responsive ── */
@media (max-width: 1199px) {
    .eb-events-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .eb-destinations-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 991px) {
    .eb-detail-layout {
        grid-template-columns: 1fr;
    }

    .eb-detail-sidebar {
        position: static;
    }

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

    .eb-destinations-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .eb-popular-cities {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 575px) {
    .eb-events-page,
    .eb-event-detail-page {
        padding-top: 76px;
    }

    .eb-browse-header,
    .eb-categories-wrap,
    .eb-when-filters,
    .eb-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .eb-search-form {
        flex-direction: column;
        border-radius: 8px;
    }

    .eb-search-input-wrap {
        border-right: 0;
        border-bottom: 1px solid var(--eb-border);
    }

    .eb-search-btn {
        padding: 14px;
    }

    .eb-when-filters {
        gap: 16px;
        overflow-x: auto;
        white-space: nowrap;
    }

    .eb-events-grid,
    .eb-destinations-grid {
        grid-template-columns: 1fr;
    }

    .eb-popular-cities {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eb-event-card__media img,
    .eb-destination-tile__bg {
        transition: none;
    }
}

/* ── Phase polish: content features + hierarchy ── */
.eb-browse-eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--eb-primary);
    margin: 0 0 6px;
}

.eb-browse-sub {
    font-size: 14px;
    color: var(--eb-muted);
    margin: -8px 0 18px;
    max-width: 40rem;
}

.eb-filters-sticky {
    position: sticky;
    top: 72px;
    z-index: 30;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--eb-border);
    padding: 10px 0 4px;
    margin-bottom: 8px;
}

.eb-filters-sticky .eb-categories-wrap,
.eb-filters-sticky .eb-when-filters {
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 24px;
    padding-right: 24px;
}

.eb-results-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 16px;
    margin-bottom: 16px;
}

.eb-results-count {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--eb-muted);
}

.eb-results-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eb-sort-label {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: var(--eb-muted);
}

.eb-sort-select,
.eb-view-toggle {
    height: 38px;
    border: 1px solid var(--eb-border);
    border-radius: 8px;
    background: #fff;
    color: var(--eb-ink);
    font-size: 13px;
    font-weight: 700;
}

.eb-sort-select {
    padding: 0 32px 0 10px;
}

.eb-view-toggle {
    padding: 0 12px;
    cursor: pointer;
}

.eb-view-toggle:hover,
.eb-view-toggle.is-active {
    border-color: var(--eb-primary);
    color: var(--eb-primary);
}

.eb-events-map-wrap {
    margin-bottom: 24px;
    border: 1px solid var(--eb-border);
    border-radius: 14px;
    overflow: hidden;
    background: var(--eb-surface);
}

.eb-events-map {
    width: 100%;
    height: 420px;
}

.eb-map-popup {
    min-width: 190px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--eb-font);
}

.eb-map-popup strong {
    color: var(--eb-ink);
    font-size: 14px;
}

.eb-map-popup span {
    color: var(--eb-muted);
    font-size: 12px;
}

.eb-map-popup a {
    color: var(--eb-primary);
    font-size: 12px;
    font-weight: 700;
    margin-top: 4px;
}

.eb-event-card__badge {
    position: absolute;
    left: 10px;
    top: 10px;
    z-index: 2;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 5px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--eb-ink);
    box-shadow: 0 2px 8px rgba(30, 10, 60, 0.12);
}

.eb-event-card__badge.is-live {
    background: #0acf97;
    color: #fff;
}

.eb-event-card__badge.is-upcoming {
    background: #727cf5;
    color: #fff;
}

.eb-event-card__badge.is-past {
    background: #6c757d;
    color: #fff;
}

.eb-event-card__media {
    position: relative;
}

.eb-event-card__summary {
    font-size: 13px;
    color: var(--eb-body);
    margin: 0 0 8px;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.eb-event-card__tags,
.eb-detail-kicker-row .eb-event-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 8px 0 4px;
}

.eb-tag {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--eb-ink);
    background: var(--eb-surface);
    border: 1px solid var(--eb-border);
    border-radius: 999px;
    padding: 3px 8px;
}

.eb-event-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
    color: var(--eb-muted);
}

.eb-destination-tile__count {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    font-weight: 600;
    margin-top: 2px;
}

.eb-detail-hero {
    position: relative;
    margin-bottom: 16px;
}

.eb-detail-hero .eb-detail-main-image {
    margin-bottom: 0;
}

.eb-detail-hero .eb-event-card__badge {
    left: 14px;
    top: 14px;
}

.eb-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 20px;
}

.eb-gallery__item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--eb-surface);
}

.eb-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.eb-gallery__item:hover img {
    transform: scale(1.04);
}

.eb-detail-kicker-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    margin-bottom: 4px;
}

.eb-detail-summary {
    font-size: 1.05rem;
    line-height: 1.55;
    color: var(--eb-body);
    margin: 0 0 20px;
}

.eb-detail-prose {
    margin-top: 14px;
    font-size: 15px;
    line-height: 1.65;
    color: var(--eb-body);
}

.eb-detail-subhead {
    font-size: 14px;
    font-weight: 800;
    color: var(--eb-ink);
    margin: 16px 0 6px;
}

.eb-muted-inline {
    color: var(--eb-muted);
    font-weight: 500;
}

.eb-agenda-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.eb-agenda-list li {
    padding: 12px 0;
    border-bottom: 1px solid var(--eb-border);
}

.eb-agenda-list li:last-child {
    border-bottom: 0;
}

.eb-agenda-time {
    display: inline-block;
    min-width: 72px;
    font-size: 12px;
    font-weight: 700;
    color: var(--eb-primary);
    margin-right: 8px;
}

.eb-agenda-list p {
    margin: 4px 0 0;
    color: var(--eb-muted);
    font-size: 14px;
}

.eb-faq-item {
    border: 1px solid var(--eb-border);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 8px;
    background: #fff;
}

.eb-faq-item summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--eb-ink);
}

.eb-faq-item .eb-detail-prose {
    margin-top: 8px;
}

.eb-ticket-box--sticky {
    position: sticky;
    top: 96px;
}

.eb-empty__icon {
    font-size: 38px;
    color: var(--eb-primary);
    margin-bottom: 14px;
}

.eb-empty__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.eb-empty__actions .eb-search-btn,
.eb-empty__actions .eb-view-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.eb-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 48px 72px;
    background: rgba(15, 8, 28, 0.94);
}

.eb-lightbox.is-open {
    display: flex;
}

.eb-lightbox__image {
    max-width: min(1100px, 100%);
    max-height: calc(100vh - 96px);
    object-fit: contain;
    border-radius: 10px;
}

.eb-lightbox__close,
.eb-lightbox__nav {
    position: absolute;
    border: 0;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    cursor: pointer;
}

.eb-lightbox__close {
    top: 18px;
    right: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 30px;
    line-height: 1;
}

.eb-lightbox__nav {
    top: 50%;
    transform: translateY(-50%);
    width: 46px;
    height: 64px;
    border-radius: 10px;
    font-size: 42px;
}

.eb-lightbox__nav--prev {
    left: 18px;
}

.eb-lightbox__nav--next {
    right: 18px;
}

.eb-lightbox__close:hover,
.eb-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.24);
}

.eb-lightbox__count {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    margin: 0;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

body.eb-lightbox-open {
    overflow: hidden;
}

/* ── Event detail v2: Eventbrite-inspired experience ── */
.eb-event-detail-page {
    padding-bottom: 80px;
    overflow-x: hidden;
}

.eb-detail-visual {
    position: relative;
    height: min(460px, 42vw);
    min-height: 310px;
    overflow: hidden;
    background: #1e0a3c;
}

.eb-detail-visual__backdrop {
    position: absolute;
    inset: -28px;
    background-position: center;
    background-size: cover;
    filter: blur(22px);
    opacity: 0.62;
    transform: scale(1.08);
}

.eb-detail-visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(20, 8, 38, 0.58), rgba(20, 8, 38, 0.16), rgba(20, 8, 38, 0.58));
}

.eb-detail-visual__inner {
    position: relative;
    z-index: 1;
    width: min(960px, calc(100% - 48px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    background: rgba(20, 8, 38, 0.22);
}

.eb-detail-visual .eb-detail-main-image {
    width: 100%;
    height: 100%;
    max-width: 820px;
    margin: 0;
    border-radius: 0;
    aspect-ratio: auto;
    object-fit: cover;
    box-shadow: 0 0 44px rgba(0, 0, 0, 0.24);
}

.eb-detail-visual--collage .eb-detail-visual__inner {
    width: min(1080px, calc(100% - 48px));
    background: transparent;
}

.eb-detail-visual__grid {
    display: grid;
    grid-template-columns: minmax(0, 2.2fr) minmax(140px, 1fr);
    gap: 6px;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.eb-detail-visual__main {
    display: block;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: auto;
    background: rgba(20, 8, 38, 0.22);
}

.eb-detail-visual__main .eb-detail-main-image,
.eb-detail-visual--collage .eb-detail-main-image {
    max-width: none;
    box-shadow: none;
}

.eb-detail-visual__side {
    display: grid;
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
}

.eb-detail-visual__side:has(.eb-detail-visual__thumb:only-child) {
    grid-template-rows: 1fr;
}

.eb-detail-visual__thumb {
    position: relative;
    display: block;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    border-radius: 0;
    aspect-ratio: auto;
    background: rgba(20, 8, 38, 0.28);
}

.eb-detail-visual__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.eb-detail-visual__main:hover .eb-detail-main-image,
.eb-detail-visual__thumb:hover img {
    transform: scale(1.03);
}

.eb-detail-visual__more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 8, 38, 0.55);
    color: #fff;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.eb-detail-visual .eb-event-card__badge {
    top: 18px;
    left: max(18px, calc((100% - 820px) / 2 + 18px));
    z-index: 2;
}

.eb-detail-visual--collage .eb-event-card__badge {
    left: max(18px, calc((100% - 1080px) / 2 + 18px));
}

.eb-detail-shell {
    width: min(1080px, calc(100% - 48px));
    margin: 0 auto;
}

.eb-detail-shell .eb-detail-breadcrumb {
    max-width: none;
    margin: 0;
    padding: 26px 0 18px;
}

.eb-detail-shell .eb-detail-breadcrumb a {
    color: #3659e3;
    font-size: 14px;
}

.eb-detail-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    padding: 10px 0 34px;
    border-bottom: 1px solid var(--eb-border);
}

.eb-detail-heading {
    max-width: 790px;
    min-width: 0;
}

.eb-detail-date {
    margin: 0 0 14px;
    color: #d1410c;
    font-size: 14px;
    font-weight: 700;
}

.eb-detail-heading .eb-detail-title {
    max-width: 820px;
    margin-bottom: 18px;
    font-size: clamp(2rem, 4vw, 3rem) !important;
    line-height: 1.12 !important;
}

.eb-detail-heading .eb-detail-summary {
    max-width: 760px;
    margin-bottom: 20px;
    color: #4b4d63;
    font-size: 17px;
    line-height: 1.55;
}

.eb-detail-byline a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.eb-detail-byline a:hover {
    color: #3659e3;
}

.eb-detail-byline {
    margin: 0;
    color: #4b4d63;
    font-size: 14px;
}

.eb-detail-byline strong {
    color: var(--eb-ink);
}

.eb-detail-actions {
    display: flex;
    flex: 0 0 auto;
    gap: 10px;
    padding-top: 28px;
}

.eb-detail-actions .eb-event-card__save {
    position: static;
}

.eb-detail-actions .eb-heart-btn,
.eb-detail-action-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--eb-border);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    color: #3659e3;
    box-shadow: none;
    cursor: pointer;
    transition: background 0.18s ease, transform 0.18s ease;
}

.eb-detail-actions .eb-heart-btn:hover,
.eb-detail-action-btn:hover {
    transform: none;
    background: #f8f7fa;
}

.eb-detail-layout {
    max-width: none;
    padding: 40px 0 0;
    grid-template-columns: minmax(0, 680px) 340px;
    gap: 60px;
}

.eb-detail-section {
    margin: 0;
    padding: 34px 0;
    border-bottom: 1px solid var(--eb-border);
}

.eb-detail-section--first {
    padding-top: 0;
}

.eb-detail-section h2 {
    margin-bottom: 22px;
    font-size: 24px !important;
    line-height: 1.3 !important;
}

.eb-detail-info-row {
    gap: 16px;
    margin-bottom: 22px;
}

.eb-detail-info-row:last-child {
    margin-bottom: 0;
}

.eb-detail-info-row > div {
    display: grid;
    gap: 3px;
}

.eb-detail-info-row strong {
    color: var(--eb-ink);
    font-size: 15px;
}

.eb-detail-info-row span {
    color: #4b4d63;
}

.eb-detail-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #3659e3 !important;
    background: #f2f4ff;
}

.eb-detail-icon i {
    width: auto;
    margin: 0;
    color: inherit;
    font-size: 18px;
}

.eb-highlight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.eb-highlight {
    min-height: 56px;
    padding: 14px 16px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f7fa;
    color: #39364f;
    font-size: 14px;
    font-weight: 600;
}

.eb-highlight i {
    width: 18px;
    color: #3659e3;
    text-align: center;
}

.eb-detail-prose {
    margin-top: 0;
    font-size: 16px;
    line-height: 1.75;
}

.eb-detail-section .eb-event-card__tags {
    margin-top: 24px;
}

.eb-detail-section .eb-tag {
    padding: 7px 12px;
    color: #3659e3;
    background: #f2f4ff;
    border: 0;
    font-size: 12px;
    text-decoration: none;
}

.eb-detail-section .eb-tag:hover {
    background: #e6eaff;
    text-decoration: none;
}

.eb-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 0;
}

.eb-gallery__item {
    border-radius: 8px;
}

.eb-faq-item {
    padding: 0;
    border: 0;
    border-bottom: 1px solid var(--eb-border);
    border-radius: 0;
}

.eb-faq-item summary {
    position: relative;
    padding: 18px 40px 18px 0;
    list-style: none;
    font-size: 15px;
}

.eb-faq-item summary::-webkit-details-marker {
    display: none;
}

.eb-faq-item summary::after {
    content: '+';
    position: absolute;
    top: 13px;
    right: 6px;
    color: #3659e3;
    font-size: 25px;
    font-weight: 400;
}

.eb-faq-item[open] summary::after {
    content: '−';
}

.eb-faq-item .eb-detail-prose {
    padding: 0 40px 18px 0;
}

.eb-organizer-card {
    border-bottom: 0;
}

.eb-organizer-card .eb-detail-organizer {
    margin: 0;
    padding: 0;
    border: 0;
}

.eb-organizer-card .eb-detail-organizer__avatar {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    background: #3659e3;
    color: #fff;
}

.eb-detail-organizer__photo {
    width: 56px;
    height: 56px;
    flex: 0 0 56px;
    border-radius: 50%;
    object-fit: cover;
}

.eb-organizer-bio {
    margin: 16px 0 0;
    color: #4b4d63;
    font-size: 15px;
    line-height: 1.6;
}

.eb-organizer-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 16px;
}

.eb-organizer-profile-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    min-height: 40px;
    border: 2px solid #3659e3;
    border-radius: 999px;
    background: #3659e3;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    text-decoration: none;
}

.eb-organizer-profile-btn:hover {
    background: #2a46c4;
    border-color: #2a46c4;
    color: #fff;
    text-decoration: none;
}

.eb-follow-btn {
    margin-top: 0;
    min-width: 120px;
    border: 2px solid #3659e3;
    border-radius: 999px;
    background: #fff;
    color: #3659e3;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 18px;
    cursor: pointer;
}

.eb-follow-btn.is-following,
.eb-follow-btn:hover {
    background: #3659e3;
    color: #fff;
}

.eb-organizer-contact {
    margin: 18px 0 0 68px;
    color: #4b4d63;
    font-size: 14px;
}

.eb-detail-sidebar {
    top: 92px;
}

.eb-ticket-box {
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 4px 24px rgba(30, 10, 60, 0.12);
}

.eb-ticket-box__eyebrow {
    margin: 0 0 8px;
    color: #6f7287;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.eb-ticket-box__date {
    margin: 0 0 8px;
    font-size: 17px;
}

.eb-ticket-box__location {
    margin-bottom: 22px;
}

.eb-ticket-cta {
    padding: 15px 20px;
    background: #d1410c;
}

.eb-ticket-cta:hover {
    background: #b93a0b;
}

.eb-ticket-box__question {
    margin: 0 0 12px;
    color: var(--eb-ink);
    font-size: 15px;
    font-weight: 700;
}

.eb-event-detail-page .event-interest-btn {
    border-radius: 6px;
}

@media (max-width: 991.98px) {
    .eb-detail-visual {
        height: 390px;
    }

    .eb-detail-visual__grid {
        grid-template-columns: minmax(0, 1.8fr) minmax(120px, 1fr);
    }

    .eb-detail-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 24px;
    }

    .eb-detail-sidebar {
        order: -1;
    }

    .eb-ticket-box {
        box-shadow: none;
    }
}

@media (max-width: 575.98px) {
    .eb-event-detail-page {
        padding-bottom: 32px;
    }

    .eb-detail-visual {
        height: 230px;
        min-height: 230px;
    }

    .eb-detail-visual__inner {
        width: 100%;
    }

    .eb-detail-visual--collage {
        height: auto;
        min-height: 0;
    }

    .eb-detail-visual--collage .eb-detail-visual__inner {
        height: auto;
    }

    .eb-detail-visual__grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .eb-detail-visual__main {
        height: 230px;
    }

    .eb-detail-visual__side {
        display: flex;
        grid-template-rows: none;
        gap: 4px;
        padding: 4px 0 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .eb-detail-visual__thumb {
        flex: 0 0 42%;
        height: 96px;
    }

    .eb-detail-visual--collage .eb-event-card__badge {
        left: 14px;
    }

    .eb-detail-shell {
        width: calc(100% - 32px);
    }

    .eb-detail-shell .eb-detail-breadcrumb {
        padding: 18px 0 10px;
    }

    .eb-detail-heading-row {
        position: relative;
        padding: 8px 0 26px;
    }

    .eb-detail-heading {
        padding-right: 48px;
    }

    .eb-detail-heading .eb-detail-title {
        font-size: 1.9rem !important;
    }

    .eb-detail-heading .eb-detail-summary {
        font-size: 15px;
    }

    .eb-detail-actions {
        position: absolute;
        top: 3px;
        right: 0;
        flex-direction: column;
        padding: 0;
    }

    .eb-detail-actions .eb-heart-btn,
    .eb-detail-action-btn {
        width: 38px;
        height: 38px;
    }

    .eb-detail-layout {
        padding-top: 26px;
    }

    .eb-highlight-grid {
        grid-template-columns: 1fr;
    }

    .eb-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eb-detail-section h2 {
        font-size: 21px !important;
    }
}

@media (max-width: 991.98px) {
    .eb-filters-sticky {
        top: 60px;
    }

    .eb-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eb-ticket-box--sticky {
        position: static;
    }

    .eb-events-map {
        height: 340px;
    }
}

@media (max-width: 575.98px) {
    .eb-results-head {
        align-items: stretch;
    }

    .eb-results-tools {
        width: 100%;
    }

    .eb-sort-select {
        flex: 1;
    }

    .eb-share-menu {
        width: min(220px, calc(100vw - 16px));
        padding: 4px;
    }

    .eb-share-menu__item {
        padding: 9px 10px;
        font-size: 13px;
    }

    .eb-lightbox {
        padding: 54px 12px;
    }

    .eb-lightbox__nav {
        top: auto;
        bottom: 14px;
        width: 42px;
        height: 42px;
        font-size: 30px;
    }

    .eb-lightbox__nav--prev {
        left: 14px;
    }

    .eb-lightbox__nav--next {
        right: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eb-gallery__item img {
        transition: none;
    }
}

/* Organizer profile (Blade public.test) — 10/10 polish */
.eb-organizer-skip {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 100;
    padding: 10px 14px;
    background: #3659e3;
    color: #fff;
    font-weight: 700;
    border-radius: 0 0 8px 0;
}

.eb-organizer-skip:focus {
    left: 0;
}

.eb-organizer-page {
    --eb-org-ink: var(--eb-ink, #1e0a3c);
    --eb-org-muted: var(--eb-muted, #6f7287);
    --eb-org-body: var(--eb-body, #39364f);
    --eb-org-border: var(--eb-border, #eeedf2);
    --eb-org-primary: #3659e3;
    background:
        radial-gradient(circle at 12% 0%, rgba(54, 89, 227, 0.06), transparent 36%),
        #f6f5f9;
    min-height: 60vh;
    padding-bottom: 96px;
}

.eb-organizer-hero {
    position: relative;
    overflow: hidden;
}

.eb-organizer-hero__media {
    position: relative;
    height: clamp(180px, 32vw, 320px);
    overflow: hidden;
    background: #1a2348;
}

.eb-organizer-hero__cover {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    background-color: #1a2348;
    /* Avoid animated scale transforms — they soft-rasterize the cover on GPU layers. */
}

.eb-organizer-hero__cover--fallback {
    background-image:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.18), transparent 42%),
        radial-gradient(circle at 80% 0%, rgba(209, 65, 12, 0.28), transparent 40%),
        linear-gradient(135deg, #1a2348 0%, #2a46c4 55%, #3659e3 100%);
}

.eb-organizer-hero__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(20, 12, 40, 0.18) 0%, rgba(20, 12, 40, 0.55) 100%);
}

.eb-organizer-hero__inner {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: -88px auto 0;
    padding: 0 24px 28px;
}

.eb-organizer-breadcrumb {
    margin: 0 0 14px;
}

.eb-organizer-breadcrumb ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 600;
}

.eb-organizer-breadcrumb a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.eb-organizer-breadcrumb a:hover,
.eb-organizer-breadcrumb a:focus-visible {
    color: #fff;
    text-decoration: underline;
}

.eb-organizer-breadcrumb [aria-current="page"] {
    color: #fff;
}

.eb-organizer-hero__panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--eb-org-border);
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 48px rgba(26, 18, 40, 0.12);
    backdrop-filter: blur(10px);
}

.eb-organizer-hero__identity {
    display: flex;
    align-items: flex-end;
    gap: 20px;
}

.eb-organizer-hero__photo,
.eb-organizer-hero__avatar {
    width: 120px;
    height: 120px;
    border-radius: 28px;
    object-fit: cover;
    object-position: center;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3659e3, #2a46c4);
    color: #fff;
    font-size: 2.2rem;
    font-weight: 800;
    border: 4px solid #fff;
    box-shadow: 0 12px 28px rgba(26, 18, 40, 0.16);
}

.eb-organizer-hero__copy {
    flex: 1;
    min-width: 0;
}

.eb-organizer-hero__title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.eb-organizer-hero__name {
    margin: 0;
    font-size: clamp(1.75rem, 2.4vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--eb-org-ink);
    line-height: 1.1;
}

.eb-organizer-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    background: rgba(54, 89, 227, 0.12);
    color: var(--eb-org-primary);
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}

.eb-organizer-hero__company {
    margin: 8px 0 0;
    color: var(--eb-org-body);
    font-size: 15px;
    font-weight: 600;
}

.eb-organizer-hero__meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin-top: 10px;
    color: var(--eb-org-muted);
    font-size: 14px;
}

.eb-organizer-hero__meta-row a {
    color: var(--eb-org-primary);
    font-weight: 700;
    text-decoration: none;
}

.eb-organizer-hero__meta-row a:hover,
.eb-organizer-hero__meta-row a:focus-visible {
    text-decoration: underline;
}

.eb-organizer-hero__bio {
    margin: 14px 0 0;
    max-width: 680px;
    color: var(--eb-org-body);
    line-height: 1.55;
    font-size: 15px;
}

.eb-organizer-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eb-organizer-chips--hero {
    margin-top: 12px;
}

.eb-organizer-chips li,
.eb-organizer-chips a {
    display: inline-flex;
    border-radius: 999px;
    background: rgba(54, 89, 227, 0.1);
    color: var(--eb-org-primary);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 12px;
    text-decoration: none;
}

.eb-organizer-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.eb-organizer-trust-pills li {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    border: 1px solid rgba(10, 122, 62, 0.18);
    background: rgba(10, 122, 62, 0.08);
    color: #0a7a3e;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 10px;
}

.eb-organizer-stat-strip {
    display: grid;
    grid-template-columns: repeat(var(--eb-org-stat-cols, 3), minmax(0, 1fr));
    gap: 10px;
    margin: 22px 0 0;
}

.eb-organizer-stat-strip > div {
    background: #f8f7fa;
    border: 1px solid var(--eb-org-border);
    border-radius: 14px;
    padding: 12px 10px;
    text-align: center;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.eb-organizer-stat-strip > div:hover {
    transform: translateY(-2px);
    border-color: rgba(54, 89, 227, 0.28);
}

.eb-organizer-stat-strip dt {
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--eb-org-muted);
}

.eb-organizer-stat-strip dd {
    margin: 4px 0 0;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--eb-org-ink);
}

.eb-organizer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.eb-organizer-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 10px;
    border: 1px solid var(--eb-org-border);
    background: #fff;
    color: var(--eb-org-ink);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.eb-organizer-action-btn:hover {
    background: #f8f7fa;
    text-decoration: none;
    color: var(--eb-org-primary);
    border-color: rgba(54, 89, 227, 0.35);
}

.eb-organizer-action-btn:focus-visible,
.eb-organizer-tab:focus-visible,
.eb-organizer-chips a:focus-visible,
.eb-organizer-event-card a:focus-visible {
    outline: 3px solid rgba(54, 89, 227, 0.45);
    outline-offset: 2px;
}

.eb-organizer-action-btn--primary,
.eb-organizer-action-btn.is-following {
    background: var(--eb-org-primary);
    border-color: var(--eb-org-primary);
    color: #fff;
}

.eb-organizer-action-btn--primary:hover,
.eb-organizer-action-btn.is-following:hover {
    background: #2a46c4;
    color: #fff;
}

.eb-organizer-action-btn--block {
    width: 100%;
}

.eb-organizer-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.eb-organizer-share-feedback {
    margin: 10px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: #0a7a3e;
}

.eb-organizer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 28px;
    max-width: 1120px;
    margin: 0 auto;
    padding: 12px 24px 48px;
}

.eb-organizer-section {
    margin-top: 28px;
}

.eb-organizer-section > h2,
.eb-organizer-events__head h2 {
    margin: 0 0 8px;
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--eb-org-ink);
}

.eb-organizer-card-block,
.eb-organizer-side-card {
    background: #fff;
    border: 1px solid var(--eb-org-border);
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(26, 18, 40, 0.04);
}

.eb-organizer-side-card + .eb-organizer-side-card {
    margin-top: 14px;
}

.eb-organizer-side-card h2 {
    margin: 0 0 12px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--eb-org-ink);
}

.eb-organizer-side-card__text {
    margin: 0 0 12px;
    color: var(--eb-org-muted);
    font-size: 13px;
}

.eb-organizer-side-card--muted {
    background: #f8f7fa;
}

.eb-organizer-sidebar__sticky {
    position: sticky;
    top: 88px;
}

.eb-organizer-contact-list {
    margin: 0;
    display: grid;
    gap: 12px;
}

.eb-organizer-contact-list dt {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--eb-org-muted);
}

.eb-organizer-contact-list dd {
    margin: 3px 0 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--eb-org-ink);
    word-break: break-word;
}

.eb-organizer-contact-list a {
    color: var(--eb-org-primary);
    text-decoration: none;
}

.eb-organizer-contact-list a:hover,
.eb-organizer-contact-list a:focus-visible {
    text-decoration: underline;
}

.eb-organizer-side-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 0;
}

.eb-organizer-side-stats dt {
    font-size: 11px;
    color: var(--eb-org-muted);
    font-weight: 700;
    text-transform: uppercase;
}

.eb-organizer-side-stats dd {
    margin: 2px 0 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--eb-org-ink);
}

.eb-organizer-block + .eb-organizer-block {
    margin-top: 18px;
}

.eb-organizer-block h3 {
    margin: 0 0 6px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--eb-org-muted);
}

.eb-organizer-block p {
    margin: 0;
    color: var(--eb-org-body);
    line-height: 1.55;
}

.eb-organizer-events__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--eb-org-border);
    padding-bottom: 4px;
}

.eb-organizer-tabs {
    display: flex;
    gap: 8px;
}

.eb-organizer-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px 12px;
    border-bottom: 2px solid transparent;
    color: var(--eb-org-muted);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.eb-organizer-tab.is-active {
    color: var(--eb-org-ink);
    border-bottom-color: var(--eb-org-primary);
}

.eb-organizer-tab__count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: rgba(54, 89, 227, 0.12);
    color: var(--eb-org-primary);
    font-size: 12px;
    padding: 0 6px;
}

.eb-organizer-events__count {
    margin: 0;
    font-size: 13px;
    color: var(--eb-org-muted);
}

.eb-organizer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-top: 22px;
}

.eb-organizer-grid--spotlight {
    grid-template-columns: 1fr;
}

.eb-organizer-event-card {
    background: #fff;
    border: 1px solid var(--eb-org-border);
    border-radius: 16px;
    overflow: hidden;
    padding-bottom: 4px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.eb-organizer-event-card:hover {
    transform: translateY(-3px);
    border-color: rgba(54, 89, 227, 0.25);
    box-shadow: 0 16px 36px rgba(26, 18, 40, 0.08);
}

.eb-organizer-event-card .eb-event-card__media {
    margin-bottom: 0;
    border-radius: 0;
    aspect-ratio: 16 / 9;
}

.eb-organizer-event-card .eb-event-card__link {
    display: block;
    padding: 14px 14px 8px;
}

.eb-organizer-event-card .eb-event-card__actions {
    padding: 0 14px 14px;
}

.eb-organizer-event-card--spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: stretch;
}

.eb-organizer-event-card--spotlight .eb-event-card__media {
    aspect-ratio: auto;
    min-height: 240px;
    height: 100%;
}

.eb-organizer-event-card--spotlight .eb-event-card__link,
.eb-organizer-event-card--spotlight .eb-event-card__actions {
    align-self: center;
}

.eb-organizer-event-card--spotlight .eb-event-card__title {
    font-size: 1.35rem;
}

.eb-organizer-empty {
    margin-top: 28px;
    padding: 48px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed var(--eb-org-border);
    border-radius: 16px;
}

.eb-organizer-empty h3 {
    margin: 0 0 8px;
    font-size: 1.15rem;
}

.eb-organizer-empty p {
    margin: 0 0 18px;
    color: var(--eb-org-body);
}

.eb-organizer-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-top: 28px;
}

.eb-organizer-pagination a {
    color: var(--eb-org-primary);
    font-weight: 700;
}

.eb-organizer-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.eb-organizer-gallery a {
    display: block;
    overflow: hidden;
    border-radius: 12px;
}

.eb-organizer-gallery img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.eb-organizer-gallery a:hover img {
    transform: scale(1.04);
}

.eb-organizer-sticky-actions {
    display: none;
}

.eb-organizer-reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.45s ease, transform 0.45s ease;
}

.eb-organizer-reveal.is-visible,
.eb-organizer-hero__panel.eb-organizer-reveal {
    opacity: 1;
    transform: none;
}

.eb-organizer-hero__panel.eb-organizer-reveal {
    transition-delay: 0.05s;
}

.eb-event-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.eb-event-card__badge--ride {
    left: auto;
    right: 10px;
    background: #0a7a3e;
}

.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;
}

@media (max-width: 991.98px) {
    .eb-organizer-layout {
        grid-template-columns: 1fr;
    }

    .eb-organizer-sidebar {
        order: 2;
    }

    .eb-organizer-sidebar__sticky {
        position: static;
    }

    .eb-organizer-event-card--spotlight {
        grid-template-columns: 1fr;
    }

    .eb-organizer-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .eb-organizer-hero__inner {
        margin-top: -64px;
    }

    .eb-organizer-hero__identity {
        flex-direction: column;
        align-items: flex-start;
    }

    .eb-organizer-hero__photo,
    .eb-organizer-hero__avatar {
        width: 96px;
        height: 96px;
        border-radius: 22px;
    }

    .eb-organizer-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eb-organizer-grid {
        grid-template-columns: 1fr;
    }

    .eb-organizer-sticky-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 40;
        display: flex;
        gap: 10px;
        padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
        background: rgba(255, 255, 255, 0.97);
        border-top: 1px solid var(--eb-org-border);
        backdrop-filter: blur(10px);
    }

    .eb-organizer-sticky-actions .eb-organizer-action-btn {
        flex: 1;
    }

    .eb-organizer-page {
        padding-bottom: 110px;
    }
}

@media (max-width: 575.98px) {
    .eb-organizer-hero__media {
        height: 150px;
    }

    .eb-organizer-hero__panel {
        padding: 18px;
        border-radius: 18px;
    }

    .eb-organizer-gallery,
    .eb-organizer-side-stats {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eb-organizer-reveal,
    .eb-organizer-stat-strip > div,
    .eb-organizer-event-card,
    .eb-organizer-gallery img,
    .eb-organizer-action-btn {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }

    .eb-organizer-reveal {
        opacity: 1;
    }

    .eb-organizer-sticky-actions {
        backdrop-filter: none;
    }
}
