/* ==========================================================================
   Arsaloka Tours — Padang, Sumatera Barat
   Token desain diambil dari bedah referensi (lihat config/referensi-desain-arsaloka.md).
   Tidak ada berkas, gambar, atau teks dari situs referensi yang disalin.
   ========================================================================== */

/* ---------- Font (host sendiri, bukan CDN) ---------- */
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("/fonts/pjs-latin.woff2") format("woff2");
  /* 200 800: satu berkas variabel menanggung seluruh bobot. Sudah diuji
     dengan mengukur lebar teks 400 vs 800 — selisihnya nyata. */
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Token ---------- */
:root {
  --background: #ffffff;
  --foreground: #1f2227;
  --muted-fg: #6b7280;
  --secondary: #f6f6f4;
  --border: #e6e6e3;
  --input: #e2e2de;

  --primary: #5b5bd6;
  --primary-dark: #4747b8;
  --primary-soft: #eeeefc;

  --ink-dark: #1f2227;
  --white: #ffffff;

  --radius: 0.75rem;
  --radius-lg: 1.5rem;
  --radius-pill: 9999px;

  --shell: 1280px;
  --pad: 20px;

  --shadow-sm: 0 1px 2px rgba(20, 22, 26, 0.06);
  --shadow-md: 0 6px 24px rgba(20, 22, 26, 0.08);
  --shadow-float: 0 10px 40px rgba(20, 22, 26, 0.14);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 768px) {
  :root { --pad: 32px; }
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a { color: inherit; text-decoration: none; }

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1, h2, h3, h4 {
  margin: 0;
  letter-spacing: -0.022em;
  line-height: 1.12;
  font-weight: 700;
}

p { margin: 0; }

ul { margin: 0; padding: 0; list-style: none; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Utilitas ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section { padding-block: 56px; }
@media (min-width: 768px) { .section { padding-block: 96px; } }

.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Tombol ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    transform 0.12s var(--ease), border-color 0.18s var(--ease);
}

.btn:active { transform: scale(0.975); }

.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--foreground);
}
.btn-ghost:hover { background: var(--secondary); }

.btn-white {
  background: var(--white);
  color: var(--ink-dark);
}
.btn-white:hover { background: #efeef9; }

.btn-dark {
  background: var(--ink-dark);
  color: var(--white);
}
.btn-dark:hover { background: #33373e; }

.btn-block { width: 100%; }

/* ---------- Bar pengumuman ---------- */
.notice {
  background: var(--ink-dark);
  color: #d6d8dd;
  font-size: 0.76rem;
  text-align: center;
  padding: 9px var(--pad);
  letter-spacing: 0.01em;
}
.notice strong { color: var(--white); font-weight: 600; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--background) 94%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.site-header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand-mark {
  width: 32px; height: 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.site-nav {
  display: none;
  gap: 4px;
  margin-left: 14px;
}
@media (min-width: 900px) { .site-nav { display: flex; } }

.site-nav a {
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: background-color 0.16s var(--ease), color 0.16s var(--ease);
}
.site-nav a:hover { background: var(--secondary); color: var(--foreground); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-actions .btn { min-height: 38px; padding: 0 16px; font-size: 0.84rem; }

.btn-login { display: none; }
@media (min-width: 560px) { .btn-login { display: inline-flex; } }

/* ---------- Hero ---------- */
.hero { padding-top: 26px; }
@media (min-width: 768px) { .hero { padding-top: 40px; } }

.hero-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: flex-end;
}
@media (min-width: 768px) { .hero-frame { min-height: 620px; } }

.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Overlay dua lapis: gelap di bawah untuk keterbacaan, tipis di atas
   supaya langit tidak pecah. */
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(15, 17, 21, 0.82) 0%, rgba(15, 17, 21, 0.42) 42%, rgba(15, 17, 21, 0.16) 70%, rgba(15, 17, 21, 0.22) 100%);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 26px 22px;
  max-width: 720px;
  color: var(--white);
}
@media (min-width: 768px) { .hero-copy { padding: 54px 48px; } }

.hero-copy .eyebrow {
  color: #b9bcff;
  display: block;
  margin-bottom: 12px;
}

.hero-copy h1 {
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.hero-copy p {
  font-size: clamp(0.92rem, 1.4vw, 1.02rem);
  line-height: 1.6;
  color: #e3e5ea;
  max-width: 56ch;
}

/* ---------- Bilah pencarian mengapung ---------- */
.search-bar {
  position: relative;
  z-index: 2;
  margin: -48px auto 0;
  max-width: 1080px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
  padding: 16px;
  display: grid;
  gap: 12px;
}
@media (min-width: 860px) {
  .search-bar {
    grid-template-columns: 1.5fr 1fr 1fr auto;
    align-items: end;
    gap: 10px;
    padding: 18px;
  }
}

.field { display: grid; gap: 6px; }

.field label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.field input,
.field select {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--input);
  border-radius: 10px;
  background: var(--background);
  /* 16px: mencegah iOS memperbesar halaman saat input difokus. */
  font-size: 16px;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}
.field input:focus,
.field select:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.search-bar .btn { min-height: 44px; }

/* ---------- Chip ---------- */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  background: var(--secondary);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--foreground);
  transition: background-color 0.16s var(--ease), border-color 0.16s var(--ease);
}
.chip:hover { background: var(--primary-soft); border-color: #d5d5f5; }

/* ---------- Judul seksi ---------- */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted-fg);
  font-size: 0.9rem;
  max-width: 62ch;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--primary);
  white-space: nowrap;
}
.link-arrow:hover { color: var(--primary-dark); }

