:root {
  --accent: #2f6b3b;
  --accent-ink: #fff;
  --bg: #f6f3ee;
  --card: #fff;
  --ink: #1d1b18;
  --muted: #6d675f;
  --line: #e6e0d6;
  --warn: #9a4b12;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(30, 25, 15, .06), 0 6px 24px rgba(30, 25, 15, .06);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #151412; --card: #1f1d1a; --ink: #f2efe9; --muted: #a8a197; --line: #34302b; --warn: #e0a06a; }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); min-height: 100vh; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
@media (prefers-color-scheme: dark) { a { color: color-mix(in srgb, var(--accent) 55%, #fff); } }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: 1.25rem; margin: 0 0 12px; }
h3 { font-size: 1.05rem; margin: 16px 0 8px; }

.demo { background: #fff4d6; color: #5a4300; font-size: 13px; padding: 8px 16px; text-align: center; }
.demo b { font-weight: 600; }

.hero { position: relative; color: #fff; background: var(--accent); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: saturate(1.05); }
.hero__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,.65)); }
.hero__inner { position: relative; max-width: 720px; margin: 0 auto; padding: 48px 16px 24px; }
.hero__logo { height: 44px; background: #fff; border-radius: 10px; padding: 4px 8px; }
.hero h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); margin: 12px 0 4px; }
.hero__tag { margin: 0 0 12px; opacity: .92; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; opacity: .9; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

.wrap { max-width: 720px; margin: 0 auto; padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding-bottom: 96px; }
.wrap > *, .rooms > * { min-width: 0; }
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }

.btn { appearance: none; border: 0; border-radius: 12px; padding: 12px 16px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; }
.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--primary:disabled { opacity: .5; cursor: default; }
.btn--light { background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.35); }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); }
.btn--block { width: 100%; }

