/* Booking Engine — halaman tamu. Latar putih, foto besar bersudut bulat (arah desain dari Bima 4 Nov 2026).
   --brand = warna properti (be_profiles.brand_color) untuk tanggal terpilih & aksen; tombol utama hitam. */
:root {
  --ink: #141414; --muted: #6b6b6b; --line: #e7e7e4; --soft: #f4f4f2; --page: #ffffff;
  --brand: #2f4a3a; --on-brand: #ffffff; --brand-soft: color-mix(in srgb, var(--brand) 12%, white);
  --font: 'Inter Tight', system-ui, sans-serif;
  --r-xl: 28px; --r-l: 20px; --r-m: 14px; --r-s: 10px; --pill: 999px;
  --gut: 16px; --max: 1240px;
}
@media (min-width: 768px) { :root { --gut: 24px; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 16px/1.5 var(--font); }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.boot { min-height: 100vh; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.muted { color: var(--muted); }

/* ---------- Tombol ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--ink); border-radius: var(--pill);
  padding: 11px 20px; background: var(--ink); color: #fff; font-weight: 500; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn.line { background: transparent; color: var(--ink); }
.btn.block { width: 100%; padding: 14px 20px; font-size: 16px; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- Kepala halaman ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; }
.brandname { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 19px; letter-spacing: -.01em; text-decoration: none; }
.brandname img { height: 36px; width: auto; max-width: 120px; object-fit: contain; }
.links { display: none; gap: 26px; font-size: 15px; }
.links a { text-decoration: none; }
.links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.navr { display: flex; gap: 8px; align-items: center; }
.lang { border: 0; background: none; padding: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.navr .wa-btn { display: none; }
@media (min-width: 900px) { .links { display: flex; } .navr .wa-btn { display: inline-flex; } }

/* ---------- Banner ---------- */
.hero { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: min(78vh, 680px); background: #2b2b2b; color: #fff; display: flex; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.42) 0%, rgba(0,0,0,.05) 38%, rgba(0,0,0,.05) 55%, rgba(0,0,0,.55) 100%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; width: 100%; padding: 28px 22px 22px; gap: 28px; }
@media (min-width: 768px) { .hero-in { padding: 44px 40px 32px; } }
.hero h1 { font-weight: 500; font-size: clamp(40px, 7.2vw, 84px); line-height: .98; letter-spacing: -.035em; margin: 0; max-width: 11ch; }
.hero .lede { font-weight: 300; font-size: clamp(16px, 1.6vw, 19px); line-height: 1.45; margin: 18px 0 0; max-width: 34em; }

/* kotak cari di banner */
.finder { background: #fff; color: var(--ink); border-radius: var(--r-l); padding: 8px; display: grid; gap: 4px; grid-template-columns: 1fr 1fr; max-width: 860px; }
.finder .f { border: 0; background: none; text-align: left; padding: 10px 14px; border-radius: var(--r-m); cursor: pointer; min-height: 56px; }
.finder .f:hover { background: var(--soft); }
.finder .f small { display: block; font-size: 13px; color: var(--muted); }
.finder .f span { font-weight: 500; }
.finder .f.guests { grid-column: 1 / -1; }
.finder .btn { grid-column: 1 / -1; padding: 15px 22px; }
@media (min-width: 768px) {
  .finder { grid-template-columns: 1fr 1fr 1fr auto; border-radius: var(--pill); padding: 6px; align-items: center; }
  .finder .f { border-radius: var(--pill); padding: 8px 22px; }
  .finder .f + .f { box-shadow: -1px 0 0 var(--line); }
  .finder .f.guests { grid-column: auto; }
  .finder .btn { grid-column: auto; }
}

/* ---------- Bagian ---------- */
section.sec { padding: 72px 0 0; }
.sec-head { display: grid; gap: 14px; margin-bottom: 32px; }
@media (min-width: 900px) { .sec-head { grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; } }
.sec-head .kicker { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.sec-head h2 { font-weight: 500; font-size: clamp(32px, 4.2vw, 48px); line-height: 1.04; letter-spacing: -.03em; margin: 0; }
.sec-head p.side-text { margin: 0; font-weight: 300; font-size: 17px; line-height: 1.55; max-width: 32em; }

/* ---------- Kamar ---------- */
.rooms { display: grid; gap: 40px 24px; }
@media (min-width: 680px) { .rooms { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .rooms { grid-template-columns: repeat(3, 1fr); } }
.room-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--soft); }
.room-img img { width: 100%; height: 100%; object-fit: cover; }
.room-img .count { position: absolute; right: 10px; bottom: 10px; background: rgba(255,255,255,.9); border-radius: var(--pill); font-size: 13px; padding: 4px 10px; }
.room-img .more { position: absolute; inset: 0; border: 0; background: transparent; cursor: zoom-in; }
.room h3 { font-weight: 500; font-size: 24px; letter-spacing: -.02em; margin: 16px 0 4px; }
.room .spec { color: var(--muted); font-size: 15px; margin: 0; }
.room .desc { font-weight: 300; font-size: 15px; line-height: 1.5; margin: 8px 0 0; color: #3a3a3a; }
.room .startfrom { margin: 10px 0 0; font-size: 15px; }
.room .startfrom strong { font-weight: 600; }
.left { font-size: 14px; color: #a1301f; margin: 10px 0 0; }
.plans { margin-top: 14px; display: grid; gap: 8px; }
.plan { border: 1px solid var(--line); border-radius: var(--r-m); padding: 12px 14px; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.plan .pn { font-weight: 500; }
.plan .pt { font-size: 13px; color: var(--muted); grid-column: 1; }
.plan .price { grid-column: 2; grid-row: 1 / span 2; text-align: right; }
.plan .price strong { display: block; font-weight: 600; font-size: 17px; }
.plan .price small { color: var(--muted); font-size: 12px; }
.plan .choose { grid-column: 1 / -1; margin-top: 10px; }
.plan.off { color: var(--muted); background: var(--soft); border-color: transparent; }
.plan.off .choose { display: none; }

/* ---------- Galeri & fasilitas ---------- */
.gallery { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--r-l); aspect-ratio: 4 / 3; }
@media (min-width: 900px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-auto-rows: 220px; }
  .gallery img { aspect-ratio: auto; }
  .gallery img:first-child { grid-row: span 2; }
}
.facts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.facts li { border: 1px solid var(--line); border-radius: var(--pill); padding: 9px 16px; font-size: 15px; }
.prose { font-weight: 300; font-size: 18px; line-height: 1.6; white-space: pre-line; margin: 0; max-width: 40em; }
.two { display: grid; gap: 40px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two h3 { font-weight: 500; font-size: 22px; letter-spacing: -.02em; margin: 0 0 10px; }
.maplink { display: inline-block; margin-top: 12px; }

/* ---------- Lembar pilih tanggal ---------- */
.sheet { position: fixed; inset: 0; z-index: 20; display: grid; align-items: end; background: rgba(20,20,20,.38); }
@media (min-width: 768px) { .sheet { align-items: center; justify-items: center; } }
.sheet-box { background: #fff; border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 20px var(--gut) calc(18px + env(safe-area-inset-bottom)); width: 100%; max-height: 92vh; overflow: auto; }
@media (min-width: 768px) { .sheet-box { border-radius: var(--r-xl); width: 440px; padding: 24px; } }
.sheet-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.sheet-top strong { font-weight: 500; font-size: 20px; letter-spacing: -.01em; }
.x { border: 0; background: var(--soft); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.cal-head { display: flex; justify-content: space-between; align-items: center; margin: 10px 0 8px; }
.cal-head strong { font-weight: 500; }
.cal-head button { border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; }
.cal-head button:disabled { opacity: .3; cursor: default; }
.grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.grid .dow { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }
.day { border: 0; background: transparent; border-radius: var(--r-s); padding: 6px 0 5px; min-height: 52px; cursor: pointer; text-align: center; }
.day b { display: block; font-weight: 500; font-size: 15px; }
.day i { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.day.cheap i { color: var(--brand); font-weight: 600; }
.day:disabled { cursor: default; color: #c2c2c2; }
.day:disabled i { visibility: hidden; }
.day.full b { text-decoration: line-through; }
.day.inrange { background: var(--brand-soft); border-radius: 0; }
.day.start, .day.end { background: var(--brand); color: var(--on-brand); }
.day.start i, .day.end i { color: var(--on-brand); }
.day.today b { text-decoration: underline; text-underline-offset: 3px; }
.cal-legend { font-size: 13px; color: var(--muted); margin: 8px 0 4px; }
.gline { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.step { display: inline-flex; align-items: center; gap: 12px; }
.step button { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; cursor: pointer; font-size: 18px; line-height: 1; }
.step button:disabled { opacity: .35; cursor: default; }
.step output { min-width: 18px; text-align: center; font-weight: 600; }
.note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.err { color: #a1301f; font-size: 15px; margin: 10px 0 0; }

/* ---------- Pemesanan ---------- */
.co { display: grid; gap: 28px; padding: 24px 0 72px; }
@media (min-width: 900px) { .co { grid-template-columns: 1fr 400px; gap: 48px; align-items: start; } .co aside { position: sticky; top: 20px; } }
.co h1 { font-weight: 500; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; line-height: 1.05; margin: 0 0 6px; }
.card { border: 1px solid var(--line); border-radius: var(--r-l); padding: 18px; }
.card .ph { aspect-ratio: 16 / 9; border-radius: var(--r-m); overflow: hidden; margin-bottom: 14px; background: var(--soft); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.sum { display: grid; gap: 6px; font-size: 15px; }
.sum div { display: flex; justify-content: space-between; gap: 12px; }
.sum .total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; font-weight: 600; font-size: 17px; }
.sum .now { font-weight: 600; }
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.form input, .form select, .form textarea { width: 100%; border: 1px solid var(--line); border-radius: var(--r-m); padding: 13px 14px; background: #fff; font-weight: 400; font-size: 16px; }
.form .row2 { display: grid; gap: 16px; }
@media (min-width: 640px) { .form .row2 { grid-template-columns: 1fr 1fr; } }
.back { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; margin: 8px 0 18px; text-decoration: underline; text-underline-offset: 3px; }

footer.foot { margin-top: 96px; padding: 28px 0 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

.missing { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.missing h1 { font-weight: 500; font-size: 32px; letter-spacing: -.02em; margin: 0 0 8px; }
@media (max-width: 899px) { .co aside { order: -1; } }
@media (max-width: 899px) { .co.done aside { order: 0; } }
