/* SpotWisata — gaya utama.
 * Seluruh warna berasal dari token tema (--brand, --accent, --bg, --surface, --ink, dst.)
 * yang ditulis PHP di <head>, sehingga tema pengelola berlaku otomatis. */

*, *::before, *::after { box-sizing: border-box; }
:root {
  --font-display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --shadow: 0 1px 2px rgb(0 0 0 / .05), 0 8px 24px -12px rgb(0 0 0 / .18);
  --shadow-lg: 0 2px 4px rgb(0 0 0 / .06), 0 24px 48px -20px rgb(0 0 0 / .32);
  --ok: #1E8E5A; --ok-soft: color-mix(in srgb, #1E8E5A 14%, var(--surface));
  --warn: #B7791F; --warn-soft: color-mix(in srgb, #E0A526 18%, var(--surface));
  --err: #C0392B; --err-soft: color-mix(in srgb, #C0392B 13%, var(--surface));
  --info: #2563A8; --info-soft: color-mix(in srgb, #2563A8 12%, var(--surface));
  --topbar-h: 64px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 56px); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font: 400 15.5px/1.6 var(--font-body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
img, svg, video, canvas { max-width: 100%; }
img { height: auto; }
a { color: var(--brand-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4, .h2, .h3, .h4 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.015em; color: var(--ink); }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.4rem); font-weight: 800; }
h2, .h2 { font-size: clamp(1.35rem, 1.1rem + 1vw, 1.7rem); font-weight: 700; }
h3, .h3 { font-size: 1.15rem; font-weight: 700; }
h4, .h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 .8em; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .9em; background: var(--surface-2); padding: .1em .4em; border-radius: 6px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 1.5rem 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

/* ---------- utilitas ---------- */
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.page { padding-block: 24px 48px; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.center { text-align: center; }
.pad { padding: 16px; }
.nowrap { white-space: nowrap; }
.danger { color: var(--err) !important; }
.lead { font-size: 1.08rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--brand); color: var(--brand-ink); padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 8px; }
.row { display: flex; align-items: center; }
.row.between, .between { justify-content: space-between; }
.gap { gap: 12px; } .gap-s { gap: 8px; }
.wrap-row { flex-wrap: wrap; }
.grow { flex: 1 1 220px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-s { display: flex; flex-direction: column; gap: 8px; }
.section-gap { margin-top: 28px; }
.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.kv { display: inline-block; margin-right: 6px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid-3 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.grid-main { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); margin-bottom: 18px; }
@media (min-width: 900px) { .grid-main { grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); align-items: start; } }
.grid-2 + .card, .card + .grid-2, .grid-2 { margin-bottom: 18px; }

/* ---------- tombol ---------- */
.btn {
  --b: var(--brand); --bi: var(--brand-ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px; border: 1.5px solid var(--b); border-radius: 999px;
  background: var(--b); color: var(--bi); font: 600 .95rem/1.2 var(--font-body);
  text-decoration: none; cursor: pointer; transition: transform .15s var(--ease), filter .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.07); box-shadow: 0 6px 16px -8px var(--b); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; box-shadow: none; filter: none; }
