:root {
  --bg: #FFF8F0;
  --bg-2: #FFF1E2;
  --paper: #FFFFFF;
  --ink: #1B1410;
  --ink-2: #4A3F38;
  --muted: #8A7B71;
  --line: rgba(27, 20, 16, 0.08);
  --coral: #FF5A3C;
  --coral-2: #FF7A5C;
  --coral-soft: #FFE6DF;
  --mint: #2FBF8A;
  --mint-soft: #DFF7EC;
  --sun: #FFC94D;
  --sun-soft: #FFF2CC;
  --sky: #5B8DEF;
  --sky-soft: #E3ECFD;
  --lilac: #EAE4FF;
  --radius: 24px;
  --shadow: 0 24px 60px -24px rgba(27, 20, 16, 0.22), 0 2px 6px rgba(27, 20, 16, 0.04);
  --shadow-sm: 0 10px 30px -14px rgba(27, 20, 16, 0.2);
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'Instrument Sans', system-ui, -apple-system, sans-serif;

  /* Aliases so the rest of this sheet — written against the old palette's
     names — keeps working unchanged. */
  --cream: var(--bg);
  --cream-deep: var(--bg-2);
  --ink-soft: var(--ink-2);
  --terra: var(--coral);
  --terra-deep: var(--coral-2);
  --sage: var(--mint);
  --card: var(--paper);
  --cal-free: var(--sun-soft);
  --busy: var(--line);
  --busy-text: var(--muted);
  --holiday: var(--sun);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

/* Kill double-tap-to-zoom everywhere (rapid taps were zooming the page).
   touch-action is not inherited, so this must hit every element — taps on
   card backgrounds or text zoomed too. Scrolling and pinch-zoom still work. */
* {
  touch-action: manipulation;
}

body {
  font-family: var(--sans);
  background:
    radial-gradient(circle at 88% -6%, #FFD9CC 0%, transparent 42%),
    radial-gradient(circle at -12% 28%, #FFF0B8 0%, transparent 38%),
    radial-gradient(circle at 105% 95%, #D9F5E8 0%, transparent 35%),
    var(--bg);
  background-attachment: fixed;
  color: var(--ink);
  line-height: 1.5;
  min-height: 100vh;
  padding: 0 16px calc(48px + env(safe-area-inset-bottom));
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* A phone-first sheet reads oversized on a desktop: ease the type down a
   notch there and keep the column at reading width. */
@media (min-width: 720px) {
  html { font-size: 15px; }
  body { padding-left: 0; padding-right: 0; }
}

.paw-bg {
  position: fixed;
  font-size: 300px;
  opacity: 0.035;
  top: -60px;
  right: -100px;
  transform: rotate(-25deg);
  pointer-events: none;
  z-index: 0;
}

/* ---------- hero ----------
   The badge-over-name mark from the original booking page: a tilted coral
   blob, the business name centred beneath it, one line of what's on offer
   and the service chips. */

.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 36px 0 22px;
  animation: rise 0.5s ease both;
}

.hero-home {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hero-home:active .hero-badge { transform: rotate(-6deg) scale(0.94); }

.hero-badge {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  margin: 0 auto 14px;
  background: var(--coral);
  color: #fff;
  border-radius: 50% 50% 50% 12px;
  font-size: 34px;
  box-shadow: 0 16px 36px -14px rgba(255, 90, 60, .7);
  transform: rotate(-6deg);
  transition: transform .15s;
}

h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 9vw, 2.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.hero-text {
  display: grid;
  gap: 12px;
  justify-items: center;
  margin-top: 8px;
}

.tagline {
  color: var(--ink-2);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
}

.hero-about {
  color: var(--ink-2);
  font-size: .98rem;
  line-height: 1.5;
  max-width: 46ch;
  text-align: center;
  white-space: pre-line;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.hero-meta:empty { display: none; }

.hero-meta span {
  font-size: .76rem;
  font-weight: 600;
  background: rgba(255, 255, 255, .7);
  color: var(--ink-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
}

/* ---------- cards ---------- */

/* Deep-linked visits (?service=… and ?b=…): the head script stamps
   [data-preselect] before first paint and the JS drops it once the right view
   is on the page (showBookingView/showStatusView in ui/views.js). While it's
   set, the whole page — header, cards, footer — stays unpainted, so
   everything appears in one piece instead of the static bits ("More about
   us", hero) showing first and the real view popping in a moment later. The
   head script also clears the marker on a timeout, so a visitor whose JS
   never boots (or whose booking fetch drags on) still gets a page. */
html[data-preselect] body { visibility: hidden; }

.card-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow-sm);
  animation: rise 0.5s ease both;
}

@media (max-width: 420px) { .card { padding: 20px 18px; } }

.card:nth-child(2) { animation-delay: 0.07s; }
.card:nth-child(3) { animation-delay: 0.14s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.step-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

/* Paw-bulleted tips list (mirrors the how-to pages, reused on the booking page). */
.tips { margin: 4px 0 0; padding-left: 1.1rem; }
.tips li { margin-bottom: 9px; color: var(--ink); font-size: 0.93rem; line-height: 1.45; }
.tips li::marker { content: "🐾  "; }
.tips a { color: var(--terra-deep); font-weight: 700; }

.step-num {
  background: var(--ink);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.85rem;
  flex: none;
}

/* ---------- calendar ---------- */

.cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.15rem;
}

.cal-nav {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 12px;
  background: var(--cream-deep);
  color: var(--ink);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s;
}

.cal-nav:active { transform: scale(0.92); }
.cal-nav:disabled { opacity: 0.25; cursor: default; }

.cal-weekdays, .cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

/* Placeholder shown across the whole grid while availability loads lazily. */
.cal-loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 28px 12px;
  color: #5F5142;
  font-size: 0.92rem;
}

.cal-weekdays span {
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #5F5142;
  padding: 6px 0;
}

.cal-day {
  aspect-ratio: 1;
  border: none;
  background: var(--cal-free);
  border-radius: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--ink);
  cursor: pointer;
  position: relative;
  transition: transform 0.12s ease, background 0.15s, color 0.15s;
}

.cal-day:active:not(:disabled) { transform: scale(0.9); }

.cal-day.empty { background: transparent; pointer-events: none; }

.cal-day:disabled {
  background: var(--busy);
  color: var(--busy-text);
  cursor: default;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* Past-window, rota-uncovered, and boarding-full days share the same dimmed,
   no-strikethrough treatment — none of them is "booked", just not currently
   choosable (full carries its own title; a full day still tappable as a
   pick-up day isn't :disabled, so it keeps the plain free-day look plus its
   own title, and its cursor stays the base .cal-day pointer). */
.cal-day.past:disabled,
.cal-day.uncovered:disabled,
.cal-day.full:disabled {
  background: transparent;
  text-decoration: none;
  color: #B3A28C;
}

.cal-day.in-range {
  background: #F5BD96;
  color: #A8480E;
  border-radius: 0;
}

.cal-day.range-start, .cal-day.range-end {
  background: var(--terra);
  color: #fff;
  font-weight: 700;
}

.cal-day.range-start { border-radius: 12px 0 0 12px; }
.cal-day.range-end { border-radius: 0 12px 12px 0; }
.cal-day.range-start.range-end { border-radius: 12px; }
/* Partly-free days: --partial-bg is built per day in app.js from that day's real
   free windows, so the light bands sit where the free hours actually are. Picking
   a selected day retints both bands terracotta — free stays the lighter of the
   two, matching the unselected relationship — so the shape survives selection. */
.cal-day.partial {
  --partial-free: var(--cal-free);
  --partial-busy: var(--busy);
  background: var(--partial-bg);
}

.cal-day.partial.range-start, .cal-day.partial.range-end {
  --partial-free: var(--terra);
  --partial-busy: var(--terra-deep);
  color: #fff;
  font-weight: 700;
}

.cal-grid.shake { animation: shake 0.4s ease; }

@keyframes shake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}

.cal-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 16px;
  justify-content: center;
  margin-top: 14px;
  font-size: 0.78rem;
  color: #5F5142;
}

.cal-legend span { display: flex; align-items: center; gap: 5px; }

.dot { width: 11px; height: 11px; border-radius: 4px; display: inline-block; }
.dot-free { background: var(--cal-free); }
.dot-busy { background: var(--busy); }
.dot-sel { background: var(--terra); }
.dot-partial { background: linear-gradient(135deg, var(--busy) 50%, var(--cal-free) 50%); }

/* Holiday-rate marker: a small gold star in the cell corner. Sits on top of any
   background state (free, busy, partial, selected) without altering it. */
.holiday-star { font-style: normal; color: var(--holiday); font-size: 0.95rem; line-height: 1; }
.cal-day.holiday::after {
  content: '★';
  position: absolute;
  top: 2px;
  right: 3px;
  font-size: 0.6rem;
  line-height: 1;
  color: var(--holiday);
  pointer-events: none;
}
/* Keep the star legible on the orange selected/edge cells. */
.cal-day.holiday.in-range::after,
.cal-day.holiday.range-start::after,
.cal-day.holiday.range-end::after { color: #FFF1DD; }

.range-summary {
  text-align: center;
  margin-top: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  min-height: 1.4em;
  transition: color 0.2s;
}

.range-summary.has-range { color: var(--terra-deep); }

/* ---------- window picker (Morning/Afternoon/Evening) ----------
   Walks and drop-ins only: three pills, one per time of day, each carrying
   its own live clock-hours label underneath (applyHours, service.js). */

.window-row {
  display: flex;
  gap: 8px;
}

.window-pill {
  position: relative;
  flex: 1;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 10px 6px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

/* The radio itself stays in the DOM (keyboard/AT operable) but out of sight —
   the pill it labels carries the checked look instead. */
.window-pill input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.window-pill:has(input:checked) {
  border-color: var(--coral);
  background: var(--coral-soft);
}

.window-pill:has(input:focus-visible) {
  outline: 2px solid var(--coral);
  outline-offset: 2px;
}

.window-icon { font-size: 1.2rem; line-height: 1; }

.window-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}

.window-hours {
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* ---------- service picker ----------
   The catalogue profile's service rows: an icon tile, the name with one line
   under it, laid out as a list. Selected = coral. */

.service-toggle {
  display: grid;
  gap: 10px;
}

/* The picker only (not the walks-upsell-card, which shares this class):
   reserves one button row's height (44px emoji tile + 12px top/bottom
   padding + 1.5px top/bottom border = 71px) so the card isn't an empty
   sliver at first paint, before applyServiceVisibility reveals any
   buttons. Providers with 4+ live services still wrap to a second (or
   third, on narrow screens) row once revealed — this only guarantees a
   non-empty first paint, not a reflow-free reveal for every provider. */
#service-card .service-toggle {
  min-height: 71px;
}

.service-toggle.two-rows { grid-template-columns: 1fr; }

@media (min-width: 460px) {
  .service-toggle { grid-template-columns: 1fr 1fr; }
  .service-toggle.two-rows { grid-template-columns: 1fr 1fr; }
}

.service-btn {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: 16px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.25;
  padding: 12px 14px 12px 12px;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.service-btn:hover { border-color: rgba(27, 20, 16, 0.18); background: var(--paper); }
.service-btn:active { transform: scale(0.985); }

.service-btn .service-emoji {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--paper);
  font-size: 1.3rem;
  line-height: 1;
  margin: 0;
}

.service-btn small {
  grid-column: 2;
  display: block;
  margin-top: 2px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--ink-2);
}

.service-btn.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
  box-shadow: 0 10px 24px -18px rgba(255, 90, 60, .8);
}

.service-btn.selected .service-emoji { background: #fff; }

/* A picker button with no `small` (payment choices) is a single centred row. */
.service-btn:not(:has(small)) { grid-template-columns: auto 1fr; }
.service-btn:not(:has(small)) .service-emoji { grid-row: auto; }

.walks-time-note {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.4;
}

.walks-time-note a { color: var(--terra-deep); font-weight: 700; }

/* The "we can't accept your dog" card that replaces the contact step when a
   hike fit answer rules the dog out — a touch larger and darker than the
   usual note, since it's the whole card. */
.hike-unfit-note {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
  line-height: 1.5;
}

/* What's included in every hike — the shared tiles
   (public/partials/hike-included.html) at the foot of the weekday card.
   Two-by-two in the 480px card, one column on the narrowest phones. */
.incl-head {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1rem;
  margin: 20px 0 10px;
  padding-top: 16px;
  border-top: 1.5px solid var(--cream-deep);
}
.incl-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.incl-item {
  background: var(--cream);
  border: 1.5px solid var(--cream-deep);
  border-radius: 14px;
  padding: 12px 12px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.incl-emoji { font-size: 22px; line-height: 1; margin-bottom: 3px; }
.incl-item strong { font-size: 0.92rem; line-height: 1.25; }
.incl-item span:last-child { font-size: 0.82rem; line-height: 1.4; color: var(--ink-soft); }
@media (max-width: 380px) {
  .incl-grid { grid-template-columns: 1fr; }
}

/* Button styled as a note link. */
.note-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--terra-deep);
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

/* Weekday picker for recurring group hikes (Mon–Fri toggles). */
.weekday-toggle {
  display: flex;
  gap: 8px;
}

.weekday-btn {
  flex: 1;
  padding: 12px 0;
  border: 2px solid var(--cream-deep);
  border-radius: 12px;
  background: var(--cream);
  font: inherit;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.weekday-btn[aria-pressed="true"] {
  border-color: var(--terra);
  background: #FCEBDD;
  color: var(--ink);
}

/* Fit questions for group hikes (details card, hikes only). */
.fit-group { margin-top: 16px; }

.fit-label {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 2px;
}

.fit-label small {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.checkbox-field.inline { display: inline-flex; margin-right: 18px; }

/* The service summaries (hikes, walks, daycare) sit under the service toggle,
   not above a field — one rule for all three, so the gap under the buttons is
   the same whichever service is picked. */
#hike-summary, #walk-summary, #daycare-summary { margin: 12px 0 0; }

/* Daycare's half/full day + pickup & drop-off, between the weekday toggle and
   its summary line. The inner .fit-group carries the top gap; this keeps the
   summary underneath from riding up against the checkbox. */
#daycare-options { margin-bottom: 16px; }

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  cursor: pointer;
}
.checkbox-field input {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: var(--terra);
}
.checkbox-field span { font-size: 0.9rem; line-height: 1.35; }
.checkbox-field small { display: block; color: var(--ink-soft); }
.checkbox-field + .checkbox-field { margin-top: 14px; }

.price-summary {
  text-align: center;
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--terra-deep);
}
.price-summary small {
  display: block;
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
/* The what-you-get line for hikes under the price — the one part that has
   to land: the price buys 2+ hours on the trail plus the drive, not a walk.
   Full ink instead of the muted note grey so it reads first. (The weekday
   picker says it with the shared what's-included tiles instead.) */
.hike-includes { color: var(--ink); }
.hike-includes strong { color: var(--terra-deep); }
.price-summary .hike-includes {
  margin-top: 3px;
  color: var(--ink);
}

/* The card-or-manual choice under the total, on the one-off services when the
   provider has Stripe on. Two stacked rows rather than pills: the labels are
   sentences, not words, and they have to stay readable on a narrow phone. */
.pay-method {
  border: 1px solid var(--line, rgba(0, 0, 0, 0.12));
  border-radius: 12px;
  margin: 0 0 10px;
  padding: 8px 12px 10px;
}
.pay-method legend {
  padding: 0 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.pay-opt {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 5px 0;
  font-size: 0.85rem;
  cursor: pointer;
}
.pay-opt input { margin-top: 2px; flex: none; }
.pay-opt small {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-soft);
}

/* How to pay, under the total — a quiet note, not part of the price. */
.quote-note {
  text-align: center;
  margin: 0 0 6px;
  font-size: 0.78rem;
  color: var(--ink-soft);
}

.time-note { display: block; margin-top: 4px; font-size: 0.72rem; color: var(--ink-soft); }

/* Why-is-the-button-grey helper: tappable chips listing what's still missing,
   shown right above the (disabled) submit button. */
.missing-hint {
  text-align: center;
  padding: 0 8px;
}
.missing-title {
  display: block;
  color: var(--ink-soft);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.missing-chip {
  display: inline-block;
  margin: 3px;
  padding: 6px 12px;
  border: 1.5px dashed var(--terra);
  border-radius: 999px;
  background: var(--card);
  color: var(--terra-deep);
  font-family: var(--serif);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.missing-chip:active { background: var(--cream-deep); }

/* ---------- form fields ---------- */

.time-row { display: flex; gap: 12px; }
.time-row .field { flex: 1; }

.field { display: block; margin-bottom: 12px; }
.field:last-child { margin-bottom: 0; }

.field > span {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 2px 6px;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink-2);
  margin-bottom: 6px;
}

.field > span small {
  font-weight: 400;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(27, 20, 16, 0.16);
  border-radius: 12px;
  background: var(--bg);
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  -webkit-appearance: none;
  appearance: none;
}

/* Checkboxes inside .field labels keep their native look — the
   appearance:none above is for text inputs and selects, and on a checkbox it
   erases the check indicator entirely (the admin console's on/off toggles
   looked dead: they saved, but never showed a check). */
.field input[type="checkbox"] {
  width: 20px;
  height: 20px;
  padding: 0;
  border: 0;
  flex-shrink: 0;
  -webkit-appearance: auto;
  appearance: auto;
  accent-color: var(--terra);
}

/* Custom chevron for the time dropdowns (native arrow is stripped by appearance:none). */
.field select {
  padding-right: 38px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%238a6f5a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M1 1.5 6 6.5 11 1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  background: var(--paper);
  border-color: var(--coral);
  box-shadow: 0 0 0 3px var(--coral-soft);
}

.field textarea {
  resize: vertical;
  min-height: 84px;
}

/* ---------- address autocomplete (Google Places) ---------- */
/* Our own suggestion list, rendered inline under the address input rather than
   as a floating popover — on mobile a popover flips up over the field once the
   keyboard takes the space below it. Inline means it pushes the form down. */
.addr-suggestions {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  border: 1px solid rgba(27, 20, 16, 0.16);
  border-radius: 12px;
  background: #fff;
  max-height: 260px;
  overflow-y: auto;
}
.addr-suggestions[hidden] { display: none; }

.addr-suggestion {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: none;
  border-radius: 10px;
  background: none;
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.35;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}
.addr-suggestion:hover,
.addr-suggestion.is-active {
  background: var(--cream-deep);
}
.addr-suggestion:focus-visible {
  outline: 2px solid var(--terra);
  outline-offset: -2px;
}

.addr-credit {
  padding: 6px 12px 4px;
  font-size: 0.75rem;
  color: var(--ink-soft);
  text-align: right;
}

/* ---------- buttons & messages ---------- */

.big-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3em;
  width: 100%;
  padding: 16px 24px;
  border: none;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 8px 20px -10px rgba(27, 20, 16, .5);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, opacity 0.2s;
}

.big-btn:hover:not(:disabled) { transform: translateY(-2px); background: #2A211B; box-shadow: 0 14px 28px -12px rgba(27, 20, 16, .5); }
.big-btn:active:not(:disabled) { transform: translateY(0); }

.big-btn:disabled { opacity: 0.45; cursor: default; box-shadow: none; }

/* The primary call to action (Request booking) reads coral, not ink — the
   one spot on the page the brand color leads. */
.big-btn.cta {
  background: var(--coral);
  box-shadow: 0 16px 36px -14px rgba(255, 90, 60, .7);
}
.big-btn.cta:hover:not(:disabled) { background: #FF4A28; box-shadow: 0 22px 44px -14px rgba(255, 90, 60, .7); }

/* The paw emoji's glyph is dark brown — near-invisible on the terracotta
   button. Flatten it to a white silhouette so it reads with the button text. */
.big-btn .btn-paw { filter: brightness(0) invert(1); }

/* .big-btn on a link (the agreement sign button navigates, it doesn't act) */
a.agreement-btn {
  display: block;
  box-sizing: border-box;
  text-align: center;
  text-decoration: none;
}

.big-btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 1px solid rgba(27, 20, 16, 0.16);
  margin-top: 18px;
}
.big-btn.ghost:hover:not(:disabled) { background: var(--paper); border-color: var(--ink); box-shadow: none; }

.form-error {
  background: #FBE3DC;
  color: #A8401F;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 0.92rem;
  text-align: center;
}

/* Skip a single hike day. Sits with the other confirmation-screen blocks, so
   it shares their divider + heading treatment; skipped days list underneath
   the button, each with its own undo. */
.status-skip {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--cream-deep);
}
.status-skip-head {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.status-skip-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 4px;
}

/* Per-day shift pickers under the weekday toggle (renderShiftRows). */
.hike-days-shifts {
  margin: 12px auto 0;
  max-width: 320px;
  text-align: left;
}
.shift-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
}
.shift-day {
  flex: 0 0 3.2em;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.shift-select {
  flex: 1;
  padding: 6px 10px;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
}
.shift-select:disabled {
  color: var(--ink-soft);
  opacity: 1;
}

/* A schedule change still awaiting confirmation — the one quiet flag on an
   otherwise confirmed page (see renderUpdatePendingNote). */
.status-update-pending {
  margin: 14px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  background: var(--cream);
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
}
.status-skip .big-btn.ghost { margin-top: 14px; }
.skip-list { list-style: none; margin: 0; padding: 0; }
.skip-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* The make-up picker adds a day dropdown and a confirm button to a row
     that already carries its wording and an Undo — on a phone that has to
     wrap rather than squeeze the date out of the line. */
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--cream-deep);
  font-size: 0.95rem;
  color: var(--ink);
}
.skip-undo {
  flex: none;
  background: none;
  border: none;
  color: var(--terra-deep);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.skip-undo:disabled { opacity: 0.45; cursor: default; }
.skip-text { flex: 1 1 auto; }
/* Picking a make-up day: the same quiet underlined trigger as Undo, then the
   day dropdown and a solid confirm once the days with room have loaded. */
.skip-makeup {
  flex: none;
  background: none;
  border: none;
  color: var(--terra-deep);
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px;
}
.skip-makeup:disabled { opacity: 0.45; cursor: default; }
.skip-makeup-day {
  flex: 1 1 140px;
  font-family: var(--serif);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--cream);
  border: 1px solid var(--terra-deep);
  border-radius: 10px;
  padding: 6px 8px;
}
.skip-makeup-confirm {
  flex: none;
  background: var(--terra-deep);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--serif);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  padding: 7px 14px;
}
.skip-makeup-confirm:disabled { opacity: 0.45; cursor: default; }

