/* ayocamp - two-pane dashboard layout, warm blue palette, native CSS only. */

:root {
  --bg: #e8edf4;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --ink: #16212e;
  --muted: #647087;
  --line: #e1e6ee;
  --line-soft: #edf1f6;
  --forest: #1568c9;
  --forest-strong: #0f4e9e;
  --amber: #8f4f12;
  --good: #1a7f4b;
  --mid: #b06a17;
  --low: #6b6b5e;
  --bad: #c33a2c;
  --bad-surface: #fbe9e6;
  --unknown: #98a3b5;

  --radius-shell: 20px;
  --radius: 14px;
  --radius-sm: 10px;
  --radius-pill: 999px;

  /* Tinted, not black: a neutral shadow on a blue-grey page reads as dirt. */
  --shadow-shell: 0 18px 50px rgba(21, 45, 82, 0.10);
  --shadow-sm: 0 1px 2px rgba(16, 30, 50, 0.05);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 180ms;

  --rail-w: 244px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #080d14;
    --surface: #121a25;
    --surface-2: #1a2431;
    --ink: #eef1f5;
    --muted: #97a4b8;
    --line: #24303f;
    --line-soft: #1c2634;
    --forest: #63a2f2;
    --forest-strong: #8fbdf6;
    --amber: #dd9a52;
    --good: #5ec48a;
    --mid: #dd9a52;
    --low: #9fb0a4;
    --bad: #e08a80;
    --bad-surface: #3a2220;
    --unknown: #66748a;

    --shadow-shell: 0 18px 50px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }

html { background: var(--bg); scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 var(--font);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--forest);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  padding: 0.6rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip:focus { left: 0; }

/* ---------- shell ---------- */

/* Two columns: filters, then one working pane. The list and the detail share
   that second column and swap - picking a place maximises it into the space the
   list was using, rather than squeezing both into half a screen each. */
.shell {
  height: 100dvh;
  padding: 14px;
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, 1fr);
  gap: 0;
}

.rail, .listpane, .detail {
  background: var(--surface);
  border: 1px solid var(--line);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: var(--shadow-shell);
}

/* One rounded card split by a hairline, not two floating boxes. */
.rail {
  grid-area: 1 / 1;
  border-radius: var(--radius-shell) 0 0 var(--radius-shell);
  border-right: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.listpane, .detail {
  grid-area: 1 / 2;
  border-radius: 0 var(--radius-shell) var(--radius-shell) 0;
}
.listpane { display: flex; flex-direction: column; }
.detail { padding: 18px; }

/* The detail sits on top of the list in the same cell and is revealed, not
   inserted: no reflow of the column, so the maximise reads as the same surface
   changing rather than the page rebuilding. */
.detail {
  visibility: hidden;
  opacity: 0;
  transform: scale(0.994);
  /* pointer-events too: `visibility` finishes at the END of its transition, so
     for those 200ms a pane that is already invisible would still swallow the
     clicks meant for the list underneath it. */
  pointer-events: none;
  /* Fallback only - browsers with view transitions never see this, the
     morph above replaces it. Kept slow to match. */
  transition: opacity 420ms var(--ease), transform 420ms var(--ease), visibility 420ms;
}
.shell[data-view="detail"] .detail {
  visibility: visible;
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.shell[data-view="detail"] .listpane { visibility: hidden; }

/* ---------- maximise ---------- */

/* Slow and eased at BOTH ends. The card is not being replaced by a panel, it is
   becoming one, and that only reads as movement if the eye can follow it.
   ease-in-out rather than a front-loaded ease-out: the latter spends most of
   its travel in the first 150ms, which looks like a jump no matter how long
   the declared duration is. No overshoot - a camping directory should not
   bounce. */
::view-transition-group(ayo-hero) {
  animation-duration: 620ms;
  animation-timing-function: cubic-bezier(0.65, 0, 0.35, 1);
}
/* The card's content fades out well before the pane's fades in, so the two
   never overlap into a smeared double image while both are mid-scale. */
::view-transition-old(ayo-hero) {
  animation-duration: 240ms;
  animation-timing-function: ease-out;
}
::view-transition-new(ayo-hero) {
  animation-duration: 440ms;
  animation-delay: 180ms;
  animation-fill-mode: both;
  animation-timing-function: ease-in;
}
/* Everything that is not the morphing pair crossfades faster, so the grid
   clearing away never competes with the thing the eye is following. */
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 280ms; }

/* During a morph the pane's own fade would be captured half-finished, and the
   "after" snapshot would be a translucent panel. */
.is-morphing .detail,
.is-morphing .listpane { transition: none; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(ayo-hero),
  ::view-transition-old(ayo-hero),
  ::view-transition-new(ayo-hero),
  ::view-transition-old(root),
  ::view-transition-new(root) { animation: none; }
}

/* ---------- rail ---------- */

.rail-brand { display: flex; align-items: center; gap: 9px; }
/* Logo yang bisa diklik harus terlihat bisa diklik saat disentuh, tapi tidak
   boleh jadi tautan biru di tengah merek sendiri. */
.rail-brand-home {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-sm);
}
.rail-brand-home:hover .rail-brand-text strong { color: var(--forest); }
.rail-brand-home:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }

.mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--forest);
  color: #fff;
  flex: none;
}
.rail-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rail-brand-text strong { font-size: 0.95rem; font-weight: 800; letter-spacing: -0.02em; }
.rail-brand-text small { color: var(--muted); font-size: 0.72rem; }

