/* ==========================================================================
   Berarti · Halaman Event (daftar semua event)
   Memakai token dan komponen dari style.css. Mobile-first, desktop mulai 1024px.
   ========================================================================== */

/* ---------- Header ---------- */
.el-hero { background: var(--green) url(../img/hero-bg.svg) no-repeat center bottom -820px / 1600px auto; color: var(--cream); text-align: center; padding: 120px 0 72px; }
.el-h1 { margin-top: 18px; font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 10.5vw, 44px); line-height: 1.04; letter-spacing: -0.02em; color: #FCFCFC; text-shadow: 0 5px 18px rgba(0, 0, 0, .35); }
.el-lead { margin: 16px auto 0; max-width: 680px; font-size: 15.5px; line-height: 1.65; color: rgba(247, 243, 232, .8); }

@media (min-width: 1024px) {
  .el-hero { padding: 160px 0 110px; background-size: 2080px auto; background-position: center bottom -760px; }
  .el-h1 { margin-top: 22px; font-size: 78px; }
  .el-lead { margin-top: 22px; font-size: 18px; }
}

/* ---------- Judul section ---------- */
.el-h2 { margin-top: 16px; font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 8.6vw, 38px); line-height: 1.07; letter-spacing: -0.02em; color: var(--ink); text-shadow: 0 5px 16px rgba(242, 104, 16, .2); }
.btn-lg { height: 52px; padding: 0 22px; font-size: 15px; }