/* Client cancellation: a quiet trigger that opens a two-step confirm. */
.status-cancel { margin-top: 14px; }
.cancel-trigger {
  display: block;
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: var(--serif);
  font-size: 0.95rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 8px;
  /* Daylight between it and the Edit button above — destructive and routine
     actions shouldn't sit within one stray tap of each other. */
  margin-top: 18px;
}
.cancel-confirm-q { font-weight: 700; text-align: center; margin: 4px 0 12px; }
.cancel-confirm-actions { display: flex; flex-direction: column; gap: 10px; }
.cancel-confirm-actions .big-btn.ghost { margin-top: 0; }
.big-btn.danger { background: #B23B2E; box-shadow: 0 6px 0 #8A2C22; }
.big-btn.danger:active:not(:disabled) { box-shadow: 0 2px 0 #8A2C22; }

/* Editing an existing booking: show only the form itself — hide the
   saved-bookings list, notification nudge, reviews, and the (unchangeable)
   phone field. */
body.editing #my-bookings-card,
body.editing #form-updates,
body.editing #reviews-card,
body.editing #phone-card { display: none; }

.fine-print {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.82rem;
  padding: 0 12px;
}
.fine-print a { color: var(--terra-deep); font-weight: 700; }

/* The demo page (body.is-demo, set by booking/rates.js from /api/pricing):
   a banner up top, and the sign-up link where the submit button would be.
   Off the demo page neither exists. */
.demo-banner, .demo-cta { display: none; }
.is-demo .demo-banner {
  display: block;
  margin: 0 auto 18px;
  max-width: 560px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--sun-soft, #FFF3D6);
  color: var(--ink);
  font-size: 0.9rem;
  text-align: center;
}
.demo-banner a { color: var(--terra-deep); font-weight: 700; }
.is-demo #submit-btn, .is-demo #submit-hint, .is-demo #missing-hint { display: none; }
.is-demo .demo-cta { display: block; }
.demo-cta .big-btn { text-decoration: none; }
.demo-cta .fine-print { margin-top: 12px; }

/* ---------- status view ---------- */

.status-card { text-align: center; padding: 32px 22px; }

.status-emoji { font-size: 60px; animation: bounce 1.2s ease infinite; }

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

.status-card h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.7rem;
  margin: 12px 0 8px;
}

#status-detail { color: var(--ink-soft); margin-bottom: 16px; }

.status-summary {
  background: var(--cream-deep);
  border-radius: 16px;
  padding: 14px;
  font-weight: 700;
  line-height: 1.7;
  margin-bottom: 14px;
}

/* The dog's trail record on confirmed group hikes — the same three-tile
   infographic as the hike-report email, in the site's palette. */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 16px;
}
.stat-tile {
  background: var(--cream);
  border-radius: 12px;
  padding: 14px 6px;
}
.stat-tile .stat-value {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--terra-deep);
}
.stat-tile .stat-label {
  font-size: 0.68rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-top: 2px;
}
.stat-tile .stat-sub { font-size: 0.75rem; color: var(--ink-soft); margin-top: 6px; }
.stat-tile .stat-sub strong { color: var(--terra-deep); }

