/* =====================================================================
   ALL EVENTS PAGE (html/events.html)
   Uses the shared card and filter styles from site.css + home.css.
   ===================================================================== */

/* the nav sits on the dark header, like the homepage */
.events-head { background: var(--ink); color: #fff; padding: 132px 0 44px; margin-top: -68px; }
.events-head .back-link { display: inline-block; color: var(--lime); font-weight: 700; text-decoration: none; margin-bottom: 14px; font-size: 14px; }
.events-head .back-link:hover { text-decoration: underline; }
.events-head h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; letter-spacing: -0.04em; margin-bottom: 10px; }
.events-head p { color: rgba(255,255,255,.72); font-size: 17px; margin: 0; max-width: 60ch; }

.events-body { padding: 32px 0 80px; }
.result-count { color: var(--muted); font-weight: 600; margin: 0 0 16px; }
.nav-links a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.1); }

/* numbered pages */
.pages { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 36px; }
.pages a, .pages span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; text-decoration: none; color: var(--ink); }
.pages a:hover { border-color: var(--ink); }
.pages .current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pages .gap { border: 0; background: none; min-width: 20px; padding: 0; }
.pages .disabled { opacity: .4; pointer-events: none; }

@media (max-width: 640px) {
  .events-head { padding: 92px 0 26px; }
  .events-head h1 { font-size: 36px; }
  .events-head p { font-size: 15px; }
  .events-body { padding: 18px 0 48px; }
  .pages { margin-top: 22px; gap: 4px; }
  .pages a, .pages span { min-width: 38px; height: 38px; padding: 0 10px; }
}

/* ---------- Sort, "Events near me" (row under the filters) ---------- */
.filters .list-tools { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; background: none; border: 0; padding: 0; }
.near-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font: 700 14px var(--font-body); color: var(--ink); cursor: pointer; }
.near-btn:hover { border-color: var(--ink); }
.near-btn svg { width: 18px; height: 18px; color: var(--ink); }
.near-note { color: var(--muted); font-size: 14px; font-weight: 600; flex: 1; min-width: 160px; }
.filters .sort-label { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; padding: 0 12px; }
.sort-label span { font-weight: 700; font-size: 14px; color: var(--muted); }
.sort-label select { padding: 11px 0; }
@media (max-width: 640px) { .near-btn { flex: 1; justify-content: center; } .filters .sort-label { margin-left: 0; flex: 1; } .near-note { order: 3; flex-basis: 100%; } }
