:root {
  /* Dawn Investments brand (Logo Guide v1.0): Dawn Green, First Light Amber, Light Amber, Warm White */
  --bg: #F5F4F0;
  --card: #ffffff;
  --ink: #1f2a27;
  --muted: #5f6b67;
  --line: #e2e0d9;
  --brand: #1D5C4F;
  --brand-dark: #164a3f;
  --brand-ink: #ffffff;
  --brand-soft: #e3eeea;
  --accent: #C47A1C;
  --accent-light: #E9A84C;
  --accent-soft: #f8ecd9;
  --serif: "Libre Caslon Text", Georgia, "Times New Roman", serif;
  --warn: #9a5b00;
  --warn-soft: #fbf0dc;
  --ok: #1d6b3a;
  --ok-soft: #e1f2e6;
  --bad: #a3271d;
  --bad-soft: #fbe5e2;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.5 "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg);
}
h1, h2, h3 { line-height: 1.25; margin: 0 0 .4em; }
h1, h2 { font-family: var(--serif); font-weight: 400; color: var(--brand); letter-spacing: -.005em; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.35rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
a { color: var(--brand); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }

.wrap { max-width: 920px; margin: 0 auto; padding: 24px 16px 64px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; }
.card + .card { margin-top: 16px; }

.site-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.logo { width: 44px; height: 44px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; flex: none; }
.brand-logo { display: block; height: 52px; width: auto; max-width: 100%; }
.site-head h1 { margin: 0; font-size: 1.35rem; }

/* stepper */
.steps { display: flex; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; counter-reset: s; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); counter-increment: s; }
.steps li::before { content: counter(s); width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: .8rem; flex: none; background: var(--card); }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on::before { background: var(--accent); border-color: var(--accent); color: #fff; }
.steps li.done::before { content: "✓"; background: var(--brand-soft); border-color: var(--brand-soft); color: var(--brand); }

/* forms */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 4px; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], input[type=time], input[type=date], input[type=datetime-local], input[type=url], input[type=search], select, textarea {
  width: 100%; font: inherit; padding: 10px 12px; border: 1px solid #cfccc5; border-radius: 8px; background: #fff; color: var(--ink);
}
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 2px solid var(--brand); outline-offset: 1px; }
.field { margin-bottom: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: .92rem; margin-bottom: 10px; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--brand); }

.btn { font: inherit; font-weight: 600; border: 1px solid transparent; border-radius: 8px; padding: 10px 18px; cursor: pointer; background: var(--brand); color: var(--brand-ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; }
.btn:hover { background: var(--brand-dark); }
.btn.secondary:hover { background: #faf9f6; border-color: var(--brand); }
.btn.ghost:hover { background: var(--brand-soft); }
.btn.danger:hover { background: #8a1f17; }
.btn.accent { background: var(--accent-light); color: #2b1d05; }
.btn.accent:hover { background: var(--accent); color: #fff; }
.btn:disabled { opacity: .55; cursor: default; }
.btn.secondary { background: #fff; color: var(--ink); border-color: #cfccc5; }
.btn.danger { background: var(--bad); }
.btn.ghost { background: transparent; color: var(--brand); padding: 6px 8px; }
.btn.block { width: 100%; padding: 13px; font-size: 1rem; }
.btn.sm { padding: 6px 12px; font-size: .85rem; }

.alert { padding: 10px 14px; border-radius: 8px; margin-bottom: 14px; font-size: .92rem; }
.alert.err { background: var(--bad-soft); color: var(--bad); }
.alert.info { background: var(--brand-soft); color: var(--brand); }
.alert.warn { background: var(--warn-soft); color: var(--warn); }

/* booking layout */
.book-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.cal-head strong { font-size: 1.02rem; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal .dow { font-size: .75rem; color: var(--muted); font-weight: 600; padding: 4px 0; }
.cal button { font: inherit; aspect-ratio: 1; border: 0; border-radius: 50%; background: transparent; color: #b5b2ab; cursor: default; font-size: .92rem; }
.cal button.avail { background: var(--brand-soft); color: var(--brand); font-weight: 600; cursor: pointer; }
.cal button.avail:hover { filter: brightness(.95); }
.cal button.sel { background: var(--brand); color: #fff; }
.cal button.today { box-shadow: inset 0 0 0 1.5px var(--line); }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; max-height: 280px; overflow: auto; padding: 2px; }
.slot { font: inherit; padding: 9px 4px; border: 1px solid var(--brand); color: var(--brand); background: #fff; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.slot:hover { background: var(--brand-soft); }
.slot.sel { background: var(--brand); color: #fff; }
.chosen { background: var(--brand-soft); border-radius: 10px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.chosen strong { display: block; }

/* property picker */
.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.prop { font: inherit; text-align: left; display: flex; flex-direction: column; gap: 3px; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; color: var(--ink); }
.prop:hover { border-color: var(--brand); }
.prop.sel { border-color: var(--brand); background: var(--brand-soft); box-shadow: inset 0 0 0 1px var(--brand); }
.chosen .small.muted { display: block; }

/* uploads */
.drop { border: 2px dashed #cfccc5; border-radius: 10px; padding: 18px; text-align: center; cursor: pointer; background: #fcfbf9; position: relative; transition: border-color .15s; }
.drop:hover, .drop.drag { border-color: var(--brand); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop img { max-width: 100%; max-height: 180px; border-radius: 6px; display: block; margin: 0 auto 8px; }
.drop .ic { font-size: 1.6rem; }

.status-icon { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 14px; }
.center { text-align: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; text-align: left; margin: 16px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 500; }

.badge { display: inline-block; font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.b-awaiting_id { background: #ecebe8; color: #555; }
.b-pending_review { background: var(--warn-soft); color: var(--warn); }
.b-confirmed { background: var(--ok-soft); color: var(--ok); }
.b-rejected, .b-cancelled { background: var(--bad-soft); color: var(--bad); }
.b-expired { background: #ecebe8; color: #777; }

.spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 720px) {
  .book-grid, .row { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .steps li span { display: none; }
  .steps li.on span { display: inline; }
}
