/* Login and sign-up, the Contact/FAQ/About pages and the moderators' Support tab (as in Simul).
   Uses Bulma's theme variables where it can, so it follows dark mode. */
:root { --app-primary: #eb6864; }

/* Login and sign-up */
.auth-page { display: flex; justify-content: center; padding: 2.5rem 1rem 3rem; }
.auth-card { width: 100%; max-width: 420px; padding: 2rem 2rem 1.5rem; }
.auth-logo { display: block; width: 64px; height: 64px; object-fit: contain; margin: 0 auto 0.75rem; }
.auth-wordmark { display: block; text-align: center; font-size: 2.6rem; line-height: 1.1; margin-bottom: 0.5rem; }
.auth-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-size: 0.9rem; }
.auth-perks { list-style: none; margin: 0; padding: 0; }
.auth-perks li { display: flex; align-items: center; gap: 0.6rem; padding: 0.3rem 0; }
.auth-perks .material-symbols-outlined { color: var(--app-primary); }
.auth-note { margin-top: 0.75rem; text-align: center; font-size: 0.8rem; opacity: 0.65; }
.auth-card hr { margin: 1.5rem 0 1rem; }

/* FAQ, About, Contact */
.info-page { max-width: 820px; margin: 0 auto; padding: 2rem 1rem 8rem; } /* clear of the footer */
.faq { padding: 0; margin-bottom: 0.75rem !important; }
.faq summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: 'expand_more'; font-family: 'Material Symbols Outlined'; font-size: 1.4rem; transition: transform 0.15s; }
.faq[open] summary::after { transform: rotate(180deg); }
.faq > p, .faq > div { padding: 0 1.25rem 1.1rem; }
.about-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 1.5rem; }
.about-hero img { width: 88px; height: 88px; object-fit: contain; flex: none; }
.about-text { font-size: 1.05rem; }
.about-app { height: 100%; }
.about-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: var(--app-primary); color: #fff; margin-bottom: 0.75rem; }

/* Moderation: support cases */
.support-case-row.is-current { outline: 2px solid var(--app-primary); }
.support-msg { padding: 0.6rem 0.8rem; border-radius: 10px; margin-bottom: 0.5rem; background: var(--bulma-background); }
.support-msg.is-staff { border-left: 3px solid var(--app-primary); }
.support-body { white-space: pre-wrap; overflow-wrap: anywhere; }

/* The control panels (MCP and ACP, js/mod.js) */
.cp-page { max-width: 1100px; margin: 0 auto; padding-bottom: 4rem; }
.cp-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.cp-head .title .material-symbols-outlined { vertical-align: -4px; }
.cp-tabs a .material-symbols-outlined { font-size: 1.15rem; }
.cp-card { margin-bottom: 1rem !important; }
.cp-avatar { width: 100%; height: 100%; object-fit: cover; }
.cp-avatar-sm { width: 40px; height: 40px; flex: none; }
.cp-quote { white-space: pre-wrap; overflow-wrap: anywhere; padding: 0.6rem 0.9rem; border-left: 3px solid var(--app-primary); background: var(--bulma-background); border-radius: 6px; }
.cp-subhead { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.65; margin-bottom: 0.35rem; }
.cp-reports { list-style: none; margin: 0; padding: 0; }
.cp-reports li { padding: 0.15rem 0; overflow-wrap: anywhere; }
.cp-row { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; margin-bottom: 0.5rem !important; }
.cp-row-main { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.cp-stats { height: 100%; }
.cp-stat { display: flex; justify-content: space-between; gap: 1rem; padding: 0.3rem 0; border-bottom: 1px solid var(--bulma-border-weak); }
.cp-stat:last-child { border-bottom: none; }
.cp-stat strong { font-variant-numeric: tabular-nums; }
.cp-when { white-space: nowrap; font-size: 0.85rem; }
.cp-tabs li:not(.is-active) a { color: var(--bulma-text); } /* Groupup fades inactive tabs elsewhere */

/* Navbar counts (notifications, unread messages): a small badge over the icon's top-right
   corner, so it takes no room of its own. */
.navbar .navbar-item:has(.nav-badge) {
    position: relative;
}
.navbar .nav-badge {
    position: absolute;
    top: 5px;
    left: calc(0.75rem + 13px);
    margin: 0;
    min-width: 1.1rem;
    height: 1.1rem;
    padding: 0 0.3rem;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
}
/* Groupup's navbar is the brand colour, so its badges are white. */
.navbar.is-primary .nav-badge {
    background: #fff;
    color: #eb6864;
}

/* --- Site messages (ACP) and the Changelogs page --- */
.site-compose .textarea { margin: 0.4rem 0 0.6rem; }
.site-compose-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 0.75rem; }
.site-compose-foot .checkbox { flex: 1 1 260px; }
.site-compose-foot .help { margin: 0; }
.site-msg-card { padding: 0.9rem 1rem; }
.site-msg-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; font-size: 0.85rem; opacity: 0.85; margin-bottom: 0.4rem; }
.site-msg-body, .changelog-body { white-space: pre-line; overflow-wrap: anywhere; }

