/**
 * SwingTap Events — Listing & Single Event Styles
 * Dark theme matching SwingTap brand: #d92b63 primary, #0a0a0a bg, Cinzel/Raleway
 *
 * @since 3.0.0
 */

/* ============================================================
   CONTAINER & LAYOUT
   ============================================================ */

/* Override swingtap-container max-width (480px) for events pages */
.swingtap-container.st-events-container {
    max-width: 960px !important;
    overflow-x: hidden;
    box-sizing: border-box;
}
.swingtap-container:has(.st-events-container) {
    max-width: 960px !important;
}

/*
 * Avada/Fusion theme wrapper overrides — force full width on ALL parent
 * elements so the 960px events container can actually expand.
 * These selectors must be aggressive because Avada uses high-specificity
 * selectors and sometimes inline styles via Fusion Builder.
 */
body:has(.st-events-container) #main,
body:has(.st-events-container) #content,
body:has(.st-events-container) .fusion-row,
body:has(.st-events-container) .fusion-content,
body:has(.st-events-container) .fusion-layout-column,
body:has(.st-events-container) .fusion-column-wrapper,
body:has(.st-events-container) .fusion-builder-row,
body:has(.st-events-container) .fusion-fullwidth,
body:has(.st-events-container) .fusion-column-content,
body:has(.st-events-container) .avada-page-content,
body:has(.st-events-container) .post-content-container,
body:has(.st-events-container) .fusion-post-content,
body:has(.st-events-container) .site-content,
body:has(.st-events-container) .content-area,
body:has(.st-events-container) .entry-content,
body:has(.st-events-container) article,
body:has(.st-events-container) main,
body:has(.st-events-container) .site-main {
    max-width: none !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Avada uses .fusion-row with a fixed max-width (usually site_width from
   theme options). This is the most common blocker. */
body:has(.st-events-container) .fusion-row {
    max-width: 100% !important;
}

.st-events-container {
    margin: 0 auto;
    padding: 20px 16px 60px;
    font-family: 'Raleway', sans-serif;
    color: #fff;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    max-width: 960px;
}

.st-events-container--single {
    max-width: 700px;
}

/* ============================================================
   HEADER / HERO
   ============================================================ */

.st-events-header {
    text-align: center;
    margin-bottom: 32px;
    padding-top: 8px;
}

.st-events-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px;
    letter-spacing: 0.02em;
}

.st-events-subtitle {
    color: #999;
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    margin: 0;
    font-weight: 400;
}

/* ============================================================
   SECTION TITLES
   ============================================================ */

