/* ============================================================================
   The Content Hive — booking skin, ported from tch-website-181/booking-v2/
   ----------------------------------------------------------------------------
   Layered OVER assets/css/booking.css (which every booking page links first),
   so every rule here only has to win at equal specificity — this file is later
   in the cascade. booking.css is NOT edited; the v2 runtime wiring, the
   [data-fb-*] / [data-booking-*] hooks and assets/js/booking.js are untouched.

   Source of every value below:
     pages/bookings/services/index.jinja  <- booking-v2/services.hbs      (lines 6-42, 44-1097)
     pages/bookings/services/[slug].jinja <- booking-v2/service-detail.hbs (lines 7-37, 39-916)
     pages/bookings/build/index.jinja     <- booking-v2/appointment.hbs   (lines 8-1064)
     pages/bookings/manage/index.jinja    <- booking-v2/my-appointments.hbs (lines 7-882)

   PALETTE — the v1 "Kintsugi" alias table resolved through assets/css/app.css.
   Every alias is reproduced at its RESOLVED value, including the collapses:

     --forest-primary == --forest-deep == --moss-green == --brand-primary  #00B2A8
     --sage-light     == --eucalyptus  == --bamboo     == --brand-light    #00B2A820
     --pine-deep      == --charcoal    == --brand-dark                     #171e1d
     --kintsugi-gold  == --golden-light== --warm-amber == --brand-accent   #00D4C7
     --pure-white     == --natural-white== --white                         #FFFFFF
     --stone-gray     == --light-gray                                      #E5E7EB
     --soft-gray      == --medium-gray                                     #9CA3AF

   Because forest-primary and forest-deep are the SAME colour, and gold, amber
   and golden-light are the SAME colour, every v1 "135deg gradient" and every
   "hover darkens" built from those pairs renders FLAT. That flatness is
   reproduced here deliberately — no darker shade is synthesised.

   Two v1 values are white-on-teal at ~1.9:1 (.service-badge, the mobile filter
   count). They are v1's declared values and are kept white on purpose.
   ========================================================================== */

.page-services,
.page-booking-offering,
.page-booking-build,
.page-booking-confirmation,
.page-booking-manage {
  /* v1 booking-v2 palette, resolved */
  --tchb-primary: #00B2A8;        /* forest-primary / forest-deep / brand-primary */
  --tchb-soft: #00B2A820;         /* sage-light / eucalyptus / bamboo / brand-light */
  --tchb-ink: #171e1d;            /* charcoal / pine-deep / brand-dark */
  --tchb-gold: #00D4C7;           /* kintsugi-gold / golden-light / warm-amber */
  --tchb-white: #FFFFFF;          /* pure-white / natural-white */
  --tchb-stone: #E5E7EB;          /* stone-gray / light-gray */
  --tchb-soft-gray: #9CA3AF;      /* soft-gray / medium-gray */
  --tchb-dark-gray: #374151;
  --tchb-error: #EF4444;
  --tchb-success: #10B981;

  /* v1 font stacks — app.css --font-family for everything except the booking
     flow, which appointment.hbs re-declared as Noto Serif JP / Montserrat. */
  --tchb-font: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --tchb-font-heading: 'Noto Serif JP', serif;
  --tchb-font-body: 'Montserrat', sans-serif;
}

/* --------------------------------------------------------------------------
   Token remap for the runtime flow surfaces.
   booking.css derives every colour, radius and shadow from these --fb-* locals,
   so re-pointing them at the v1 palette re-skins the whole flow without editing
   that file. Same specificity as booking.css's own `.fb` block, later file.
   -------------------------------------------------------------------------- */
.fb,
.fb-manage,
.fb-build,
.fb-unavailable {
  --fb-ink: var(--tchb-ink);
  --fb-muted: var(--tchb-soft-gray);
  --fb-line: var(--tchb-stone);
  --fb-surface: var(--tchb-white);
  --fb-surface-2: var(--tchb-white);          /* v1 --natural-white IS #FFFFFF */
  --fb-accent: var(--tchb-primary);
  --fb-accent-strong: var(--tchb-primary);    /* forest-deep == forest-primary */
  --fb-accent-soft: var(--tchb-soft);
  --fb-accent-ink: var(--tchb-white);
  --fb-danger: var(--tchb-error);
  --fb-radius: 8px;                           /* v1 detail buttons / cards */
  --fb-radius-lg: 12px;                       /* v1 .booking-card / .main-content */
  --fb-shadow-sm: 0 4px 20px rgba(23, 30, 29, 0.08);   /* v1 .selection-bar */
  --fb-shadow-md: 0 4px 24px rgba(0, 178, 168, 0.15);  /* v1 .booking-card */
  --fb-heading: var(--tchb-font-heading);
  --fb-gap: 32px;                             /* v1 .content-grid / .booking-content gap */

  font-family: var(--tchb-font-body);
  color: var(--tchb-ink);
}

/* ============================================================================
   1. LISTING  —  booking-v2/services.hbs
   ========================================================================== */

/* .booking-services-page */
.page-services .services-hero-section,
.page-services .services-grid-section {
  font-family: var(--tchb-font);
  color: var(--tchb-ink);
}

/* --- Hero band ----------------------------------------------------------
   v1 .services-hero-section, verbatim. Flat --brand-light wash, NO scrim and
   NO overlay over it; the negative margin-top is v1's (it tucks the band under
   the sticky site header exactly as it did in v1). */
.page-services .page-hero.services-hero-section {
  position: relative;
  padding-top: 120px;                 /* --hero-padding-top */
  padding-bottom: 60px;               /* --hero-padding-bottom */
  margin-top: calc(80px * -1);        /* calc(var(--header-height) * -1) */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: auto;
  background: none;
  background-color: var(--tchb-soft);
  color: var(--tchb-ink);
  text-align: center;
  overflow: hidden;
}

@media (max-width: 768px) {
  .page-services .page-hero.services-hero-section {
    margin-top: 0;
    padding-top: 100px;
    padding-bottom: 60px;
  }
}

.page-services .services-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  z-index: 0;
}

.page-services .services-hero-bg .services-shape {
  position: absolute;
  opacity: 0.1;
  animation: tchb-float 15s infinite ease-in-out;
}

.page-services .services-hero-bg .services-shape:nth-child(1) {
  width: 150px;
  height: 150px;
  border-radius: 41% 59% 37% 63% / 44% 67% 33% 56%;
  background-color: var(--tchb-primary);
  top: -50px;
  left: 10%;
  animation-delay: 0s;
}

.page-services .services-hero-bg .services-shape:nth-child(2) {
  width: 200px;
  height: 200px;
  border-radius: 73% 27% 59% 41% / 33% 38% 62% 67%;
  background-color: var(--tchb-gold);
  bottom: -100px;
  right: 10%;
  animation-delay: -5s;
}

.page-services .services-hero-bg .services-shape:nth-child(3) {
  width: 120px;
  height: 120px;
  border-radius: 64% 36% 27% 73% / 55% 31% 69% 45%;
  background-color: var(--tchb-primary);
  top: 20%;
  right: 20%;
  animation-delay: -10s;
}

