* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    font-family: 'Figtree', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Space-to-sky gradient — fixed pixel stops so purple zone never grows with page */
    background: linear-gradient(
        180deg,
        #2D1C63 0px,       /* deep space purple */
        #2D1C63 80px,      /* holds purple through header */
        #1a4a8a 300px,     /* transition to night blue */
        #0CA3DC 600px,     /* sky blue — always reached by ~600px from top */
        #0CA3DC 100%       /* holds sky blue for rest of page */
    );
    min-height: 100vh;
    padding: 1rem 0;
}

.container {
    max-width: 1280px; /* max-w-6xl = 72rem = 1152px, using 1280px for slightly wider */
    margin: 0 auto;
    padding: 0 1rem; /* px-4 equivalent */
    position: relative;
    z-index: 2;
}

/* Night sky stars */
@keyframes twinkle {
    0%, 100% { opacity: 0.2; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.3); }
}

.stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60vh;   /* stars only in top 60% — sky fades to sunrise below */
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
    will-change: transform;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle linear infinite;
}

/* Mobile card reveal animation */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    #eventsGrid:not(.cards-visible) {
        display: none !important;
    }

    #stats:not(.cards-visible) {
        display: none !important;
    }

    .card-animate-in {
        animation: cardSlideIn 0.4s ease both;
    }
}

/* Mobile Header Image */
.mobile-header-image {
    display: none; /* Hidden by default */
}

@media (max-width: 640px) {
    .mobile-header-image {
        display: flex;
        flex-direction: column;
        align-items: center;
        position: relative;
        width: 100%;
        margin: 0 0 1.25rem 0;
        overflow: visible; /* Allow status banner pulse to extend without clipping */
        z-index: 100; /* Above search bar and other content */
    }

    .mobile-header-image img {
        width: 140px;
        height: auto;
        display: block;
        margin-top: 24px;
    }

    .mobile-title {
        color: white;
        font-size: 1.8em;
        margin: 0.4em 0 0.1em;
        text-align: center;
        text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    }

    .mobile-subtitle {
        color: rgba(255, 255, 255, 0.9);
        font-size: 1em;
        margin: 0 0 0.5em;
    }

    .mobile-status-banner-wrapper {
        margin: 16px 0 8px;
        white-space: nowrap;
    }

    /* Mobile status banner should look exactly like desktop */
    .mobile-status-banner {
        display: inline-block;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-radius: 25px;
        padding: 10px 24px;
        color: white;
        font-size: 0.95em;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 1px solid rgba(255, 255, 255, 0.3);
        user-select: none;
        white-space: nowrap;
        animation: bannerPulse 2.5s ease-in-out 1s infinite;
    }

    @keyframes bannerPulse {
        0%, 100% { transform: scale(1); box-shadow: none; }
        50% { transform: scale(1.05); box-shadow: 0 0 20px rgba(255,255,255,0.3); }
    }

    .mobile-status-banner:hover {
        background: rgba(255, 255, 255, 0.35);
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    }

    .mobile-status-banner:active {
        transform: scale(1.02);
    }

    /* Hide entire desktop header on mobile */
    header {
        display: none !important;
    }
}

/* Desktop/Tablet: Hide mobile header, show regular header */
@media (min-width: 641px) {
    .mobile-header-image {
        display: none;
    }
}

/* Mobile: App-like floating bars */
@media (max-width: 640px) {
    body {
        padding-bottom: 0; /* footer image sits flush at bottom */
        overflow-x: hidden; /* prevent horizontal scroll from negative margins */
    }

    html {
        overflow-x: hidden;
    }

    /* Inset the whole content area so all bars and cards are narrower */
    .container {
        padding: 0 16px;
        min-height: calc(100vh - 2rem); /* full viewport minus body top padding */
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
    }

    /* Pill-shaped bars — all equidistant at 12px gap */
    .search-section {
        border-radius: 50px;
        padding: 12px 16px;
        margin-bottom: 12px;
        position: relative;
        z-index: 1;
    }

    .mood-toggle-btn {
        border-radius: 50px !important;
        padding: 14px 20px !important;
        margin-bottom: 12px !important;
    }

    .mood-toggle-btn.expanded {
        border-radius: 20px 20px 0 0 !important;
        margin-bottom: 0 !important;
    }

    .filters-toggle-btn {
        border-radius: 50px !important;
        padding: 14px 20px !important;
        margin-bottom: 12px !important;
    }

    .filters-toggle-btn.expanded {
        border-radius: 20px 20px 0 0 !important;
        margin-bottom: 0 !important;
    }

    .mood-content.expanded {
        border-radius: 0 0 20px 20px;
    }

    .quick-filters.expanded {
        border-radius: 0 0 20px 20px !important;
        margin-bottom: 12px;
    }

    .quick-filters-wrapper {
        margin-bottom: 0;
    }

    .search-box {
        font-size: 0.88em;
        padding: 12px 16px 12px 46px;
    }

    /* Event cards same width as bars */
    .events-grid {
        grid-template-columns: 1fr !important;
    }
}

