/* Bali Homestay & Rental — halaman publik, disamakan dengan demo.
   Palet demo: krem hangat, hijau tua, terakota, emas.
   Font: Lora (judul, serif) + Plus Jakarta Sans (isi) — dimuat di partials.html,
   fallback Georgia / system-ui kalau font tidak termuat. */
* { box-sizing: border-box; }
:root {
  --bg: #f7f4ee;
  --surface: #ffffff;
  --surface-2: #efe9dd;
  --ink: #1d2620;
  --ink-soft: #4c5a51;
  --line: #ddd5c6;
  --green: #17573a;
  --green-dark: #0f3d28;
  --green-soft: #e2efe6;
  --terra: #bc4b24;
  --terra-soft: #fbe9df;
  --gold: #b98a1d;
  --wa: #1faa55;
  --danger: #b3261e;
  --danger-soft: #fbe7e5;
  --ok: #1c6b3c;
  --ok-soft: #e2f2e6;
  --shadow: 0 10px 30px rgba(29, 38, 32, .10);
  --radius: 16px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #10140f;
    --surface: #1a201a;
    --surface-2: #232a22;
    --ink: #e9ede6;
    --ink-soft: #a9b5a8;
    --line: #333d33;
    --green: #8fd0a8;
    --green-dark: #bfe6cf;
    --green-soft: #1e3325;
    --terra: #eda07c;
    --terra-soft: #3a241a;
    --gold: #e3bc55;
    --danger: #f2a49e;
    --danger-soft: #3d1f1c;
    --ok: #93d8a8;
    --ok-soft: #1d3323;
    --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  }
}
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px; line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, table { max-width: 100%; }
img { display: block; }
a { color: var(--green); }
h1, h2, h3 { font-family: "Lora", Georgia, serif; line-height: 1.2; margin: 0; }
h1 { font-size: clamp(1.7rem, 4vw, 2.1rem); margin: .5rem 0 .75rem; }
h2 { font-size: clamp(1.45rem, 4vw, 2rem); margin: 0; }
h3 { font-size: 1.18rem; margin: 0 0 .4rem; }
p { margin: .4rem 0 .8rem; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 18px; }
.muted { color: var(--ink-soft); font-size: .92rem; }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 8px; }
.sec-sub { color: var(--ink-soft); max-width: 62ch; margin: 6px 0 22px; }
section { padding: 52px 0 8px; }
main > .container > section:first-child { padding-top: 28px; }

/* Header + nav: sticky, krem tembus pandang seperti demo */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 60px; padding-top: 4px; padding-bottom: 4px; }
.brand { font-family: "Lora", Georgia, serif; font-weight: 700; font-size: 1.15rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: .92rem; padding: 10px 12px; border-radius: 10px; display: inline-flex; align-items: center; min-height: 40px; }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 720px) { .nav a { display: none; } .nav { margin-left: 0; } }

/* Tombol: target sentuh >= 48px (demo: 44px, kami pakai 48px) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 0;
  font-family: inherit; font-size: 1rem; font-weight: 700; text-decoration: none; cursor: pointer;
  line-height: 1.2; text-align: center;
  background: var(--green); color: #fff; transition: filter .15s ease, transform .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--green); color: #fff; }
.btn-terra { background: var(--terra); color: #fff; }
.btn-secondary { background: var(--green); color: #fff; }
.btn-ghost-light { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.75); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .9rem; }
.btn-block { display: flex; width: 100%; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }

/* Hero: foto penuh + veil gelap, teks putih — seperti demo */
.hero { position: relative; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: relative; min-height: min(78vh, 560px);
  background: linear-gradient(180deg, rgba(10, 25, 16, .18) 0%, rgba(10, 25, 16, .06) 40%, rgba(10, 25, 16, .72) 100%);
  display: flex; align-items: flex-end; padding-top: 30px;
}
.hero-in { padding-bottom: 34px; color: #fff; width: 100%; }
.hero-badge {
  display: inline-block; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45);
  padding: 5px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; margin-bottom: 12px;
}
.hero h1 { font-size: clamp(2rem, 6vw, 3.4rem); max-width: 16ch; color: #fff; }
.hero-sub { max-width: 56ch; margin: 12px 0 20px; font-size: clamp(1rem, 2.4vw, 1.13rem); color: rgba(255,255,255,.92); }
.hero-stats { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; font-size: .92rem; color: rgba(255,255,255,.92); }
.hero-stats b { display: block; font-size: 1.25rem; font-family: "Lora", Georgia, serif; }

/* Tentang */
.about { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 820px) { .about { grid-template-columns: 1.05fr 1fr; } }
.about img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; box-shadow: var(--shadow); }
.feat-list { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-soft); }
.feat-check { color: var(--terra); font-weight: 800; flex: none; }