/* ---------- Event terdekat ---------- */
.el-near { background: var(--body); padding: 56px 0 40px; }
.near { display: flex; flex-direction: column-reverse; gap: 22px; margin-top: 24px; padding: 14px 14px 24px; border-radius: 26px; color: var(--cream); background: radial-gradient(500px 300px at 0% 0%, rgba(52, 96, 34, .9), rgba(52, 96, 34, 0) 70%), var(--green); }
.near-ph { display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 1448 / 1086; box-shadow: var(--photo-glow); }
.near-ph img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.near-ph:hover img { scale: 1.03; }
.near-tx { padding: 0 6px; }
.near-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.near-tags span { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.near-tags .t-o { background: var(--orange); color: #fff; }
.near-tags .t-l { background: rgba(247, 243, 232, .12); border: 1px solid rgba(247, 243, 232, .3); }
.near h3 { margin-top: 14px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.12; color: #FCFCFC; }
.near-info { display: grid; gap: 10px; margin-top: 16px; }
.near-info li { display: flex; gap: 12px; align-items: center; font-size: 14.5px; font-weight: 500; color: rgba(247, 243, 232, .9); }
.near-info svg { width: 18px; height: 18px; flex: none; color: var(--orange-soft); }
.near-lab { display: block; margin-top: 22px; color: rgba(247, 243, 232, .65); }
.near-cd { margin-top: 6px; }
.near-acts { display: grid; gap: 10px; margin-top: 22px; }
.near-acts .btn { width: 100%; }

/* Mobile: kartu putih terang (desktop tetap panel hijau) */
@media (max-width: 1023.98px) {
  .near { background: #fff; color: var(--ink); box-shadow: 0 0 38px rgba(22, 51, 16, .08), 0 14px 30px -20px rgba(22, 51, 16, .35); }
  .near h3 { color: var(--ink); }
  .near-tags .t-l { background: var(--mint); border-color: transparent; color: var(--ink); }
  .near-info { gap: 0; border-top: 1px solid #EEF4EA; }
  .near-info li { padding: 11px 0; border-bottom: 1px solid #EEF4EA; color: var(--ink-2); }
  .near-info svg { color: var(--orange); }
  .near-lab { color: var(--ink-3); }
  .near-ph { box-shadow: none; }
  .near .btn-line-light { border-color: var(--ink); color: var(--ink); }
}

@media (min-width: 1024px) {
  .el-near { padding: 96px 0 60px; }
  .el-h2 { margin-top: 18px; font-size: 48px; line-height: 1.05; }
  .near { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 40px; align-items: center; margin-top: 34px; padding: 50px; border-radius: 32px; }
  .near-ph { border-radius: 22px; rotate: 2deg; }
  .near-tx { padding: 0; }
  .near h3 { margin-top: 16px; font-size: 40px; line-height: 1.1; }
  .near-info { gap: 12px; margin-top: 22px; }
  .near-info li { font-size: 15.5px; }
  .near-lab { margin-top: 26px; }
  .near-cd { font-size: 44px; gap: 10px; }
  .near-cd small { font-size: 12px; }
  .near-acts { display: flex; gap: 10px; margin-top: 26px; }
  .near-acts .btn { width: auto; }
  .btn-lg { height: 54px; padding: 0 24px; font-size: 15.5px; }
}

/* ---------- Semua event ---------- */
.el-all { background: var(--body); padding: 40px 0 72px; }
.el-grid { display: grid; gap: 22px; margin-top: 24px; }
.el-grid > * { min-width: 0; }
.el-side { padding: 18px; border-radius: 22px; background: #fff; box-shadow: 0 0 30px rgba(22, 51, 16, .07), 0 14px 30px -22px rgba(22, 51, 16, .4); }
.el-gh { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.el-grp + .el-grp { margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEF4EA; }
.el-opts { display: grid; gap: 2px; margin-top: 10px; }
.el-opt { display: flex; justify-content: space-between; align-items: center; width: 100%; padding: 9px 10px; border: 0; border-radius: 10px; background: none; font: inherit; font-size: 14.5px; color: var(--ink); text-align: left; cursor: pointer; transition: background .2s; }
.el-opt:hover { background: #F3F9EF; }
.el-opt.on { background: var(--mint); font-weight: 600; }
.el-opt small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.el-sw { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; }
.el-sw input { position: absolute; opacity: 0; pointer-events: none; }
.el-sw i { position: relative; width: 42px; height: 24px; border-radius: 999px; background: #CFE0C6; transition: background .2s; }
.el-sw i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .15); transition: translate .2s var(--ease-out); }
.el-sw input:checked + i { background: var(--orange); }
.el-sw input:checked + i::after { translate: 18px 0; }
.el-sw input:focus-visible + i { outline: 2px solid var(--orange); outline-offset: 2px; }
.el-mbar, .el-shade, .el-sheet-top, .el-sheet-go { display: none; }

/* Mobile: chip kategori yang bisa digeser + tombol Filter yang membuka lembar bawah */
@media (max-width: 1023.98px) {
  .el-side { padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .el-grp-cat .el-gh { display: none; }
  .el-grp-cat .el-opts { display: flex; gap: 8px; margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 2px; overflow-x: auto; scrollbar-width: none; }
  .el-grp-cat .el-opts::-webkit-scrollbar { display: none; }
  .el-grp-cat .el-opt { flex: none; width: auto; gap: 6px; height: 38px; padding: 0 15px; border-radius: 999px; border: 1.5px solid var(--ink); background: rgba(255, 255, 255, .6); font-size: 13.5px; font-weight: 600; }
  .el-grp-cat .el-opt.on { background: var(--green); color: #F0F0F0; }
  .el-grp-cat .el-opt.on small { color: rgba(240, 240, 240, .7); }
  .el-mbar { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
  .el-mbar span { font-size: 13.5px; color: var(--ink-3); }
  .el-fbtn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 12px; border: 1.5px solid #DCE8D5; background: #fff; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
  .el-fbtn b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--orange); color: #fff; font-size: 11px; }
  .el-fbtn b[hidden] { display: none; }
  .el-shade { display: block; position: fixed; z-index: 200; inset: 0; background: rgba(15, 30, 10, .45); opacity: 0; transition: opacity .25s; }
  .el-shade[hidden] { display: none; }
  .el-shade.is-on { opacity: 1; }
  .el-sheet { position: fixed; z-index: 201; left: 0; right: 0; bottom: 0; max-height: 85vh; overflow-y: auto; padding: 10px 20px calc(22px + env(safe-area-inset-bottom)); border-radius: 24px 24px 0 0; background: #fff; box-shadow: 0 -20px 50px rgba(22, 51, 16, .25); translate: 0 105%; visibility: hidden; transition: translate .3s var(--ease-out), visibility 0s .3s; }
  .el-sheet.is-open { translate: 0 0; visibility: visible; transition: translate .3s var(--ease-out); }
  .el-sheet::before { content: ""; display: block; width: 40px; height: 4px; margin: 0 auto 12px; border-radius: 4px; background: #D6E2D0; }
  .el-sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
  .el-sheet-h { font-family: var(--serif); font-size: 20px; color: var(--ink); }
  .el-sheet-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: #F1F6EE; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
  .el-sheet .el-opts { display: flex; flex-wrap: wrap; gap: 8px; }
  .el-sheet .el-opt { width: auto; height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(30, 55, 19, .3); font-size: 13.5px; }
  .el-sheet .el-opt.on { background: var(--mint); border-color: var(--green); }
  .el-sheet-go { display: flex; width: 100%; height: 50px; margin-top: 20px; font-size: 15px; }
  body.sheet-lock { overflow: hidden; }
}
.el-cards { display: grid; gap: 18px; }
.elc { display: flex; flex-direction: column; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: 0 0 38px rgba(22, 51, 16, .08), 0 14px 30px -20px rgba(22, 51, 16, .35); }
.elc[hidden] { display: none; }
.elc-ph { display: block; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 1448 / 1086; }
.elc-ph img { width: 100%; height: 100%; object-fit: cover; transition: scale .6s var(--ease-out); }
.elc:hover .elc-ph img { scale: 1.04; }
.elc-bd { display: flex; flex-direction: column; flex: 1; padding: 16px 16px 20px; }
.elc-cat { font-size: 12px; font-weight: 600; color: var(--orange); }
.elc-h { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.2; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.elc-meta { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.elc-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: auto; padding-top: 16px; }
.elc-cd { margin-top: 4px; font-size: 24px; }
.elc-price { font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--orange); text-shadow: 0 0 14px rgba(255, 107, 0, .3); }
.elc-btn { width: 100%; height: 48px; margin-top: 16px; font-size: 15px; }
.el-empty { padding: 36px 24px; border: 2px dashed rgba(30, 55, 19, .2); border-radius: 22px; text-align: center; color: var(--ink-3); }
.el-empty b { display: block; font-family: var(--serif); font-weight: 400; font-size: 22px; color: var(--ink); }
.el-empty p { max-width: 420px; margin: 8px auto 0; font-size: 14.5px; line-height: 1.6; }
.el-empty .btn { margin-top: 18px; height: 50px; padding: 0 22px; font-size: 15px; }

/* ---------- Event telah selesai ---------- */
.el-done { background: var(--body); padding: 56px 0 80px; border-top: 1px solid #E3EEDD; }
.el-sub { margin-top: 10px; max-width: 560px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.eld-grid { display: grid; gap: 18px; margin-top: 24px; }
.eld { border-radius: 22px; background: #F4F7F2; border: 1px solid #E3EBDD; overflow: hidden; }
.eld-ph { position: relative; display: block; margin: 8px 8px 0; border-radius: 16px; overflow: hidden; aspect-ratio: 16 / 10; }
.eld-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; filter: grayscale(.75) brightness(.85); }
.eld-ph .ended-tag { left: 12px; top: 12px; }
.eld-bd { padding: 16px 18px 22px; }
.eld-cat { font-size: 12px; font-weight: 600; color: var(--ink-3); }
.eld-h { margin-top: 6px; font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.22; color: var(--ink-2); }
.eld-meta { margin-top: 8px; font-size: 13.5px; color: var(--ink-3); }
.eld-link { display: inline-block; margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.eld-cta { display: flex; flex-direction: column; justify-content: center; padding: 28px 24px; border-radius: 22px; background: var(--green); color: var(--cream); }
.eld-cta b { font-family: var(--serif); font-weight: 400; font-size: 24px; line-height: 1.15; color: #FCFCFC; }
.eld-cta p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: rgba(247, 243, 232, .75); }
.eld-cta .btn { margin-top: 20px; align-self: flex-start; }

@media (min-width: 1024px) {
  .el-done { padding: 90px 0 120px; }
  .el-sub { margin-top: 12px; font-size: 16px; }
  .eld-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 30px; }
  .eld-bd { padding: 16px 20px 24px; }
  .eld-cta { padding: 34px 32px; }
  .eld-cta b { font-size: 28px; }
}

@media (min-width: 1024px) {
  .el-all { padding: 60px 0 110px; }
  .el-grid { grid-template-columns: 280px minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 30px; }
  .el-side { position: sticky; top: 100px; padding: 22px; }
  .el-sheet { margin-top: 18px; padding-top: 16px; border-top: 1px solid #EEF4EA; }
  .el-cards { grid-template-columns: 1fr 1fr; gap: 22px; }
  .elc-bd { padding: 18px 20px 22px; }
  .elc-h { font-size: 23px; }
}
.elc-price-paid { text-align: right; line-height: 1.1; }
.elc-price-paid small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 500; color: var(--ink-3); text-shadow: none; }