/* Today's pickup/drop-off status — same tile look as the summary, green so
   the live line stands out from the static details below it. */
.status-run {
  background: #234733;
  color: #fff;
  border-radius: 16px;
  padding: 14px;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ---------- upcoming bookings on the main page ---------- */

.my-bookings-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-booking-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--cream-deep);
  border: none;
  border-radius: 16px;
  padding: 12px 14px;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.my-booking-btn small {
  display: block;
  font-weight: 400;
  color: var(--ink-soft);
}

.my-booking-go {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ink-soft);
}

.my-booking-btn.dimmed { opacity: 0.55; }

.my-bookings-toggle {
  background: none;
  border: none;
  padding: 4px 0;
  margin-top: 10px;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-decoration: underline dotted;
  cursor: pointer;
}

#my-bookings-hidden { margin-top: 10px; }

/* ---------- reviews ---------- */

/* No-JS / pre-enhancement fallback: reviews stack with separators. Once JS
   adds .is-carousel, only the active one shows and the controls appear. */
.reviews:not(.is-carousel) .review + .review {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cream-deep);
}
.reviews.is-carousel { min-height: 150px; }
.reviews.is-carousel .review { display: none; }
.reviews.is-carousel .review.is-active { display: block; animation: rise 0.3s ease both; }

.review blockquote {
  font-size: 0.97rem;
  line-height: 1.6;
  color: var(--ink);
}

