/* FunMe Twin Cities — Facebook-inspired full-width layout */
:root {
    --primary: #1877f2;
    --primary-hover: #166fe5;
    --accent: #f7653b;
    --text: #050505;
    --text-secondary: #65676b;
    --text-tertiary: #8a8d91;
    --bg: #f0f2f5;
    --bg-card: #ffffff;
    --border: #dadde1;
    --border-light: #e4e6eb;
    --radius: 8px;
    --shadow: 0 1px 2px rgba(0,0,0,0.1);
    --shadow-hover: 0 2px 8px rgba(0,0,0,0.15);
    --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { overflow-y: scroll; }
body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.34;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ==================== HEADER ==================== */
.site-header {
    background: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 0 16px;
    position: sticky;
    top: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
}
.header-inner {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 1.5rem;
    color: var(--primary);
    white-space: nowrap;
    font-weight: 300;
    letter-spacing: -0.5px;
    flex-shrink: 0;
}
.logo strong { font-weight: 800; }
.logo:hover { text-decoration: none; }
.logo i { color: var(--accent); font-size: 1.2rem; }

/* Mobile-only elements — hidden on desktop */
.mobile-hot-btn { display: none; }
.mobile-hot-list { display: none; }
.mobile-cal-btn {
    display: none;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.05rem;
    flex-shrink: 0;
    font-family: var(--font);
    transition: background 0.15s;
}
.mobile-cal-btn:hover { background: #e4e6eb; }
.mobile-cal-btn.active { background: #e7f3ff; color: var(--primary); }

/* Mobile calendar dropdown */
.mobile-cal-dropdown {
    display: none;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease;
    position: relative;
}
.mobile-cal-dropdown::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.12;
    background: url('/images/hero.jpg') center 30% / cover no-repeat;
    pointer-events: none;
    z-index: 0;
}
.mobile-cal-dropdown.open {
    max-height: 320px;
}
.mobile-cal-inner {
    padding: 8px 16px 16px;
    max-width: 400px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.header-search {
    flex: 1;
    max-width: 480px;
    position: relative;
}
.header-search .search-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-tertiary);
    font-size: 0.85rem;
}
.header-search input {
    width: 100%;
    padding: 9px 14px 9px 36px;
    border: none;
    border-radius: 20px;
    background: var(--bg);
    font-size: 0.94rem;
    font-family: var(--font);
    color: var(--text);
    outline: none;
}
.header-search input::placeholder { color: var(--text-tertiary); }
.header-search input:focus { background: #e4e6eb; }

/* Hamburger menu button */
.hamburger-btn {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    flex-shrink: 0;
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.hamburger-btn:hover { background: #e4e6eb; }

/* Menu overlay */
.menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}
.menu-overlay.open { opacity: 1; pointer-events: auto; }

/* Slide-out menu */
.slide-menu {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    max-width: 85vw;
    height: 100vh;
    background: var(--bg-card);
    z-index: 201;
    box-shadow: -4px 0 20px rgba(0,0,0,0.15);
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.slide-menu.open { right: 0; }

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-light);
}
.menu-logo {
    font-size: 1.2rem;
    color: var(--primary);
    font-weight: 300;
}
.menu-logo strong { font-weight: 800; }
.menu-logo i { color: var(--accent); }
.menu-close {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: var(--bg);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.menu-close:hover { background: #e4e6eb; }

.menu-links {
    flex: 1;
    padding: 12px 0;
    overflow-y: auto;
}
.menu-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: background 0.15s;
}
.menu-link:hover { background: var(--bg); text-decoration: none; }
.menu-link i { color: var(--text-tertiary); width: 20px; text-align: center; font-size: 0.9rem; }
.menu-link-small { font-size: 0.88rem; color: var(--text-secondary); padding: 10px 20px; }
.menu-link-small i { font-size: 0.82rem; }
.menu-divider { border: none; border-top: 1px solid var(--border-light); margin: 8px 20px; }

.menu-footer {
    padding: 16px 20px;
    border-top: 1px solid var(--border-light);
    text-align: center;
}
.menu-footer p { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.5; }

/* Contact modal */
.contact-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 300;
    display: none;
    align-items: center;
    justify-content: center;
}
.contact-overlay.open { display: flex; }
.contact-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 24px;
    width: 90%;
    max-width: 440px;
}
.contact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.contact-header h3 {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cf-row { margin-bottom: 12px; }
.cf-row label { display: block; font-size: 0.82rem; font-weight: 600; color: var(--text-secondary); margin-bottom: 3px; }
.cf-row input, .cf-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.92rem;
    font-family: var(--font);
    color: var(--text);
    outline: none;
}
.cf-row input:focus, .cf-row textarea:focus { border-color: var(--primary); }
.cf-row textarea { resize: vertical; }
.cf-submit {
    width: 100%;
    padding: 11px;
    border: none;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    margin-top: 4px;
}
.cf-submit:hover { background: var(--primary-hover); }
.cf-success {
    text-align: center;
    padding: 20px 0;
}
.cf-success p { margin-top: 10px; color: var(--text-secondary); }

/* Screen reader only */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==================== MAIN LAYOUT — 3 columns, full width ==================== */
.main-layout {
    display: grid;
    grid-template-columns: 280px 1fr 320px;
    gap: 0;
    align-items: start;
    min-height: calc(100vh - 56px);
}


/* ==================== SIDEBARS ==================== */
.sidebar {
    position: sticky;
    top: 56px;
    height: fit-content;
    max-height: calc(100vh - 56px);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 12px 8px;
    scrollbar-width: thin;
}
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.sidebar-brand {
    padding: 0 4px 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}
.sidebar-heading {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.3px;
}
.sidebar-tagline {
    display: block;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    margin-top: 2px;
    padding-left: 0;
}
.sidebar-left {
    border-right: 1px solid var(--border-light);
    padding-right: 12px;
}
.sidebar-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    right: -4px;
    bottom: 0;
    opacity: 0.12;
    background: url('/images/hero.jpg') center 30% / cover no-repeat;
    border-radius: 8px;
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to top, black 30%, transparent 80%);
    -webkit-mask-image: linear-gradient(to top, black 30%, transparent 80%);
}
.sidebar-left > * {
    position: relative;
    z-index: 1;
}
.sidebar-right {
    border-left: 1px solid var(--border-light);
    padding-left: 12px;
}