header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

h1, h2, h3, h4,
.mobile-title,
.event-title,
.mood-label,
.mood-button {
    font-family: 'Plus Jakarta Sans', sans-serif;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
    font-weight: 800;
}

/* Spaceship bob — defined globally, used on both mobile and desktop */
@keyframes spaceshipBob {
    0%   { transform: translateY(0px) rotate(0deg); }
    30%  { transform: translateY(-8px) rotate(0.5deg); }
    60%  { transform: translateY(-4px) rotate(-0.3deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.header-icon {
    display: block;
    width: 160px;
    height: auto;
    margin: 0 auto 12px;
}

.header-spaceship {
    animation: spaceshipBob 5s ease-in-out infinite;
    transform-origin: center bottom;
}

.subtitle {
    font-size: 1.2em;
    opacity: 0.9;
    margin-bottom: 20px;
}

.filters {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.filter-section {
    margin-bottom: 20px;
}

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

.filter-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    display: block;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    padding: 8px 16px;
    border-radius: 20px;
    border: 2px solid #e0e0e0;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9em;
    user-select: none;
}

.tag:hover {
    border-color: #667eea;
    background: #f0f4ff;
}

.tag.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.search-box {
    width: 100%;
    padding: 15px 20px 15px 46px; /* left room for search icon */
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: white;
}

.search-box:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Search Section */
.search-section {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    position: relative;
    z-index: 100;
}

/* Mobile: search bar is a standalone pill — no glass wrapper */
@media (max-width: 640px) {
    .search-section {
        background: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        border: none;
        padding: 0;
        margin-bottom: 12px;
        position: relative;
        z-index: 10;
        box-shadow: none;
    }

    .search-box {
        border-radius: 50px !important; /* pill shape */
        padding: 14px 20px 14px 46px !important;
        border: none !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    }

    .search-box:focus {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(102, 126, 234, 0.3);
    }
}

.search-container {
    position: relative;
    width: 100%;
    z-index: 100;
}

.search-input-row {
    position: relative; /* icon and X button both position relative to this row */
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    pointer-events: none;
    z-index: 1;
}

.search-clear-btn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    line-height: 1;
    transition: color 0.2s ease;
    z-index: 10;
}

.search-clear-btn:hover {
    color: #667eea;
}

.search-clear-btn:active {
    transform: translateY(-50%) scale(0.95);
}

.search-autocomplete {
    display: none;
    background: white;
    border-top: 1px solid #e8e8f0;
    max-height: 400px;
    overflow-y: auto;
}

.search-autocomplete.show {
    display: block;
}

/* When autocomplete is open, the container becomes the unified bordered box */
.search-container.autocomplete-open {
    border: 2px solid #667eea;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
    overflow: hidden; /* clips children to the rounded rect */
}

.search-container.autocomplete-open .search-box {
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

@media (max-width: 640px) {
    .search-container.autocomplete-open {
        border-radius: 20px;
        box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
    }
}

.autocomplete-item {
    padding: 12px 20px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.autocomplete-item-title {
    font-weight: 600;
    font-size: 0.95em;
    margin-bottom: 4px;
}

.autocomplete-item-venue {
    font-size: 0.85em;
    color: #666;
}

.autocomplete-item:hover .autocomplete-item-venue,
.autocomplete-item.selected .autocomplete-item-venue {
    color: rgba(255, 255, 255, 0.9);
}

.autocomplete-category {
    padding: 8px 20px;
    font-size: 0.75em;
    font-weight: 600;
    color: #667eea;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #f7f9ff;
    border-bottom: 1px solid #e0e7ff;
    position: sticky;
    top: 0;
}

/* Smart Status Banner */
.status-banner-wrapper {
    text-align: center;
    margin-top: 0;
}

.status-banner {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    padding: 10px 24px;
    color: white;
    font-size: 0.95em;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.3);
    user-select: none;
}

.status-banner:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.status-banner:active {
    transform: scale(1.02);
}

.status-count {
    font-weight: 700;
    color: #FFD700;
}

.mood-title {
    text-align: center;
    font-size: 1.8em;
    color: #333;
    margin-bottom: 25px;
    font-weight: 600;
}

/* Mobile: Glass effect for all collapsible sections */
.mobile-only {
    display: none;
}

@media (max-width: 640px) {
    .mobile-only {
        display: block;
    }

    /* Mood Toggle Button - Glass effect */
    .mood-toggle-btn {
        width: 100%;
        padding: 18px 20px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        font-size: 1.1em;
        font-weight: 600;
        color: white;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        margin-bottom: 15px;
        gap: 10px;
    }

    .mood-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.35);
        /* Removed transform to prevent lift */
    }

    .mood-toggle-btn:active {
        transform: scale(0.98);
    }

    .mood-toggle-icon {
        font-size: 0.9em;
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .mood-toggle-text {
        flex: 1;
        text-align: center;
    }

    .mood-toggle-btn.expanded {
        border-radius: 15px 15px 0 0;
        margin-bottom: 0;
    }

    .mood-toggle-btn.expanded .mood-toggle-icon {
        transform: rotate(180deg);
    }

    /* Filters Toggle Button - Glass effect */
    .filters-toggle-btn {
        width: 100%;
        padding: 18px 20px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        font-size: 1.1em;
        font-weight: 600;
        color: white;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        margin-bottom: 15px;
        gap: 10px;
    }

    .filters-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.35);
        /* Removed transform to prevent lift */
    }

    .filters-toggle-btn:active {
        transform: scale(0.98);
    }

    .filters-toggle-icon {
        font-size: 0.9em;
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .filters-toggle-text {
        flex: 1;
        text-align: center;
    }

    .filters-toggle-btn.expanded {
        border-radius: 15px 15px 0 0;
        margin-bottom: 0;
    }

    .filters-toggle-btn.expanded .filters-toggle-icon {
        transform: rotate(180deg);
    }

    /* Expanded content - same glass box, connected to button */
    .mood-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .mood-content.expanded {
        max-height: 2000px;
        padding: 20px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-top: none;
        border-radius: 0 0 15px 15px;
        margin-bottom: 15px;
    }

    .quick-filters-wrapper {
        margin-bottom: 15px;
    }

    /* Hide title in mobile expanded view */
    .mood-content .mood-title {
        display: none;
    }

}

/* Desktop & Tablet: Glass effect with collapsible Mood Selector */
@media (min-width: 641px) {
    /* Show mood toggle button on desktop/tablet */
    .mood-toggle-btn {
        display: block;
        width: 100%;
        padding: 18px 20px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        font-size: 1.1em;
        font-weight: 600;
        color: white;
        cursor: pointer;
        display: flex;
        justify-content: center;
        align-items: center;
        transition: all 0.3s ease;
        margin-bottom: 15px;
        gap: 10px;
    }

    .mood-toggle-btn:hover {
        background: rgba(255, 255, 255, 0.35);
    }

    .mood-toggle-icon {
        font-size: 0.9em;
        transition: transform 0.3s ease;
        margin-left: auto;
    }

    .mood-toggle-text {
        flex: 1;
        text-align: center;
    }

    .mood-toggle-btn.expanded {
        border-radius: 15px 15px 0 0;
        margin-bottom: 0;
    }

    .mood-toggle-btn.expanded .mood-toggle-icon {
        transform: rotate(180deg);
    }

    /* Mood content - glass effect, collapsible */
    .mood-content {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease;
    }

    .mood-content.expanded {
        max-height: 2000px;
        padding: 30px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-top: none;
        border-radius: 0 0 15px 15px;
        margin-bottom: 30px;
    }

    /* Filters - glass effect, always open */
    .quick-filters {
        max-height: none !important;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-radius: 15px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: none;
    }

    /* Hide mood title in expanded view */
    .mood-content .mood-title {
        display: none;
    }
}

.mood-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
    max-width: 1400px;
    margin: 0 auto;
}