/* The Changelogs page: a timeline */
.changelogs-head { margin-bottom: 1.5rem; }
.changelogs-head .title { display: flex; align-items: center; gap: 0.5rem; }
.changelogs-head .material-symbols-outlined { color: #eb6864; font-size: 32px; }
.changelog-list { position: relative; padding-left: 1.6rem; }
.changelog-list::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; border-radius: 2px; background: rgba(235, 104, 100, 0.3); }
.changelog-entry { position: relative; margin-bottom: 1rem; }
.changelog-dot { position: absolute; left: calc(-1.6rem + 1px); top: 1.1rem; width: 12px; height: 12px; border-radius: 50%; background: #eb6864; box-shadow: 0 0 0 4px rgba(235, 104, 100, 0.2); }
.changelog-card { margin-bottom: 0 !important; }
.changelog-meta { display: flex; align-items: baseline; gap: 0.6rem; margin-bottom: 0.5rem; }
.changelog-meta time { font-weight: 700; color: #eb6864; }
.changelog-delete { margin-left: auto; border: 0; background: transparent; color: inherit; opacity: 0.5; cursor: pointer; border-radius: 999px; padding: 2px 4px; }
.changelog-delete:hover { opacity: 1; color: #f14668; background: rgba(241, 70, 104, 0.12); }
.changelog-delete .material-symbols-outlined { font-size: 19px; }
.site-compose-foot .button { margin-left: auto; }

/* ==== Profile page (like Simul's) ======================================================= */
.room-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 38px;
    padding: 0 0.95rem 0 0.75rem;
    border: 1px solid rgba(127, 127, 127, 0.28);
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
}

.room-btn .material-symbols-outlined { font-size: 19px; }

.room-btn:hover {
    border-color: #eb6864;
    color: #eb6864;
    transform: translateY(-1px);
}

.room-btn.is-follow {
    border-color: #eb6864;
    background: #eb6864;
    color: #fff;
}

.room-btn.is-follow:hover { background: #e2504c; color: #fff; }

.room-btn.is-following {
    border-color: rgba(235, 104, 100, 0.55);
    color: #eb6864;
}

/* "Following" reads "Unfollow" on hover. */
.room-btn .room-btn-hover { display: none; }
.room-btn.is-following:hover {
    border-color: #e5484d;
    color: #e5484d;
    background: rgba(229, 72, 77, 0.08);
}
.room-btn.is-following:hover .room-btn-label { display: none; }
.room-btn.is-following:hover .room-btn-hover { display: inline; }
.room-btn:disabled { opacity: 0.6; cursor: progress; }

/* --- The profile header (users page) ------------------------------------------------------- */
/* A .box (the theme's background and shadow), opened up for the banner. */
.box.profile-card { padding: 0; margin-bottom: 1.25rem; border-radius: 18px; overflow: visible; }
.theme-dark .profile-banner {
    background:
        radial-gradient(circle at 15% 120%, rgba(235, 104, 100, 0.55), transparent 55%),
        radial-gradient(circle at 85% -20%, rgba(226, 80, 76, 0.35), transparent 50%),
        linear-gradient(120deg, #3a1a1a, #1f1212 55%, #2a1716);
}
.profile-banner {
    height: 120px;
    border-radius: 18px 18px 0 0;
    background:
        radial-gradient(circle at 15% 120%, rgba(235, 104, 100, 0.55), transparent 55%),
        radial-gradient(circle at 85% -20%, rgba(226, 80, 76, 0.3), transparent 50%),
        linear-gradient(120deg, #fbd3d1, #fdeceb 55%, #f9dcda);
}
.profile-body { padding: 0 1.5rem 1.25rem; }
.profile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-top: -48px; }
.profile-photo {
    flex: none;
    width: 112px; height: 112px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #fff; /* the card's own colour, so the photo looks cut out of it */
    background: #fff;
    box-shadow: 0 0 0 2px rgba(235, 104, 100, 0.55);
}
.profile-photo, .theme-dark .profile-photo { border-color: var(--bulma-box-background-color, #fff); background: var(--bulma-box-background-color, #fff); } /* the card's own colour */
.profile-actions { padding-bottom: 0.4rem; min-width: 0; }
.profile-actions-row { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0.45rem; }
.room-btn.is-icon { width: 38px; padding: 0; justify-content: center; }
.room-btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.profile-more .dropdown-item { display: flex; align-items: center; gap: 0.5rem; }
.profile-who { margin-top: 0.75rem; }
.profile-name { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 1.6rem; font-weight: 800; line-height: 1.2; }
.profile-role { padding: 0.1rem 0.55rem; border-radius: 999px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.02em; }
.profile-role.is-admin { background: rgba(235, 104, 100, 0.18); color: #eb6864; }
.profile-role.is-mod { background: rgba(62, 142, 208, 0.2); color: #3e8ed0; }
.profile-role.is-influencer { background: rgba(155, 89, 182, 0.18); color: #9b59b6; }
.profile-handle { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; opacity: 0.7; margin-top: 0.1rem; }
.profile-follows-you { padding: 0.05rem 0.5rem; border-radius: 6px; background: rgba(127, 127, 127, 0.18); font-size: 0.75rem; font-weight: 600; }
.profile-bio { margin-top: 0.8rem; font-size: 1rem; line-height: 1.45; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin-top: 0.75rem; font-size: 0.9rem; opacity: 0.75; }
.profile-meta > * { display: inline-flex; align-items: center; gap: 0.3rem; color: inherit; }
.profile-meta a:hover { color: #eb6864; opacity: 1; }
.profile-meta .material-symbols-outlined { font-size: 18px; }
.profile-stats { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px solid rgba(127, 127, 127, 0.18); font-size: 0.95rem; }
.profile-stats > * { color: inherit; opacity: 0.8; }
.profile-stats strong { color: inherit; font-weight: 800; margin-right: 0.15rem; }
.profile-stats a:hover { color: #eb6864; opacity: 1; }
.profile-stats a:hover strong { color: #eb6864; }
.profile-blocked { display: flex; align-items: center; gap: 0.35rem; margin-top: 0.75rem; color: #f14668; font-size: 0.9rem; }
@media (max-width: 600px) {
    .profile-banner { height: 90px; }
    .profile-body { padding: 0 1rem 1rem; }
    .profile-top { flex-direction: column; align-items: flex-start; margin-top: -42px; gap: 0.6rem; }
    .profile-photo { width: 88px; height: 88px; border-width: 4px; }
    .profile-actions { padding-bottom: 0; }
    .profile-actions-row { justify-content: flex-start; }
    .profile-name { font-size: 1.35rem; }
}

@media (max-width: 768px) { .room-btn { flex: 1 1 auto; justify-content: center; } }

/* Their events, below the card. */
.profile-events { margin-bottom: 3rem; }
.profile-tabs { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 1rem; border-radius: 999px; background: rgba(127, 127, 127, 0.12); }
.profile-tabs button {
    display: inline-flex; align-items: center; gap: 0.3rem; height: 34px; padding: 0 1rem; border: 0; border-radius: 999px;
    background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; opacity: 0.75;
}
.profile-tabs button .material-symbols-outlined { font-size: 19px; }
.profile-tabs button.is-on { background: var(--bulma-scheme-main); color: #eb6864; opacity: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.profile-empty { opacity: 0.65; }
.profile-event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0.85rem; }
.profile-event {
    display: flex; gap: 0.8rem; align-items: center; padding: 0.7rem; border-radius: 14px;
    border: 1px solid rgba(127, 127, 127, 0.18); background: var(--bulma-scheme-main); color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.profile-event:hover { border-color: rgba(235, 104, 100, 0.55); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); color: inherit; }
.profile-event-photo { flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.15); }
.profile-event-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-event-photo img.is-icon { width: 70%; height: 70%; object-fit: contain; }
.profile-event-text { display: flex; flex-direction: column; min-width: 0; gap: 0.1rem; }
.profile-event-text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-event-text small { opacity: 0.7; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile-event-where { display: inline-flex; align-items: center; gap: 0.2rem; }
.profile-event-where .material-symbols-outlined { font-size: 15px; }
@media (max-width: 600px) { .profile-photo-wrap { align-self: flex-start; } }

/* ==== Search (like Simul's): the navbar bar and the page ================================== */
/* --- Navbar search ------------------------------------------------------------------------ */
.nav-search { display: flex; align-items: center; }
.navbar-item.nav-search { padding-top: 0; padding-bottom: 0; }
.nav-search-input {
    width: 240px;
    height: 36px;
    padding: 0 0.9rem;
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-right: 0;
    border-radius: 999px 0 0 999px;
    background: rgba(127, 127, 127, 0.1);
    color: inherit;
    font: inherit;
    font-size: 14px;
    outline: none;
    transition: width 0.2s, border-color 0.15s, background-color 0.15s;
}
.nav-search-input::placeholder { color: inherit; opacity: 0.55; }
.nav-search-input::-webkit-search-cancel-button { cursor: pointer; }
.nav-search-input:focus { border-color: #fff; background: rgba(255, 255, 255, 0.24); width: 300px; }
.nav-search-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 36px;
    border: 1px solid rgba(127, 127, 127, 0.3);
    border-radius: 0 999px 999px 0;
    background: rgba(127, 127, 127, 0.1);
    color: inherit;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.nav-search-btn .material-symbols-outlined { font-size: 21px; }
.nav-search-btn:hover, .nav-search-input:focus + .nav-search-btn { background: #fff; border-color: #fff; color: #eb6864; }

/* Phones and tablets: a full-width bar dropped under the navbar, over the page. */
.nav-search-drop {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 40;
    padding: 0.6rem 16px;
    background-color: #eb6864; /* the navbar's red */
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.25);
}
.nav-search-drop .nav-search { width: 100%; max-width: 640px; margin: 0 auto; }
.nav-search-drop .nav-search-input, .nav-search-drop .nav-search-input:focus { flex: 1; width: auto; min-width: 0; height: 42px; font-size: 16px; /* 16px: iOS doesn't zoom in */ }
.nav-search-drop .nav-search-btn { height: 42px; width: 52px; }
.navbar-item.nav-search-toggle.is-active { color: #fff; }

/* Tight phones: five icons and the burger next to the logo. */
@media (max-width: 400px) {
    .navbar .navbar-brand > .navbar-item.nav-move1 { padding-left: 0.5rem; padding-right: 0.5rem; }
}
@media (min-width: 1024px) and (max-width: 1215px) {
    .nav-search-input { width: 170px; }
    .nav-search-input:focus { width: 210px; }
}/* On GroupUp's red bar: white, see-through fields. */
.navbar.is-primary .nav-search-input, .nav-search-drop .nav-search-input { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.16); color: #fff; }
.navbar.is-primary .nav-search-input::placeholder, .nav-search-drop .nav-search-input::placeholder { color: #fff; opacity: 0.8; }
.navbar.is-primary .nav-search-btn, .nav-search-drop .nav-search-btn { border-color: rgba(255, 255, 255, 0.45); background: rgba(255, 255, 255, 0.16); color: #fff; }
.navbar.is-primary .navbar-start { align-items: center; }
@media (min-width: 1024px) { .nav-search-toggle, .nav-search-drop { display: none !important; } }
@media (max-width: 1023px) { .navbar-menu .nav-search { display: none; } }

/* People cards */
.search-person { display: flex; gap: 0.75rem; padding: 0.85rem; margin-bottom: 0.6rem !important; }
.search-person-photo { flex: none; }
.search-person-photo img { width: 52px; height: 52px; object-fit: cover; display: block; }
.search-person-main { flex: 1; min-width: 0; }
.search-person-head { display: flex; align-items: flex-start; gap: 0.4rem; }
.search-person-name { display: flex; flex-direction: column; min-width: 0; color: inherit; line-height: 1.25; margin-right: auto; }
.search-person-name strong, .search-person-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-person-name small { opacity: 0.7; }
.search-person-name:hover strong { text-decoration: underline; }
.search-person-head .tag { flex: none; margin-top: 2px; }
.search-person-bio { margin: 0.4rem 0 0; font-size: 0.9rem; white-space: pre-line; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.search-person-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.room-btn.is-small { height: 32px; padding: 0 0.75rem 0 0.6rem; font-size: 13px; }
.room-btn.is-small .material-symbols-outlined { font-size: 17px; }
.search-person-photo { position: relative; }
.search-person-photo .online-dot { right: 0; bottom: 0; }

/* The page's own box: one rounded field with its button. */
.search-box {
    display: flex; align-items: center; gap: 0.5rem; height: 52px; padding: 0 6px 0 16px; margin-bottom: 0.9rem;
    border-radius: 999px; border: 1px solid rgba(127, 127, 127, 0.3); background: var(--bulma-scheme-main);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-box:focus-within { border-color: #eb6864; box-shadow: 0 0 0 3px rgba(235, 104, 100, 0.18); }
.search-box > .material-symbols-outlined { color: #eb6864; }
.search-box-input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: 1.05rem; color: var(--bulma-text-strong); }
.search-box .button { border-radius: 999px; height: 40px; font-weight: 700; }

.search-where { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 1.25rem; }
.search-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(127, 127, 127, 0.12); }
.search-seg button {
    display: inline-flex; align-items: center; gap: 0.3rem; height: 32px; padding: 0 0.85rem; border: 0; border-radius: 999px;
    background: none; color: inherit; font: inherit; font-size: 0.88rem; font-weight: 600; cursor: pointer; opacity: 0.75;
}
.search-seg button .material-symbols-outlined { font-size: 18px; }
.search-seg button.is-on { background: var(--bulma-scheme-main); color: #eb6864; opacity: 1; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12); }
.search-place { width: 240px; height: 38px; border-radius: 999px; }
.search-miles { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; opacity: 0.85; }
.search-miles select { width: auto; height: 38px; border-radius: 999px; padding: 0 0.8rem; }
.search-hint { opacity: 0.7; }

.search-event-list { display: flex; flex-direction: column; gap: 0.7rem; padding-bottom: 3rem; }
.search-event {
    display: flex; gap: 0.9rem; align-items: center; padding: 0.75rem; border-radius: 14px;
    border: 1px solid rgba(127, 127, 127, 0.18); background: var(--bulma-scheme-main); color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.search-event:hover { border-color: rgba(235, 104, 100, 0.55); transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08); color: inherit; }
.search-event-photo { flex: none; width: 88px; height: 88px; border-radius: 12px; overflow: hidden; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1px rgba(127, 127, 127, 0.15); }
.search-event-photo img { width: 100%; height: 100%; object-fit: cover; }
.search-event-photo img.is-icon { width: 66%; height: 66%; object-fit: contain; }
.search-event-text { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.search-event-text strong { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-event-text small { display: inline-flex; align-items: center; gap: 0.25rem; opacity: 0.75; overflow: hidden; white-space: nowrap; }
.search-event-text small > span { overflow: hidden; text-overflow: ellipsis; }
.search-event-text small .material-symbols-outlined { font-size: 16px; flex: none; }
.search-event-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.search-event-tags > span { display: inline-flex; align-items: center; gap: 0.15rem; padding: 0 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; line-height: 1.6; }
.search-event-tags .material-symbols-outlined { font-size: 14px; }
.search-event-cat { background: rgba(127, 127, 127, 0.14); }
.search-event-now { background: rgba(50, 222, 132, 0.18); color: #1fa463; }
.search-event-sponsored { background: rgba(235, 104, 100, 0.14); color: #eb6864; }
.search-event-live { background: rgba(145, 70, 255, 0.15); color: #9146ff; }
@media (max-width: 600px) {
    .search-event-photo { width: 64px; height: 64px; }
    .search-place { width: 100%; }
}
@media (max-width: 768px) { .gu-search { padding: 0 0.75rem; } }

/* The navbar's search bar is a navbar-item: no dark hover box behind it (custom.css darkens items). */
.navbar .navbar-item.nav-search:hover, .navbar .navbar-item.nav-search:focus-within, .navbar .navbar-item.nav-search:active { background-color: transparent; }
.navbar.is-primary .nav-search-input:hover:not(:focus), .navbar.is-primary .nav-search-input:hover:not(:focus) + .nav-search-btn { background: rgba(255, 255, 255, 0.22); }

/* Address autocomplete (js/address.js) on the create and edit event forms. */
.address-box { position: relative; }
.address-list {
    position: absolute; z-index: 30; top: calc(100% + 4px); left: 0; right: 0; margin: 0; padding: 4px; list-style: none;
    border: 1px solid rgba(127, 127, 127, 0.25); border-radius: 12px; background: var(--bulma-scheme-main);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.address-list li[role="option"] { display: flex; align-items: flex-start; gap: 0.55rem; padding: 0.5rem 0.6rem; border-radius: 8px; cursor: pointer; }
.address-list li[role="option"].is-active { background: rgba(235, 104, 100, 0.1); }
.address-list li .material-symbols-outlined { color: #eb6864; font-size: 20px; margin-top: 1px; }
.address-list li > span { display: flex; flex-direction: column; min-width: 0; }
.address-list strong { font-weight: 600; color: var(--bulma-text-strong); }
.address-list small { font-size: 0.8rem; opacity: 0.7; }
.address-credit { padding: 0.25rem 0.6rem 0.1rem; font-size: 0.7rem; opacity: 0.55; text-align: right; }
.address-spin {
    position: absolute; right: 12px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
    border: 2px solid rgba(235, 104, 100, 0.3); border-top-color: #eb6864; border-radius: 50%; animation: address-spin 0.7s linear infinite;
}
@keyframes address-spin { to { transform: rotate(360deg); } }

/* ==== An event's page (js/event_page.js) ================================================== */
.ev-page { padding-bottom: 3rem; }
.box.ev-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; padding: 1.25rem; border-radius: 18px; }
.ev-gallery { display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.ev-photo-main { aspect-ratio: 4 / 3; border-radius: 14px; overflow: hidden; background: rgba(127, 127, 127, 0.1); display: flex; align-items: center; justify-content: center; }
.ev-photo-main img { width: 100%; height: 100%; object-fit: cover; }
.ev-photo-main img.is-icon { width: 40%; height: 40%; object-fit: contain; }
.ev-thumbs { display: flex; gap: 0.5rem; }
.ev-thumb { width: 72px; height: 54px; padding: 0; border: 2px solid transparent; border-radius: 9px; overflow: hidden; cursor: pointer; background: none; opacity: 0.7; transition: opacity 0.15s, border-color 0.15s; }
.ev-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ev-thumb.is-on, .ev-thumb:hover { opacity: 1; border-color: #eb6864; }
.ev-head { display: flex; flex-direction: column; gap: 0.55rem; min-width: 0; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.ev-tag { display: inline-flex; align-items: center; gap: 0.25rem; height: 26px; padding: 0 0.6rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; }
.ev-tag .material-symbols-outlined { font-size: 16px; }
.ev-tag.is-cat { padding-left: 0.2rem; background: rgba(127, 127, 127, 0.13); }
.ev-tag.is-cat img { width: 22px; height: 22px; border-radius: 50%; background: #fff; }
.ev-tag.is-now { background: rgba(50, 222, 132, 0.18); color: #1fa463; }
.ev-tag.is-sponsored { background: rgba(235, 104, 100, 0.14); color: #eb6864; }
.ev-tag.is-live { background: rgba(145, 70, 255, 0.15); color: #9146ff; }
.ev-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; color: var(--bulma-text-strong); }
.ev-line { display: flex; align-items: flex-start; gap: 0.45rem; font-size: 0.98rem; }
.ev-line .material-symbols-outlined { color: #eb6864; font-size: 21px; flex: none; }
.ev-line a { color: inherit; }
.ev-line a:hover { color: #eb6864; text-decoration: underline; }
.ev-host { display: inline-flex; align-items: center; gap: 0.6rem; align-self: flex-start; margin-top: 0.2rem; padding: 0.35rem 0.9rem 0.35rem 0.35rem; border-radius: 999px; background: rgba(127, 127, 127, 0.08); color: inherit; }
.ev-host:hover { background: rgba(235, 104, 100, 0.1); color: inherit; }
.ev-host img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.ev-host > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.ev-host small { font-size: 0.72rem; opacity: 0.65; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 0.35rem; }
.ev-stats { display: flex; flex-wrap: wrap; gap: 0.3rem 1.3rem; margin-top: auto; padding-top: 0.85rem; border-top: 1px solid rgba(127, 127, 127, 0.18); font-size: 0.95rem; }
.ev-stats > * { color: inherit; opacity: 0.8; }
.ev-stats strong { color: inherit; font-weight: 800; margin-right: 0.1rem; }
.ev-stats a:hover, .ev-stats a:hover strong { color: #eb6864; opacity: 1; }

.ev-columns { margin-top: 0.25rem; }
.box.ev-card { border-radius: 16px; padding: 1.15rem 1.25rem; }
.ev-card-title { font-size: 1.1rem; font-weight: 800; margin-bottom: 0.7rem; color: var(--bulma-text-strong); }
.ev-card-title small { font-weight: 600; opacity: 0.6; }
.ev-description { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.55; }
.ev-details { display: flex; flex-direction: column; gap: 0.8rem; }
.ev-details li { display: flex; align-items: flex-start; gap: 0.7rem; }
.ev-details li > .material-symbols-outlined { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 10px; background: rgba(235, 104, 100, 0.12); color: #eb6864; font-size: 20px; }
.ev-details li > span { display: flex; flex-direction: column; min-width: 0; overflow-wrap: anywhere; }
.ev-details small { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.6; }
.box.ev-map-card { padding: 0; overflow: hidden; }
.ev-map { display: block; width: 100%; height: 280px; border: 0; }
.ev-map-link { display: flex; align-items: center; justify-content: center; gap: 0.3rem; padding: 0.6rem; font-size: 0.85rem; font-weight: 600; border-top: 1px solid rgba(127, 127, 127, 0.15); }
.ev-map-link .material-symbols-outlined { font-size: 17px; }
.ev-card-pad { padding: 1rem 1.25rem 0; }
.ev-weather { display: block; width: 100%; height: 300px; border: 0; }

.ev-empty { opacity: 0.65; }
.ev-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.ev-comment-new { display: flex; gap: 0.7rem; margin-bottom: 1rem; }
.ev-comment-new form { flex: 1; display: flex; flex-direction: column; align-items: flex-end; gap: 0.5rem; }
.ev-comment-new .textarea { border-radius: 12px; min-height: 0; }
.ev-comment-new .button { border-radius: 999px; font-weight: 700; }
.ev-comment { display: flex; gap: 0.7rem; padding: 0.75rem 0; border-top: 1px solid rgba(127, 127, 127, 0.12); }
.ev-comment-main { flex: 1; min-width: 0; }
.ev-comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.ev-comment-head a { color: inherit; }
.ev-comment-head small { opacity: 0.6; }
.ev-comment-text { white-space: pre-line; overflow-wrap: anywhere; margin-top: 0.15rem; }
.ev-comment-edit { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.3rem; }
.ev-comment-edit .textarea { flex: 1 1 100%; }
.ev-comment-tools { display: flex; gap: 0.1rem; opacity: 0; transition: opacity 0.15s; }
.ev-comment:hover .ev-comment-tools, .ev-comment:focus-within .ev-comment-tools { opacity: 1; }
@media (hover: none) { .ev-comment-tools { opacity: 0.7; } }
.ev-comment-tools button { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; opacity: 0.7; }
.ev-comment-tools button:hover { opacity: 1; background: rgba(127, 127, 127, 0.15); }
.ev-comment-tools .material-symbols-outlined { font-size: 18px; }

.ev-people-scroll { max-height: 60vh; overflow-y: auto; }
.ev-person { display: flex; align-items: center; gap: 0.7rem; height: 64px; padding: 0 0.75rem; border-radius: 10px; color: inherit; }
a.ev-person:hover { background: rgba(127, 127, 127, 0.1); color: inherit; }
.ev-person img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ev-live-icon { color: #9146ff; }
.ev-stream-text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ev-stream-who { font-size: 0.8rem; opacity: 0.7; }

@media (max-width: 900px) {
    .box.ev-hero { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .ev-page { padding: 0 0.5rem 3rem; }
    .ev-map { height: 240px; }
}
/* The groupies / streamers modal: a solid card, not see-through over the page. */
.ev-page .tabbed-modal { max-width: 460px; padding: 0.75rem; border-radius: 16px; background: var(--bulma-scheme-main); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.3); }
.ev-page .tabbed-modal .tabs a { color: var(--bulma-text); }
.ev-page .tabbed-modal .tabs li.is-active a { color: #eb6864; border-bottom-color: #eb6864; }
.ev-page .ev-person strong { color: var(--bulma-text-strong); }

/* ==== All events (/events, js/events_page.js) ============================================= */
.evl-page { padding-bottom: 3rem; }
.evl-head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.evl-sub { opacity: 0.7; }
.evl-tools { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.evl-cats { display: flex; gap: 0.4rem; overflow-x: auto; padding-bottom: 0.5rem; margin-bottom: 1rem; scrollbar-width: thin; }
.evl-cats .map-cat { flex: none; }
.evl-all { padding-left: 0.4rem; }
.evl-empty, .evl-more { opacity: 0.65; text-align: center; padding: 1rem 0; }
.evl-grid { position: relative; }
.ev-grid-card {
    position: absolute; height: 302px; display: flex; flex-direction: column; overflow: hidden;
    border-radius: 16px; border: 1px solid rgba(127, 127, 127, 0.18); background: var(--bulma-scheme-main); color: inherit;
    transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.ev-grid-card:hover { border-color: rgba(235, 104, 100, 0.55); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.1); color: inherit; }
.ev-grid-photo { position: relative; flex: none; height: 160px; background: rgba(127, 127, 127, 0.1); display: flex; align-items: center; justify-content: center; }
.ev-grid-photo img { width: 100%; height: 100%; object-fit: cover; }
.ev-grid-photo img.is-icon { width: 76px; height: 76px; object-fit: contain; }
.ev-grid-badges { position: absolute; left: 8px; top: 8px; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.ev-grid-badges > span { display: inline-flex; align-items: center; gap: 0.15rem; padding: 0 0.5rem; border-radius: 999px; font-size: 0.72rem; font-weight: 700; line-height: 1.7; backdrop-filter: blur(6px); background-color: rgba(255, 255, 255, 0.88) !important; }
.ev-grid-badges .material-symbols-outlined { font-size: 14px; }
.ev-grid-text { flex: 1; display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0.9rem; min-height: 0; }
.ev-grid-when { color: #eb6864; font-weight: 700; font-size: 0.8rem; }
.ev-grid-text strong { font-size: 1.05rem; line-height: 1.25; color: var(--bulma-text-strong); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-grid-where { display: inline-flex; align-items: center; gap: 0.2rem; opacity: 0.7; font-size: 0.82rem; white-space: nowrap; overflow: hidden; }
.ev-grid-where span { overflow: hidden; text-overflow: ellipsis; }
.ev-grid-where .material-symbols-outlined { font-size: 15px; }
.ev-grid-foot { display: flex; align-items: center; gap: 0.5rem; margin-top: auto; font-size: 0.78rem; }
.ev-grid-foot .search-event-cat { padding: 0 0.5rem; border-radius: 999px; font-weight: 700; line-height: 1.6; }
.ev-grid-going { opacity: 0.7; font-weight: 600; }
@media (max-width: 768px) { .evl-page { padding: 0 0.5rem 3rem; } }

/* ==== Notifications (js/notifications.js), like Simul's ==================================== */
.nt-page { max-width: 720px; margin: 0 auto; padding-bottom: 3rem; }
.nt-empty { display: flex; align-items: center; gap: 0.4rem; opacity: 0.65; }
.nt-list { display: flex; flex-direction: column; gap: 0.5rem; }
.nt-row {
    position: relative; display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.85rem 1rem; border-radius: 14px;
    border: 1px solid rgba(127, 127, 127, 0.16); background: var(--bulma-scheme-main); color: inherit;
    transition: background-color 0.15s, border-color 0.15s;
}
.nt-row:hover { border-color: rgba(235, 104, 100, 0.45); color: inherit; }
.nt-row.is-unread { background: rgba(235, 104, 100, 0.07); border-color: rgba(235, 104, 100, 0.3); box-shadow: inset 3px 0 0 #eb6864; }
.nt-avatars { position: relative; flex: none; display: flex; width: 64px; height: 44px; }
.nt-avatars img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--bulma-scheme-main); }
.nt-avatars img + img { margin-left: -22px; }
.nt-icon { position: absolute; left: 24px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: #eb6864; box-shadow: 0 0 0 2px var(--bulma-scheme-main); }
.nt-icon .material-symbols-outlined { font-size: 15px; }
.nt-icon.is-follow { background: #3e8ed0; }
.nt-icon.is-stream { background: #9146ff; }
.nt-icon.is-event { background: #1fa463; }
.nt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.nt-text { line-height: 1.4; overflow-wrap: anywhere; }
.nt-text strong { color: var(--bulma-text-strong); }
.nt-others { border: 0; background: none; padding: 0 0.2rem; font: inherit; font-size: 0.85rem; font-weight: 600; color: #eb6864; cursor: pointer; }
.nt-others:hover { text-decoration: underline; }
.nt-when { font-size: 0.8rem; opacity: 0.6; }
.nt-event { display: flex; gap: 0.65rem; align-items: center; margin-top: 0.45rem; padding: 0.5rem; border-radius: 10px; background: rgba(127, 127, 127, 0.08); }
.nt-event img { flex: none; width: 52px; height: 52px; border-radius: 8px; object-fit: cover; background: #fff; }
.nt-event img.is-icon { object-fit: contain; padding: 6px; }
.nt-event > span { display: flex; flex-direction: column; min-width: 0; }
.nt-event strong, .nt-event small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nt-event small { font-size: 0.8rem; opacity: 0.7; }
.nt-dot { position: absolute; right: 12px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: #eb6864; }
.nt-people { max-width: 420px; }
.nt-people .box { max-height: 70vh; overflow-y: auto; border-radius: 16px; padding: 0.5rem; }
.nt-person-name { display: flex; flex-direction: column; line-height: 1.25; }
.nt-person-name small { opacity: 0.65; }
@media (max-width: 768px) { .nt-page { padding: 0 0.5rem 3rem; } }

/* Bulma's own "primary" is green-teal: buttons it styles itself (disabled ones, focus rings,
   light variants) showed green. GroupUp's red, as Bulma's primary colour (#eb6864). */
:root {
    --bulma-primary-h: 2deg;
    --bulma-primary-s: 77%;
    --bulma-primary-l: 66%;
    --bulma-primary-invert-l: 100%;
}

/* ==== The map's event card (an event's marker, clicked) =================================== */
.map-event-modal { z-index: 1000; }
.map-event-modal .modal-background { background: rgba(10, 10, 10, 0.45) !important; }
.map-event {
    position: relative; z-index: 1; width: min(460px, calc(100vw - 2rem)); max-height: calc(100vh - 6rem); overflow-y: auto;
    border-radius: 20px; background: var(--bulma-scheme-main); color: var(--bulma-text);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35); overscroll-behavior: contain;
}
.map-event-close {
    position: absolute; z-index: 2; top: 10px; right: 10px; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; cursor: pointer; backdrop-filter: blur(6px);
}
.map-event-close:hover { background: rgba(0, 0, 0, 0.75); }
.map-event-photo { position: relative; height: 200px; background: rgba(127, 127, 127, 0.1); display: flex; align-items: center; justify-content: center; }
.map-event-photo img { width: 100%; height: 100%; object-fit: cover; }
.map-event-photo img.is-icon { width: 96px; height: 96px; object-fit: contain; }
.map-event-body { display: flex; flex-direction: column; gap: 0.55rem; padding: 1rem 1.2rem 1.2rem; }
.map-event-body .ev-tag { align-self: flex-start; }
.map-event-title { font-size: 1.45rem; font-weight: 800; line-height: 1.2; color: var(--bulma-text-strong); overflow-wrap: anywhere; }
.map-event-desc { white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; opacity: 0.85; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.map-event-host { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; flex-wrap: wrap; }
.map-event-host .ev-host { margin-top: 0; }
.map-event-going { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; opacity: 0.8; }
.map-event-going .material-symbols-outlined { color: #eb6864; font-size: 20px; }
.map-event-contact { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.map-event-contact a { display: inline-flex; align-items: center; gap: 0.3rem; max-width: 100%; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(127, 127, 127, 0.1); font-size: 0.85rem; font-weight: 600; color: inherit; }
.map-event-contact a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-event-contact a:hover { background: rgba(235, 104, 100, 0.12); color: #eb6864; }
.map-event-contact .material-symbols-outlined { font-size: 17px; color: #eb6864; }
.map-event-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.35rem; }
.map-event-actions .button { border-radius: 999px; font-weight: 700; gap: 0.35rem; height: 38px; }
.map-event-actions .button .material-symbols-outlined { font-size: 19px; }
.map-event-missing { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 2.5rem 1.5rem; text-align: center; opacity: 0.8; }
.map-event-missing .material-symbols-outlined { font-size: 40px; color: #eb6864; }
/* Phones: a sheet from the bottom of the screen. */
@media (max-width: 600px) {
    .map-event-modal { justify-content: flex-end; }
    .map-event { width: 100vw; max-height: 85vh; border-radius: 20px 20px 0 0; padding-bottom: env(safe-area-inset-bottom); }
    .map-event-photo { height: 170px; }
}
