/* Running Duck Ranch — modern, calm, earthy. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --ink: #26241f;
  --muted: #6f6a60;
  --line: #e6e1d7;
  --green: #2f4a34;
  --green-dark: #24392a;
  --accent: #c9822d;
  --accent-soft: #f6ead9;
  --ok: #2e7d43;
  --warn: #a05a12;
  --err: #a3382e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(38,36,31,.06), 0 8px 24px rgba(38,36,31,.07);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
}
a { color: var(--green); }
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); }
h2 { font-size: 1.35rem; margin-top: 2.2rem; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }
.section { padding: 2.5rem 1.25rem 3rem; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

/* top bar */
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.06rem; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.brand em { font-style: normal; color: var(--accent); }
.brand-mark { width: 30px; height: 30px; }
.nav a { margin-left: 1.4rem; color: var(--muted); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { color: var(--ink); }

/* hero */
.hero {
  position: relative;
  padding: 5rem 0 4.5rem;
  background:
    linear-gradient(180deg, rgba(30,28,24,.72) 0%, rgba(30,28,24,.60) 55%, rgba(30,28,24,.82) 100%),
    url("/static/img/hero.jpg") center/cover no-repeat;
  color: #f6f3ec;
}
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: #f0c98f; margin: 0 0 .6rem; }
.hero h1 { margin: 0 0 1rem; color: #fff; text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.lede { max-width: 640px; color: #e8e3d8; font-size: 1.08rem; margin-bottom: 1.6rem; }
.hero .btn-primary { background: var(--accent); border-color: var(--accent); }
.hero .btn-primary:hover { filter: brightness(.95); background: var(--accent); }

/* hover/focus tooltip ("?" icon) */
.tip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 1.15em; height: 1.15em; margin-left: .35em; vertical-align: middle;
  border-radius: 50%; background: var(--green); color: #fff;
  font-size: .72em; font-weight: 700; cursor: help; position: relative; user-select: none;
}
.tip .tip-body {
  position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
  width: 260px; max-width: 78vw; background: #26241f; color: #f3efe6;
  font-size: .8rem; font-weight: 400; line-height: 1.45; text-align: left;
  padding: .7rem .8rem; border-radius: 10px; box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transition: opacity .12s; z-index: 30; pointer-events: none;
}
.tip .tip-body::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #26241f;
}
.tip:hover .tip-body, .tip:focus .tip-body, .tip:focus-within .tip-body { opacity: 1; visibility: visible; }

/* booking-page gallery */
.gallery { display: flex; gap: .6rem; margin: 1rem 0 0; flex-wrap: wrap; }
.gallery img { width: 130px; height: 96px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }

/* important-use notice callout */
.notice {
  background: var(--accent-soft); border: 1px solid #e4cfa8; border-radius: 10px;
  padding: .7rem .9rem; margin: 1rem 0 0; color: #7a5312; font-size: .92rem; line-height: 1.45;
}
.notice.small { font-size: .82rem; padding: .5rem .7rem; margin-top: .6rem; }

/* final checkout confirmation modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center;
  background: rgba(30,28,24,.55); padding: 1rem; }
.modal-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; padding: 1.4rem 1.5rem; }
.modal-card h2 { margin: 0 0 .8rem; }
.confirm-summary { margin-bottom: 1rem; }
.confirm-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.modal-warn { background: var(--accent-soft); border: 1px solid #e4cfa8; border-radius: 10px; padding: .8rem .9rem; margin: .8rem 0; font-size: .88rem; color: #6d4c16; }
.modal-warn .warn-title { display: block; margin-bottom: .3rem; font-weight: 700; color: #5a3e12; }
.modal-warn strong { color: #5a3e12; }
.modal-warn p { margin: 0; line-height: 1.45; }
.modal-warn ul { margin: 0; padding-left: 1.1rem; }
.modal-warn li { margin: .2rem 0; }
.modal-actions { display: flex; gap: .7rem; justify-content: flex-end; margin-top: 1.1rem; }
.contract-box { margin: .9rem 0; }
.contract-scroll { max-height: 240px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px;
  padding: .8rem 1rem; background: var(--bg); font-size: .82rem; }
.contract-text h3 { font-size: .9rem; margin: .9rem 0 .3rem; }
.contract-text p, .contract-text ul { margin: 0 0 .5rem; line-height: 1.5; }
.contract-text ul { padding-left: 1.1rem; }
.contract-meta { color: var(--muted); font-size: .78rem; }
.sign-field { margin: .9rem 0 .6rem; }
.sign-field input { font-family: "Segoe Script", "Bradley Hand", cursive; font-size: 1.15rem; }
.contract-page .contract-text { font-size: .95rem; }
.contract-page .contract-text h3 { font-size: 1.05rem; }

/* return policy + acknowledgment */
.policy { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; }
.policy ul { margin: 0 0 .8rem; padding-left: 1.1rem; color: var(--ink); font-size: .92rem; }
.policy li { margin-bottom: .4rem; }
.opt.ack { border-color: var(--accent); background: var(--accent-soft); }