@keyframes tchb-float {
  0% { transform: translateY(0); }
  10% { transform: translateY(-15px) translateX(5px); }
  20% { transform: translateY(-30px) translateX(-5px); }
  30% { transform: translateY(-15px) translateX(5px); }
  50% { transform: translateY(0) translateX(0); }
  70% { transform: translateY(15px) translateX(-5px); }
  80% { transform: translateY(30px) translateX(5px); }
  90% { transform: translateY(15px) translateX(-5px); }
  100% { transform: translateY(0); }
}

/* 80x80 tiled sage pattern. %237A9B76 is a frozen literal in v1, not a token. */
.page-services .services-hero-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%237A9B76' fill-opacity='0.15'%3E%3Cpath d='M0 0h40v40H0V0zm40 40h40v40H40V40zm0-40h2l-2 2V0zm0 4l4-4h2l-6 6V4zm0 4l8-8h2L40 10V8zm0 4L52 0h2L40 14v-2zm0 4L56 0h2L40 18v-2zm0 4L60 0h2L40 22v-2zm0 4L64 0h2L40 26v-2zm0 4L68 0h2L40 30v-2zm0 4L72 0h2L40 34v-2zm0 4L76 0h2L40 38v-2zm0 4L80 0v2L42 40h-2zm4 0L80 4v2L46 40h-2zm4 0L80 8v2L50 40h-2zm4 0l28-28v2L54 40h-2zm4 0l24-24v2L58 40h-2zm4 0l20-20v2L62 40h-2zm4 0l16-16v2L66 40h-2zm4 0l12-12v2L70 40h-2zm4 0l8-8v2l-6 6h-2zm4 0l4-4v2l-2 2h-2z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.page-services .services-hero-decoration {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background-color: rgba(0, 178, 168, 0.3);
  z-index: 1;
}

/* %23D4AF37 gold arcs are frozen literals in v1, not tokens. */
.page-services .services-hero-decoration-1 {
  top: -30px;
  left: 5%;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg width='200' height='200' viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='2'%3E%3Cpath d='M20 30 Q60 10 100 35 T180 25' opacity='0.8' stroke-dasharray='20 10'/%3E%3Cpath d='M15 80 Q55 60 95 85 Q135 110 175 90' opacity='0.7' stroke-dasharray='20 10'/%3E%3Cpath d='M10 130 Q50 110 90 135 Q130 160 170 140 Q190 130 200 125' opacity='0.9' stroke-dasharray='20 10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 212, 199, 0.1);
}

.page-services .services-hero-decoration-2 {
  bottom: -60px;
  right: 5%;
  width: 250px;
  height: 250px;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg width='300' height='300' viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='3'%3E%3Cpath d='M30 45 Q90 15 150 52 Q210 90 270 37' opacity='0.8' stroke-dasharray='20 10'/%3E%3Cpath d='M22 120 Q82 90 142 127 Q202 165 262 135' opacity='0.7' stroke-dasharray='20 10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 212, 199, 0.1);
}

.page-services .services-hero-decoration-3 {
  top: 20%;
  right: 5%;
  width: 120px;
  height: 120px;
  opacity: 0.6;
  background-image: url("data:image/svg+xml,%3Csvg width='150' height='150' viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23D4AF37' stroke-width='1.5'%3E%3Cpath d='M15 22 Q45 7 75 26 Q105 45 135 18' opacity='0.8' stroke-dasharray='20 10'/%3E%3C/g%3E%3C/svg%3E");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-color: rgba(0, 178, 168, 0.1);
}

.page-services .kintsugi-pottery {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 300px;
  height: 300px;
  opacity: 0.3;
  z-index: 1;
}

.page-services .services-hero-icon {
  position: absolute;
  bottom: 20px;
  left: 20px;
  font-size: 40px;
  z-index: 1;
  opacity: 0.5;
  color: var(--tchb-primary);
}

.page-services .services-hero-content {
  max-width: 900px;
  margin: 0 auto;
  padding-top: 30px;
  position: relative;
  z-index: 2;
}

/* .services-hero-title — beats theme.css `.page-hero h1` (0,2,0) at (0,3,0). */
.page-services .page-hero.services-hero-section h1 {
  font-family: var(--tchb-font);
  font-size: 48px;
  font-weight: 700;
  line-height: 56px;
  color: var(--tchb-ink);
  margin: 0 0 24px;
  position: relative;
  display: inline-block;
}

.page-services .page-hero.services-hero-section h1::after {
  content: "";
  display: block;
  position: static;
  transform: none;
  width: 100px;
  height: 4px;
  background-color: var(--tchb-primary);
  margin: 16px auto;
  bottom: auto;
  left: auto;
}

/* .services-hero-subtitle */
.page-services .page-hero.services-hero-section p:not(.eyebrow) {
  font-family: var(--tchb-font);
  font-size: 20px;
  font-weight: 400;
  line-height: 28px;
  color: var(--tchb-ink);
  margin: 0 auto 32px;
  max-width: 700px;
}

/* v1 had no eyebrow above the hero title; the v2 template does. Given the
   Montserrat/ink hero, it takes the hero's own type rather than theme.css's
   gold Roboto caps. */