/* ---------- Grid kartu destinasi ---------- */
.grid-dest {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 560px) { .grid-dest { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-dest { grid-template-columns: repeat(4, 1fr); } }

.card-dest {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  display: block;
  background: var(--secondary);
}

.card-dest img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
@media (hover: hover) {
  .card-dest:hover img { transform: scale(1.05); }
}

.card-dest::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.78), rgba(15, 17, 21, 0.08) 55%);
}

.card-dest-body {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  padding: 16px;
  color: var(--white);
}

.card-dest-body h3 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.card-dest-body span {
  font-size: 0.78rem;
  color: #d3d6dc;
}

.card-dest-price {
  display: inline-block;
  margin-top: 9px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

/* ---------- Kategori aktivitas ---------- */
.cat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 860px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }

.cat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--background);
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease),
    transform 0.16s var(--ease);
}
@media (hover: hover) {
  .cat:hover {
    border-color: #cfcff0;
    box-shadow: var(--shadow-sm);
    transform: translateY(-2px);
  }
}

.cat-ico {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
}

.cat b { display: block; font-size: 0.88rem; font-weight: 650; }
.cat small { display: block; font-size: 0.76rem; color: var(--muted-fg); }

/* ---------- Testimoni warga ---------- */
.quotes {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}
@media (min-width: 860px) { .quotes { grid-template-columns: repeat(3, 1fr); } }

.quote {
  padding: 22px;
  border-radius: var(--radius);
  background: var(--secondary);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quote-city {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
}

.quote p {
  font-size: 0.92rem;
  line-height: 1.62;
  quotes: "\201C" "\201D";
}
.quote p::before { content: open-quote; }
.quote p::after { content: close-quote; }

.quote footer {
  font-size: 0.78rem;
  color: var(--muted-fg);
  margin-top: auto;
}

/* ---------- Kenapa kami ---------- */
.why-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 620px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .why-grid { grid-template-columns: repeat(4, 1fr); } }

.why {
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.why-ico {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 13px;
}

.why h3 { font-size: 0.92rem; margin-bottom: 6px; }
.why p { font-size: 0.84rem; color: var(--muted-fg); line-height: 1.6; }

/* ---------- CTA gelap ---------- */
.cta-box {
  background: var(--ink-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 34px 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media (min-width: 860px) {
  .cta-box {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 48px 52px;
    gap: 40px;
  }
}

.cta-box h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  margin-bottom: 9px;
}

.cta-box p {
  color: #c3c6cd;
  font-size: 0.9rem;
  max-width: 56ch;
}

.cta-box .btn { flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 44px 26px;
  margin-top: 56px;
}

.footer-top {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .footer-top { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--muted-fg);
  margin-top: 12px;
  max-width: 34ch;
  line-height: 1.6;
}

.footer-contact {
  margin-top: 16px;
  display: grid;
  gap: 7px;
  font-size: 0.85rem;
}

.footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--foreground);
  font-weight: 550;
}
.footer-contact a:hover { color: var(--primary); }
.footer-contact svg { color: var(--primary); flex-shrink: 0; }

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 12px;
}