.sidebar-section {
    background: transparent;
    overflow: visible;
}
.sidebar-title {
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 16px 10px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}
.sidebar-title i {
    color: var(--accent);
    font-size: 0.95rem;
}

/* Hot Today list */
.hot-list {
    padding: 0 8px 8px;
}
.hot-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: var(--radius);
    cursor: pointer;
    transition: background 0.15s;
    text-decoration: none;
    color: var(--text);
}
.hot-item:hover {
    background: var(--bg);
    text-decoration: none;
}
.hot-thumb {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background-size: cover;
    background-position: center;
    background-color: var(--border-light);
    flex-shrink: 0;
}
.hot-thumb.no-img {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}
.hot-info {
    flex: 1;
    min-width: 0;
}
.hot-title {
    font-size: 0.87rem;
    font-weight: 600;
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-venue {
    font-size: 0.78rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.hot-time {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    font-weight: 500;
}
.hot-cat-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}
.hot-empty {
    padding: 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

/* Sidebar Calendar */
.sidebar-calendar {
    padding: 4px 12px 12px;
}

/* Zip code in header */
.header-zip {
    display: flex;
    align-items: center;
    gap: 4px;
    background: var(--bg);
    border-radius: 20px;
    padding: 7px 12px;
    flex-shrink: 0;
}
.header-zip i { color: var(--text-tertiary); font-size: 0.8rem; }
.header-zip input {
    border: none;
    background: none;
    font-size: 0.88rem;
    font-family: var(--font);
    color: var(--text);
    outline: none;
    width: 48px;
}
.header-zip input::placeholder { color: var(--text-tertiary); }
.header-zip.active { background: #e7f3ff; }
.header-zip.active i { color: var(--primary); }
.zip-hint {
    font-size: 0.72rem;
    color: var(--text-tertiary);
    white-space: nowrap;
    pointer-events: none;
}
.header-zip.active .zip-hint { display: none; }
.header-zip input:focus ~ .zip-hint { display: none; }
.zip-clear {
    border: none;
    background: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 0.68rem;
    padding: 2px;
    display: flex;
}
.zip-clear:hover { color: var(--text); }

/* Sidebar legal links */
.sidebar-legal {
    padding: 12px 4px;
    margin-top: auto;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    line-height: 1.8;
}
.sidebar-legal a {
    color: var(--text-tertiary);
}
.sidebar-legal a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* Submit event button */
.submit-event-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 10px 16px;
    margin: 8px 0;
    border-radius: var(--radius);
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 600;
    font-family: var(--font);
    transition: all 0.15s;
}
.submit-event-btn:hover {
    background: #e7f3ff;
    color: var(--primary);
    text-decoration: none;
}
.submit-event-btn i {
    font-size: 0.95rem;
}

/* Stats below calendar */
.sidebar-stats {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.stat-row {
    font-size: 0.84rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.stat-row i {
    color: var(--text-tertiary);
    width: 16px;
    text-align: center;
    font-size: 0.8rem;
}
.stat-row span {
    font-weight: 700;
    color: var(--text);
}
.cal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 4px 8px;
}
.cal-nav {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-family: var(--font);
    transition: background 0.15s;
}
.cal-nav:hover { background: var(--bg); }
.cal-month {
    flex: 1;
    font-weight: 600;
    font-size: 0.92rem;
    text-align: center;
    color: var(--text);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}
.cal-day-label {
    text-align: center;
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    padding: 4px 0;
}
.cal-day {
    text-align: center;
    padding: 5px 2px;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.12s;
    position: relative;
    color: var(--text);
    font-family: var(--font);
    border: none;
    background: none;
}
.cal-day:hover { background: var(--bg); }
.cal-day.today { font-weight: 700; color: var(--primary); }
.cal-day.selected { background: var(--primary); color: white; font-weight: 700; box-shadow: 0 0 0 2px var(--primary), 0 0 0 4px rgba(24,119,242,0.2); }
.cal-day.has-events::after {
    content: '';
    position: absolute;
    bottom: 1px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent);
}
.cal-day.selected.has-events::after { background: white; }
.cal-day.other-month { color: var(--text-tertiary); opacity: 0.5; }
.cal-day.past { color: var(--text-tertiary); }

/* ==================== FEED COLUMN ==================== */
.feed-column {
    min-width: 0;
    padding: 12px 16px;
}

/* Minneapolis skyline watermark behind calendar sidebar */

/* Date quick-filter bar */
.date-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
}
.date-chip {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    white-space: nowrap;
    font-family: var(--font);
    box-shadow: var(--shadow);
    transition: all 0.15s;
}
.date-chip:hover { background: #e4e6eb; color: var(--text); }
.date-chip.active { background: #e7f3ff; color: var(--primary); }

/* Category chips — WRAPPING not scrolling */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    flex: 1;
    min-width: 0;
}
.chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.84rem;
    font-weight: 600;
    white-space: nowrap;
    background: var(--bg-card);
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    box-shadow: var(--shadow);
}
.chip:hover { background: #e4e6eb; color: var(--text); text-decoration: none; }
.chip.active {
    background: var(--primary);
    color: white;
}
.chip i { font-size: 0.78rem; }
.chip .chip-count {
    background: rgba(0,0,0,0.06);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 0.72rem;
    font-weight: 500;
}
.chip.active .chip-count { background: rgba(255,255,255,0.25); }

/* Filter row — toggle + divider + chips */
.filter-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 12px;
}
.filter-divider {
    width: 1px;
    height: 28px;
    background: var(--border-light);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Free toggle switch */
.free-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border: none;
    border-radius: 20px;
    background: var(--bg-card);
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: var(--shadow);
    transition: all 0.2s;
}
.free-toggle:hover { color: #42b72a; }
.free-toggle i { font-size: 0.75rem; }
.toggle-switch {
    width: 28px;
    height: 16px;
    background: var(--border);
    border-radius: 8px;
    position: relative;
    transition: background 0.2s;
}
.toggle-knob {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: left 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}
.free-toggle.active { color: #42b72a; }
.free-toggle.active .toggle-switch { background: #42b72a; }
.free-toggle.active .toggle-knob { left: 14px; }
.chip-kids { color: #0891b2; border-color: #0891b240; }
.chip-kids:hover { background: #ecfeff; color: #0e7490; border-color: #0891b2; }
.chip-kids.active { background: #0891b2; color: white; border-color: #0891b2; }
.chip-sports { color: #16a34a; border-color: #16a34a40; }
.chip-sports:hover { background: #f0fdf4; color: #15803d; border-color: #16a34a; }
.chip-sports.active { background: #16a34a; color: white; border-color: #16a34a; }
.chip-hs { color: #b45309; border-color: #b45309; background: #fffbeb; font-weight: 600; border-style: dashed; }
.chip-hs:hover { background: #fef3c7; color: #92400e; border-color: #b45309; border-style: solid; }
.chip-hs.active { background: #b45309; color: white; border-color: #b45309; border-style: solid; }

/* More chips toggle */
.filter-bar-more { margin-top: -8px; }
.more-chips-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    margin-bottom: 12px;
    border: none;
    border-radius: 16px;
    background: none;
    color: var(--text-tertiary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: color 0.15s;
}
.more-chips-btn:hover { color: var(--primary); }
.more-chips-btn i { font-size: 0.65rem; transition: transform 0.2s; }
.more-chips-btn.open i { transform: rotate(180deg); }
.more-chips-btn.open .more-chips-text::before { content: '− Less'; }
.more-chips-btn.open .more-chips-text { font-size: 0; }
.more-chips-btn.open .more-chips-text::before { font-size: 0.82rem; }

/* ==================== EVENT FEED ==================== */
.event-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Date separator — sticky so you always know where you are */
.date-separator {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px 6px;
    font-weight: 700;
    font-size: 0.92rem;
    color: var(--text);
    position: sticky;
    top: 56px;
    z-index: 10;
    background: var(--bg);
    margin: 4px -16px 4px -16px;
    padding-left: 16px;
    padding-right: 16px;
}
.date-separator::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-light);
}
.date-separator .day-label {
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}
.date-separator .day-label .today-label {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -0.3px;
}
.date-separator .day-label .tomorrow-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--primary);
}
.date-separator .day-label .day-label-cat {
    font-weight: 800;
    color: var(--accent);
}
.date-separator .now-playing-label {
    color: #42b72a;
}

/* Date tag on each card */
.event-date-tag {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-tertiary);
    background: var(--bg);
    padding: 1px 7px;
    border-radius: 4px;
    white-space: nowrap;
}
.event-date-tag.is-today { color: var(--accent); background: #fff7ed; }
.event-date-tag.is-tomorrow { color: var(--primary); background: #e7f3ff; }

/* ==================== EVENT CARD ==================== */
.event-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    transition: box-shadow 0.2s;
    position: relative;
}
.event-card:hover {
    box-shadow: var(--shadow-hover);
}

/* Card with image — poster fades in from right */
.event-card.has-image:not(.fade-only) {
    background-image: none !important;
}
.event-card.has-image .event-body {
    order: -1;
    flex: 1;
}
.event-card.has-image .event-poster {
    width: 280px;
    min-height: 100px;
    margin: 0;
    margin-left: -80px;
    border-radius: 0;
    box-shadow: none;
    background-size: contain;
    background-position: right center;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent 100%);
    mask-image: linear-gradient(to left, black 40%, transparent 100%);
}

/* No-image cards — thin border + category gradient + geometric pattern */
.event-card:not(.has-image) {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}
.event-card:not(.has-image)::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    width: 120px;
    height: 100%;
    opacity: 0.07;
    background: var(--card-accent, #6366f1);
    pointer-events: none;
    z-index: 0;
    mask-image: linear-gradient(to left, black 40%, transparent);
    -webkit-mask-image: linear-gradient(to left, black 40%, transparent);
}
.event-card:not(.has-image)::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 80px;
    height: 80px;
    opacity: 0.06;
    pointer-events: none;
    z-index: 0;
    background: var(--card-accent, #6366f1);
}
/* Category-specific geometric shapes */
.event-card:not(.has-image)[data-cat="music"]::after { border-radius: 50%; }
.event-card:not(.has-image)[data-cat="sports"]::after { border-radius: 4px; transform: translateY(-50%) rotate(45deg); width: 60px; height: 60px; }
.event-card:not(.has-image)[data-cat="community"]::after { border-radius: 50% 0 50% 0; }
.event-card:not(.has-image)[data-cat="theater"]::after { border-radius: 50% 50% 0 0; width: 70px; height: 50px; }
.event-card:not(.has-image)[data-cat="arts"]::after { clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%); width: 70px; height: 70px; }
.event-card:not(.has-image)[data-cat="family"]::after { border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%; }
.event-card:not(.has-image)[data-cat="food-drink"]::after { border-radius: 50%; width: 50px; height: 50px; box-shadow: 25px -15px 0 0 var(--card-accent, #ef4444); opacity: 0.05; }
.event-card:not(.has-image)[data-cat="comedy"]::after { border-radius: 50%; width: 65px; height: 55px; }
.event-card:not(.has-image)[data-cat="nightlife"]::after { clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%); }
.event-card:not(.has-image)[data-cat="fitness"]::after { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); width: 70px; height: 70px; }
.event-card:not(.has-image)[data-cat="classical"]::after { border-radius: 50%; border: 3px solid var(--card-accent, #9333ea); background: transparent; opacity: 0.12; }
.event-card:not(.has-image)[data-cat="dance"]::after { border-radius: 0 50% 50% 0; width: 50px; height: 80px; }
.event-card:not(.has-image)[data-cat="festivals"]::after { clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%); }
.event-card:not(.has-image)[data-cat="outdoors"]::after { clip-path: polygon(50% 0%, 100% 100%, 0% 100%); width: 70px; height: 65px; }
.event-card:not(.has-image)[data-cat="charity"]::after { clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }

/* Ensure card content stays above the pattern */
.event-card:not(.has-image) .event-body { position: relative; z-index: 1; }

/* Fade-only images — logo/text backgrounds get heavy overlay, no poster thumbnail */
.event-card.fade-only .event-body {
    background: linear-gradient(to right, rgba(255,255,255,0.99) 60%, rgba(255,255,255,0.95) 80%, rgba(255,255,255,0.85) 100%);
}

/* Poster thumbnail */
.event-poster {
    width: 140px;
    min-height: 120px;
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
    border-radius: 0;
    margin: 0;
    box-shadow: none;
    position: relative;
    -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
    mask-image: linear-gradient(to left, black 50%, transparent 100%);
    z-index: 1;
}

/* Card body */
.event-card .event-body {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
}

/* Top row */
.event-top-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.event-time-badge {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text);
}
.event-time-badge small {
    font-weight: 500;
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
}
.event-time-badge.now-playing {
    background: #42b72a;
    color: #fff;
    font-weight: 700;
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Date range */
.event-date-row { margin-bottom: 2px; }
.event-date-range {
    font-size: 0.78rem;
    color: var(--text-tertiary);
    font-weight: 500;
}
.event-date-range i { margin-right: 3px; opacity: 0.7; }

/* Title */
h3.event-title {
    font-size: 0.97rem;
    font-weight: 600;
    margin-bottom: 2px;
    line-height: 1.3;
}
h3.event-title a { color: var(--text); }
h3.event-title a:hover { color: var(--primary); text-decoration: none; }

/* Venue */
.event-venue {
    font-size: 0.84rem;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.event-venue i { margin-right: 4px; color: var(--text-tertiary); font-size: 0.78rem; }
.event-venue .event-neighborhood {
    color: var(--text-tertiary);
    font-size: 0.78rem;
}
.event-venue .event-neighborhood::before {
    content: '·';
    margin: 0 4px;
}

/* Category badge */
.event-cat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    color: white;
}

/* Price */
.event-price {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.event-price.free {
    color: #42b72a;
    font-weight: 700;
}

/* Description */
.event-desc {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.4;
    position: relative;
    max-height: 2.8em;
    overflow: hidden;
    margin-bottom: 4px;
    cursor: pointer;
}
.event-desc.no-clamp { max-height: none; cursor: default; }
.event-desc.expanded { max-height: none; }
.event-desc .more-link {
    position: absolute;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, var(--bg-card) 30%);
    padding-left: 2em;
    color: var(--text-tertiary);
    font-weight: 500;
    font-size: 0.8rem;
}
.event-desc.expanded .more-link { display: none; }

.event-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

/* Expand toggle */
.expand-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    border: none;
    background: none;
    padding: 4px 0;
    font-family: var(--font);
}
.expand-toggle:hover { color: var(--primary); }
.expand-toggle i { font-size: 0.68rem; transition: transform 0.3s; }

/* Expanded content */
.event-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.event-card.expanded .event-expanded {
    max-height: 500px;
    transition: max-height 0.5s ease;
}
.event-expanded-inner {
    border-top: 1px solid var(--border-light);
    padding-top: 10px;
    margin-top: 8px;
}

.detail-row {
    font-size: 0.87rem;
    color: var(--text-secondary);
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.detail-row i {
    width: 16px;
    text-align: center;
    color: var(--text-tertiary);
    font-size: 0.8rem;
    flex-shrink: 0;
}
.detail-row strong {
    color: var(--text);
    font-weight: 600;
}
.free-text { color: #42b72a; font-weight: 700; }

.expanded-actions {
    display: flex;
    gap: 16px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border-light);
}
.action-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.action-link:hover { color: var(--primary); text-decoration: none; }
.action-link.primary { color: var(--primary); }

/* Share links in expanded card */
.share-links {
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
}
.share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border-light);
    background: var(--bg);
    color: var(--text-tertiary);
    font-size: 0.72rem;
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
    font-family: var(--font);
}
.share-btn:hover { color: var(--primary); border-color: var(--primary); background: #e7f3ff; text-decoration: none; }
.action-link i { font-size: 0.76rem; }

/* Featured */
.event-card.featured { border-left: 3px solid var(--accent); }
.featured-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: var(--accent);
    color: white;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Loading & end */
.loading, .end-message {
    text-align: center;
    padding: 24px;
    color: var(--text-tertiary);
    font-size: 0.88rem;
}
.loading i { margin-right: 6px; }
.end-message i { margin-right: 6px; color: #42b72a; }

/* ==================== ADMIN CONTROLS ==================== */
/* Image hover button — small camera icon, top-right of poster */
.admin-img-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 0.7rem;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
}
.event-card:hover .admin-img-btn { opacity: 1; }
.admin-img-btn:hover { background: var(--primary); }

/* Admin controls inside expanded section */
.admin-expanded {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed var(--border-light);
}
.admin-exp-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text-secondary);
    font-size: 0.75rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: all 0.15s;
}
.admin-exp-btn:hover { border-color: var(--primary); color: var(--primary); background: #e7f3ff; }
.admin-exp-btn.danger:hover { border-color: #dc2626; color: #dc2626; background: #fef2f2; }
.admin-exp-btn i { font-size: 0.65rem; }
.admin-id { font-size: 0.68rem; color: var(--text-tertiary); margin-left: auto; }

/* Admin edit modal */
.admin-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.admin-modal {
    background: var(--bg-card);
    border-radius: var(--radius);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
    padding: 20px 24px;
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    overflow-y: auto;
}
.admin-modal h3 { font-size: 1.1rem; margin-bottom: 14px; }
.admin-modal label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 3px; color: var(--text); }
.admin-modal input, .admin-modal select, .admin-modal textarea {
    width: 100%; padding: 8px 10px; border: 1px solid var(--border); border-radius: 6px;
    font-size: 0.9rem; font-family: var(--font); margin-bottom: 10px;
}
.admin-modal textarea { min-height: 60px; resize: vertical; }
.admin-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.admin-modal-actions button {
    padding: 8px 16px; border: none; border-radius: 6px; font-size: 0.88rem;
    font-weight: 600; font-family: var(--font); cursor: pointer;
}
.admin-modal-actions .save { background: var(--primary); color: white; }
.admin-modal-actions .save:hover { background: var(--primary-hover); }
.admin-modal-actions .cancel { background: var(--bg); color: var(--text-secondary); }
.admin-modal-actions .cancel:hover { background: #e4e6eb; }

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-secondary);
}
.empty-state i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--border);
    display: block;
}
.empty-state h3 { margin-bottom: 6px; color: var(--text); }

/* ==================== TABLET — 2 columns, right sidebar drops ==================== */
@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 240px 1fr;
    }
    .sidebar-right {
        display: none;
    }
    /* Show mobile calendar button + dropdown */
    .mobile-cal-btn { display: flex; align-items: center; justify-content: center; }
    .mobile-cal-dropdown { display: block; }
}

/* ==================== SMALL TABLET — single column ==================== */
@media (max-width: 768px) {
    .main-layout {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    .sidebar-left {
        position: static;
        max-height: none;
    }
    .sidebar-left { display: none; }
    /* Hot list scrolls horizontally */
    .hot-list { display: flex; overflow-x: auto; gap: 0; padding-bottom: 4px; scrollbar-width: none; }
    .hot-list::-webkit-scrollbar { display: none; }
    .hot-item { flex-direction: column; min-width: 110px; text-align: center; gap: 6px; }
    .hot-thumb { width: 52px; height: 52px; }
    .hot-title { white-space: normal; font-size: 0.78rem; }
    .hot-venue { display: none; }
}

/* ==================== PHONE ==================== */
@media (max-width: 640px) {
    .site-header { padding: 0 8px; }
    .logo span { display: none; }
    .logo i { font-size: 1.4rem; }
    .header-zip input { width: 40px; font-size: 0.82rem; }
    .header-zip { padding: 6px 8px; }
    .header-search input { font-size: 16px; padding: 10px 14px 10px 36px; }
    .main-layout { padding: 8px; }

    .date-bar { display: none; }
    .filter-row { flex-wrap: wrap; gap: 6px; }
    .filter-divider { display: none; }
    .filter-bar { display: contents; }
    .chip-hs .fa-star { display: none; }

    /* Mobile Hot Today button */
    .mobile-hot-btn {
        display: inline-flex;
        align-items: center;
        gap: 5px;
        padding: 6px 12px;
        border-radius: 20px;
        font-size: 0.84rem;
        font-weight: 600;
        white-space: nowrap;
        background: var(--bg-card);
        border: none;
        color: #dc2626;
        cursor: pointer;
        box-shadow: var(--shadow);
        font-family: var(--font);
    }
    .mobile-hot-btn:hover { background: #fef2f2; }
    .mobile-hot-btn.active { background: #dc2626; color: white; }
    .mobile-hot-btn i { font-size: 0.78rem; }

    /* Mobile Hot Today inline list */
    .mobile-hot-list {
        display: none;
        flex-direction: column;
        gap: 0;
        background: var(--bg-card);
        border-radius: 12px;
        box-shadow: var(--shadow);
        margin-bottom: 12px;
        overflow: hidden;
        position: relative;
    }
    .mobile-hot-list.open { display: flex; }
    .mobile-hot-list.preview {
        max-height: 180px;
        overflow: hidden;
    }
    .mobile-hot-list.preview::after {
        content: 'See all \25BE';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 60px;
        background: linear-gradient(transparent, var(--bg-card) 60%);
        display: flex;
        align-items: flex-end;
        justify-content: center;
        padding-bottom: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--text-tertiary);
        cursor: pointer;
        pointer-events: none;
    }
    .mobile-hot-list.expanded { max-height: none; }
    .mobile-hot-list.expanded::after { display: none; }
    .mobile-hot-header {
        padding: 8px 12px 4px;
        font-size: 0.78rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        color: #dc2626;
    }
    .mobile-hot-header i { margin-right: 4px; }
    .mobile-hot-list .hot-item {
        flex-direction: row;
        min-width: 0;
        text-align: left;
        padding: 8px 12px;
        border-bottom: 1px solid var(--border-light);
    }
    .mobile-hot-list .hot-item:last-child { border-bottom: none; }
    .mobile-hot-list .hot-thumb { width: 44px; height: 44px; flex-shrink: 0; }
    .mobile-hot-list .hot-venue { display: block; }

    .event-card .event-body { padding: 10px 12px; }
    h3.event-title { font-size: 0.9rem; }
    .event-card.has-image { background-image: none !important; }
    .event-card.has-image .event-body { background: none; }
    .event-card.has-image .event-poster {
        width: 140px;
        min-height: 90px;
        margin: 0;
        margin-left: -50px;
        border-radius: 0;
        box-shadow: none;
        z-index: 0;
        background-size: cover;
        background-position: center;
        -webkit-mask-image: linear-gradient(to left, black 50%, transparent 100%);
        mask-image: linear-gradient(to left, black 50%, transparent 100%);
    }
    .expanded-actions { flex-wrap: wrap; gap: 10px; }
}