.page-services .page-hero.services-hero-section .eyebrow {
  font-family: var(--tchb-font);
  color: var(--tchb-primary);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

@media (max-width: 767px) {
  .page-services .page-hero.services-hero-section h1 {
    font-size: 32px;
    line-height: 40px;
  }
  .page-services .page-hero.services-hero-section p:not(.eyebrow) {
    font-size: 18px;
    line-height: 26px;
  }
}

/* --- Grid section, container and two-column layout ---------------------- */
/* v1 .services-grid-section */
.page-services .section.services-grid-section {
  padding: 48px 0 80px 0;
  background: var(--tchb-white);
  position: relative;
}

/* v1 .services-main-container + .services-layout, collapsed onto the one
   element the v2 template has. */
.page-services .booking-listing {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-inline: 24px;
}

@media (max-width: 1024px) {
  .page-services .booking-listing {
    flex-direction: column;
    gap: 32px;
  }
}

/* --- Filter rail  —  v1 .filters-sidebar -------------------------------- */
.page-services .booking-filters {
  display: block;
  width: 320px;                       /* --sidebar-width */
  flex-shrink: 0;
  background: var(--tchb-white);
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  border: 1px solid #F3F4F6;
  position: sticky;
  top: calc(80px + 24px);
  max-height: calc(100vh - 80px - 48px);
  /* v1 kept overflow:hidden on the rail and put the scroll + 24px padding on an
     inner .sidebar-scroll-container; the v2 rail has no inner wrapper, so the
     two are merged here. Same 24px inset, same 5px scrollbar. */
  overflow-y: auto;
  padding: 24px;
}

/* v1 turned the rail into a fixed off-canvas drawer at <=1024px, opened by a
   .mobile-filter-toggle FAB with a .sidebar-overlay behind it. Neither the v2
   template nor assets/js/booking.js has a toggle or an overlay, so reproducing
   `transform: translateX(-100%)` would leave the filters permanently
   unreachable on phones. The rail instead flows full-width above the results,
   keeping every v1 control style. This is the one v1 behaviour NOT reproduced. */
@media (max-width: 1024px) {
  .page-services .booking-filters {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
  }
}

.page-services .booking-filters::-webkit-scrollbar { width: 5px; }
.page-services .booking-filters::-webkit-scrollbar-track { background: transparent; }
.page-services .booking-filters::-webkit-scrollbar-thumb { background: #D1D5DB; border-radius: 10px; }
.page-services .booking-filters::-webkit-scrollbar-thumb:hover { background: #9CA3AF; }

/* v1 .sidebar-header */
.page-services .booking-filters__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E5E7EB;
}

/* v1 .sidebar-title */
.page-services .booking-filters__head h2 {
  font-family: var(--tchb-font);
  font-size: 18px;
  font-weight: 700;
  color: var(--tchb-ink);
  letter-spacing: -0.3px;
  margin: 0;
}

/* v1 .clear-filters-btn */
.page-services .booking-filters__reset {
  background: transparent;
  border: none;
  color: var(--tchb-primary);
  font-family: var(--tchb-font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 150ms ease;
  text-decoration: none;
}

.page-services .booking-filters__reset:hover {
  background: #F0FDF4;
  color: var(--tchb-primary);
  text-decoration: none;
}

/* v1 .filter-section */
.page-services .booking-filter {
  display: block;
  margin-bottom: 32px;
}
.page-services .booking-filter:last-child { margin-bottom: 0; }

/* v1 .filter-section-title */
.page-services .booking-filter__label {
  font-family: var(--tchb-font);
  font-size: 12px;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* v1 .search-box / .search-input / .search-icon */
.page-services .booking-filter__search-wrap { position: relative; }

.page-services .booking-filter__search {
  width: 100%;
  box-sizing: border-box;
  padding: 12px 40px 12px 14px;
  border: 1.5px solid #E5E7EB;
  border-radius: 10px;
  font-size: 14px;
  font-family: var(--tchb-font);
  font-weight: 500;
  transition: all 200ms ease;
  background: #F9FAFB;
  color: var(--tchb-ink);
}

.page-services .booking-filter__search::placeholder { color: #9CA3AF; }

.page-services .booking-filter__search:hover {
  border-color: #D1D5DB;
  background: var(--tchb-white);
}

.page-services .booking-filter__search:focus,
.page-services .booking-filter__search:focus-visible {
  outline: none;
  border-color: var(--tchb-primary);
  background: var(--tchb-white);
  box-shadow: 0 0 0 3px rgba(0, 178, 168, 0.08);
}

.page-services .booking-filter__search-wrap .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9CA3AF;
  pointer-events: none;
  font-size: 14px;
}

/* v1 .filter-options */
.page-services .booking-filter__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* v1 .filter-option */
.page-services .booking-filter__opt {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  padding: 10px 8px;
  border-radius: 8px;
  transition: all 200ms ease;
  user-select: none;
  font-size: 15px;
}

.page-services .booking-filter__opt:hover { background: #F9FAFB; }

/* v1 .filter-checkbox — v1 painted a <div> with a Font Awesome check inside.
   The v2 markup is a real <input type="checkbox">, so the same 20x20 box,
   2px #D1D5DB border, 6px radius and white 11px/700 fa-check are painted on
   the input itself. Font Awesome 6.5.1 is loaded by the base layout. */
.page-services .booking-filter__opt input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 0;
  border: 2px solid #D1D5DB;
  border-radius: 6px;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 200ms ease;
  cursor: pointer;
}

.page-services .booking-filter__opt:hover input { border-color: var(--tchb-primary); }

.page-services .booking-filter__opt input:checked {
  background: var(--tchb-primary);
  border-color: var(--tchb-primary);
}

.page-services .booking-filter__opt input:checked::after {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: white;
  font-size: 11px;
  line-height: 1;
}

/* v1 .filter-label */
.page-services .booking-filter__opt span {
  font-size: 15px;
  font-weight: 500;
  color: #374151;
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* v1 .filter-count */
.page-services .booking-filter__opt em {
  font-style: normal;
  font-size: 11px;
  font-weight: 600;
  color: #9CA3AF;
  background: #F3F4F6;
  padding: 3px 9px;
  border-radius: 10px;
  min-width: 24px;
  text-align: center;
}

/* v1 .price-range-inputs / .price-input / .price-separator */
.page-services .booking-filter__range {
  display: flex;
  gap: 12px;
  align-items: flex-end;
}

.page-services .booking-filter__range input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 2px solid #E5E7EB;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--tchb-font);
  transition: all 200ms ease;
  background: var(--tchb-white);
  color: var(--tchb-ink);
}

.page-services .booking-filter__range input:hover { border-color: #D1D5DB; }

.page-services .booking-filter__range input:focus,
.page-services .booking-filter__range input:focus-visible {
  outline: none;
  border-color: var(--tchb-primary);
  box-shadow: 0 0 0 3px rgba(0, 178, 168, 0.1);
}

.page-services .booking-filter__range span {
  color: #D1D5DB;
  margin-bottom: 10px;
  font-weight: 600;
  font-size: 14px;
}

/* --- Results bar  —  v1 .services-header / .services-count / .sort-* ---- */
.page-services .booking-results {
  flex: 1;
  min-width: 0;
}

.page-services .booking-results__bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 12px;
  flex-wrap: nowrap;
}

.page-services .booking-results__count {
  font-family: var(--tchb-font);
  font-size: 16px;
  color: var(--tchb-ink);
  margin: 0;
}

.page-services .booking-results__count b {
  font-weight: 700;
  color: var(--tchb-primary);
}

.page-services .booking-sort {
  display: flex;
  align-items: center;
  gap: 12px;
}

.page-services .booking-sort > span {
  font-family: var(--tchb-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--tchb-ink);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* v1 .sort-select — the chevron is a frozen %237A9B76 sage literal. */
.page-services .booking-sort select {
  padding: 8px 36px 8px 16px;
  background: white;
  border: 2px solid var(--tchb-soft);
  border-radius: 8px;
  font-family: var(--tchb-font);
  font-size: 14px;
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--tchb-ink);
  cursor: pointer;
  transition: all 150ms ease;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%237A9B76' viewBox='0 0 20 20'%3E%3Cpath d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 20px;
}

.page-services .booking-sort select:hover { border-color: var(--tchb-primary); }

.page-services .booking-sort select:focus {
  outline: none;
  border-color: var(--tchb-primary);
  box-shadow: 0 0 0 3px rgba(0, 178, 168, 0.1);
}

/* --- Card grid  —  v1 .services-grid ------------------------------------ */
.page-services .service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .page-services .service-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
}

@media (max-width: 767px) {
  .page-services .service-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-services .booking-results__bar { flex-direction: column; align-items: flex-start; gap: 16px; }
  .page-services .booking-sort { width: 100%; justify-content: space-between; }
}

/* --- Card  —  v1 .service-card ----------------------------------------- */
.page-services .service-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: all 300ms ease;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 0;
  padding: 0;
}

.page-services .service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 178, 168, 0.25);
}

