:root {
  --fg: #1c2b23;
  --bg: #fbf9f4;
  --accent: #2f6f4f;
  --accent-dark: #234f38;
  --card: #ffffff;
  --border: #e3ddd0;
  --muted: #6b6255;
  --radius: 18px;
  --serif: Georgia, "Palatino Linotype", Palatino, serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--fg);
  line-height: 1.55;
}

/* Full-page background photo (landing page only, via body.landing-page) —
   fixed and covering the entire scrollable page depth, not just the first
   viewport. Sections that sit on top go semi-transparent so the photo reads
   through the whole page, with a solid card for the form itself for legibility. */
body.landing-page {
  background-image: linear-gradient(180deg, rgba(20, 26, 22, .25), rgba(15, 20, 17, .55) 45%, rgba(15, 20, 17, .88)), url("/static/images/hero.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  min-height: 100vh;
  min-height: 100dvh;
}
@media (max-width: 600px) {
  body.landing-page { background-attachment: scroll; }
}

.wrap {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 0 64px;
}

a { color: var(--accent); }

/* ---------- Landing: hero text over the full-page body background ---------- */
.cover-hero {
  position: relative;
  min-height: 70vh;
  min-height: 70dvh;
  display: flex;
  align-items: flex-end;
  padding: 32px 20px 40px;
  color: #fdf9ee;
}
.cover-hero-inner { width: 100%; max-width: 600px; margin: 0 auto; }
.cover-hero .kicker {
  display: block;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 600;
  color: #d7e6db;
  margin-bottom: 10px;
}
.cover-hero h1 {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.2;
  margin: 0 0 14px;
  color: #fff;
}
.cover-hero .lead {
  color: #ecece2;
  font-size: 1.02rem;
  margin: 0;
  max-width: 46ch;
}

/* ---------- Small hero (booking page banner) ---------- */
.hero.small {
  position: relative;
  padding: 26px 20px 24px;
  text-align: left;
  background-image: linear-gradient(180deg, rgba(20, 26, 22, .2), rgba(15, 20, 17, .72)), url("/static/images/hero.jpg");
  background-size: cover;
  background-position: center 65%;
  color: #fff;
}
.hero.small .wrap-inner { max-width: 600px; margin: 0 auto; }
.hero.small h1 {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin: 0 0 4px;
  color: #fff;
}
.hero.small .lead { color: #e9e9df; margin: 0; font-size: .95rem; }
.hero.small h1 a { color: inherit; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.4); }
.hero.small h1 a:hover { border-bottom-color: #fff; }

.content-pad { padding: 0 16px; }
.content-pad.landing { padding: 24px 20px 8px; }

.brand {
  text-align: center;
  padding: 18px 8px 0;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .02em;
  color: var(--accent-dark);
}

h1 { font-size: 1.6rem; margin: 8px 0; color: var(--accent-dark); }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  margin: 20px 0;
  box-shadow: 0 4px 16px rgba(28, 43, 34, 0.06);
}

h2 { margin-top: 0; font-size: 1.15rem; color: var(--accent-dark); }
h3 { font-size: 1rem; color: var(--accent); margin: 18px 0 8px; }

.lookup-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lookup-form label {
  font-weight: 600;
  margin-top: 12px;
  font-size: .95rem;
}

input, textarea {
  width: 100%;
  padding: 14px;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fffefb;
  color: var(--fg);
  font-family: inherit;
}
textarea { min-height: 100px; resize: vertical; }

.btn {
  display: inline-block;
  padding: 15px 22px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  min-height: 50px;
}
.btn-primary { background: var(--accent); color: #fff; margin-top: 16px; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary {
  background: #eef3ee;
  color: var(--accent-dark);
  border: 1px solid var(--border);
  font-size: .9rem;
  padding: 10px 16px;
  min-height: 42px;
}
.btn-secondary:hover { background: #e3ede5; }

.hint {
  text-align: center;
  color: var(--muted);
  font-size: .9rem;
  padding: 4px 20px 0;
}

/* ---------- Dev preview badge ---------- */
.dev-preview {
  display: block;
  text-align: center;
  margin: 28px auto 0;
  max-width: 320px;
}
.dev-preview a {
  display: inline-block;
  padding: 8px 16px;
  border: 1px dashed #9a8f7d;
  border-radius: 999px;
  color: #6b5f4d;
  background: #f4efe4;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
}
.dev-preview a:hover { background: #ece4d2; }

.summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 16px;
  margin: 0;
}
.summary dt { color: var(--muted); font-weight: 600; }
.summary dd { margin: 0; }
.mono { font-family: ui-monospace, monospace; }

.badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 999px;
  background: #eef3ee;
  color: var(--accent-dark);
  font-size: .85rem;
  font-weight: 600;
}

.general-info {
  white-space: pre-wrap;
  background: var(--bg);
  border-radius: 12px;
  padding: 14px;
  margin-top: 14px;
  border: 1px solid var(--border);
}

.muted { color: var(--muted); }
.small-note { font-size: .85rem; margin-top: -8px; }

.option-list { list-style: none; padding: 0; margin: 0; }
.option-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.option-item:last-child { border-bottom: none; }
.option-item.purchased { color: var(--accent-dark); }
.option-name { font-weight: 600; flex: 1 1 auto; }
.option-price { color: var(--muted); font-size: .9rem; }
.inline-form { flex: 0 0 auto; }

.messages {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}
.message {
  border-radius: 14px;
  padding: 12px 16px;
  max-width: 90%;
}
.message-guest {
  background: #eaf2ec;
  align-self: flex-end;
  margin-left: auto;
}
.message-concierge {
  background: #f4efe4;
  align-self: flex-start;
}
.message-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .75rem;
  color: var(--muted);
  margin-bottom: 4px;
}
.message-body { white-space: pre-wrap; }

.message-form { display: flex; flex-direction: column; gap: 10px; }

.error-card { text-align: center; }
.error-card h1 { margin-top: 8px; }

/* ---------- Desktop scale-up ---------- */
@media (min-width: 900px) {
  .wrap { max-width: 760px; }
  .cover-hero { min-height: 60vh; padding: 48px 40px 56px; }
  .cover-hero h1 { font-size: 2.6rem; }
  .cover-hero .lead { font-size: 1.1rem; }
  .content-pad.landing { padding: 32px 0 8px; }
  .hero.small { padding: 36px 40px; }
  .hero.small h1 { font-size: 1.9rem; }
  .card { padding: 28px 32px; }
}

@media (min-width: 1400px) {
  .wrap { max-width: 900px; }
  .cover-hero { min-height: 56vh; }
  .cover-hero h1 { font-size: 3.1rem; }
  .cover-hero .lead { font-size: 1.2rem; }
}