.btn-accent { --b: var(--accent); --bi: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--brand-text); border-color: var(--line); }
.btn-ghost:hover { background: var(--brand-soft); border-color: var(--brand); box-shadow: none; }
.btn-danger { --b: var(--err); --bi: #fff; }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .86rem; }
.btn-lg { min-height: 52px; padding: 12px 24px; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-google { --b: #fff; --bi: #1f1f1f; border-color: #dadce0; }
.link { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 42px; height: 42px; border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgb(255 255 255 / .12); }
.back { display: inline-block; margin-bottom: 12px; font-weight: 600; text-decoration: none; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 40; background: var(--brand); color: var(--brand-ink); box-shadow: 0 1px 0 rgb(0 0 0 / .08); }
.topbar-in { display: flex; align-items: center; gap: 16px; height: var(--topbar-h); }
.brand { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; font: 700 1.2rem var(--font-display); letter-spacing: -.02em; }
.brand b { font-weight: 800; color: var(--accent); }
.topnav { display: none; gap: 4px; margin-left: 12px; }
.topnav a { color: inherit; text-decoration: none; padding: 8px 14px; border-radius: 999px; font-weight: 600; opacity: .85; }
.topnav a:hover, .topnav a.on { opacity: 1; background: rgb(255 255 255 / .14); }
@media (min-width: 760px) { .topnav { display: flex; } }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.top-actions .btn { --b: var(--accent); --bi: var(--accent-ink); }
.badge { position: absolute; top: 3px; right: 1px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font: 700 .7rem/18px var(--font-body); text-align: center; }
.bell { position: relative; }
.bell-panel, .usermenu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); width: min(360px, calc(100vw - 24px)); z-index: 60;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.bell-list { max-height: 60vh; overflow: auto; }
.bell-list a { display: block; padding: 11px 14px; color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); font-size: .9rem; }
.bell-list a:hover { background: var(--surface-2); }
.bell-list a.unread { background: var(--brand-soft); }
.bell-list a b { display: block; }
.bell-list a small { color: var(--muted); }
.push-cta { width: 100%; padding: 12px; border: 0; background: var(--surface-2); color: var(--brand-text); font: 600 .88rem var(--font-body); cursor: pointer; border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; cursor: pointer; border-radius: 50%; }
.usermenu summary::-webkit-details-marker { display: none; }
.usermenu summary img { display: block; border-radius: 50%; border: 2px solid rgb(255 255 255 / .5); object-fit: cover; }
.usermenu-panel { width: 260px; padding: 14px; }
.usermenu-panel a, .usermenu-panel button { display: block; width: 100%; padding: 9px 10px; margin: 0; border: 0; border-radius: 8px; background: none; color: inherit; font: 500 .95rem var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.usermenu-panel a:hover, .usermenu-panel button:hover { background: var(--surface-2); }
.usermenu-panel form { margin: 0; }
.subnav { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.subnav-in { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-block: 8px; }
.subnav-in::-webkit-scrollbar { display: none; }
.subnav a { flex: none; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.subnav a:hover { color: var(--ink); background: var(--surface-2); }
.subnav a.on { background: var(--brand-soft); color: var(--brand-text); }

/* ---------- tab bar mobile (pengunjung) ---------- */
.tabbar { position: fixed; inset: auto 0 0; z-index: 45; display: flex; justify-content: space-around; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px -18px rgb(0 0 0 / .4); }
.tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 72px; padding: 6px 10px; border-radius: 14px; color: var(--muted); text-decoration: none; font-size: .74rem; font-weight: 600; }
.tabbar svg { width: 24px; height: 24px; }
.tabbar a.on { color: var(--brand-text); background: var(--brand-soft); }
body:has(.tabbar) { padding-bottom: 72px; }
@media (min-width: 760px) { .tabbar { display: none; } body:has(.tabbar) { padding-bottom: 0; } }

.foot { padding: 28px 0; color: var(--muted); font-size: .85rem; border-top: 1px solid var(--line); margin-top: 32px; }

/* ---------- flash & toast ---------- */
.flashes { padding-top: 16px; }
.flash { display: block; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--radius-sm); border: 1px solid transparent; background: var(--info-soft); color: var(--ink); border-left: 4px solid var(--info); }
.flash-success { background: var(--ok-soft); border-left-color: var(--ok); }
.flash-error { background: var(--err-soft); border-left-color: var(--err); }
.flash-warn { background: var(--warn-soft); border-left-color: var(--warn); }
.flash.linkish { text-decoration: none; font-weight: 600; }
.flash.linkish::after { content: " ›"; }
.toast-zone { position: fixed; left: 50%; bottom: 88px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100vw - 24px)); pointer-events: none; }
.toast { padding: 12px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-weight: 500; animation: toast-in .25s var(--ease); pointer-events: auto; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- kartu, panel ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 18px; }
.stack > .card, .grid-2 > .card, .grid-main > .card, .grid-main > aside > .card, .grid-main .stack > .card { margin-bottom: 0; }
.card.inset { background: var(--surface-2); box-shadow: none; }
fieldset.card { min-width: 0; }
fieldset.card legend { font-weight: 700; padding: 0 6px; }
.panel-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.panel-head h1 { margin-bottom: 4px; }
.panel-head p { margin: 0; }
.empty { text-align: center; padding: 40px 20px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface); grid-column: 1 / -1; }
.empty.big { border: 0; background: none; padding: 64px 20px; }
.empty-code { font: 800 5rem/1 var(--font-display); color: var(--brand-soft); -webkit-text-stroke: 2px var(--brand); margin-bottom: 12px; }

/* KPI */
.kpis { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow); }
.kpi::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--brand); }
.kpi:nth-child(2)::before { background: var(--accent); }
.kpi span { display: block; color: var(--muted); font-size: .85rem; font-weight: 600; }
.kpi b { display: block; font: 800 1.9rem/1.15 var(--font-display); margin: 4px 0; letter-spacing: -.02em; }
.kpi b.kpi-text { font-size: 1.3rem; }
.kpi small { color: var(--muted); font-size: .8rem; }
.rank-badge { display: inline-flex; align-items: center; padding: 6px 14px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* status & chip */
.chip { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .78rem; font-weight: 600; border: 1px solid var(--line); }
.chip-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.status, .pay { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.pay { padding: 1px 8px; font-size: .74rem; margin-top: 2px; }
.status-active, .pay-paid { background: var(--ok-soft); color: var(--ok); }
.status-pending, .pay-unpaid, .pay-waiting { background: var(--warn-soft); color: var(--warn); }
.status-used { background: var(--info-soft); color: var(--info); }
.status-cancelled, .status-expired, .status-rejected, .status-suspended, .pay-failed, .pay-expired, .pay-refunded { background: var(--err-soft); color: var(--err); }

/* bintang */
.stars { color: var(--accent); letter-spacing: 1px; white-space: nowrap; }
.stars i { font-style: normal; color: var(--line); }
.star-one { color: var(--accent); }
.rating-num { font-weight: 700; }

/* bar */
.bar-row { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 38px; gap: 10px; align-items: center; margin-bottom: 8px; font-size: .9rem; }
.bar-row b { text-align: right; }
.bar { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: var(--brand); transition: width .6s var(--ease); }
.bar.alt i { background: var(--accent); }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding: 9px 0 9px 32px; border-bottom: 1px dashed var(--line); }
.checklist li::before { content: ""; position: absolute; left: 0; top: 10px; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); }
.checklist li.ok::before { content: "✓"; display: grid; place-items: center; background: var(--brand); border-color: var(--brand); color: var(--brand-ink); font-size: .75rem; font-weight: 800; }
.checklist li.ok a { color: var(--muted); }