.footer-col li + li { margin-top: 9px; }

.footer-col a {
  font-size: 0.85rem;
  color: var(--foreground);
  transition: color 0.16s var(--ease);
}
.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted-fg);
}

/* ---------- Tombol WhatsApp mengambang ---------- */
.wa-float {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: #25d366;
  color: #0b3d20;
  font-weight: 700;
  font-size: 0.86rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.38);
  transition: transform 0.16s var(--ease), background-color 0.16s var(--ease);
}
.wa-float:hover { background: #1ebe5b; }
.wa-float:active { transform: scale(0.97); }

@media (max-width: 560px) {
  .wa-float span.wa-label { display: none; }
  .wa-float {
    width: 54px;
    padding: 0;
    justify-content: center;
  }
}

/* ---------- Animasi masuk (dihormati preferensi) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rise {
    animation: rise 0.6s var(--ease) both;
  }
  @keyframes rise {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }
  .rise-1 { animation-delay: 0.06s; }
  .rise-2 { animation-delay: 0.12s; }
  .rise-3 { animation-delay: 0.18s; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===================== Perbaikan HP ===================== */
/* 1. Tombol Cari tertutup tombol WhatsApp mengambang.
      Di HP, bilah pencarian bertumpuk vertikal sehingga tombol Cari berada
      paling bawah — persis di area tombol WA. Beri ruang ekstra di kanan-bawah
      dan naikkan tombol WA di atasnya. */
@media (max-width: 859px) {
  .search-bar { padding-bottom: 22px; }
  .search-bar .btn { margin-top: 2px; }
  .wa-float {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

/* 2. Target sentuh minimal 44px untuk elemen yang bisa diketuk. */
.brand {
  min-height: 44px;
  padding-block: 6px;
}
.chips .chip {
  min-height: 42px;
  padding: 0 16px;
}
@media (max-width: 859px) {
  .header-actions .btn { min-height: 44px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .footer-col a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }
  .footer-contact a { min-height: 40px; }
}

/* Atribut width/height pada <img> mencegah layout shift, tetapi di dalam
   kartu ber-aspect-ratio ia bisa menyisakan ruang kosong bila tinggi
   intrinsik lebih kecil. Paksa penuh. */
.card-dest img,
.hero-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* ===================== Seksi kategori dengan foto ===================== */
.cat-wrap {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .cat-wrap {
    grid-template-columns: 0.85fr 1.4fr;
    gap: 20px;
    align-items: stretch;
  }
}

.cat-foto {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 240px;
  background: var(--secondary);
}
@media (min-width: 900px) {
  .cat-foto { min-height: 100%; }
}

.cat-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.cat-foto::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15, 17, 21, 0.72), rgba(15, 17, 21, 0) 58%);
}

.cat-foto-caption {
  position: absolute;
  z-index: 1;
  inset: auto 0 0 0;
  padding: 18px;
  color: var(--white);
}
.cat-foto-caption b { display: block; font-size: 1rem; }
.cat-foto-caption span { font-size: 0.78rem; color: #d3d6dc; }

/* Kartu kategori menumpuk 1 kolom di kolom kanan yang lebih sempit */
@media (min-width: 900px) {
  .cat-wrap .cat-grid { grid-template-columns: 1fr; }
}

/* Caption foto kategori: gradien lebih tinggi agar teks putih tetap terbaca
   walau bagian bawah foto terang (langit Jam Gadang). */
.cat-foto::after {
  background: linear-gradient(
    to top,
    rgba(15, 17, 21, 0.88) 0%,
    rgba(15, 17, 21, 0.55) 26%,
    rgba(15, 17, 21, 0) 62%
  );
}
.cat-foto-caption { padding: 18px 18px 16px; }
.cat-foto-caption span { color: #e2e5ea; }

/* Kartu kategori di HP: 1 kolom. Dua kolom di 390px membuat judul
   "Alam & lanskap" pecah 2 baris dan keterangan jadi 3 baris — tidak terbaca
   cepat. Satu kolom per baris jauh lebih jernih, dan jumlahnya hanya 4. */
@media (max-width: 559px) {
  .cat-grid { grid-template-columns: 1fr; }
  .cat { padding: 14px 16px; }
  .cat b { font-size: 0.9rem; }
  .cat small { font-size: 0.78rem; }
}

/* Judul seksi tertutup header sticky saat digulir lewat jangkar.
   scroll-margin-top memberi ruang setinggi header (+sedikit). */
section[id] { scroll-margin-top: 84px; }
@media (max-width: 559px) { section[id] { scroll-margin-top: 76px; } }

/* ===================== Halaman detail paket ===================== */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  color: var(--muted-fg);
  margin-bottom: 14px;
}
.crumb a { color: var(--muted-fg); }
.crumb a:hover { color: var(--primary); }
.crumb [aria-current] { color: var(--foreground); font-weight: 600; }

.detail-grid {
  display: grid;
  gap: 22px;
  grid-template-columns: 1fr;
}
@media (min-width: 900px) {
  .detail-grid { grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
}

.detail-foto { display: grid; gap: 10px; }

.detail-foto > img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--secondary);
}