.review figcaption {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
}
.review-name {
  font-family: var(--serif);
  font-weight: 500;
}
.review-meta {
  font-size: 0.8rem;
  color: var(--ink-soft);
}

.review-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
}
.review-nav {
  width: 40px;
  height: 40px;
  flex: none;
  border: none;
  border-radius: 50%;
  background: var(--cream-deep);
  color: var(--ink);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease, background 0.15s ease;
}
.review-nav:hover { background: var(--busy); }
.review-nav:active { transform: scale(0.92); }
.review-counter {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-width: 52px;
  text-align: center;
}

/* ---------- misc ---------- */

.loading {
  text-align: center;
  padding: 50px 0;
  color: var(--ink-soft);
  font-weight: 700;
}

.loading-paw { display: inline-block; animation: bounce 1s ease infinite; }

/* ---------- add-to-home-screen ---------- */

/* Notifications nudge at the bottom of the status page — sits directly on
   the page background below the cards, centred like them. */
.status-install {
  margin-top: 10px;
  padding: 6px 22px 26px;
  text-align: center;
}

.status-install-lead {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  margin-bottom: 6px;
}

.status-install-sub {
  font-size: 0.9rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 auto 14px;
  max-width: 320px;
}

.status-install-android { margin-top: 8px; }

/* The same notify/install prompt shown on the booking form (not just the
   confirmation screen) — centred to match. */