/* ---------- form ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > span:first-child { font-weight: 600; font-size: .9rem; }
.field em { font-style: normal; color: var(--muted); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]):not([type=file]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--ink); font: 400 1rem var(--font-body); transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 100px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[readonly] { background: var(--surface-2); }
input[type=file] { font: inherit; font-size: .9rem; max-width: 100%; }
input[type=file]::file-selector-button { margin-right: 10px; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 .85rem var(--font-body); cursor: pointer; }
input[type=range] { width: 100%; accent-color: var(--brand); }
input[type=checkbox], input[type=radio] { accent-color: var(--brand); width: 18px; height: 18px; }
.check { display: flex; align-items: center; gap: 10px; margin: 8px 0 14px; cursor: pointer; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; }
.inline-field { margin: 0; flex-direction: row; align-items: center; gap: 8px; }
.inline-field > span:first-child { white-space: nowrap; }
.inline-field select { width: auto; }
.icon-input { font-size: 1.4rem !important; text-align: center; }
.sort-input { width: 72px !important; min-height: 34px !important; padding: 4px 8px !important; }
.grid-icon { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.grid-video { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-video { grid-template-columns: 1.4fr 1fr auto; align-items: end; } }
.file-pick { position: relative; display: inline-flex; }
.file-pick input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.file-pick span { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 18px; border: 1.5px dashed var(--brand); border-radius: 999px; color: var(--brand-text); font-weight: 600; }
.file-pick.has-file span { border-style: solid; background: var(--brand-soft); }
.thumb-sm { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); }
.thumb-sm.wide { width: 160px; height: 90px; }
.thumb-xs { width: 44px; height: 44px; flex: none; border-radius: 10px; object-fit: cover; }
.thumb-xs.icon { display: grid; place-items: center; font-size: 1.4rem; background: var(--brand-soft); }

/* segmented */
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
fieldset.seg { display: flex; border-radius: var(--radius-sm); padding: 6px; }
.seg legend { padding: 0 6px; font-weight: 600; font-size: .9rem; float: left; width: 100%; margin-bottom: 6px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-block; padding: 7px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; color: var(--muted); transition: background .15s; }
.seg span small { opacity: .7; margin-left: 2px; }
.seg label:hover span { color: var(--ink); }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); }
.seg input:focus-visible + span { outline: 3px solid var(--accent); }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.filters .seg { margin: 0; }

/* switch */
.switch { display: flex; gap: 14px; align-items: flex-start; cursor: pointer; }
.switch input { appearance: none; flex: none; width: 48px !important; height: 28px !important; margin: 2px 0 0; border-radius: 99px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s var(--ease); }
.switch input:checked { background: var(--brand); }
.switch input:checked::after { transform: translateX(20px); }
.switch input:disabled { opacity: .5; }
.switch span b, .switch span small { display: block; }
.switch span small { color: var(--muted); }

/* tabel */
.table-wrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .8rem; font-weight: 700; color: var(--muted); padding: 10px 12px; border-bottom: 2px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tbody tr:hover { background: var(--surface-2); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table.compact td { padding: 8px 4px; }
.table tr.total td { font-weight: 800; border-bottom: 0; border-top: 2px solid var(--ink); font-size: 1rem; }
.rank-table .rank-no { font: 800 1.2rem var(--font-display); color: var(--muted); width: 40px; }
.rank-table tbody tr:nth-child(1) .rank-no { color: var(--accent); }
.rank-table tbody tr:nth-child(-n+3) .rank-no { color: var(--brand-text); }
.pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 16px; }
.pager a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; background: var(--surface); }
.pager a.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }

