/* :: Booking Engine Activity — widget + halaman confirm/success/failed ::
   CSS harus eksternal: konten @yield dibungkus @keywordlinkblock (DOMDocument)
   yang membuang <style> di dalam body. */

/* == Widget == */
.bkw { background: #fff; border: 1px solid #e5ded2; border-radius: 6px; padding: 22px; max-width: 640px; box-shadow: rgba(50, 50, 93, .07) 0 13px 27px -5px, rgba(0, 0, 0, .1) 0 8px 16px -8px; }
.bkw h4 { font-size: 18px; margin-bottom: 2px; }
.bkw .bkw-sub { font-size: 13px; color: #4e5559; margin-bottom: 16px; }
.bkw label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #4e5559; font-weight: 600; margin-bottom: 6px; }
.bkw .bkw-field { margin-bottom: 16px; }
.bkw .bkw-select { width: 100%; border: 1px solid #e5ded2; border-radius: 4px; padding: 10px 12px; font-size: 14px; background: #fff; color: #24262d; }
.bkw input[type=date] { width: 100%; border: 1px solid #e5ded2; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.bkw-slots { display: flex; gap: 8px; flex-wrap: wrap; }
.bkw-slot { border: 1px solid #e5ded2; border-radius: 4px; padding: 8px 14px; font-size: 13px; background: #fff; cursor: pointer; color: #24262d; text-align: center; }
.bkw-slot.on { background: #978667; border-color: #978667; color: #fff; }
.bkw-slot.full { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.bkw-slot small { display: block; font-size: 10px; opacity: .75; }
.bkw-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width:576px) { .bkw-row2 { grid-template-columns: 1fr; } }
.bkw-stepper { display: flex; align-items: center; border: 1px solid #e5ded2; border-radius: 4px; overflow: hidden; width: 130px; }
.bkw-stepper button { width: 38px; height: 38px; border: 0; background: #f6f2ea; font-size: 17px; cursor: pointer; }
.bkw-stepper .bkw-val { flex: 1; text-align: center; font-weight: 600; }
.bkw-hint { font-size: 11.5px; color: #4e5559; margin-top: 5px; }
.bkw-hint.bkw-max { color: #a3611c; }
.bkw-total { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid #e5ded2; padding-top: 14px; margin-top: 6px; }
.bkw-total .bkw-amt { font-size: 21px; font-weight: 700; }
.bkw .btn_1 { width: 100%; text-align: center; margin-top: 16px; border: 0; }
.bkw .btn_1:disabled { opacity: .5; cursor: not-allowed; }

/* == Halaman confirm == */
.bkc-wrap { max-width: 980px; margin: 140px auto 80px; padding: 0 20px; }
.bkc-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 26px; }
@media (max-width:768px) { .bkc-grid { grid-template-columns: 1fr; } }
.bkc-wrap label { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #4e5559; font-weight: 600; margin-bottom: 6px; }
.bkc-wrap .bkc-field { margin-bottom: 16px; }
.bkc-wrap input, .bkc-wrap textarea { width: 100%; border: 1px solid #e5ded2; border-radius: 4px; padding: 10px 12px; font-size: 14px; }
.bkc-sum { background: #f6f2ea; border: 1px solid #e5ded2; border-radius: 6px; padding: 20px; height: fit-content; }
.bkc-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 0; border-bottom: 1px dashed #e5ded2; }
.bkc-row:last-of-type { border-bottom: 0; }
.bkc-row span:first-child { color: #4e5559; }
.bkc-row.bkc-tot { font-weight: 700; font-size: 16px; }
.bkc-err { background: #fdecea; border: 1px solid #e7b3ad; color: #8a2a20; border-radius: 4px; padding: 12px 16px; margin-bottom: 18px; font-size: 14px; }
.bkc-wrap .btn_1 { border: 0; width: 100%; text-align: center; margin-top: 6px; }

/* == Halaman success / failed == */
.bks-wrap { max-width: 620px; margin: 150px auto 90px; padding: 0 20px; text-align: center; }
.bks-ico { width: 64px; height: 64px; border-radius: 50%; color: #fff; font-size: 30px; line-height: 64px; margin: 0 auto 18px; }
.bks-ico.ok { background: #2e7d4f; }
.bks-ico.fail { background: #b3413a; }
.bks-code { display: inline-block; background: #f6f2ea; border: 1px dashed #978667; border-radius: 4px; padding: 8px 22px; font-weight: 700; letter-spacing: .12em; margin: 14px 0 6px; }
.bks-muted { color: #4e5559; }
.bks-wrap .btn_1 { margin-top: 16px; display: inline-block; }

/* ===== Halaman treatment spa (/spa/{slug}) & menu di halaman spa ===== */
.spa-tw { max-width: 1080px; margin: 0 auto; padding: 150px 20px 70px; }
.spa-crumb { font-size: 12px; color: #4e5559; margin-bottom: 18px; }
.spa-crumb a { color: #978667; text-decoration: none; }
.spa-crumb span { margin: 0 6px; color: #b9b1a3; }
.spa-th { border-bottom: 1px solid #e5ded2; padding-bottom: 18px; margin-bottom: 26px; }
.spa-cat { display: block; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: #978667; margin-bottom: 8px; }
.spa-th h1 { font-size: clamp(26px, 4vw, 38px); line-height: 1.2; margin: 0 0 6px; }
.spa-sub { color: #7a6a4f; font-size: 16px; margin: 0; }
.spa-tgrid { display: grid; grid-template-columns: 1fr 320px; gap: 34px; align-items: start; }
@media (max-width: 860px) { .spa-tgrid { grid-template-columns: 1fr; } }
.spa-tbody p { line-height: 1.8; color: #4e5559; }
.spa-tbody h2 { font-size: 20px; margin: 30px 0 12px; }
.spa-tbl-wrap { overflow-x: auto; }
.spa-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.spa-tbl th { text-align: left; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: #4e5559; background: #f6f2ea; padding: 10px 14px; border-bottom: 1px solid #e5ded2; }
.spa-tbl td { padding: 10px 14px; border-bottom: 1px solid #efe9dd; }
.spa-note { font-size: 12px; color: #8a8378; margin-top: 8px; }
.spa-know { color: #4e5559; font-size: 14px; line-height: 1.9; padding-left: 18px; }
.spa-tbook { margin-top: 34px; }
.spa-card { background: #f6f2ea; border: 1px solid #e5ded2; border-radius: 6px; padding: 20px; margin-bottom: 18px; }
.spa-card h3 { font-size: 16px; margin: 0 0 10px; }
.spa-price { font-size: 22px; font-weight: 700; margin: 0; color: #24262d; }
.spa-price small { font-size: 13px; font-weight: 400; color: #4e5559; }
.spa-dur { color: #4e5559; font-size: 13px; margin: 2px 0 14px; }
.spa-card .btn_1 { width: 100%; text-align: center; }
.spa-contact { font-size: 12.5px; color: #4e5559; margin: 14px 0 0; }
.spa-contact a { color: #978667; }
.spa-rel { list-style: none; padding: 0; margin: 0 0 12px; font-size: 14px; }
.spa-rel li { padding: 6px 0; border-bottom: 1px dashed #e5ded2; }
.spa-rel a { color: #24262d; text-decoration: none; }
.spa-rel a:hover { color: #978667; }
.spa-all { font-size: 13px; color: #978667; text-decoration: none; }

/* menu lengkap di halaman /spa */
.spa-menu { max-width: 1080px; width: 100%; min-width: 0; margin: 0 auto; padding: 10px 20px 30px; }
.spa-menu h2 { font-size: 26px; text-align: center; margin-bottom: 6px; }
.spa-menu .spa-menu-lead { text-align: center; color: #4e5559; font-size: 14px; margin-bottom: 30px; }
.spa-sec { margin-bottom: 34px; }
.spa-sec > h3 { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: #978667; border-bottom: 1px solid #e5ded2; padding-bottom: 8px; margin-bottom: 14px; }
.spa-items { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.spa-item { display: block; background: #fff; border: 1px solid #e5ded2; border-radius: 6px; padding: 14px 16px; text-decoration: none; color: inherit; }
.spa-item:hover { border-color: #978667; box-shadow: rgba(0,0,0,.06) 0 4px 14px -4px; }
.spa-item b { display: block; font-size: 15px; }
.spa-item em { display: block; font-style: normal; font-size: 12.5px; color: #7a6a4f; margin: 2px 0 8px; }
.spa-item span { font-size: 13px; color: #4e5559; }
.spa-item .spa-item-go { display: block; font-size: 12px; color: #978667; margin-top: 8px; }

/* ===== Menu spa sebagai BUKU swipe (arahan CEO 1 Sep) ===== */
.spa-book-wrap { display: flex; align-items: stretch; gap: 8px; max-width: 860px; margin: 0 auto; min-width: 0; }
.spa-book { min-width: 0; display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; scrollbar-width: none; border-radius: 6px; flex: 1; }
.spa-book::-webkit-scrollbar { display: none; }
.spa-page { flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; background: #fbf8f2; border: 1px solid #e5ded2; box-shadow: inset -14px 0 24px -18px rgba(80, 60, 30, .25), rgba(0, 0, 0, .06) 0 6px 18px -6px; padding: 30px 34px 22px; min-height: 480px; display: flex; flex-direction: column; }
.spa-page + .spa-page { border-left: 0; }
.spa-cover { background: radial-gradient(120% 90% at 50% 38%, #2b2f26 0%, #191c16 55%, #111309 100%); color: #fff; padding: 0; align-items: stretch; position: relative; overflow: hidden; }
.spa-cover-frame { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 18px; border: 1px solid rgba(235, 215, 178, .34); padding: 40px 28px 26px; position: relative; }
/* Ornamen teratai: garis, bukan foto. Tajam di semua ukuran, nol berkas gambar. */
.spa-cover-art { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: min(112%, 620px); height: auto; pointer-events: none; }
.spa-cover-art g, .spa-cover-art circle { fill: none; stroke: #c9b184; vector-effect: non-scaling-stroke; }
.spa-lotus-outer { stroke-width: 1; opacity: .13; }
.spa-lotus-inner { stroke-width: 1; opacity: .09; }
.spa-lotus-ring { stroke-width: .75; opacity: .10; }
.spa-lotus-core { stroke-width: 1; opacity: .16; }
.spa-cover-in { position: relative; }
.spa-cover-mark { display: block; width: 42px; height: 42px; margin: 0 auto 18px; }
.spa-cover-mark g, .spa-cover-mark circle { fill: none; stroke: #ebd7b2; stroke-width: 1.1; vector-effect: non-scaling-stroke; opacity: .85; }
.spa-cover-in small { display: block; font-size: 10.5px; letter-spacing: .34em; text-transform: uppercase; color: #ebd7b2; margin-bottom: 16px; }
.spa-cover-in h3 { color: #fff; font-size: clamp(30px, 5.4vw, 46px); line-height: 1.05; margin: 0; letter-spacing: .02em; }
.spa-cover-rule { display: block; width: 54px; height: 1px; background: rgba(235, 215, 178, .6); margin: 20px auto; }
.spa-cover-sub { color: #e6e0d4; font-size: 13.5px; line-height: 1.75; max-width: 30ch; margin: 0 auto 18px; }
.spa-cover-count { color: #bdb4a3; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; margin: 0; }
.spa-cover .spa-swipe-hint { position: absolute; bottom: 22px; left: 0; right: 0; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: #ebd7b2; }
.spa-page-title { font-size: 15px; letter-spacing: .18em; text-transform: uppercase; color: #978667; text-align: center; border-bottom: 1px solid #e5ded2; padding-bottom: 12px; margin: 0 0 16px; }
.spa-mlist { list-style: none; margin: 0; padding: 0; flex: 1; }
.spa-mlist li a { display: flex; align-items: baseline; gap: 8px; padding: 7px 0; text-decoration: none; color: inherit; }
.spa-mlist li a:hover b { color: #978667; }
.spa-mname { max-width: 62%; }
.spa-mname b { display: block; font-size: 14.5px; line-height: 1.3; }
.spa-mname em { display: block; font-style: normal; font-size: 11.5px; color: #8a8378; }
.spa-minc { display: block; font-style: normal; font-size: 11px; line-height: 1.45; color: #6f6a60; margin-top: 3px; }
.spa-mdots { flex: 1; border-bottom: 1px dotted #cfc4b0; transform: translateY(-4px); }
.spa-mprice { font-size: 12.5px; color: #4e5559; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.spa-page-foot { font-size: 11px; color: #a89f8f; text-align: center; padding-top: 12px; border-top: 1px dotted #e5ded2; }
.spa-bk-nav { border: 1px solid #e5ded2; background: #fff; color: #978667; font-size: 26px; line-height: 1; width: 40px; border-radius: 6px; cursor: pointer; flex: 0 0 40px; }
.spa-bk-nav:hover { background: #978667; color: #fff; }
.spa-bk-label { text-align: center; font-size: 12px; color: #8a8378; margin-top: 10px; letter-spacing: .08em; }
@media (max-width: 640px) {
    .spa-bk-nav { display: none; }
    .spa-page { padding: 22px 18px 16px; min-height: 420px; }
    .spa-mname { max-width: 58%; }
}

/* Reservation di bawah menu: widget dipusatkan, tidak lagi menempel kolom teks */
.spa-reserve-box { display: flex; justify-content: center; }
.spa-reserve-box .bkw { width: 100%; max-width: 640px; }

/* Buku menu full screen (arahan CEO 1 Sep) */
.spa-menu-full { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }
.spa-menu-full .spa-book-wrap { max-width: min(1000px, 100%); width: 100%; }
.spa-menu-full .spa-page { min-height: min(74vh, 700px); }
@media (max-width: 640px) {
    .spa-menu-full { min-height: 100svh; padding: 24px 0; }
    .spa-menu-full .spa-page { min-height: min(70svh, 620px); }
}

/* keywordToLink menyuntik <a style="color:#333"> — di atas sampul/latar gelap teks jadi
   tak terbaca. Paksa warna terang di area gelap (inline style dikalahkan !important). */
.spa-cover a, .spa-cover a[style] { color: #ebd7b2 !important; text-decoration: none; }

/* Aksi di bawah buku menu: unduh PDF + jalan pintas ke reservasi */
.spa-menu-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.spa-dl { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #24262d; background: #fff; border: 1px solid #e5ded2; border-radius: 6px; padding: 12px 20px; min-width: 240px; }
.spa-dl:hover { border-color: #978667; box-shadow: rgba(0,0,0,.06) 0 4px 14px -4px; }
.spa-dl b { display: block; font-size: 14px; }
.spa-dl small { display: block; font-size: 11.5px; color: #8a8378; }
.spa-dl-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: #f6f2ea; color: #978667; font-size: 16px; flex: 0 0 34px; }
.spa-dl-ghost { background: #f6f2ea; }
@media (max-width: 640px) { .spa-dl { width: 100%; justify-content: center; } }