.mood-label {
    font-size: 1.1em;
    font-weight: 600;
    color: white;
    text-align: center;
    z-index: 1;
}

.mood-icon {
    width: 48px;
    height: 48px;
    color: white;
    opacity: 0.9;
    z-index: 1;
}

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

/* Mobile phones portrait - larger text and icons */
@media (max-width: 600px) and (orientation: portrait) {
    h1 {
        font-size: 2.2em;
    }

    .mood-icon {
        width: 56px;
        height: 56px;
    }

    .mood-label {
        font-size: 1.25em;
    }

    .mood-count {
        font-size: 0.95em;
        padding: 5px 12px;
    }

    .mood-button {
        padding: 22px;
    }

    .mood-title {
        font-size: 2em;
    }

    .search-box {
        font-size: 1.05em;
        padding: 16px 20px 16px 46px;
    }

    .status-banner {
        font-size: 1.05em;
        padding: 12px 26px;
    }
}

/* Tablet portrait (600px - 900px) - 3 columns */
@media (min-width: 600px) and (max-width: 900px) and (orientation: portrait) {
    .mood-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .mood-icon {
        width: 56px;
        height: 56px;
    }

    .mood-label {
        font-size: 1.15em;
    }
}

/* Mobile landscape - 4 columns for iPhone landscape */
@media (max-height: 600px) and (orientation: landscape) {
    .mood-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 15px;
    }

    .mood-icon {
        width: 48px !important;
        height: 48px !important;
    }

    .mood-label {
        font-size: 1em !important;
    }

    .mood-button {
        padding: 26px !important;
    }

    .mood-count {
        font-size: 1.05em !important;
        padding: 6px 14px !important;
    }

    .mood-title {
        font-size: 2.2em !important;
    }
}

