/* Camp Hire Booking v0.2.1. Black and white to match the Camp Hire logo, with a warm amber accent taken from the tent glow in the night-sky photo. Change the colours in the first block. */
.chb {
  --chb-brand: #111111;
  --chb-brand-dark: #000000;
  --chb-brand-soft: #f0f0ec;
  --chb-accent: #f2a93b;
  --chb-accent-text: #111111;
  --chb-text: #1d2327;
  --chb-muted: #5b6770;
  --chb-line: #d5dbe0;
  --chb-error: #b3261e;
  --chb-radius: 10px;
  color: var(--chb-text);
  font-size: 16px;
  line-height: 1.5;
  max-width: 928px;
  margin: 0 auto;
  padding: 24px;
  background: #fff;
  border-radius: 14px;
  text-align: left;
}
/* The screens sit on their own white panel, so they stay readable on any page background. */
.chb h2, .chb h3, .chb h4, .chb p, .chb li, .chb label, .chb legend, .chb strong { color: inherit; }
.chb .chb-intro, .chb .chb-hint, .chb .chb-card-text, .chb .chb-option-fee, .chb .chb-price-trip, .chb .chb-line-choices li, .chb .chb-hint-inline, .chb .chb-loading { color: var(--chb-muted); }
.chb h2, .chb h3, .chb h4 { font-weight: 700; letter-spacing: normal; text-transform: none; }
.chb .chb-error { color: var(--chb-error); }
.chb .chb-hero-text { color: #fff; }
.chb .chb-in-cart { color: #7a4b00; }
.chb *, .chb *::before, .chb *::after { box-sizing: border-box; }

.chb-hero { position: relative; min-height: 240px; margin: 0 0 24px; border-radius: var(--chb-radius); background-color: #0b1626; background-size: cover; background-position: center 60%; display: flex; align-items: flex-end; overflow: hidden; }
.chb-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(5, 10, 20, .78), rgba(5, 10, 20, .05) 65%); }
.chb-hero-text { position: relative; margin: 0; padding: 20px 24px; color: #fff; font-size: 32px; font-weight: 700; line-height: 1.15; }

.chb-progress { display: flex; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.chb-progress li { flex: 1; padding: 8px 4px 10px; border-bottom: 4px solid var(--chb-line); color: var(--chb-muted); font-size: 14px; font-weight: 600; }
.chb-progress li.is-current { border-color: var(--chb-accent); color: var(--chb-brand); }
.chb-progress li.is-done { border-color: var(--chb-brand); color: var(--chb-text); }

.chb-title { font-size: 28px; line-height: 1.2; margin: 0 0 8px; outline: none; }
.chb-intro { color: var(--chb-muted); margin: 0 0 20px; }
.chb-label { font-weight: 600; margin: 16px 0 8px; }
.chb-hint { color: var(--chb-muted); margin: 12px 0 0; }
.chb-picked { font-weight: 600; margin: 14px 0 0; }
.chb-ref { font-weight: 700; margin: 0 0 16px; }

.chb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chb-panel { border: 1px solid var(--chb-line); border-radius: var(--chb-radius); padding: 18px; background: #fff; }
.chb-panel h3 { margin: 0 0 12px; font-size: 18px; }

.chb-cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chb-cal-title { font-weight: 600; }
.chb-cal-nav { width: 40px; height: 40px; border: 1px solid var(--chb-line); border-radius: 50%; background: #fff; color: var(--chb-text); font-size: 22px; line-height: 1; cursor: pointer; }
.chb-cal-nav:disabled { opacity: .35; cursor: default; }
.chb-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.chb-cal-dow { text-align: center; font-size: 12px; color: var(--chb-muted); padding: 4px 0; }
.chb-cal-day { aspect-ratio: 1; min-height: 40px; border: 1px solid transparent; border-radius: 8px; background: var(--chb-brand-soft); color: var(--chb-text); font-size: 15px; cursor: pointer; padding: 0; }
.chb-cal-day:hover:not(:disabled) { border-color: var(--chb-brand); }
.chb-cal-day.is-today { font-weight: 700; }
.chb-cal-day.is-selected { background: var(--chb-accent); color: var(--chb-accent-text); font-weight: 700; }
.chb-cal-day:disabled { background: transparent; color: #a8b0b7; text-decoration: line-through; cursor: default; }

.chb-windows { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chb-window { min-height: 44px; border: 1px solid var(--chb-line); border-radius: 8px; background: #fff; color: var(--chb-text); font-size: 15px; cursor: pointer; padding: 8px; }
.chb-window:hover { border-color: var(--chb-brand); }
.chb-window.is-selected { background: var(--chb-accent); border-color: var(--chb-accent); color: var(--chb-accent-text); font-weight: 600; }

.chb-summary { background: var(--chb-brand-soft); border-radius: var(--chb-radius); padding: 14px 16px; margin: 0 0 20px; }
.chb-link { background: none; border: 0; padding: 0; margin-top: 6px; color: var(--chb-brand); text-decoration: underline; font-size: 15px; cursor: pointer; }

.chb-field { margin-bottom: 16px; }
.chb-field label { display: block; font-weight: 600; margin-bottom: 6px; }
.chb-field input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #8c959d; border-radius: 8px; font-size: 16px; color: var(--chb-text); background: #fff; }
.chb-field.has-error input { border-color: var(--chb-error); }
.chb-error { color: var(--chb-error); font-size: 14px; margin: 6px 0 0; }
.chb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.chb-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.chb-button { min-height: 48px; padding: 12px 26px; border: 2px solid var(--chb-brand); border-radius: 999px; background: var(--chb-brand); color: #fff; font-size: 16px; font-weight: 600; cursor: pointer; }
.chb-button:hover:not(:disabled) { background: var(--chb-brand-dark); border-color: var(--chb-brand-dark); }
.chb-button:disabled { opacity: .45; cursor: default; }
.chb-button-quiet { background: #fff; color: var(--chb-brand); }
.chb-button-quiet:hover:not(:disabled) { background: var(--chb-brand-soft); color: var(--chb-brand-dark); }

.chb-banner { background: var(--chb-brand-soft); border-left: 4px solid var(--chb-brand); border-radius: 6px; padding: 12px 14px; margin: 0 0 20px; }
.chb-banner-error { background: #fdecea; border-left-color: var(--chb-error); }
.chb-loading { color: var(--chb-muted); }

.chb button:focus-visible, .chb input:focus-visible { outline: 3px solid #1a73e8; outline-offset: 2px; }

@media (max-width: 680px) {
  .chb-two { grid-template-columns: 1fr; gap: 16px; }
  .chb { padding: 16px; border-radius: 10px; }
  .chb-title { font-size: 24px; }
  .chb-hero { min-height: 170px; }
  .chb-hero-text { font-size: 24px; padding: 16px; }
  .chb-actions { flex-direction: column-reverse; }
  .chb-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .chb * { scroll-behavior: auto !important; }
}

/* ----- v0.2: who is going, gear, review ----- */
.chb-subtitle { font-size: 20px; margin: 28px 0 8px; }
.chb-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; }
.chb-choice { display: flex; flex-direction: column; gap: 4px; text-align: left; min-height: 84px; padding: 14px 16px; border: 2px solid var(--chb-line); border-radius: var(--chb-radius); background: #fff; color: var(--chb-text); font-size: 15px; cursor: pointer; }
.chb-choice strong { font-size: 17px; }
.chb-choice span { color: var(--chb-muted); }
.chb-choice:hover { border-color: var(--chb-brand); }
.chb-choice.is-selected { border-color: var(--chb-brand); background: var(--chb-accent); }
.chb-choice.is-selected span { color: var(--chb-accent-text); }

.chb-field textarea { width: 100%; padding: 10px 12px; border: 1px solid #8c959d; border-radius: 8px; font: inherit; font-size: 16px; color: var(--chb-text); background: #fff; resize: vertical; }
.chb-field.has-error textarea { border-color: var(--chb-error); }

.chb-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--chb-line); margin: 0 0 18px; overflow-x: auto; }
.chb-tab { flex: 0 0 auto; min-height: 46px; padding: 10px 18px; border: 0; border-bottom: 4px solid transparent; margin-bottom: -2px; background: none; color: var(--chb-muted); font-size: 16px; font-weight: 600; cursor: pointer; }
.chb-tab.is-selected { color: var(--chb-text); border-bottom-color: var(--chb-accent); }

.chb-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chb-chip { min-height: 38px; padding: 6px 14px; border: 1px solid var(--chb-line); border-radius: 999px; background: #fff; color: var(--chb-text); font-size: 14px; cursor: pointer; }
.chb-chip.is-selected { background: var(--chb-brand); border-color: var(--chb-brand); color: #fff; }

.chb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.chb-card { display: flex; flex-direction: column; border: 1px solid var(--chb-line); border-radius: var(--chb-radius); background: #fff; overflow: hidden; }
.chb-card-photo { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; }
.chb-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.chb-card-body h4 { margin: 0; font-size: 16px; line-height: 1.3; }
.chb-card-body > .chb-button, .chb-card-body > .chb-stepper { margin-top: auto; }
.chb-card-text { margin: 0; color: var(--chb-muted); font-size: 14px; }
.chb-price { margin: 0; font-size: 15px; }
.chb-price-trip { color: var(--chb-muted); }
.chb-in-cart { margin: 0; font-size: 13px; font-weight: 700; color: #7a4b00; }

.chb-photo { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; }
.chb-photo-empty { background: #fafaf8; }
.chb-photo-empty { display: flex; align-items: center; justify-content: center; color: #9aa3ab; font-size: 12px; text-align: center; padding: 6px; }
.chb-photo-thumb { width: 60px; min-width: 60px; height: 60px; border-radius: 8px; border: 1px solid var(--chb-line); font-size: 0; }
.chb-photo-side { width: 150px; min-width: 150px; border-radius: 8px; }
.chb-photo-large { max-height: 320px; border-radius: 8px; margin-bottom: 12px; }

.chb-button-small { min-height: 42px; padding: 8px 18px; font-size: 15px; }
.chb-stepper { display: inline-flex; align-items: center; border: 2px solid var(--chb-brand); border-radius: 999px; overflow: hidden; align-self: flex-start; }
.chb-stepper button { width: 42px; height: 40px; border: 0; background: #fff; color: var(--chb-text); font-size: 20px; line-height: 1; cursor: pointer; }
.chb-stepper button:hover:not(:disabled) { background: var(--chb-brand-soft); }
.chb-stepper button:disabled { opacity: .35; }
.chb-stepper-n { min-width: 34px; text-align: center; font-weight: 700; }

.chb-bar { position: sticky; bottom: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; padding: 12px 0; background: #fff; border-top: 2px solid var(--chb-line); }
.chb-bar-total { text-align: center; font-size: 15px; }

.chb-locked { overflow: hidden; }
.chb-overlay { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(5, 10, 20, .6); }
.chb-dialog { display: flex; flex-direction: column; width: 100%; max-width: 640px; max-height: calc(100vh - 32px); border-radius: 14px; background: #fff; overflow: hidden; }
.chb-dialog-small { max-width: 460px; }
.chb-dialog-body { padding: 20px; overflow-y: auto; }
.chb-dialog-body h3 { margin: 0 0 6px; font-size: 22px; line-height: 1.2; }
.chb-dialog-top { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 8px; }
.chb-dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-top: 1px solid var(--chb-line); background: #fff; }

.chb-fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.chb-fieldset legend { padding: 0; margin-bottom: 8px; font-weight: 700; font-size: 16px; }
.chb-option { display: flex; align-items: center; gap: 12px; padding: 8px 12px; margin-bottom: 8px; border: 2px solid var(--chb-line); border-radius: var(--chb-radius); cursor: pointer; }
.chb-option:hover { border-color: var(--chb-brand); }
.chb-option.is-selected { border-color: var(--chb-brand); background: #fff7e8; }
.chb-option input { width: 20px; height: 20px; margin: 0; accent-color: var(--chb-brand); flex: 0 0 auto; }
.chb-option-none { min-height: 48px; }
.chb-option-thumb { position: relative; flex: 0 0 auto; }
.chb-option-text { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.chb-option-fee { color: var(--chb-muted); font-size: 14px; }
.chb-badge { padding: 1px 8px; border-radius: 999px; background: var(--chb-brand); color: #fff; font-size: 12px; font-weight: 700; }
.chb-pop { display: none; position: absolute; left: 70px; top: 50%; transform: translateY(-50%); z-index: 10; width: 240px; padding: 10px; border: 1px solid var(--chb-line); border-radius: var(--chb-radius); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); font-size: 13px; color: var(--chb-text); }
.chb-pop img { display: block; width: 100%; aspect-ratio: 1; object-fit: contain; margin-bottom: 6px; }
@media (hover: hover) { .chb-option:hover .chb-pop { display: block; } }
.chb-included { margin-top: 18px; padding: 14px 16px; border-radius: var(--chb-radius); background: var(--chb-brand-soft); }
.chb-included h4 { margin: 0 0 6px; font-size: 15px; }
.chb-included ul { margin: 0; padding-left: 20px; font-size: 14px; }

.chb-lines { margin: 0 0 8px; }
.chb-line { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--chb-line); }
.chb-line-main { flex: 1; min-width: 0; }
.chb-line-choices { margin: 4px 0 0; padding-left: 18px; color: var(--chb-muted); font-size: 14px; }
.chb-line-actions { display: flex; gap: 16px; }
.chb-line-price { min-width: 76px; text-align: right; font-weight: 700; }
.chb-hint-inline { display: block; color: var(--chb-muted); font-size: 14px; }
.chb-totals { margin: 20px 0; padding: 16px; border-radius: var(--chb-radius); background: var(--chb-brand-soft); }
.chb-total-row { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; }
.chb-bond { margin: 10px 0 0; font-size: 15px; }

@media (max-width: 680px) {
  .chb-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .chb-card-body { padding: 10px; }
  .chb-overlay { padding: 0; align-items: flex-end; }
  .chb-dialog { max-height: 92vh; border-radius: 14px 14px 0 0; }
  .chb-dialog-top { flex-direction: column; }
  .chb-photo-side { width: 110px; min-width: 110px; }
  .chb-dialog-foot { flex-wrap: wrap; }
  .chb-dialog-foot .chb-bar-total { order: -1; width: 100%; text-align: left; }
  .chb-dialog-foot .chb-button { flex: 1; width: auto; }
  .chb-bar .chb-button { width: auto; padding: 10px 18px; }
  .chb-line { flex-wrap: wrap; }
  .chb-line-main { flex-basis: calc(100% - 80px); }
  .chb-line-price { margin-left: auto; }
}
