/* Rift Stay — a property's booking site and guest pages. Quiet and calm: DM Serif Display for headings,
   Inter for text, warm paper tones, the property's accent in --accent. */
:root {
  --paper: #f7f5f0; --card: #ffffff; --sand: #eee9df; --ink: #1d2320; --ink-2: #3f4944; --muted: #6b746f; --line: #e4ded2; --line-2: #d3ccbf;
  --accent: #2f5d62; --good: #166534; --good-bg: #ecfdf3; --bad: #b91c1c; --bad-bg: #fef2f2; --warn: #92400e; --warn-bg: #fffbeb;
  --serif: "DM Serif Display", Georgia, serif; --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --r: 16px; --r-sm: 10px; --shadow: 0 1px 2px rgba(29,35,32,.05), 0 8px 24px rgba(29,35,32,.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--sans); color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; margin: 0 0 .45em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); } .small { font-size: .9rem; }
.eyebrow { font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 12px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent); color: #fff; font-weight: 650; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { filter: brightness(1.1); }
.btn.ghost { background: transparent; color: var(--accent); }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); filter: none; }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.danger { background: transparent; color: var(--bad); border-color: #f1c4c4; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.head { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.head .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-family: var(--serif); font-size: 1.45rem; }
.brand img { height: 40px; }
.head nav { margin-left: auto; display: flex; gap: 18px; align-items: center; }
.head nav a { text-decoration: none; color: var(--ink-2); font-weight: 550; }
.head nav a.btn { color: #fff; min-height: 40px; padding: 0 18px; }

.hero { position: relative; color: #fff; background: #1d2320; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; }
.hero-bg.art { background: radial-gradient(ellipse at 20% 120%, color-mix(in srgb, var(--accent) 80%, #9ae6b4) 0%, transparent 55%), radial-gradient(ellipse at 90% -10%, #3b4a44 0%, transparent 55%), linear-gradient(160deg, #1d2320, #101412); }
.hero-bg.art::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 78% 34%, rgba(255,236,190,.22) 0 2px, transparent 3px) 0 0 / 90px 90px, radial-gradient(circle at 30% 70%, rgba(255,236,190,.15) 0 1px, transparent 2px) 0 0 / 60px 60px; opacity: .6; }
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,12,11,.7), rgba(10,12,11,.1) 70%); }
.hero .wrap { position: relative; z-index: 1; padding: 110px 24px 40px; }
.hero p.lede { font-size: 1.2rem; max-width: 46ch; color: rgba(255,255,255,.86); }
.search { position: relative; z-index: 2; background: var(--card); color: var(--ink); border-radius: var(--r); box-shadow: 0 20px 50px rgba(0,0,0,.25); padding: 18px; display: grid; grid-template-columns: 1fr 1fr 110px 110px auto; gap: 12px; align-items: end; margin-top: 30px; }
.field { display: block; }
.field > span { display: block; font-size: .76rem; font-weight: 700; letter-spacing: .04em; color: var(--ink-2); margin-bottom: 5px; }
.input { width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; }
.input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
textarea.input { min-height: 80px; resize: vertical; }

.section { padding: 70px 0; }
.section.alt { background: var(--sand); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.about p { font-size: 1.1rem; color: var(--ink-2); white-space: pre-line; }
.rooms { display: grid; gap: 18px; }
.room { display: grid; grid-template-columns: 260px minmax(0, 1fr) 230px; gap: 22px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.room .pic { background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); min-height: 200px; background-size: cover; background-position: center; position: relative; }
.room .pic span { position: absolute; left: 14px; bottom: 12px; color: #fff; font-family: var(--serif); font-size: 1.3rem; text-shadow: 0 1px 8px rgba(0,0,0,.3); }
.room .body { padding: 22px 0; }
.room .body h3 { margin-bottom: 4px; }
.facts { color: var(--muted); font-size: .9rem; margin-bottom: 10px; }
.ams { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.am { font-size: .76rem; font-weight: 600; background: var(--sand); color: var(--ink-2); padding: 3px 10px; border-radius: 999px; }
.room .price { padding: 22px 22px 22px 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-end; text-align: right; gap: 4px; }
.room .price b { font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1; }
.room .price small { color: var(--muted); }
.left { font-size: .8rem; font-weight: 700; color: var(--warn); }
.sold { font-weight: 700; color: var(--muted); }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 26px; margin-bottom: 18px; }
.note { border-radius: var(--r-sm); padding: 12px 16px; margin-bottom: 16px; font-weight: 550; }
.note.ok { background: var(--good-bg); color: #14532d; } .note.bad { background: var(--bad-bg); color: #7f1d1d; } .note.warn { background: var(--warn-bg); color: #78350f; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid2 .field, .card .field { margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.kv:last-child { border-bottom: 0; }
.kv.total { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; margin-top: 4px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; margin: 10px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; }

.stay { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; padding: 34px 24px 70px; max-width: 1080px; margin: 0 auto; }
.status-pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; background: var(--sand); }
.status-pill.checked_in { background: var(--good-bg); color: var(--good); } .status-pill.cancelled, .status-pill.no_show { background: var(--bad-bg); color: var(--bad); }
.key { text-align: center; background: var(--ink); color: #fff; border-radius: var(--r); padding: 28px 20px; margin-bottom: 18px; }
.key .room-no { font-family: var(--serif); font-size: 4.4rem; line-height: 1; }
.key .code { font-size: 2.2rem; font-weight: 800; letter-spacing: .3em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.key small { display: block; color: rgba(255,255,255,.7); letter-spacing: .12em; text-transform: uppercase; font-size: .72rem; font-weight: 700; margin-top: 14px; }
.sig { position: relative; background: #fff; border: 1px dashed var(--line-2); border-radius: var(--r-sm); height: 170px; touch-action: none; margin-bottom: 8px; }
.sig canvas { width: 100%; height: 100%; display: block; }
.sig span { position: absolute; left: 14px; bottom: 10px; color: #a8a29e; font-size: .85rem; pointer-events: none; }
.steps { display: flex; gap: 8px; margin: 14px 0 0; flex-wrap: wrap; }
.steps span { font-size: .8rem; font-weight: 650; padding: 4px 10px; border-radius: 999px; background: var(--sand); color: var(--muted); }
.steps span.done { background: var(--good-bg); color: var(--good); }
.foot { background: #1d2320; color: rgba(255,255,255,.72); padding: 40px 0; font-size: .92rem; }
.foot .wrap { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.foot b { color: #fff; font-family: var(--serif); font-weight: 400; font-size: 1.3rem; }
.foot a { color: #fff; }
.pre { white-space: pre-line; }

@media (max-width: 900px) {
  .search { grid-template-columns: 1fr 1fr; }
  .search .btn { grid-column: 1 / -1; }
  .room { grid-template-columns: 1fr; }
  .room .body { padding: 0 20px; }
  .room .price { padding: 0 20px 20px; align-items: stretch; text-align: left; }
  .split, .stay, .grid2 { grid-template-columns: 1fr; }
  .head nav a.hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