.page-services .service-card-image {
  position: relative;
  height: 200px;
  background: linear-gradient(135deg, var(--tchb-soft), var(--tchb-primary));
  overflow: hidden;
}

.page-services .service-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.page-services .service-card-image img.active { opacity: 1; }

/* v1 .service-placeholder-image — same gradient, 48px white fa-spa at .7 */
.page-services .service-card-image__empty {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--tchb-soft), var(--tchb-primary));
}

.page-services .service-card-image__empty::after {
  content: "\f5bb";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 48px;
  color: white;
  opacity: 0.7;
}

/* v1 .service-image-counter */
.page-services .service-image-counter {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: normal;
  z-index: 2;
}

/* v1 .service-badge — white on #00D4C7 is v1's declared value. Kept. */
.page-services .service-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--tchb-gold);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-family: var(--tchb-font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 3;
  backdrop-filter: none;
}

.page-services .service-card-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.page-services .service-card-title {
  font-family: var(--tchb-font);
  font-size: 22px;
  font-weight: 400;
  line-height: 28px;
  color: var(--tchb-ink);
  letter-spacing: 0.5px;
  margin: 0 0 10px;
}

.page-services .service-card-title a { color: inherit; text-decoration: none; }

.page-services .service-card-description {
  font-family: var(--tchb-font);
  font-size: 14px;
  line-height: 20px;
  color: var(--tchb-ink);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
  height: auto;
}

.page-services .service-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--tchb-stone);
  gap: 6px;
}

/* v1 .service-meta-item (duration, with the clock icon in brand-primary) */
.page-services .service-card-fact--duration {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tchb-font);
  font-size: 14px;
  color: var(--tchb-ink);
  white-space: nowrap;
}

.page-services .service-card-fact--duration svg {
  width: 16px;
  height: 16px;
  color: var(--tchb-primary);
  opacity: 1;
}

/* v1 .service-meta-item strong */
.page-services .service-card-price {
  font-family: var(--tchb-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--tchb-ink);
  white-space: nowrap;
}

/* v1 .service-card-action */
.page-services .service-card-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--tchb-primary);
  font-family: var(--tchb-font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 150ms ease;
  white-space: nowrap;
}

.page-services .service-card-action:hover {
  color: var(--tchb-primary);
  text-decoration: none;
  transform: translateX(4px);
}

.page-services .service-card-status {
  font-family: var(--tchb-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--tchb-soft-gray);
}

/* v1 .empty-state / .empty-state-icon / -title / -description */
.page-services .service-grid__empty,
.page-services .booking-results__none {
  grid-column: 1 / -1;
  text-align: center;
  padding: 80px 24px;
  font-family: var(--tchb-font);
  font-size: 16px;
  color: var(--tchb-ink);
  max-width: none;
}

.page-services .service-grid__empty::before,
.page-services .booking-results__none::before {
  content: "\f5bb";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 36px;
  color: var(--tchb-primary);
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  background: var(--tchb-soft);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-services .booking-results__none button {
  background: none;
  border: 0;
  color: var(--tchb-primary);
  text-decoration: underline;
  cursor: pointer;
  font: inherit;
}

/* ============================================================================
   2. FLOW SURFACES — shared by /bookings/services/<slug>, /bookings/build,
      /bookings/manage.  booking-v2/service-detail.hbs + appointment.hbs.
   ========================================================================== */

/* --- Page frame  —  v1 .service-content: max-width 1200px, 0 24px 80px ---
   v1's --page-padding-top was 50px. The v2 site header is sticky (in flow),
   not fixed, so no extra clearance is added on top of it. */
.page-booking-offering .fb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 80px;
}

/* --- Back button  —  v1 .back-button (+ .breadcrumb-nav margin) --------- */
.fb-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: start;
  padding: 10px 20px;
  background: white;
  color: var(--tchb-primary);
  border: 2px solid var(--tchb-primary);
  border-radius: 8px;
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 150ms ease;
  margin-bottom: 0;
}

.fb-back:hover {
  background: var(--tchb-primary);
  color: white;
  transform: translateX(-4px);
  box-shadow: 0 4px 12px rgba(0, 178, 168, 0.3);
}

/* --- Two-column body  —  v1 .content-grid: 2fr 1fr, gap 32px ------------
   v1 broke to a single column at 991px; booking.css's own breakpoint is
   62rem/992px, which is the same boundary. */
@media (min-width: 62rem) {
  .fb__layout {
    grid-template-columns: 2fr 1fr;
    gap: 32px;
  }
  /* v1 .booking-sidebar: position sticky; top 100px; height fit-content */
  .fb__aside {
    position: sticky;
    top: 100px;
    height: fit-content;
  }
}

/* --- Panels  —  v1 .main-content card + .content-section padding --------
   v1 put every section inside ONE white 12px card with a 1px separator between
   sections. The v2 flow renders each section as its own <section class=fb-panel>
   and the adapter shows/hides them individually, so each panel carries the v1
   card treatment instead: same white, same 12px radius, same teal-tinted
   shadow, same 32px section padding. */
.fb-panel {
  padding: 32px;
  border: 0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 24px rgba(0, 178, 168, 0.1);
  gap: 20px;
}

/* v1 .section-title: 28px/700, ls .5px, charcoal, 20px below, icon 24px teal */
.fb-panel__title {
  font-family: var(--tchb-font-heading);
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--tchb-ink);
  line-height: 1.2;
}

@media (max-width: 767px) {
  .fb-panel__title { font-size: 20px; line-height: 26px; }
  .fb-panel { padding: 24px; }
}

/* v1 had no numbered pill; the closest v1 device is .meta-item's 32x32 icon
   tile (sage-light ground, 8px radius, forest-primary glyph). */
.fb-panel__num {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--tchb-soft);
  color: var(--tchb-primary);
  font-size: 14px;
  font-weight: 600;
}
.fb-panel__num .fb-icon { color: var(--tchb-primary); }

.fb-panel__hint {
  font-family: var(--tchb-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tchb-soft-gray);
}

/* --- Offering header  —  v1 .service-title-section / .service-title ----- */
.fb-hero { gap: 12px; }

.fb-hero h1 {
  font-family: var(--tchb-font-heading);
  font-size: 42px;
  font-weight: 700;
  line-height: 50px;
  letter-spacing: 1px;
  color: var(--tchb-ink);
}

.fb-hero__summary {
  font-family: var(--tchb-font-body);
  font-size: 16px;
  line-height: 26px;
  color: var(--tchb-soft-gray);
  white-space: pre-line;
  max-width: none;
}

@media (max-width: 767px) {
  .fb-hero h1 { font-size: 32px; line-height: 36px; }
}

