/* ══════════════════════════════════════════════════════════════
   FreeIL — Main Stylesheet
══════════════════════════════════════════════════════════════ */

/* ── Reset & base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html, body { max-width: 100vw; width: 100%; }
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: #f5f7fa;
    color: #1a1a2e;
    padding-top: 60px;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior-x: none;
    touch-action: pan-y;
    overscroll-behavior: none;
    overscroll-behavior-y: none;
}

/* ── Header ── */
header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    background: #0f172a;
    color: white;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 60px;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
    justify-content: space-between;
    position: relative;
}
.header-logo { display: flex; align-items: center; }
header h1 {
    font-size: 1.5rem; font-weight: 800; margin: 0;
    line-height: 1; letter-spacing: -0.03em; color: white;
}
header h1 span { color: #00d4aa; }

.event-counter {
    position: absolute;
    left: 50%; transform: translateX(-50%);
    background: rgba(0,212,170,0.08);
    color: rgba(0,212,170,0.85);
    padding: 5px 13px; border-radius: 20px;
    font-size: 0.75rem; font-weight: 600;
    border: 1px solid rgba(0,212,170,0.15);
    white-space: nowrap; pointer-events: none;
}

.header-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }

#lang-toggle {
    background: transparent; border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7); padding: 0 10px; height: 34px;
    flex-shrink: 0; border-radius: 7px; cursor: pointer;
    font-size: 0.75rem; font-weight: 500; touch-action: manipulation;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    transition: all 0.2s;
}
#lang-toggle:hover { background: rgba(255,255,255,0.07); color: white; }
#lang-toggle svg { flex-shrink: 0; }
#lang-text { font-size: 0.75rem; }