/* Only ever seen on a phone, where it is the sole way back out of the filter
   pane - people were missing it. 44px is the smallest target a fingertip hits
   reliably, and the glyph is sized to fill it rather than sitting as a hairline
   × in the middle of an empty box. */
/* Two class names, not one: .icon-btn sizes itself to 32px further down the
   file, and a bare .rail-close ties on specificity and loses on order. */
.icon-btn.rail-close {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  font-size: 1.75rem;
  line-height: 1;
  /* The × sits high in its em box; nudge it back onto the optical centre. */
  padding-bottom: 4px;
}

.rail-search {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
}
.rail-search input {
  border: 0;
  background: none;
  padding: 0.5rem 0;
  width: 100%;
  color: var(--ink);
  font: inherit;
}
.rail-search input:focus { outline: none; }
.rail-search:focus-within { border-color: var(--forest); }

.rail-group {
  margin: 0.35rem 0 0.1rem;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

#prefs, .filters { display: flex; flex-direction: column; gap: 0.55rem; }
.rail-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }

.field { display: flex; flex-direction: column; gap: 0.25rem; }
.field.checkbox { flex-direction: row; align-items: center; gap: 0.5rem; }
.field label { font-size: 0.72rem; color: var(--muted); font-weight: 600; }
.field.checkbox label { font-size: 0.82rem; color: var(--ink); font-weight: 500; }

input, select {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.42rem 0.55rem;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease);
}
input:hover, select:hover { border-color: var(--muted); }
input[type="checkbox"] { width: 1rem; height: 1rem; padding: 0; accent-color: var(--forest); }
select:disabled { opacity: 0.55; cursor: not-allowed; }

input[type="range"] {
  padding: 0;
  border: 0;
  background: none;
  accent-color: var(--forest);
}
.budget-slider { display: flex; align-items: center; gap: 0.5rem; }
.budget-slider output {
  font-size: 0.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--muted);
}

.chip {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.chip:hover { border-color: var(--forest); }
.chip:active { transform: scale(0.985); }
.chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
  border-color: var(--forest);
  color: var(--forest-strong);
}

.rail-foot {
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.7rem;
}

/* Di layar lebar rail-nya berdampingan dengan daftar, jadi hasilnya sudah
   terlihat sambil memfilter dan tombol ini tidak punya pekerjaan. */
.rail-apply { display: none; }

/* ---------- list pane ---------- */