/* v1 service-detail .service-badge — the category chip. White on #00D4C7. */
.fb-eyebrow {
  padding: 6px 16px;
  background: var(--tchb-gold);
  color: white;
  border-radius: 20px;
  font-family: var(--tchb-font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fb-badges span {
  padding: 6px 16px;
  border-radius: 20px;
  background: var(--tchb-soft);
  color: var(--tchb-primary);
  font-family: var(--tchb-font-body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* --- Media  —  v1 .service-image-carousel: 300px, sage->teal gradient --- */
.fb-media__frame {
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  background: linear-gradient(135deg, var(--tchb-soft), var(--tchb-primary));
}

.fb-media__frame img,
.fb-media__frame video {
  height: 300px;
  max-height: 300px;
  object-fit: cover;
}

@media (max-width: 767px) {
  .fb-media__frame img,
  .fb-media__frame video { height: 200px; max-height: 200px; }
}

/* v1 .service-carousel-dot */
.fb-media__thumb {
  border-radius: 8px;
  border: 2px solid transparent;
  transition: all 200ms ease;
}
.fb-media__thumb.is-active { border-color: var(--tchb-primary); }

/* --- Body copy  —  v1 .service-description / .info-list ----------------- */
.fb-description {
  font-family: var(--tchb-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tchb-soft-gray);
}

.fb-description strong,
.fb-description b { color: var(--tchb-ink); }

/* v1 .feature-card / .feature-name / .feature-value */
.fb-facts {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}

.fb-facts > div {
  padding: 20px;
  background: var(--tchb-white);
  border-radius: 8px;
  border: 1px solid var(--tchb-stone);
  transition: all 150ms ease;
}

.fb-facts > div:hover {
  background: var(--tchb-soft);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 168, 0.2);
}

.fb-facts dt {
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--tchb-soft-gray);
}

.fb-facts dd {
  font-family: var(--tchb-font-body);
  font-weight: 600;
  color: var(--tchb-ink);
  margin-top: 4px;
}

@media (max-width: 767px) {
  .fb-facts { grid-template-columns: 1fr; }
}

/* --- Reviews / promotions  —  v1 .feature-card + .policy-highlight ------ */
.fb-reviews { gap: 20px; }

.fb-review {
  padding: 20px;
  background: var(--tchb-white);
  border: 1px solid var(--tchb-stone);
  border-radius: 8px;
  gap: 8px;
}

.fb-review__meta {
  font-family: var(--tchb-font-body);
  font-size: 14px;
  color: var(--tchb-soft-gray);
}

.fb-review p { font-family: var(--tchb-font-body); line-height: 1.6; }

.fb-promo {
  padding: 12px;
  background: var(--tchb-white);
  border: 0;
  border-left: 4px solid var(--tchb-primary);
  border-radius: 8px;
  color: var(--tchb-ink);
  font-family: var(--tchb-font-body);
  font-weight: 600;
}

/* --- Buttons  —  v1 .btn-book / .btn-secondary (service-detail sidebar) -- */
.fb-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 0;
  padding: 14px;
  background: var(--tchb-primary);
  color: white;
  border: 2px solid var(--tchb-primary);
  border-radius: 8px;
  font-family: var(--tchb-font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
  transition: all 150ms ease;
}

/* v1's hover "darkens to forest-deep", which IS forest-primary — flat. */
.fb-button:hover {
  background: var(--tchb-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 178, 168, 0.3);
}

.fb-button:active { transform: translateY(-2px); }

/* v1 .btn-secondary — outline that FILLS on hover. booking.css deliberately
   refused to fill for contrast reasons; v1 fills, so this fills. */
.fb-button--ghost {
  padding: 12px;
  background: white;
  color: var(--tchb-primary);
  border: 2px solid var(--tchb-primary);
  font-size: 14px;
  font-weight: 500;
  box-shadow: none;
}

.fb-button--ghost:hover {
  background: var(--tchb-primary);
  color: white;
  border-color: var(--tchb-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 178, 168, 0.3);
}

.fb-button--lg { min-height: 0; padding: 14px; font-size: 16px; }

.fb-button:disabled,
.fb-button[disabled] {
  opacity: 0.5;
  background: var(--tchb-stone);
  border-color: var(--tchb-stone);
  color: var(--tchb-ink);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* --- Form controls  —  v1 .form-select / .form-input (appointment.hbs) -- */
.fb-input,
.fb-select,
.fb-build__select {
  min-height: 44px;
  height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--tchb-stone);
  border-radius: 8px;
  font-family: var(--tchb-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--tchb-ink);
  background: var(--tchb-white);
  box-shadow: none;
  transition: all 0.3s ease;
  width: 100%;
}

.fb-input:hover:not(:disabled),
.fb-select:hover:not(:disabled),
.fb-build__select:hover:not(:disabled) {
  background: white;
  border-color: var(--tchb-soft);
}

.fb-input:focus,
.fb-select:focus,
.fb-build__select:focus {
  outline: none;
  border-color: var(--tchb-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 178, 168, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.fb-input:disabled,
.fb-select:disabled,
.fb-build__select:disabled {
  background: var(--tchb-stone);
  opacity: 0.6;
  color: var(--tchb-soft-gray);
  cursor: not-allowed;
}

.fb-input::placeholder {
  color: var(--tchb-soft-gray);
  opacity: 0.6;
  font-size: 12px;
}

.fb-field > span {
  font-family: var(--tchb-font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tchb-soft-gray);
}

/* --- Week strip  —  v1 .date-pills / .date-pill / .date-nav-btn --------- */
.fb-week { gap: 20px; align-items: center; }

.fb-week__nav {
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--tchb-stone);
  color: var(--tchb-soft-gray);
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.fb-week__nav:hover:not(:disabled) {
  background: var(--tchb-primary);
  border-color: var(--tchb-primary);
  color: white;
  box-shadow: 0 4px 12px rgba(0, 178, 168, 0.25);
  transform: scale(1.1);
}

.fb-week__nav:disabled {
  opacity: 0.4;
  background: var(--tchb-stone);
  border-color: var(--tchb-stone);
}

/* v1 held 7 columns down to 320px — it never collapses. */
.fb-week__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.fb-week__day {
  position: relative;
  padding: 14px 10px;
  background: var(--tchb-white);
  border: 2px solid var(--tchb-stone);
  border-radius: 12px;
  min-height: 75px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: all 0.3s ease;
}

/* v1 .date-pill::before — 3px top strip, scaleX(0) until hover/selected. Both
   gradient stops are the same colour in v1, so it renders flat. */
.fb-week__day::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(135deg, var(--tchb-primary) 0%, var(--tchb-primary) 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.fb-week__day:hover:not(:disabled) {
  border-color: var(--tchb-primary);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 178, 168, 0.15);
  transform: translateY(-2px);
}

.fb-week__day:hover:not(:disabled)::before { transform: scaleX(1); }

.fb-week__day.is-active {
  background: linear-gradient(135deg, var(--tchb-primary) 0%, var(--tchb-primary) 100%);
  border-color: var(--tchb-primary);
  box-shadow: 0 6px 20px rgba(0, 178, 168, 0.3);
  color: white;
}

.fb-week__day.is-active::before {
  transform: scaleX(1);
  background: var(--tchb-gold);
}

.fb-week__day:disabled {
  opacity: 0.5;
  background: rgba(0, 0, 0, 0.02);
  cursor: not-allowed;
}

/* v1 .pill-day */
.fb-week__dow {
  font-family: var(--tchb-font-body);
  font-size: 11px;
  color: var(--tchb-soft-gray);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

/* v1 .pill-date */
.fb-week__date {
  font-family: var(--tchb-font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--tchb-ink);
  line-height: 1.1;
}

.fb-week__day.is-active .fb-week__dow,
.fb-week__day.is-active .fb-week__date { color: white; opacity: 1; }

.fb-week__day.is-today:not(.is-active) .fb-week__date { color: var(--tchb-primary); }

/* --- Time slots  —  v1 .time-grid / .time-slot / .time-group-label ------ */
.fb-times { margin-top: 32px; }
.fb-slots-groups { gap: 20px; }

.fb-slot-group__label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--tchb-font-body);
  font-size: 12px;
  color: var(--tchb-soft-gray);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 1px;
}

.fb-slot-group__label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--tchb-stone);
}

.fb-slots,
.fb-slot-group__times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
}