/* ---------- karcis (elemen khas: tiket berlubang dengan sobekan) ---------- */
.karcis {
  --hole: 22px; position: relative; display: grid; grid-template-columns: 1fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.karcis-main { padding: 22px; }
.karcis-stub { position: relative; padding: 20px 22px 22px; border-top: 2px dashed var(--line); background: linear-gradient(var(--brand-soft), var(--brand-soft)) padding-box; border-radius: 0 0 var(--radius) var(--radius); }
.karcis-stub::before, .karcis-stub::after { content: ""; position: absolute; top: calc(var(--hole) / -2 - 1px); width: var(--hole); height: var(--hole); border-radius: 50%; background: var(--bg); border: 1px solid var(--line); }
.karcis-stub::before { left: calc(var(--hole) / -2 - 1px); clip-path: inset(0 0 0 50%); }
.karcis-stub::after { right: calc(var(--hole) / -2 - 1px); clip-path: inset(0 50% 0 0); }
.karcis h2 { margin-bottom: 12px; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px dotted var(--line); }
.price-list li:last-child { border: 0; }
.price-list small { display: block; color: var(--muted); font-size: .8rem; }
.price-list b { white-space: nowrap; font-family: var(--font-display); }
.karcis-stub .btn + p { margin: 10px 0 0; text-align: center; }

/* e-tiket */
.eticket { overflow: visible; }
.eticket .karcis-stub { display: flex; flex-direction: column; align-items: center; gap: 8px; background: #fff; color: #10191C; }
.eticket .karcis-stub code { background: none; font-weight: 700; letter-spacing: .08em; font-size: 1rem; color: #10191C; }
.eticket-kind { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .8rem; font-weight: 700; }
.eticket-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 12px 0; }
.eticket-meta dt { font-size: .78rem; color: var(--muted); }
.eticket-meta dd { margin: 0; font-weight: 700; }
.eticket.group { border: 2px solid var(--brand); }
.eticket.solo { max-width: 460px; margin: 16px auto; }
.eticket.is-used .qr { opacity: .25; filter: grayscale(1); }
.eticket.is-used .karcis-stub::before, .eticket.is-used .karcis-stub::after { background: var(--bg); }
.eticket.is-used .karcis-stub { position: relative; }
.eticket.is-used .karcis-main::after { content: "SUDAH DIGUNAKAN"; position: absolute; right: 14px; top: 14px; transform: rotate(8deg); padding: 3px 10px; border: 2px solid var(--err); color: var(--err); border-radius: 6px; font: 800 .7rem var(--font-display); letter-spacing: .08em; }
.eticket .karcis-main { position: relative; }
.ticket-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); margin-bottom: 20px; }
.eticket.mini { margin: 0; }
.eticket.mini .karcis-main { padding: 16px; }
.eticket.mini .karcis-main p { margin-bottom: 6px; }
.qr { display: grid; place-items: center; min-height: 120px; }
.qr img, .qr canvas, .qr svg { display: block; width: 100%; max-width: 220px; height: auto; image-rendering: pixelated; }
.eticket.solo .qr img { max-width: 280px; }
@media (min-width: 760px) {
  .eticket:not(.mini) { grid-template-columns: 1fr 260px; }
  .eticket:not(.mini) .karcis-stub { border-top: 0; border-left: 2px dashed var(--line); border-radius: 0 var(--radius) var(--radius) 0; }
  .eticket:not(.mini) .karcis-stub::before { top: calc(var(--hole) / -2 - 1px); left: calc(var(--hole) / -2 - 1px); clip-path: inset(50% 0 0 0); }
  .eticket:not(.mini) .karcis-stub::after { top: auto; bottom: calc(var(--hole) / -2 - 1px); left: calc(var(--hole) / -2 - 1px); right: auto; clip-path: inset(0 0 50% 0); }
  .eticket.solo { grid-template-columns: 1fr; }
  .eticket.solo .karcis-stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 var(--radius) var(--radius); }
  .eticket.solo .karcis-stub::before { top: calc(var(--hole) / -2 - 1px); left: calc(var(--hole) / -2 - 1px); clip-path: inset(0 0 0 50%); }
  .eticket.solo .karcis-stub::after { top: calc(var(--hole) / -2 - 1px); bottom: auto; right: calc(var(--hole) / -2 - 1px); left: auto; clip-path: inset(0 50% 0 0); }
}

