/* Continue-booking nudge — structural CSS with design tokens (skill: continue-booking-nudge).
   Tokens come from the ila site (site.css .pi-modal tokens, ila-ux.css, header Book Now button):
   brown #734538 ink, sand #f5f3e9 card, orange #d56750 booking CTA, Montagu Slab + Inter, square cards, 3px buttons.
   Scoped to .booking-nudge — no :root pollution. */

/* The CMS's own "Continue Your Booking" box (#continueBooking, driven by the engine bundle) is hidden: the nudge replaces it, and both would show for the same guest. */
#continueBooking { display: none !important; }

.booking-nudge {
  /* ---- design tokens ---- */
  --cbn-surface: #f5f3e9;
  --cbn-border: rgba(115, 69, 56, .28);
  --cbn-ink: #734538;                /* on surface 7.2:1 */
  --cbn-muted: #5a4a42;              /* on surface 7.6:1 */
  --cbn-accent: #734538;
  --cbn-accent-2: #d56750;
  --cbn-cta-bg: #d56750;             /* header Book Now */
  --cbn-cta-ink: #ffffff;            /* on CTA 4.5:1 */
  --cbn-cta-hover: #a34632;
  --cbn-font-display: 'Montagu Slab', serif;
  --cbn-font-body: 'Inter', sans-serif;
  --cbn-radius: 0;
  --cbn-cta-radius: 3px;
  --cbn-cta-transform: none;
  --cbn-cta-tracking: 0;
  --cbn-ease: cubic-bezier(.4, 0, .2, 1);
  /* ---- end tokens ---- */

  overflow: hidden;
  background: var(--cbn-surface);
  border: 1px solid var(--cbn-border);
  border-radius: var(--cbn-radius);
  box-shadow: 0 20px 60px -16px rgba(61, 40, 32, .25), 0 2px 8px rgba(0, 0, 0, .06);
  display: none;
  opacity: 0;
  position: fixed;
  right: 24px;
  top: 164px; /* under the 80px header and the sound button (104-148); clear of the form at the hero's bottom edge (from y=705) and the Call/WhatsApp buttons (from y=652) at 1536x864 */
  transform: translateY(-20px);
  transition: transform .45s var(--cbn-ease), opacity .45s var(--cbn-ease);
  width: min(380px, calc(100vw - 48px));
  z-index: 1050; /* above the header (1030) and the floating buttons (900), below the cookie bar (1100) and the price popup (2000) */
}
.booking-nudge.show { display: block; }
.booking-nudge.in { opacity: 1; transform: translateY(0); }

.bn-accent { background: linear-gradient(90deg, var(--cbn-accent), var(--cbn-accent-2)); height: 3px; left: 0; position: absolute; right: 0; top: 0; }

.bn-header { align-items: flex-start; display: flex; gap: 12px; justify-content: space-between; padding: 20px 24px 0; }
.bn-name { color: var(--cbn-ink); font-family: var(--cbn-font-display); font-size: 22px; font-weight: 400; letter-spacing: .01em; line-height: 1.25; }
.bn-close { align-items: center; background: transparent; border: 1px solid var(--cbn-border); border-radius: 50%; color: var(--cbn-muted); cursor: pointer; display: flex; flex-shrink: 0; height: 32px; justify-content: center; transition: all .3s var(--cbn-ease); width: 32px; }
.bn-close:hover { background: var(--cbn-ink); border-color: var(--cbn-ink); color: #fff; transform: rotate(90deg); }
.bn-close svg { height: 12px; width: 12px; }

.bn-body { padding: 12px 24px 20px; }
.bn-subtitle { color: var(--cbn-muted); font-family: var(--cbn-font-body); font-size: 14px; font-weight: 300; line-height: 1.6; margin-bottom: 4px; }
.bn-property { color: var(--cbn-accent); font-family: var(--cbn-font-display); font-size: 18px; font-weight: 400; letter-spacing: .01em; }
.bn-meta { color: var(--cbn-muted); font-family: var(--cbn-font-body); font-size: 13px; font-weight: 300; line-height: 1.5; margin-top: 8px; }
.bn-meta:empty { display: none; }
.bn-price { color: var(--cbn-muted); display: none; font-family: var(--cbn-font-body); font-size: 12px; font-weight: 300; line-height: 1.5; margin-top: 8px; }
.bn-price.loaded { display: block; }
.bn-price .price-msg { color: var(--cbn-accent); font-family: var(--cbn-font-display); font-size: 20px; font-weight: 500; }
.bn-price .general-msg { color: var(--cbn-muted); font-size: 12px; }

.bn-actions { align-items: center; display: flex; gap: 12px; padding: 0 24px 20px; }
.bn-cta { align-items: center; background: var(--cbn-cta-bg); border: 1px solid var(--cbn-cta-bg); border-radius: var(--cbn-cta-radius); color: var(--cbn-cta-ink); display: inline-flex; font-family: var(--cbn-font-body); font-size: 15px; font-weight: 500; gap: 8px; letter-spacing: var(--cbn-cta-tracking); padding: 12px 28px; text-decoration: none; text-transform: var(--cbn-cta-transform); transition: all .35s var(--cbn-ease); }
.bn-cta:hover { background: var(--cbn-cta-hover); border-color: var(--cbn-cta-hover); }
.bn-cta:after { background: currentColor; content: ""; height: 1px; transition: width .3s var(--cbn-ease); width: 14px; }
.bn-cta:hover:after { width: 20px; }

@media (max-width: 600px) {
  .booking-nudge { border-radius: 0; left: auto; right: 12px; top: 144px; width: calc(100vw - 24px); } /* under the phone header + hotel picker (to y=131); above the floating buttons (from y=632) */
  .bn-header { padding: 16px 18px 0; }
  .bn-body { padding: 10px 18px 16px; }
  .bn-actions { padding: 0 18px 16px; }
  .bn-name { font-size: 19px; }
  .bn-property { font-size: 16px; }
}