.fb-slot {
  position: relative;
  padding: 12px 14px;
  background: var(--tchb-white);
  border: 2px solid var(--tchb-stone);
  border-radius: 10px;
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--tchb-ink);
  overflow: hidden;
  transition: all 0.3s ease;
}

.fb-slot:hover:not(:disabled) {
  border-color: var(--tchb-primary);
  background: white;
  box-shadow: 0 4px 12px rgba(0, 178, 168, 0.15);
  transform: translateY(-2px);
}

.fb-slot[data-fb-selected="true"] {
  border-color: var(--tchb-primary);
  background: var(--tchb-primary);
  color: white;
  box-shadow: 0 4px 16px rgba(0, 178, 168, 0.25);
}

.fb-slot:disabled {
  color: rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.02);
  text-decoration: line-through;
  cursor: not-allowed;
}

.fb-slots__empty,
.fb-empty {
  font-family: var(--tchb-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tchb-soft-gray);
}

/* --- Option rows  —  v1 .filter-item / .feature-card -------------------- */
.fb-option {
  padding: 16px;
  background: var(--tchb-white);
  border: 2px solid var(--tchb-stone);
  border-radius: 8px;
  transition: all 0.3s ease;
}

.fb-option:hover { border-color: var(--tchb-primary); background: white; }

.fb-option[data-fb-selected="true"] {
  border-color: var(--tchb-primary);
  background: var(--tchb-soft);
  box-shadow: none;
}

.fb-option__title { font-family: var(--tchb-font-body); font-weight: 600; color: var(--tchb-ink); }
.fb-option__meta { font-family: var(--tchb-font-body); font-size: 14px; color: var(--tchb-soft-gray); }
.fb-option__price { font-family: var(--tchb-font-body); font-weight: 700; color: var(--tchb-primary); }
.fb-option__avatar { width: 60px; height: 60px; border: 0; }

/* --- Summary card  —  v1 .booking-card + .booking-header ----------------
   v1: white 12px card, teal-tinted shadow, overflow hidden, with a dark->teal
   gradient header band. The v2 summary card is a .fb-panel whose head is the
   band, so the panel drops its own padding and the head takes the 24px. */
.fb-sumcard {
  padding: 0;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 178, 168, 0.15);
  overflow: hidden;
  gap: 0;
}

.fb-sumcard > .fb-panel__head {
  margin: 0;
  padding: 24px;
  background: linear-gradient(135deg, var(--tchb-ink) 0%, var(--tchb-primary) 100%);
  justify-content: center;
  text-align: center;
}

.fb-sumcard > .fb-panel__head .fb-panel__title {
  font-family: var(--tchb-font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 1px;
  color: white;
}

.fb-sumcard > .fb-panel__head .fb-panel__num {
  background: rgba(255, 255, 255, 0.16);
  color: white;
}
.fb-sumcard > .fb-panel__head .fb-panel__num .fb-icon { color: white; }

/* v1 .booking-body / .detail-row */
.fb-sumcard__rows { padding: 24px; gap: 0; }

.fb-sumcard__row {
  padding: 12px 0;
  border-bottom: 1px solid #f3f4f6;
  gap: 16px;
}
.fb-sumcard__row:last-child { border-bottom: none; }

.fb-sumcard__row dt {
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: normal;
  color: var(--tchb-soft-gray);
}

.fb-sumcard__row dd {
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--tchb-ink);
}

/* v1 .price-row.total + .total-amount */
.fb-sumcard__row--total {
  padding-top: 16px;
  border-top: 2px solid rgba(0, 178, 168, 0.3);
  border-bottom: none;
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.fb-sumcard__row--total dt { font-size: 18px; font-weight: 700; color: var(--tchb-ink); }

.fb-sumcard__row--total dd {
  font-family: var(--tchb-font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--tchb-primary);
}

.fb-sumcard__empty {
  color: var(--tchb-soft-gray);
  font-style: normal;
  font-weight: 500;
}

/* --- Pricing panel  —  v1 .price-display / .price-row / .price-amount --- */
.fb-pricing { gap: 0; }

.fb-pricing__row {
  padding: 8px 0;
  font-family: var(--tchb-font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--tchb-ink);
}

.fb-pricing__row--muted { color: var(--tchb-soft-gray); font-size: 15px; }
.fb-pricing__row--discount { color: var(--tchb-primary); font-weight: 700; }

.fb-pricing__row--total {
  padding-top: 16px;
  border-top: 2px solid rgba(0, 178, 168, 0.3);
  margin-top: 12px;
  font-size: 18px;
  font-weight: 700;
}

.fb-pricing__row--total > span:last-child {
  font-family: var(--tchb-font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--tchb-primary);
  line-height: 1;
}

.fb-pricing__deposit {
  font-family: var(--tchb-font-body);
  color: var(--tchb-primary);
  font-weight: 700;
  font-size: 14px;
}

.fb-pricing__note {
  font-family: var(--tchb-font-body);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--tchb-soft-gray);
}

/* --- Step rail  —  v1 .progress-steps / .step-circle / .step-label ------
   v1's connector is a CSS triangle, not a line; reproduced on the same
   :not(:last-child)::after hook. */
.fb-steps { gap: 24px; }

.fb-steps li {
  position: relative;
  gap: 12px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 500;
  color: var(--tchb-soft-gray);
  transition: color 300ms ease;
}

.fb-steps li:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid var(--tchb-stone);
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}

.fb-steps li b {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid var(--tchb-stone);
  background: white;
  font-family: var(--tchb-font-heading);
  font-size: 18px;
  font-weight: 400;
  color: var(--tchb-soft-gray);
  transition: all 300ms ease;
}

.fb-steps li[data-fb-current="true"] {
  color: var(--tchb-dark-gray);
  background: none;
  border-color: transparent;
}

