/* =====================================================================
   HALAMAN DAFTAR EVENT (/events) — 3 Okt 2026
   Kartu event sama dengan beranda (.hv-card, disalin dari home.css)
   ===================================================================== */
.elx { --ink: #0d1b2e; --soft: #4d5c74; --muted: #8894a8; --line: #e4e9f0; --brand: #1e5bd6; --brand-soft: #e8f0fe;
  background: #f5f7fb; padding: 26px 0 70px; font-family: "Plus Jakarta Sans", sans-serif; color: var(--ink); }
.elx *, .elx *::before, .elx *::after { box-sizing: border-box; }
.elx ul, .elx li { padding-right: 0; }
.elx-crumb { font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.elx-crumb a { color: var(--brand); }
.elx-head h1 { margin: 0; font-size: 34px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.2; white-space: normal; }
.elx-head p { margin: 6px 0 0; font-size: 15px; color: var(--soft); line-height: 1.5; }

/* cari */
.elx-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 22px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 30px rgba(13, 27, 46, .06); }
.elx-search__field { display: flex; align-items: center; gap: 10px; height: 52px; margin: 0; padding: 0 16px; border-radius: 12px; background: #f5f7fb; color: var(--muted); min-width: 0; }
.elx-search__field:focus-within { background: #fff; box-shadow: 0 0 0 2px var(--brand) inset; }
.elx-search__field svg { width: 18px; height: 18px; flex: none; }
.elx-search__field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; box-shadow: none; padding: 0; font: 500 15px/1 inherit; font-family: inherit; color: var(--ink); }
.elx-search__btn { height: 52px; padding: 0 28px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-family: inherit; font-size: 15px; font-weight: 800; cursor: pointer; }
.elx-search__btn:hover { background: #0f3a8f; }
.elx-filter-btn { display: none; align-items: center; gap: 8px; height: 52px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--ink); color: #fff; font-family: inherit; font-size: 14px; font-weight: 800; cursor: pointer; }
.elx-filter-btn svg { width: 17px; height: 17px; }
.elx-filter-btn__n { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--brand); font-size: 11.5px; display: inline-flex; align-items: center; justify-content: center; }

/* tata letak */
.elx-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 28px; margin-top: 26px; align-items: start; }

/* filter (desktop: kolom kiri) */
.elx-filter { position: sticky; top: 20px; }
.elx-filter__backdrop, .elx-filter__grip, .elx-filter__x, .elx-filter__foot { display: none; }
.elx-filter__box { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px 20px; }
.elx-filter__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.elx-filter__top h2 { margin: 0; font-size: 17px; font-weight: 800; color: var(--ink); }
.elx-filter__reset { font-size: 13px; font-weight: 700; color: var(--brand); }
.elx-fg { margin: 0; padding: 16px 0; border: 0; border-top: 1px solid #eef1f6; min-width: 0; }
.elx-filter__top + .elx-filter__body .elx-fg:first-child { margin-top: 12px; }
.elx-fg legend, .elx-legend { display: block; width: auto; margin: 0 0 10px; padding: 0; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); line-height: 1.3; }
.elx-fg legend { float: left; width: 100%; }
.elx-fg legend + * { clear: both; }
.elx-fg--last { padding-bottom: 0; }
.elx-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.elx-pill { position: relative; margin: 0; cursor: pointer; }
.elx-pill input, .elx-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.elx-pill span { display: inline-flex; align-items: center; min-height: 38px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 700; color: #33425b; line-height: 1.25; transition: border-color .15s, background .15s; }
.elx-pill:hover span { border-color: #b9c6db; }
.elx-pill input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: #0f3a8f; }
.elx-pill input:focus-visible + span, .elx-seg input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.elx-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; background: #f1f4f9; border-radius: 12px; }
.elx-seg label { position: relative; margin: 0; cursor: pointer; }
.elx-seg span { display: flex; align-items: center; justify-content: center; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--soft); }
.elx-seg input:checked + span { background: #fff; color: #0f3a8f; font-weight: 800; box-shadow: 0 1px 4px rgba(13, 27, 46, .12); }
.elx-select { width: 100%; height: 46px; padding: 0 36px 0 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238894a8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; -webkit-appearance: none; appearance: none; font-family: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.elx-select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(30, 91, 214, .12); }
.elx-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0; font-size: 14px; font-weight: 700; color: #33425b; cursor: pointer; }
.elx-switch input { width: 20px; height: 20px; margin: 0; accent-color: var(--brand); cursor: pointer; flex: none; }

/* bar hasil */
.elx-bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.elx-chips { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.elx-count { font-size: 14px; color: var(--soft); margin-right: 4px; }
.elx-count b { color: var(--ink); }
.elx-chip { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px 0 12px; border-radius: 999px; background: var(--ink); color: #fff !important; font-size: 13px; font-weight: 700; max-width: 100%; }
.elx-chip svg { width: 12px; height: 12px; flex: none; opacity: .8; }
.elx-chip:hover { background: #24344f; }
.elx-sort { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13.5px; color: var(--soft); }
.elx-sort select { height: 40px; padding: 0 30px 0 10px; border: 1px solid var(--line); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238894a8' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; -webkit-appearance: none; appearance: none; font-family: inherit; font-size: 13.5px; font-weight: 700; color: var(--ink); cursor: pointer; }

/* grid hasil */
.elx-grid.hv-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.elx-more { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-top: 30px; }
.elx-more__info { font-size: 13px; color: var(--muted); }
.elx-btn { display: inline-flex; align-items: center; justify-content: center; height: 48px; padding: 0 26px; border-radius: 12px; border: 1px solid transparent; font-family: inherit; font-size: 14.5px; font-weight: 800; cursor: pointer; text-decoration: none; }
.elx-btn--primary { background: var(--brand); color: #fff !important; }
.elx-btn--primary:hover { background: #0f3a8f; }
.elx-btn--ghost { background: #fff; border-color: var(--line); color: var(--ink) !important; }
.elx-btn--ghost:hover { border-color: #b9c6db; }
.elx-more__btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.elx-empty { display: flex; align-items: center; gap: 20px; padding: 28px; border: 1px dashed #c9d3e3; border-radius: 18px; background: #fff; }
.elx-empty__ico { width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; flex: none; }
.elx-empty__ico svg { width: 26px; height: 26px; }
.elx-empty__text { flex: 1; min-width: 0; }
.elx-empty h2 { margin: 0 0 4px; font-size: 17px; font-weight: 800; color: var(--ink); white-space: normal; }
.elx-empty p { margin: 0; font-size: 14px; color: var(--soft); line-height: 1.55; }
.elx-archive { margin: 28px 0 0; text-align: center; font-size: 13.5px; }
.elx-archive a { color: var(--soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- kartu event (sama dengan beranda) ---------- */
.hv-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.hv-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #e4e9f0; border-radius: 18px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
.hv-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(13, 27, 46, .10); }
.hv-card__media { position: relative; display: block; aspect-ratio: 16 / 10; background: #0e1a33; overflow: hidden; }
.hv-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hv-card__date { position: absolute; left: 12px; top: 12px; width: 48px; padding: 6px 0; border-radius: 12px; background: #fff; text-align: center; box-shadow: 0 6px 14px rgba(13, 27, 46, .18); line-height: 1.1; }
.hv-card__date b { display: block; font-size: 18px; font-weight: 800; color: #0d1b2e; }
.hv-card__date span { display: block; font-size: 10.5px; font-weight: 800; color: #d93036; letter-spacing: .06em; }
.hv-card__tag { position: absolute; right: 12px; top: 12px; padding: 5px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 800; }
.hv-card__tag--warn { background: #fff1d6; color: #9a5b00; }
.hv-card__tag--out { background: #fde2e1; color: #b42318; }
.hv-card__body { flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.hv-card__cat { font-size: 12px; font-weight: 800; color: #1e5bd6; }
.hv-card__title { margin: 0; font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: -.01em; white-space: normal; }
.hv-card__title a { color: #0d1b2e; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hv-card__title a:hover { color: #1e5bd6; }
.hv-card__meta { display: flex; align-items: center; gap: 6px; font-size: 13px; color: #4d5c74; }
.hv-card__meta svg { width: 14px; height: 14px; flex: none; }
.hv-card__foot { margin-top: auto; padding-top: 10px; border-top: 1px dashed #e4e9f0; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hv-card__price { font-size: 15px; font-weight: 800; color: #0d1b2e; }
.hv-card__price small { font-size: 12px; font-weight: 600; color: #8894a8; }
.hv-card__price--free { color: #0b7a3e; }
.hv-card__price--soon { color: #8894a8; font-size: 13.5px; }
.hv-card__org { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.hv-card__org--initial { display: inline-flex; align-items: center; justify-content: center; background: #0d1b2e; color: #fff; font-size: 12px; font-weight: 800; }
.hv-card__org--initial { line-height: 1; }

@media (max-width: 1199.98px) {
  .elx-grid.hv-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------- HP & tablet: filter jadi panel bawah ---------- */
@media (max-width: 991.98px) {
  .elx { padding-top: 18px; }
  .elx-head h1 { font-size: 26px; }
  .elx-head p { font-size: 14px; }
  .elx-search { grid-template-columns: minmax(0, 1fr) auto; position: sticky; top: 0; z-index: 20; margin-top: 14px; padding: 8px; border-radius: 16px; }
  .elx-search__field { height: 48px; padding: 0 12px; }
  .elx-search__btn { display: none; }
  .elx-filter-btn { display: inline-flex; height: 48px; }
  .elx-layout { grid-template-columns: 1fr; margin-top: 16px; }
  .elx-filter { position: fixed; inset: 0; z-index: 1050; visibility: hidden; pointer-events: none; }
  .elx-filter.is-open { visibility: visible; pointer-events: auto; }
  .elx-filter__backdrop { display: block; position: absolute; inset: 0; background: rgba(13, 27, 46, .55); opacity: 0; transition: opacity .2s; }
  .elx-filter.is-open .elx-filter__backdrop { opacity: 1; }
  .elx-filter__box { position: absolute; left: 0; right: 0; bottom: 0; max-height: 88vh; display: flex; flex-direction: column; padding: 0; border: 0; border-radius: 22px 22px 0 0; transform: translateY(100%); transition: transform .25s ease; }
  .elx-filter.is-open .elx-filter__box { transform: none; }
  .elx-filter__grip { display: block; width: 40px; height: 4px; margin: 10px auto 0; border-radius: 4px; background: #d5dce7; }
  .elx-filter__top { padding: 6px 8px 4px 16px; }
  .elx-filter__reset { display: none; }
  .elx-filter__x { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--soft); cursor: pointer; }
  .elx-filter__x svg { width: 22px; height: 22px; }
  .elx-filter__body { flex: 1; overflow-y: auto; padding: 0 16px; overscroll-behavior: contain; }
  .elx-filter__body .elx-fg:first-child { border-top: 0; margin-top: 0 !important; padding-top: 6px; }
  .elx-filter__foot { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); border-top: 1px solid #eef1f6; }
  .elx-filter__foot .elx-btn { width: 100%; height: 50px; padding: 0 12px; }
  html.elx-lock, html.elx-lock body { overflow: hidden; }
  .elx-sort span { display: none; }
}
@media (max-width: 575.98px) {
  .elx-head h1 { font-size: 24px; }
  .elx-head p { display: none; }
  .elx-bar { flex-direction: column; align-items: stretch; gap: 10px; }
  .elx-count { width: 100%; }
  .elx-sort select { width: 100%; }
  .elx-sort { width: 100%; }
  .elx-empty { flex-direction: column; align-items: flex-start; padding: 22px; }
  .elx-grid.hv-grid { grid-template-columns: 1fr; gap: 12px; }
  .hv-card { flex-direction: row; border-radius: 16px; }
  .hv-card__media { width: 118px; flex: none; aspect-ratio: auto; min-height: 132px; }
  .hv-card__date { left: 8px; top: 8px; width: 40px; border-radius: 10px; padding: 4px 0; }
  .hv-card__date b { font-size: 15px; }
  .hv-card__date span { font-size: 9.5px; }
  .hv-card__tag { right: auto; left: 8px; top: auto; bottom: 8px; font-size: 10.5px; padding: 3px 8px; }
  .hv-card__body { padding: 12px 14px; gap: 4px; min-width: 0; }
  .hv-card__title { font-size: 15px; }
  .hv-card__meta { font-size: 12.5px; }
  .hv-card__foot { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .hv-card, .elx-filter__box, .elx-filter__backdrop { transition: none; } }
.page-wrapper:has(.elx) { overflow: visible; overflow-x: clip; }
