/* ─────────────────────────────────────────────────────────────
   Adriana Mobile Massage Costa Rica — online booking
   Header floater, booking form and the "Book Online" buttons.
   Loaded on every page (home page + the 15 massage pages) with booking.js.
   Colours come from the page's own palette (index.html / service.css).
   ───────────────────────────────────────────────────────────── */
/* ── HEADER FLOATER — "we come to you" line + BOOK ONLINE and WhatsApp (mobile massage only since
   2026-10-19). It stays at the top of the screen with the nav; once the page is scrolled it
   shrinks to the two buttons (.is-compact). ── */
.topstick { position: sticky; top: 0; z-index: 1000; }
.topstick nav { position: relative; top: auto; }
.bookbar {
  background: linear-gradient(100deg, var(--apricot) 0%, #f7c88a 50%, var(--apricot) 100%);
  color: #4a2213; padding: 0.6rem 1rem 0.7rem; text-align: center;
  border-bottom: 1px solid rgba(74,34,19,0.12);
}
.bookbar-msg { font-size: 0.9rem; font-weight: 600; line-height: 1.45; margin: 0 0 0.55rem; }
.bookbar-msg strong { font-weight: 800; }
.bookbar-msg a { color: inherit; text-decoration: underline; font-weight: 800; }
.bookbar-msg a:hover { filter: brightness(0.85); }
.bookbar-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; max-width: 900px; margin: 0 auto; }
.bookbtn {
  display: flex; align-items: center; gap: 0.7rem; text-align: left;
  padding: 0.55rem 1rem; border-radius: 14px; color: #fff; line-height: 1.25;
  box-shadow: 0 4px 14px rgba(58,20,48,0.22); transition: transform 0.18s, filter 0.18s;
}
.bookbtn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.bookbtn-mobile { background: var(--plum); }
.bookbtn-wa { background: #128c4a; }
.bb-ico { font-size: 1.5rem; line-height: 1; flex: none; }
.bb-txt { min-width: 0; }
.bb-txt b { display: block; font-size: 0.86rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; }
.bb-txt small { display: block; font-size: 0.8rem; font-weight: 600; color: #fbe9dc; margin-top: 0.1rem; }
.bb-short { display: none; }
.bookbar.is-compact { padding: 0.4rem 1rem; }
.bookbar.is-compact .bookbar-msg { display: none; }
.bookbar.is-compact .bookbtn { padding: 0.4rem 0.9rem; }
/* Phones: a short line + the two buttons side by side as pills from the start, so the page
   itself shows on the first screen (Em 2026-10-19: "phone view friendly"). */
@media (max-width: 700px) {
  .bookbar { padding: 0.45rem 0.6rem 0.5rem; }
  .bookbar-msg { font-size: 0.8rem; margin-bottom: 0.4rem; }
  .bb-more { display: none; }
  .bookbar-btns { grid-template-columns: 1fr 1fr; gap: 0.45rem; }
  .bookbtn { justify-content: center; gap: 0.4rem; padding: 0.55rem 0.4rem; border-radius: 999px; }
  .bb-ico { font-size: 1.05rem; }
  .bb-txt small, .bb-long { display: none; }
  .bb-short { display: inline; }
  .bb-txt b { font-size: 0.78rem; letter-spacing: 0.8px; }
  .bookbar.is-compact { padding: 0.4rem 0.6rem; }
  .bookbar.is-compact .bookbtn { padding: 0.5rem 0.4rem; }
}

/* ── BOOKING SHEET — opens from the header floater; the request goes to WhatsApp ── */
html.sheet-open, html.sheet-open body { overflow: hidden; }
.sheet {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(30,10,24,0.66);
}
.sheet[hidden] { display: none; }
.sheet-box {
  position: relative; width: 100%; max-width: 540px; max-height: calc(100% - 28px); overflow-y: auto;
  overscroll-behavior: contain; border-radius: 20px 20px 0 0; padding: 22px 20px 0; outline: 0;
  background: var(--plum-dark); color: var(--blush); color-scheme: dark; line-height: 1.5;
}
.sheet-box .sheet-eyebrow {
  font-size: 0.74rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--apricot); margin: 0 0 4px; padding-right: 48px;
}
.sheet-box h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); color: #fff; margin: 0 0 6px; padding-right: 48px; }
/* the three steps at the top of the form: fill in → we confirm → at your door in under 45 min */
.bk-steps { list-style: none; margin: 6px 0 12px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.bk-steps li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 10px 6px; border-radius: 12px; background: rgba(255,255,255,0.08);
  font-size: 0.8rem; font-weight: 700; line-height: 1.3; color: #f4e3da;
}
.bk-steps li:last-child { background: rgba(237,164,95,0.2); box-shadow: inset 0 0 0 1.5px var(--apricot); }
.bk-steps b {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: var(--apricot); color: #4a2213; font-size: 0.85rem; font-weight: 800;
}
.bk-steps strong { color: var(--apricot); white-space: nowrap; }
.sheet-close {
  position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.3); background: transparent; color: #fff;
  font: 400 1.5rem/1 'Nunito Sans', sans-serif; cursor: pointer; padding: 0;
}
.bk-info {
  font-size: 0.88rem; color: #f4e3da; background: rgba(255,255,255,0.08); border-left: 3px solid var(--apricot);
  border-radius: 8px; padding: 0.6rem 0.8rem; margin: 0 0 16px;
}
.bk-info a { color: var(--apricot); font-weight: 700; text-decoration: underline; white-space: nowrap; }
.bk-field, .bk-fields label { display: grid; gap: 6px; font-size: 0.84rem; font-weight: 700; color: #e3cfd9; }
.bk-field { margin-bottom: 14px; }
.bk-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.sheet-box input, .sheet-box select, .sheet-box textarea {
  width: 100%; min-width: 0; font: 400 1rem/1.4 'Nunito Sans', sans-serif; color: #fff;
  background: var(--plum-dark); border: 1px solid rgba(255,255,255,0.3); border-radius: 8px; padding: 10px 12px;
}
.sheet-box textarea { display: block; resize: vertical; }
.sheet-box [aria-invalid="true"] { border-color: var(--apricot); box-shadow: 0 0 0 1px var(--apricot); }
.sheet-box :focus-visible { outline: 2px solid var(--apricot); outline-offset: 2px; }
.sheet-box ::placeholder { color: #b79aab; opacity: 1; }
/* Mobile bookings: type of place (Hotel / House / Condominium / Apartment), then its details */
.bk-loc[hidden], .bk-loc-more[hidden] { display: none; }
.bk-label { font-size: 0.84rem; font-weight: 700; color: #e3cfd9; margin: 0 0 2px; }
.bk-hint { display: block; font-size: 0.78rem; font-weight: 400; line-height: 1.4; color: #e3cfd9; margin: 0; }
p.bk-hint { margin-bottom: 8px; }
.bk-types { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bk-types button {
  flex: 1 1 auto; font: 700 0.88rem/1.2 'Nunito Sans', sans-serif; color: #fff; cursor: pointer; white-space: nowrap;
  padding: 0.6rem 0.8rem; border-radius: 999px; background: transparent; border: 1.5px solid rgba(255,255,255,0.3);
}
.bk-types button[aria-pressed="true"] { background: var(--apricot); border-color: var(--apricot); color: #4a2213; }
.bk-types.is-missing button { border-color: var(--apricot); }
.bk-fields-wide { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: end; }
.bk-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(255,255,255,0.2); }
.bk-list[hidden] { display: none; }
.bk-list li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 10px; align-items: center;
  padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,0.2); font-size: 0.92rem;
}
.bk-list b { white-space: nowrap; font-variant-numeric: tabular-nums; text-align: right; }
.bk-list small { display: block; font-size: 0.76rem; font-weight: 600; color: #e3cfd9; }
.bk-field[hidden], .bk-empty[hidden], .bk-info[hidden] { display: none; }
.bk-rm {
  width: 28px; height: 28px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.3); background: transparent;
  color: #fff; cursor: pointer; font: 400 1.1rem/1 'Nunito Sans', sans-serif; padding: 0;
}
.bk-empty { color: #e3cfd9; font-size: 0.9rem; margin: 0; padding: 12px 0; border-block: 1px solid rgba(255,255,255,0.2); }
.bk-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 12px 0 18px; font-weight: 700; }
.bk-total b { font-family: 'Fraunces', serif; font-size: 1.45rem; font-weight: 600; color: var(--apricot); font-variant-numeric: tabular-nums; text-align: right; }
.sheet-foot {
  position: sticky; bottom: 0; margin: 0 -20px; padding: 12px 20px calc(16px + env(safe-area-inset-bottom, 0px));
  background: var(--plum-dark); border-top: 1px solid rgba(255,255,255,0.2);
}
.bk-note { font-size: 0.86rem; color: #e3cfd9; margin: 0 0 10px; }
.bk-note.warn { color: var(--apricot); font-weight: 700; }
@media (min-width: 640px) { .sheet { align-items: center; } .sheet-box { border-radius: 16px; max-height: calc(100% - 48px); } }
@media (prefers-reduced-motion: no-preference) { .sheet-box { animation: sheet-in 0.22s ease-out; } }
@keyframes sheet-in { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet-box h2 { font-family: 'Fraunces', serif; font-weight: 700; line-height: 1.15; }
.bk-total b small { display: block; font: 600 0.78rem/1.3 'Nunito Sans', sans-serif; color: #e3cfd9; }
.bk-send {
  display: flex; align-items: center; justify-content: center; gap: 0.55rem; width: 100%;
  padding: 0.95rem 1.2rem; border-radius: 999px; background: var(--wa); color: #fff !important;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 1.1px; text-transform: uppercase;
}
.bk-send:hover { background: #1eb85a; }
.bk-send svg { width: 20px; height: 20px; fill: currentColor; }

/* ── "BOOK ONLINE" BUTTON — the main button of every page; WhatsApp and phone come second ── */
.btn-book {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.9rem 1.9rem; border-radius: 999px; color: #fff !important;
  background: linear-gradient(135deg, var(--terracotta) 0%, var(--terracotta-deep) 100%);
  font-weight: 800; font-size: 0.88rem; letter-spacing: 1.1px; text-transform: uppercase;
  box-shadow: 0 10px 24px rgba(58,20,48,0.28); transition: transform 0.18s, filter 0.18s;
}
.btn-book:hover { transform: translateY(-2px); filter: brightness(1.08); }
.way .btn-book { align-self: flex-start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; justify-content: center; align-items: center; }

/* ── THE 45-MINUTE PROMISE — in the hero of every page, right above the Book Online button
   (Em 2026-10-19: make it easy to understand and inviting). Sits on the dark plum hero. ── */
.promise {
  max-width: 780px; margin: 0 auto 1.7rem; padding: 1.1rem 1.1rem 1.2rem; text-align: left;
  border-radius: 18px; background: rgba(255,255,255,0.08); border: 1.5px solid var(--apricot);
  box-shadow: 0 14px 34px rgba(30,10,24,0.28);
}
.promise-head { display: flex; align-items: center; gap: 0.95rem; margin: 0 0 1rem; }
.promise-clock {
  flex: none; width: 76px; height: 76px; border-radius: 50%; background: var(--apricot); color: #4a2213;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; line-height: 1;
  box-shadow: 0 0 0 6px rgba(237,164,95,0.25);
}
.promise-clock b { font-family: 'Fraunces', serif; font-size: 2.05rem; font-weight: 700; letter-spacing: 0; }
.promise-txt { min-width: 0; }
.promise-txt strong {
  display: block; font-family: 'Fraunces', serif; font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 700; color: #fff; line-height: 1.2;
}
.promise-txt small { display: block; margin-top: 0.3rem; font-size: 0.86rem; color: #ecd8e2; line-height: 1.4; }
.promise-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.promise-steps li { padding: 0.8rem 0.85rem; border-radius: 12px; background: rgba(255,255,255,0.07); }
.promise-steps li:last-child { background: rgba(237,164,95,0.2); }
.ps-ico { display: block; font-size: 1.5rem; line-height: 1; margin-bottom: 0.4rem; }
.promise-steps b { display: block; font-size: 0.93rem; font-weight: 800; color: #fff; line-height: 1.25; }
.promise-steps small { display: block; margin-top: 0.2rem; font-size: 0.8rem; color: #ecd8e2; line-height: 1.4; }
/* Phones: the three steps stay side by side as small tiles (icon + title), so the block stays short */
@media (max-width: 640px) {
  .promise { padding: 0.85rem 0.7rem 0.75rem; margin-bottom: 1.3rem; }
  .promise-head { gap: 0.7rem; margin-bottom: 0.75rem; }
  .promise-clock { width: 58px; height: 58px; font-size: 0.62rem; box-shadow: 0 0 0 4px rgba(237,164,95,0.25); }
  .promise-clock b { font-size: 1.6rem; }
  .promise-txt strong { font-size: 1.08rem; }
  .promise-txt small { font-size: 0.78rem; }
  .promise-steps { gap: 0.4rem; }
  .promise-steps li { padding: 0.6rem 0.3rem; text-align: center; }
  .ps-ico { font-size: 1.3rem; margin-bottom: 0.3rem; }
  .promise-steps b { font-size: 0.78rem; }
  .promise-steps small { display: none; }
}