.dates { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.dates::-webkit-scrollbar { display: none; }
.date { flex: 0 0 auto; scroll-snap-align: start; min-width: 64px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); text-align: center; font: inherit; cursor: pointer; }
.date small { display: block; color: var(--muted); font-size: 12px; }
.date b { display: block; font-size: 1.15rem; }
.date[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.date[aria-selected="true"] small { color: inherit; opacity: .85; }
.date--peak small::after { content: " •"; color: var(--warn); }
.date[aria-selected="true"].date--peak small::after { color: inherit; }

.row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; }
.field { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
.field--wide { margin-top: 12px; }
.field input, .field textarea { font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; width: 100%; }
.field input:focus, .field textarea:focus { outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); border-color: transparent; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.stepper button { width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.stepper output { min-width: 36px; text-align: center; font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.hint { font-size: 13px; color: var(--muted); margin: 12px 0 0; }

.rooms { display: grid; gap: 16px; }
.room { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.room--dim { opacity: .55; }
.room__photos { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 16 / 9; background: var(--line); scrollbar-width: none; }
.room__photos::-webkit-scrollbar { display: none; }
.room__photos img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.room__body { padding: 14px 16px 16px; }
.room__top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.room__name { font-family: Georgia, serif; font-size: 1.15rem; margin: 0; }
.room__price { white-space: nowrap; font-weight: 700; }
.room__price small { font-weight: 400; color: var(--muted); }
.room__cap { color: var(--muted); font-size: 14px; margin: 4px 0 8px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 12px; padding: 0; list-style: none; }
.tags li { font-size: 12px; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--ink); }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { border: 1px solid var(--accent); color: var(--accent); background: transparent; border-radius: 10px; padding: 8px 10px; font: inherit; font-weight: 600; cursor: pointer; min-width: 64px; }
@media (prefers-color-scheme: dark) { .slot { color: color-mix(in srgb, var(--accent) 50%, #fff); border-color: color-mix(in srgb, var(--accent) 60%, #fff); } }
.slot:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.slot small { display: block; font-weight: 400; font-size: 11px; opacity: .75; }
.empty { color: var(--muted); font-size: 14px; }

.list { margin: 0; padding-left: 18px; color: var(--ink); line-height: 1.5; }
.foot { text-align: center; color: var(--muted); font-size: 13px; }
.foot__made { opacity: .7; }

.sheet { border: 0; padding: 0; width: min(560px, 100%); max-height: 92vh; margin: auto auto 0; border-radius: 20px 20px 0 0; background: var(--card); color: var(--ink); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: rgba(0, 0, 0, .45); }
.sheet__inner { padding: 20px 16px calc(20px + env(safe-area-inset-bottom)); position: relative; }
.sheet__close { position: absolute; top: 10px; right: 12px; width: 40px; height: 40px; border: 0; background: transparent; font-size: 28px; color: var(--muted); cursor: pointer; }
.sheet__when { color: var(--muted); margin: -6px 0 12px; }
.toggle { padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 12px; }
.toggle label, .check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check { margin-top: 12px; }
.check input, .toggle input { width: 20px; height: 20px; accent-color: var(--accent); flex: none; margin: 0; }
.extras { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 12px; }
.extras summary { cursor: pointer; font-size: 14px; }
.extra { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; font-size: 14px; border-top: 1px solid var(--line); }
.extra:first-child { border-top: 0; margin-top: 8px; }
.extra .stepper button { width: 36px; height: 36px; }
.quote { background: color-mix(in srgb, var(--accent) 7%, var(--card)); border-radius: 12px; padding: 12px; font-size: 14px; }
.quote__row { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.quote__total { font-weight: 700; font-size: 1.1rem; border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.quote__row--info span:first-child { color: var(--muted); }
.quote__row--sep { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 8px; }
.toggle__title { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.toggle .check { margin-top: 8px; }
.check small { color: var(--muted); }
.my { display: grid; gap: 12px; }
.my__head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 10px; }
.my__head h2 { margin: 0; }
.pill { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--line); text-align: right; }
.pill--confirmed { background: #d8efd9; color: #1f5a28; }
.pill--declined, .pill--cancelled { background: #f6dcd8; color: #8a2a1e; }
.done .quote { text-align: left; margin: 12px 0; }
.quote__warn { color: var(--warn); margin-top: 6px; }
.error { color: #c0362c; font-size: 14px; min-height: 1em; margin: 12px 0; }
.done { text-align: center; }
.done__icon { width: 64px; height: 64px; margin: 8px auto; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #fff; font-size: 32px; }
.status { font-weight: 600; }

.fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 60px; height: 60px; border-radius: 50%; border: 0; background: var(--accent); color: #fff; font-size: 26px; box-shadow: 0 8px 24px rgba(0,0,0,.25); cursor: pointer; z-index: 10; }
.chat { position: fixed; z-index: 20; inset: auto 0 0 0; height: min(78vh, 640px); background: var(--card); border-radius: 20px 20px 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,.2); display: flex; flex-direction: column; }
@media (min-width: 640px) { .chat { inset: auto 16px 16px auto; width: 400px; border-radius: 20px; } }
.chat__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat__head small { display: block; color: var(--muted); }
.chat__head button { border: 0; background: transparent; font-size: 28px; color: var(--muted); cursor: pointer; width: 40px; height: 40px; }
.chat__log { flex: 1; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 10px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; white-space: pre-wrap; }
.msg--bot { background: color-mix(in srgb, var(--accent) 9%, var(--card)); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg--me { background: var(--accent); color: var(--accent-ink); align-self: flex-end; border-bottom-right-radius: 4px; }
.msg--typing { opacity: .6; }
.proposal { align-self: flex-start; border: 1px solid var(--accent); border-radius: 14px; padding: 10px 12px; font-size: 14px; max-width: 90%; }
.proposal .btn { margin-top: 8px; min-height: 38px; padding: 8px 12px; }
.chat__quick { display: flex; gap: 6px; flex-wrap: wrap; padding: 0 16px 8px; }
.chat__quick button { border: 1px solid var(--line); background: transparent; color: var(--ink); border-radius: 999px; padding: 6px 10px; font: inherit; font-size: 13px; cursor: pointer; }
.chat__form { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.chat__form input { flex: 1; font: inherit; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); min-width: 0; }
.chat__form .btn { width: 48px; padding: 0; }

.hero__rating { font: inherit; color: inherit; background: none; border: 0; padding: 0; text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.hero__rating:disabled { text-decoration: none; cursor: default; }
.review { border-top: 1px solid var(--line); padding: 10px 0; }
.review:first-child { border-top: 0; padding-top: 0; }
.review__head { display: flex; justify-content: space-between; gap: 8px; font-size: 14px; }
.review__head span { color: #e0a43a; white-space: nowrap; }
.review__head small { color: var(--muted); }
.review p { margin: 6px 0 0; font-size: 14px; white-space: pre-line; }
#reviewsTop .review p { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.reviews__score { font-size: 1.1rem; margin: -4px 0 12px; }

.faq { border-top: 1px solid var(--line); padding: 10px 0; }
.faq:first-child { border-top: 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 6px 0 0; color: var(--muted); }

.step__title { font-size: 14px; font-weight: 600; color: var(--muted); margin: 18px 0 8px; }
.step__title:first-of-type { margin-top: 4px; }
.slots__room { margin-top: 12px; }
.slots__room:first-child { margin-top: 0; }
.slots__name { display: flex; justify-content: space-between; gap: 8px; font-weight: 600; margin-bottom: 6px; }
.slots__name small { color: var(--muted); font-weight: 400; }
.slot[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

.gallery { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.gallery__track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; aspect-ratio: 4 / 3; scrollbar-width: none; }
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: center; cursor: zoom-in; }
.gallery__count { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 999px; }
.gallery__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 24px; cursor: pointer; display: none; }
.gallery__nav--prev { left: 10px; } .gallery__nav--next { right: 10px; }
@media (hover: hover) { .gallery__nav { display: block; } }

.viewer { border: 0; padding: 0; margin: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #000; }
.viewer::backdrop { background: #000; }
.viewer__track { display: flex; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.viewer__track::-webkit-scrollbar { display: none; }
.viewer__track img { flex: 0 0 100%; width: 100%; height: 100%; object-fit: contain; scroll-snap-align: center; }
.viewer__close { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; font-size: 28px; cursor: pointer; }

.review__photos { display: flex; gap: 6px; margin-top: 8px; overflow-x: auto; }
.review__photos img { width: 72px; height: 72px; object-fit: cover; border-radius: 8px; cursor: zoom-in; flex: none; }

.bar { position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(0,0,0,.12); display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.bar__info { display: grid; min-width: 0; }
.bar__info small { color: var(--muted); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__info b { font-size: 1.2rem; }
.bar .btn { flex: none; }
@media (min-width: 760px) { .bar { left: 50%; right: auto; width: 720px; transform: translateX(-50%); border-radius: 16px 16px 0 0; } }

.viewer__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 30px; cursor: pointer; }
.viewer__nav--prev { left: 12px; } .viewer__nav--next { right: 12px; }
.viewer .gallery__count { bottom: calc(16px + env(safe-area-inset-bottom)); right: 50%; transform: translateX(50%); }
@keyframes slotsHint { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 30% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 45%, transparent); } }
.slots--hint .slot { animation: slotsHint 1.2s ease 2; }
