/* V VIEW House — halaman reservasi (melengkapi style.css) */
.book-page { background: var(--white); }

.book-header {
  position: sticky; top: 0; z-index: 50; background: var(--white); box-shadow: 0 1px 0 var(--line);
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 clamp(18px, 2.4vw, 34px); color: var(--ink);
}
.book-header .brand { grid-area: auto; flex-direction: row; gap: 14px; padding: 13px 0; }
.book-header .brand-mark { width: 30px; height: 30px; }
.book-header .brand-text { align-items: flex-start; }
.book-header .brand-text strong { font-size: .86rem; }
.book-header .brand-text small { margin-top: 6px; }
.book-header .h-link { display: inline-block; justify-self: start; }
.book-header .lang { justify-self: end; }

.book { padding: clamp(48px, 7vw, 96px) 0 clamp(72px, 9vw, 130px); }
.book h1 { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.05; }
.book-head { margin-bottom: clamp(36px, 5vw, 64px); }

.book-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }

/* ---------- Kalender ---------- */
.cal { position: relative; }
.cal-nav { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; pointer-events: none; }
.cal-nav .arrow { pointer-events: auto; }
.cal-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); min-height: 320px; }
.cal-loading { grid-column: 1 / -1; padding-top: 64px; text-align: center; color: var(--muted); }
.month h3 { text-align: center; font-size: 1.6rem; font-weight: 300; line-height: 32px; margin-bottom: 26px; }
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dow { text-align: center; font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding-bottom: 12px; }
.day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; width: 100%;
  font-family: var(--serif); font-size: 1.22rem; font-variant-numeric: lining-nums; color: var(--ink);
  transition: background .2s, color .2s;
}
.day:not(:disabled):hover { background: var(--stone); }
.day:disabled { color: #b9b7ae; cursor: default; }
.day.full:disabled { text-decoration: line-through; text-decoration-thickness: 1px; }
.day.today::after { content: ""; position: absolute; bottom: 14%; left: 50%; width: 3px; height: 3px; margin-left: -1.5px; border-radius: 50%; background: currentColor; }
.day.in-range, .day.preview { background: var(--stone); }
.day.start, .day.end, .day.start:hover, .day.end:hover { background: var(--ink); color: #fff; }
.day.out-ok, .day.start, .day.end { text-decoration: none; }
.day.out-ok { color: var(--ink); }
.day.end { color: #fff; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }
.cal-legend li { display: flex; align-items: center; gap: 10px; }
.k { width: 14px; height: 14px; display: inline-block; border: 1px solid var(--line); }
.k-sel { background: var(--ink); border-color: var(--ink); }
.k-full { background: linear-gradient(to top right, transparent calc(50% - .5px), #b9b7ae calc(50% - .5px), #b9b7ae calc(50% + .5px), transparent calc(50% + .5px)); }
.cal-hint { min-height: 1.6em; margin-top: 16px; font-size: .88rem; color: #a8402b; }

/* ---------- Ringkasan & formulir ---------- */
.stay { position: sticky; top: 92px; background: var(--stone); padding: clamp(26px, 3vw, 40px); }
.stay h2 { font-size: 2rem; margin-bottom: 22px; }
.stay-facts { border-top: 1px solid rgba(15, 29, 25, .22); }
.stay-facts > div { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 14px; align-items: baseline; padding: 13px 0; border-bottom: 1px solid rgba(15, 29, 25, .22); }
.stay-facts dt, .stay-facts dt label { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.stay-facts dd { font-family: var(--serif); font-size: 1.25rem; line-height: 1.3; color: var(--ink); font-variant-numeric: lining-nums; }
.stay-facts select {
  width: 100%; border: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230f1d19' stroke-width='1'/%3E%3C/svg%3E") no-repeat right 2px center / 12px;
  font: inherit; color: inherit; padding: 0 24px 0 0; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.stay-total { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 20px 0 4px; }
.stay-total span { font-size: .9rem; }
.stay-total strong { font-family: var(--serif); font-weight: 400; font-size: 1.9rem; color: var(--ink); font-variant-numeric: lining-nums; white-space: nowrap; }
.stay-left { font-size: .84rem; font-style: italic; font-family: var(--serif); font-size: 1.05rem; color: var(--muted); }

#guest-form { display: grid; gap: 20px; margin-top: 30px; }
#guest-form .field input, #guest-form .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  font-family: var(--sans); font-size: 1rem; color: var(--ink); padding: 8px 0; height: auto; resize: vertical;
}
#guest-form .field input:focus, #guest-form .field textarea:focus { outline: none; border-bottom-width: 2px; padding-bottom: 7px; }
#guest-form .field input.invalid { border-bottom-color: #a8402b; }
#guest-form .btn { width: 100%; margin-top: 6px; }
#guest-form .btn:disabled { opacity: .45; cursor: default; background: var(--ink); color: #fff; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { min-height: 1.4em; font-size: .88rem; color: #a8402b; }
.form-msg:empty { display: none; }
.book .fine { margin-top: 0; font-size: .8rem; line-height: 1.6; color: var(--muted); }

/* ---------- Selesai ---------- */
.done { max-width: 620px; margin-inline: auto; text-align: center; padding: clamp(12px, 3vw, 40px) 0; }
.done .label { margin-bottom: 18px; }
.done .intro { margin: 22px auto 0; }
.done-code { margin: 40px 0 34px; }
.done-code span { display: block; font-size: .62rem; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); }
.done-code strong { display: block; margin-top: 10px; font-family: var(--serif); font-weight: 300; font-size: clamp(2.6rem, 6vw, 3.6rem); letter-spacing: .08em; color: var(--ink); font-variant-numeric: lining-nums; }
.done-facts { text-align: left; border-top-color: var(--line); }
.done-facts > div { border-bottom-color: var(--line); }

.book-footer { border-top: 1px solid var(--line); padding: 28px var(--gutter); text-align: center; font-size: .76rem; color: var(--muted); letter-spacing: .04em; }

@media (max-width: 980px) {
  .book-grid { grid-template-columns: minmax(0, 1fr); }
  .stay { position: static; }
}
@media (max-width: 700px) {
  .cal-months { grid-template-columns: minmax(0, 1fr); }
  .dow { letter-spacing: .1em; }
  .book-header { grid-template-columns: auto 1fr auto; column-gap: 14px; }
  .book-header .brand { justify-self: center; }
  .book-header .brand-text small { display: none; }
  .book-header .h-link { display: block; font-size: .6rem; letter-spacing: .12em; max-width: 84px; line-height: 1.4; }
  .day { font-size: 1.15rem; }
}