/* contact form */
.contact-form { display: flex; flex-direction: column; gap: .9rem; margin-top: 1.2rem; max-width: 520px; }
.contact-form textarea { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font-size: 1rem; font-family: inherit; background: var(--surface); resize: vertical; }
.contact-form textarea:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.contact-form .btn { align-self: flex-start; }

/* buttons */
.btn { display: inline-block; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  padding: .6rem 1.15rem; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none;
  cursor: pointer; transition: background .15s, transform .05s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); }
.btn-book { background: var(--accent); border-color: var(--accent); color: #fff; font-size: 1.02rem; }
.btn-book:hover { filter: brightness(.94); }
.btn-block { display: block; width: 100%; text-align: center; margin-top: .7rem; }
.btn-small { padding: .25rem .7rem; font-size: .8rem; }
.btn[disabled] { opacity: .55; cursor: wait; }

/* cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.4rem; margin-top: 1.4rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.card-img img { width: 100%; height: 300px; object-fit: cover; object-position: center; display: block; background: #ece7dc; }
.card-body { padding: 1.1rem 1.2rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.card-body h3 { margin: 0; font-size: 1.12rem; }
.card-body h3 a { color: var(--ink); text-decoration: none; }
.card-body p { margin: 0; color: var(--muted); font-size: .95rem; }
.card-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: .8rem; }
.price strong { font-size: 1.3rem; }
.price span { color: var(--muted); }
.price em { font-style: normal; color: var(--muted); font-size: .88rem; }
.price.big strong { font-size: 1.6rem; }
.specs { margin: .3rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; }
.specs li::before { content: "•"; color: var(--accent); margin-right: .45rem; }
.specs.cols { columns: 2; gap: 2rem; margin: 1rem 0 0; }
.addon-list summary { cursor: pointer; color: var(--green); font-size: .9rem; font-weight: 600; }
.addon-list ul { list-style: none; margin: .5rem 0 0; padding: 0; font-size: .9rem; }
.addon-list li { display: flex; justify-content: space-between; padding: .18rem 0; border-bottom: 1px dashed var(--line); }
.addon-rate { color: var(--muted); }

/* band */
.band { background: var(--green); color: #eef1ea; padding: 3rem 0; margin-top: 2rem; }
.band h2 { color: #fff; margin-top: 0; }
.band a { color: #f0c98f; }
.band .muted { color: #b9c4b4; }
.band-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; }
.steps { padding-left: 1.2rem; }
.steps li { margin-bottom: .55rem; }

/* booking page */
.crumb { margin: 0 0 .6rem; }
.crumb a { text-decoration: none; color: var(--muted); }
.book-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2.4rem; align-items: start; }
.book-head { display: grid; grid-template-columns: 260px 1fr; gap: 1.4rem; align-items: center; }
.book-img { width: 100%; border-radius: var(--radius); border: 1px solid var(--line); background: #ece7dc; }
.book-head h1 { margin: 0 0 .4rem; }
.book-head p { color: var(--muted); margin: 0 0 .6rem; }

.opt-list { display: flex; flex-direction: column; gap: .5rem; }
.opt { display: flex; align-items: center; gap: .7rem; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: .65rem .9rem; cursor: pointer; }
.opt:has(input:checked) { border-color: var(--green); box-shadow: 0 0 0 1px var(--green); }
.opt-name { flex: 1; font-weight: 550; }
.opt-name small { display: block; color: var(--muted); font-weight: 400; }
.opt-rate { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.opt-rate.free { color: var(--ok); font-weight: 700; }
.opt.disabled { opacity: .55; }
.opt.disabled .opt-rate { text-decoration: line-through; }
.opt-unavail { display: block; color: var(--err); font-weight: 600; margin-top: .1rem; }
.opt-included { display: block; color: var(--ok); font-weight: 600; margin-top: .1rem; }
.opt-rate.removed { color: var(--ok); font-weight: 700; }
.opt.active { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok); }
.waiver-removed { margin-top: .6rem; background: #e7f2e9; border: 1px solid #bcd8c2; border-radius: 10px;
  padding: .7rem .9rem; font-size: .9rem; color: #245c33; line-height: 1.45; }
.waiver-removed strong { color: #1c4a29; }
.opt-rate s { color: var(--muted); }
.opt-rate .bundled { color: var(--ok); }
.opt-rate em { font-style: normal; color: var(--ok); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.save-tag { display: inline-block; vertical-align: middle; margin-left: .5rem; background: var(--ok); color: #fff; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 999px; }

.field { display: flex; flex-direction: column; gap: .3rem; font-weight: 600; font-size: .9rem; }
.field input { border: 1px solid var(--line); border-radius: 8px; padding: .6rem .7rem; font-size: 1rem; font-family: inherit; background: var(--surface); }
.field input:focus { outline: 2px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; }
.field-grid .span2 { grid-column: span 2; }
#address-row { margin-top: .8rem; }

/* calendar */
.calendar-row { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .8rem; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem; width: 292px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; font-weight: 700; margin-bottom: .5rem; }
.cal-nav { border: none; background: none; font-size: 1.1rem; cursor: pointer; color: var(--green); padding: .1rem .5rem; border-radius: 6px; }
.cal-nav:hover { background: var(--accent-soft); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: .7rem; color: var(--muted); font-weight: 700; padding: .2rem 0; text-transform: uppercase; }
.cal-day { aspect-ratio: 1; border: none; background: none; border-radius: 8px; font-size: .88rem; cursor: pointer; color: var(--ink); font-family: inherit; }
.cal-day:hover:not(:disabled) { background: var(--accent-soft); }
.cal-day:disabled { color: #c9c2b4; cursor: default; text-decoration: line-through; }
.cal-day.sel { background: var(--green); color: #fff; font-weight: 700; }
.cal-day.inrange { background: #dbe5db; }
.cal-day.today { outline: 1px dashed var(--accent); }

/* summary */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.2rem 1.3rem 1.3rem; position: sticky; top: 76px; }
.summary h2 { margin-top: 0; font-size: 1.1rem; }
#summary-lines { font-size: .92rem; }
#summary-lines .line { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; border-bottom: 1px dashed var(--line); }
#summary-lines .line.savings { color: var(--ok); font-weight: 600; }
#summary-total { display: flex; justify-content: space-between; padding-top: .7rem; font-size: 1.05rem; font-weight: 700; }
.error { color: var(--err); background: #f9e9e7; border-radius: 8px; padding: .55rem .7rem; font-size: .9rem; margin-top: .6rem; }

/* status / receipt */
.status-banner { border-radius: var(--radius); padding: 1.4rem 1.6rem; margin-bottom: 1.6rem; }
.status-banner.ok { background: #e7f2e9; border: 1px solid #bcd8c2; }
.status-banner.warn { background: #f8efe2; border: 1px solid #e4cfa8; }
.status-banner h1 { margin: 0 0 .5rem; }
.receipt { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt th { text-align: left; color: var(--muted); font-weight: 600; padding: .3rem .8rem .3rem 0; width: 30%; vertical-align: top; }
.receipt td { padding: .3rem 0; }
.receipt .lines td { border-bottom: 1px dashed var(--line); padding: .4rem 0; }
.receipt .amt { text-align: right; white-space: nowrap; }
.receipt .total td { font-weight: 800; border-bottom: none; }

/* admin */
.admin .inline-form { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.admin input, .admin select { border: 1px solid var(--line); border-radius: 8px; padding: .45rem .6rem; font-family: inherit; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.table th, .table td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.badge { padding: .12rem .55rem; border-radius: 999px; font-size: .75rem; font-weight: 700; text-transform: uppercase; }
.badge.paid { background: #e7f2e9; color: var(--ok); }
.badge.pending { background: #f8efe2; color: var(--warn); }
.badge.reserved { background: #e6ecf6; color: #35578c; }
.badge.cancelled, .badge.expired { background: #eee; color: var(--muted); }

/* footer */
.footer { background: #1e1c18; color: #cfc9bd; margin-top: 3.5rem; padding: 2.2rem 0 1.2rem; }
.footer a { color: #f0c98f; text-decoration: none; }
.footer-in { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-contact { text-align: right; }
.footer-legal { margin-top: 1.6rem; font-size: .8rem; color: #8b857a; }

@media (max-width: 900px) {
  .book-grid { grid-template-columns: 1fr; }
  .summary { position: static; }
  .band-grid { grid-template-columns: 1fr; gap: 1rem; }
  .book-head { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  .field-grid .span2 { grid-column: span 1; }
  .footer-contact { text-align: left; }
}
.footer-area { color: #8b857a; font-size: .85rem; }