.st-events-section-title {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: #d92b63;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ============================================================
   FILTER BAR
   ============================================================ */

/* ========== CATEGORY PILLS (horizontal scroll, contained) ========== */
.st-events-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    margin-bottom: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.st-events-filter-pills::-webkit-scrollbar {
    display: none;
}

.st-events-pill {
    flex: 0 0 auto;
    padding: 8px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #999;
    font-family: 'Raleway', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}
.st-events-pill:hover {
    border-color: rgba(217, 43, 99, 0.4);
    color: #ccc;
}
.st-events-pill--active {
    background: rgba(217, 43, 99, 0.15);
    border-color: rgba(217, 43, 99, 0.5);
    color: #d92b63;
}

/* ========== TIME FILTER PILLS (wrap on mobile) ========== */
.st-events-time-pills {
    display: flex;
    gap: 6px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
}

.st-events-time-pill {
    padding: 6px 14px;
    border-radius: 16px;
    border: none;
    background: #1a1a1a;
    color: #888;
    font-family: 'Raleway', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.st-events-time-pill:hover {
    background: #222;
    color: #ccc;
}
.st-events-time-pill--active {
    background: #d92b63;
    color: #fff;
}

/* ============================================================
   FEATURED EVENTS
   ============================================================ */

.st-events-featured {
    margin-bottom: 36px;
}

.st-events-featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

/* ============================================================
   EVENT CARDS — GRID
   ============================================================ */

.st-events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* ============================================================
   EVENT CARD
   ============================================================ */

.st-event-card {
    display: block;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.3s ease;
    will-change: transform;
}

.st-event-card:hover {
    transform: translateY(-3px);
    border-color: rgba(217, 43, 99, 0.35);
    box-shadow: 0 8px 32px rgba(217, 43, 99, 0.12), 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* Featured card */
.st-event-card--featured {
    border-color: rgba(243, 156, 18, 0.2);
}

.st-event-card--featured:hover {
    border-color: rgba(243, 156, 18, 0.45);
    box-shadow: 0 8px 32px rgba(243, 156, 18, 0.1), 0 2px 12px rgba(0, 0, 0, 0.4);
}

/* ============================================================
   EVENT CARD — IMAGE
   ============================================================ */

.st-event-card-image {
    position: relative;
    height: 180px;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
    overflow: hidden;
}

.st-event-card-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, #111 0%, transparent 100%);
    pointer-events: none;
}

/* ============================================================
   EVENT CARD — CATEGORY BADGE
   ============================================================ */

.st-event-card-category {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff !important;
}

/* Category colors — solid backgrounds for readability */
.st-event-card-category[data-category="parties"] {
    background: #d92b63;
}

.st-event-card-category[data-category="cruises"] {
    background: #2b8cd9;
}

.st-event-card-category[data-category="conventions"] {
    background: #9b59b6;
}

.st-event-card-category[data-category="meetups"] {
    background: #27ae60;
}

.st-event-card-category[data-category="takeovers"] {
    background: #e67e22;
}

.st-event-card-category[data-category="hotel-parties"] {
    background: #e74c3c;
}

.st-event-card-category[data-category="club-events"] {
    background: #8e44ad;
}

.st-event-card-category[data-category="other"] {
    background: #555;
}

/* Default fallback */
.st-event-card-category:not([data-category]) {
    background: #555;
    border: 1px solid rgba(255, 255, 255, 0.15);
}

/* ============================================================
   EVENT CARD — FEATURED BADGE
   ============================================================ */

.st-event-card-featured-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

/* ============================================================
   EVENT CARD — BODY
   ============================================================ */

.st-event-card-body {
    padding: 14px 16px 16px;
}

.st-event-card-date {
    color: #d92b63;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.st-event-card-title {
    font-family: 'Cinzel', serif;
    font-size: 1.05rem;
    font-weight: 600;
    color: #fff;
    margin: 0 0 8px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.st-event-card-location {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #888;
    font-size: 0.8rem;
    line-height: 1.3;
}

.st-event-card-location svg {
    flex-shrink: 0;
    opacity: 0.7;
}

.st-event-card-rsvp {
    color: #555;
    font-size: 0.72rem;
    margin-top: 10px;
    font-weight: 500;
}

/* ============================================================
   SINGLE EVENT — COVER IMAGE HERO
   ============================================================ */

.st-event-cover {
    position: relative;
    width: 100%;
    max-height: 320px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 0;
}

.st-event-cover img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.st-event-cover--placeholder {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%);
}
.st-event-cover--placeholder .st-event-card-placeholder-icon {
    color: #444;
}
.st-event-cover--placeholder .st-event-card-placeholder-icon svg {
    opacity: 0.2;
    width: 48px;
    height: 48px;
}

.st-event-cover-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        transparent 30%,
        rgba(10, 10, 10, 0.4) 60%,
        rgba(10, 10, 10, 0.95) 100%
    );
    pointer-events: none;
}

.st-event-cover-category {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 2;
    padding: 5px 14px;
    border-radius: 6px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #fff;
}