.fb-steps li[data-fb-current="true"] b {
  border-color: var(--tchb-primary);
  background: white;
  color: var(--tchb-primary);
  box-shadow: 0 0 0 4px rgba(0, 178, 168, 0.1);
}

/* v1 .progress-step.completed — dark-gray text on the teal fill, as authored. */
.fb-steps li[data-fb-done="true"] { color: var(--tchb-dark-gray); }
.fb-steps li[data-fb-done="true"] b {
  border-color: var(--tchb-primary);
  background: var(--tchb-primary);
  color: var(--tchb-dark-gray);
}
.fb-steps li[data-fb-done="true"]:not(:last-child)::after { border-left-color: var(--tchb-primary); }

@media (max-width: 768px) {
  .fb-steps li { font-size: 0; gap: 0; }
  .fb-steps li b { font-size: 18px; }
}

/* --- Access gate  —  v1 .policy-highlight / .filter-section card -------- */
.fb-gate {
  padding: 20px;
  background: var(--tchb-white);
  border: 1px solid var(--tchb-stone);
  border-radius: 12px;
  gap: 16px;
}

/* --- Errors / status --------------------------------------------------- */
.fb-error {
  color: var(--tchb-error);
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 600;
}

.fb-status {
  font-family: var(--tchb-font-body);
  font-size: 14px;
  color: var(--tchb-soft-gray);
}

/* ============================================================================
   3. BUILD  —  booking-v2/appointment.hbs
   ========================================================================== */

.page-booking-build .fb-build {
  max-width: 1200px;
  margin: 0 auto;
  padding: 50px 24px 60px;
  font-family: var(--tchb-font-body);
  color: var(--tchb-ink);
}

/* v1 .checkout-title — Noto Serif JP 42px/700, 1px tracking. v1 centred it;
   the v2 header carries an eyebrow and an intro paragraph that v1 did not, so
   the block stays left-aligned. */
.page-booking-build .fb-build__title {
  font-family: var(--tchb-font-heading);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.15;
  color: var(--tchb-ink);
  margin: 0 0 12px;
}

@media (max-width: 768px) {
  .page-booking-build .fb-build__title { font-size: 32px; }
}

.page-booking-build .fb-build__eyebrow {
  font-family: var(--tchb-font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--tchb-soft-gray);
  margin: 0 0 6px;
}

.page-booking-build .fb-build__intro {
  font-family: var(--tchb-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tchb-soft-gray);
}

.page-booking-build .fb-build__head { margin: 0 0 40px; }

/* v1 .selection-bar */
.page-booking-build .fb-build__bar {
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--tchb-stone);
  background: white;
  box-shadow: 0 4px 20px rgba(23, 30, 29, 0.08);
  transition: all 0.3s ease;
  margin-bottom: 40px;
}

.page-booking-build .fb-build__bar:hover { box-shadow: 0 8px 32px rgba(23, 30, 29, 0.12); }

/* v1 .section-title-2 — 22px/700 Noto Serif JP with a 4x24 teal bar before it */
.page-booking-build .fb-build__bar .fb-panel__title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--tchb-font-heading);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--tchb-ink);
}

.page-booking-build .fb-build__bar .fb-panel__title::before {
  content: '';
  width: 4px;
  height: 24px;
  background: linear-gradient(135deg, var(--tchb-primary) 0%, var(--tchb-primary) 100%);
  border-radius: 2px;
  flex: none;
}

/* v1 .service-staff-row: grid, 12px gap, centre-aligned */
.page-booking-build .fb-build__bar-grid {
  grid-template-columns: 2fr 2fr;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

@media (max-width: 968px) {
  .page-booking-build .fb-build__bar-grid { grid-template-columns: 1fr; gap: 10px; }
}

/* v1 `.selection-label { display: none }` — the labels are deliberately hidden.
   Reproduced visually with the clip pattern rather than display:none so the
   wrapped <select> keeps an accessible name; renders identically to v1. */
.page-booking-build .fb-build__field-label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* v1 .placeholder-message, with its two inline overrides folded in */
.page-booking-build .fb-build__empty {
  padding: 64px 24px;
  background: white;
  border-radius: 12px;
  color: var(--tchb-soft-gray);
  text-align: center;
  gap: 0;
  box-shadow: 0 4px 24px rgba(0, 178, 168, 0.1);
}

.page-booking-build .fb-build__empty-icon {
  display: block;
  margin-bottom: 20px;
  color: var(--tchb-soft);
  opacity: 0.7;
}

.page-booking-build .fb-build__empty h2 {
  font-family: var(--tchb-font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--tchb-ink);
  margin: 0 0 12px;
}

.page-booking-build .fb-build__empty p {
  font-family: var(--tchb-font-body);
  font-size: 15px;
  line-height: 1.6;
  color: var(--tchb-soft-gray);
}

/* v1 .btn-back-services */
.page-booking-build .fb-build__back {
  display: block;
  margin-top: 14px;
  padding: 14px 24px;
  text-align: center;
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--tchb-primary);
  background: white;
  border: 2px solid var(--tchb-stone);
  border-radius: 12px;
  text-decoration: none;
  transition: all 150ms ease;
}

.page-booking-build .fb-build__back:hover {
  background: var(--tchb-white);
  color: var(--tchb-primary);
  border-color: var(--tchb-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 178, 168, 0.15);
}

/* v1 .booking-content: 2fr 1fr, 32px, collapsing at 968px */
@media (min-width: 62rem) {
  .page-booking-build .fb-build__layout { grid-template-columns: 2fr 1fr; gap: 32px; }
}

/* The painted dropdown that /bookings/build renders over the native <select>.
   Matched to v1 .form-select so both controls read as one family. */
.page-booking-build .fb-select__trigger {
  min-height: 44px;
  padding: 10px 14px;
  border: 2px solid var(--tchb-stone);
  border-radius: 8px;
  background: var(--tchb-white);
  font-family: var(--tchb-font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--tchb-ink);
  transition: all 0.3s ease;
}

.page-booking-build .fb-select__trigger:hover { background: white; border-color: var(--tchb-soft); }

