/* 

style.css
 */
:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-muted: #f1f5f9;
  --nav: #12233a;
  --nav-deep: #0b1e30;
  --primary: #14b8a6;
  --primary-dark: #0f766e;
  --primary-soft: #ccfbf1;
  --heading: #111827;
  --text: #4b5563;
  --muted: #64748b;
  --border: #e2e8f0;
  --danger: #dc2626;
  --warning: #d97706;
  --success: #059669;
  --info: #2563eb;
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, .06);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, .10);
  --shadow-lg: 0 28px 70px rgba(15, 23, 42, .18);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --space-1: .375rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4.5rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html {
    height: 100%;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, system-ui, sans-serif;
    line-height: 1.6;
}
main {
    flex: 1;
}
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { color: var(--nav); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0 0 .75rem; color: var(--heading); font-family: Manrope, Inter, sans-serif; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 3vw, 3rem); }
h2 { font-size: clamp(1.75rem, 2vw, 2rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }
[hidden] { display: none !important; }
.container { width: min(calc(100% - 2rem), var(--container)); margin-inline: auto; }
.narrow { max-width: 780px; }
.section { padding: var(--space-7) 0; }
.section-tight { padding: var(--space-5) 0 var(--space-7); }
.section-muted { background: var(--surface-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: 9999; background: white; padding: .75rem 1rem; border-radius: 8px; box-shadow: var(--shadow-md); }
.skip-link:focus { top: 1rem; }
.block { display: block; }

/* Header and navigation */
.site-header { position: sticky; top: 0; z-index: 1000; background: var(--nav); color: white; box-shadow: 0 4px 18px rgba(15, 23, 42, .18); }
.nav-wrap { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .7rem; color: white; font-family: Manrope, sans-serif; font-size: 1.35rem; font-weight: 800; }
.brand:hover { color: white; }
.brand img { border-radius: 11px; }
.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav > a:not(.button), .nav-form .button { color: #dbeafe; padding: .65rem .75rem; border-radius: 9px; font-size: .92rem; font-weight: 600; }
.main-nav > a:not(.button):hover, .main-nav > a.active { color: white; background: rgba(255,255,255,.1); }
.main-nav .button { margin-left: .3rem; }
.nav-form { display: inline; }
.nav-toggle { display: none; border: 0; background: transparent; color: white; font-size: 1.3rem; padding: .6rem; }
.nav-icon-link { position: relative; }
.notification-count { position: absolute; top: 0; right: 0; display: grid; place-items: center; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 10px; background: var(--danger); color: white; font-size: .65rem; }

/* Reusable UI */
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .75rem; color: var(--primary-dark); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow-light { color: #99f6e4; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid transparent; border-radius: 11px; padding: .78rem 1.15rem; font-weight: 750; line-height: 1.2; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--primary); color: #062a28; box-shadow: 0 8px 20px rgba(20,184,166,.22); }
.button-primary:hover { background: #2dd4bf; color: #062a28; box-shadow: 0 12px 25px rgba(20,184,166,.3); }
.button-secondary { background: var(--nav); color: white; }
.button-secondary:hover { color: white; background: var(--nav-deep); }
.button-outline { border-color: var(--border); background: white; color: var(--nav); }
.button-outline:hover { border-color: #94a3b8; background: #f8fafc; }
.button-ghost { background: transparent; color: inherit; }
.button-danger-outline { border-color: #fecaca; background: white; color: var(--danger); }
.button-danger-outline:hover { background: #fef2f2; color: #991b1b; }
.button-small { padding: .56rem .85rem; font-size: .88rem; }
.button-full { width: 100%; }
.text-link { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; }
.icon-button { display: inline-grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 10px; background: white; color: var(--nav); }
.icon-button:hover, .icon-button.active { background: var(--primary-soft); color: var(--primary-dark); border-color: #5eead4; }
.badge-row, .tag-row { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge, .tag { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .65rem; border-radius: 999px; background: #e2e8f0; color: var(--nav); font-size: .75rem; font-weight: 750; text-transform: capitalize; }
.badge-light { background: rgba(255,255,255,.9); color: var(--nav-deep); backdrop-filter: blur(8px); }
.badge-featured { background: #fef3c7; color: #92400e; }
.status { display: inline-flex; align-items: center; width: fit-content; padding: .32rem .62rem; border-radius: 999px; font-size: .72rem; font-weight: 800; text-transform: capitalize; white-space: nowrap; }
.status-draft { background: #e2e8f0; color: #475569; }
.status-open, .status-active, .status-reviewing { background: #dbeafe; color: #1d4ed8; }
.status-threshold_reached, .status-confirmed, .status-resolved { background: #ccfbf1; color: #0f766e; }
.status-completed { background: #dcfce7; color: #166534; }
.status-cancelled, .status-suspended, .status-closed, .status-dismissed { background: #fee2e2; color: #991b1b; }
.trust-pill { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .55rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary-dark); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.progress-block { margin-top: 1rem; }
.progress-label, .progress-summary { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; color: var(--muted); font-size: .78rem; }
.progress-track { height: 9px; overflow: hidden; background: #e2e8f0; border-radius: 999px; }
.progress-track span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), #2dd4bf); transition: width .5s ease; }
.progress-large { height: 13px; margin: 1rem 0 .6rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.section-heading p { margin: 0; max-width: 700px; }
.section-heading.small { align-items: center; margin-bottom: 1.25rem; }
.section-heading.small h2 { font-size: 1.45rem; }

/* Alerts */
.flash-stack { position: fixed; top: 88px; left: 50%; transform: translateX(-50%); z-index: 1300; display: grid; gap: .6rem; pointer-events: none; }
.flash { min-width: min(480px, calc(100vw - 2rem)); display: flex; align-items: center; gap: .75rem; padding: .85rem 1rem; border: 1px solid; border-radius: 12px; background: white; box-shadow: var(--shadow-lg); pointer-events: auto; }
.flash-success { border-color: #86efac; color: #166534; }
.flash-error { border-color: #fca5a5; color: #991b1b; }
.flash button { margin-left: auto; border: 0; background: transparent; color: inherit; }
.form-errors { margin-bottom: 1.25rem; padding: 1rem 1.15rem; border: 1px solid #fca5a5; border-radius: 12px; background: #fef2f2; color: #991b1b; }
.form-errors ul { margin-bottom: 0; }

/* Map-first homepage */
.map-hero { position: relative; height: min(760px, calc(100vh - 74px)); min-height: 600px; overflow: hidden; }
.event-map { position: absolute; inset: 0; z-index: 1; background: #dbeafe; }
.map-panel { position: absolute; z-index: 500; top: 3.25rem; left: max(1rem, calc((100vw - var(--container)) / 2)); width: min(520px, calc(100% - 2rem)); padding: 2rem; border: 1px solid rgba(255,255,255,.7); border-radius: var(--radius-lg); background: rgba(255,255,255,.94); box-shadow: var(--shadow-lg); backdrop-filter: blur(16px); }
.map-panel p { font-size: 1.08rem; }
.map-search { position: relative; display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .45rem; border: 1px solid var(--border); border-radius: 14px; background: white; }
.map-search > i { margin-left: .6rem; color: var(--muted); }
.map-search input { min-width: 0; flex: 1; border: 0; outline: 0; padding: .6rem .2rem; }
.map-legend { display: flex; align-items: center; gap: 1rem; margin-top: 1rem; font-size: .8rem; font-weight: 650; }
.map-legend a { margin-left: auto; }
.legend-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .25rem; }
.dot-open { background: #2563eb; }.dot-confirmed { background: var(--primary); }
.map-controls-card { position: absolute; z-index: 500; right: max(1rem, calc((100vw - var(--container)) / 2)); bottom: 2rem; width: 260px; padding: 1rem; }
.map-controls-card p { margin: .25rem 0 .75rem; font-size: .82rem; }
.coordinate-marker { display: grid; place-items: center; width: 38px; height: 38px; border: 4px solid white; border-radius: 50% 50% 50% 12px; background: var(--primary); box-shadow: 0 8px 18px rgba(15,23,42,.28); transform: rotate(-45deg); color: var(--nav); }
.coordinate-marker i { transform: rotate(45deg); }
.coordinate-marker.open { background: #60a5fa; }
.map-popup { min-width: 220px; }
.map-popup img { width: 100%; height: 110px; object-fit: cover; border-radius: 9px; margin-bottom: .65rem; }
.map-popup h3 { font-size: 1rem; margin-bottom: .3rem; }
.map-popup p { font-size: .8rem; margin-bottom: .6rem; }
.map-popup .progress-track { margin: .4rem 0; }

/* Cards and sections */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-card { min-height: 132px; display: grid; grid-template-columns: auto 1fr; align-content: center; column-gap: .9rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.stat-card i { grid-row: span 2; align-self: center; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); }
.stat-card strong { color: var(--heading); font-family: Manrope; font-size: 1.35rem; }
.stat-card span { color: var(--muted); font-size: .85rem; }
.stat-card-accent { color: white; border-color: var(--nav); background: var(--nav); }
.stat-card-accent strong, .stat-card-accent span { color: white; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.event-card { overflow: hidden; border: 1px solid var(--border); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); transition: transform .22s ease, box-shadow .22s ease; }
.event-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.event-card-image { position: relative; min-height: 230px; display: flex; flex-direction: column; justify-content: space-between; padding: 1rem; background-size: cover; background-position: center; color: white; overflow: hidden; }
.event-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 50%, rgba(20,184,166,.22)); opacity: 0; transition: opacity .25s ease; }
.event-card:hover .event-card-image::after { opacity: 1; }
.event-card-image > * { position: relative; z-index: 1; }
.event-card-image .badge-featured { position: absolute; right: 1rem; top: 1rem; }
.event-card-image .eyebrow { color: #99f6e4; }
.event-card-image h3 { color: white; font-size: 1.55rem; }
.event-card-body { padding: 1.15rem; }
.event-meta { display: grid; gap: .35rem; margin-bottom: .75rem; color: var(--muted); font-size: .78rem; }
.event-meta i { width: 18px; color: var(--primary-dark); }
.organizer-row { display: flex; align-items: center; gap: .55rem; padding-top: .85rem; border-top: 1px solid var(--border); font-size: .75rem; }
.organizer-row img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.organizer-row .trust-pill { margin-left: auto; }
.card-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.parallax-section { min-height: 520px; display: flex; align-items: center; background-size: cover; background-position: center; background-attachment: fixed; color: white; }
.parallax-content { max-width: 760px; margin-left: max(1rem, calc((100vw - var(--container))/2)); }
.parallax-content h2 { color: white; font-size: clamp(2.3rem, 5vw, 4.3rem); }
.parallax-content p { font-size: 1.15rem; max-width: 680px; }
.split-feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5rem; }
.feature-visual { position: relative; min-height: 430px; border-radius: 30px; background: radial-gradient(circle at 20% 20%, #ccfbf1, transparent 40%), linear-gradient(135deg, #dbeafe, #f8fafc); }
.mock-card { position: absolute; display: grid; gap: .55rem; padding: 1.25rem; border: 1px solid rgba(255,255,255,.8); border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: var(--shadow-md); }
.mock-card-one { left: 7%; top: 12%; width: 62%; transform: rotate(-3deg); }
.mock-card-two { right: 5%; top: 43%; width: 48%; transform: rotate(4deg); }
.mock-card-three { left: 18%; bottom: 8%; width: 42%; transform: rotate(-2deg); }
.mock-card-two > i, .mock-card-three > i { font-size: 1.7rem; color: var(--primary); }
.empty-state { padding: 4rem 2rem; border: 1px dashed #cbd5e1; border-radius: var(--radius-lg); background: white; text-align: center; }
.empty-state > i { font-size: 3rem; color: #94a3b8; margin-bottom: 1rem; }
.empty-inline, .table-empty { padding: 1.25rem; color: var(--muted); text-align: center; }
.prose-card, .detail-card, .form-card, .dashboard-section, .profile-summary-card, .manage-card, .report-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: var(--radius-md); background: white; box-shadow: var(--shadow-sm); }
.content-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 1rem; border-radius: 16px; background: var(--primary-soft); color: var(--primary-dark); font-size: 1.25rem; }
.pricing-preview { padding: 2rem; border-radius: 24px; background: var(--nav); color: white; box-shadow: var(--shadow-lg); }
.pricing-preview strong { display: block; color: white; font-family: Manrope; font-size: 2.3rem; }
.pricing-preview .icon-list i { color: #5eead4; }

/* Page heroes */
.page-hero { padding: 5rem 0 4rem; background: linear-gradient(180deg, #eff6ff, var(--bg)); text-align: center; }
.page-hero.compact { padding: 3rem 0 2rem; text-align: left; }
.page-hero-dark { background: linear-gradient(135deg, var(--nav-deep), var(--nav)); color: #dbeafe; }
.page-hero-dark h1 { color: white; }
.timeline { position: relative; display: grid; gap: 1rem; max-width: 850px; }
.timeline::before { content: ''; position: absolute; left: 28px; top: 30px; bottom: 30px; width: 3px; background: #99f6e4; }
.timeline-step { position: relative; display: grid; grid-template-columns: 58px 1fr; gap: 1.25rem; padding: 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.timeline-icon { z-index: 1; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; background: var(--nav); color: white; }
.timeline-step h2 { font-size: 1.35rem; }
.trust-level-grid, .trust-distribution { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.trust-level-grid > div, .trust-distribution > div { display: grid; gap: .25rem; padding: 1.25rem; border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.trust-level-grid strong { color: var(--heading); }
.centered-note { max-width: 850px; margin: 2rem auto 0; text-align: center; }

/* Forms and authentication */
.auth-section { min-height: calc(100vh - 74px); display: flex; align-items: center; padding: 4rem 0; background: radial-gradient(circle at 20% 20%, #ccfbf1, transparent 30%), radial-gradient(circle at 80% 80%, #dbeafe, transparent 30%); }
.auth-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 5rem; }
.auth-copy p { font-size: 1.1rem; }
.form-card { padding: 2rem; }
.centered-card { max-width: 560px; margin: auto; text-align: center; }
.form-icon { display: grid; place-items: center; width: 62px; height: 62px; margin: 0 auto 1rem; border-radius: 18px; background: var(--primary-soft); color: var(--primary-dark); font-size: 1.4rem; }
.stack-form { display: grid; gap: 1rem; }
.compact-form { gap: .65rem; }
.field { display: grid; gap: .4rem; text-align: left; }
.field label, .label-row label, fieldset legend { color: var(--heading); font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea, .admin-filter input, .admin-filter select, .resolution-form select, .resolution-form textarea, .compact-form input, .compact-form select { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; background: white; color: var(--heading); padding: .72rem .8rem; outline: none; transition: border-color .15s, box-shadow .15s; }
.field input:focus, .field select:focus, .field textarea:focus, .admin-filter input:focus, .admin-filter select:focus, .resolution-form textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(20,184,166,.12); }
.field textarea { resize: vertical; }
.field small, .fine-print, .field-help { color: var(--muted); font-size: .78rem; }
.label-row { display: flex; align-items: center; justify-content: space-between; }
.check-row { display: flex; align-items: flex-start; gap: .7rem; color: var(--text); font-size: .88rem; }
.check-row input { margin-top: .28rem; accent-color: var(--primary-dark); }
.two-column { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.three-column { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.form-footer { margin: 1.2rem 0 0; text-align: center; font-size: .88rem; }
.form-layout { display: grid; grid-template-columns: minmax(0, 1fr) 310px; align-items: start; gap: 2rem; }
.event-form { display: grid; gap: 1.5rem; }
.event-form fieldset, .form-card fieldset { display: grid; gap: 1rem; margin: 0; padding: 1.35rem; border: 1px solid var(--border); border-radius: 14px; }
.event-form legend, .form-card legend { padding: 0 .55rem; font-family: Manrope; font-size: 1.05rem; }
.event-form legend span { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: .5rem; border-radius: 50%; background: var(--nav); color: white; font-size: .8rem; }
.form-actions { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; }
.form-help .sticky-card { position: sticky; top: 96px; padding: 1.5rem; border-radius: 18px; background: var(--nav); color: #dbeafe; box-shadow: var(--shadow-md); }
.form-help h2, .form-help h3 { color: white; }
.form-help > .sticky-card > i { font-size: 2rem; color: #5eead4; }
.form-map { height: 320px; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.input-icon input { padding-left: 2.45rem; }

/* Explorer */
.explorer-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 2rem; }
.filter-panel { position: sticky; top: 94px; padding: 1.25rem; border: 1px solid var(--border); border-radius: 16px; background: white; box-shadow: var(--shadow-sm); }
.filter-heading, .explorer-toolbar, .view-switch { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.filter-heading h2 { font-size: 1.3rem; }
.explorer-toolbar { margin-bottom: 1rem; }
.filter-toggle { display: none; }
.view-switch { padding: .3rem; border: 1px solid var(--border); border-radius: 10px; background: white; }
.view-switch a, .view-switch span { padding: .45rem .65rem; border-radius: 7px; font-size: .82rem; font-weight: 700; }
.view-switch .active { background: var(--nav); color: white; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: 2rem; }
.pagination a { display: grid; place-items: center; min-width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 9px; background: white; font-weight: 700; }
.pagination a.active { background: var(--nav); color: white; }

/* Event detail */
.event-detail-hero { min-height: 480px; display: flex; align-items: end; padding: 4rem 0; background-size: cover; background-position: center; color: white; }
.event-detail-heading { max-width: 900px; }
.event-detail-heading h1 { color: white; }
.event-detail-heading > p { max-width: 740px; font-size: 1.15rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: .9rem; }
.hero-meta i { color: #5eead4; margin-right: .3rem; }
.event-detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 2rem; }
.event-main { display: grid; gap: 1.25rem; }
.prose-text { white-space: pre-line; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.info-grid > div { display: grid; grid-template-columns: 38px 1fr; gap: .65rem; padding: .9rem; border-radius: 12px; background: var(--surface-muted); }
.info-grid > div > i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: white; color: var(--primary-dark); }
.info-grid span { display: grid; font-size: .85rem; }
.organizer-profile { display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 1rem; color: var(--text); }
.organizer-profile img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.organizer-profile strong { color: var(--heading); font-size: 1.1rem; }
.organizer-profile small { display: block; color: var(--primary-dark); }
.organizer-profile p { margin: .35rem 0 0; }
.avatar-list { display: flex; flex-wrap: wrap; gap: .4rem; }
.avatar-list img { width: 44px; height: 44px; border: 3px solid white; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-sm); }
.event-sidebar { position: sticky; top: 94px; display: grid; gap: 1rem; }
.commit-card { padding: 1.5rem; border: 1px solid var(--border); border-radius: 18px; background: white; box-shadow: var(--shadow-md); }
.commit-count strong { display: block; color: var(--heading); font-family: Manrope; font-size: 2.8rem; line-height: 1; }
.commit-count span { color: var(--muted); }
.commit-confirmed, .confirmed-banner, .status-summary { display: grid; gap: .3rem; margin: 1rem 0; padding: 1rem; border-radius: 12px; background: var(--primary-soft); color: var(--primary-dark); }
.commit-confirmed > i, .confirmed-banner > i { font-size: 1.5rem; }
.manage-card { display: grid; gap: .75rem; }
.report-card summary { cursor: pointer; color: var(--danger); font-weight: 700; }
.report-card form { margin-top: 1rem; }
.policy-card { border-left: 4px solid var(--primary); }

/* Profiles and dashboards */
.dashboard-hero { padding: 3rem 0; background: linear-gradient(135deg, #eff6ff, #ccfbf1); }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.dashboard-actions { display: flex; gap: .75rem; }
.dashboard-grid { display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 2rem; }
.profile-summary-card { position: sticky; top: 94px; text-align: center; }
.profile-large { width: 130px; height: 130px; margin: 0 auto 1rem; border: 5px solid white; border-radius: 50%; object-fit: cover; box-shadow: var(--shadow-md); }
.trust-gauge { margin: 1.5rem 0; padding: 1rem; border-radius: 12px; background: var(--surface-muted); text-align: left; }
.trust-gauge-head { display: flex; justify-content: space-between; margin-bottom: .55rem; }
.dashboard-content { min-width: 0; display: grid; gap: 1.5rem; }
.dashboard-stats { grid-template-columns: repeat(4, 1fr); }
.dashboard-section { overflow: hidden; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; background: white; font-size: .85rem; }
th, td { padding: .8rem .9rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
th { background: var(--surface-muted); color: var(--nav); font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
.audit-list { display: grid; gap: .65rem; }
.audit-list article { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 1rem; padding: .9rem; border: 1px solid var(--border); border-radius: 12px; background: white; }
.audit-change { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 16px; font-family: Manrope; font-weight: 800; }
.audit-change.positive { background: #dcfce7; color: #166534; }
.audit-change.negative { background: #fee2e2; color: #991b1b; }
.audit-change.mini { width: fit-content; height: auto; padding: .35rem .55rem; border-radius: 8px; }
.audit-list p, .audit-list small { margin: 0; }
.profile-edit-heading { display: flex; align-items: center; gap: 1.5rem; }
.profile-edit-heading img { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; }
.profile-hero { padding: 4rem 0; background: linear-gradient(135deg, var(--nav-deep), var(--nav)); color: white; }
.profile-hero-content { display: grid; grid-template-columns: 170px 1fr; align-items: center; gap: 2rem; }
.profile-hero-content > img { width: 170px; height: 170px; border: 6px solid rgba(255,255,255,.2); border-radius: 50%; object-fit: cover; }
.profile-hero h1 { color: white; }
.profile-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.25rem; }

/* Notifications */
.notification-list { display: grid; gap: .75rem; }
.notification-item { display: grid; grid-template-columns: 46px 1fr auto; gap: 1rem; padding: 1rem; border: 1px solid var(--border); border-radius: 14px; background: white; }
.notification-item.unread { border-left: 4px solid var(--primary); background: #f0fdfa; }
.notification-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); }
.notification-item p { margin: 0; }
.notification-item small { color: var(--muted); }

/* Admin */
.admin-hero { background: linear-gradient(135deg, var(--nav-deep), #0f4c5c); color: #dbeafe; }
.admin-hero h1 { color: white; }
.admin-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: start; gap: 2rem; }
.admin-nav { position: sticky; top: 94px; display: grid; gap: .35rem; padding: 1rem; border-radius: 16px; background: var(--nav); color: white; }
.admin-nav h2 { color: white; }
.admin-nav a { display: flex; align-items: center; gap: .65rem; padding: .7rem .75rem; border-radius: 9px; color: #dbeafe; font-size: .88rem; font-weight: 650; }
.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,.12); color: white; }
.admin-content { min-width: 0; }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.metric-card { display: grid; grid-template-columns: 46px 1fr; align-items: center; column-gap: .8rem; padding: 1.1rem; border: 1px solid var(--border); border-radius: 14px; background: white; box-shadow: var(--shadow-sm); }
.metric-card > i { grid-row: span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: var(--primary-soft); color: var(--primary-dark); }
.metric-card span { color: var(--muted); font-size: .78rem; }
.metric-card strong { color: var(--heading); font-size: 1.7rem; }
.admin-kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 1.25rem 0; }
.big-kpi { display: block; color: var(--heading); font-family: Manrope; font-size: 2.5rem; }
.admin-two-column { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.compact-list { display: grid; }
.compact-list > a { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem 0; border-bottom: 1px solid var(--border); }
.compact-list > a:last-child { border-bottom: 0; }
.compact-list span:first-child { display: grid; }
.compact-list small { color: var(--muted); }
.admin-filter { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.admin-filter .input-icon { min-width: 260px; }
.admin-table td { white-space: nowrap; }
.user-cell { display: flex; align-items: center; gap: .65rem; }
.user-cell img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.user-cell span { display: grid; }
.action-menu { position: relative; }
.action-menu summary { cursor: pointer; list-style: none; }
.action-menu > div { position: absolute; z-index: 10; right: 0; top: 30px; width: 280px; padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: white; box-shadow: var(--shadow-lg); }
.report-list { display: grid; gap: 1rem; }
.report-item { padding: 1.25rem; border: 1px solid var(--border); border-radius: 14px; background: white; }
.report-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.report-item dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.report-item dl div { padding: .8rem; border-radius: 10px; background: var(--surface-muted); }
.report-item dt { color: var(--muted); font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.report-item dd { margin: .2rem 0 0; }
.resolution-form { display: grid; grid-template-columns: 180px 1fr auto; align-items: end; gap: .75rem; }

/* Footer and errors */
.site-footer { padding: 4rem 0 1.5rem; background: var(--nav-deep); color: #94a3b8; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-grid > div { display: grid; align-content: start; gap: .55rem; }
.footer-grid h3 { color: white; font-size: .95rem; }
.footer-grid a { color: #cbd5e1; font-size: .88rem; }
.footer-brand { margin-bottom: .4rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 3rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.error-page { min-height: 65vh; display: flex; align-items: center; padding: 5rem 0; text-align: center; }
.error-page i { display: block; margin-bottom: 1rem; color: var(--primary); font-size: 3rem; }
.error-code { display: block; color: #94a3b8; font-family: Manrope; font-size: 1.1rem; font-weight: 800; letter-spacing: .2em; }

/* Responsive rules */
@media (max-width: 1100px) {
  .main-nav { position: fixed; inset: 74px 0 auto 0; display: none; flex-direction: column; align-items: stretch; max-height: calc(100vh - 74px); overflow-y: auto; padding: 1rem; background: var(--nav); box-shadow: var(--shadow-lg); }
  .main-nav.open { display: flex; }
  .main-nav .button { margin-left: 0; }
  .nav-toggle { display: block; }
  .stats-grid, .dashboard-stats { grid-template-columns: repeat(2, 1fr); }
  .card-grid, .card-grid.three { grid-template-columns: repeat(2, 1fr); }
  .event-detail-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 850px) {
  .section { padding: 3.5rem 0; }
  .section-heading, .dashboard-heading { align-items: flex-start; flex-direction: column; }
  .map-hero { height: auto; min-height: 830px; }
  .map-panel { top: 1rem; }
  .map-controls-card { bottom: 1rem; }
  .split-feature, .auth-grid, .form-layout, .event-detail-layout, .dashboard-grid, .admin-layout { grid-template-columns: 1fr; gap: 2rem; }
  .feature-visual { min-height: 380px; }
  .auth-copy { text-align: center; }
  .form-help { display: none; }
  .event-sidebar, .profile-summary-card, .admin-nav { position: static; }
  .admin-nav { grid-template-columns: repeat(3, 1fr); }
  .admin-nav > div { grid-column: 1 / -1; }
  .explorer-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; display: none; }
  .filter-panel.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .content-grid, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .trust-level-grid, .trust-distribution { grid-template-columns: repeat(2, 1fr); }
  .parallax-section { background-attachment: scroll; }
  .parallax-content { margin: auto; }
}

@media (max-width: 600px) {
  :root { --space-7: 3.5rem; }
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
  h1 { font-size: 1.5rem; }
  .map-panel { padding: 1.25rem; }
  .map-search { display: grid; grid-template-columns: auto 1fr; }
  .map-search .button { grid-column: 1 / -1; width: 100%; }
  .map-legend { flex-wrap: wrap; }
  .map-controls-card { width: calc(100% - 2rem); }
  .stats-grid, .dashboard-stats, .card-grid, .card-grid.two, .card-grid.three, .content-grid, .info-grid, .metric-grid, .admin-kpi-grid, .admin-two-column, .footer-grid { grid-template-columns: 1fr; }
  .two-column, .three-column { grid-template-columns: 1fr; }
  .form-card { padding: 1.15rem; }
  .event-form fieldset { padding: 1rem; }
  .event-card-image { min-height: 210px; }
  .hero-meta, .profile-meta, .dashboard-actions { flex-direction: column; align-items: flex-start; }
  .event-detail-hero { min-height: 400px; }
  .organizer-profile { grid-template-columns: 58px 1fr; }
  .organizer-profile img { width: 58px; height: 58px; }
  .organizer-profile > i { display: none; }
  .profile-hero-content { grid-template-columns: 1fr; text-align: center; }
  .profile-hero-content > img { margin: auto; }
  .profile-meta { align-items: center; }
  .admin-nav { grid-template-columns: 1fr 1fr; }
  .admin-filter, .resolution-form { display: grid; grid-template-columns: 1fr; }
  .admin-filter .input-icon { min-width: 0; }
  .report-item dl { grid-template-columns: 1fr; }
  .notification-item { grid-template-columns: 42px 1fr; }
  .notification-item form { grid-column: 2; }
  .footer-bottom { flex-direction: column; }
  .flash-stack { top: 82px; }
}

/* Attendance verification */
.attendance-note { display: grid; grid-template-columns: 48px 1fr; gap: 1rem; margin-bottom: 1.25rem; padding: 1rem; border-radius: 12px; background: var(--primary-soft); }
.attendance-note > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: white; color: var(--primary-dark); }
.attendance-note p { margin: .25rem 0 0; }
.attendance-list { display: grid; gap: .65rem; }
.attendance-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem; border: 1px solid var(--border); border-radius: 12px; }
.attendance-row select { width: 170px; border: 1px solid #cbd5e1; border-radius: 10px; padding: .65rem; }
@media (max-width: 600px) { .attendance-row { align-items: stretch; flex-direction: column; } .attendance-row select { width: 100%; } }

.check-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:.55rem; padding:.8rem; border:1px solid var(--border); border-radius:12px; background:var(--surface-muted); }
.optional { color:var(--muted); font-weight:500; }
@media (max-width:600px) { .check-grid { grid-template-columns:1fr 1fr; } }


.icon-list {
    display: block;
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.icon-list li {
    margin-bottom: 0.75rem;
    color: var(--text);
}

.icon-list li::marker {
    color: var(--primary);
    font-size: 1.1em;
}

/* Hide any Font Awesome icons if they're still in the HTML */
.icon-list i {
    display: none;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;   /* preferred */
    /* overflow-x: hidden;  fallback for older browsers */
}

/* =========================================================
   Coordinate discovery UI refresh
   Navigation, map workspace, event filters, and results
   ========================================================= */

:root {
  --header-height: 76px;
  --focus-ring: 0 0 0 4px rgba(20, 184, 166, .16);
  --overlay-border: rgba(148, 163, 184, .32);
}


/* =========================================================
   Updated navigation
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1200;
  color: rgba(226, 232, 240, .94);
  background:  var(--nav);
  border-bottom: 1px solid rgba(226, 232, 240, .94);
  box-shadow: 0 1px 8px rgba(15, 23, 42, .05);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  min-height: var(--header-height);
  gap: 1.5rem;
}

.brand {
  flex: 0 0 auto;
  gap: .75rem;
  color: rgba(226, 232, 240, .94);
}

.brand:hover {
  color: rgba(255, 255, 255);
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  box-shadow: 0 5px 14px rgba(15, 23, 42, .12);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  color: var(--border);
  font-family: Manrope, Inter, sans-serif;
  font-size: 1.16rem;
  font-weight: 800;
}

.brand-copy small {
  margin-top: .22rem;
  color: var(--muted);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .01em;
}

.main-nav {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-primary,
.nav-actions {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.nav-link,
.nav-sign-in,
.nav-notification-button,
.account-menu-trigger {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--border);
  padding: .65rem .8rem;
  font-size: .9rem;
  font-weight: 700;
  transition:
    background .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.nav-link:hover,
.nav-link.active,
.nav-sign-in:hover,
.nav-notification-button:hover,
.account-menu-trigger:hover,
.nav-dropdown.open > .nav-dropdown-trigger,
.account-dropdown.open > .account-menu-trigger {
  color: var(--bg);
  background: var(--nav);
}

.nav-link:focus-visible,
.nav-sign-in:focus-visible,
.nav-notification-button:focus-visible,
.account-menu-trigger:focus-visible,
.nav-toggle:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.nav-link.active {
  background: var(--nav-deep);
}

.nav-link > i:first-child {
  color: #64748b;
  font-size: .92rem;
}

.nav-link.active > i:first-child {
  color: var(--primary-soft);
}

.nav-chevron {
  margin-left: .1rem;
  color: var(--border);
  font-size: .62rem;
  transition: transform .18s ease;
}

.nav-dropdown.open .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  z-index: 1300;
  top: calc(100% + .7rem);
  right: 0;
  width: 245px;
  padding: .55rem;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--bg);
  box-shadow: 0 22px 60px rgba(15, 23, 42, .18);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 13px;
  height: 13px;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  background: white;
  transform: rotate(45deg);
}

.nav-dropdown-menu-wide {
  left: 0;
  right: auto;
  width: 330px;
}

.nav-dropdown-menu-wide::before {
  left: 26px;
  right: auto;
}

.nav-dropdown-menu > a,
.account-logout-form button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  padding: .72rem .75rem;
  text-align: left;
  font-size: .86rem;
  font-weight: 650;
}

.nav-dropdown-menu > a:hover,
.account-logout-form button:hover {
  color: var(--nav);
  background: var(--surface-muted);
}

.nav-dropdown-menu-wide > a {
  align-items: flex-start;
  padding: .85rem;
}

.nav-dropdown-menu-wide a > span:last-child {
  display: grid;
  gap: .14rem;
}

.nav-dropdown-menu-wide strong {
  color: var(--heading);
}

.nav-dropdown-menu-wide small {
  color: var(--muted);
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.4;
}

.dropdown-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.nav-notification-button {
  position: relative;
  width: 42px;
  padding: 0;
}

.notification-count {
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  border: 2px solid white;
  font-size: .6rem;
}

.nav-create-button {
  margin-inline: .25rem;
}

.account-menu-trigger {
  gap: .55rem;
  padding: .35rem .55rem;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-soft), #dbeafe);
  color: var(--primary-dark);
}

.account-avatar-large {
  width: 44px;
  height: 44px;
  font-size: 1rem;
}

.account-menu {
  width: 285px;
}

.account-menu-heading {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  gap: .75rem;
  padding: .6rem .65rem;
}

.account-menu-heading > div {
  display: grid;
  gap: .12rem;
}

.account-menu-heading strong {
  color: var(--heading);
  font-size: .82rem;
}

.account-menu-heading small {
  color: var(--muted);
  font-size: .7rem;
  line-height: 1.35;
}

.account-menu hr {
  margin: .4rem .25rem;
}

.account-menu > a > i,
.account-logout-form button > i {
  width: 18px;
  color: var(--muted);
}

.account-logout-form {
  margin: 0;
}

.menu-count {
  min-width: 22px;
  margin-left: auto;
  padding: .15rem .35rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  text-align: center;
  font-size: .66rem;
}

.mobile-only-text {
  display: none;
}

.nav-toggle {
  color: var(--border);
}


/* =========================================================
   Google-Maps-style map workspace
   ========================================================= */

.map-workspace {
  position: relative;
  height: calc(100vh - var(--header-height));
  min-height: 640px;
  overflow: hidden;
  background: #dbeafe;
}

.map-workspace .event-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.map-searchbar {
  position: absolute;
  z-index: 700;
  top: 16px;
  left: 50%;
  width: min(720px, calc(100% - 440px));
  transform: translateX(-50%);
}

.map-search-form {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: .3rem;
  min-height: 62px;
  padding: .35rem .4rem .35rem 1rem;
  border: 1px solid var(--overlay-border);
  border-radius: 17px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 12px 38px rgba(15, 23, 42, .17);
  backdrop-filter: blur(14px);
}

.map-search-form:focus-within {
  border-color: rgba(20, 184, 166, .72);
  box-shadow:
    0 12px 38px rgba(15, 23, 42, .17),
    var(--focus-ring);
}

.map-search-icon {
  display: grid;
  place-items: center;
  width: 32px;
  color: var(--primary-dark);
}

.map-search-field {
  min-width: 0;
  display: grid;
  gap: .05rem;
}

.map-search-field label {
  color: var(--heading);
  font-size: .69rem;
  font-weight: 800;
  line-height: 1;
}

.map-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading);
  padding: .32rem 0;
  font-size: .9rem;
}

.map-search-clear {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.map-search-clear:hover {
  color: var(--heading);
  background: var(--surface-muted);
}

.map-search-submit {
  min-height: 44px;
  padding-inline: 1.1rem;
}

.map-more-filters {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .65rem .75rem;
  border-radius: 9px;
  color: var(--nav);
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
}

.map-more-filters:hover {
  background: var(--surface-muted);
}

.map-search-area {
  position: absolute;
  z-index: 690;
  top: 92px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--nav);
  padding: .62rem .95rem;
  box-shadow: var(--shadow-md);
  transform: translateX(-50%);
  font-size: .82rem;
  font-weight: 750;
}

.map-search-area:hover {
  background: var(--surface-muted);
}

.map-results-panel {
  position: absolute;
  z-index: 650;
  top: 16px;
  bottom: 16px;
  left: 16px;
  width: 390px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--overlay-border);
  border-radius: 20px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 18px 55px rgba(15, 23, 42, .2);
  backdrop-filter: blur(16px);
  transition:
    transform .25s ease,
    opacity .2s ease;
}

.map-results-panel.collapsed {
  pointer-events: none;
  opacity: 0;
  transform: translateX(calc(-100% - 32px));
}

.map-results-header {
  position: relative;
  padding: 1.3rem 3rem 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.map-results-header h1 {
  margin-bottom: .4rem;
  font-size: 1.32rem;
}

.map-results-header p {
  margin: 0;
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}

.map-panel-eyebrow {
  display: block;
  margin-bottom: .3rem;
  color: var(--primary-dark);
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.map-panel-collapse {
  position: absolute;
  top: 1rem;
  right: .8rem;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--muted);
}

.map-panel-collapse:hover {
  color: var(--nav);
  background: var(--surface-muted);
}

.map-filter-chips {
  display: flex;
  gap: .45rem;
  overflow-x: auto;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.map-filter-chips::-webkit-scrollbar {
  display: none;
}

.map-filter-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  color: var(--text);
  padding: .42rem .72rem;
  font-size: .74rem;
  font-weight: 750;
}

.map-filter-chip:hover {
  border-color: #94a3b8;
  background: var(--surface-muted);
}

.map-filter-chip.active {
  border-color: var(--nav);
  background: var(--nav);
  color: white;
}

.map-results-summary {
  display: flex;
  align-items: baseline;
  gap: .3rem;
  padding: .7rem 1rem;
  color: var(--muted);
  font-size: .75rem;
}

.map-results-summary strong {
  color: var(--heading);
}

.map-reset-link {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--primary-dark);
  padding: .2rem;
  font-size: .73rem;
  font-weight: 750;
}

.map-results-list {
  flex: 1;
  display: grid;
  align-content: start;
  gap: .65rem;
  overflow-y: auto;
  padding: 0 .8rem .8rem;
  overscroll-behavior: contain;
}

.map-result-card {
  width: 100%;
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: .8rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: white;
  padding: .55rem;
  color: var(--text);
  text-align: left;
  transition:
    border-color .16s ease,
    background .16s ease,
    box-shadow .16s ease,
    transform .16s ease;
}

.map-result-card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.map-result-card.active {
  border-color: var(--primary);
  background: #f0fdfa;
  box-shadow: var(--focus-ring);
}

.map-result-card > img {
  width: 108px;
  height: 112px;
  border-radius: 10px;
  object-fit: cover;
}

.map-result-card-content {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: .38rem;
}

.map-result-card-content > strong {
  overflow: hidden;
  color: var(--heading);
  font-size: .87rem;
  line-height: 1.3;
  text-overflow: ellipsis;
}

.map-result-topline,
.map-result-progress-text {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.map-result-category {
  overflow: hidden;
  color: var(--primary-dark);
  font-size: .63rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.map-result-status {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .2rem .43rem;
  font-size: .58rem;
  font-weight: 800;
}

.map-result-status.open {
  background: #dbeafe;
  color: #1d4ed8;
}

.map-result-status.confirmed {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.map-result-location {
  overflow: hidden;
  color: var(--muted);
  font-size: .68rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.map-result-location i {
  margin-right: .22rem;
  color: var(--primary-dark);
}

.map-result-progress-text {
  color: var(--muted);
  font-size: .63rem;
}

.map-result-progress-text strong {
  color: var(--heading);
}

.map-result-card .progress-track {
  height: 5px;
}

.map-results-empty {
  display: grid;
  justify-items: center;
  padding: 3rem 1rem;
  color: var(--muted);
  text-align: center;
}

.map-empty-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 1rem;
  border-radius: 15px;
  background: var(--surface-muted);
  color: #94a3b8;
  font-size: 1.2rem;
}

.map-results-empty h2 {
  font-size: 1rem;
}

.map-results-empty p {
  max-width: 250px;
  font-size: .78rem;
}

.map-panel-open {
  position: absolute;
  z-index: 660;
  top: 18px;
  left: 18px;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid var(--overlay-border);
  border-radius: 12px;
  background: white;
  color: var(--nav);
  padding: .7rem .9rem;
  box-shadow: var(--shadow-md);
  font-size: .8rem;
  font-weight: 750;
}

.map-floating-controls {
  position: absolute;
  z-index: 650;
  right: 16px;
  top: 16px;
  display: grid;
  overflow: hidden;
  border: 1px solid var(--overlay-border);
  border-radius: 13px;
  background: white;
  box-shadow: var(--shadow-md);
}

.map-floating-controls button,
.map-floating-controls a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: white;
  color: var(--nav);
}

.map-floating-controls button:last-child,
.map-floating-controls a:last-child {
  border-bottom: 0;
}

.map-floating-controls button:hover,
.map-floating-controls a:hover {
  background: var(--surface-muted);
}

.map-floating-controls button.loading i {
  animation: coordinate-spin .8s linear infinite;
}

.map-legend-floating {
  position: absolute;
  z-index: 620;
  right: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: .8rem;
  border: 1px solid var(--overlay-border);
  border-radius: 10px;
  background: rgba(255, 255, 255, .94);
  padding: .48rem .65rem;
  box-shadow: var(--shadow-sm);
  color: var(--text);
  font-size: .66rem;
  font-weight: 700;
}

.map-status-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.map-status-dot.open {
  background: #3b82f6;
}

.map-status-dot.confirmed {
  background: var(--primary);
}

.map-toast {
  position: absolute;
  z-index: 800;
  left: 50%;
  bottom: 24px;
  max-width: min(480px, calc(100% - 2rem));
  border-radius: 10px;
  background: rgba(15, 23, 42, .93);
  color: white;
  padding: .7rem .9rem;
  box-shadow: var(--shadow-lg);
  transform: translateX(-50%);
  text-align: center;
  font-size: .78rem;
}

.coordinate-marker-wrapper {
  background: transparent;
  border: 0;
}

.coordinate-marker {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 4px solid white;
  border-radius: 50% 50% 50% 12px;
  background: #3b82f6;
  box-shadow:
    0 8px 20px rgba(15, 23, 42, .32),
    0 0 0 1px rgba(15, 23, 42, .08);
  color: white;
  transform: rotate(-45deg);
  transition:
    transform .16s ease,
    box-shadow .16s ease;
}

.coordinate-marker.confirmed {
  background: var(--primary);
}

.coordinate-marker i {
  font-size: .78rem;
  transform: rotate(45deg);
}

.leaflet-marker-icon:hover .coordinate-marker {
  box-shadow:
    0 12px 28px rgba(15, 23, 42, .38),
    0 0 0 3px rgba(20, 184, 166, .17);
  transform: rotate(-45deg) scale(1.1);
}

.leaflet-popup-content-wrapper {
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 18px 55px rgba(15, 23, 42, .25);
}

.leaflet-popup-content {
  width: 300px !important;
  margin: 0;
}

.leaflet-popup-close-button {
  top: 8px !important;
  right: 8px !important;
  width: 28px !important;
  height: 28px !important;
  display: grid !important;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92) !important;
  color: var(--heading) !important;
  box-shadow: var(--shadow-sm);
}

.map-popup {
  overflow: hidden;
}

.map-popup > img {
  width: 100%;
  height: 145px;
  margin: 0;
  border-radius: 0;
  object-fit: cover;
}

.map-popup-body {
  padding: 1rem;
}

.map-popup-topline,
.map-popup-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .6rem;
}

.map-popup-category {
  color: var(--primary-dark);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.map-popup h3 {
  margin: .55rem 0 .35rem;
  color: var(--heading);
  font-size: 1.03rem;
}

.map-popup p {
  display: -webkit-box;
  overflow: hidden;
  margin-bottom: .7rem;
  color: var(--text);
  font-size: .76rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.map-popup-location {
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: .7rem;
}

.map-popup-location i {
  margin-right: .25rem;
  color: var(--primary-dark);
}

.map-popup-progress {
  color: var(--muted);
  font-size: .68rem;
}

.map-popup-progress strong {
  color: var(--heading);
}

.map-popup .progress-track {
  height: 6px;
  margin: .4rem 0 .9rem;
}

.map-following-section {
  position: relative;
  z-index: 2;
  background: var(--bg);
}

.leaflet-control-zoom {
  margin-right: 16px !important;
  margin-bottom: 72px !important;
  overflow: hidden;
  border: 1px solid var(--overlay-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-md) !important;
}

.leaflet-control-zoom a {
  display: grid !important;
  place-items: center;
  width: 42px !important;
  height: 42px !important;
  border-bottom-color: var(--border) !important;
  color: var(--nav) !important;
  font-size: 1.15rem !important;
}


/* =========================================================
   Updated event directory
   ========================================================= */

.events-search-hero {
  padding: 3.3rem 0 2.4rem;
  background:
    radial-gradient(
      circle at 82% 15%,
      rgba(20, 184, 166, .13),
      transparent 28%
    ),
    linear-gradient(180deg, #ffffff, #f8fafc);
  border-bottom: 1px solid var(--border);
}

.events-hero-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}


.events-hero-heading p {
  max-width: 720px;
  margin: 0;
  font-size: 1.02rem;
}

.event-explorer-form {
  display: block;
}

.events-search-strip {
  position: sticky;
  z-index: 900;
  top: var(--header-height);
  padding: .8rem 0;
  border-bottom: 1px solid var(--border);
  background: rgba(248, 250, 252, .94);
  backdrop-filter: blur(14px);
}

.events-main-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .45rem;
  max-width: 920px;
  margin: auto;
  padding: .35rem .4rem .35rem 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 15px;
  background: white;
  box-shadow: var(--shadow-sm);
}

.events-main-search:focus-within {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.events-main-search > i {
  color: var(--primary-dark);
}

.events-search-input {
  min-width: 0;
  display: grid;
}

.events-search-input label {
  color: var(--heading);
  font-size: .66rem;
  font-weight: 800;
  line-height: 1;
}

.events-search-input input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading);
  padding: .32rem 0;
}

.events-search-clear {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
}

.events-search-clear:hover {
  background: var(--surface-muted);
  color: var(--heading);
}

.events-search-button {
  min-height: 44px;
}

.explorer-layout {
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 1.5rem;
}

.filter-panel {
  top: calc(var(--header-height) + 80px);
  max-height: calc(100vh - var(--header-height) - 100px);
  overflow-y: auto;
  padding: 0;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  overscroll-behavior: contain;
}

.filter-panel-header {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.15rem .8rem;
  background: white;
}

.filter-panel-label {
  display: block;
  margin-bottom: .14rem;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 750;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.filter-panel-header h2 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-size: 1.25rem;
}

.filter-count,
.filter-toggle-count {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #062a28;
  font-family: Inter, sans-serif;
  font-size: .68rem;
  font-weight: 800;
}

.filter-panel-close {
  display: none;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  color: var(--heading);
}

.clear-filter-link {
  display: block;
  margin: 0 1.15rem .8rem;
  color: var(--primary-dark);
  font-size: .76rem;
  font-weight: 750;
}

.filter-group {
  border-top: 1px solid var(--border);
}

.filter-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.15rem;
  color: var(--heading);
  cursor: pointer;
  list-style: none;
  font-size: .84rem;
  font-weight: 800;
}

.filter-group > summary::-webkit-details-marker {
  display: none;
}

.filter-group > summary > span {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
}

.filter-group > summary > span i {
  width: 18px;
  color: var(--primary-dark);
  text-align: center;
}

.filter-group > summary > i {
  color: #94a3b8;
  font-size: .65rem;
  transition: transform .18s ease;
}

.filter-group[open] > summary > i {
  transform: rotate(180deg);
}

.filter-group-content {
  display: grid;
  gap: .9rem;
  padding: 0 1.15rem 1.1rem;
}

.filter-group-content .field {
  gap: .35rem;
}

.filter-group-content .field label {
  font-size: .77rem;
}

.filter-group-content .field input,
.filter-group-content .field select {
  padding: .68rem .72rem;
  font-size: .82rem;
}

.filter-check-card {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  align-items: start;
  gap: .65rem;
  padding: .72rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition:
    border-color .15s ease,
    background .15s ease;
}

.filter-check-card:hover {
  border-color: #94a3b8;
  background: var(--surface-muted);
}

.filter-check-card:has(input:checked) {
  border-color: var(--primary);
  background: #f0fdfa;
}

.filter-check-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-check-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--surface-muted);
  color: var(--muted);
}

.filter-check-card:has(input:checked) .filter-check-icon {
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.filter-check-card > span:last-child {
  display: grid;
  gap: .15rem;
}

.filter-check-card strong {
  color: var(--heading);
  font-size: .76rem;
}

.filter-check-card small {
  color: var(--muted);
  font-size: .67rem;
  line-height: 1.4;
}

.filter-panel-actions {
  position: sticky;
  bottom: 0;
  display: grid;
  gap: .45rem;
  padding: 1rem 1.15rem;
  border-top: 1px solid var(--border);
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
}

.event-results-column {
  min-width: 0;
}

.explorer-toolbar {
  position: sticky;
  z-index: 20;
  top: calc(var(--header-height) + 78px);
  margin: 0 0 1rem;
  padding: .65rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, .95);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.explorer-toolbar-left,
.explorer-toolbar-right {
  display: flex;
  align-items: center;
  gap: .75rem;
}

.results-count {
  display: inline-flex;
  align-items: baseline;
  gap: .3rem;
  color: var(--muted);
  font-size: .78rem;
}

.results-count strong {
  color: var(--heading);
  font-size: .95rem;
}

.view-switch {
  flex: 0 0 auto;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: .35rem;
  min-height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: white;
  padding: 0 .35rem 0 .65rem;
}

.sort-control label {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 650;
}

.sort-control select {
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--heading);
  padding: .45rem .3rem;
  font-size: .75rem;
  font-weight: 700;
}

.active-filter-row {
  display: grid;
  gap: .55rem;
  margin-bottom: 1rem;
}

.active-filter-label {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.active-filter-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}

.active-filter-chip,
.clear-all-chip {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  min-height: 32px;
  border: 1px solid #99f6e4;
  border-radius: 999px;
  background: #f0fdfa;
  color: var(--primary-dark);
  padding: .35rem .65rem;
  font-size: .7rem;
  font-weight: 750;
}

.active-filter-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.clear-all-chip {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}

.clear-all-chip:hover {
  color: var(--danger);
  background: #fef2f2;
}

.event-results-grid {
  gap: 1.25rem;
}

.empty-state-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.25rem;
}

.filter-backdrop {
  display: none;
}


/* =========================================================
   Animations
   ========================================================= */

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


/* =========================================================
   Tablet navigation
   ========================================================= */

@media (max-width: 1100px) {
  .site-header {
    position: sticky;
  }

  .nav-wrap {
    min-height: 68px;
  }

  :root {
    --header-height: 68px;
  }

  .brand-copy small {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    max-height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 1rem;
    border-top: 1px solid var(--border);
    background: white;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-primary,
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
  }

  .nav-primary {
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-link,
  .nav-sign-in,
  .nav-notification-button,
  .account-menu-trigger {
    width: 100%;
    justify-content: flex-start;
    color: var(--text);
    padding: .75rem;
  }

  .nav-notification-button {
    height: auto;
  }

  .mobile-only-text {
    display: inline;
  }

  .notification-count {
    position: static;
    margin-left: auto;
    border: 0;
  }

  .nav-create-button {
    width: 100%;
    margin: 0;
  }

  .account-menu-label {
    display: inline;
  }

  .nav-dropdown-menu,
  .nav-dropdown-menu-wide,
  .account-menu {
    position: static;
    width: 100%;
    margin-top: .35rem;
    border-radius: 12px;
    box-shadow: none;
  }

  .nav-dropdown-menu::before {
    display: none;
  }
}


/* =========================================================
   Tablet map and event directory
   ========================================================= */

@media (max-width: 850px) {
  .map-workspace {
    height: calc(100svh - var(--header-height));
    min-height: 660px;
  }

  .map-searchbar {
    top: 10px;
    width: calc(100% - 20px);
  }

  .map-search-form {
    grid-template-columns: auto minmax(0, 1fr) auto auto;
  }

  .map-more-filters {
    display: none;
  }

  .map-search-area {
    top: 82px;
  }

  .map-results-panel {
    top: auto;
    right: 10px;
    bottom: 10px;
    left: 10px;
    width: auto;
    max-height: 46%;
    border-radius: 19px;
  }

  .map-results-panel.collapsed {
    opacity: 0;
    transform: translateY(calc(100% + 24px));
  }

  .map-panel-collapse i {
    transform: rotate(-90deg);
  }

  .map-panel-open {
    top: auto;
    bottom: 18px;
    left: 18px;
  }

  .map-floating-controls {
    top: 84px;
    right: 10px;
  }

  .map-legend-floating {
    display: none;
  }

  .leaflet-control-zoom {
    margin-right: 10px !important;
    margin-bottom: 10px !important;
  }

  .map-toast {
    bottom: 74px;
  }

  .events-hero-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .explorer-layout {
    grid-template-columns: 1fr;
  }

  .filter-panel {
    position: fixed;
    z-index: 1500;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(390px, calc(100% - 32px));
    max-height: none;
    display: block;
    border: 0;
    border-radius: 0 20px 20px 0;
    box-shadow: var(--shadow-lg);
    transform: translateX(-105%);
    transition: transform .22s ease;
  }

  .filter-panel.open {
    display: block;
    transform: translateX(0);
  }

  .filter-panel-close {
    display: grid;
  }

  .filter-backdrop {
    position: fixed;
    z-index: 1450;
    inset: 0;
    display: block;
    border: 0;
    background: rgba(15, 23, 42, .46);
    backdrop-filter: blur(2px);
  }

  body.filters-open {
    overflow: hidden;
  }

  .filter-toggle {
    display: inline-flex;
  }

  .explorer-toolbar {
    top: calc(var(--header-height) + 76px);
  }
}


/* =========================================================
   Mobile map and directory
   ========================================================= */

@media (max-width: 600px) {
  .brand-copy strong {
    font-size: 1.02rem;
  }

  .brand img {
    width: 36px;
    height: 36px;
  }

  .map-workspace {
    min-height: 620px;
  }

  .map-search-form {
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 56px;
    padding-left: .65rem;
  }

  .map-search-submit {
    display: none;
  }

  .map-search-field label {
    display: none;
  }

  .map-search-field input {
    padding: .6rem 0;
    font-size: .82rem;
  }

  .map-search-area {
    top: 75px;
    padding: .52rem .75rem;
    font-size: .72rem;
  }

  .map-results-panel {
    max-height: 52%;
  }

  .map-results-header {
    padding: 1rem 3rem .75rem .9rem;
  }

  .map-results-header h1 {
    font-size: 1.05rem;
  }

  .map-results-header p {
    display: none;
  }

  .map-result-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .map-result-card > img {
    width: 88px;
    height: 96px;
  }

  .map-result-progress-text {
    font-size: .59rem;
  }

  .map-floating-controls {
    top: 76px;
  }

  .events-search-hero {
    padding: 2.4rem 0 1.8rem;
  }

  .events-hero-heading h1 {
    font-size: 1.8rem;
  }

  .events-search-strip {
    padding: .6rem 0;
  }

  .events-main-search {
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding-right: .55rem;
  }

  .events-search-button {
    display: none;
  }

  .events-search-input label {
    display: none;
  }

  .events-search-input input {
    padding: .65rem 0;
    font-size: .82rem;
  }

  .explorer-toolbar {
    align-items: stretch;
    flex-direction: column;
    top: calc(var(--header-height) + 67px);
  }

  .explorer-toolbar-left,
  .explorer-toolbar-right {
    justify-content: space-between;
  }

  .view-switch a,
  .view-switch span {
    padding: .42rem .5rem;
  }

  .sort-control {
    flex: 1;
    justify-content: space-between;
  }

  .event-results-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   Reduced motion support
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  .map-results-panel,
  .filter-panel,
  .coordinate-marker,
  .nav-chevron {
    transition: none;
  }

  .map-floating-controls button.loading i {
    animation: none;
  }
}