.auth-btn {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600; cursor: pointer;
    transition: all 0.2s; touch-action: manipulation;
    text-decoration: none; white-space: nowrap;
    border: none; flex-shrink: 0;
}
.auth-btn.login {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.9);
}
.auth-btn.login:hover { background: rgba(255,255,255,0.13); color: white; }
.auth-btn.register { background: #00d4aa; color: #0f172a; }
.auth-btn.register:hover { background: #00bfa0; transform: translateY(-1px); }

.auth-btn-add {
    display: inline-flex; align-items: center; gap: 6px;
    height: 36px; padding: 0 14px;
    background: rgba(0,212,170,0.12); border: 1px solid rgba(0,212,170,0.25);
    color: #00d4aa; border-radius: 8px;
    font-size: 0.8rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s; text-decoration: none; white-space: nowrap; flex-shrink: 0;
}
.auth-btn-add:hover { background: rgba(0,212,170,0.2); }

@media (max-width: 479px) {
    .event-counter { display: none; }
    .header-actions { gap: 6px; }
    .auth-btn, .auth-btn-add { padding: 0 10px; font-size: 0.75rem; height: 34px; }
    #lang-toggle { padding: 0 8px; height: 34px; }
}
@media (max-width: 359px) {
    #lang-text { display: none; }
    #lang-toggle { padding: 0 7px; min-width: 32px; }
    .auth-btn, .auth-btn-add { padding: 0 8px; }
    .header-actions { gap: 5px; }
}

/* User avatar + dropdown */
.user-menu-wrapper { position: relative; }
.user-avatar-btn {
    display: flex; align-items: center; gap: 8px;
    background: transparent; border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px; padding: 0 10px; height: 38px;
    cursor: pointer; transition: all 0.2s; color: white;
}
.user-avatar-btn:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }
.user-avatar {
    width: 26px; height: 26px; border-radius: 50%;
    background: #00d4aa; color: #0f172a;
    font-size: 0.7rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-name-short {
    font-size: 0.78rem; font-weight: 600; color: rgba(255,255,255,0.9);
    max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
@media (max-width: 400px) { .user-name-short { display: none; } }
.user-dropdown {
    display: none; position: absolute; right: 0; left: auto; top: calc(100% + 8px);
    background: white; border: 1px solid #e2e8f0; border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.14); overflow: hidden; min-width: 180px; z-index: 2000;
}
.user-dropdown.open { display: block; }
.user-dropdown-header { padding: 12px 16px 10px; border-bottom: 1px solid #f1f5f9; }
.user-dropdown-email { font-size: 0.72rem; color: #64748b; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown a, .user-dropdown button {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 11px 16px; background: transparent; border: none;
    text-decoration: none; font-size: 0.83rem; font-weight: 500;
    color: #1e293b; cursor: pointer; transition: background 0.15s;
    text-align: right; font-family: inherit;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: #f8fafc; }
.user-dropdown .dropdown-signout { color: #dc2626; }
.user-dropdown .dropdown-signout:hover { background: #fef2f2; }
.user-dropdown svg { flex-shrink: 0; opacity: 0.65; }

/* ── Hero Section ── */
.hero-section { background: #0f172a; padding: 2.5rem 1rem 2rem; text-align: center; }
.hero-title {
    font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800;
    color: white; letter-spacing: -0.03em; line-height: 1.2; margin-bottom: 0.5rem;
}
.hero-title span { color: #00d4aa; }
.hero-tagline { color: rgba(255,255,255,0.5); font-size: 0.85rem; margin: 0 0 1.75rem; font-weight: 400; }

.hero-search { max-width: 560px; margin: 0 auto; position: relative; }
.hero-search .search-icon {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    color: rgba(255,255,255,0.35); pointer-events: none; display: flex; align-items: center;
}
.hero-search .search-input {
    width: 100%; height: 52px;
    background: rgba(255,255,255,0.07); border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 14px; padding: 0 48px 0 48px; font-size: 1rem;
    color: white; font-family: inherit; outline: none; transition: border-color 0.2s, background 0.2s;
}
.hero-search .search-input::placeholder { color: rgba(255,255,255,0.35); }
.hero-search .search-input:focus { border-color: rgba(0,212,170,0.5); background: rgba(255,255,255,0.1); }
.hero-search .search-clear {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    background: transparent; border: none; cursor: pointer;
    color: rgba(255,255,255,0.4); display: none; align-items: center; padding: 4px;
}
.hero-search .search-clear.visible { display: flex; }

/* ── Post-login section ── */
.post-login-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    border-bottom: 1px solid rgba(0,212,170,0.15); padding: 0.75rem 1.25rem;
}
.post-login-inner {
    max-width: 900px; margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
.post-login-greeting { color: white; }
.post-login-greeting h3 { font-size: 1.15rem; font-weight: 700; margin: 0 0 4px; }
.post-login-greeting h3 span { color: #00d4aa; }
.post-login-greeting p { color: rgba(255,255,255,0.5); font-size: 0.82rem; margin: 0; }
.post-login-actions { display: flex; gap: 10px; flex-shrink: 0; }
.post-login-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 0 14px; height: 34px; border-radius: 8px;
    font-size: 0.8rem; font-weight: 600; text-decoration: none; transition: opacity 0.15s;
}
.post-login-btn:hover { opacity: 0.85; }
.post-login-btn.primary { background: #00d4aa; color: #0f172a; }
.post-login-btn.secondary { background: rgba(255,255,255,0.08); color: white; border: 1px solid rgba(255,255,255,0.15); }
@media (max-width: 480px) { .post-login-inner { flex-direction: column; align-items: flex-start; } }

/* ── Filters ── */
.filters-container {
    position: sticky; top: 60px; z-index: 100;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); padding: 0.4rem 0;
    border-bottom: 1px solid rgba(0,0,0,0.06); width: 100%; max-width: 100vw;
}
.filter-header { display: flex; align-items: center; justify-content: space-between; padding: 0 1rem; margin-bottom: 0.3rem; }
.filter-header-left { display: flex; align-items: center; gap: 10px; }
.filter-title { font-size: 0.85rem; font-weight: 600; color: #1e293b; }
.live-counter {
    display: inline-flex; align-items: center; padding: 4px 12px;
    background: #ecfdf5; border-radius: 20px; font-size: 0.75rem;
    font-weight: 600; color: #059669; transition: transform 0.2s ease;
}
.live-counter.pulse { animation: counterPulse 0.3s ease; }
@keyframes counterPulse { 0% { transform: scale(1); } 50% { transform: scale(1.08); } 100% { transform: scale(1); } }
.reset-filters {
    display: none; align-items: center; gap: 4px; padding: 5px 10px;
    background: #fef2f2; border: none; border-radius: 16px;
    color: #dc2626; font-size: 0.7rem; font-weight: 500; cursor: pointer; transition: all 0.2s;
}
.reset-filters.visible { display: inline-flex; }
.reset-filters:hover { background: #fee2e2; }
.filter-row { position: relative; margin-bottom: 0.25rem; padding: 0 1rem; overflow: hidden; }
.filter-row:last-child { margin-bottom: 0; }
.filter-label { font-size: 0.65rem; color: #94a3b8; text-transform: uppercase; font-weight: 700; letter-spacing: 0.05em; margin-bottom: 2px; }
.filter-bar {
    display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch; scrollbar-width: none; -ms-overflow-style: none;
    margin: 0 -1rem; padding: 2px 1rem;
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-row::after {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 32px;
    background: linear-gradient(to right, rgba(255,255,255,0.97), transparent);
    pointer-events: none; z-index: 1;
}
.filter-row::before {
    content: ''; position: absolute; right: 0; top: 0; bottom: 0; width: 32px;
    background: linear-gradient(to left, rgba(255,255,255,0.97), transparent);
    pointer-events: none; z-index: 1;
}

.filter-chip {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1px solid #e2e8f0; background: #f8fafc;
    padding: 8px 14px; border-radius: 24px;
    font-size: 0.8rem; font-weight: 500; color: #475569;
    cursor: pointer; transition: all 0.2s ease; touch-action: manipulation;
    white-space: nowrap; flex-shrink: 0;
}
.filter-chip:hover { background: #f1f5f9; border-color: #cbd5e1; }
.filter-chip.active { background: #00d4aa; color: white; border-color: #00d4aa; transform: scale(1.02); }
.filter-chip .chip-icon { font-size: 0.9rem; line-height: 1; }
.filter-chip .fav-star { font-size: 0.75rem; margin-right: 4px; cursor: pointer; transition: all 0.2s ease; opacity: 0.4; }
.filter-chip .fav-star:hover { transform: scale(1.2); opacity: 1; }
.filter-chip .fav-star.active { color: #f59e0b; opacity: 1; }
.filter-chip.favorited { border-color: #fbbf24; background: #fffbeb; }
.filter-chip.favorited.active { background: #00d4aa; border-color: #00d4aa; }
.filter-chip.date-chip.active   { background: #0f172a; border-color: #0f172a; }
.filter-chip.region-chip.active { background: #7c3aed; border-color: #7c3aed; }
.filter-chip.city-chip.active   { background: #0369a1; border-color: #0369a1; }

/* ── Event List ── */
.event-list-container { padding: 1rem; background: #fff; width: 100%; max-width: 100vw; }

.event-card {
    position: relative; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem;
    cursor: pointer; transition: all 0.25s ease;
    width: 100%; max-width: 100%; overflow: hidden;
    word-wrap: break-word; overflow-wrap: break-word;
}
.event-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.08); border-color: #cbd5e1; transform: translateY(-2px); }

/* ── Private card enhancements ── */
.private-card { box-shadow: 0 4px 16px rgba(0,0,0,0.08); }
.private-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.13); }
.card-img-wrap { position: relative; }
.badge-free-img {
    position: absolute; top: 10px; right: 10px;
    background: #22c55e; color: white;
    font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
    padding: 3px 10px; border-radius: 20px; pointer-events: none;
}
.card-top-left {
    position: absolute; top: 10px; left: 10px; z-index: 2;
    display: flex; align-items: center; gap: 6px;
}
.pcount-overlay {
    background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
    border-radius: 20px; padding: 4px 9px;
    font-size: 0.75rem; font-weight: 600; color: #334155;
    display: flex; align-items: center; gap: 4px;
}
.fav-overlay {
    position: static; z-index: 2;
    width: 34px; height: 34px; border-radius: 50%; border: none;
    background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.18s; color: #94a3b8;
}
.fav-overlay:hover { background: white; transform: scale(1.1); }
.fav-overlay.active { color: #ef4444; }
.fav-overlay svg { width: 16px; height: 16px; }
.private-card-title { font-size: 1.05rem; font-weight: 700; margin: 0.4rem 0 0.6rem; color: #1e293b; line-height: 1.4; }
.location-meta { gap: 4px; }
.navigate-inline {
    display: inline-flex; align-items: center; justify-content: center;
    width: 22px; height: 22px; border-radius: 50%; border: none;
    background: #dbeafe; color: #2563eb; cursor: pointer; padding: 0;
    flex-shrink: 0; transition: all 0.15s; margin-right: 2px;
}
.navigate-inline:hover { background: #3b82f6; color: white; }
.navigate-inline svg { width: 11px; height: 11px; }
.private-footer {
    display: flex; align-items: center; justify-content: center;
    padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px solid #f1f5f9;
    gap: 8px; flex-wrap: wrap;
}

.card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 0.6rem; }
.tag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 20px; font-size: 0.7rem; font-weight: 500; }
.tag-type { background: #f0fdf4; color: #15803d; }
.tag-city { background: #f0f9ff; color: #0369a1; }

.card-title-row { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 0.75rem; }
.event-card h3 { font-size: 1.05rem; font-weight: 700; margin: 0; color: #1e293b; line-height: 1.4; flex: 1; }
.badge-free { background: #ecfdf5; color: #059669; font-size: 0.65rem; font-weight: 700; padding: 4px 8px; border-radius: 6px; white-space: nowrap; flex-shrink: 0; }

.card-meta { display: flex; flex-direction: column; gap: 6px; margin-bottom: 0.75rem; }
.meta-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: #64748b; }
.meta-icon { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }

.card-desc { font-size: 0.85rem; color: #475569; line-height: 1.5; margin-bottom: 1rem; }

/* ── Card footer — single flat row, everything 36px tall ── */
.card-footer {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    padding-top: 0.75rem; margin-top: 0.75rem; border-top: 1px solid #f1f5f9;
}
/* spacer pushes left-group to start, right-group to end */
.card-footer .footer-spacer { flex: 1; }
.action-buttons { display: flex; align-items: center; gap: 8px; }

/* Base: 36px circular icon button */
.action-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    border: none; cursor: pointer; transition: all 0.18s ease;
    touch-action: manipulation; flex-shrink: 0;
}
.action-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.action-btn.share   { background: #f1f5f9; color: #64748b; }
.action-btn.share:hover { background: #e2e8f0; color: #334155; transform: scale(1.08); }
.action-btn.navigate { background: #dbeafe; color: #2563eb; }
.action-btn.navigate:hover { background: #3b82f6; color: white; }
.action-btn.source  { background: #f1f5f9; color: #64748b; }
.action-btn.source:hover { background: #e2e8f0; color: #334155; }
.action-btn.add-cal { background: #f1f5f9; color: #64748b; }
.action-btn.add-cal:hover { background: #dcfce7; color: #16a34a; transform: scale(1.08); }

/* Pill counters — comments & participants share one style */
.action-btn.comment-toggle-btn,
.participants-badge {
    width: auto; height: 36px; border-radius: 20px; padding: 0 10px; gap: 5px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    font-size: 0.76rem; font-weight: 700; color: #64748b;
    font-family: inherit; flex-shrink: 0;
}
.action-btn.comment-toggle-btn { cursor: pointer; transition: all 0.18s; }
.action-btn.comment-toggle-btn:hover { background: #eff6ff; border-color: #bfdbfe; color: #3b82f6; }
.participants-badge {
    display: inline-flex; align-items: center; cursor: default;
}

/* Heart — same circle style */
.favorite-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
    background: #fef2f2; border: none; cursor: pointer;
    font-size: 1.05rem; color: #fca5a5; transition: all 0.18s ease;
}
.favorite-btn:hover { background: #fee2e2; transform: scale(1.08); }
.favorite-btn.active { color: #ef4444; background: #fee2e2; }
.favorite-btn.pop { animation: heartPop 0.3s ease; }
@keyframes heartPop { 0%,100% { transform: scale(1); } 50% { transform: scale(1.25); } }

#loading { text-align: center; padding: 2rem; color: #888; }

/* ── Desktop enhancements ── */
@media (min-width: 768px) {
    body { padding-top: 68px; }
    .header-inner { padding: 0.9rem 2rem; }
    header h1 { font-size: 1.8rem; }
    .event-counter { padding: 7px 16px; font-size: 0.85rem; }
    #lang-toggle { padding: 0 16px; height: 40px; }
    .filters-container { padding: 0.875rem 0; top: 68px; }
    .filter-header { padding: 0 2rem; }
    .filter-row { margin-bottom: 0.5rem; }
    .filter-row::after, .filter-row::before { display: none; }
    .filter-bar { flex-wrap: wrap; overflow-x: visible; padding: 2px 2rem; }
    .filter-chip { padding: 8px 16px; font-size: 0.82rem; }
    .event-list-container { padding: 1rem 2rem; }
    .event-card { padding: 1.5rem; }
    .event-card h3 { font-size: 1.1rem; }
}

/* ── Desktop Tab Bar ── */
.desktop-tabs {
    display: flex; gap: 8px; padding: 12px 1rem;
    background: #fff; border-bottom: 2px solid #f0f4f8;
    position: sticky; top: 0; z-index: 50;
}
.dtab {
    flex: 1; padding: 10px 16px; border: 2px solid #e2e8f0;
    border-radius: 12px; background: #f8fafc; color: #64748b;
    font-size: 0.9rem; font-weight: 700; cursor: pointer;
    transition: all 0.2s ease; font-family: inherit;
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.dtab.active { background: #1a1a2e; color: #fff; border-color: #1a1a2e; box-shadow: 0 4px 12px rgba(26,26,46,0.25); }
.dtab:not(.active):hover { border-color: #1a1a2e; color: #1a1a2e; }

/* ── Bottom Nav (mobile only) ── */
.bottom-nav { display: none; }
@media (max-width: 768px) {
    .desktop-tabs { display: none; }
    .bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
        background: rgba(255,255,255,0.88); backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px); border-top: 1px solid rgba(0,0,0,0.08);
        padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -4px 24px rgba(0,0,0,0.07);
    }
    .event-list-container, #view-social, #view-map {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }
}
.bnav-btn {
    flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; padding: 8px 4px; background: none; border: none; cursor: pointer;
    color: #94a3b8; font-family: inherit; font-size: 0.68rem; font-weight: 600;
    transition: color 0.2s; position: relative; text-align: center; line-height: 1;
}
.bnav-btn svg { transition: transform 0.2s; }
.bnav-btn.active { color: #00d4aa; }
.bnav-btn.active svg { transform: translateY(-1px); }

/* ── Social Feed ── */
#view-social { display: none; }
.social-feed { padding: 1rem; max-width: 680px; margin: 0 auto; }

/* section headings */
.feed-section-title {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.06em; color: #94a3b8;
    padding: 0.75rem 0 0.4rem; margin-bottom: 0;
}

/* recommended badge on feed cards */
.badge-recommended {
    display: inline-block; font-size: 0.68rem; font-weight: 700;
    background: linear-gradient(90deg, #fef9c3, #fef3c7);
    color: #92400e; border-radius: 20px; padding: 3px 10px;
    margin: 8px 16px 0; border: 1px solid #fde68a;
}

.comment-count { font-weight: 700; }

/* comment section */
.comment-section {
    border-top: 1px solid #f1f5f9; padding: 12px 16px;
    background: #fafbfc; border-radius: 0 0 14px 14px;
    animation: slideDown 0.2s ease;
}
@keyframes slideDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.comment-list { margin-bottom: 12px; }
.comment-item {
    display: flex; gap: 10px; align-items: flex-start;
    margin-bottom: 10px;
}
.comment-avatar {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #00d4aa; font-size: 0.65rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
}
.comment-body-wrap { flex: 1; min-width: 0; }
.comment-author { font-size: 0.75rem; font-weight: 700; color: #1e293b; }
.comment-text { font-size: 0.82rem; color: #334155; margin: 2px 0; line-height: 1.4; }
.comment-time { font-size: 0.68rem; color: #94a3b8; }
.comment-input-row { display: flex; gap: 8px; }
.comment-input {
    flex: 1; border: 1px solid #e2e8f0; border-radius: 20px;
    padding: 8px 14px; font-size: 16px; font-family: inherit;
    outline: none; transition: border-color 0.15s; background: #fff;
}
.comment-input:focus { border-color: #00d4aa; }
.comment-submit-btn {
    background: #00d4aa; color: #0f172a; border: none; border-radius: 20px;
    padding: 8px 16px; font-size: 0.8rem; font-weight: 700;
    cursor: pointer; font-family: inherit; flex-shrink: 0; transition: opacity 0.15s;
}
.comment-submit-btn:hover { opacity: 0.85; }
.comment-loading, .comment-empty { font-size: 0.8rem; color: #94a3b8; padding: 8px 0; }

/* compact activity items */
.social-item {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 12px; background: #fff; border: 1px solid #e2e8f0;
    border-radius: 14px; margin-bottom: 8px;
}
.social-icon { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.social-icon.reg-icon { background: #eff6ff; }
.social-icon.comment-icon { background: #f5f3ff; }
.social-icon.new-icon { background: #f0fdf4; }
.social-content p { margin: 0 0 3px; font-size: 0.85rem; color: #1e293b; line-height: 1.4; }
.social-comment-preview { color: #64748b !important; font-style: italic; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.social-time { font-size: 0.73rem; color: #94a3b8; }
.social-item-clickable { cursor: pointer; transition: background 0.15s, border-color 0.15s; }
.social-item-clickable:hover { background: #f8fafc; border-color: #c7d2fe; }
.social-empty { text-align: center; color: #94a3b8; padding: 3rem 1rem; }
.social-loading { text-align: center; color: #94a3b8; padding: 2rem; }

/* ── Map View ── */
#view-map { display: none; }
.map-controls {
    display: flex; align-items: center; gap: 12px; padding: 10px 16px;
    background: #fff; border-bottom: 1px solid #e2e8f0;
    font-size: 0.88rem; font-weight: 600; color: #334155;
}
.map-controls input[type=range] { flex: 1; accent-color: #00d4aa; cursor: pointer; }
#map-el { height: calc(100vh - 190px); min-height: 360px; }
@media (max-width: 768px) { #map-el { height: calc(100vh - 200px); } }
.leaflet-container { font-family: inherit; }
.map-user-dot {
    width: 16px; height: 16px; background: #00d4aa; border: 3px solid #fff;
    border-radius: 50%; box-shadow: 0 2px 8px rgba(0,212,170,0.6);
}

/* ── Card thumbnail ── */
.card-thumb { width: 100%; height: 180px; object-fit: cover; border-radius: 12px 12px 0 0; display: block; }
.event-card.has-thumb { padding: 0; overflow: hidden; }
.event-card.has-thumb .card-body { padding: 1rem 1.25rem; }

/* participants-badge base styles defined with .comment-toggle-btn above */

/* ── Register button — primary action, wider pill ── */
.btn-register {
    display: inline-flex; align-items: center; justify-content: center;
    height: 36px; padding: 0 20px; min-width: 88px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white; border: none; border-radius: 20px;
    font-size: 0.82rem; font-weight: 700;
    font-family: inherit; cursor: pointer; transition: all 0.18s;
    flex-shrink: 0;
}
.btn-register:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102,126,234,0.4); }
.btn-register.registered { background: #e2e8f0; color: #64748b; cursor: default; }
.btn-register.registered:hover { transform: none; box-shadow: none; }

/* ══════════════════════════════════════════════════════════════
   ONBOARDING OVERLAY
══════════════════════════════════════════════════════════════ */
#ob-overlay {
    position: fixed; inset: 0; z-index: 9999;
    overflow: hidden; display: flex; flex-direction: column;
}
#ob-overlay.ob-hidden { display: none; }
.ob-slides-wrap { flex: 1; overflow: hidden; position: relative; }
.ob-slides {
    display: flex; height: 100%; width: 100%; direction: ltr;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1); will-change: transform;
}
.ob-slide {
    min-width: 100%; height: 100%; display: flex; flex-direction: column;
    align-items: center; justify-content: center; direction: rtl;
    padding: 2.5rem 2rem 1.5rem; text-align: center; color: #fff;
}
.ob-slide:nth-child(1) { background: linear-gradient(160deg,#0f2027 0%,#1a3a4a 60%,#203a43 100%); }
.ob-slide:nth-child(2) { background: linear-gradient(160deg,#1a1a2e 0%,#2d1b69 100%); }
.ob-slide:nth-child(3) { background: linear-gradient(160deg,#0d2137 0%,#1a3557 100%); }
.ob-slide:nth-child(4) { background: linear-gradient(160deg,#0f0c29 0%,#302b63 60%,#1a1a2e 100%); }

.ob-illustration { width: 130px; height: 130px; margin: 0 auto 1.5rem; animation: obPop 0.5s cubic-bezier(0.34,1.56,0.64,1) both; }
.ob-illustration svg { width: 100%; height: 100%; }
@keyframes obPop { from { transform: scale(0.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.ob-title { font-size: 1.9rem; font-weight: 800; margin: 0 0 0.75rem; line-height: 1.2; letter-spacing: -0.5px; }
.ob-subtitle { font-size: 1rem; line-height: 1.6; opacity: 0.82; max-width: 320px; margin: 0 auto 1.75rem; }
.ob-features { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.ob-features li {
    display: flex; align-items: center; gap: 10px;
    background: rgba(255,255,255,0.1); border-radius: 12px; padding: 10px 16px;
    font-size: 0.92rem; font-weight: 600; backdrop-filter: blur(4px);
}
.ob-features li span.ob-fi { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; }
.ob-features li span.ob-fi svg { width: 18px; height: 18px; stroke: #00d4aa; }

.ob-cta-btns { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; }
.ob-cta-primary {
    background: #00d4aa; color: #0f172a; border: none; border-radius: 14px;
    padding: 15px 24px; font-size: 1rem; font-weight: 800; cursor: pointer; font-family: inherit;
    transition: transform 0.15s, box-shadow 0.15s; box-shadow: 0 4px 20px rgba(0,212,170,0.4);
}
.ob-cta-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(0,212,170,0.5); }
.ob-cta-location {
    background: rgba(255,255,255,0.12); color: #fff;
    border: 1.5px solid rgba(255,255,255,0.25); border-radius: 14px;
    padding: 13px 24px; font-size: 0.92rem; font-weight: 700;
    cursor: pointer; font-family: inherit; backdrop-filter: blur(6px); transition: background 0.2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.ob-cta-location:hover { background: rgba(255,255,255,0.2); }

.ob-controls {
    background: rgba(0,0,0,0.35); backdrop-filter: blur(8px);
    padding: 16px 24px calc(16px + env(safe-area-inset-bottom));
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.ob-skip { background: none; border: none; color: rgba(255,255,255,0.55); font-size: 0.88rem; font-weight: 600; cursor: pointer; font-family: inherit; padding: 8px 4px; }
.ob-skip:hover { color: #fff; }
.ob-dots { display: flex; gap: 7px; }
.ob-dot { width: 8px; height: 8px; border-radius: 8px; background: rgba(255,255,255,0.3); transition: all 0.3s ease; }
.ob-dot.active { background: #00d4aa; width: 22px; }
.ob-next {
    background: #00d4aa; color: #0f172a; border: none; border-radius: 50px;
    padding: 10px 22px; font-size: 0.92rem; font-weight: 800; cursor: pointer; font-family: inherit;
    display: flex; align-items: center; gap: 6px; transition: transform 0.15s, box-shadow 0.15s;
}
.ob-next:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,212,170,0.45); }
.ob-next.ob-last { background: #fff; color: #1a1a2e; }

/* ══════════════════════════════════════════════════════════════
   SEO FOOTER
══════════════════════════════════════════════════════════════ */
.seo-footer {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: white; padding: 2rem 1rem calc(1rem + 72px + env(safe-area-inset-bottom)); margin-top: 2rem;
}
@media (min-width: 768px) {
    .seo-footer { padding-bottom: 1rem; }
}
.footer-content {
    max-width: 1200px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr; gap: 1.5rem;
}
.footer-section h2 { font-size: 1.2rem; margin-bottom: 0.5rem; color: #00d4aa; }
.footer-section h3 { font-size: 1rem; margin-bottom: 0.5rem; color: #00d4aa; }
.footer-section p { font-size: 0.85rem; opacity: 0.9; line-height: 1.5; }
.footer-section nav { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.footer-section nav a {
    color: white; text-decoration: none; font-size: 0.8rem;
    padding: 4px 10px; background: rgba(255,255,255,0.1);
    border-radius: 12px; transition: background 0.2s;
}
.footer-section nav a:hover { background: rgba(0,212,170,0.3); }
.footer-bottom {
    text-align: center; margin-top: 1.5rem; padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.75rem; opacity: 0.7;
}
@media (min-width: 768px) {
    .footer-content { grid-template-columns: 2fr 1fr 1fr; }
    .seo-footer { padding: 2rem; }
}

/* ── FAB (kept hidden but available) ── */
.fab-add-event {
    position: fixed; bottom: 24px; left: 24px;
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: #0f172a; border: none; border-radius: 56px;
    padding: 14px 22px; font-size: 1rem; font-weight: 700; font-family: inherit;
    cursor: pointer; box-shadow: 0 4px 20px rgba(0,212,170,0.45);
    display: none; align-items: center; gap: 8px; z-index: 100;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.fab-add-event:hover { transform: translateY(-2px) scale(1.03); box-shadow: 0 6px 24px rgba(0,212,170,0.55); }