/* Reuse category colors on cover badge */
.st-event-cover-category[data-category="parties"]       { background: #d92b63; color: #fff; }
.st-event-cover-category[data-category="cruises"]        { background: #2b8cd9; color: #fff; }
.st-event-cover-category[data-category="conventions"]    { background: #9b59b6; color: #fff; }
.st-event-cover-category[data-category="meetups"]        { background: #27ae60; color: #fff; }
.st-event-cover-category[data-category="takeovers"]      { background: #e67e22; color: #fff; }
.st-event-cover-category[data-category="hotel-parties"]  { background: #e74c3c; color: #fff; }
.st-event-cover-category[data-category="club-events"]    { background: #8e44ad; color: #fff; }
.st-event-cover-category[data-category="other"]          { background: #555; color: #fff; }

.st-event-cover-title {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    z-index: 2;
    font-family: 'Cinzel', serif;
    font-size: clamp(1.3rem, 4vw, 1.8rem);
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.25;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   SINGLE EVENT — DETAILS
   ============================================================ */

.st-event-details {
    padding: 24px 0 0;
}

.st-event-detail-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 18px;
}

.st-event-detail-icon {
    flex-shrink: 0;
    width: 20px;
    color: #d92b63;
    padding-top: 1px;
}

.st-event-detail-primary {
    color: #eee;
    font-size: 0.92rem;
    font-weight: 500;
    line-height: 1.4;
}

.st-event-detail-secondary {
    color: #888;
    font-size: 0.82rem;
    line-height: 1.4;
    margin-top: 2px;
}

.st-event-detail-link {
    color: #d92b63;
    font-size: 0.92rem;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease;
}

.st-event-detail-link:hover {
    color: #ff3d7f;
    text-decoration: underline;
}

/* Action buttons row */
.st-event-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.st-event-tickets-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: linear-gradient(135deg, #d92b63, #f2663d);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: box-shadow 0.25s ease, transform 0.15s ease;
}

.st-event-tickets-btn:hover {
    box-shadow: 0 4px 20px rgba(217, 43, 99, 0.35);
    transform: translateY(-1px);
    color: #fff;
    text-decoration: none;
}

.st-event-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #888;
    font-size: 0.82rem;
    text-decoration: none;
    transition: color 0.2s ease;
}

.st-event-back-link:hover {
    color: #d92b63;
}

/* ============================================================
   SINGLE EVENT — DESCRIPTION
   ============================================================ */

.st-event-description {
    color: #ccc;
    font-size: 0.92rem;
    line-height: 1.75;
    margin: 28px 0;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.st-event-description p {
    margin: 0 0 16px;
}

.st-event-description p:last-child {
    margin-bottom: 0;
}

.st-event-description a {
    color: #d92b63;
    text-decoration: none;
    border-bottom: 1px solid rgba(217, 43, 99, 0.3);
    transition: border-color 0.2s ease;
}

.st-event-description a:hover {
    border-bottom-color: #d92b63;
}

.st-event-description strong {
    color: #fff;
    font-weight: 600;
}

.st-event-description ul,
.st-event-description ol {
    padding-left: 20px;
    margin: 12px 0;
}

.st-event-description li {
    margin-bottom: 6px;
}

/* ============================================================
   RSVP SECTION
   ============================================================ */

.st-event-rsvp {
    margin: 32px 0;
    padding: 24px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
}

/* RSVP Toggle Buttons */
.st-event-rsvp-buttons {
    display: flex;
    gap: 12px;
}

.st-event-rsvp-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Interested — default (outline) */
.st-event-rsvp-btn--interested {
    background: transparent;
    border: 2px solid rgba(255, 255, 255, 0.15);
    color: #999;
}

.st-event-rsvp-btn--interested:hover {
    border-color: rgba(217, 43, 99, 0.4);
    color: #ccc;
}

.st-event-rsvp-btn--interested.active {
    border-color: #d92b63;
    color: #d92b63;
    background: rgba(217, 43, 99, 0.08);
}

/* Going — default (muted, not yet selected) */
.st-event-rsvp-btn--going {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    color: #999;
}

.st-event-rsvp-btn--going:hover {
    border-color: rgba(217, 43, 99, 0.4);
    color: #ccc;
}

/* Going — active (gradient fill) */
.st-event-rsvp-btn--going.active {
    background: linear-gradient(135deg, #d92b63, #ff3d7f);
    border: 2px solid transparent;
    color: #fff;
    box-shadow: 0 0 20px rgba(217, 43, 99, 0.35);
}

/* RSVP Counts */
.st-event-rsvp-counts {
    text-align: center;
    color: #888;
    font-size: 0.85rem;
    margin-top: 14px;
}

.st-event-rsvp-counts--large {
    font-size: 0.95rem;
    margin-top: 0;
    margin-bottom: 16px;
}

/* Privacy toggle */
.st-event-rsvp-privacy {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    color: #666;
    cursor: pointer;
}

.st-event-rsvp-privacy input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #d92b63;
    cursor: pointer;
    flex-shrink: 0;
}

/* No profile CTA */
.st-event-rsvp-message {
    text-align: center;
    margin-bottom: 16px;
}

.st-event-rsvp-message p {
    color: #999;
    font-size: 0.88rem;
    margin: 0 0 14px;
    line-height: 1.5;
}

.st-event-rsvp-cta {
    display: inline-block;
    padding: 10px 24px;
    background: linear-gradient(135deg, #d92b63, #f2663d);
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: box-shadow 0.2s ease;
}

.st-event-rsvp-cta:hover {
    box-shadow: 0 4px 16px rgba(217, 43, 99, 0.3);
    color: #fff;
    text-decoration: none;
}

/* Log in to RSVP button (for logged-out) */
.st-event-rsvp-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    color: #ccc;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.st-event-rsvp-login-btn:hover {
    border-color: rgba(217, 43, 99, 0.4);
    color: #d92b63;
}

/* ============================================================
   ATTENDEES
   ============================================================ */

.st-event-attendees-section {
    margin: 28px 0;
}

.st-event-attendees-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.82rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 14px;
}

.st-event-attendees-count {
    font-weight: 400;
    color: #555;
}

.st-event-attendees {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.st-event-attendee {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    width: 56px;
    transition: transform 0.15s ease;
}

.st-event-attendee:hover {
    transform: translateY(-2px);
}

.st-event-attendee img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    display: block;
}

.st-event-attendee:hover img {
    border-color: #d92b63;
    box-shadow: 0 0 12px rgba(217, 43, 99, 0.25);
}

.st-event-attendee span {
    font-size: 0.58rem;
    color: #888;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 56px;
    display: block;
}

.st-event-attendee-placeholder {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 2px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: border-color 0.2s ease;
}

.st-event-attendee:hover .st-event-attendee-placeholder {
    border-color: #d92b63;
}

.st-event-attendees-more {
    color: #555;
    font-size: 0.78rem;
    padding-top: 8px;
    margin: 0;
}

/* ============================================================
   LOAD MORE
   ============================================================ */

.st-events-load-more {
    text-align: center;
    padding: 36px 0 0;
}

.st-events-load-more-btn {
    display: inline-block;
    padding: 12px 36px;
    background: transparent;
    color: #d92b63;
    font-family: 'Raleway', sans-serif;
    font-size: 0.88rem;
    font-weight: 600;
    border: 2px solid rgba(217, 43, 99, 0.3);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    position: relative;
}

.st-events-load-more-btn:hover {
    border-color: #d92b63;
    background: rgba(217, 43, 99, 0.06);
    box-shadow: 0 0 20px rgba(217, 43, 99, 0.15);
    transform: translateY(-1px);
}

.st-events-load-more-btn:active {
    transform: translateY(0);
}

/* ============================================================
   LOADING SPINNER
   ============================================================ */

.st-events-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 40px 0;
    color: #888;
    font-size: 0.85rem;
}

.st-events-loading-spinner {
    width: 28px;
    height: 28px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: #d92b63;
    border-radius: 50%;
    animation: st-events-spin 0.7s linear infinite;
}

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

/* ============================================================
   EMPTY STATE
   ============================================================ */

.st-events-empty {
    text-align: center;
    padding: 56px 24px;
}

.st-events-empty-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.st-events-empty-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #666;
    margin: 0 0 8px;
}

.st-events-empty-subtitle {
    color: #555;
    font-size: 0.85rem;
    margin: 0;
    line-height: 1.5;
}

/* ============================================================
   CARD ENTRANCE ANIMATION
   ============================================================ */

.st-event-card {
    opacity: 0;
    transform: translateY(16px);
    animation: st-event-card-in 0.4s ease forwards;
}

@keyframes st-event-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animation for first batch (server-rendered) */
.st-events-grid .st-event-card:nth-child(1)  { animation-delay: 0.03s; }
.st-events-grid .st-event-card:nth-child(2)  { animation-delay: 0.08s; }
.st-events-grid .st-event-card:nth-child(3)  { animation-delay: 0.13s; }
.st-events-grid .st-event-card:nth-child(4)  { animation-delay: 0.18s; }
.st-events-grid .st-event-card:nth-child(5)  { animation-delay: 0.23s; }
.st-events-grid .st-event-card:nth-child(6)  { animation-delay: 0.28s; }

.st-events-featured-grid .st-event-card:nth-child(1) { animation-delay: 0.05s; }
.st-events-featured-grid .st-event-card:nth-child(2) { animation-delay: 0.12s; }

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */

@media (max-width: 640px) {

    .st-events-container {
        padding: 12px 10px 48px;
    }

    /* Header */
    .st-events-title {
        font-size: clamp(1.3rem, 5vw, 1.8rem);
    }
    .st-events-subtitle {
        font-size: 0.82rem;
    }
    .st-events-counter {
        padding: 8px 18px;
    }
    .st-events-counter-number {
        font-size: 1.1rem;
    }

    /* View toggle */
    .st-events-view-toggle {
        margin-bottom: 12px;
    }

    /* Search bar on mobile */
    .st-events-search-bar {
        margin-bottom: 10px;
    }
    .st-events-search-input {
        height: 44px;
        font-size: 0.82rem;
    }

    /* Happening Now scroller — narrower cards */
    .st-happening-card {
        flex: 0 0 180px;
    }
    .st-happening-card-image {
        height: 80px;
    }
    .st-happening-card-body {
        padding: 8px 10px 10px;
    }
    .st-happening-card-title {
        font-size: 0.72rem;
    }

    /* Grids go single column */
    .st-events-grid,
    .st-events-featured-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Override parent container for mobile */
    .swingtap-container:has(.st-events-container) {
        max-width: 100%;
        padding: 0;
    }

    /* Cards */
    .st-event-card {
        border-radius: 12px;
    }
    .st-event-card-body {
        padding: 12px;
    }
    .st-event-card-title {
        font-size: 0.9rem;
    }
    .st-event-card-date {
        font-size: 0.7rem;
    }
    .st-event-card-location {
        font-size: 0.75rem;
    }
    .st-event-card-cta {
        font-size: 0.68rem;
    }
    .st-event-card-image {
        height: 150px;
    }

    /* Cover image shorter on mobile */
    .st-event-cover img {
        height: 220px;
    }

    .st-event-cover-title {
        font-size: 1.2rem;
        bottom: 14px;
        left: 14px;
        right: 14px;
    }

    .st-event-cover-category {
        top: 12px;
        right: 12px;
    }

    /* Details spacing */
    .st-event-details {
        padding-top: 20px;
    }

    .st-event-detail-row {
        gap: 12px;
        margin-bottom: 14px;
    }

    /* RSVP */
    .st-event-rsvp {
        padding: 20px 16px;
        margin: 24px 0;
    }

    .st-event-rsvp-buttons {
        gap: 8px;
    }

    .st-event-rsvp-btn {
        padding: 12px;
        font-size: 0.82rem;
    }

    /* Actions stack */
    .st-event-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .st-event-tickets-btn {
        justify-content: center;
    }

    .st-event-back-link {
        justify-content: center;
        padding: 8px 0;
    }

    /* Attendees tighter on mobile */
    .st-event-attendees {
        gap: 10px;
    }

    .st-event-attendee {
        width: 48px;
    }

    .st-event-attendee img,
    .st-event-attendee-placeholder {
        width: 38px;
        height: 38px;
    }

    .st-event-attendee span {
        max-width: 48px;
        font-size: 0.52rem;
    }
}

/* ============================================================
   RESPONSIVE — SMALL TABLETS (two columns)
   ============================================================ */

@media (min-width: 641px) and (max-width: 900px) {
    .st-events-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .st-events-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================================
   FOCUS / ACCESSIBILITY
   ============================================================ */

.st-event-card:focus-visible {
    outline: 2px solid #d92b63;
    outline-offset: 2px;
}

.st-event-rsvp-btn:focus-visible,
.st-events-load-more-btn:focus-visible,
.st-event-tickets-btn:focus-visible,
.st-event-rsvp-login-btn:focus-visible {
    outline: 2px solid #d92b63;
    outline-offset: 2px;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
    .st-event-card {
        animation: none;
        opacity: 1;
        transform: none;
    }

    .st-event-card:hover {
        transform: none;
    }

    .st-events-loading-spinner {
        animation-duration: 1.5s;
    }

    .st-event-attendee:hover {
        transform: none;
    }

    .st-events-load-more-btn:hover {
        transform: none;
    }
}


/* ========== VIEW TOGGLE ========== */

.st-events-view-toggle {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
}
.st-events-view-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 36px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s;
}
.st-events-view-btn:hover {
    color: #ccc;
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
}
.st-events-view-btn--active {
    color: #d92b63;
    border-color: rgba(217,43,99,0.3);
    background: rgba(217,43,99,0.08);
}


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

.st-events-calendar {
    margin-bottom: 32px;
}
.st-events-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 16px;
}
.st-events-cal-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    color: #ccc;
    font-size: 1.4rem;
    cursor: pointer;
    transition: all 0.2s;
}
.st-events-cal-nav-btn:hover {
    border-color: rgba(217,43,99,0.3);
    color: #d92b63;
    background: rgba(217,43,99,0.06);
}
.st-events-cal-month {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    min-width: 180px;
    text-align: center;
}
.st-events-calendar-grid {
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    overflow-x: auto;
    min-width: 0;
}
.st-cal-header {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid rgba(255,255,255,0.06);
    min-width: 500px;
}
.st-cal-header span {
    text-align: center;
    padding: 10px 0;
    font-size: 0.7rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.st-cal-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    min-width: 500px;
}
.st-cal-day {
    min-height: 80px;
    padding: 4px;
    border-right: 1px solid rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: relative;
    overflow: hidden;
}
.st-cal-day:nth-child(7n) {
    border-right: none;
}
.st-cal-day-num {
    font-size: 0.75rem;
    color: #555;
    margin-bottom: 4px;
}
.st-cal-day--today .st-cal-day-num {
    color: #d92b63;
    font-weight: 700;
}
.st-cal-day--outside {
    opacity: 0.3;
}
.st-cal-event {
    display: block;
    font-size: 0.65rem;
    padding: 2px 6px;
    border-radius: 4px;
    margin-bottom: 2px;
    color: #fff;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: opacity 0.2s;
}
.st-cal-event:hover {
    opacity: 0.8;
    text-decoration: none;
    color: #fff;
}
/* Category colors for calendar events */
.st-cal-event[data-category="parties"] { background: #d92b63; }
.st-cal-event[data-category="cruises"] { background: #2b8cd9; }
.st-cal-event[data-category="conventions"] { background: #9b59b6; }
.st-cal-event[data-category="meetups"] { background: #27ae60; }
.st-cal-event[data-category="takeovers"] { background: #f39c12; }
.st-cal-event[data-category="hotel-parties"] { background: #e74c3c; }
.st-cal-event[data-category="club-events"] { background: #8e44ad; }
.st-cal-event[data-category="other"] { background: #95a5a6; }

.st-cal-day-more {
    font-size: 0.6rem;
    color: #d92b63;
    padding: 2px 4px;
    cursor: pointer;
    font-weight: 600;
}
.st-cal-day-more:hover {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .st-cal-body,
    .st-cal-header {
        min-width: 420px;
    }
    .st-cal-day {
        min-height: 44px;
        padding: 2px;
    }
    .st-cal-day-num {
        font-size: 0.6rem;
    }
    .st-cal-event {
        font-size: 0.5rem;
        padding: 1px 2px;
        border-radius: 2px;
    }
    .st-cal-header span {
        font-size: 0.55rem;
        padding: 6px 0;
    }
    .st-cal-day-more {
        font-size: 0.5rem;
    }
    .st-events-cal-month {
        font-size: 0.9rem;
        min-width: 140px;
    }
    .st-events-calendar-grid {
        border-radius: 10px;
    }
}


/* ========== SEARCH BAR ========== */

/* ========== SEARCH BAR ========== */
.st-events-search-bar {
    margin-bottom: 14px;
    max-width: 100%;
    box-sizing: border-box;
}
.st-events-search-input {
    width: 100%;
    height: 48px;
    padding: 0 20px;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    color: #fff;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.2s, box-shadow 0.2s;
    -webkit-appearance: none;
}
.st-events-search-input:focus {
    border-color: rgba(217, 43, 99, 0.5);
    box-shadow: 0 0 0 3px rgba(217, 43, 99, 0.08);
}
.st-events-search-input::placeholder {
    color: #555;
}
/* Native clear button styling for type="search" */
.st-events-search-input::-webkit-search-cancel-button {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E") center/contain no-repeat;
    cursor: pointer;
}


/* ========== HAPPENING NOW ========== */

.st-events-happening-now {
    margin-bottom: 32px;
}
.st-events-section-title--live {
    display: flex;
    align-items: center;
    gap: 8px;
}
.st-events-live-dot {
    width: 10px;
    height: 10px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
    animation: st-live-pulse 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
}
.st-events-live-dot--sm {
    width: 7px;
    height: 7px;
}
@keyframes st-live-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); }
    50% { opacity: 0.6; box-shadow: 0 0 16px rgba(34, 197, 94, 0.9); }
}
/* Horizontal scrolling strip for Happening Now */
.st-events-happening-scroll {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    padding-bottom: 12px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.st-events-happening-scroll::-webkit-scrollbar {
    display: none;
}
.st-happening-card {
    flex: 0 0 220px;
    scroll-snap-align: start;
    background: #111;
    border: 1px solid rgba(34, 197, 94, 0.25);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.st-happening-card:hover {
    border-color: rgba(34, 197, 94, 0.5);
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.1);
    transform: translateY(-2px);
}
.st-happening-card-image {
    height: 100px;
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
    position: relative;
}
.st-happening-card-body {
    padding: 10px 12px 12px;
}
.st-happening-card-date {
    font-size: 0.68rem;
    color: #22c55e;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.st-happening-card-title {
    font-family: 'Cinzel', serif;
    font-size: 0.8rem;
    color: #fff;
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.st-happening-card-location {
    font-size: 0.68rem;
    color: #888;
}
.st-event-card--live {
    border: 1px solid rgba(34, 197, 94, 0.3) !important;
    box-shadow: 0 0 20px rgba(34, 197, 94, 0.08);
}
.st-event-card--live:hover {
    border-color: rgba(34, 197, 94, 0.5) !important;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.15);
}
.st-event-card-live-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    background: rgba(34, 197, 94, 0.9);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 1px;
    border-radius: 20px;
    z-index: 2;
}

/* ========== CARD CTA (logged-out) ========== */

.st-event-card-cta {
    font-size: 0.72rem;
    color: #888;
    margin-top: 8px;
    line-height: 1.5;
}
.st-event-card-cta strong {
    color: #d92b63;
}

@media (max-width: 640px) {
    .st-happening-card {
        flex: 0 0 180px;
    }
}


/* ========== EVENTS COUNTER ========== */

.st-events-counter {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 16px;
    padding: 10px 24px;
    background: rgba(217, 43, 99, 0.08);
    border: 1px solid rgba(217, 43, 99, 0.2);
    border-radius: 50px;
}
.st-events-counter-number {
    font-family: 'Cinzel', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #d92b63;
}
.st-events-counter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}


/* ========== EVENT CARD IMAGE FITTING ========== */

/* Duplicate removed — main rule above */

/* Default placeholder for events without images */
.st-event-card-image--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #111 0%, #0a0a0a 100%) !important;
    background-image: none !important;
}
.st-event-card-placeholder-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: #333;
}
.st-event-card-placeholder-icon svg {
    opacity: 0.3;
}
.st-event-card-placeholder-icon span {
    font-size: 0.65rem;
    color: #444;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}

/* Single event cover — handled by earlier rule block */


/* ========== PAST EVENT BANNER ========== */

.st-event-past-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    background: rgba(245, 158, 11, 0.06);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-left: 3px solid #f59e0b;
    border-radius: 0 12px 12px 0;
    margin-bottom: 24px;
}
.st-event-past-banner svg {
    flex-shrink: 0;
    color: #f59e0b;
}
.st-event-past-banner strong {
    display: block;
    color: #f59e0b;
    font-size: 0.9rem;
    margin-bottom: 2px;
}
.st-event-past-banner span {
    font-size: 0.8rem;
    color: #888;
}
.st-event-past-banner a {
    color: #d92b63;
    text-decoration: none;
    font-weight: 600;
}
.st-event-past-banner a:hover {
    text-decoration: underline;
}


/* ========== MARKETING CTA — LOGGED-OUT ATTENDEES REPLACEMENT ========== */

.st-event-marketing-cta {
    background: linear-gradient(135deg, rgba(217, 43, 99, 0.06), rgba(242, 102, 61, 0.04));
    border: 1px solid rgba(217, 43, 99, 0.25);
    border-radius: 16px;
    padding: 36px 28px;
    text-align: center;
    margin: 32px 0;
    position: relative;
    overflow: hidden;
}
.st-event-marketing-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #d92b63, #f2663d);
}
.st-event-marketing-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(217, 43, 99, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.st-event-marketing-icon svg {
    color: #d92b63;
}
.st-event-marketing-cta h3 {
    font-family: 'Cinzel', serif;
    font-size: 1.3rem;
    color: #fff;
    margin: 0 0 10px;
}
.st-event-marketing-cta p {
    color: #999;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto 24px;
}
.st-event-marketing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 280px;
    margin: 0 auto;
}
.st-event-marketing-btn-primary {
    display: block;
    padding: 14px 24px;
    background: linear-gradient(135deg, #d92b63, #f2663d);
    color: #fff !important;
    border: none;
    border-radius: 12px;
    font-family: 'Raleway', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s;
}
.st-event-marketing-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(217, 43, 99, 0.35);
}
.st-event-marketing-btn-secondary {
    display: block;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    color: #ccc !important;
    font-family: 'Raleway', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none !important;
    text-align: center;
    transition: all 0.2s;
}
.st-event-marketing-btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.04);
}


/* ========== NFC MARKETING BANNER ========== */

.st-event-marketing-nfc {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-left: 3px solid #d92b63;
    border-radius: 0 12px 12px 0;
    padding: 20px 24px;
    margin: 24px 0;
}
.st-event-marketing-nfc h3 {
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #fff;
    margin: 0 0 8px;
}
.st-event-marketing-nfc p {
    color: #888;
    font-size: 0.82rem;
    line-height: 1.6;
    margin: 0 0 12px;
}
.st-event-marketing-nfc a {
    color: #d92b63;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
}
.st-event-marketing-nfc a:hover {
    text-decoration: underline;
}


/* ========== PAST EVENT MUTED STYLES ========== */

.st-events-container--past .st-event-cover {
    opacity: 0.75;
}
.st-events-container--past .st-event-tickets-btn {
    display: none;
}
.st-event-rsvp-ended {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 0.85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    margin: 24px 0;
}
.st-event-rsvp-ended strong {
    display: block;
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.st-event-next-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 24px;
    padding: 12px 24px;
    background: rgba(217, 43, 99, 0.08);
    border: 1px solid rgba(217, 43, 99, 0.2);
    border-radius: 10px;
    color: #d92b63;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
}
.st-event-next-link:hover {
    background: rgba(217, 43, 99, 0.15);
    border-color: rgba(217, 43, 99, 0.4);
}

/* ========== MARKETING RESPONSIVE ========== */

@media (max-width: 640px) {
    .st-event-marketing-cta {
        padding: 28px 20px;
    }
    .st-event-marketing-cta h3 {
        font-size: 1.1rem;
    }
    .st-event-marketing-buttons {
        max-width: 100%;
    }
    .st-event-past-banner {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    .st-event-marketing-nfc {
        padding: 16px 18px;
    }
    .st-event-marketing-nfc h3 {
        font-size: 0.9rem;
    }
    .st-event-description {
        font-size: 0.85rem;
    }
    .st-event-tickets-btn {
        width: 100%;
        justify-content: center;
    }
}