#form-updates { text-align: center; }

/* How-to-pay options on the confirmation screen. */
/* ---------- how to pay ----------
   A panel inside the confirmation card: the amount as a headline, one tile
   per way to pay (each with its brand mark), and a "send to" line with the
   handle and a copy button once one is picked. */
.status-payment {
  margin-top: 22px;
  padding: 18px;
  border-radius: 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  text-align: left;
}

.pay-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pay-kicker {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
}

.pay-amount {
  font-family: var(--serif);
  font-size: 1.7rem;
  font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
  color: var(--ink);
}

.status-payment-deposit {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--sun-soft);
  font-size: .9rem;
  color: var(--ink-2);
}

.status-payment-choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.pay-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 12px 6px 10px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s, box-shadow .15s;
}

.pay-method[hidden] { display: none; }
.pay-method:hover { border-color: rgba(27, 20, 16, .18); }
.pay-method:active { transform: scale(.97); }

.pay-method.selected {
  border-color: var(--coral);
  background: var(--coral-soft);
  box-shadow: 0 10px 22px -16px rgba(255, 90, 60, .8);
}

.pay-mark {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 16px -10px rgba(27, 20, 16, .45);
}

.pay-mark svg { display: block; width: 100%; height: 100%; }

.status-payment-message {
  margin: 14px 0 0;
  font-size: .95rem;
  color: var(--ink);
}