.galeri { display: flex; gap: 8px; }

.galeri-item {
  width: 76px;
  height: 56px;
  border-radius: 9px;
  border: 2px solid transparent;
  background-size: cover;
  background-position: center;
  cursor: pointer;
  padding: 0;
  transition: border-color .15s var(--ease);
}
.galeri-item[aria-current="true"] { border-color: var(--primary); }
.galeri-item:hover { border-color: var(--primary); }

.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.detail-meta div { min-width: 0; }
.detail-meta dt {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 3px;
}
.detail-meta dd {
  margin: 0;
  font-size: .88rem;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.detail-body {
  display: grid;
  gap: 26px;
  grid-template-columns: 1fr;
  margin-top: 34px;
}
@media (min-width: 900px) {
  .detail-body { grid-template-columns: 1.35fr 1fr; gap: 32px; align-items: start; }
}

.dua-kolom {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 24px;
}
@media (min-width: 560px) { .dua-kolom { grid-template-columns: 1fr 1fr; } }

.mini-head {
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 10px;
}

.daftar-centang, .daftar-silang { font-size: .87rem; }
.daftar-centang li, .daftar-silang li {
  display: flex;
  gap: 9px;
  padding: 4px 0;
  line-height: 1.55;
  color: #3a4048;
}
.daftar-centang li::before {
  content: "✓";
  color: #16a34a;
  font-weight: 800;
  flex-shrink: 0;
}
.daftar-silang li::before {
  content: "×";
  color: #b45309;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---------- Formulir pemesanan ---------- */
.form-pesan {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  background: var(--background);
  position: sticky;
  top: 84px;
}
@media (max-width: 899px) { .form-pesan { position: static; } }

.form-pesan .field { margin-bottom: 12px; }
.form-pesan textarea {
  width: 100%;
  min-height: 76px;
  padding: 11px 14px;
  border: 1px solid var(--input);
  border-radius: 10px;
  font-size: 16px;
  font-family: inherit;
  resize: vertical;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.form-pesan textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.dua-field {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 420px) { .dua-field { grid-template-columns: 1fr 1fr; } }

.galat, .sukses {
  font-size: .84rem;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 9px;
  margin-bottom: 12px;
}
.galat {
  background: #fdecec;
  border: 1px solid #f3c0c4;
  color: #8a1c25;
}
.sukses {
  background: #e9f7ee;
  border: 1px solid #b6e2c4;
  color: #14603a;
}
.sukses .btn { color: var(--white); }

/* ===================== Panel admin ===================== */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--secondary);
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
}

.stats-admin {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 18px;
}
@media (min-width: 700px) { .stats-admin { grid-template-columns: repeat(5, 1fr); } }

.stat-mini {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--background);
}
.stat-mini span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 4px;
}
.stat-mini b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }

.tab-admin {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
  padding-bottom: 0;
}
.tab-admin button {
  flex-shrink: 0;
  padding: 10px 14px;
  border: none;
  background: none;
  font-size: .87rem;
  font-weight: 600;
  color: var(--muted-fg);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  min-height: 44px;
}
.tab-admin button.aktif { color: var(--primary); border-bottom-color: var(--primary); }

.baris-alat {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filter-grup { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-grup button {
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--background);
  font-size: .8rem;
  font-weight: 600;
  color: var(--muted-fg);
  cursor: pointer;
  min-height: 36px;
}
.filter-grup button.aktif {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--white);
}

.cari {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--input);
  border-radius: 10px;
  font-size: 16px;
  min-width: 200px;
  flex: 1;
  max-width: 320px;
}
.cari:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px var(--primary-soft); }