/* ---------- jelajah ---------- */
.page-explore { padding-bottom: 40px; }
.explore-hero { background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
.explore-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 12% 110%, color-mix(in srgb, var(--accent) 45%, transparent) 0 18%, transparent 19%), repeating-radial-gradient(circle at 12% 110%, transparent 0 34px, rgb(255 255 255 / .06) 35px 36px); pointer-events: none; }
.explore-hero-in { position: relative; display: grid; gap: 20px; padding-block: 28px; }
.hero-copy h1 { color: inherit; font-size: clamp(2rem, 1.3rem + 3vw, 3.2rem); max-width: 14ch; }
.hero-copy p { opacity: .9; max-width: 46ch; font-size: 1.05rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.loc-status { font-size: .88rem; opacity: .9; }
.hero-map { height: 280px; border-radius: var(--radius); overflow: hidden; border: 3px solid rgb(255 255 255 / .25); box-shadow: var(--shadow-lg); background: var(--brand-soft); }
@media (min-width: 900px) { .explore-hero-in { grid-template-columns: 1fr 1.1fr; align-items: center; padding-block: 48px; } .hero-map { height: 380px; } }
.explore-body { padding-top: 22px; }
.explore-body .filters { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
.filters > * { min-width: 0; max-width: 100%; }
body { overflow-x: hidden; }
.search-box { position: relative; display: block; }
.search-box svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-box input { padding-left: 42px !important; border-radius: 999px !important; min-height: 50px !important; box-shadow: var(--shadow); }
.cat-row { position: relative; display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.cat { position: relative; flex: none; cursor: pointer; }
.cat input { position: absolute; opacity: 0; pointer-events: none; }
.cat span { display: inline-block; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .88rem; white-space: nowrap; }
.cat input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cat input:focus-visible + span { outline: 3px solid var(--accent); }
.result-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin: 18px 0 12px; }
.result-head h2 { margin: 0; }
.dest-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.dest-grid.dim .dest-card { opacity: .78; }
.dest-card { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.dest-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.dest-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--c, var(--brand)); display: grid; place-items: center; font-size: 3rem; }
.dest-card-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dest-dist { position: absolute; left: 12px; top: 12px; z-index: 1; padding: 5px 11px; border-radius: 999px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: .82rem; box-shadow: var(--shadow); }
.dest-dist.near { background: var(--accent); color: var(--accent-ink); }
.dest-rank { position: absolute; right: 12px; top: 12px; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .55); color: #fff; font: 800 .85rem var(--font-display); }
.dest-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.dest-card-body h3 { margin: 0; font-size: 1.12rem; }
.dest-card-body p { margin: 0; font-size: .88rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dest-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; font-size: .86rem; }
.dest-card-foot .price { font-weight: 800; color: var(--brand-text); }
.dest-card .cat-label { font-size: .78rem; font-weight: 600; color: var(--muted); }
.skeleton { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface) 50%, var(--surface-2) 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--radius); min-height: 260px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.me-marker { width: 18px; height: 18px; border-radius: 50%; background: #2563EB; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(37 99 235 / .25); }
.pin-marker { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--c, var(--brand)); border: 2px solid #fff; box-shadow: 0 3px 8px rgb(0 0 0 / .35); }
.pin-marker span { transform: rotate(45deg); font-size: 15px; }
.leaflet-container { font: inherit; }
.leaflet-popup-content { margin: 10px 12px; font-size: .88rem; }
.leaflet-popup-content a { font-weight: 700; }

/* ---------- katalog objek wisata ---------- */
.page-dest { padding-bottom: 40px; }
.dest-hero { position: relative; min-height: 340px; display: flex; align-items: flex-end; color: #fff; background: var(--brand); background-image: linear-gradient(180deg, rgb(0 0 0 / .1) 0%, rgb(0 0 0 / .15) 40%, rgb(0 0 0 / .72) 100%), var(--cover, linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent)))); background-size: cover; background-position: center; }
@media (min-width: 900px) { .dest-hero { min-height: 440px; } }
.dest-hero-in { padding-block: 32px; }
.dest-hero h1 { color: #fff; font-size: clamp(2rem, 1.2rem + 3.4vw, 3.6rem); margin-bottom: 8px; max-width: 18ch; text-shadow: 0 2px 20px rgb(0 0 0 / .3); }
.dest-logo { width: 72px; height: 72px; border-radius: 18px; border: 3px solid #fff; object-fit: cover; box-shadow: var(--shadow-lg); margin-bottom: 12px; background: #fff; }
.dest-cat { display: inline-block; margin-bottom: 8px; padding: 4px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .82rem; }
.dest-tagline { font-size: 1.1rem; max-width: 52ch; opacity: .95; }
.dest-facts { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }
.dest-facts li { padding: 5px 12px; border-radius: 999px; background: rgb(0 0 0 / .35); backdrop-filter: blur(6px); font-size: .86rem; font-weight: 600; }
.dest-facts .stars i { color: rgb(255 255 255 / .35); }
.dest-tabs { position: sticky; top: var(--topbar-h); z-index: 30; background: var(--surface); border-bottom: 1px solid var(--line); }
.dest-tabs .wrap { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.dest-tabs a { flex: none; padding: 14px 14px; color: var(--muted); font-weight: 600; text-decoration: none; border-bottom: 3px solid transparent; font-size: .92rem; }
.dest-tabs a:hover, .dest-tabs a.on { color: var(--brand-text); border-bottom-color: var(--brand); }
.dest-layout { display: grid; gap: 24px; padding-top: 24px; }
@media (min-width: 960px) { .dest-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .dest-side { position: sticky; top: calc(var(--topbar-h) + 72px); } }
.block { margin-bottom: 36px; }
.block > h2 { display: flex; align-items: baseline; gap: 10px; }
.prose { max-width: 70ch; font-size: 1.02rem; }
.fac-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.fac { display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fac img { width: 72px; height: 72px; flex: none; object-fit: cover; border-radius: calc(var(--radius-sm) - 4px); cursor: zoom-in; }
.fac h3 { font-size: 1rem; margin-bottom: 2px; }
.fac p { margin: 0; font-size: .86rem; color: var(--muted); }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 180px), 1fr)); grid-auto-rows: 150px; grid-auto-flow: dense; }
.g-item { padding: 0; border: 0; border-radius: var(--radius-sm); overflow: hidden; cursor: zoom-in; background: var(--surface-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.g-item:hover img { transform: scale(1.05); }
.g-wide { grid-column: span 2; grid-row: span 2; }
.video-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.yt { margin: 0; }
.yt-play, .yt iframe { display: grid; place-items: center; width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--radius-sm); background: #000 center / cover no-repeat; cursor: pointer; }
.yt-play svg { transition: transform .2s var(--ease); filter: drop-shadow(0 4px 10px rgb(0 0 0 / .4)); }
.yt-play:hover svg { transform: scale(1.12); }
.yt figcaption { padding: 8px 2px; font-size: .9rem; font-weight: 600; gap: 8px; }
.yt figcaption form { margin: 0; }
.yt-preview { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); }
.yt-preview img { width: 140px; border-radius: 8px; }
.mini-map { height: 260px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); margin: 12px 0; z-index: 0; }
.picker-map { height: 340px; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); margin-bottom: 14px; z-index: 0; }
.sat { display: grid; gap: 20px; padding: 20px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
@media (min-width: 640px) { .sat { grid-template-columns: 180px 1fr; align-items: center; } }
.sat-score { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; }
.sat-score > b { font: 800 3.4rem/1 var(--font-display); color: var(--brand-text); }
.sat-score .stars { font-size: 1.3rem; }
.review-list, .reviews { display: grid; gap: 12px; }
.review { padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.review header { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.review p { margin: 0 0 6px; }
.review.is-hidden { opacity: .55; border-style: dashed; }
.reply { margin: 10px 0 0; padding: 10px 14px; border-left: 3px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: .92rem; }
.reply p { margin: 4px 0 0; }
.reply-form { margin-top: 10px; }
.buy-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 46; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgb(0 0 0 / .5); }
.buy-bar small { display: block; color: var(--muted); font-size: .76rem; }
.buy-bar b { font: 800 1.2rem var(--font-display); }
body:has(.buy-bar) .tabbar { display: none; }
body:has(.buy-bar) { padding-bottom: 84px; }
@media (min-width: 960px) { .buy-bar { display: none; } body:has(.buy-bar) { padding-bottom: 0; } }

/* lightbox */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgb(8 12 14 / .94); color: #fff; }
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgb(0 0 0 / .6); }
.lightbox figure { margin: 0; max-width: 94vw; text-align: center; }
.lightbox img { max-width: 94vw; max-height: 82vh; object-fit: contain; border-radius: 8px; }
.lightbox figcaption { padding: 10px; opacity: .85; }
.lb-close, .lb-nav { position: absolute; border: 0; background: rgb(255 255 255 / .12); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lb-close { top: 16px; right: 16px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 12px; } .lb-next { right: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgb(255 255 255 / .25); }

/* ---------- beli tiket ---------- */
.buy-layout { display: grid; gap: 18px; }
@media (min-width: 960px) { .buy-layout { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; } .sticky { position: sticky; top: calc(var(--topbar-h) + 20px); } }
.qty-list { display: grid; gap: 10px; }
.qty-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); transition: border-color .15s, background .15s; }
.qty-row.on { border-color: var(--brand); background: var(--brand-soft); }
.qty-row > div:first-child { display: flex; flex-direction: column; min-width: 0; }
.quota { color: var(--warn); font-weight: 600; }
.quota.out { color: var(--err); }
.stepper { display: flex; align-items: center; flex: none; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); overflow: hidden; }
.stepper button { width: 42px; height: 42px; border: 0; background: none; color: var(--brand-text); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.stepper button:hover { background: var(--brand-soft); }
.stepper button:disabled { opacity: .3; cursor: default; background: none; }
.stepper input { width: 52px !important; min-height: 42px !important; padding: 0 !important; border: 0 !important; border-radius: 0 !important; text-align: center; font-weight: 800 !important; font-size: 1.05rem !important; -moz-appearance: textfield; box-shadow: none !important; background: transparent !important; }
.stepper input::-webkit-inner-spin-button, .stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.pay-options { display: grid; gap: 10px; }
.pay-opt { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.pay-opt:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.pay-opt input { margin-top: 3px; flex: none; }
.pay-opt b, .pay-opt small { display: block; }
.pay-opt small { color: var(--muted); }
.sum-list { list-style: none; margin: 10px 0 0; padding: 0; }
.sum-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; font-size: .92rem; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.sum-total b { font: 800 1.6rem var(--font-display); color: var(--brand-text); }

/* ---------- pesanan ---------- */
.order-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.order-head h1 { margin-bottom: 4px; }
.order-head p { margin: 0 0 4px; }
.pay-card { border: 2px solid var(--accent); }
.pay-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.pay-total b { font: 800 2rem var(--font-display); color: var(--brand-text); }
.qris-box { display: grid; gap: 16px; align-items: start; margin: 12px 0 16px; }
@media (min-width: 640px) { .qris-box { grid-template-columns: 240px 1fr; } }
.qris-img { width: 100%; max-width: 280px; border-radius: 12px; border: 1px solid var(--line); background: #fff; padding: 8px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.cancel-form { margin-top: 14px; }
.proof-img { width: 100%; max-height: 520px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface-2); }
.ticket-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ticket-status li { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: .9rem; }
.ticket-status li.used { background: var(--ok-soft); }
.cta-review { background: var(--accent-soft); border-color: transparent; }
.order-list { display: grid; gap: 10px; }
.order-row { display: grid; grid-template-columns: 58px 1fr auto; gap: 4px 14px; align-items: center; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); color: inherit; text-decoration: none; box-shadow: var(--shadow); transition: transform .15s var(--ease); }
.order-row:hover { transform: translateX(3px); }
.order-row .chip { grid-column: 2 / -1; justify-self: start; }
.order-date { display: flex; flex-direction: column; align-items: center; padding: 6px 0; border-radius: 12px; background: var(--c, var(--brand)); color: #fff; font-size: .74rem; font-weight: 700; line-height: 1.1; }
.order-date b { font: 800 1.4rem var(--font-display); }
.order-info { display: flex; flex-direction: column; min-width: 0; }
.order-info b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- ulasan ---------- */
.review-form { max-width: 760px; }
.rate { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.rate legend { font-weight: 700; margin-bottom: 4px; padding: 0; }
.rate-stars { position: relative; display: inline-flex; flex-direction: row-reverse; gap: 2px; }
.rate-stars input { position: absolute; opacity: 0; pointer-events: none; }
.rate-stars label { font-size: 1.8rem; line-height: 1; color: var(--line); cursor: pointer; transition: color .1s, transform .15s var(--ease); padding: 2px; }
.rate-big .rate-stars label { font-size: 2.8rem; }
.rate-stars label:hover, .rate-stars label:hover ~ label, .rate-stars input:checked ~ label { color: var(--accent); }
.rate-stars label:hover { transform: scale(1.15); }
.rate-stars input:focus-visible + label { outline: 3px solid var(--brand); border-radius: 6px; }
.rate-word { display: block; min-height: 1.3em; font-weight: 600; }
.aspect-grid { display: grid; gap: 4px 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); padding: 16px; margin-bottom: 16px; border-radius: var(--radius-sm); background: var(--surface-2); }

/* ---------- panel pengelola ---------- */
.item-edit { padding: 0; }
.item-edit > summary { display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; list-style: none; }
.item-edit > summary::-webkit-details-marker { display: none; }
.item-edit > summary::after { content: "Ubah"; margin-left: auto; color: var(--brand-text); font-weight: 600; font-size: .86rem; }
.item-edit[open] > summary::after { content: "Tutup"; }
.item-edit > summary > span { display: flex; flex-direction: column; min-width: 0; }
.item-edit > :not(summary) { padding: 0 16px 16px; }
.item-edit.is-off { opacity: .65; }
.price-tag { flex: none; padding: 6px 10px; border-radius: 10px; background: var(--accent-soft); color: var(--ink); font: 800 .9rem var(--font-display); white-space: nowrap; }
.dropzone { display: grid; gap: 10px; justify-items: center; text-align: center; padding: 28px 18px; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--surface-2); transition: border-color .15s, background .15s; }
.dropzone.drag { border-color: var(--brand); background: var(--brand-soft); }
.dropzone input[type=file] { max-width: 100%; }
.dropzone label { display: flex; flex-direction: column; gap: 4px; cursor: pointer; }
.photo-admin { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.photo-admin figure { margin: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; background: var(--surface); }
.photo-admin img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.photo-admin figcaption { display: grid; gap: 6px; padding: 8px; }
.photo-admin figcaption input { min-height: 36px !important; padding: 6px 10px !important; font-size: .88rem !important; }
.qr-poster .qr { background: #fff; border-radius: var(--radius-sm); padding: 12px; margin-bottom: 12px; }
.qr-poster .field { margin-top: 12px; }
.dest-admin { display: grid; gap: 16px; }
@media (min-width: 700px) { .dest-admin { grid-template-columns: 180px 1fr; } }
.dest-admin-media { border-radius: var(--radius-sm); overflow: hidden; background: var(--brand-soft); display: grid; place-items: center; font-size: 3rem; min-height: 120px; }
.dest-admin-media img { width: 100%; height: 100%; object-fit: cover; }
.dest-admin-body p { margin-bottom: 4px; }
.dest-admin-body .actions { margin-top: 10px; }
.reject-box { margin-top: 10px; }
.reject-box summary { cursor: pointer; color: var(--err); font-weight: 600; font-size: .9rem; }
.reject-box form { margin-top: 8px; }

/* pindai */
.gate-count { margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--brand-soft); font-weight: 600; }
.gate-count b { font: 800 1.3rem var(--font-display); color: var(--brand-text); }
.scan-layout { display: grid; gap: 18px; }
@media (min-width: 900px) { .scan-layout { grid-template-columns: 1fr 1fr; align-items: start; } }
.scan-layout .card { margin: 0; }
.qr-reader { width: 100%; min-height: 260px; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden; background: #0b1215; color: #cfd8dc; border: 0 !important; }
.qr-reader video { border-radius: var(--radius-sm); }
.qr-reader img[alt="Info icon"], .qr-reader img[alt="Camera based scan"] { display: none !important; }
.manual { margin-top: 12px; }
.scan-result { min-height: 260px; transition: background .2s, border-color .2s; border-width: 2px; }
.scan-result .result-idle { text-align: center; padding: 30px 10px; }
.scan-result.r-ready { border-color: var(--info); background: var(--info-soft); }
.scan-result.r-checked_in { border-color: var(--ok); background: var(--ok-soft); }
.scan-result.r-wrong_date, .scan-result.r-unpaid { border-color: var(--warn); background: var(--warn-soft); }
.scan-result.r-already, .scan-result.r-invalid, .scan-result.r-wrong_place, .scan-result.r-error { border-color: var(--err); background: var(--err-soft); }
.scan-verdict { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.scan-verdict .mark { flex: none; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; font: 800 1.6rem var(--font-display); background: var(--info); }
.r-checked_in .mark { background: var(--ok); }
.r-wrong_date .mark, .r-unpaid .mark { background: var(--warn); }
.r-already .mark, .r-invalid .mark, .r-wrong_place .mark, .r-error .mark { background: var(--err); }
.scan-verdict h2 { margin: 0; }
.scan-tickets { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 4px; max-height: 240px; overflow: auto; }
.scan-tickets li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; background: var(--surface); font-size: .88rem; }
.scan-tickets li.used { opacity: .7; }
.scan-tickets li.new { background: var(--ok); color: #fff; }
.scan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.flash-anim { animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.97); } }

/* tampilan (tema) */
.theme-layout { display: grid; gap: 20px; }
@media (min-width: 960px) { .theme-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; } .preview-frame { position: sticky; top: calc(var(--topbar-h) + 64px); } }
.preset-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); }
.preset { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 6px; padding: 8px; border: 2px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; font-size: .86rem; font-weight: 600; text-align: center; }
.preset input { position: absolute; opacity: 0; }
.preset:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.preset:has(input:focus-visible) { outline: 3px solid var(--accent); }
.preset-swatch { display: flex; align-items: flex-end; gap: 4px; height: 54px; padding: 6px; border-radius: 8px; border: 1px solid rgb(0 0 0 / .08); }
.preset-swatch i { flex: 1; height: 100%; border-radius: 5px; }
.preset-swatch i:last-child { height: 55%; }
.preset-swatch.custom { justify-content: center; align-items: center; font-size: 1.4rem; background: conic-gradient(from 90deg, #E0525E, #F2B705, #4F7A1F, #0B5D8A, #7A3DA6, #E0525E); color: #fff; }
.color-grid { display: grid; gap: 12px; margin-bottom: 14px; }
.color-field { display: flex; gap: 14px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; }
.color-field input[type=color] { flex: none; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 12px; background: none; cursor: pointer; }
.color-field input[type=color]::-webkit-color-swatch-wrapper { padding: 0; }
.color-field input[type=color]::-webkit-color-swatch { border: 1px solid rgb(0 0 0 / .15); border-radius: 12px; }
.color-field input[type=color]::-moz-color-swatch { border: 1px solid rgb(0 0 0 / .15); border-radius: 12px; }
.color-field b, .color-field small { display: block; }
.color-field small { color: var(--muted); }
.color-field code { font-size: .8rem; }
.preview-frame > p { margin-bottom: 6px; }
.pv { overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); }
.pv-hero { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 6px; height: 150px; padding: 14px; color: #fff; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 60%, var(--accent))); background-size: cover; background-position: center; }
.pv-hero b { font: 800 1.3rem var(--font-display); text-shadow: 0 1px 10px rgb(0 0 0 / .3); }
.pv-cat { padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .74rem; font-weight: 700; }
.pv-body { padding: 14px; }
.pv-text { font-size: .86rem; }
.pv-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.pv-chips span { padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .78rem; }
.pv-karcis { margin-bottom: 10px; }
.pv-karcis .karcis-main { display: flex; justify-content: space-between; padding: 12px 14px; font-size: .9rem; }
.pv-karcis .karcis-stub { padding: 12px 14px; }
.pv-btn { display: block; padding: 9px; border-radius: 999px; background: var(--brand); color: var(--brand-ink); text-align: center; font-weight: 700; font-size: .88rem; }
.pv-link { color: var(--brand-text); font-weight: 600; text-decoration: underline; font-size: .86rem; margin-bottom: 8px; }
.pv-accent { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); font-size: .8rem; font-weight: 700; }

/* login & peran */
.auth { display: grid; place-items: center; min-height: 60vh; }
.auth-card { width: min(460px, 100%); padding: 32px 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); text-align: center; }
.auth-card .flash { text-align: left; }
.dev-login { margin-top: 20px; text-align: left; }
.dev-login summary { cursor: pointer; color: var(--muted); font-size: .88rem; }
.dev-login form { margin-top: 12px; }
.role-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin-top: 18px; }
.role-card { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.role-card .btn { margin-top: auto; }
.avatar { border-radius: 50%; object-fit: cover; }

/* aksesibilitas gerak */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .topbar, .tabbar, .foot, .buy-bar, .back, .link, .cta-review, .pay-card { display: none !important; }
  body { background: #fff; }
  .karcis { break-inside: avoid; box-shadow: none; }
}

/* radius pencarian pengunjung (halaman jelajah) */
.radius-box { padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.radius-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.radius-head label { font-weight: 700; }
.radius-head output { font: 800 1.35rem var(--font-display); color: var(--brand-text); }
.radius-box input[type=range] { height: 28px; margin: 2px 0 8px; }
.radius-chips { display: grid; grid-template-columns: repeat(auto-fit, minmax(58px, 1fr)); gap: 6px; }
.radius-box input[type=range]:focus { box-shadow: none; }
.chip-btn { padding: 5px 6px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: 600 .82rem var(--font-body); cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
@media (min-width: 900px) {
  .explore-body .filters { grid-template-columns: minmax(0, 1fr) minmax(280px, 380px); }
  .explore-body .filters .search-box { align-self: center; }
  .explore-body .filters .radius-box { grid-row: span 2; align-self: start; }
  .explore-body .filters .cat-row { grid-column: 1; }
}