.pay-to-line { margin: 0 0 8px; color: var(--ink-2); }
.pay-to-line strong { color: var(--ink); }

.pay-to {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 10px 10px 14px;
  border-radius: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
}

.pay-to-value {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: .01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.copy-number-btn {
  flex: none;
  display: inline-flex;
  align-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .82rem;
  padding: 8px 14px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}

.copy-number-btn:hover { background: #2A211B; }
.copy-number-btn:active { transform: scale(.96); }

.step .status-payment-message { margin: 6px 0 0; }
/* Step actions are to-dos inside the list, not page-level CTAs — compact
   pill buttons, clearly smaller than the full-width .big-btn slabs
   (Edit booking, Book another visit) below. */
.step .big-btn {
  display: inline-block;
  width: auto;
  box-sizing: border-box;
  padding: 10px 18px;
  font-size: 0.98rem;
  border-radius: 14px;
  box-shadow: 0 4px 0 var(--terra-deep);
  margin-top: 10px;
  /* The 4px drop shadow sits outside the button's box and so claims no
     layout space — reserve it, or the last step's button paints over
     whatever block follows the list. */
  margin-bottom: 4px;
  text-align: center;
}
.step .big-btn:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--terra-deep);
}
.step .big-btn.ghost { box-shadow: none; }
.steps-done {
  margin-top: 20px;
  background: color-mix(in srgb, var(--sage) 16%, transparent);
  border: 2px solid var(--sage);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.98rem;
  color: var(--ink);
  text-align: center;
}