.page-booking-build .fb-select.is-open .fb-select__trigger {
  border-color: var(--tchb-primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(0, 178, 168, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
}

.page-booking-build .fb-select__menu {
  border: 2px solid var(--tchb-stone);
  border-radius: 8px;
  background: white;
  box-shadow: 0 8px 32px rgba(23, 30, 29, 0.12);
}

.page-booking-build .fb-select__option {
  font-family: var(--tchb-font-body);
  font-size: 13px;
  color: var(--tchb-ink);
}

.page-booking-build .fb-select__option:hover { background: var(--tchb-soft); }

.page-booking-build .fb-select__option-meta,
.page-booking-build .fb-select__value-meta { color: var(--tchb-soft-gray); font-size: 12px; }

.page-booking-build .fb-select__thumb {
  border-radius: 12px;
  background: linear-gradient(135deg, var(--tchb-soft) 0%, var(--tchb-soft) 100%);
  color: var(--tchb-primary);
  box-shadow: 0 4px 12px rgba(0, 178, 168, 0.15);
}

/* ============================================================================
   4. MANAGE  —  booking-v2/my-appointments.hbs
   ========================================================================== */

.page-booking-manage .fb-manage {
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 24px 80px;
  background: var(--tchb-white);
  font-family: var(--tchb-font-body);
  color: var(--tchb-ink);
}

/* v1 .appointments-header h1 */
.page-booking-manage .fb-manage h1 {
  font-family: var(--tchb-font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--tchb-ink);
  margin: 0 0 8px;
}

@media (max-width: 768px) {
  .page-booking-manage .fb-manage h1 { font-size: 2rem; }
  .page-booking-manage .fb-manage { padding-top: 60px; }
}

.page-booking-manage .fb-manage__group h2 {
  font-family: var(--tchb-font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--tchb-ink);
}

.page-booking-manage .fb-eyebrow {
  background: none;
  padding: 0;
  color: var(--tchb-soft-gray);
  font-family: var(--tchb-font-body);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

/* v1 .appointment-card */
.page-booking-manage .fb-appt {
  background: white;
  border: 1px solid var(--tchb-stone);
  border-radius: 12px;
  padding: 24px;
  box-shadow: none;
  transition: box-shadow 0.3s ease;
  gap: 12px;
}

.page-booking-manage .fb-appt:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); }

/* v1 .service-name */
.page-booking-manage .fb-appt__title {
  font-family: var(--tchb-font-body);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--tchb-ink);
}

/* v1 .badge.status-confirmed */
.page-booking-manage .fb-appt__status {
  padding: 6px 12px;
  border-radius: 20px;
  background: #E8F5E9;
  color: #2E7D32;
  font-family: var(--tchb-font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: capitalize;
}

/* v1 .item-meta */
.page-booking-manage .fb-appt__meta {
  font-family: var(--tchb-font-body);
  font-size: 0.875rem;
  color: var(--tchb-soft-gray);
}

/* v1 .appointment-footer */
.page-booking-manage .fb-appt__actions {
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--tchb-stone);
}

/* v1 my-*.hbs .btn-primary / .btn-action */
.page-booking-manage .fb-button {
  padding: 12px 32px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: normal;
}

.page-booking-manage .fb-button--ghost {
  padding: 8px 16px;
  border: 1px solid var(--tchb-stone);
  border-radius: 6px;
  background: white;
  color: var(--tchb-ink);
  font-size: 0.875rem;
  font-weight: 500;
}

.page-booking-manage .fb-button--ghost:hover {
  background: var(--tchb-primary);
  border-color: var(--tchb-primary);
  color: white;
}

.page-booking-manage .fb-empty {
  font-family: var(--tchb-font-body);
  font-size: 0.9375rem;
  color: var(--tchb-soft-gray);
}

.page-booking-manage .fb-empty a { color: var(--tchb-primary); font-weight: 600; }

/* ============================================================================
   5. UNAVAILABLE / EDGE STATES  —  v1 .empty-state (service-detail.hbs)
   ========================================================================== */

.fb-unavailable {
  padding: 80px 24px;
  max-width: 600px;
  margin: 40px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 178, 168, 0.1);
  gap: 0;
  font-family: var(--tchb-font-body);
}

/* v1 .empty-icon: 100x100 sage circle, 48px forest glyph */
.fb-unavailable__icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: var(--tchb-soft);
  color: var(--tchb-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}

/* v1 .empty-title */
.fb-unavailable h1 {
  font-family: var(--tchb-font-heading);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--tchb-ink);
  margin: 0 0 12px;
}

/* v1 .empty-description */
.fb-unavailable p {
  font-family: var(--tchb-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--tchb-soft-gray);
  max-width: 400px;
  margin: 0 auto;
}

.fb-unavailable__actions { gap: 12px; margin-top: 32px; }

/* ============================================================================
   6. CONFIRMATION  —  /bookings/thank-you
   ----------------------------------------------------------------------------
   v1's booking-v2/checkout.hbs and the confirmation view had NO <style> block:
   they linked /content/plugins/booking-v2/assets/css/checkout.css, which is not
   in the v1 repo. Nothing to copy. These rules are written in the v1 booking
   vocabulary (Montserrat body, Noto Serif JP headings, forest-primary, 12px
   card radius, stone-gray hairlines) rather than ported from a v1 source.
   ========================================================================== */

.page-booking-confirmation .booking-confirmation {
  font-family: var(--tchb-font-body);
  color: var(--tchb-ink);
  max-width: 1200px;
  gap: 32px;
  padding: 50px 24px 80px;
}

.page-booking-confirmation .booking-confirmation__eyebrow {
  font-family: var(--tchb-font-body);
  color: var(--tchb-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.page-booking-confirmation .booking-confirmation h1 {
  font-family: var(--tchb-font-heading);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 50px;
  color: var(--tchb-ink);
}

.page-booking-confirmation .booking-confirmation h2 {
  font-family: var(--tchb-font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--tchb-ink);
}

.page-booking-confirmation .booking-confirmation h2 a { color: inherit; text-decoration: none; }

@media (max-width: 767px) {
  .page-booking-confirmation .booking-confirmation h1 { font-size: 32px; line-height: 36px; }
}

.page-booking-confirmation .booking-confirmation__card,
.page-booking-confirmation .booking-confirmation__purchase,
.page-booking-confirmation .booking-confirmation__account {
  padding: 32px;
  border: 0;
  border-radius: 12px;
  background: white;
  box-shadow: 0 4px 24px rgba(0, 178, 168, 0.1);
}

.page-booking-confirmation .booking-confirmation__media { border-radius: 8px; }

.page-booking-confirmation .booking-confirmation__details dt {
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 400;
  color: var(--tchb-soft-gray);
}

.page-booking-confirmation .booking-confirmation__details dd {
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--tchb-ink);
}

.page-booking-confirmation .booking-confirmation__occurrence,
.page-booking-confirmation .booking-confirmation__included li {
  background: var(--tchb-white);
  border: 1px solid var(--tchb-stone);
  border-radius: 8px;
}

.page-booking-confirmation .booking-confirmation__actions a {
  min-height: 0;
  padding: 12px;
  border: 2px solid var(--tchb-primary);
  border-radius: 8px;
  background: white;
  color: var(--tchb-primary);
  font-family: var(--tchb-font-body);
  font-size: 14px;
  font-weight: 500;
  transition: all 150ms ease;
}

.page-booking-confirmation .booking-confirmation__actions a:hover {
  background: var(--tchb-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0, 178, 168, 0.3);
}

.page-booking-confirmation .booking-confirmation__actions a:first-child {
  padding: 14px 24px;
  border-color: var(--tchb-primary);
  background: var(--tchb-primary);
  color: white;
  font-size: 16px;
  letter-spacing: 0.5px;
}

.page-booking-confirmation .fb-receipt__brand {
  font-family: var(--tchb-font-heading);
  font-weight: 700;
  color: var(--tchb-ink);
}

.page-booking-confirmation .fb-receipt__tag {
  font-family: var(--tchb-font-body);
  color: var(--tchb-soft-gray);
}