/* Tablet and larger screens (768px+) */
@media (min-width: 768px) {
    .mood-icon {
        width: 64px;
        height: 64px;
    }

    .mood-label {
        font-size: 1.2em;
    }

    .mood-count {
        font-size: 0.95em;
    }

    .event-title {
        font-size: 1.3em;
    }

    .event-venue {
        font-size: 1.05em;
    }

    .event-description {
        font-size: 1em;
    }

    .filter-label {
        font-size: 1.05em;
    }

    .tag {
        font-size: 1em;
        padding: 10px 18px;
    }

    .search-box {
        font-size: 1.1em;
    }
}

/* Desktop screens (1024px+) */
@media (min-width: 1024px) {
    h1 {
        font-size: 3.5em;
    }

    .subtitle {
        font-size: 1.4em;
    }

    .mood-icon {
        width: 72px;
        height: 72px;
    }

    .mood-label {
        font-size: 1.3em;
    }

    .mood-count {
        font-size: 1em;
    }

    .mood-title {
        font-size: 2.2em;
    }

    .today-title {
        font-size: 2.2em;
    }

    .lets-go-btn {
        font-size: 1.5em;
        padding: 20px 60px;
    }

    .event-title {
        font-size: 1.5em;
    }

    .event-venue {
        font-size: 1.15em;
    }

    .event-description {
        font-size: 1.05em;
    }

    .filter-label {
        font-size: 1.1em;
    }

    .tag {
        font-size: 1.05em;
        padding: 10px 20px;
    }

    .search-box {
        font-size: 1.15em;
        padding: 16px 22px 16px 46px;
    }
}

/* Large desktop screens (1440px+) */
@media (min-width: 1440px) {
    h1 {
        font-size: 4em;
    }

    .subtitle {
        font-size: 1.5em;
    }

    .mood-icon {
        width: 80px;
        height: 80px;
    }

    .mood-label {
        font-size: 1.4em;
    }

    .mood-button {
        padding: 25px;
    }

    .event-title {
        font-size: 1.6em;
    }

    .event-description {
        font-size: 1.1em;
    }
}

.mood-button {
    position: relative;
    aspect-ratio: 1;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    overflow: hidden;
}

.mood-button:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}

.mood-button.active {
    transform: scale(1.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 3px solid white;
}

.mood-button.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    color: inherit;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
}

.mood-count {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.3);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    backdrop-filter: blur(5px);
}