/* Who to reach — on the page background below the status cards,
   centred like the notifications nudge that follows. */
.status-contact {
  margin-top: 12px;
  padding: 4px 22px 0;
  text-align: center;
}
.status-contact-head {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: 8px;
}
.status-contact-line {
  font-size: 0.95rem;
  color: var(--ink);
  margin: 4px 0;
}
.status-contact-tel {
  color: var(--terra-deep);
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
  white-space: nowrap;
}

.install-btn {
  border: 2px solid var(--terra);
  background: transparent;
  color: var(--terra-deep);
  font-family: var(--serif);
  font-weight: 500;
  font-size: 0.98rem;
  padding: 11px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.15s;
}

.install-btn:active { transform: scale(0.95); }

.install-howto {
  margin: 14px auto 0;
  max-width: 340px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 14px 16px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
  text-align: left;
  animation: rise 0.3s ease both;
}

.share-glyph {
  display: inline-block;
  color: var(--terra-deep);
  font-weight: 700;
}

.footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 44px;
  display: grid;
  gap: 8px;
  justify-items: center;
}

.footer-areas,
.footer-towns,
.footer-services {
  margin-bottom: 8px;
  color: var(--ink-soft);
}

/* De-emphasised — present for local SEO, not meant to draw the eye. */
.footer-addresses {
  margin-bottom: 8px;
  font-size: 0.7rem;
  color: var(--ink-soft);
  opacity: 0.6;
  font-style: normal;
}

.footer-legal { margin-bottom: 8px; }
.footer-legal a { color: var(--ink-2); font-weight: 600; text-decoration: none; }
.footer-legal a:hover { color: var(--coral); }

.footer-saas {
  display: block;
  margin-top: 6px;
  color: var(--coral);
  font-weight: 600;
  text-decoration: none;
}
.footer-saas:hover { text-decoration: underline; }

[hidden] { display: none !important; }

/* A provider's logo in place of the paw badge — same footprint, contained. */
.hero-badge.hero-badge-logo { background: var(--card, #fff); overflow: hidden; }
.hero-badge.hero-badge-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
