/* Live demo — guest journey launcher (templates/demo/guest_launcher.html),
   the "check-in done" page (guest_checked_in.html) and the small
   "See what your guests see" link (_guest_journey_link.html).
   Same look as the rooms / reservations pages (rooms-modern.css tokens). */

/* ── Entry link (inside the Demo guide panel, templates/demo/_guide.html) ── */
.demo-guest-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid #B8742E;
    background: #FFFFFF;
    color: #8A5420;
    font-weight: 600;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
}
.demo-guest-link:hover { background: #FBF3EA; text-decoration: none; }
@media (max-width: 768px) {
    .demo-guest-link { padding: 5px 8px; font-size: 12px; }
    .demo-guest-link span { display: none; } /* the thin phone strip: icon only */
}

/* ── Launcher page ─────────────────────────────────────────────────── */
.dgl-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dgl-head h2 { margin: 0; font-size: 26px; font-weight: 700; letter-spacing: -0.01em; color: var(--rmx-ink); }
.dgl-head__sub { margin: 6px 0 0; max-width: 620px; font-size: 14px; line-height: 1.5; color: var(--rmx-muted); }
.dgl-head__actions { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.dgl-reset { margin: 0; }
.dgl-next--note { font-size: 13px; color: var(--rmx-muted); }
.dgl-note {
    margin: 0 0 16px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #fef3c7;
    color: #92400e;
    font-size: 14px;
}

.dgl-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.dgl-cards { display: grid; gap: 14px; }

.dgl-card { display: flex; flex-direction: column; padding: 18px; gap: 14px; }
.dgl-card--on { border-color: var(--rmx-accent); box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.15); }
.dgl-card__body { display: grid; gap: 6px; }
.dgl-card__kind { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--rmx-accent); }
.dgl-card__title { margin: 0; font-size: 17px; font-weight: 700; color: var(--rmx-ink); }
.dgl-card__blurb { margin: 0; font-size: 14px; line-height: 1.5; color: var(--rmx-muted); }
.dgl-card__facts { display: grid; gap: 4px; margin: 6px 0 0; font-size: 13.5px; }
.dgl-card__facts div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.dgl-card__facts dt { color: var(--rmx-faint); }
.dgl-card__facts dd { margin: 0; color: var(--rmx-text); }
.dgl-card__actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* The phone: a plain frame, as big as the window allows. The guest page is
   laid out at a real phone width (390px) and scaled to fit (demo_guest.js). */
.dgl-stage { position: sticky; top: calc(var(--dash-top, 0px) + 80px); display: grid; gap: 10px; }
.dgl-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 12px;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
}
.dgl-bar a { color: #fff; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.dgl-bar a:hover { text-decoration: underline; }
.dgl-bar__lang { display: inline-flex; align-items: center; gap: 6px; margin-inline-start: auto; }
.dgl-bar__lang select {
    font: inherit;
    font-weight: 600;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    padding: 4px 8px;
    max-width: 150px;
}
.dgl-bar__lang select option { color: #0f172a; }
.dgl-bar__full { flex: 0 0 auto; }
.dgl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.dgl-phone-wrap { display: flex; justify-content: center; }
.dgl-phone {
    position: relative;
    width: 414px;
    height: 880px;
    padding: 12px;
    border-radius: 48px;
    background: linear-gradient(145deg, #3a3d44, #121317 45%, #2a2c32);
    box-shadow: 0 0 0 1.5px #5b5f68, 0 30px 60px -28px rgba(0, 0, 0, 0.7), inset 0 0 0 2px #050506;
    transform-origin: top center;
    box-sizing: border-box;
}
.dgl-phone__screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: 38px; background: #fff; }
.dgl-phone__screen iframe { display: block; border: 0; width: 100%; height: 100%; }
.dgl-phone--empty .dgl-phone__screen { display: grid; place-items: center; padding: 32px; text-align: center; color: var(--rmx-faint); font-size: 14px; background: #f8fafc; }
.dgl-next { margin: 0; text-align: center; font-size: 13.5px; color: var(--rmx-muted); }
.dgl-next a { color: var(--rmx-accent); font-weight: 600; text-decoration: none; }
.dgl-next a:hover { text-decoration: underline; }

@media (max-width: 1100px) {
    .dgl-layout { grid-template-columns: minmax(0, 1fr); }
    .dgl--open .dgl-cards { order: 2; }
    .dgl--open .dgl-stage { order: 1; position: static; }
    .dgl-stage--empty { display: none; }
}
@media (max-width: 600px) {
    .dgl-head { flex-direction: column; }
    .dgl-head h2 { font-size: 22px; }
    .dgl-card__actions .rmx-btn { flex: 1 1 100%; justify-content: center; }
    .dgl-stage { display: none; } /* phones open the guest page full screen */
}

/* ── "Check-in done" page (inside the phone frame or full screen) ─── */
.dgd { margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 20px; box-sizing: border-box; background: #f8fafc; color: #333; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
.dgd-card { width: 100%; max-width: 420px; padding: 28px 22px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; box-sizing: border-box; }
.dgd-check { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #dcfce7; color: #15803d; margin-bottom: 12px; }
.dgd-tag { display: inline-block; margin: 0 0 10px 10px; padding: 3px 9px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: top; margin-top: 10px; }
.dgd h1 { margin: 0 0 10px; font-size: 22px; line-height: 1.25; color: #0f172a; }
.dgd p { margin: 0 0 10px; font-size: 15px; line-height: 1.55; }
.dgd-muted { color: #64748b; font-size: 13.5px; }
.dgd-actions { display: grid; gap: 8px; margin: 18px 0 14px; }
.dgd-btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 16px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: #0f172a; font-weight: 600; font-size: 15px; text-decoration: none; }
.dgd-btn--primary { background: #4f46e5; border-color: #4f46e5; color: #fff; }
.dgd-btn:hover { text-decoration: none; filter: brightness(0.97); }
.dgd-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; font-size: 13.5px; }
.dgd-links a { color: #4f46e5; text-decoration: none; }
.dgd-links a:hover { text-decoration: underline; }