.listpane-head {
  padding: 14px 14px 10px;
  border-bottom: 1px solid var(--line-soft);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.listpane-title { display: flex; align-items: center; gap: 8px; }
.crumb {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.listpane h1 {
  margin: 0.1rem 0 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.listpane-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.result-count {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  line-height: 1.35;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.count-sub { display: block; color: var(--unknown); }
.listpane-bar select { width: auto; font-size: 0.75rem; padding: 0.3rem 0.4rem; }

/* Hidden by default; only the ones that have a job at this width are shown.
   The back arrow is one of them at EVERY width now: the detail covers the
   list, so without it a desktop user is stuck on one place. */
.icon-btn {
  display: none;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease);
}
.icon-btn:hover { border-color: var(--forest); }
.detail-back { display: grid; }
/* Berlabel dan selalu terlihat, di semua lebar layar: satu-satunya jalan
   kembali ke halaman depan - dan halaman depan satu-satunya tempat tombol
   keluar akun berada. */
.home-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.35rem 0.6rem;
}

/* ---------- category chips ---------- */

.cats {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}
.cats::-webkit-scrollbar { display: none; }

.cat-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.cat-chip span {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.cat-chip:hover { border-color: var(--forest); }
.cat-chip[aria-pressed="true"] {
  background: color-mix(in srgb, var(--forest) 12%, var(--surface));
  border-color: var(--forest);
  color: var(--forest-strong);
}
.cat-chip[aria-pressed="true"] span { color: var(--forest-strong); }

/* On the photo, where there is empty space, rather than in the body where they
   would push the price out of the card. */
.card-cats {
  position: absolute;
  left: 7px;
  bottom: 7px;
  display: flex;
  gap: 4px;
  max-width: calc(100% - 14px);
  overflow: hidden;
}
.cat-pill {
  display: inline-flex;
  flex-direction: column;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(4px);
  font-size: 0.66rem;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
}
.cat-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 11px 12px; }
.cat-pill.lg {
  background: var(--surface-2);
  border: 1px solid var(--line);
  padding: 0.28rem 0.55rem;
  font-size: 0.76rem;
  backdrop-filter: none;
}
.cat-pill.lg small { font-size: 0.64rem; font-weight: 500; color: var(--muted); }

/* A grid of cards, not a list: a photo is the first thing people match a
   camping spot against, and a row cannot carry one at a useful size. */
.cards {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15.5rem, 1fr));
  gap: 12px;
  align-content: start;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.card:hover { border-color: var(--forest); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.card:active { transform: translateY(0); }
.card.is-selected {
  border-color: var(--forest);
  box-shadow: 0 0 0 1px var(--forest);
}
.card.is-new { animation: rise 320ms var(--ease) both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .card.is-new { animation: none; }
  .card:hover { transform: none; }
  html { scroll-behavior: auto; }
}

.card-photo {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--surface-2);
  overflow: hidden;
}
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Kotak centang di kartu. Di pojok kiri atas foto, tempat yang tidak dipakai
   skor maupun kategori. */
.card-pick {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  background: rgba(9, 14, 22, 0.35);
  color: transparent;
  backdrop-filter: blur(2px);
  cursor: pointer;
}
.card-pick[aria-pressed="true"] {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}
.card-pick:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 5;
  width: min(560px, calc(100vw - 1.6rem));
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-shell);
}
.compare-tray[hidden] { display: none; }
.tray-names { margin: 0 0 8px; font-size: 0.8rem; font-weight: 600; }
.tray-actions { display: flex; align-items: center; gap: 10px; }
.tray-actions .btn { flex: 1; text-align: center; }
.tray-note { margin: 8px 0 0; font-size: 0.74rem; color: var(--muted); }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 9px 11px 11px;
  flex: 1;
}
.card-name {
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.3;
  /* Two lines then ellipsis: names here run to "PCG(PAPANDAYAN CAMPING
     GROUND)" and a single line would cut most of them mid-word. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-region {
  font-size: 0.73rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card-foot {
  margin-top: auto;
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.card-price {
  font-size: 0.76rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.road-tag {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  white-space: nowrap;
}
.road-tag.good { color: var(--good); }
.road-tag.mid { color: var(--mid); }
.road-tag.bad { color: var(--bad); }
.road-tag.unknown { color: var(--unknown); font-weight: 500; }

/* Sits on the photo so the card body is free for the facts. */
.score-chip {
  position: absolute;
  top: 7px;
  right: 7px;
  font-size: 0.72rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  padding: 0.1rem 0.36rem;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.score-chip.good { color: var(--good); }
.score-chip.mid { color: var(--mid); }
.score-chip.low { color: var(--muted); }

/* Unknown is hollow on purpose: a filled dot of any colour reads as "checked". */
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.dot.good { background: var(--good); }
.dot.mid { background: var(--mid); }
.dot.bad { background: var(--bad); }
.dot.unknown { background: none; border: 1.5px solid var(--unknown); }

.skeleton { pointer-events: none; }
.skeleton .card-photo, .skeleton-line {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line-soft) 37%, var(--surface-2) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s linear infinite;
}
.skeleton-line { height: 9px; border-radius: 4px; margin: 4px 0; width: 70%; }
.skeleton-line.short { width: 40%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

.more {
  display: block;
  width: calc(100% - 2rem);
  margin: 0.75rem 1rem 1.25rem;
  padding: 0.7rem 1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.85rem;
  cursor: pointer;
}
.more:hover { border-color: var(--ink); }
.more[hidden] { display: none; }

.empty { padding: 1.5rem 1rem; color: var(--muted); font-size: 0.85rem; }
.empty p { margin: 0 0 0.6rem; }

/* ---------- detail pane ---------- */

.detail-blank {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  text-align: center;
  color: var(--muted);
  padding: 2rem;
}
.detail-blank svg { color: var(--line); }
.detail-blank h2 { margin: 0.4rem 0 0; font-size: 1rem; color: var(--ink); }
.detail-blank p { margin: 0; max-width: 34ch; font-size: 0.85rem; text-wrap: pretty; }

.detail-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.detail-title { flex: 1; min-width: 0; }
.detail-title h2 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 0.7rem;
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.12rem 0.5rem;
  border-radius: var(--radius-pill);
  border: 1px solid currentColor;
}
.pill.good { color: var(--good); }
.pill.mid { color: var(--mid); }
.pill.bad { color: var(--bad); }
.pill.unknown { color: var(--unknown); }

.btn {
  flex: none;
  display: inline-block;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius-sm);
  background: var(--forest);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: background var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.btn:hover { background: var(--forest-strong); }
.btn:active { transform: translateY(1px); }

.detail-cover {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 14px;
  display: block;
}

.alert, .note {
  margin: 0 0 8px;
  padding: 0.5rem 0.7rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  text-wrap: pretty;
}
.alert { color: var(--bad); background: var(--bad-surface); border: 1px solid color-mix(in srgb, var(--bad) 30%, transparent); }
.note { color: var(--muted); background: var(--surface-2); border: 1px solid var(--line-soft); }

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 12px;
  overflow: hidden;
}
.panel-head { padding: 10px 12px; border-bottom: 1px solid var(--line-soft); }
.panel-head h2 { margin: 0; font-size: 0.85rem; font-weight: 700; letter-spacing: -0.01em; }
.panel-note { margin: 0; padding: 10px 12px; color: var(--muted); font-size: 0.78rem; }