.daftar-admin { display: grid; gap: 10px; }
.kosong {
  color: var(--muted-fg);
  font-size: .87rem;
  padding: 22px;
  text-align: center;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin: 0;
}

.kartu-admin {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 15px 16px;
  background: var(--background);
}
.kartu-admin.belum { border-left: 3px solid var(--primary); }

.ka-atas {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.ka-nama { font-size: .95rem; }
.ka-kode {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  color: var(--muted-fg);
  background: var(--secondary);
  padding: 2px 7px;
  border-radius: 5px;
  margin-left: 6px;
}
.ka-paket { font-size: .8rem; color: var(--muted-fg); margin-top: 3px; }

.ka-meta {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(2, 1fr);
  margin: 0 0 10px;
  font-size: .82rem;
}
@media (min-width: 700px) { .ka-meta { grid-template-columns: repeat(4, 1fr); } }
.ka-meta dt {
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted-fg);
  margin-bottom: 2px;
}
.ka-meta dd { margin: 0; font-weight: 600; }

.ka-catatan {
  font-size: .82rem;
  color: #3a4048;
  background: var(--secondary);
  padding: 8px 11px;
  border-radius: 8px;
  margin: 0 0 10px;
}

.ka-aksi { display: flex; flex-wrap: wrap; gap: 7px; }

.btn-kecil {
  min-height: 34px;
  padding: 0 12px;
  font-size: .78rem;
  border-radius: 8px;
}
.btn-kecil.bahaya { color: #a5262e; border-color: #f0c9cc; }
.btn-kecil.bahaya:hover { background: #fdecec; }

.kartu-paket { display: flex; gap: 14px; align-items: flex-start; }
.kpk-foto {
  width: 84px;
  height: 84px;
  border-radius: 9px;
  object-fit: cover;
  flex-shrink: 0;
}
.kpk-isi { flex: 1; min-width: 0; }
.kpk-slug {
  font-family: ui-monospace, monospace;
  font-size: .72rem;
  color: var(--muted-fg);
  margin-left: 6px;
}
.kpk-meta { font-size: .8rem; color: var(--muted-fg); margin-bottom: 9px; }

.form-panel {
  max-width: 480px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.form-panel .field { margin-bottom: 13px; }

.cek {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .87rem;
  margin: 14px 0;
  min-height: 44px;
}
.cek input { width: 18px; height: 18px; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 21, .55);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 16px;
}
.modal-card {
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--background);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-float);
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: var(--background);
  z-index: 1;
}
.modal-x {
  border: none;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted-fg);
  width: 40px;
  height: 40px;
  border-radius: 8px;
}
.modal-x:hover { background: var(--secondary); }
.modal-body { padding: 18px 20px 22px; }
.modal-body .field { margin-bottom: 12px; }
.modal-body textarea,
.modal-body input {
  width: 100%;
  padding: 10px 13px;
  border: 1px solid var(--input);
  border-radius: 9px;
  font-size: 16px;
  font-family: inherit;
}
.modal-body textarea { resize: vertical; }
.modal-body input:focus, .modal-body textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px var(--primary-soft);
}
.modal-foot {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* 404 */
.halaman-404 {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 40px 16px;
}

/* ===================== PENTING: atribut hidden =====================
   `.modal { display: grid }` dan `.auth-wrap { display: grid }` MENGALAHKAN
   atribut `hidden` bawaan browser, karena selektor kelas lebih spesifik
   daripada aturan UA `[hidden] { display: none }`. Akibatnya modal paket
   langsung terbuka dan layar login ikut tampil di atas panel.
   Aturan ini harus berada SETELAH deklarasi display komponen terkait. */
[hidden] { display: none !important; }

/* ===================== Seksi kontak ===================== */
.kontak-wrap {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 860px) {
  .kontak-wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.kontak-info {
  display: grid;
  gap: 10px;
  margin-top: 22px;
  font-size: .88rem;
}
.kontak-info a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  min-height: 40px;
}
.kontak-info a:hover { color: var(--primary); }
.kontak-info svg { color: var(--primary); flex-shrink: 0; }
.kontak-jam { color: var(--muted-fg); font-size: .84rem; }

/* Kartu destinasi yang bisa diklik ke halaman detail */
a.card-dest { cursor: pointer; }
a.card-dest:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; }
