/* Guest app — mobile-first. --accent is set per hotel. */
[hidden] { display: none !important; }
:root {
  --accent: #1f6f5c;
  --accent-ink: #fff;
  --bg: #f6f4ef;
  --card: #ffffff;
  --ink: #1c2321;
  --muted: #66706c;
  --line: #e4e0d7;
  --open: #1d8a4e;
  --closed: #b04a3a;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  --tabbar-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #121614; --card: #1c2220; --ink: #eef1ef; --muted: #9aa5a0; --line: #2c3431; --shadow: none; color-scheme: dark; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-tap-highlight-color: transparent; }
body { padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
img, video { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h2 { font-size: 1.15rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.splash { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.page { max-width: 640px; margin: 0 auto; padding: 0 16px 24px; }
.section { margin-top: 26px; }
.section > h2 { margin-bottom: 10px; display: flex; justify-content: space-between; align-items: baseline; }
.section > h2 a, .linkbtn { font-size: .85rem; font-weight: 500; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 300px; color: #fff; display: flex; align-items: flex-end; overflow: hidden;
  background: linear-gradient(160deg, var(--accent), #0f2f28); padding-top: env(safe-area-inset-top, 0px); }
.hero > img, .hero > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.05) 30%, rgba(0,0,0,.65)); }
.hero-inner { position: relative; z-index: 1; padding: 22px 16px; max-width: 640px; margin: 0 auto; width: 100%; }
.hero .logo { height: 44px; width: auto; margin-bottom: 10px; }
.hero h1 { font-size: 1.75rem; letter-spacing: -.01em; }
.hero p { margin: 6px 0 0; opacity: .92; }
.hero .stay { margin-top: 14px; display: inline-flex; gap: 10px; flex-wrap: wrap; background: rgba(255,255,255,.16); backdrop-filter: blur(6px);
  border-radius: 999px; padding: 6px 14px; font-size: .9rem; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; border: 1px solid var(--line); }
.welcome { margin-top: -18px; position: relative; z-index: 2; }

.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.tile .k { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.tile .v { font-weight: 600; margin-top: 2px; word-break: break-word; }

.actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.action { display: flex; gap: 10px; align-items: center; padding: 14px; border-radius: 14px; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 600; cursor: pointer; text-align: left; }
.action.alt { background: var(--card); color: var(--ink); border: 1px solid var(--line); }
.action .ai { font-size: 1.3rem; }

/* ---------- open-now list ---------- */
.openlist { display: grid; gap: 8px; }
.openrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; width: 100%; text-align: left; }
.openrow .ic { font-size: 1.4rem; width: 32px; text-align: center; }
.openrow .nm { font-weight: 600; flex: 1; min-width: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.open { color: var(--open); }
.badge.closed { color: var(--closed); }

/* ---------- carousels ---------- */
.hscroll { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 8px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.hscroll > * { scroll-snap-align: start; flex: 0 0 auto; }
.promo { width: 78%; max-width: 340px; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: pointer; text-align: left; padding: 0; }
.promo .pm { aspect-ratio: 16/9; background: linear-gradient(135deg, var(--accent), #c7a15a); position: relative; }
.promo .pm img, .promo .pm video { width: 100%; height: 100%; object-fit: cover; }
.promo .pb { padding: 12px 14px; }
.promo .price { font-weight: 700; color: var(--accent); }
.chip { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px; background: #f2d27a; color: #3a2c00; }
.pm .chip { position: absolute; top: 10px; left: 10px; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--line); border: 0; padding: 0; cursor: pointer; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 1.6rem; text-shadow: 0 2px 8px rgba(0,0,0,.6); pointer-events: none; }

.media-strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: var(--radius); scrollbar-width: none; }
.media-strip::-webkit-scrollbar { display: none; }
.media-strip > * { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden; background: #000; }
.media-strip img, .media-strip video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- explore ---------- */
.tabs { position: sticky; top: 0; z-index: 5; background: var(--bg); padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; margin: 0 -16px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 999px; cursor: pointer; font-weight: 500; white-space: nowrap; }
.tabs button.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dept-head { display: flex; gap: 12px; align-items: center; margin: 18px 0 12px; }
.dept-head .ic { font-size: 2rem; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: 7px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours td:last-child { text-align: right; }
.hours tr.today td { font-weight: 700; color: var(--accent); }
.facts { display: grid; gap: 8px; margin-top: 12px; }
.fact { display: flex; gap: 10px; }
.fact .fk { color: var(--muted); min-width: 74px; }
.prose { white-space: pre-line; }

/* ---------- offers ---------- */
.seg { display: flex; background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 4px; margin: 16px 0; }
.seg button { flex: 1; border: 0; background: none; padding: 9px; border-radius: 999px; cursor: pointer; font-weight: 600; color: var(--muted); position: relative; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.seg .dot { position: absolute; top: 8px; right: 14px; }
.offer { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px; margin-bottom: 10px; cursor: pointer; text-align: left; width: 100%; }
.offer .om { width: 96px; height: 96px; border-radius: 12px; overflow: hidden; background: linear-gradient(135deg, var(--accent), #c7a15a); display: grid; place-items: center; color: #fff; font-size: 1.8rem; }
.offer .om img, .offer .om video { width: 100%; height: 100%; object-fit: cover; }
.offer h3 { font-size: 1rem; }
.offer .price { font-weight: 700; color: var(--accent); margin-top: 4px; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--tabbar-h) - env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; }
.chat-top { padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 0; }
.chat-top .seg { margin: 8px 0; }
.msgs { flex: 1; overflow-y: auto; padding: 8px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 82%; padding: 10px 13px; border-radius: 18px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.4; }
.bubble.me { align-self: flex-end; background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .who { font-size: .72rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.bubble .tm { font-size: .7rem; opacity: .65; margin-top: 3px; text-align: right; }
.sysmsg { align-self: center; font-size: .8rem; color: var(--muted); background: var(--card); border: 1px dashed var(--line); padding: 6px 12px; border-radius: 999px; text-align: center; max-width: 90%; }
.typing { align-self: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; display: flex; gap: 4px; }
.typing i { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 8px; scrollbar-width: none; }
.suggest button { flex: 0 0 auto; border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 7px 12px; font-size: .85rem; cursor: pointer; }
.composer { display: flex; gap: 8px; padding: 8px 12px 10px; border-top: 1px solid var(--line); background: var(--bg); }
.composer textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 20px; padding: 10px 14px; font: inherit; background: var(--card); color: var(--ink); max-height: 120px; }
.composer button { border: 0; background: var(--accent); color: var(--accent-ink); border-radius: 50%; width: 44px; height: 44px; font-size: 1.1rem; cursor: pointer; flex: 0 0 auto; align-self: flex-end; }
.composer button:disabled { opacity: .5; }
.empty-chat { text-align: center; color: var(--muted); margin: auto; padding: 24px; }
.empty-chat .big { font-size: 2.4rem; }

/* ---------- requests ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.svc { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: left; cursor: pointer; box-shadow: var(--shadow); }
.svc .si { font-size: 1.6rem; }
.svc .sn { font-weight: 600; margin-top: 6px; }
.req { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 12px 14px; margin-bottom: 8px; }
.pill { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pill.new { background: #fdf0c8; color: #6b4e00; }
.pill.accepted { background: #d9f2e3; color: #11643a; }
.pill.done { background: #e3e7e5; color: #3f4a46; }
.pill.declined, .pill.cancelled { background: #f6dcd7; color: #8a2a1b; }

/* ---------- forms + sheet ---------- */
label.f { display: block; margin-bottom: 12px; font-size: .9rem; font-weight: 600; }
label.f input, label.f textarea, label.f select { display: block; width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-weight: 400; background: var(--card); color: var(--ink); }
label.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin-bottom: 12px; }
label.check input { margin-top: 3px; width: 18px; height: 18px; }
.btn { display: block; width: 100%; border: 0; border-radius: 14px; padding: 14px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 1rem; cursor: pointer; text-align: center; text-decoration: none; }
.btn.ghost { background: none; color: var(--accent); border: 1px solid var(--line); margin-top: 8px; }
.btn:disabled { opacity: .55; }
.err { color: var(--closed); font-size: .9rem; margin: 8px 0; }

.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); animation: fade .2s; }
.sheet-panel { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 22px 22px 0 0;
  padding: 22px 16px calc(20px + env(safe-area-inset-bottom, 0px)); max-width: 640px; margin: 0 auto; animation: up .25s ease-out; }
.sheet-x { position: absolute; top: 10px; right: 12px; border: 0; background: var(--card); border-radius: 50%; width: 34px; height: 34px; font-size: 1.3rem; cursor: pointer; z-index: 2; }
.sheet-panel h2 { margin: 0 40px 12px 0; font-size: 1.3rem; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

.viewer { position: fixed; inset: 0; z-index: 60; background: #000; display: grid; place-items: center; }
.viewer img, .viewer video { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.viewer .vx { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); right: 12px; background: rgba(255,255,255,.15); color: #fff; border: 0; border-radius: 50%; width: 40px; height: 40px; font-size: 1.4rem; cursor: pointer; }
.viewer .cap { position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 16px; right: 16px; color: #fff; text-align: center; }

.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom, 0px)); background: #1c2321; color: #fff;
  padding: 10px 16px; border-radius: 999px; font-size: .9rem; z-index: 70; max-width: calc(100% - 32px); text-align: center; box-shadow: 0 6px 20px rgba(0,0,0,.25); }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: var(--card); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom, 0px); height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px)); }
.tabbar button { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .7rem; color: var(--muted); cursor: pointer; position: relative; }
.tabbar .ti { font-size: 1.3rem; line-height: 1; }
.tabbar button.on { color: var(--accent); font-weight: 700; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #e0452f; display: inline-block; }
.tabbar .dot { position: absolute; top: 9px; left: calc(50% + 8px); }

.faq summary { cursor: pointer; font-weight: 600; padding: 12px 0; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details p { margin: 0 0 12px; color: var(--muted); }

.place { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 14px; margin-bottom: 8px; }
.notice { text-align: center; padding: 60px 24px; }
.notice .big { font-size: 3rem; }
.stars { display: flex; gap: 6px; justify-content: center; margin: 12px 0 16px; }
.stars button { border: 0; background: none; font-size: 2.3rem; cursor: pointer; color: var(--line); padding: 0; }
.stars button.on { color: #e4a915; }
.emergency { background: #fbe9e6; color: #7a2214; border: 1px solid #f1c6bd; border-radius: 14px; padding: 12px 14px; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .emergency { background: #3a1f1a; color: #f3c5bb; border-color: #5a2d25; } }
@media (min-width: 700px) { .promo { width: 300px; } .hero { min-height: 360px; } }
