/* ==========================================================================
   Mess KPP — design system v2 (gaya aplikasi booking)
   Foto sebagai pusat perhatian, satu warna utama (emerald), aksen amber.
   Mobile-first, tanpa framework, tanpa CDN.
   ========================================================================== */
@font-face {
  font-family: "Jakarta";
  src: url("../fonts/jakarta-var.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --page: #ffffff;
  --bg: #f5f7f6;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --ink: #0e1b18;
  --ink-2: #33453f;
  --muted: #66756f;
  --line: #e1e6e3;
  --line-2: #edf1ef;
  --brand: #0b6e5c;
  --brand-ink: #07513f;
  --brand-soft: #dff2ec;
  --brand-tint: #f0f8f5;
  --accent: #ffb020;
  --accent-ink: #6f4500;
  --accent-soft: #fff3d6;
  --danger: #c4320a;
  --danger-soft: #fdeee8;
  --warn: #935b00;
  --warn-soft: #fff4dc;
  --ok: #067a50;
  --ok-soft: #e2f5ec;
  --info: #1f5fbf;
  --info-soft: #e8f0fc;

  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --shadow-1: 0 1px 2px rgba(14, 27, 24, .06);
  --shadow-card: 0 1px 2px rgba(14, 27, 24, .05), 0 10px 30px -14px rgba(14, 27, 24, .16);
  --shadow-pop: 0 28px 70px -24px rgba(14, 27, 24, .38), 0 4px 12px rgba(14, 27, 24, .06);
  --font: "Jakarta", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 768px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--page); color: var(--ink); font-family: var(--font); font-size: 15.5px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
body.shell { background: #f2f5f3; }
img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.12; letter-spacing: -.025em; font-weight: 780; }
h1 { font-size: clamp(2.1rem, 1.2rem + 3.8vw, 4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.55rem, 1.1rem + 1.7vw, 2.4rem); letter-spacing: -.032em; }
h3 { font-size: 1.1rem; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
:focus-visible { outline: 2.5px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--brand-soft); }

.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.icon-lg { width: 22px; height: 22px; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 780px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.xsmall { font-size: .78rem; }
.mono { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 10px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .span-2 { grid-column: span 2; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.m-0 { margin: 0 !important; }
.mt-6 { margin-top: 6px; } .mt-10 { margin-top: 10px; } .mt-16 { margin-top: 16px; } .mt-20 { margin-top: 20px; } .mt-24 { margin-top: 24px; } .mt-28 { margin-top: 28px; } .mt-40 { margin-top: 40px; }
.mb-10 { margin-bottom: 10px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-40 { margin-bottom: 40px; }
.pt-0 { padding-top: 0 !important; } .pt-24 { padding-top: 24px; }
.w-90 { width: 90px; }
@media (max-width: 720px) { .hide-sm { display: none !important; } }
@media (min-width: 721px) { .only-sm { display: none !important; } }

/* ---------------------------------------------------------------- buttons */
.btn {
  --b: var(--surface); --c: var(--ink); --bd: var(--line);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px;
  border-radius: 12px; border: 1px solid var(--bd); background: var(--b); color: var(--c); font: inherit; font-weight: 680;
  font-size: .94rem; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .18s var(--ease), border-color .18s, transform .08s, box-shadow .18s;
}
.btn:hover { --bd: #c9d1cd; color: var(--c); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { --b: var(--brand); --c: #fff; --bd: var(--brand); box-shadow: 0 6px 16px -8px rgba(11, 110, 92, .55); }
.btn-primary:hover { --b: var(--brand-ink); --bd: var(--brand-ink); }
.btn-accent { --b: var(--accent); --c: #2b1a00; --bd: var(--accent); box-shadow: 0 8px 20px -10px rgba(255, 176, 32, .8); }
.btn-accent:hover { --b: #f5a000; --bd: #f5a000; }
.btn-dark { --b: var(--ink); --c: #fff; --bd: var(--ink); }
.btn-light { --b: #fff; --c: var(--brand-ink); --bd: #fff; }
.btn-danger { --b: var(--surface); --c: var(--danger); --bd: #f1c8bb; }
.btn-danger:hover { --b: var(--danger-soft); --bd: #e9a693; }
.btn-ok { --b: var(--ok); --c: #fff; --bd: var(--ok); }
.btn-ghost { --b: transparent; --bd: transparent; }
.btn-ghost:hover { --b: rgba(14, 27, 24, .05); --bd: transparent; }
.btn-pill { border-radius: 999px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: .86rem; border-radius: 10px; }
.btn-lg { min-height: 54px; padding: 0 24px; font-size: 1rem; border-radius: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------------------------------------------------------------- forms */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .label { font-size: .84rem; font-weight: 680; color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--muted); }
.hint.ok { color: var(--ok); font-weight: 650; }
.hint.bad { color: var(--danger); font-weight: 650; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface);
  color: var(--ink); font: inherit; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: #9aa6a1; }
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86rem; }
.input:hover, .select:hover, .textarea:hover { border-color: #cdd5d1; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input-sm { min-height: 38px; padding: 6px 10px; font-size: .9rem; width: auto; }
.select { appearance: none; padding-right: 38px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2366756f' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--brand); flex: none; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

.segmented { display: inline-flex; padding: 4px; gap: 4px; background: var(--line-2); border-radius: 14px; width: 100%; }
.segmented label { flex: 1; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 12px; border-radius: 10px;
  font-weight: 680; font-size: .9rem; color: var(--ink-2); cursor: pointer; transition: background .15s, color .15s; text-align: center; }
.segmented input:checked + span { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(14, 27, 24, .12); }
.segmented input:focus-visible + span { outline: 2px solid var(--brand); }

.filedrop { position: relative; display: flex; gap: 14px; align-items: center; padding: 16px; border: 1.5px dashed #cdd5d1; border-radius: 16px;
  background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s; }
.filedrop:hover { border-color: var(--brand); background: var(--brand-tint); }
.filedrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.fd-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.filedrop strong { display: block; font-size: .94rem; }
.filedrop.has-file { border-style: solid; border-color: var(--brand); background: var(--brand-tint); }
.filedrop.has-file .fd-icon { background: var(--brand); color: #fff; }

/* ---------------------------------------------------------------- feedback */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .76rem; font-weight: 720;
  white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-pending { background: var(--warn-soft); color: var(--warn); }
.badge-approved { background: var(--ok-soft); color: var(--ok); }
.badge-checked_in { background: var(--info-soft); color: var(--info); }
.badge-checked_out, .badge-done { background: var(--line-2); color: var(--ink-2); }
.badge-rejected { background: var(--danger-soft); color: var(--danger); }
.badge-cancelled { background: #f1f3f2; color: var(--muted); }
.badge-internal { background: #efe9fb; color: #5b3fb0; }
.badge-internal::before, .chip::before { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 99px; font-size: .8rem; font-weight: 650;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.chip .icon { width: 15px; height: 15px; }
.chip-brand { background: var(--brand-soft); border-color: transparent; color: var(--brand-ink); }
.chip-accent { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }

.flash { display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; font-size: .93rem; font-weight: 580; border: 1px solid; }
.flash .icon { margin-top: 2px; }
.flash-success { background: var(--ok-soft); color: var(--ok); border-color: #bfe5d2; }
.flash-error { background: var(--danger-soft); color: var(--danger); border-color: #f4c8ba; }
.flash-info { background: var(--info-soft); color: var(--info); border-color: #cbdaf4; }
.flashes { display: grid; gap: 8px; margin: 16px 0; }
.note { padding: 13px 15px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-ink); font-size: .9rem; display: flex; gap: 10px; }
.note .icon { margin-top: 2px; }
.empty { text-align: center; padding: 44px 16px; color: var(--muted); }
.empty .icon { width: 34px; height: 34px; color: #b3bdb9; margin: 0 auto 10px; display: block; }

.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34, 197, 94, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .45); } 70% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }

/* ---------------------------------------------------------------- surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); }
.card-pad { padding: 20px; }
@media (min-width: 768px) { .card-pad { padding: 26px; } }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.card-body { padding: 20px; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 9px 16px; margin: 0; font-size: .93rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 580; overflow-wrap: anywhere; }
.kpi { padding: 18px 20px; }
.kpi-label { font-size: .8rem; font-weight: 680; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi-value { font-size: 1.95rem; font-weight: 800; letter-spacing: -.035em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-of { font-size: 1rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }
.kpi-sub { font-size: .8rem; color: var(--muted); }
.meter { height: 8px; border-radius: 99px; background: var(--line-2); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--brand); border-radius: inherit; }
.meter.warn > span { background: var(--accent); }
.meter.full > span { background: var(--danger); }
.meter-sm { height: 5px; max-width: 160px; }
.bars { display: grid; gap: 12px; }
.bar-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: .88rem; }
.bar-row .meter { grid-column: 1 / -1; height: 6px; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-size: .74rem; font-weight: 720; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 12px 16px;
  border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfb; }
.t-main { font-weight: 680; color: var(--ink); text-decoration: none; }
.t-main:hover { color: var(--brand); }
.t-sub { font-size: .82rem; color: var(--muted); }
@media (max-width: 760px) {
  .table.responsive thead { display: none; }
  .table.responsive, .table.responsive tbody, .table.responsive tr, .table.responsive td { display: block; width: 100%; }
  .table.responsive tr { padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
  .table.responsive td { padding: 4px 0; border: 0; display: flex; gap: 12px; justify-content: space-between; text-align: right; }
  .table.responsive td::before { content: attr(data-label); color: var(--muted); font-size: .8rem; text-align: left; flex: none; }
  .table.responsive td.t-first { display: block; text-align: left; padding-bottom: 6px; }
  .table.responsive td.t-first::before { display: none; }
}
.pagination { display: flex; gap: 8px; justify-content: center; align-items: center; padding: 16px; }

/* ================================================================ PUBLIC */
.announce { background: var(--ink); color: #e9f1ee; font-size: .86rem; }
.announce .container { display: flex; gap: 10px; align-items: center; padding-block: 9px; }
.announce .icon { color: var(--accent); }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .88); backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 20px -16px rgba(14, 27, 24, .4); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.025em; font-size: 1.06rem; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(145deg, #12866f, var(--brand-ink)); display: grid; place-items: center; color: #fff; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 10px -4px rgba(7, 81, 63, .6); }
.brand-mark svg { width: 20px; height: 20px; }
.brand small { display: block; font-size: .72rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-top: -2px; }
.nav { display: none; gap: 2px; margin-left: auto; align-items: center; }
.nav a:not(.btn) { padding: 9px 13px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 620; font-size: .93rem; }
.nav a:not(.btn):hover { background: var(--line-2); color: var(--ink); }
.nav .btn { margin-left: 8px; }
.mnav { margin-left: auto; position: relative; }
.mnav summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; right: 0; top: 54px; width: min(310px, calc(100vw - 32px)); background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-pop); padding: 8px; display: grid; z-index: 60;
  /* menu panjang (pengelola) tetap bisa di-scroll di HP; tombol Keluar selalu terlihat di bawah */
  max-height: calc(100vh - 84px); max-height: calc(100dvh - 84px); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; }
.mnav-panel > form:last-child { position: sticky; bottom: -8px; margin: 4px -8px -8px; padding: 8px; background: var(--surface);
  border-top: 1px solid var(--line-2); }
.mnav-panel > form:last-child .btn { margin-top: 0; }
.mnav-panel a:not(.btn) { padding: 12px 14px; border-radius: 10px; text-decoration: none; color: var(--ink); font-weight: 620; display: flex; gap: 10px; align-items: center; }
.mnav-panel a:not(.btn):hover { background: var(--line-2); }
.mnav-panel .btn { margin-top: 6px; }
@media (min-width: 920px) { .nav { display: flex; } .site-header .mnav { display: none; } }
.avatar { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--brand-soft); color: var(--brand-ink); display: inline-grid; place-items: center;
  font-size: .8rem; font-weight: 750; flex: none; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 28px 0 0; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 120px; background: radial-gradient(1200px 500px at 85% -10%, var(--brand-tint), transparent 60%); pointer-events: none; }
@media (min-width: 960px) { .hero { padding: 56px 0 0; } }
.hero-grid { position: relative; display: grid; gap: 28px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }
.hero h1 { margin-bottom: 18px; max-width: 14ch; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em; background: var(--accent); opacity: .45; border-radius: 4px; z-index: -1; }
.hero-lead { font-size: 1.08rem; color: var(--ink-2); max-width: 50ch; margin-bottom: 0; }
.live-pill { display: inline-flex; align-items: center; gap: 9px; padding: 7px 14px 7px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-1); font-size: .86rem; font-weight: 650; color: var(--ink-2); margin-bottom: 20px; text-decoration: none; }
.live-pill strong { color: var(--ink); }
.live-pill:hover { border-color: #cdd5d1; color: var(--ink-2); }

.mosaic { position: relative; display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; aspect-ratio: 1.12; }
.mosaic .m { position: relative; border-radius: 22px; overflow: hidden; background: var(--brand-soft); box-shadow: var(--shadow-card); }
.mosaic .m img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.mosaic .m:hover img { transform: scale(1.04); }
.mosaic .m1 { grid-row: span 2; }
.mosaic .m span.cap { position: absolute; left: 12px; bottom: 12px; padding: 5px 10px; border-radius: 99px; background: rgba(14, 27, 24, .62); color: #fff;
  font-size: .78rem; font-weight: 650; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.float-card { position: absolute; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-pop); padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: .86rem; }
.float-card .fc-icon { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); flex: none; }
.float-card strong { display: block; font-size: .95rem; letter-spacing: -.01em; }
.float-card.fc-1 { left: -26px; bottom: 18%; }
.float-card.fc-2 { right: -14px; top: -14px; }
@media (max-width: 959px) {
  .mosaic { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: 16 / 10; }
  .mosaic .m1 { grid-row: auto; }
  .mosaic .m2, .mosaic .m3, .float-card.fc-2 { display: none; }
  .float-card.fc-1 { left: 12px; bottom: 12px; padding: 10px 12px; }
}

/* search bar */
.searchbar-wrap { position: relative; z-index: 5; margin-top: 24px; padding-bottom: 40px; }
@media (min-width: 960px) { .searchbar-wrap { margin-top: 40px; padding-bottom: 64px; } }
.searchbar { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-pop); padding: 10px; display: grid; gap: 6px;
  grid-template-columns: 1fr 1fr; }
.searchbar > .sb-field:first-child, .searchbar > .sb-field:nth-child(4), .searchbar > .sb-submit { grid-column: 1 / -1; }
@media (max-width: 859px) {
  .searchbar > .sb-field { background: var(--surface-2); }
  .searchbar > .sb-field:hover { background: var(--line-2); }
}
.sb-field { position: relative; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 14px; transition: background .15s; min-width: 0; }
.sb-field:hover { background: var(--surface-2); }
.sb-field:focus-within { background: var(--brand-tint); }
.sb-field label, .sb-field .sb-label { font-size: .72rem; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.sb-field label .icon, .sb-field .sb-label .icon { width: 14px; height: 14px; }
.sb-field .input, .sb-field .select { border: 0; padding: 0; min-height: 28px; background-color: transparent; box-shadow: none !important; font-weight: 650; font-size: 1rem; }
.sb-field .select { padding-right: 26px; background-position: right 0 center; }
.sb-field .segmented { background: var(--line-2); margin-top: 2px; }
.sb-field .segmented span { min-height: 32px; font-size: .84rem; }
.sb-submit { display: flex; align-items: stretch; }
.sb-submit .btn { width: 100%; min-height: 56px; border-radius: 16px; font-size: 1rem; }
@media (min-width: 860px) {
  .searchbar > .sb-field:first-child, .searchbar > .sb-field:nth-child(4), .searchbar > .sb-submit { grid-column: auto; }
  .searchbar { grid-template-columns: 1.35fr 1fr 1fr 1.25fr auto; align-items: stretch; gap: 0; padding: 8px; border-radius: 999px; }
  .searchbar.no-type { grid-template-columns: 1.5fr 1fr 1fr auto; }
  .sb-field { border-radius: 999px; padding: 10px 22px; }
  .sb-field + .sb-field::before { content: ""; position: absolute; left: 0; top: 22%; bottom: 22%; width: 1px; background: var(--line); }
  .sb-field:hover::before, .sb-field:hover + .sb-field::before { opacity: 0; }
  .sb-submit { padding-left: 8px; }
  .sb-submit .btn { width: auto; border-radius: 999px; padding: 0 26px; min-height: 60px; }
}
.searchbar.compact { box-shadow: var(--shadow-card); }

/* stats band */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--surface); padding: 20px 22px; }
.stat b { display: block; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .88rem; font-weight: 550; }
.stat.is-live b { color: var(--ok); }

/* sections */
.section { padding: 56px 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section-alt { background: var(--bg); }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 28px; flex-wrap: wrap; }
.section-title h2 { margin: 0; }
.section-title p { margin: 8px 0 0; color: var(--muted); max-width: 540px; }

.chips-filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips-filter::-webkit-scrollbar { display: none; }
.chips-filter button { flex: none; display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 99px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-2); font: inherit; font-weight: 650; font-size: .9rem; cursor: pointer; transition: all .15s; }
.chips-filter button:hover { border-color: var(--ink); color: var(--ink); }
.chips-filter button.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chips-filter .count { font-size: .76rem; opacity: .7; font-variant-numeric: tabular-nums; }

/* location cards */
.loc-grid { display: grid; gap: 28px 22px; }
@media (min-width: 620px) { .loc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .loc-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.loc-card { display: flex; flex-direction: column; gap: 12px; text-decoration: none; color: var(--ink); }
.loc-card:hover { color: var(--ink); }
.loc-media { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--brand-soft); }
.loc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.loc-card:hover .loc-media img { transform: scale(1.05); }
.loc-media::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(to top, rgba(0, 0, 0, .28), transparent); pointer-events: none; }
.placeholder, .placeholder-lg { position: absolute; inset: 0; display: grid; place-items: center; color: var(--brand); text-align: center;
  background: radial-gradient(120% 90% at 20% 10%, #eaf7f2, #cfe9e0); }
.placeholder .ph-in, .placeholder-lg .ph-in { display: grid; gap: 6px; justify-items: center; }
.placeholder .icon { width: 40px; height: 40px; stroke-width: 1.3; opacity: .7; }
.placeholder b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.04em; opacity: .7; }
.avail { position: absolute; left: 12px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px;
  background: rgba(255, 255, 255, .95); font-size: .8rem; font-weight: 720; color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.avail.none { color: var(--muted); }
.avail.none::before { background: #b3bdb9; }
.avail.low::before { background: var(--accent); }
.photo-count { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px;
  background: rgba(14, 27, 24, .55); color: #fff; font-size: .76rem; font-weight: 650; }
.photo-count .icon { width: 14px; height: 14px; }
.loc-info { display: grid; gap: 4px; padding: 0 2px; }
.loc-info .top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.loc-info h3 { margin: 0; font-size: 1.08rem; }
.loc-info .area { font-size: .86rem; color: var(--muted); white-space: nowrap; }
.loc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: .86rem; color: var(--ink-2); }
.loc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.loc-meta .icon { width: 16px; height: 16px; color: var(--muted); }
.loc-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.no-results { grid-column: 1 / -1; }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 18px; } }
.step { position: relative; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
@media (min-width: 900px) { .step { grid-template-columns: 1fr; padding: 24px 22px; } }
.step::before { counter-increment: step; content: counter(step); width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-weight: 800;
  font-size: 1.05rem; color: #fff; background: linear-gradient(145deg, #12866f, var(--brand-ink)); box-shadow: 0 8px 16px -8px rgba(7, 81, 63, .7); }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); font-size: .9rem; }

/* rules */
.rules { display: grid; gap: 18px; }
@media (min-width: 860px) { .rules { grid-template-columns: 1fr 1fr; } }
.rule-card { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.rule-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rule-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.rule-list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; font-size: .93rem; color: var(--ink-2); }
.rule-list .dot { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.rule-list .dot .icon { width: 15px; height: 15px; stroke-width: 2.4; }
.rule-ok .dot { background: var(--ok-soft); color: var(--ok); }
.rule-no .dot { background: var(--danger-soft); color: var(--danger); }
.rule-list.numbered .dot.num { background: var(--brand-soft); color: var(--brand-ink); font-weight: 780; font-size: .8rem; }
details.more summary { cursor: pointer; color: var(--brand); font-weight: 680; font-size: .9rem; margin-top: 14px; list-style: none; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { display: none; }

/* faq */
.faq-layout { display: grid; gap: 28px; }
@media (min-width: 900px) { .faq-layout { grid-template-columns: .8fr 1.2fr; gap: 56px; } }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-card); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 680; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 30px; height: 30px; border-radius: 50%; background: var(--line-2); display: grid; place-items: center; flex: none; transition: transform .25s var(--ease), background .2s; }
.faq details[open] summary .plus { transform: rotate(45deg); background: var(--brand-soft); color: var(--brand); }
.faq details p { color: var(--ink-2); margin: 0 0 18px; font-size: .95rem; }

/* cta & contact */
.cta-band { position: relative; background: var(--brand-ink); color: #e3f1ec; border-radius: var(--r-xl); padding: 32px 24px; display: grid; gap: 24px; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 176, 32, .22), transparent 65%); z-index: -1; }
@media (min-width: 860px) { .cta-band { grid-template-columns: 1.1fr .9fr; padding: 52px; align-items: center; } }
.cta-band h2 { color: #fff; }
.cta-band p { color: #b5d2c9; max-width: 44ch; }
.contact-list { display: grid; gap: 10px; }
.contact { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 16px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none; transition: background .15s; }
.contact:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.contact .avatar { background: rgba(255, 255, 255, .15); color: #fff; width: 40px; height: 40px; }
.contact small { display: block; color: #a8c7bd; font-size: .8rem; }
.contact .wa { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; color: #2b1a00; background: var(--accent); padding: 6px 12px; border-radius: 99px; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 110px; color: var(--muted); font-size: .9rem; background: var(--page); }
@media (min-width: 920px) { .site-footer { padding-bottom: 44px; } }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-grid h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--ink-2); text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; }

.mobile-cta { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 8px; padding: 8px; border-radius: 20px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow-pop); align-items: center; }
.mobile-cta { transition: transform .3s var(--ease), opacity .3s; }
.mobile-cta.is-away { transform: translateY(150%); opacity: 0; pointer-events: none; }
.mobile-cta .btn { flex: 1; }
.mobile-cta .mc-info { flex: 1.2; padding-left: 8px; line-height: 1.25; font-size: .82rem; color: var(--muted); }
.mobile-cta .mc-info strong { display: block; color: var(--ink); font-size: .95rem; }
@media (min-width: 920px) { .mobile-cta { display: none; } }

/* ---------------------------------------------------------------- results (cari) */
.results { display: grid; gap: 16px; }
.result { display: grid; gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--ink);
  transition: box-shadow .2s, border-color .2s; }
.result:hover { box-shadow: var(--shadow-card); border-color: #d3dad6; color: var(--ink); }
.result .loc-media { border-radius: 0; aspect-ratio: 16 / 10; }
.result-body { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.result-body h3 { margin: 0; font-size: 1.15rem; }
.result-side { padding: 16px 20px 20px; display: flex; gap: 12px; align-items: center; justify-content: space-between; border-top: 1px solid var(--line-2); }
.result-side .big { font-size: 1.6rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.result-side .big.zero { color: var(--muted); }
@media (min-width: 820px) {
  .result { grid-template-columns: 300px 1fr 220px; }
  .result .loc-media { aspect-ratio: auto; height: 100%; min-height: 210px; }
  .result-side { border-top: 0; border-left: 1px solid var(--line-2); flex-direction: column; align-items: stretch; justify-content: center; text-align: right; }
}
.results-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 28px 0 16px; }
.results-head h1 { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 2rem); margin: 0; }

/* ---------------------------------------------------------------- location page */
.loc-head { padding: 24px 0 18px; }
.loc-head h1 { font-size: clamp(1.75rem, 1.2rem + 2.2vw, 2.8rem); margin: 10px 0 8px; }
.loc-head .sub { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--ink-2); font-size: .94rem; }
.loc-head .sub span { display: inline-flex; gap: 6px; align-items: center; }
.gallery { position: relative; display: grid; gap: 8px; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); height: clamp(240px, 42vw, 460px); border-radius: 24px; overflow: hidden; }
.gallery .g { position: relative; overflow: hidden; background: var(--brand-soft); }
.gallery .g img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery .g:hover img { transform: scale(1.04); }
.gallery .g:first-child { grid-column: span 2; grid-row: span 2; }
.gallery.n1 .g:first-child { grid-column: 1 / -1; }
.gallery.n2 .g:nth-child(2) { grid-column: span 2; grid-row: span 2; }
.gallery.n3 .g:nth-child(2) { grid-column: span 2; }
.gallery.n3 .g:nth-child(3) { grid-column: span 2; }
.gallery.n4 .g:nth-child(4) { grid-column: span 2; }
@media (max-width: 720px) {
  .gallery { height: auto; grid-template-rows: none; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 86%; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 20px; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery .g, .gallery .g:first-child, .gallery.n2 .g:nth-child(2), .gallery.n3 .g:nth-child(n), .gallery.n4 .g:nth-child(4) { grid-column: auto; grid-row: auto; aspect-ratio: 4 / 3; scroll-snap-align: start; border-radius: 16px; }
  .gallery.n1 { grid-auto-columns: 100%; }
}
.layout-aside { display: grid; gap: 28px; }
@media (min-width: 960px) { .layout-aside { grid-template-columns: minmax(0, 1fr) 370px; gap: 48px; align-items: start; } .sticky { position: sticky; top: 92px; } }
@media (max-width: 959px) { .layout-aside.aside-first > aside { order: -1; } }
.highlights { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 720px) { .highlights { grid-template-columns: repeat(4, 1fr); } }
.hl { padding: 14px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.hl .icon { width: 22px; height: 22px; color: var(--brand); }
.hl b { display: block; font-size: 1.15rem; letter-spacing: -.02em; margin-top: 6px; }
.hl span { font-size: .82rem; color: var(--muted); }
.block { padding: 28px 0; border-top: 1px solid var(--line-2); }
.block:first-child { border-top: 0; padding-top: 0; }
.block h2 { font-size: 1.3rem; margin-bottom: 14px; }
.facilities { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.facilities li { display: flex; gap: 10px; align-items: center; font-size: .95rem; color: var(--ink-2); }
.facilities li .icon { color: var(--brand); }
.room-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.room-tile { padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.room-tile .r-no { font-weight: 760; }
.beds { display: flex; gap: 5px; margin: 10px 0 6px; flex-wrap: wrap; }
.beds i { width: 22px; height: 13px; border-radius: 4px; background: #22c55e; }
.beds i.used { background: #d7ddda; }
.room-tile.blocked { background: var(--surface-2); color: var(--muted); }
.book-card { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-card); padding: 22px; display: grid; gap: 14px; }
.book-card .bc-avail { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--ok-soft); color: var(--ok); }
.book-card .bc-avail.none { background: var(--line-2); color: var(--muted); }
.book-card .bc-avail b { display: block; font-size: 1.35rem; letter-spacing: -.03em; line-height: 1.1; color: inherit; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; border: 1.5px solid var(--line); border-radius: 14px; overflow: hidden; }
.date-pair .sb-field { border-radius: 0; padding: 10px 14px; }
.date-pair .sb-field + .sb-field { border-left: 1.5px solid var(--line); }

/* ---------------------------------------------------------------- user pages */
.page-head { padding: 32px 0 20px; }
.page-head h1 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); margin-bottom: 6px; }
.page-head p { color: var(--muted); margin: 0; }
.back { display: inline-flex; gap: 6px; align-items: center; color: var(--muted); text-decoration: none; font-weight: 650; font-size: .9rem; margin-bottom: 14px; }
.back:hover { color: var(--ink); }
.trip { display: grid; grid-template-columns: 96px 1fr; gap: 16px; padding: 14px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); text-decoration: none; color: var(--ink); transition: box-shadow .2s, border-color .2s; align-items: center; }
.trip:hover { box-shadow: var(--shadow-card); border-color: #d3dad6; color: var(--ink); }
@media (min-width: 640px) { .trip { grid-template-columns: 150px 1fr auto; padding: 16px; } }
.trip .t-photo { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--brand-soft); }
@media (min-width: 640px) { .trip .t-photo { aspect-ratio: 4 / 3; } }
.trip .t-photo img { width: 100%; height: 100%; object-fit: cover; }
.trip .t-body { display: grid; gap: 4px; min-width: 0; }
.trip h3 { margin: 0; font-size: 1.02rem; }
.trip .t-dates { font-weight: 680; font-variant-numeric: tabular-nums; font-size: .94rem; }
.trip .t-go { display: none; color: var(--muted); }
@media (min-width: 640px) { .trip .t-go { display: block; } }
.trips { display: grid; gap: 12px; }
.trips-title { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 28px 0 12px; font-weight: 750; }

.voucher { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-card); }
.voucher-banner { display: flex; gap: 12px; align-items: center; padding: 14px 20px; font-weight: 650; font-size: .93rem; }
.voucher-banner.pending { background: var(--warn-soft); color: var(--warn); }
.voucher-banner.approved, .voucher-banner.checked_in { background: var(--ok-soft); color: var(--ok); }
.voucher-banner.rejected { background: var(--danger-soft); color: var(--danger); }
.voucher-banner.cancelled, .voucher-banner.checked_out, .voucher-banner.done { background: var(--line-2); color: var(--ink-2); }
.voucher-photo { position: relative; aspect-ratio: 16 / 10; background: var(--brand-soft); }
@media (min-width: 640px) { .voucher-photo { aspect-ratio: 21 / 8; } }
.voucher-photo img { width: 100%; height: 100%; object-fit: cover; }
.voucher-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55), transparent 60%); }
.voucher-photo .vp-title { position: absolute; left: 20px; right: 20px; bottom: 16px; color: #fff; z-index: 2; }
.voucher-photo .vp-title h1 { font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2rem); margin: 0; color: #fff; }
.voucher-photo .vp-title span { font-size: .88rem; opacity: .9; }
.voucher-dates { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 22px 20px; border-bottom: 1px dashed var(--line); }
.vd { display: grid; gap: 2px; }
.vd:last-child { text-align: right; }
.vd small { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 720; }
.vd b { font-size: clamp(1.05rem, .9rem + 1vw, 1.5rem); letter-spacing: -.025em; }
.vd span { font-size: .84rem; color: var(--muted); }
.vd-mid { display: grid; justify-items: center; gap: 4px; color: var(--muted); font-size: .82rem; font-weight: 650; }
.vd-mid .line { width: 60px; height: 2px; background: repeating-linear-gradient(90deg, var(--line) 0 6px, transparent 6px 10px); }
.voucher-meta { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line-2); }
@media (min-width: 640px) { .voucher-meta { grid-template-columns: repeat(3, 1fr); } }
.voucher-meta > div { background: var(--surface); padding: 14px 20px; }
@media (max-width: 639px) { .voucher-meta > div:last-child:nth-child(odd) { grid-column: 1 / -1; } }
.voucher-meta small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 720; }
.voucher-meta b { font-size: .98rem; }
.voucher-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 18px 20px; border-top: 1px solid var(--line-2); }

/* checkout (ajukan) */
.checkout { display: grid; gap: 24px; }
@media (min-width: 980px) { .checkout { grid-template-columns: minmax(0, 1fr) 380px; gap: 40px; align-items: start; } }
.step-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
@media (min-width: 768px) { .step-card { padding: 28px; } }
.step-card + .step-card { margin-top: 16px; }
.step-card h2 { font-size: 1.12rem; display: flex; gap: 12px; align-items: center; margin-bottom: 18px; }
.step-card h2 .num { width: 30px; height: 30px; border-radius: 10px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: .86rem; flex: none; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow-card); }
.summary-photo { position: relative; aspect-ratio: 16 / 9; background: var(--brand-soft); }
.summary-photo img { width: 100%; height: 100%; object-fit: cover; }
.summary-body { padding: 18px 20px; display: grid; gap: 12px; }
.summary-body h3 { margin: 0; font-size: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .92rem; }
.sum-row span:first-child { color: var(--muted); }
.sum-row b { text-align: right; }
.sum-total { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line-2); font-weight: 750; }
.sum-total b { font-size: 1.3rem; letter-spacing: -.03em; }
@media (max-width: 979px) {
  .checkout > aside { order: -1; }
  .summary { display: grid; grid-template-columns: 110px 1fr; }
  .summary-photo { aspect-ratio: auto; height: 100%; }
  .summary-body { padding: 14px 16px; gap: 6px; }
  .summary .sum-extra { display: none; }
}

.only-mobile-submit { display: block; }
@media (min-width: 980px) { .only-mobile-submit { display: none; } }
.mt-0 { margin-top: 0 !important; }
.row-center { justify-content: center; }
.hero-title { position: relative; isolation: isolate; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; }
.timeline li { position: relative; padding: 0 0 18px 28px; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 5px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.timeline li::after { content: ""; position: absolute; left: 9.5px; top: 20px; bottom: 0; width: 1px; background: var(--line); }
.timeline li:last-child::after { display: none; }
.timeline .t-when { font-size: .78rem; color: var(--muted); }

/* auth */
.auth { min-height: 100vh; display: grid; }
@media (min-width: 960px) { .auth.split { grid-template-columns: 1.05fr 1fr; } }
.auth-art { display: none; position: relative; overflow: hidden; background: var(--brand-ink); }
@media (min-width: 960px) { .auth.split .auth-art { display: block; } }
.auth-art img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.auth-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7, 33, 27, .85), rgba(7, 33, 27, .1) 55%); }
.auth-art .aa-text { position: absolute; left: 48px; right: 48px; bottom: 48px; z-index: 2; color: #fff; }
.auth-art .aa-text h2 { color: #fff; font-size: 2rem; max-width: 18ch; }
.auth-art .aa-text p { color: #cfe2dc; margin: 0; }
.auth-main { display: grid; place-items: center; padding: 28px var(--gutter); }
.auth-card { width: 100%; max-width: 420px; }
.btn-google { --b: #fff; --bd: var(--line); gap: 12px; font-weight: 680; }
.btn-google svg { width: 20px; height: 20px; }
.h-auth { font-size: 1.6rem; margin-bottom: 6px; }
.h-page { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 10px 0 6px; }
.h-sm { font-size: 1.1rem; }

/* ================================================================ APP SHELL (staf) */
/* minmax(0, 1fr): kolom boleh menyusut selebar layar; tab/tabel/kalender lebar digeser di dalam kotaknya sendiri */
.app { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .app { grid-template-columns: 252px minmax(0, 1fr); background: linear-gradient(90deg, #062a24 0 252px, transparent 252px); } }
.sidebar { display: none; position: sticky; top: 0; height: 100vh; overflow-y: auto; flex-direction: column; gap: 2px; padding: 20px 14px 16px;
  color: #c4dad2; background: radial-gradient(140% 60% at 0% 0%, rgba(32, 170, 128, .22), transparent 60%), linear-gradient(185deg, #07362e 0%, #062a24 100%);
  scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .15) transparent; }
@media (min-width: 1024px) { .sidebar { display: flex; } }
.sidebar .brand { padding: 2px 8px 20px; color: #fff; }
.sidebar .brand small { color: rgba(255, 255, 255, .55); }
.sidebar .brand-mark { background: var(--accent); color: #3d2700; box-shadow: 0 6px 18px -6px rgba(255, 176, 32, .6); }
.side-label { font-size: .68rem; font-weight: 760; letter-spacing: .12em; text-transform: uppercase; color: #98a39f; padding: 16px 10px 6px; }
.sidebar .side-label { color: rgba(255, 255, 255, .38); }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 11px; color: var(--ink-2); text-decoration: none; font-weight: 620; font-size: .92rem; position: relative; }
.side-link:hover { background: var(--line-2); color: var(--ink); }
.side-link.active { background: var(--brand-soft); color: var(--brand-ink); }
.sidebar .side-link { color: rgba(255, 255, 255, .74); transition: background .15s, color .15s; }
.sidebar .side-link .icon { color: rgba(255, 255, 255, .5); transition: color .15s; }
.sidebar .side-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.sidebar .side-link:hover .icon { color: #fff; }
.sidebar .side-link.active { background: rgba(255, 255, 255, .11); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.sidebar .side-link.active .icon { color: var(--accent); }
.sidebar .side-link.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-link .count { margin-left: auto; font-size: .74rem; background: var(--accent); color: #3d2700; padding: 1px 8px; border-radius: 99px; font-weight: 760; }
.side-user { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--line-2); display: flex; align-items: center; gap: 10px; font-size: .86rem; }
.sidebar .side-user { border-top-color: rgba(255, 255, 255, .1); color: #fff; }
.sidebar .side-user .muted { color: rgba(255, 255, 255, .55); }
.sidebar .side-user .avatar { background: rgba(255, 255, 255, .12); color: #fff; }
.sidebar .side-user .btn-ghost { color: rgba(255, 255, 255, .7); }
.sidebar .side-user .btn-ghost:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.side-user form { margin-left: auto; }
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .inner { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 0 var(--gutter); }
@media (min-width: 1024px) { .topbar { display: none; } }
.main { padding: 26px var(--gutter) 64px; min-width: 0; max-width: 1440px; }
@media (min-width: 1024px) { .main { padding: 32px 36px 72px; } }
.main-head { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.main-head h1 { font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.05rem); margin: 0; letter-spacing: -.03em; }
.main-head .eyebrow { display: block; margin-bottom: 4px; }
.main-head p { margin: 4px 0 0; color: var(--muted); }
.main-head form .select, .main-head form .input { width: auto; min-height: 42px; }
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 20px; scrollbar-width: none; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--muted); font-weight: 680; font-size: .92rem; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
.tabs.no-border { border-bottom: 0; margin: 0; }
.filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; padding: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.narrow-form { max-width: 860px; }
.summary-danger { cursor: pointer; color: var(--danger); font-weight: 680; }
.text-warn { color: var(--warn); font-weight: 650; }
[data-nights].over { color: var(--danger); }

dialog { border: 0; border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 24px)); box-shadow: 0 30px 80px -20px rgba(14, 27, 24, .45); color: var(--ink); }
dialog::backdrop { background: rgba(14, 27, 24, .45); backdrop-filter: blur(2px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.dlg-head h2 { font-size: 1.05rem; margin: 0; }
.dlg-body { padding: 20px; display: grid; gap: 14px; max-height: 70vh; overflow-y: auto; }
.dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--surface-2); }
.preset { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); font: inherit; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.preset:hover { border-color: var(--brand); background: var(--brand-tint); }
.doc-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.doc-row + .doc-row { border-top: 1px solid var(--line-2); }
.wa-info { padding: 12px; border-radius: 12px; background: var(--ok-soft); display: grid; gap: 6px; }
.wa-preview { white-space: pre-wrap; font: inherit; font-size: .82rem; background: var(--surface); padding: 10px; border-radius: 8px; margin: 8px 0 0; max-height: 240px; overflow: auto; }
.guests > * + * { border-top: 1px solid var(--line-2); }
.guest { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 20px; flex-wrap: wrap; }
.guest-main { flex: 1; min-width: 220px; }
.bed-code { font-weight: 800; font-variant-numeric: tabular-nums; background: var(--line-2); padding: 2px 8px; border-radius: 6px; font-size: .86rem; }
.room-list > * + * { border-top: 1px solid var(--line-2); }
.room-row { padding: 0 20px; }
.room-row summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 14px 0; flex-wrap: wrap; }
.room-row summary::-webkit-details-marker { display: none; }
.room-row summary > .icon:last-child { margin-left: auto; color: var(--muted); }
.room-row[open] summary > .icon:last-child { transform: rotate(180deg); }
.room-row form { padding-bottom: 16px; }
.room-row.inactive summary { opacity: .6; }
.add-room { display: grid; grid-template-columns: 1fr 90px auto; gap: 10px; align-items: end; border-top: 1px solid var(--line-2); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.photo-item { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; background: var(--line-2); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-item form { position: absolute; right: 6px; top: 6px; }
.legend { display: inline-flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin-left: auto; color: var(--muted); }
.legend .lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 2px; vertical-align: -1px; background: var(--brand-soft); border: 1px solid #c4e2d8; }
.legend .lg.checked_in { background: var(--info-soft); border-color: #cbdaf4; }
.legend .lg.checked_out { background: #eef1ef; border-color: var(--line); }
.legend .lg.internal { background: #efe9fb; border-color: #ddd2f6; }
.legend .lg.house { background: var(--accent-soft); border-color: #f5d79c; }
.link-more { color: var(--brand); font-weight: 680; font-size: .875rem; display: inline-flex; gap: 4px; align-items: center; }

/* kalender */
.cal-wrap { overflow-x: auto; border-radius: 0 0 20px 20px; }
/* 1 kolom bed (104px) + 21 hari x 48px; table-layout fixed agar semua hari sama lebar */
.cal { border-collapse: separate; border-spacing: 0; font-size: .8rem; table-layout: fixed; width: 1112px; }
.cal th, .cal td { border-bottom: 1px solid var(--line-2); border-right: 1px solid var(--line-2); padding: 0; height: 36px; text-align: center; overflow: hidden; }
.cal thead th { width: 48px; position: sticky; top: 0; background: var(--surface-2); font-weight: 650; color: var(--muted); padding: 6px 4px; line-height: 1.2; }
.cal thead th.lane { width: 104px; }
.cal thead th.today { color: var(--brand); background: var(--brand-tint); }
.cal th.lane { position: sticky; left: 0; z-index: 2; background: var(--surface); text-align: left; padding: 0 12px; font-weight: 720; color: var(--ink); white-space: nowrap; }
.cal td.weekend { background: #fafbfa; }
.cal td.seg { padding: 3px 2px; }
.cal .seg-bar { display: block; height: 28px; line-height: 28px; border-radius: 8px; padding: 0 8px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  text-decoration: none; font-weight: 650; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #c4e2d8; }
.cal .seg-bar.checked_in { background: var(--info-soft); color: var(--info); border-color: #cbdaf4; }
.cal .seg-bar.checked_out { background: #eef1ef; color: var(--muted); border-color: var(--line); }
.cal .seg-bar.internal { background: #efe9fb; color: #5b3fb0; border-color: #ddd2f6; }
.cal .seg-bar.house { background: var(--accent-soft); color: var(--accent-ink); border-color: #f5d79c; }

/* ================================================================ PENGELOLA v3 (dashboard & kelola) */
body.shell .card { border-radius: 18px; border-color: #e3e9e6; box-shadow: 0 1px 2px rgba(14, 27, 24, .04), 0 12px 32px -22px rgba(14, 27, 24, .22); }
body.shell .card-head { padding: 16px 20px; }
body.shell .table th { background: #f7f9f8; }
.btn-glass { --b: rgba(255, 255, 255, .1); --c: #fff; --bd: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn-glass:hover { --b: rgba(255, 255, 255, .18); }
.pill-count { background: #2b1a00; color: var(--accent); border-radius: 99px; padding: 0 8px; font-size: .78rem; font-weight: 800; }
.opt { font-weight: 560; color: var(--muted); font-size: .8em; margin-left: 4px; }

.hero-band { position: relative; overflow: hidden; border-radius: 24px; color: #fff; padding: 26px 24px; display: grid; gap: 22px; margin-bottom: 18px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(255, 176, 32, .22), transparent 55%),
              radial-gradient(70% 90% at 0% 100%, rgba(32, 190, 140, .28), transparent 60%),
              linear-gradient(125deg, #062f28 0%, #0a4a3d 55%, #0b6e5c 100%); }
.hero-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 18px 18px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000); mask-image: linear-gradient(90deg, transparent 30%, #000); }
.hero-band > * { position: relative; z-index: 1; }
@media (min-width: 900px) { .hero-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 32px 36px; } }
.hb-date { display: inline-flex; align-items: center; gap: 7px; font-size: .8rem; font-weight: 700; color: rgba(255, 255, 255, .72); background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12); padding: 5px 12px; border-radius: 99px; }
.hero-band h1 { margin: 14px 0 6px; font-size: clamp(1.6rem, 1.1rem + 2vw, 2.4rem); letter-spacing: -.035em; color: #fff; }
.hero-band p { margin: 0; color: rgba(255, 255, 255, .78); max-width: 52ch; }
.hero-band p b { color: #fff; }
.hb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.hb-ring { display: grid; justify-items: center; gap: 6px; position: relative; }
.hb-ring svg { width: 148px; height: 148px; transform: rotate(-90deg); }
.ring-bg { fill: none; stroke: rgba(255, 255, 255, .13); stroke-width: 11; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 11; stroke-linecap: round; }
.ring-label { position: absolute; top: 0; left: 0; right: 0; height: 148px; display: grid; place-content: center; text-align: center; line-height: 1.15; }
.ring-label b { font-size: 2rem; letter-spacing: -.04em; }
.ring-label span { font-size: .72rem; color: rgba(255, 255, 255, .7); font-weight: 650; }
.hero-band .ring-sub { font-size: .8rem; color: rgba(255, 255, 255, .7); }
@media (max-width: 899px) {
  .hb-ring { grid-template-columns: auto 1fr; justify-items: start; align-items: center; column-gap: 16px; }
  .hb-ring svg { width: 96px; height: 96px; }
  .ring-label { width: 96px; height: 96px; right: auto; }
  .ring-label b { font-size: 1.35rem; }
  .ring-label span { display: none; }
}

.kpi-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 18px; }
@media (min-width: 1100px) { .kpi-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kpi2 { --t: var(--brand-soft); --ti: var(--brand-ink); display: grid; align-content: start; gap: 3px; padding: 16px 18px; border-radius: 18px; background: var(--surface);
  border: 1px solid #e3e9e6; text-decoration: none; color: var(--ink); box-shadow: 0 1px 2px rgba(14, 27, 24, .04); transition: transform .18s var(--ease), box-shadow .18s; min-width: 0; }
.kpi2:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -20px rgba(14, 27, 24, .3); }
.kpi2-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--t); color: var(--ti); margin-bottom: 8px; }
.kpi2-l { font-size: .8rem; font-weight: 680; color: var(--muted); }
.kpi2 b { font-size: 1.9rem; line-height: 1.1; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.kpi2-of { font-size: 1rem; color: var(--muted); font-weight: 650; letter-spacing: 0; }
.kpi2 small { font-size: .8rem; color: var(--muted); }
.kpi2 .meter { margin-top: 6px; }
.tone-amber { --t: #fff1d1; --ti: #8a5a00; } .tone-green { --t: #dcf2ea; --ti: #07513f; }
.tone-blue { --t: #e3edfc; --ti: #1f5fbf; } .tone-violet { --t: #eee8fb; --ti: #5b3fb0; }
.spark { display: flex; align-items: flex-end; gap: 4px; height: 30px; margin-top: 6px; }
.spark i { flex: 1; max-width: 22px; min-height: 3px; border-radius: 4px 4px 0 0; background: #d9cff5; }
.spark i:last-child { background: #6a4fd0; }

.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; border-radius: 18px; margin-bottom: 18px;
  background: linear-gradient(90deg, #fff7e6, #fffdf6); border: 1px solid #f6dfae; }
.nudge > div { flex: 1; min-width: 220px; display: grid; gap: 2px; }
.nudge-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #3d2700; flex: none; }

.dash-grid { display: grid; gap: 18px; }
@media (min-width: 1100px) { .dash-grid { grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); align-items: start; } }
.queue { list-style: none; margin: 0; padding: 6px; }
.queue li + li { border-top: 1px dashed var(--line-2); }
.queue a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 12px 14px; border-radius: 14px; text-decoration: none; color: var(--ink); }
.queue a:hover { background: var(--brand-tint); }
.queue .avatar { width: 38px; height: 38px; font-size: .95rem; grid-row: span 3; align-self: start; }
.q-main, .q-date { display: grid; min-width: 0; }
.q-main strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-loc { grid-column: 2; font-size: .82rem; color: var(--ink-2); display: inline-flex; gap: 5px; align-items: center; flex-wrap: wrap; min-width: 0; }
.q-loc .icon { width: 14px; height: 14px; color: var(--brand); }
.q-date { grid-column: 2; font-size: .86rem; }
.queue a > .icon:last-child { grid-column: 3; grid-row: 1 / span 3; color: #a9b4ad; }
@media (min-width: 760px) {
  .queue a { grid-template-columns: auto minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
  .queue .avatar { grid-row: auto; align-self: center; }
  .q-loc, .q-date { grid-column: auto; }
  .queue a > .icon:last-child { grid-column: auto; grid-row: auto; }
}

.occ-list { display: grid; gap: 14px; }
.occ-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; font-size: .9rem; }
.occ-name { font-weight: 620; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.occ-num { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 650; font-size: .84rem; }
.occ-track { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #edf1ef; overflow: hidden; }
.occ-track > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #12a07a, #0b6e5c); }
.tag-full { font-size: .7rem; font-weight: 760; color: #8a2a06; background: var(--danger-soft); border-radius: 6px; padding: 1px 6px; }
.today-list { display: grid; gap: 6px; }
.today-list .eyebrow { margin: 10px 0 2px; color: var(--muted); }
.today-list a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); padding: 7px 8px; border-radius: 10px; font-weight: 600; font-size: .9rem; min-width: 0; }
.today-list a:hover { background: var(--surface-2); }
.today-list .bed-code { margin-left: auto; }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.dot.in { background: #12a07a; box-shadow: 0 0 0 3px #dcf2ea; }
.dot.out { background: #e0a100; box-shadow: 0 0 0 3px #fff1d1; }

/* lokasi (kartu bersampul foto) */
.la-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.la-card { background: var(--surface); border: 1px solid #e3e9e6; border-radius: 20px; overflow: hidden; display: grid; grid-template-rows: auto 1fr;
  box-shadow: 0 1px 2px rgba(14, 27, 24, .04); transition: box-shadow .18s, transform .18s var(--ease); }
.la-card:hover { box-shadow: 0 18px 40px -24px rgba(14, 27, 24, .35); transform: translateY(-2px); }
.la-card.off { opacity: .8; }
.la-media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, #e6efeb, #f6f8f7); color: var(--muted); text-decoration: none; }
.la-media img { width: 100%; height: 100%; object-fit: cover; }
.la-empty { position: absolute; inset: 12px; border: 2px dashed #c9d6d0; border-radius: 14px; display: grid; place-content: center; justify-items: center; gap: 2px; text-align: center; font-size: .82rem; }
.la-empty .icon { width: 28px; height: 28px; color: var(--brand); margin-bottom: 4px; }
.la-empty b { color: var(--ink); }
.la-media:hover .la-empty { border-color: var(--brand); background: rgba(255, 255, 255, .6); }
.la-count { position: absolute; left: 12px; bottom: 12px; display: inline-flex; gap: 6px; align-items: center; font-size: .76rem; font-weight: 700; color: #fff;
  background: rgba(8, 26, 22, .62); backdrop-filter: blur(6px); padding: 4px 10px; border-radius: 99px; }
.la-count .icon { width: 14px; height: 14px; }
.la-status { position: absolute; right: 12px; top: 12px; }
.la-body { padding: 16px 18px 18px; display: grid; gap: 8px; align-content: start; }
.la-body h3 { margin: 0; font-size: 1.05rem; }
.la-body h3 a { color: var(--ink); text-decoration: none; }
.la-body h3 a:hover { color: var(--brand); }
.la-body .t-sub { margin: 0; }
.la-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: .84rem; color: var(--ink-2); }
.la-stats > span:not(.chip) { display: inline-flex; gap: 5px; align-items: center; }
.la-stats .icon { width: 15px; height: 15px; color: var(--muted); }
.la-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

/* data master */
.pill-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.pill-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 99px; border: 1px solid #dfe6e2; background: var(--surface);
  color: var(--ink-2); font-weight: 680; font-size: .9rem; text-decoration: none; }
.pill-tabs a:hover { border-color: var(--brand); }
.pill-tabs a.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.pill-tabs .count { font-size: .74rem; background: var(--line-2); color: var(--ink-2); border-radius: 99px; padding: 0 8px; }
.pill-tabs a.active .count { background: rgba(255, 255, 255, .16); color: #fff; }
.search-inline { position: relative; display: block; flex: 1; max-width: 320px; min-width: 180px; }
.search-inline .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
.search-inline .input { padding-left: 34px; min-height: 38px; }
.master-tree > details + details, .master-tree > p { border-top: 1px solid var(--line-2); }
.mgroup summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 13px 20px; font-weight: 680; }
.mgroup summary::-webkit-details-marker { display: none; }
.mgroup summary:hover { background: var(--surface-2); }
.mgroup-name { flex: 1; min-width: 0; }
.mgroup summary > .icon:last-child { color: var(--muted); transition: transform .15s; flex: none; }
.mgroup[open] summary > .icon:last-child { transform: rotate(180deg); }
.mgroup[open] summary { background: var(--brand-tint); }
.mlist { list-style: none; margin: 0; padding: 4px 12px 8px 20px; }
.mlist.flat { padding: 6px 12px 10px 20px; }
.mlist li { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 7px 0 7px 12px; border-left: 2px solid var(--line-2); font-size: .92rem; }
.mlist.flat li { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--line-2); }
.mlist.flat li:last-child { border-bottom: 0; }
.mlist li > span { min-width: 0; overflow-wrap: anywhere; }
.mgroup-foot { display: flex; align-items: center; gap: 8px; padding: 0 20px 12px 34px; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--line-2); color: var(--ink); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #f6cdbd; }
.icon-btn .icon { width: 16px; height: 16px; }

/* print */
@media print {
  .sidebar, .topbar, .site-header, .site-footer, .mobile-cta, .no-print, .btn { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; }
  .app { display: block; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ================================================================ JENIS KELAMIN (biru = laki-laki, pink = perempuan) */
:root {
  --male: #2563eb; --male-ink: #1d4ed8; --male-soft: #e6eeff; --male-line: #bcd0fd;
  --female: #db2777; --female-ink: #be185d; --female-soft: #fde8f2; --female-line: #f8c1da;
}
.g-L { --g: var(--male); --g-ink: var(--male-ink); --g-soft: var(--male-soft); --g-line: var(--male-line); }
.g-P { --g: var(--female); --g-ink: var(--female-ink); --g-soft: var(--female-soft); --g-line: var(--female-line); }
.g-x { --g: #8a9792; --g-ink: var(--ink-2); --g-soft: #eef1ef; --g-line: var(--line); }
.g-free { --g: #16a34a; --g-ink: #166534; --g-soft: #e3f6e9; --g-line: #b7e4c4; }
.g-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 99px; font-size: .8rem; font-weight: 680;
  background: var(--g-soft, var(--line-2)); color: var(--g-ink, var(--ink-2)); border: 1px solid var(--g-line, var(--line)); white-space: nowrap; }
.g-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--g, var(--muted)); }
.gender-avail { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.g-dot { display: inline-flex; align-items: center; gap: 5px; color: var(--g-ink); }
.g-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--g); }
.avatar.g-L, .avatar.g-P { background: var(--g-soft); color: var(--g-ink); box-shadow: inset 0 0 0 1.5px var(--g-line); }
.bed-code.g-L, .bed-code.g-P { background: var(--g-soft); color: var(--g-ink); }

/* kamar & bed (halaman lokasi) */
.room-tile { border-left: 4px solid var(--line); display: grid; gap: 4px; }
.room-tile.st-empty { border-left-color: #22c55e; }
.room-tile.st-partial, .room-tile.st-full { border-left-color: var(--g, var(--muted)); }
.room-tile.st-full { background: var(--surface-2); }
.room-tile.st-blocked { background: var(--surface-2); color: var(--muted); border-left-color: #c9d1cd; }
.rt-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.rt-tag { font-size: .72rem; font-weight: 750; padding: 2px 8px; border-radius: 99px; white-space: nowrap; background: var(--line-2); color: var(--ink-2); }
.st-empty .rt-tag { background: #e3f6e9; color: #166534; }
.st-partial .rt-tag { background: var(--g-soft, var(--line-2)); color: var(--g-ink, var(--ink-2)); }
.st-full .rt-tag { background: #eceff1; color: #4b5563; }
.st-blocked .rt-tag { background: #eef1ef; color: var(--muted); }
.rt-status { font-size: .84rem; line-height: 1.4; color: var(--ink-2); }
.st-blocked .rt-status, .st-full .rt-status { color: var(--muted); }
.beds i, .bed-legend i { width: 24px; height: 15px; border-radius: 5px; display: inline-block; background: #d7ddda; }
.beds i.bed-free, .bed-legend i.bed-free { background: #fff; box-shadow: inset 0 0 0 2px #22c55e; }
.beds i.bed-used, .bed-legend i.bed-used { background: var(--g, #9aa6a1); }
.beds i.bed-blocked, .bed-legend i.bed-blocked { background: #d7ddda; }
.bed-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--ink-2); }
.bed-legend span { display: inline-flex; align-items: center; gap: 6px; }
.bed-legend i { width: 18px; height: 12px; border-radius: 4px; }

/* kalender: warna = jenis kelamin, gaya = status */
.cal .seg-bar.g-L, .cal .seg-bar.g-P, .cal .seg-bar.g-x { background: var(--g-soft); color: var(--g-ink); border-color: var(--g-line); }
.cal .seg-bar.g-L.st-checked_in, .cal .seg-bar.g-P.st-checked_in, .cal .seg-bar.g-x.st-checked_in { background: var(--g); color: #fff; border-color: var(--g); }
.cal .seg-bar.st-checked_out { opacity: .55; }
.cal .seg-bar.internal { border-style: dashed; border-width: 1.5px; }
.legend .lg.g-L, .legend .lg.g-P { background: var(--g); border-color: var(--g); }
.legend .lg.g-x { background: var(--g-soft); border-color: #9aa6a1; }
.legend .lg.g-x.st-checked_in { background: var(--g); border-color: var(--g); }
.legend .lg.g-x.st-checked_out { opacity: .55; }
.legend .lg.g-x.internal { border-style: dashed; }
.legend .lg-sep { width: 1px; height: 14px; background: var(--line); }

/* tabel yang barisnya bisa diklik */
tr.row-link { cursor: pointer; transition: background .12s var(--ease); }
.table tbody tr.row-link:hover td { background: var(--brand-tint); }
.table-click tr.row-link td:first-child { box-shadow: inset 3px 0 0 var(--stripe, transparent); }
tr.st-pending { --stripe: var(--accent); } tr.st-approved { --stripe: var(--ok); } tr.st-checked_in { --stripe: var(--info); }
tr.st-rejected { --stripe: var(--danger); } tr.st-done, tr.st-checked_out, tr.st-cancelled { --stripe: #cfd6d3; }
.who { display: flex; gap: 12px; align-items: flex-start; min-width: 0; }
.who .avatar { width: 36px; height: 36px; font-size: .92rem; flex: none; }
.t-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 3px; font-size: .75rem; color: var(--muted); }
.tag-bmnp { background: var(--accent-soft); color: var(--accent-ink); font-weight: 750; padding: 0 7px; border-radius: 6px; }
.table .t-go { width: 36px; text-align: right; vertical-align: middle; color: #b3bdb9; }
tr.row-link:hover .t-go { color: var(--brand); }
tr.row-link .t-go .icon { transition: transform .15s var(--ease); }
tr.row-link:hover .t-go .icon { transform: translateX(3px); }
@media (max-width: 760px) {
  .table.responsive td.t-go { display: none; }
  .table-click tr.row-link { box-shadow: inset 3px 0 0 var(--stripe, transparent); }
  .table-click tr.row-link td:first-child { box-shadow: none; }
}
.tab-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 6px; border-radius: 99px;
  background: var(--line-2); color: var(--ink-2); font-size: .72rem; font-weight: 750; }
.tab-count.hot { background: var(--accent); color: #3d2600; }

/* catatan wewenang BMNP di form pengajuan */
.bmnp-note { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--accent-soft);
  border: 1px solid #f5d79c; color: var(--accent-ink); font-size: .9rem; line-height: 1.5; }
.bmnp-note strong { display: block; margin-bottom: 2px; }
.bmnp-note .bn-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: #3d2600; flex: none; }

/* pemakaian kuota */
.quota-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 20px; }
.qk { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.qk span { font-size: .8rem; color: var(--muted); font-weight: 650; }
.qk b { font-size: 1.7rem; letter-spacing: -.02em; }
.qk small { color: var(--muted); }
a.qk:hover { border-color: var(--brand); }
.qk.tone-near { background: var(--warn-soft); border-color: #f5d79c; } .qk.tone-near b { color: var(--warn); }
.qk.tone-over { background: var(--danger-soft); border-color: #f6c7b6; } .qk.tone-over b { color: var(--danger); }
.quota-cell { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.quota-cell b { font-size: 1.05rem; }
.meter.quota-near > span { background: var(--accent); }
.meter.quota-over > span { background: var(--danger); }
.quota-hero { display: grid; gap: 10px; }
.qh-num { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.qh-num b { font-size: 2.4rem; letter-spacing: -.03em; line-height: 1; }
.qh-num span { color: var(--muted); }
.quota-hero .meter { height: 10px; }
.qh-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: .9rem; color: var(--ink-2); }

/* verifikasi identitas & ubah data pemohon */
.verify { display: grid; grid-template-columns: minmax(0, 1fr); overflow: hidden; }
@media (min-width: 700px) { .verify { grid-template-columns: 210px minmax(0, 1fr); } }
.verify .kv { grid-template-columns: max-content minmax(0, 1fr); }
.verify .kv dd.mono { white-space: nowrap; overflow-wrap: normal; letter-spacing: -.01em; }
.verify-doc { background: #1d2a26; display: grid; place-items: center; min-height: 190px; }
.verify-doc img { display: block; width: 100%; max-height: 320px; object-fit: contain; cursor: zoom-in; }
.verify-pdf { display: flex; gap: 12px; align-items: center; color: #e3f1ec; text-decoration: none; padding: 24px; font-size: .9rem; }
.verify-pdf.muted { color: #9fb3ac; }
.verify-data { padding: 18px 20px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.kv-lg dd { font-size: 1.08rem; font-weight: 700; }
.approve-sum { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.approve-sum div { display: grid; gap: 2px; align-content: start; justify-items: start; min-width: 0; }
.approve-sum small { color: var(--muted); font-size: .75rem; }
.approve-sum b { overflow-wrap: anywhere; }
.approve-sum span { font-size: .84rem; color: var(--ink-2); }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--brand); font-weight: 680; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
dialog.dlg-wide { width: min(720px, calc(100vw - 24px)); }
