/* Casa MoJo guest page - demo. Playa Lux brand: Spectral + Manrope, terracotta on sand, palm teal from the logo. */
:root {
  --sand: #FDF8F1; --sand-2: #F5EDE1; --card: #FFFFFF; --line: #EADFCF;
  --ink: #2E251D; --ink-2: #6B5B4B; --mute: #978673;
  --terra: #9C4F2C; --terra-2: #7C3B1E; --terra-soft: #F6E6DB;
  --teal: #2A5F66; --teal-2: #1D474D; --teal-soft: #E3EEEC;
  --ok: #3E7A5A; --ok-soft: #E4F0E8;
  --serif: 'Spectral', Georgia, serif; --sans: 'Manrope', system-ui, -apple-system, sans-serif;
  --r: 18px; --r-sm: 12px; --app: 460px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 15.5px/1.55 var(--sans); color: var(--ink); background: #E9E1D4; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: -.005em; }
h2 { font-size: 1.45rem; line-height: 1.2; }
h3 { font-size: 1.12rem; line-height: 1.3; }
p { margin: 0; }
.muted { color: var(--ink-2); }
.tiny { font-size: .8rem; color: var(--mute); }

/* ---------- desktop: demo panel + app column ---------- */
.stage-wrap { display: grid; grid-template-columns: minmax(0, 1fr) var(--app) minmax(0, 1fr); min-height: 100vh; }
.demo { grid-column: 1; padding: 48px 40px; position: sticky; top: 0; align-self: start; max-width: 460px; justify-self: end; }
.demo h1 { font-size: 2rem; line-height: 1.15; color: var(--teal-2); }
.demo p { margin-top: 14px; color: var(--ink-2); }
.demo .by { margin-top: 26px; font-size: .85rem; color: var(--mute); }
.demo .by a { color: var(--teal); font-weight: 700; }
.stages { display: grid; gap: 8px; margin-top: 26px; }
.stages button { text-align: left; background: rgba(255,255,255,.55); border: 1.5px solid transparent; border-radius: 14px; padding: 12px 16px; }
.stages button b { display: block; font-weight: 700; }
.stages button span { font-size: .86rem; color: var(--ink-2); }
.stages button[aria-pressed="true"] { background: #fff; border-color: var(--teal); }
.try { margin-top: 28px; }
.try h3 { font-size: 1rem; font-family: var(--sans); font-weight: 700; }
.try ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.try li { margin: 4px 0; }
.app { grid-column: 2; background: var(--sand); min-height: 100vh; box-shadow: 0 0 0 1px rgba(46,37,29,.06), 0 30px 80px rgba(46,37,29,.18); position: relative; padding-bottom: 96px; }
@media (min-width: 0px) {
  body { background: var(--sand); }
  .stage-wrap { display: block; }
  .demo { position: static; max-width: none; padding: 14px 16px 12px; background: var(--teal-2); color: #fff; }
  .demo h1, .demo > p, .demo .by, .try { display: none; }
  .demo::before { content: 'Demo: guest page for a Playa Lux booking'; display: block; font-size: .8rem; font-weight: 700; opacity: .85; margin-bottom: 8px; }
  .stages { grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 0; }
  .stages button { background: rgba(255,255,255,.12); color: #fff; padding: 8px 6px; text-align: center; border-radius: 10px; }
  .stages button span { display: none; }
  .stages button b { font-size: .8rem; }
  .stages button[aria-pressed="true"] { background: #fff; color: var(--teal-2); border-color: #fff; }
  .app { box-shadow: none; max-width: 640px; margin: 0 auto; }
}

/* stage visibility */
[data-show] { display: none; }
body.s-before [data-show~="before"], body.s-during [data-show~="during"], body.s-after [data-show~="after"] { display: block; }
body.s-before [data-show~="before"].flex, body.s-during [data-show~="during"].flex, body.s-after [data-show~="after"].flex { display: flex; }

/* ---------- top of the app ---------- */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; padding: 10px 18px; background: rgba(253,248,241,.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.bar img { height: 34px; width: auto; }
.bar .who { font-size: .85rem; color: var(--ink-2); text-align: right; line-height: 1.3; }
.bar .who b { color: var(--ink); display: block; }
.hero { position: relative; height: 330px; overflow: hidden; }
.hero img { width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(23,17,12,.72) 0%, rgba(23,17,12,.1) 55%, transparent 100%); }
.hero-text { position: absolute; left: 20px; right: 20px; bottom: 54px; z-index: 1; color: #fff; }
.hero-text h1 { font-size: 2rem; line-height: 1.1; }
.hero-text p { margin-top: 6px; opacity: .92; }

/* ---------- views & sections ---------- */
.view { display: none; }
.view.on { display: block; }
.sec { padding: 22px 18px 4px; }
.sec > h2 { margin-bottom: 12px; }
.sec > .lead { margin: -4px 0 14px; color: var(--ink-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card + .card { margin-top: 12px; }
.stay-card { margin-top: -34px; position: relative; z-index: 2; margin-left: 14px; margin-right: 14px; box-shadow: 0 10px 30px rgba(46,37,29,.12); display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; }
.stay-card div b { display: block; font-size: 1.02rem; }
.stay-card div span { font-size: .8rem; color: var(--mute); }
.stay-card .full { grid-column: 1 / -1; padding-top: 12px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; }

/* checklist */
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check li { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.check .dot { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; }
.check li.done .dot { background: var(--ok); border-color: var(--ok); }
.check li.done .dot::after { content: ''; width: 9px; height: 5px; border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.check .txt { flex: 1; min-width: 0; }
.check .txt b { display: block; }
.check .txt span { font-size: .84rem; color: var(--ink-2); }
.progress { height: 6px; background: var(--sand-2); border-radius: 99px; overflow: hidden; margin: 2px 0 14px; }
.progress i { display: block; height: 100%; background: var(--ok); border-radius: 99px; transition: width .4s; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; border: 0; border-radius: 99px; padding: 11px 18px; font-weight: 700; font-size: .92rem; text-decoration: none; min-height: 42px; }
.btn-p { background: var(--terra); color: #fff; } .btn-p:hover { background: var(--terra-2); }
.btn-t { background: var(--teal); color: #fff; } .btn-t:hover { background: var(--teal-2); }
.btn-g { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-s { padding: 8px 14px; min-height: 36px; font-size: .85rem; }
.btn-block { width: 100%; }
.pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 4px 10px; font-size: .76rem; font-weight: 700; white-space: nowrap; }
.pill-ok { background: var(--ok-soft); color: var(--ok); } .pill-wait { background: var(--terra-soft); color: var(--terra-2); } .pill-t { background: var(--teal-soft); color: var(--teal-2); }

/* plans timeline */
.plans { list-style: none; padding: 0; margin: 0; position: relative; }
.plans::before { content: ''; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.plans li { position: relative; padding: 0 0 16px 28px; }
.plans li::before { content: ''; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--sand); border: 2px solid var(--teal); }
.plans .when { font-size: .78rem; font-weight: 700; color: var(--teal); }
.plans .what { display: flex; justify-content: space-between; gap: 10px; align-items: center; }

/* arrival */
.route { display: grid; gap: 0; }
.route .leg { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; }
.route .n { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.photo-note { position: relative; border-radius: var(--r); overflow: hidden; }
.photo-note img { width: 100%; height: 220px; object-fit: cover; }
.photo-note span { position: absolute; left: 12px; bottom: 12px; background: rgba(255,255,255,.95); border-radius: 99px; padding: 6px 12px; font-size: .82rem; font-weight: 700; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code .digits { font: 600 2rem/1 var(--serif); letter-spacing: .3em; color: var(--teal-2); }
.code .locked { display: flex; gap: 12px; align-items: center; }
.lock { width: 38px; height: 38px; border-radius: 12px; background: var(--sand-2); display: grid; place-items: center; flex: none; }
.map { height: 240px; border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); z-index: 0; }

/* guide */
.wifi { background: var(--teal-2); color: #fff; border: 0; }
.wifi .row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.wifi .row + .row { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.16); }
.wifi span { font-size: .78rem; opacity: .75; display: block; }
.wifi b { font-size: 1.05rem; }
.wifi .btn { background: rgba(255,255,255,.14); color: #fff; }
.units { display: grid; gap: 8px; }
.unit { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: var(--sand); border-radius: var(--r-sm); }
.unit b { display: block; } .unit span { font-size: .84rem; color: var(--ink-2); }
details.acc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
details.acc + details.acc { margin-top: 10px; }
details.acc summary { list-style: none; padding: 16px 44px 16px 16px; font-weight: 700; position: relative; cursor: pointer; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 9px; height: 9px; margin-top: -6px; border-right: 2px solid var(--terra); border-bottom: 2px solid var(--terra); transform: rotate(45deg); }
details.acc[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
details.acc .in { padding: 0 16px 16px; color: var(--ink-2); }
details.acc .in p + p { margin-top: 8px; }
details.acc ol { margin: 0; padding-left: 18px; } details.acc li { margin: 4px 0; }

/* explore */
.recs { display: grid; gap: 10px; }
.rec { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: start; }
.rec .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--terra-soft); color: var(--terra-2); display: grid; place-items: center; }
.rec .k { font-size: .76rem; font-weight: 700; color: var(--terra); }
.tips { display: grid; gap: 10px; }

/* extras */
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ex { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-align: left; display: flex; flex-direction: column; gap: 6px; min-height: 150px; }
.ex .ic { width: 38px; height: 38px; border-radius: 11px; background: var(--teal-soft); color: var(--teal-2); display: grid; place-items: center; }
.ex b { font-size: .95rem; line-height: 1.25; }
.ex .price { margin-top: auto; font-size: .82rem; color: var(--ink-2); }
.ex .price strong { color: var(--ink); }
.ex.booked { border-color: var(--ok); }
.ex .state { align-self: flex-start; }
.note { display: flex; gap: 10px; align-items: flex-start; background: var(--teal-soft); color: var(--teal-2); border-radius: var(--r-sm); padding: 12px 14px; font-size: .86rem; margin-bottom: 12px; }

/* after */
.stars { display: flex; gap: 6px; margin: 12px 0; }
.stars button { background: none; border: 0; padding: 2px; color: var(--line); }
.stars button.on { color: #D9A13B; }
.stars svg { width: 34px; height: 34px; }
.back { background: var(--teal-2); color: #fff; border: 0; }
.back h2 { color: #fff; }
.back p { margin-top: 8px; opacity: .88; }
.back .codebox { margin: 14px 0; display: flex; justify-content: space-between; align-items: center; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.5); border-radius: 12px; padding: 12px 14px; }
.back .codebox b { font: 600 1.2rem var(--serif); letter-spacing: .08em; }

/* ---------- bottom tabs ---------- */
.tabs { position: fixed; bottom: 0; z-index: 30; width: 100%; max-width: var(--app); display: grid; grid-template-columns: repeat(5, 1fr); background: #fff; border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
@media (max-width: 0px) { .tabs { left: 50%; transform: translateX(-50%); } }
@media (min-width: 0px) { .tabs { left: 50%; transform: translateX(-50%); max-width: 640px; } }
.tabs button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; font-size: .72rem; font-weight: 600; color: var(--mute); border-radius: 10px; }
.tabs svg { width: 22px; height: 22px; }
.tabs button[aria-selected="true"] { color: var(--terra); }

/* ---------- chat button + sheets ---------- */
.ask { position: fixed; z-index: 31; bottom: 84px; right: max(16px, calc(50% - var(--app) / 2 + 16px)); background: var(--terra); color: #fff; border: 0; border-radius: 99px; padding: 12px 18px 12px 14px; display: flex; align-items: center; gap: 8px; font-weight: 700; box-shadow: 0 10px 24px rgba(124,59,30,.35); }
@media (min-width: 0px) { .ask { right: max(16px, calc(50% - 320px + 16px)); } }
.ask svg { width: 22px; height: 22px; }
.scrim { position: fixed; inset: 0; background: rgba(23,17,12,.45); z-index: 40; opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.scrim.on { opacity: 1; visibility: visible; }
.sheet { position: fixed; z-index: 41; left: 50%; bottom: 0; width: 100%; max-width: var(--app); max-height: 92vh; overflow-y: auto; background: var(--sand); border-radius: 22px 22px 0 0; transform: translate(-50%, 104%); transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s linear .28s; padding: 8px 18px 22px; }
@media (min-width: 0px) { .sheet { max-width: 640px; } }
.sheet { visibility: hidden; }
.sheet.on { transform: translate(-50%, 0); visibility: visible; transition: transform .28s cubic-bezier(.2,.8,.2,1), visibility 0s; }
@media (prefers-reduced-motion: reduce) { .sheet, .scrim { transition: none; } }
.grab { width: 44px; height: 5px; border-radius: 99px; background: var(--line); margin: 6px auto 12px; }
.sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.x { background: var(--sand-2); border: 0; width: 34px; height: 34px; border-radius: 50%; flex: none; font-size: 1.2rem; line-height: 1; }
.field { display: grid; gap: 6px; margin-bottom: 12px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea { font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); width: 100%; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sum { display: flex; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 4px; font-weight: 700; }
.fine { font-size: .8rem; color: var(--ink-2); margin: 10px 0 14px; }
.agree { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: .88rem; color: var(--ink-2); max-height: 190px; overflow-y: auto; }
.agree h3 { font-size: 1rem; color: var(--ink); margin-bottom: 6px; }
.agree ul { margin: 6px 0; padding-left: 18px; }
.sig { background: #fff; border: 1.5px dashed var(--line); border-radius: 12px; height: 130px; width: 100%; touch-action: none; display: block; }
.sig-row { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 12px; }
.linkbtn { background: none; border: 0; color: var(--terra); font-weight: 700; font-size: .85rem; padding: 4px; }

/* chat */
.chat { display: flex; flex-direction: column; height: min(78vh, 680px); }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.av { width: 40px; height: 40px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font: 600 1.05rem var(--serif); flex: none; }
.chat-head b { display: block; } .chat-head span { font-size: .8rem; color: var(--ok); font-weight: 600; }
.msgs { flex: 1; overflow-y: auto; padding: 14px 2px; display: flex; flex-direction: column; gap: 8px; }
.m { max-width: 84%; padding: 10px 13px; border-radius: 16px; font-size: .93rem; line-height: 1.45; }
.m.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 5px; align-self: flex-start; }
.m.human { background: var(--teal-soft); border-bottom-left-radius: 5px; align-self: flex-start; }
.m.me { background: var(--terra); color: #fff; border-bottom-right-radius: 5px; align-self: flex-end; }
.m .who { display: block; font-size: .72rem; font-weight: 700; color: var(--teal); margin-bottom: 2px; }
.m .act { margin-top: 8px; }
.typing { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); animation: bl 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bl { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.chips button { flex: none; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; padding: 7px 12px; font-size: .82rem; font-weight: 600; }
.composer { display: flex; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.composer input { flex: 1; font: inherit; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 99px; background: #fff; min-width: 0; }
.composer button { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--terra); color: #fff; display: grid; place-items: center; }

.toast { position: fixed; z-index: 60; left: 50%; bottom: 100px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; border-radius: 99px; padding: 10px 18px; font-size: .88rem; font-weight: 600; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.foot { padding: 28px 18px 10px; text-align: center; font-size: .78rem; color: var(--mute); }
.foot a { color: var(--ink-2); font-weight: 700; }

/* 2026-09-27: where the guest booked (Airbnb vs own site), share, language */
body[data-src="airbnb"] [data-only="direct"], body[data-src="direct"] [data-only="airbnb"] { display: none !important; }
.src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: .86rem; color: var(--ink-2); }
.src span { font-weight: 700; margin-right: 4px; }
.src button { background: rgba(255,255,255,.55); border: 1.5px solid transparent; border-radius: 99px; padding: 6px 12px; font-weight: 600; font-size: .84rem; }
.src button[aria-pressed="true"] { background: #fff; border-color: var(--teal); }
.demo .src-note { font-size: .84rem; margin-top: 8px; }
.lang { margin-top: 18px; font-size: .88rem; }
.lang a { color: var(--teal); font-weight: 700; }
.bar .lang-s { font-size: .78rem; font-weight: 700; color: var(--teal); margin-left: auto; margin-right: 12px; text-decoration: none; border: 1.5px solid var(--teal); border-radius: 99px; padding: 3px 9px; }
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 16px; }
.share-row a { text-align: center; text-decoration: none; }
.optin { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; margin: 4px 0 14px; }
.optin input { width: 20px; height: 20px; accent-color: var(--terra); flex: none; margin-top: 1px; }
@media (min-width: 0px) {
  .src { margin-top: 8px; color: #fff; font-size: .78rem; }
  .src button { background: rgba(255,255,255,.12); color: #fff; padding: 4px 10px; font-size: .78rem; }
  .src button[aria-pressed="true"] { background: #fff; color: var(--teal-2); border-color: #fff; }
  .demo .src-note, .lang { display: none; }
}

/* 2026-09-28: one simple page - a slim "this is a demo" strip on top, the guest page below */
.demo { position: sticky; top: 0; z-index: 40; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; padding: 10px 16px; }
.demo::before { content: 'This is a demo guest page'; margin: 0; flex-basis: 100%; text-align: center; }
.stages { display: flex; flex-wrap: wrap; justify-content: center; }
.stages button { padding: 7px 12px; }
.src { margin-top: 0; }
.bar { top: 0; }

/* 2026-09-28 (2): the demo strip, smaller - one quiet line, scrolls sideways on phones */
.demo { position: static; width: 100%; max-width: none; margin: 0; justify-self: stretch; display: flex; flex-wrap: nowrap; align-items: center; justify-content: center; gap: 6px; padding: 6px 12px; overflow-x: auto; scrollbar-width: none; background: var(--teal-2); }
.demo::-webkit-scrollbar { display: none; }
.demo::before { content: 'Demo'; flex: 0 0 auto; flex-basis: auto; margin: 0 4px 0 0; padding: 2px 8px; border-radius: 99px; background: rgba(255,255,255,.16); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; opacity: 1; text-align: left; }
.demo .stages { display: flex; flex-wrap: nowrap; gap: 4px; margin: 0; }
.demo .stages button { flex: 0 0 auto; padding: 3px 10px; border-radius: 99px; }
.demo .stages button b { font-size: .74rem; white-space: nowrap; }
.demo .src { flex: 0 0 auto; flex-wrap: nowrap; gap: 4px; margin: 0 0 0 8px; font-size: .72rem; white-space: nowrap; }
.demo .src span { opacity: .8; font-weight: 600; margin-right: 2px; }
.demo .src button { padding: 3px 10px; font-size: .74rem; }
@media (max-width: 600px) { .demo { justify-content: flex-start; } }