/* Kartu: foto 16/10, chips, price-row garis putus-putus — seperti demo */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; margin: 12px 0; }
.grid.rooms { grid-template-columns: 1fr; }
.grid.rentals { grid-template-columns: 1fr; }
@media (min-width: 680px) { .grid.rooms { grid-template-columns: repeat(3, 1fr); } .grid.rentals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid.rentals { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.card-visual { min-height: 110px; display: flex; align-items: center; justify-content: center; font-size: 3rem; aspect-ratio: 16 / 10; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body .btn { margin-top: auto; }
.cap { color: var(--ink-soft); font-size: .88rem; font-weight: 600; }
.desc { color: var(--ink-soft); font-size: .93rem; margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.chip { background: var(--green-soft); color: var(--green-dark); font-size: .76rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; }
.price-row { margin-top: auto; padding-top: 10px; display: flex; align-items: end; justify-content: space-between; gap: 10px; border-top: 1px dashed var(--line); }
.price { font-size: 1.22rem; font-weight: 800; color: var(--ink); }
.price small { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.meta { color: var(--ink-soft); font-size: .92rem; }
.howto { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow); }

/* Testimoni (dari CMS) */
.testi-grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 680px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.testi-card blockquote { margin: 0 0 10px; font-family: "Lora", Georgia, serif; font-size: 1.05rem; line-height: 1.45; }
.testi-card .stars { color: var(--gold); font-weight: 800; letter-spacing: .1em; }
.testi-card .who { color: var(--ink-soft); font-size: .9rem; font-weight: 600; }

/* Form booking: panel + ringkasan hijau lembut — seperti demo */
form { display: flex; flex-direction: column; gap: 6px; }
label { font-weight: 700; margin-top: 10px; font-size: .88rem; }
label span.hint { font-weight: 500; color: var(--ink-soft); font-size: .8rem; }
input, textarea, select {
  width: 100%; min-height: 48px; padding: 10px 12px; font: inherit; font-size: 1rem;
  border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink);
}
textarea { min-height: 96px; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.book-panel {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 22px; display: grid; gap: 22px; grid-template-columns: 1fr;
  margin: 16px 0;
}
@media (min-width: 860px) { .book-panel { grid-template-columns: 1.5fr 1fr; } }
.summary { background: var(--green-soft); border-radius: 12px; padding: 18px; align-self: start; }
.summary h3 { font-size: 1.05rem; margin-bottom: 12px; font-family: "Plus Jakarta Sans", system-ui, sans-serif; font-weight: 800; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: .93rem; padding: 5px 0; color: var(--ink-soft); }
.sum-row b { color: var(--ink); font-weight: 700; text-align: right; }
.total-box { background: transparent; border: 0; border-top: 1.5px solid var(--line); border-radius: 0; padding: 12px 0 0; margin-top: 8px; font-weight: 800; font-size: 1.15rem; }
.alert { padding: 12px 14px; border-radius: 12px; }
.alert-error { background: var(--danger-soft); border: 1px solid var(--danger); color: var(--danger); }
.alert-success { background: var(--ok-soft); border: 1px solid var(--ok); color: var(--ok); }

/* Admin konten dinamis (dipakai juga di dalam layout TailwindAdmin) */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 12px 0 20px; max-width: 720px; }
.item-card { border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 12px 0; }
.item-card legend { font-weight: 800; padding: 0 6px; }
.check-label { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--danger); margin-top: 12px; }
.check-label input { width: auto; min-height: 24px; }
.booking-summary { flex-direction: column; }
@media (min-width: 640px) { .booking-summary { flex-direction: row; } .booking-summary .card-img { width: 220px; flex: none; aspect-ratio: auto; height: 100%; object-fit: cover; } .booking-summary .card-visual { min-width: 180px; } }

/* Tabel detail + admin */
.detail-table { width: 100%; border-collapse: collapse; background: var(--surface); margin: 12px 0; }
.detail-table th, .detail-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.detail-table th { width: 34%; color: var(--ink-soft); font-weight: 600; }
.table-wrap { overflow-x: auto; }
.admin-table th { width: auto; white-space: nowrap; }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.badge-pending { background: #fef3c7; color: #92400e; }
.badge-confirmed { background: #d1fae5; color: #065f46; }
.badge-cancelled { background: #fee2e2; color: #991b1b; }
.inline-form { display: inline; }
.inline-form + .inline-form { margin-left: 6px; }
.success { text-align: center; padding: 12px 0; }
.success-icon { font-size: 3rem; margin: 0; }
.code { font-size: 1.3rem; letter-spacing: .04em; }

/* Footer: hijau tua, 3 kolom — seperti demo */
.site-footer { background: var(--green-dark); color: #dcebe1; margin-top: 64px; padding: 36px 0 40px; }
.site-footer h3 { color: #fff; margin-bottom: 10px; font-size: 1.05rem; }
.site-footer p, .site-footer li { color: #b9cec0; font-size: .93rem; }
.foot-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot-links a { color: #eaf5ee; }
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--wa); color: #fff; font-weight: 800; text-decoration: none;
  padding: 13px 18px; border-radius: 999px; box-shadow: 0 10px 24px rgba(0,0,0,.28); min-height: 48px;
}
.wa-float:hover { filter: brightness(1.07); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
