/* Ben's Hotel — booking flow. Phone-first. */
.page-hero.compact { padding: 28px 0 24px; }
.page-hero.compact a { color: var(--gold); }
.book { padding-block: 20px 32px; }
.bk-step { display: grid; gap: 16px; }
.bk-step[hidden] { display: none; }
.bk-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; min-width: 0; }
.bk-h { font-size: 1.25rem; margin: 0 0 12px; }
.bk-sub { color: var(--muted); margin: 0 0 10px; }
.bk-hint { color: var(--gold-ink); font-size: .9rem; min-height: 1.2em; margin: 6px 0 0; }
.bk-error { color: #a1291b; font-weight: 500; min-height: 1.2em; margin: 8px 0; }
.bk-note { background: #fff8e8; border-left: 4px solid var(--gold); padding: 10px 12px; border-radius: 6px; font-size: .92rem; }
.bk-perk { background: #eef6ee; border-left: 4px solid #3f7d4a; padding: 10px 12px; border-radius: 6px; font-size: .92rem; }
.bk-perk.off { background: #f4f3f1; border-left-color: #dcd7cf; color: #75706a; }
.bk-perk.off b { font-weight: 600; }
.bk-perk.off small { color: #5b5650; }
/* not unlocked yet: an empty circle where the ✓ goes */
.perk-dot { display: inline-block; width: .8em; height: .8em; margin-right: .35em; border: 1.5px solid currentColor; border-radius: 50%; vertical-align: -.05em; }
.bk-wide { width: 100%; margin-top: 12px; }
.bk-back { background: none; border: 0; color: var(--gold-ink); font: inherit; font-weight: 600; padding: 8px 0; margin-bottom: 6px; cursor: pointer; }

/* Room type */
.room-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-bottom: 14px; }
.room-opt { position: relative; cursor: pointer; }
.room-opt input { position: absolute; opacity: 0; }
.room-opt span { display: grid; gap: 2px; border: 2px solid var(--line); border-radius: 10px; padding: 12px; min-height: 64px; }
.room-opt small { color: var(--muted); font-size: .8rem; }
.room-opt input:checked + span { border-color: var(--gold); background: #fffaf0; box-shadow: 0 0 0 1px var(--gold); }
.room-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Guests */
.guests { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.stepper { display: grid; grid-template-columns: minmax(0, 1fr) 44px 36px 44px; align-items: center; gap: 4px; }
.st-label small { display: block; color: var(--muted); font-size: .78rem; }
.stepper button { height: 44px; border-radius: 50%; border: 1px solid #cfc6b8; background: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--ink); }
.stepper output { text-align: center; font-weight: 700; font-size: 1.1rem; }
.cot { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; min-width: 0; }
.cot input { flex: none; margin-top: 2px; }
.cot input { width: 20px; height: 20px; accent-color: var(--gold-ink); }

/* Calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-family: var(--font-display); font-size: 1.2rem; }
.cal-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid #cfc6b8; background: #fff; font-size: 1.3rem; cursor: pointer; }
.cal-nav:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-dow span { text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding-bottom: 6px; }
.cal-grid { gap: 3px 0; }
.day { position: relative; aspect-ratio: 1 / 1; min-height: 40px; border: 0; background: none; font: inherit; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 0; }
.day::after { content: ""; position: absolute; left: 50%; bottom: 5px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #5d9b6e; }
.day.few::after { background: #d08b1e; }
.day.full { color: #b9b2a6; text-decoration: line-through; }
/* closed for renovation (lib/closures.mjs): hatched, not struck through — it's coming back */
.day.closed { text-decoration: none; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(120, 110, 95, .12) 5px 7px); }
.day.full::after, .day.past::after, .day.out::after { display: none; }
.day.past, .day.out { color: #cfc8bc; cursor: default; }
.day.out { visibility: hidden; }
.day.today { box-shadow: inset 0 0 0 1px var(--gold); border-radius: 8px; }
.day.mid { background: #f3e8d2; }
.day.start, .day.end { background: var(--charcoal); color: var(--gold); text-decoration: none; }
.day.start { border-radius: 10px 0 0 10px; }
.day.end { border-radius: 0 10px 10px 0; }
.day.solo { border-radius: 10px; }
.day.start::after, .day.end::after { display: none; }
.day:not(:disabled):not(.start):not(.end):hover { background: #faf1e0; border-radius: 8px; }
/* Room calendar: day number + nightly rate (in ₱) on free days */
.cal-grid.rated .day { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 2px; aspect-ratio: auto; min-height: 56px; padding: 8px 0 12px; }
.cal-grid.rated .day::after { bottom: 4px; }
.cal-grid.rated .day .rate { font-size: .62rem; font-weight: 600; color: var(--muted); letter-spacing: -.01em; line-height: 1; }
.cal-grid.rated .day.peak .rate { color: var(--gold-ink); font-weight: 700; }
.cal-grid.rated .day.start .rate, .cal-grid .day.end .rate { color: var(--gold); }
.cal-note { font-size: .78rem; color: var(--muted); text-align: center; margin: 6px 0 0; }
.cal-legend { display: flex; gap: 14px; justify-content: center; font-size: .78rem; color: var(--muted); margin-top: 10px; }
.cal-legend span::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lg-av::before { background: #5d9b6e; }
.lg-few::before { background: #d08b1e; }
.lg-full::before { background: #cfc8bc; }

/* Summary / quote */
.bk-summary { align-self: start; }
.q-lines { width: 100%; border-collapse: collapse; margin: 6px 0; font-size: .95rem; }
.q-lines td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.q-lines td:last-child { text-align: right; white-space: nowrap; padding-left: 12px; }
.q-total td { font-weight: 700; font-size: 1.05rem; border-bottom: 2px solid var(--ink); }
.q-dep td { color: var(--gold-ink); font-weight: 700; font-size: 1.1rem; }

/* Details form */
#details { display: grid; gap: 12px; }
#details label { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; }
#details label small { font-weight: 400; color: var(--muted); }
#details input:not([type=checkbox]), #details textarea { font: inherit; font-size: 16px; padding: 12px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 48px; width: 100%; }
#details .bk-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
#details .bk-address { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; min-width: 0; }
#details .bk-address legend { font-weight: 600; padding: 0; margin-bottom: 4px; }
#details .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
#details .consent input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-ink); flex: none; }
.bk-recap { background: #faf7f1; border-radius: 8px; padding: 10px 12px; margin-bottom: 14px; font-size: .95rem; }
.bk-recap p { margin: 0 0 6px; }

/* Pay */
.bk-hold { font-size: 1rem; }
.test-banner { background: #e8f1fb; border-left: 4px solid #4a7fc1; padding: 10px 12px; border-radius: 6px; font-size: .9rem; }
.pay-methods { display: grid; gap: 10px; }
.pay { min-height: 56px; border-radius: 12px; border: 0; font: 700 1.05rem var(--font); color: #fff; cursor: pointer; }
.pay.gcash { background: #0a5fe0; }
.pay.maya { background: #00a86b; }
.pay.card { background: var(--charcoal); color: var(--gold); }
.pay:disabled { opacity: .6; }
.ref { font-family: ui-monospace, Menlo, monospace; letter-spacing: .08em; }
.ref.big { font-size: 1.8rem; font-weight: 700; color: var(--gold-ink); margin: 0 0 12px; }

/* Done */
.bk-done { text-align: center; }
.bk-done .facts { text-align: left; margin-top: 14px; }
.done-mark { width: 56px; height: 56px; border-radius: 50%; background: #dcefe2; color: #1d5b33; display: grid; place-items: center; font-size: 1.8rem; margin: 4px auto 8px; }

@media (min-width: 900px) {
  #step-dates { grid-template-columns: 1fr 1.25fr 1fr; align-items: start; }
  #step-details .bk-panel, #step-pay .bk-panel, #step-done .bk-panel { max-width: 620px; margin: 0 auto; width: 100%; }
  .bk-summary { position: sticky; top: 84px; }
  .pay-methods { grid-template-columns: repeat(3, 1fr); }
}
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.next-steps { text-align: left; padding-left: 1.2em; margin: 12px 0; }
.next-steps li { margin-bottom: 8px; }

/* Mobile number with country code */
.phone-field { display: grid; gap: 4px; }
.phone-field .lbl { font-weight: 600; font-size: .9rem; }
.phone-row { display: grid; grid-template-columns: minmax(0, 9.5rem) minmax(0, 1fr); gap: 8px; }
.phone-row select, #details select { font: inherit; font-size: 16px; padding: 10px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 48px; width: 100%; background: #fff; color: var(--ink); }
.phone-field .bk-hint { font-size: .8rem; color: var(--muted); margin: 0; }

/* Rooms / hall switch */
.bk-tabs { display: inline-flex; gap: 4px; margin-top: 14px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.12); border: 1px solid rgba(200,168,118,.5); flex-wrap: wrap; }
.bk-tabs a { padding: 8px 16px; border-radius: 999px; color: inherit; text-decoration: none; font-weight: 600; font-size: .95rem; }
.bk-tabs a[aria-current="page"] { background: var(--gold); color: var(--charcoal); }
/* phones: the three always on one row; a long name ("Pilar Function Hall") wraps inside its own pill */
@media (max-width: 560px) {
  .bk-tabs { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .9fr); flex-wrap: nowrap; width: 100%; max-width: 440px; border-radius: 26px; }
  .bk-tabs a { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 6px 8px; line-height: 1.15; border-radius: 22px; font-size: .92rem; }
}

/* Five tabs (Rooms · Hall · Verandah · Van · Corporate): on phones three over two, a tap target each */
@media (max-width: 560px) {
  .bk-tabs.five { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bk-tabs.five a { grid-column: span 2; }
  .bk-tabs.five a:nth-child(n+4) { grid-column: span 3; }
}

/* Van and Verandah: photo and the key facts above the booking steps */
.rent-intro { display: grid; gap: 16px; margin: 0 0 20px; }
.rent-photo img { display: block; width: 100%; height: auto; border-radius: var(--radius, 12px); }
.rent-intro .facts { margin: 0; }
@media (min-width: 800px) { .rent-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; } }
.start-field { margin-top: 14px; }
#book[data-rental] .bk-step { scroll-margin-top: 80px; } /* below the sticky header when a step opens */
.row2.narrow-left { grid-template-columns: minmax(0, 5.5rem) minmax(0, 1fr); }
.start-field select:disabled { color: var(--muted); }

/* Hall booking */
.hall-blocks { display: grid; gap: 10px; margin-bottom: 14px; }
.hall-blocks .room-opt span { min-height: 0; }
.hall-blocks .blk-price { font-weight: 700; color: var(--gold-ink); }
.hall-opts { display: grid; gap: 10px; margin-top: 6px; }
.hall-opts label { display: flex; gap: 10px; align-items: flex-start; }
.hall-opts input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--gold-ink); flex: none; }
.hall-opts select, .hall-field select, .hall-field input { font: inherit; font-size: 16px; padding: 10px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 48px; background: #fff; color: var(--ink); }
.hall-field { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; margin-bottom: 12px; }
.hall-field small { font-weight: 400; color: var(--muted); }
.hall-opts .sub { margin: 2px 0 0 30px; }
.day.part::after { background: #d08b1e; }
.lg-part::before { background: #d08b1e; }
.bk-h3 { font-size: 1rem; margin: 6px 0 8px; }
.row2 { display: grid; grid-template-columns: minmax(0, 7rem) minmax(0, 1fr); gap: 10px; }
.row2 .hall-field input, .row2 .hall-field select { width: 100%; }
#late-wrap .hall-field { margin-bottom: 0; }
.hall-opts label.hall-field { display: grid; }
.discount { display: grid; gap: 4px; font-weight: 600; font-size: .9rem; margin-top: 10px; }
.discount { min-width: 0; padding: 12px; border-radius: 10px; background: #f3f8f2; border: 1px solid #cfe3cf; }
.discount span { font-weight: 500; }
.discount b { color: #1d5b33; }
.discount select { width: 100%; min-width: 0; max-width: 100%; font: inherit; font-size: 16px; padding: 10px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 48px; background: #fff; color: var(--ink); }
.discount small { font-weight: 400; color: var(--muted); }
.q-disc td { color: #1d5b33; }
.q-disc small { color: var(--muted); }

/* Hall: standard deposit or monthly installments */
.pay-choice { display: grid; gap: 8px; margin: 10px 0; }
.pay-choice .room-opt span { min-height: 0; }
.plan-lines td { font-size: .9rem; }

/* "I don't have an email" */
.no-email { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; margin-top: -4px; }
.no-email input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; flex: none; }
label.off { opacity: .5; }
/* company code: folded away under the discount, for guests booking at their company's rate */
.code-wrap { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.code-wrap > summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; font-size: .95rem; }
.code-row { display: flex; gap: 8px; margin: 8px 0 6px; }
.code-row input { flex: 1; min-width: 0; font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #cfc6b8; border-radius: 8px; min-height: 44px; text-transform: uppercase; letter-spacing: .04em; }
.code-wrap small { display: block; color: var(--muted); font-size: .85rem; }
.code-wrap small.bk-error { color: #a1291b; }

/* several rooms in one booking: one card per room; tap to edit it */
.room-cards { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.room-card { display: inline-flex; align-items: stretch; border: 2px solid var(--line); border-radius: 999px; overflow: hidden; background: #fff; }
.room-card.on { border-color: var(--accent, #c8a876); background: #fffaf0; }
.room-card button { border: 0; background: none; font: inherit; min-height: 44px; padding: 0 12px; cursor: pointer; color: inherit; }
.room-card .rc-x { padding: 0 12px 0 4px; font-size: 1.1rem; color: var(--muted); }
.add-room { margin: 4px 0 12px; }
.q-room td:first-child { padding-left: 0; }

/* "Pay the deposit online now" on the request-sent screen (online payments on) */
.pay-now { background: #fbf6ea; border: 2px solid var(--gold); border-radius: 12px; padding: 14px 16px; margin: 14px 0; text-align: left; }
.pay-now-h { font: 600 1.15rem/1.3 Georgia, serif; margin: 0 0 10px; }
.pay-now .fine-print { margin: 10px 0 0; }
.pay-now .gcash-qr { display: block; width: 220px; max-width: 100%; height: auto; margin: 4px auto 10px; border: 1px solid #e6dccb; border-radius: 10px; }
.pay-soon { color: #999; border: 1px dashed #ccc; border-radius: 10px; padding: 6px 12px; margin: 8px 0 12px; }
