/* Rayna guest pages (guest.html on booking.raynariverwalk.com, rayna-embed.html in the main
   website's chat bubble) - tokens + chat components. Standalone from style.css (staff app).
   Theme follows www.raynariverwalk.com: black & white, Playfair Display, condensed caps,
   photography as the colour. One warm accent (brass) for prices and the hold slip. */
:root {
  color-scheme: light;
  --ink: #0B0B0B;
  --paper: #FFFFFF;
  --card: #F4F4F2;
  --line: #DEDEDA;
  --muted: #5F5F5B;
  --brass: #B08D57;
  --brass-soft: #F6EFE3;
  --display: 'Playfair Display', Georgia, serif;
  --label: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --script: 'Allura', 'Brush Script MT', cursive;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.55; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Brand */
.mk-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.mk-brand img { width: 44px; height: auto; }
.mk-brand .wm { font-family: var(--label); font-weight: 500; font-size: 19px; letter-spacing: .06em; line-height: 1.05; text-transform: uppercase; }
.mk-brand .tag { font-family: var(--script); font-size: 19px; line-height: 1; display: block; letter-spacing: 0; text-transform: none; }
.mk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; text-decoration: none;
  font-family: var(--label); font-weight: 600; font-size: 15px; letter-spacing: .14em; text-transform: uppercase;
  transition: background .2s, color .2s;
}
.mk-btn:hover { background: #fff; color: var(--ink); }
.mk-btn.ghost { background: transparent; color: var(--ink); }
.mk-btn.ghost:hover { background: var(--ink); color: #fff; }
.mk-btn.small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.mk-btn:disabled { opacity: .35; cursor: default; background: var(--ink); color: #fff; }
.mk-bar { background: var(--ink); color: #fff; font-family: var(--label); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; font-size: 14px; padding: 10px 16px; text-align: center; }

/* ── Chat ─────────────────────────────────────────────────────────── */
.mk-chat { display: flex; flex-direction: column; min-height: 0; height: 100%; background: var(--paper); }
.mk-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mk-avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ink); display: grid; place-items: center; flex: none; background: #fff; }
.mk-avatar img { width: 24px; }
.mk-chat-name { font-family: var(--display); font-size: 19px; line-height: 1.1; }
.mk-chat-role { font-family: var(--label); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.mk-restart { margin-left: auto; background: none; border: 0; font-family: var(--label); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; color: var(--muted); cursor: pointer; padding: 8px; min-height: 44px; }
.mk-restart:hover { color: var(--ink); }

.mk-log { flex: 1; overflow-y: auto; padding: 20px 18px 8px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; overscroll-behavior: contain; }
.mk-msg { max-width: 92%; overflow-wrap: anywhere; animation: mk-in .28s ease-out both; }
.mk-msg.rayna { align-self: flex-start; }
.mk-msg.rayna p { margin: 0 0 6px; }
.mk-msg.rayna p:last-child { margin: 0; }
.mk-msg.rayna .lead { font-family: var(--display); font-size: 22px; line-height: 1.25; }
.mk-msg.guest { align-self: flex-end; background: var(--ink); color: #fff; padding: 9px 14px; border-radius: 2px 14px 2px 14px; font-size: 15.5px; }
.mk-widget { align-self: stretch; animation: mk-in .32s ease-out both; }
@keyframes mk-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.mk-typing { align-self: flex-start; display: inline-flex; gap: 5px; padding: 8px 0; }
.mk-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); opacity: .3; animation: mk-dot 1.1s infinite; }
.mk-typing i:nth-child(2) { animation-delay: .15s; } .mk-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes mk-dot { 40% { opacity: 1; transform: translateY(-3px); } }

/* Stay / picnic choice */
.mk-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mk-choice {
  position: relative; border: 0; padding: 0; cursor: pointer; overflow: hidden; text-align: left;
  aspect-ratio: 4 / 5; background: #222; color: #fff; border-radius: 2px;
}
.mk-choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.mk-choice:hover img { transform: scale(1.05); }
.mk-choice::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 35%, rgba(0,0,0,.78)); }
.mk-choice span { position: absolute; left: 14px; right: 14px; bottom: 12px; z-index: 1; }
.mk-choice b { display: block; font-family: var(--label); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; font-size: 17px; }
.mk-choice small { display: block; font-family: var(--display); font-style: italic; font-size: 15px; opacity: .92; line-height: 1.3; }
.mk-choice[aria-pressed="true"] { outline: 3px solid var(--brass); outline-offset: 2px; }
.mk-choices.done .mk-choice:not([aria-pressed="true"]) { opacity: .35; }

/* Calendar */
.mk-cal { border: 1px solid var(--ink); padding: 14px; background: #fff; max-width: 400px; }
.mk-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.mk-cal-head b { font-family: var(--display); font-weight: 500; font-size: 18px; }
.mk-cal-nav { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; font-size: 22px; }
.mk-cal-nav:disabled { opacity: .25; cursor: default; }
.mk-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.mk-cal-grid .dow { font-family: var(--label); font-size: 12px; letter-spacing: .1em; color: var(--muted); padding: 4px 0; }
.mk-day { aspect-ratio: 1; min-height: 38px; border: 0; background: none; cursor: pointer; font-size: 15px; position: relative; }
.mk-day:hover:not(:disabled) { background: var(--card); }
.mk-day:disabled { color: #BDBDB8; cursor: default; }
.mk-day.full { color: #BDBDB8; text-decoration: line-through; }
.mk-day.in { background: var(--card); }
.mk-day.start, .mk-day.end, .mk-day.sel { background: var(--ink); color: #fff; }
.mk-cal-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.mk-cal-sum { font-size: 14.5px; }
.mk-cal-sum em { font-style: normal; color: var(--muted); }
.mk-cal-legend { font-size: 12.5px; color: var(--muted); margin-top: 6px; }

/* Guests */
.mk-guests { border: 1px solid var(--ink); background: #fff; padding: 6px 14px 14px; max-width: 400px; }
.mk-step { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.mk-step:last-of-type { border-bottom: 0; }
.mk-step div { flex: 1; }
.mk-step b { font-weight: 600; display: block; line-height: 1.2; }
.mk-step small { color: var(--muted); font-size: 13px; }
.mk-step button { width: 44px; height: 44px; border: 1px solid var(--ink); background: #fff; cursor: pointer; font-size: 20px; line-height: 1; }
.mk-step button:disabled { opacity: .25; cursor: default; }
.mk-step output { width: 28px; text-align: center; font-family: var(--display); font-size: 20px; }

/* Room / plan result cards (scroll horizontally) */
.mk-cards { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px 2px 10px; margin: 0 -2px; }
.mk-card { flex: 0 0 248px; scroll-snap-align: start; background: #fff; border: 1px solid var(--ink); display: flex; flex-direction: column; }
.mk-card .ph { aspect-ratio: 3 / 2; overflow: hidden; background: var(--card); }
.mk-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.mk-card .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.mk-card h4 { margin: 0; font-family: var(--display); font-weight: 500; font-size: 19px; line-height: 1.2; }
.mk-card .meta { font-size: 13.5px; color: var(--muted); }
.mk-card .fit { font-family: var(--label); letter-spacing: .1em; text-transform: uppercase; font-size: 12.5px; color: var(--ink); }
.mk-card .price { margin-top: auto; padding-top: 8px; font-family: var(--display); font-size: 22px; color: var(--ink); }
.mk-card .price small { display: block; font-family: var(--body); font-size: 12.5px; color: var(--muted); }
.mk-card .acts { display: flex; gap: 8px; margin-top: 10px; }
.mk-card .acts .mk-btn { flex: 1; }
.mk-note { font-size: 13.5px; color: var(--muted); }

/* Details form */
.mk-form { border: 1px solid var(--ink); background: #fff; padding: 14px; display: grid; gap: 10px; max-width: 400px; }
.mk-form label { font-family: var(--label); letter-spacing: .12em; text-transform: uppercase; font-size: 12.5px; display: grid; gap: 4px; }
.mk-form input { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; text-transform: none; letter-spacing: 0; }
.mk-form input:focus { outline: none; border-color: var(--ink); }

/* Hold slip - a little ticket */
.mk-slip { position: relative; border: 1px solid var(--ink); background: var(--brass-soft); padding: 16px 18px; max-width: 400px; }
.mk-slip::before, .mk-slip::after { content: ''; position: absolute; top: 50%; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); border: 1px solid var(--ink); transform: translateY(-50%); }
.mk-slip::before { left: -10px; clip-path: inset(0 0 0 50%); } .mk-slip::after { right: -10px; clip-path: inset(0 50% 0 0); }
.mk-slip .k { font-family: var(--label); letter-spacing: .18em; text-transform: uppercase; font-size: 12.5px; color: var(--muted); }
.mk-slip .ref { font-family: var(--display); font-size: 26px; line-height: 1.15; }
.mk-slip .row { display: flex; justify-content: space-between; gap: 12px; border-top: 1px dashed var(--brass); margin-top: 10px; padding-top: 10px; font-size: 14.5px; }

/* Input */
.mk-input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--paper); }
.mk-input input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 0; }
.mk-input input:focus { outline: none; border-color: var(--ink); }
.mk-fine { font-size: 12px; color: var(--muted); padding: 0 16px 10px; margin: 0; background: var(--paper); }

/* Live-chat additions */
.mk-msg.rayna ul { margin: 4px 0 6px; padding-left: 20px; }
.mk-msg.rayna li { margin: 2px 0; }
.mk-msg.rayna a { color: var(--ink); }
.mk-msg.note { align-self: center; font-size: 13.5px; color: var(--muted); text-align: center; max-width: 100%; }
.mk-err { color: #9B1C1C; font-size: 14px; }
.mk-typing-note { margin-left: 8px; font-size: 13px; color: var(--muted); }
.mk-form select { font: inherit; font-size: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 0; background: #fff; text-transform: none; letter-spacing: 0; }
.mk-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mk-chip { border: 1px solid var(--ink); background: #fff; min-height: 40px; padding: 0 14px; cursor: pointer; font-family: var(--label); letter-spacing: .12em; text-transform: uppercase; font-size: 13px; }
.mk-chip:hover { background: var(--ink); color: #fff; }
.mk-close { background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; width: 44px; height: 44px; margin-left: -6px; }
.mk-offline { padding: 26px 20px; text-align: center; display: grid; gap: 12px; justify-items: center; }
.mk-offline p { margin: 0; max-width: 26em; }
.mk-cards .empty { font-size: 14.5px; }

@media (prefers-reduced-motion: reduce) {
  .mk-msg, .mk-widget { animation: none; }
  .mk-typing i { animation: none; opacity: .6; }
  .mk-log { scroll-behavior: auto; }
  .mk-choice img { transition: none; }
}