/* One card, internal dividers - not four floating boxes. */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 11px 12px; display: flex; flex-direction: column; gap: 0.15rem; border-left: 1px solid var(--line-soft); }
.stat:first-child { border-left: 0; }
.stat-label { font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.stat-value {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-sub { font-size: 0.68rem; color: var(--muted); }

.detail-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.detail-split .panel { margin-top: 12px; }

.lists { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; padding: 11px 12px; }
.lists h3 {
  margin: 0 0 0.3rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.lists ul { margin: 0; padding-left: 1.05rem; font-size: 0.8rem; }
.lists li { margin-bottom: 0.3rem; }
.pros li::marker { color: var(--good); }
.cons li::marker { color: var(--bad); }
.lists summary, .weak summary { color: var(--muted); font-size: 0.72rem; cursor: pointer; }
.evidence { display: block; color: var(--muted); font-size: 0.75rem; font-style: italic; }

/* Read-only rows: a facility is something reviewers reported, not a switch. */
.settings { display: flex; flex-direction: column; }
.setting {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.5rem 12px;
  border-top: 1px solid var(--line-soft);
  font-size: 0.8rem;
}
.setting:first-child { border-top: 0; }
.setting-text { color: var(--muted); }
.setting.is-on .setting-text { color: var(--ink); font-weight: 600; }
.setting-state { flex: none; font-size: 0.7rem; color: var(--muted); }
.setting.is-on .setting-state { color: var(--good); font-weight: 700; }

/* ---------- AI-written profile ---------- */

/* Marked out from the review-derived panels on purpose. Same page, different
   kind of claim, and a reader should be able to tell at a glance which is
   which without reading the badge. */
.panel.ai { border-color: color-mix(in srgb, var(--forest) 28%, var(--line)); }
.panel.ai .panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: color-mix(in srgb, var(--forest) 6%, transparent);
}
.ai-badge {
  flex: none;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--forest-strong);
  border: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
  border-radius: var(--radius-pill);
  padding: 0.1rem 0.45rem;
  cursor: help;
}
.ai-body { padding: 11px 12px; }
.ai-body p { margin: 0 0 0.6rem; font-size: 0.84rem; text-wrap: pretty; max-width: 72ch; }
.ai-body h3 {
  margin: 0.8rem 0 0.3rem;
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
}
.ai-body ul { margin: 0; padding-left: 1.05rem; font-size: 0.82rem; }
.ai-body ul li { margin-bottom: 0.2rem; }

/* Superscript numbers, so a claim and its source stay attached. */
.cite { margin-left: 0.25rem; white-space: nowrap; }
.cite a {
  font-size: 0.6rem;
  font-weight: 700;
  vertical-align: super;
  color: var(--forest);
  text-decoration: none;
  padding: 0 0.1rem;
}
.cite a:hover { text-decoration: underline; }

.ai-note {
  margin: 0.8rem 0 0.6rem !important;
  padding: 0.45rem 0.6rem;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.74rem !important;
}
.ai-sources { margin: 0; padding-left: 1.2rem; font-size: 0.74rem; color: var(--muted); }
.ai-sources li { margin-bottom: 0.15rem; }
.ai-sources a { color: var(--forest); }
.ai-sources small { color: var(--unknown); }

/* Review quotes, not links. Set apart from the prose above them so it stays
   obvious which words are the visitor's and which are the model's - the whole
   claim of this panel is that every sentence traces to one of these. */
.ai-sources.quotes { padding-left: 1.4rem; }
.ai-sources.quotes li { margin-bottom: 0.4rem; line-height: 1.45; }
.ai-sources.quotes q {
  color: var(--ink-soft, var(--muted));
  font-style: italic;
  quotes: '\201C' '\201D';
}
.ai-sources.quotes li:target q,
.ai-sources.quotes li.cited q { background: var(--highlight, rgba(255, 220, 120, 0.35)); }

.kids-verdict { margin: 0 0 0.4rem; }
.kids-verdict small { color: var(--muted); font-weight: 400; }
.kids-verdict.good strong { color: var(--good); }
/* A warning about a child is the one claim on this page that should not be
   easy to skim past. */
.kids-verdict.warn strong { color: var(--bad); }
.kids-verdict.none { color: var(--muted); font-size: 0.82rem; }

/* ---------- quoted prices ---------- */

.price-groups { display: flex; flex-wrap: wrap; gap: 0 26px; padding: 11px 12px 4px; }
.price-group { min-width: 8.5rem; }
.price-group h3 {
  margin: 0 0 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.price-list { list-style: none; margin: 0 0 0.7rem; padding: 0; }
.price-list li { margin-bottom: 0.3rem; }
.price-amount { font-weight: 700; font-variant-numeric: tabular-nums; }
.price-when { color: var(--muted); font-size: 0.72rem; margin-left: 0.35rem; }
/* A price from 2019 is not wrong, it is old - and saying which is the whole
   point of carrying the date around. */
.price-when.is-stale { color: var(--unknown); font-style: italic; }
.price-list details { margin-top: 0.1rem; }
.price-list summary { cursor: pointer; color: var(--muted); font-size: 0.7rem; }

.setting-proof { display: block; margin-top: 0.15rem; }
.setting-proof summary { cursor: pointer; color: var(--muted); font-size: 0.7rem; font-weight: 400; }
.setting-proof .evidence { display: block; margin-top: 0.2rem; }

/* ---------- photo gallery ---------- */

.gallery { margin: 0 0 14px; }
.gallery .detail-cover { display: block; width: 100%; margin: 0; }
.gallery-caption {
  font-size: 0.72rem;
  color: var(--muted);
  padding: 5px 2px 0;
}
.gallery-caption[hidden] { display: none; }

/* Scrolls sideways rather than wrapping: twelve thumbnails stacked into three
   rows push the first finding below the fold, which is the opposite of what a
   gallery is for. */
.gallery-strip {
  display: flex;
  gap: 6px;
  margin-top: 7px;
  overflow-x: auto;
  scrollbar-width: thin;
  padding-bottom: 3px;
  scroll-snap-type: x proximity;
}
.gallery-thumb {
  flex: 0 0 72px;
  height: 54px;
  padding: 0;
  border: 0;
  border-radius: 7px;
  overflow: hidden;
  cursor: pointer;
  background: var(--line-soft);
  opacity: 0.62;
  scroll-snap-align: start;
  transition: opacity 160ms ease, box-shadow 160ms ease;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery-thumb:hover { opacity: 0.85; }
.gallery-thumb.is-active { opacity: 1; box-shadow: 0 0 0 2px var(--forest); }
.gallery-thumb:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .gallery-thumb { transition: none; }
}

/* ---------- lightbox ---------- */

.lightbox {
  border: 0;
  padding: 0;
  background: transparent;
  width: 100vw;
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  /* minmax(0, 1fr), not 1fr: a grid row defaults to min-content, so the image
     refused to shrink below its natural 900px and hung out of the bottom of
     the dialog. */
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 8px;
  padding: 3.2rem 1rem 1rem;
}
.lightbox::backdrop { background: rgba(9, 14, 22, 0.86); }
.lightbox:not([open]) { display: none; }

#lightbox-img {
  grid-column: 2;
  grid-row: 1;
  width: auto;
  height: auto;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
  object-fit: contain;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.lightbox-bar {
  grid-column: 1 / -1;
  grid-row: 2;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.6rem;
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
}
.lightbox-count { color: rgba(255, 255, 255, 0.55); font-variant-numeric: tabular-nums; }

.lightbox-nav,
.lightbox-close {
  border: 0;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: grid;
  place-items: center;
  transition: background 160ms ease;
}
.lightbox-nav { width: 44px; height: 44px; grid-row: 1; }
.lightbox-nav.prev { grid-column: 1; }
.lightbox-nav.next { grid-column: 3; }
.lightbox-nav[hidden] { display: none; }
.lightbox-close {
  position: absolute;
  top: 0.9rem;
  right: 1rem;
  width: 38px;
  height: 38px;
}
.lightbox-nav:hover,
.lightbox-close:hover { background: rgba(255, 255, 255, 0.24); }
.lightbox-nav:focus-visible,
.lightbox-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- dialog fitur premium ---------- */

.info-dialog {
  position: relative;
  width: min(560px, calc(100vw - 2rem));
  max-height: min(80dvh, 640px);
  overflow: auto;
  padding: 1.4rem 1.4rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}
.info-dialog::backdrop { background: rgba(9, 14, 22, 0.6); }
.info-dialog:not([open]) { display: none; }
.info-dialog h2 { margin: 0 2.2rem 0.8rem 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.info-dialog .btn-premium { margin: 4px 0 8px; }
.info-close { display: grid; position: absolute; top: 0.9rem; right: 0.9rem; }

.info-list { margin: 0 0 0.9rem; padding: 0; list-style: none; display: grid; gap: 0.7rem; }
.info-list li { display: grid; gap: 2px; }
.info-list strong { font-size: 0.88rem; }
.info-list span { font-size: 0.78rem; line-height: 1.45; color: var(--muted); }

/* The cover is now a way in, so it has to look like one. */
.gallery .detail-cover { cursor: zoom-in; }

@media (max-width: 640px) {
  .lightbox { padding: 3rem 0.4rem 0.8rem; gap: 0 4px; }
  .lightbox-nav { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .lightbox-nav, .lightbox-close { transition: none; }
}

/* ---------- folded quote blocks ---------- */

/* Other people's sentences are evidence, not reading material. A detail page
   can carry eighteen of them, and left open they bury the findings they exist
   to support - so they fold, and the summary says how many are behind it. */
.quote-fold { margin-top: 0.5rem; }
.quote-fold > summary {
  cursor: pointer;
  font-size: 0.74rem;
  color: var(--muted);
  padding: 3px 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
  transition: color 160ms ease;
}
.quote-fold > summary::-webkit-details-marker { display: none; }
.quote-fold > summary::before {
  content: '';
  width: 0.34rem;
  height: 0.34rem;
  border-right: 1.4px solid currentColor;
  border-bottom: 1.4px solid currentColor;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}
.quote-fold[open] > summary::before { transform: rotate(45deg); }
.quote-fold > summary:hover { color: var(--forest); }
.quote-fold > summary:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; border-radius: 3px; }
.quote-fold > *:not(summary) { margin-top: 0.4rem; }

/* ---------- two readings, side by side ---------- */

/* Neither column is styled as the winner. The moment one looks primary, the
   panel stops being a comparison and becomes an assertion. */
.compare { display: grid; grid-template-columns: 1fr 1fr; }
.compare-col {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 11px 12px;
  border-left: 1px solid var(--line-soft);
}
.compare-col:first-child { border-left: 0; }
.compare-label {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}
.compare-col strong { font-size: 1.05rem; font-weight: 800; letter-spacing: -0.02em; }
.compare-col strong.muted { color: var(--unknown); font-weight: 600; }
.compare-col small { font-size: 0.68rem; color: var(--muted); }

.panel.has-conflict { border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }

.quotes { margin: 0; padding: 0 12px 11px 1.9rem; font-size: 0.78rem; }
.quotes li { margin-bottom: 0.3rem; }
.quotes li::marker { color: var(--line); }
.quotes small { display: block; color: var(--unknown); font-size: 0.68rem; font-style: normal; }

@media (max-width: 60rem) {
  .compare { grid-template-columns: 1fr; }
  .compare-col { border-left: 0; border-top: 1px solid var(--line-soft); }
  .compare-col:first-child { border-top: 0; }
}

/* Quieter than the Plus/Minus lists: hearsay must not read as a finding. */
.weak ul { margin: 0; padding: 10px 12px 12px 1.9rem; font-size: 0.78rem; color: var(--muted); }
.weak li { margin-bottom: 0.25rem; }
.weak li::marker { color: var(--line); }

.detail-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.detail-foot p { margin: 0.5rem 0 0; color: var(--muted); font-size: 0.72rem; max-width: 68ch; text-wrap: pretty; }
.report { color: var(--muted); font-size: 0.78rem; }
.report:hover { color: var(--forest); }

/* ---------- narrow: one pane at a time ---------- */

@media (max-width: 60rem) {
  .shell {
    grid-template-columns: 1fr;
    padding: 0;
    height: 100dvh;
  }
  .rail, .listpane, .detail {
    grid-area: 1 / 1;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    opacity: 1;
    transition: transform 260ms var(--ease), visibility 260ms;
  }

  /* Every pane's state is written out for every view rather than layered as
     base + override. Equal specificity, no cascade order to get right: a pane
     left visible by a missed fallback covers the list and the app looks frozen. */
  .shell[data-view="list"] .listpane { transform: none; visibility: visible; }
  .shell[data-view="list"] .rail { transform: translateX(-100%); visibility: hidden; }
  .shell[data-view="list"] .detail { transform: translateX(100%); visibility: hidden; }

  .shell[data-view="detail"] .detail { transform: none; visibility: visible; }
  .shell[data-view="detail"] .rail { transform: translateX(-100%); visibility: hidden; }
  .shell[data-view="detail"] .listpane { transform: none; visibility: hidden; }

  .shell[data-view="filters"] .rail { transform: none; visibility: visible; }
  .shell[data-view="filters"] .detail { transform: translateX(100%); visibility: hidden; }
  .shell[data-view="filters"] .listpane { transform: none; visibility: hidden; }

  .icon-btn { display: grid; }
  /* Must match the specificity of the .icon-btn.rail-close block above, or the
     button that block hides on desktop never comes back on a phone. */
  .icon-btn.rail-close { display: grid; }

  /* Menempel di bawah, di dalam rail yang bisa digulung: filter terakhir ada
     di ujung bawah formulir, dan jalan keluarnya harus ada di tempat jempol
     berhenti - bukan di pojok atas yang harus dicari dengan menggulung balik.
     Rail-nya sendiri yang jadi wadah sticky, jadi tidak ada elemen melayang
     yang menutupi baris terakhir formulir. */
  .rail-apply {
    display: block;
    position: sticky;
    bottom: 0;
    z-index: 2;
    /* Menembus padding rail supaya latarnya menutup penuh sampai tepi layar. */
    margin: 4px -14px calc(-1 * (14px + env(safe-area-inset-bottom, 0px)));
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line);
    background: var(--surface);
  }
  .rail-apply .btn { width: 100%; justify-content: center; }
  .detail-split, .lists, .stats { grid-template-columns: 1fr; }
  .stat { border-left: 0; border-top: 1px solid var(--line-soft); }
  .stat:first-child { border-top: 0; }

  /* The button drops below the title instead of squeezing it into two words
     per line. Ordered last so the back arrow keeps the top-left corner. */
  .detail-head { flex-wrap: wrap; }
  .detail-head .btn { order: 3; width: 100%; text-align: center; }

  /* Two columns of cards still fit on a phone; one would waste the width. */
  .cards { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 10px; padding: 10px; }

  /* Side by side, the price loses and ends up as "Rp20.000…". A truncated
     price is worse than no price: it reads as a smaller number than it is. */
  .card-foot { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .rail, .detail { transition: none; }
}

/* ---------------------------------------------------------------------------
   Panel premium.

   Dibedakan dari panel biasa dengan garis tepi hangat, bukan dengan blur atau
   gembok besar: isi di dalamnya tetap harus terbaca sebagai data, dan hiasan
   yang berteriak "berbayar" membuat orang membaca angkanya sebagai iklan.
   --------------------------------------------------------------------------- */
.premium-wrap { display: contents; }

.pill.premium {
  color: var(--amber);
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.panel:has(> .panel-head .pill.premium) {
  border-color: color-mix(in srgb, var(--amber) 30%, var(--line));
}
.panel-head:has(.pill.premium) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  background: color-mix(in srgb, var(--amber) 6%, transparent);
}
.panel > .alert, .panel > .note { margin: 10px 12px; }
.alert.warn {
  color: var(--mid);
  background: color-mix(in srgb, var(--mid) 12%, transparent);
  border-color: color-mix(in srgb, var(--mid) 32%, transparent);
}

.panel-locked .panel-note { padding-bottom: 4px; }
.btn-premium {
  margin: 8px 12px 12px;
  padding: 0.45rem 0.8rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--amber);
  color: #fff;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-premium:hover { filter: brightness(1.08); }
.btn-premium:active { transform: translateY(1px); }
.btn-premium[disabled] { opacity: 0.55; cursor: progress; }

.premium-foot { margin: 10px 0 0; font-size: 0.72rem; color: var(--muted); }
.linklike {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--forest);
  text-decoration: underline;
  cursor: pointer;
}

/* Tiga hari, satu kartu, pembatas di dalam - sama seperti .stats. */
.wx-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.wx-day { padding: 11px 12px; border-left: 1px solid var(--line-soft); }
.wx-day:first-child { border-left: 0; }
.wx-date { margin: 0; font-size: 0.68rem; font-weight: 700; color: var(--muted); }
.wx-label { margin: 0.15rem 0 0; font-size: 0.8rem; }
.wx-num { margin: 0.15rem 0 0; font-size: 1.05rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.03em; }
.wx-sub { margin: 0.1rem 0 0; font-size: 0.68rem; color: var(--muted); }

.gh-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.gh-row { padding: 11px 12px; border-left: 1px solid var(--line-soft); border-top: 1px solid var(--line-soft); }
.gh-row:nth-child(odd) { border-left: 0; }
.gh-row:nth-child(-n+2) { border-top: 0; }
.gh-label { margin: 0; font-size: 0.68rem; font-weight: 600; color: var(--muted); }
.gh-time { margin: 0.1rem 0 0; font-size: 1rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.gh-sub { margin: 0.1rem 0 0; font-size: 0.68rem; color: var(--muted); }

.spots { margin: 0; padding: 4px 12px 10px; list-style: none; }
.spots > li { padding: 8px 0; border-top: 1px solid var(--line-soft); }
.spots > li:first-child { border-top: 0; }
.spot-head { margin: 0; font-size: 0.82rem; display: flex; justify-content: space-between; gap: 0.6rem; }
.spot-count { flex: none; font-size: 0.68rem; color: var(--muted); font-weight: 600; }
.spot-when { margin: 0.15rem 0 0; font-size: 0.72rem; color: var(--amber); font-weight: 600; }
.spots .quotes { margin: 0.3rem 0 0; padding-left: 1rem; }
.qdate { font-size: 0.68rem; color: var(--muted); }

.plan-depart { font-size: 0.9rem; }
.plan-summary {
  font-size: 0.86rem;
  font-weight: 600;
  border-left: 2px solid var(--forest);
  padding-left: 0.6rem;
}
.plan-block { margin-top: 0.7rem; }
.plan-block ul, .plan-block ol { margin: 0; padding-left: 1.1rem; font-size: 0.82rem; }
.plan-block li { margin-bottom: 0.3rem; text-wrap: pretty; }
.plan .panel-note { padding-left: 0; padding-right: 0; }
.plan-dur { font-size: 0.72rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Jadwal: jamnya satu kolom sendiri supaya bisa dipindai ke bawah tanpa
   membaca kalimatnya - itu satu-satunya alasan sebuah jadwal berbentuk tabel. */
.plan-timeline { list-style: none; padding-left: 0 !important; }
.plan-step {
  display: grid;
  grid-template-columns: 3.6rem minmax(0, 1fr);
  gap: 0 0.6rem;
  padding: 0.3rem 0;
  border-top: 1px solid var(--line-soft);
}
.plan-step:first-child { border-top: 0; }
.plan-time { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--forest); }
.plan-what { display: grid; gap: 1px; }
.plan-what .gh-sub { font-size: 0.74rem; }

.cost-list { list-style: none; padding-left: 0 !important; }
.cost-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: baseline;
  gap: 0 0.5rem;
  padding: 0.25rem 0;
  border-top: 1px solid var(--line-soft);
}
.cost-list li:first-child { border-top: 0; }
.cost-num { font-variant-numeric: tabular-nums; font-weight: 600; }
.cost-src { font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.04em; }
.cost-src.is-data { color: var(--forest); }
.cost-src.is-guess { color: var(--muted); }
.cost-total { margin-top: 0.4rem !important; font-size: 0.84rem; }

.pack-group { margin-bottom: 0.5rem; }
.pack-group h4 {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.pack-qty {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 0.3rem;
  border-radius: 4px;
  background: color-mix(in srgb, var(--forest) 12%, transparent);
  color: var(--forest);
}
.plan-ifthen li { margin-bottom: 0.4rem; }

@media (max-width: 520px) {
  .plan-step { grid-template-columns: 3rem minmax(0, 1fr); }
  .cost-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .cost-src { grid-column: 2; }
}

@media (max-width: 760px) {
  .wx-grid, .gh-grid { grid-template-columns: 1fr; }
  .wx-day, .gh-row { border-left: 0; border-top: 1px solid var(--line-soft); }
  .wx-day:first-child, .gh-row:first-child { border-top: 0; }
}

/* ---------------------------------------------------------------------------
   Halaman depan.

   Satu kolom terpusat, kartu yang sama bahasanya dengan panel di halaman
   detail: garis tipis, sudut membulat, tanpa bayangan tebal. Yang membedakan
   tile premium dari tile gratis cuma penanda dan warna tepinya - bukan ukuran,
   karena fitur gratisnya justru yang paling sering dipakai.
   --------------------------------------------------------------------------- */

/* display: grid pada .shell menang atas atribut hidden kalau tidak dimatikan
   di sini, dan hasilnya kedua halaman tampil bertumpuk. */
.shell[hidden], .home[hidden] { display: none; }

.home {
  max-width: 1100px;
  margin: 0 auto;
  padding: 18px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 6px;
}
.home-brand { display: flex; align-items: center; gap: 0.5rem; }

.hero { padding: 22px 0 4px; }
.hero-kicker {
  margin: 0 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4.4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
  font-weight: 800;
  max-width: 18ch;
  text-wrap: balance;
}
.hero-sub {
  margin: 0.9rem 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.4rem; }
.btn-lg { padding: 0.7rem 1.2rem; font-size: 0.88rem; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--surface-2); }

.hero-stats {
  margin: 2rem 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-stats > div { background: var(--surface); padding: 14px 16px; }
.hero-stats dt { font-size: 0.68rem; color: var(--muted); font-weight: 600; order: 2; }
.hero-stats dd {
  margin: 0 0 0.1rem;
  order: 1;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.hero-stats > div { display: flex; flex-direction: column; }

.menu {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  text-decoration: none;
  transition: border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}
.tile:hover { border-color: var(--forest); transform: translateY(-2px); }
.tile:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.tile-wide { grid-column: span 2; }
.tile h2 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.tile p { margin: 0; font-size: 0.82rem; color: var(--muted); line-height: 1.5; text-wrap: pretty; }
.tile-go {
  margin-top: auto;
  padding-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--forest);
}
.tile-go::after { content: " →"; }
.tile-tag {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--good);
}
.tile-tag.premium { color: var(--amber); }
.tile:has(.tile-tag.premium) { border-color: color-mix(in srgb, var(--amber) 26%, var(--line)); }
.tile:has(.tile-tag.premium):hover { border-color: var(--amber); }
.tile:has(.tile-tag.premium) .tile-go { color: var(--amber); }

.home-premium p, .home-foot p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  max-width: 78ch;
  text-wrap: pretty;
}
.home-foot { border-top: 1px solid var(--line); padding-top: 16px; }

@media (max-width: 860px) {
  .menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 560px) {
  .menu, .hero-stats { grid-template-columns: 1fr; }
  .tile-wide { grid-column: span 1; }
  .hero-cta .btn { flex: 1 1 100%; text-align: center; }
}

/* ---------------------------------------------------------------------------
   Akun dan rencana tersimpan.
   --------------------------------------------------------------------------- */
.trips[hidden] { display: none; }
.trips {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 18px 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.trips-head { display: flex; flex-direction: column; gap: 0.4rem; padding-top: 8px; }
.trips-head h1 { margin: 0; font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }

.home-auth { display: flex; align-items: center; gap: 0.7rem; margin-left: auto; font-size: 0.8rem; }
.auth-who { color: var(--muted); max-width: 22ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linklike.danger { color: var(--bad); }

.trip-list { display: flex; flex-direction: column; gap: 12px; }
.trip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.trip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.4rem;
}
.trip-head h2 { margin: 0; font-size: 1rem; font-weight: 700; letter-spacing: -0.02em; }
.trip-head h2 a { color: inherit; text-decoration: none; }
.trip-head h2 a:hover { text-decoration: underline; }
.trip-meta { margin: 0.15rem 0 0; font-size: 0.72rem; color: var(--muted); }
.trip-actions { flex: none; display: flex; gap: 0.7rem; font-size: 0.78rem; }
.trip code { font-size: 0.72rem; word-break: break-all; }

/* Tombol masuk Google. Ukuran, warna, dan radiusnya mengikuti panduan merek
   Google - bentuk inilah yang dikenali orang sebagai "aman ditekan", dan
   menggantinya dengan gaya sendiri justru membuat tombol login terasa asing. */
.btn-google {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  height: 40px;
  padding: 0 14px;
  border: 1px solid #747775;
  border-radius: var(--radius-pill);
  background: #fff;
  color: #1f1f1f;
  font: 600 0.82rem var(--font);
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.btn-google:hover { background: #f6f8fc; box-shadow: 0 1px 3px rgba(60, 64, 67, 0.25); }
.btn-google:active { background: #eef1f6; }
.btn-google-mark { display: flex; flex: none; }

@media (prefers-color-scheme: dark) {
  .btn-google { background: #131314; border-color: #8e918f; color: #e3e3e3; }
  .btn-google:hover { background: #1c1c1d; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
  .btn-google:active { background: #242426; }
}

/* Di bilah atas beranda tombolnya berdampingan dengan "Buka direktori", jadi
   tingginya disamakan supaya barisnya tidak terlihat pincang. */
.home-auth .btn-google { height: 36px; font-size: 0.78rem; }

/* Halaman #/banding: tabel data terukur, nol panggilan model. */
.compare-page { padding: 18px 16px 90px; max-width: 900px; margin: 0 auto; }
.cmp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.cmp-head h1 { margin: 0; font-size: 1.15rem; font-weight: 800; letter-spacing: -0.025em; }
.cmp-wrap { overflow-x: auto; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.cmp-table th, .cmp-table td { padding: 0.55rem 0.6rem; text-align: left; vertical-align: top; border-top: 1px solid var(--line-soft); }
.cmp-table thead th { border-top: 0; font-size: 0.85rem; font-weight: 800; }
.cmp-table tbody th { font-weight: 700; width: 30%; min-width: 8rem; }
.cmp-note { display: block; font-weight: 400; font-size: 0.7rem; color: var(--muted); }
.cmp-cell.is-warn { color: var(--amber); }
.cmp-cell.is-bad { color: var(--bad); }
.cmp-cell.is-unknown { color: var(--muted); }
.cmp-cell.is-best { font-weight: 700; box-shadow: inset 2px 0 0 var(--forest); }
.rec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.rec-list li { border-left: 2px solid var(--forest); padding-left: 0.6rem; }
.rec-when { margin: 0; font-size: 0.8rem; }
.rec-pick { margin: 0.1rem 0; font-size: 0.92rem; font-weight: 800; }
.rec-why { margin: 0; font-size: 0.8rem; color: var(--muted); }
.panel .btn-google, .trips .btn-google { margin: 4px 12px 12px; }