/* Mood Button Gradients */
.music-mood {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.party-mood {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.dancing-mood {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

.learning-mood {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.family-mood {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

.chill-mood {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

.arts-mood {
    background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
}

.games-mood {
    background: linear-gradient(135deg, #5f72bd 0%, #9b23ea 100%);
}

.comedy-mood {
    background: linear-gradient(135deg, #ffeaa7 0%, #fd79a8 100%);
}

.film-mood {
    background: linear-gradient(135deg, #2d3436 0%, #636e72 100%);
}

/* Quick Filters */
.quick-filters {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Hide on mobile by default - controlled by expanded class */
@media (max-width: 640px) {
    .quick-filters {
        display: none;  /* Hidden by default on mobile */
        background: transparent;  /* Remove white background */
        box-shadow: none;
        padding: 0;
        margin-bottom: 0;
    }

    .quick-filters.expanded {
        display: flex;  /* Show when expanded */
        flex-direction: column;
        padding: 20px;
        background: rgba(255, 255, 255, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border: 1px solid rgba(255, 255, 255, 0.3);
        border-top: none;
        border-radius: 0 0 15px 15px;
        box-shadow: none;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) and (min-width: 641px) {
    .quick-filters {
        flex-direction: column;
    }
}

.filter-group {
    flex: 1;
    min-width: 180px;
}

@media (max-width: 768px) {
    .filter-group {
        min-width: 100%;
    }
}

.filter-group label {
    display: block;
    font-weight: 600;
    color: #555;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.filter-dropdown {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    font-size: 1em;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Location filter with pin icon */
.filter-group--icon {
    position: relative;
}

.filter-icon--pin {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    pointer-events: none;
    z-index: 1;
    filter: brightness(0) invert(1);
    opacity: 0.85;
}

.filter-dropdown--icon {
    padding-left: 36px;
}

.filter-dropdown option {
    color: #333;
    background: white;
}

.filter-dropdown:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.filter-dropdown:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Active Filters Pills */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding: 0 2px;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.82em;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.filter-pill .remove-pill {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s;
    font-size: 0.85em;
    line-height: 1;
}

.filter-pill .remove-pill:hover {
    opacity: 1;
}

.clear-all-btn {
    background: none;
    color: rgba(255, 255, 255, 0.7);
    border: none;
    padding: 4px 2px;
    cursor: pointer;
    font-size: 0.82em;
    font-family: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
    white-space: nowrap;
}

.clear-all-btn:hover {
    color: white;
}

/* Advanced Filters */
.advanced-filters {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.advanced-toggle {
    width: 100%;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.advanced-toggle:hover {
    color: #764ba2;
}

.toggle-icon {
    transition: transform 0.3s ease;
}

.advanced-toggle.open .toggle-icon {
    transform: rotate(180deg);
}

.advanced-content {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px solid #f0f0f0;
}

.stats {
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    font-size: 0.85em;
    margin-bottom: 16px;
}

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

.event-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}

/* Happy Hour Promo Card */
.promo-card {
    background: linear-gradient(135deg, #ff9a56 0%, #ff6a88 100%) !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: white;
    position: relative;
    min-height: 400px;
}

.promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 106, 136, 0.4);
}

/* Coffee Promo Card */
.coffee-promo-card {
    background: linear-gradient(135deg, #84cc16 0%, #14b8a6 100%) !important;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex !important;
    flex-direction: column;
    cursor: pointer;
    text-decoration: none;
    color: white;
    position: relative;
    min-height: 280px;  /* Shorter than event cards on mobile */
}

@media (min-width: 768px) {
    .coffee-promo-card {
        min-height: 400px;  /* Full height on desktop */
    }
}

.coffee-promo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(132, 204, 22, 0.4);
}

.promo-card-content {
    padding: 40px 30px;
    text-align: center;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    flex: 1;
}

.promo-card-icon {
    font-size: 3em;
    line-height: 1;
}

.promo-card-title {
    font-size: 1.8em;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.promo-card-subtitle {
    font-size: 1.3em;
    font-weight: 600;
    margin: 0;
    opacity: 0.95;
}

.promo-card-description {
    font-size: 1em;
    opacity: 0.9;
    line-height: 1.5;
    max-width: 280px;
}

.promo-card-features {
    display: flex;
    gap: 15px;
    font-size: 0.9em;
    opacity: 0.85;
    flex-wrap: wrap;
    justify-content: center;
}

.promo-card-cta {
    display: inline-block; /* shrink to fit text */
    background: white;
    color: #ff6a88;
    padding: 12px 28px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.1em;
    margin-top: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: transform 0.2s ease;
}

.promo-card:hover .promo-card-cta {
    transform: scale(1.05);
}

.promo-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.event-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    object-position: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Portrait poster overlay (e.g. IFS film posters) */
.event-poster-bg {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    /* Subtle dark overlay so the poster stands out */
    background-color: #111;
}

.event-poster-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(0, 0, 0, 0.35);
}

.event-poster-img {
    position: relative;   /* above the ::before overlay */
    height: 200px;        /* fill card height */
    width: auto;          /* keep portrait aspect ratio — no cropping */
    object-fit: contain;
    display: block;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
}

.event-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.event-title {
    font-size: 1.3em;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
    line-height: 1.3;
}

.event-venue-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.event-venue {
    color: #667eea;
    font-weight: 600;
    font-size: 0.95em;
}

.clickable-venue {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-venue:hover {
    color: #764ba2;
    text-decoration: underline;
}

.event-location {
    color: #667eea;
    font-size: 0.95em;
    white-space: nowrap;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 3px;
}

.location-pin-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    filter: invert(48%) sepia(79%) saturate(476%) hue-rotate(210deg) brightness(90%) contrast(119%);
}

.clickable-location {
    cursor: pointer;
    transition: color 0.2s ease;
}

.clickable-location:hover {
    color: #667eea;
    text-decoration: underline;
}

.clickable-tag {
    cursor: pointer;
    transition: all 0.2s ease;
}

.clickable-tag:hover {
    background: #444;
    color: white;
    transform: scale(1.03);
}

.event-datetime {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #555;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.event-date,
.event-time {
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-meta-icon {
    width: 16px;
    height: 16px;
    display: inline-block;
    flex-shrink: 0;
    filter: invert(70%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(90%) contrast(90%);
}

/* Amber filter for calendar icon — warm #dd6b20 */
.calendar-icon {
    filter: invert(48%) sepia(89%) saturate(700%) hue-rotate(15deg) brightness(95%) contrast(105%);
}

/* Green filter for price icon */
.price-icon {
    filter: invert(55%) sepia(60%) saturate(450%) hue-rotate(90deg) brightness(95%) contrast(110%);
}

/* White filter for ticket icon inside red button */
.ticket-icon {
    filter: brightness(0) invert(1);
}

/* Icon inside button alignment */
.btn-icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.event-recurring {
    background: #ffeaa7;
    color: #d63031;
    padding: 4px 10px;
    border-radius: 5px;
    font-size: 0.85em;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 10px;
}

.event-description {
    color: #666;
    line-height: 1.5;
    margin-top: 10px;
    margin-bottom: 15px;
    flex-grow: 1;
    font-size: 0.95em;
}

.event-additional-info {
    color: #4a5568;
    margin-bottom: 15px;
    font-size: 0.9em;
    white-space: pre-wrap;
}

.event-price {
    font-size: 0.9em;
    color: #4a5568;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.event-card-footer {
    margin-top: auto;
    padding-top: 12px;
}

.event-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 12px;
}

.event-tag {
    background: #f0f0f0;
    color: #555;
    padding: 3px 9px;
    border-radius: 12px;
    font-size: 0.78em;
    font-weight: 500;
}

.event-links {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.event-link {
    flex: 1;
    text-align: center;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88em;
    padding: 9px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
    background: white;
    color: #667eea;
    border: 1.5px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.event-link:hover {
    background: #667eea;
    color: white;
    transform: translateY(-1px);
}

.event-ticket-link {
    background: #e53e3e;
    color: white;
    border-color: #e53e3e;
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-ticket-link:hover {
    background: #c53030;
    border-color: #c53030;
    color: white;
}

.no-events {
    text-align: center;
    color: white;
    font-size: 1.3em;
    padding: 60px 20px;
    background: rgba(255,255,255,0.2);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2em;
    }

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


/* Contact Modal */
.feedback-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.feedback-modal-content {
    background: white;
    border-radius: 20px;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 520px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.feedback-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 10;
    background: #f3f4f6;
    color: #4b5563;
    border-radius: 9999px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.2s;
    line-height: 1;
}

.feedback-modal-close:hover {
    background: #e5e7eb;
}

/* Contact form layout */
.contact-form-view,
.contact-success-view {
    padding: 36px 32px 32px;
}

.contact-form-header {
    text-align: center;
    margin-bottom: 24px;
}

.contact-form-icon {
    font-size: 2.2em;
    margin-bottom: 8px;
}

.contact-form-title {
    font-size: 1.5em;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.contact-form-subtitle {
    color: #666;
    font-size: 0.95em;
}

.contact-form-field {
    margin-bottom: 16px;
}

.contact-form-field label {
    display: block;
    font-size: 0.88em;
    font-weight: 600;
    color: #444;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.contact-required {
    color: #667eea;
}

.contact-form-field input,
.contact-form-field textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #e0e0e0;
    border-radius: 10px;
    font-size: 0.97em;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    resize: vertical;
}

.contact-form-field input:focus,
.contact-form-field textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.12);
}

.contact-form-field textarea {
    min-height: 110px;
}

.contact-form-error {
    background: #fff0f0;
    color: #c0392b;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 0.88em;
    margin-bottom: 14px;
}

.contact-submit-btn {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    margin-top: 4px;
}

.contact-submit-btn:hover:not(:disabled) {
    opacity: 0.92;
    transform: translateY(-1px);
}

.contact-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Success view */
.contact-success-view {
    text-align: center;
    padding: 60px 32px;
}

.contact-success-icon {
    font-size: 3em;
    margin-bottom: 16px;
}

.contact-close-success-btn {
    margin-top: 24px;
    padding: 11px 36px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1em;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

.contact-close-success-btn:hover {
    opacity: 0.9;
}

@media (max-width: 640px) {
    .contact-form-view,
    .contact-success-view {
        padding: 28px 20px 24px;
    }
}

/* Footer Contact Section */
.footer-contact {
    text-align: center;
    padding: 48px 0;
    margin-top: 32px;
}

@media (max-width: 640px) {
    .footer-contact {
        display: none;
    }
    .footer-contact.cards-visible {
        display: block;
    }
}

.footer-contact-text {
    color: white;
    font-size: 1.125em;
    margin-bottom: 16px;
}

.footer-contact-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);  /* Match feedback button */
    backdrop-filter: blur(10px);  /* Match feedback button */
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);  /* Match feedback button */
    color: white;  /* Match feedback button */
    padding: 12px 24px;
    border-radius: 50px;  /* More circular like feedback button */
    font-weight: 600;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
    font-size: 1em;
    text-decoration: none;
}

.footer-contact-button:hover {
    background: rgba(255, 255, 255, 0.35);  /* Match feedback button hover */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: scale(1.05);
}

/* Mobile footer skyline image */
.mobile-footer-image {
    display: none; /* hidden on desktop */
}

@media (max-width: 640px) {
    .mobile-footer-image {
        display: block;
        position: relative;  /* stacking context for clouds */
        margin-left: -16px;
        margin-right: -16px;
        margin-top: auto;
        pointer-events: none;
        overflow: hidden;    /* keep drifting clouds clipped to this area */
    }

    .mobile-footer-image img {
        display: block;
        width: 100%;
        height: auto;
        vertical-align: bottom;
        position: relative;
        z-index: 1; /* image below clouds — transparent top lets clouds show */
    }

    /* Cloud layer above the image — visible through the transparent sky area */
    .clouds-layer {
        position: absolute;
        top: 30px;
        left: 0;
        width: 100%;
        height: 55%;
        z-index: 2; /* above the PNG — shows in transparent zone, masked by opaque mountains */
        pointer-events: none;
    }

    /* Base cloud shape */
    .cloud {
        position: absolute;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 50px;
    }

    /* Fluffy top bumps via ::before and ::after */
    .cloud::before,
    .cloud::after {
        content: '';
        position: absolute;
        background: rgba(255, 255, 255, 0.75);
        border-radius: 50%;
    }

    /* Drift animations — each cloud moves at a different speed */
    @keyframes cloudDrift1 {
        0%   { transform: translateX(0); }
        50%  { transform: translateX(18px); }
        100% { transform: translateX(0); }
    }
    @keyframes cloudDrift2 {
        0%   { transform: translateX(0); }
        50%  { transform: translateX(-22px); }
        100% { transform: translateX(0); }
    }
    @keyframes cloudDrift3 {
        0%   { transform: translateX(0); }
        50%  { transform: translateX(14px); }
        100% { transform: translateX(0); }
    }
    @keyframes cloudDrift4 {
        0%   { transform: translateX(0); }
        50%  { transform: translateX(-10px); }
        100% { transform: translateX(0); }
    }

    /* Cloud 1 — medium, left side */
    .cloud-1 {
        width: 85px;
        height: 24px;
        top: 42%;
        left: -5px;
        animation: cloudDrift1 28s ease-in-out infinite;
        opacity: 0.65;
    }
    .cloud-1::before {
        width: 38px;
        height: 38px;
        top: -20px;
        left: 10px;
    }
    .cloud-1::after {
        width: 28px;
        height: 28px;
        top: -14px;
        left: 38px;
    }

    /* Cloud 2 — small, right side */
    .cloud-2 {
        width: 65px;
        height: 20px;
        top: 28%;
        right: 12px;
        animation: cloudDrift2 38s ease-in-out infinite;
        opacity: 0.65;
    }
    .cloud-2::before {
        width: 30px;
        height: 30px;
        top: -17px;
        left: 8px;
    }
    .cloud-2::after {
        width: 22px;
        height: 22px;
        top: -11px;
        left: 30px;
    }

    /* Cloud 3 — tiny, center, lower to avoid clipping */
    .cloud-3 {
        width: 50px;
        height: 16px;
        top: 20%;
        left: 35%;
        animation: cloudDrift3 45s ease-in-out infinite;
        opacity: 0.5;
    }
    .cloud-3::before {
        width: 22px;
        height: 22px;
        top: -12px;
        left: 6px;
    }
    .cloud-3::after {
        width: 16px;
        height: 16px;
        top: -8px;
        left: 24px;
    }

    /* Cloud 4 — small, far right, lower */
    .cloud-4 {
        width: 72px;
        height: 22px;
        top: 52%;
        right: 0px;
        animation: cloudDrift4 32s ease-in-out infinite;
        opacity: 0.6;
    }
    .cloud-4::before {
        width: 32px;
        height: 32px;
        top: -18px;
        left: 10px;
    }
    .cloud-4::after {
        width: 22px;
        height: 22px;
        top: -12px;
        left: 34px;
    }
}

/* Hide elements when modal is open */
.modal-open .search-section {
    display: none !important;
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 200;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background 0.2s ease;
}

.back-to-top svg {
    width: 20px;
    height: 20px;
    display: block;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: rgba(0, 0, 0, 0.6);
}

.back-to-top:active {
    transform: scale(0.94);
}

/* On mobile, lift it above the footer image */
@media (max-width: 640px) {
    .back-to-top {
        bottom: 20px;
        right: 16px;
    }
}

/* ================================================
   View Toggle (mobile only)
   ================================================ */

/* Stats + view toggle on one row */
.stats-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.stats-row .stats {
    margin-bottom: 0;
}

.view-toggle {
    display: none;
    gap: 6px;
    flex-shrink: 0;
}

.view-toggle.cards-visible {
    display: flex;
}

@media (min-width: 641px) {
    .view-toggle {
        display: none !important;
    }
}

.view-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.view-btn.active {
    background: rgba(102, 126, 234, 0.35);
    border-color: #667eea;
    color: white;
}

.view-btn svg {
    width: 18px;
    height: 18px;
}

/* ================================================
   List View Rows
   ================================================ */

#eventsGrid.list-view {
    flex-direction: column;
    gap: 0;
    background: rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    overflow: hidden;
}

/* Only override display when cards are properly revealed */
#eventsGrid.list-view.cards-visible {
    display: flex !important;
}

.list-row {
    display: flex;
    flex-direction: column;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.12s ease;
    -webkit-tap-highlight-color: transparent;
}

.list-row:last-child {
    border-bottom: none;
}

.list-row:active {
    background: rgba(255, 255, 255, 0.1);
}

.list-row-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    color: white;
    line-height: 1.3;
    margin-bottom: 4px;
}

.list-row-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Figtree', sans-serif;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

.list-row-date {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.list-row-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 0.7rem;
}

/* ================================================
   List View Bottom Sheet
   ================================================ */

.list-sheet-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 300;
    opacity: 0;
    transition: opacity 0.28s ease;
}

.list-sheet-overlay.open {
    opacity: 1;
}

.list-sheet {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-height: 85vh;
    background: #fff;
    border-radius: 20px 20px 0 0;
    z-index: 301;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
    overflow: hidden;
    box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
}

.list-sheet.open {
    transform: translateY(0);
}

.list-sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 36px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 2px;
    z-index: 2;
}

.list-sheet-close {
    position: absolute;
    top: 10px;
    right: 14px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    font-size: 0.95rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    z-index: 1;
}

.list-sheet-content {
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

/* Event card inside sheet: no outer radius/shadow, already contained */
.list-sheet-content .event-card {
    border-radius: 0;
    box-shadow: none;
    margin: 0;
}
