/* ==========================================================================
   Tours Bénies — components used by the inner pages
   Depends on tokens.css + main.css
   ========================================================================== */

/* --- Inner page hero ------------------------------------------------------ */
.tb-pagehero {
  padding-block: calc(var(--tb-header-h) + var(--tb-space-6)) var(--tb-space-6);
}
.tb-pagehero .tb-lead { margin-top: var(--tb-space-3); }
.tb-pagehero.tb-section--dark { background: var(--tb-forest-700); }

/* --- Grids ---------------------------------------------------------------- */
.tb-grid { display: grid; gap: var(--tb-space-4); }
.tb-grid--cards   { grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.tb-grid--gallery { grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); }

/* --- Card ----------------------------------------------------------------- */
.tb-card {
  background: var(--tb-surface-raised);
  border: 1px solid var(--tb-rule);
  border-radius: var(--tb-radius-lg);
  overflow: hidden;
  box-shadow: var(--tb-shadow-sm);
  transition: box-shadow var(--tb-dur-base) var(--tb-ease),
              transform var(--tb-dur-base) var(--tb-ease),
              border-color var(--tb-dur-base) var(--tb-ease);
}
.tb-card:hover {
  box-shadow: var(--tb-shadow-lg);
  transform: translateY(-4px);
  border-color: var(--tb-gold-300);
}
.tb-card__link { display: block; height: 100%; }
.tb-card .tb-figure, .tb-card .tb-ph { border-radius: 0; border-inline: 0; border-top: 0; }
.tb-card__body { padding: var(--tb-space-3); display: grid; gap: .5rem; }
.tb-card__title { font-size: 1.25rem; }
.tb-card__meta {
  font-size: var(--tb-size-micro);
  letter-spacing: var(--tb-track-eyebrow);
  text-transform: uppercase;
  color: var(--tb-gold-700);
  font-weight: 700;
}
.tb-card__excerpt { font-size: var(--tb-size-small); color: var(--tb-ink-soft); }

/* Images inside a card lift very slightly on hover — the card moves, the
   photograph breathes. Any more than this reads as a stock template. */
.tb-card .tb-figure img { transition: transform var(--tb-dur-slow) var(--tb-ease); }
.tb-card:hover .tb-figure img { transform: scale(1.03); }

/* --- Chips / filters ------------------------------------------------------ */
.tb-filters {
  display: flex; flex-wrap: wrap; gap: .5rem;
  margin-bottom: var(--tb-space-5);
  padding-bottom: var(--tb-space-3);
  border-bottom: 1px solid var(--tb-rule);
}
.tb-chip {
  display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px;
  padding: .625rem 1.125rem;
  border: 1px solid var(--tb-rule);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface-raised);
  font-size: var(--tb-size-small);
  cursor: pointer;
  transition: border-color var(--tb-dur-fast) var(--tb-ease),
              background var(--tb-dur-fast) var(--tb-ease),
              color var(--tb-dur-fast) var(--tb-ease);
}
.tb-chip:hover { border-color: var(--tb-gold-500); color: var(--tb-gold-700); }
.tb-chip input { position: absolute; opacity: 0; width: 0; height: 0; }

/* The whole chip is the target, so the focus ring belongs on the chip, not
   the visually-hidden radio inside it. */
.tb-chip:has(input:focus-visible) {
  outline: 2px solid var(--tb-gold-700);
  outline-offset: 3px;
}
.tb-chip:has(input:checked), .tb-chip--link.is-on {
  background: var(--tb-forest-700);
  border-color: var(--tb-forest-700);
  color: var(--tb-cream);
}
[data-theme="dark"] .tb-chip:has(input:checked),
[data-theme="dark"] .tb-chip--link.is-on {
  background: var(--tb-gold-500);
  border-color: var(--tb-gold-500);
  color: #17281A;
}

/* --- Booking chooser ------------------------------------------------------ */
.tb-booking { display: grid; gap: var(--tb-space-5); }
.tb-chooser { display: grid; gap: var(--tb-space-4); }
.tb-chooser__step { border: 0; padding: 0; margin: 0; }
.tb-chooser__legend {
  display: flex; align-items: baseline; gap: .75rem;
  font-family: var(--tb-font-display);
  font-size: var(--tb-size-h3);
  color: var(--tb-forest-700);
  margin-bottom: var(--tb-space-3);
  padding: 0;
}
[data-theme="dark"] .tb-chooser__legend { color: var(--tb-cream); }
.tb-chooser__n {
  font-size: var(--tb-size-micro);
  font-weight: 800;
  letter-spacing: var(--tb-track-eyebrow);
  color: var(--tb-gold-700);
  font-family: var(--tb-font-body);
}
.tb-chooser__opts { display: flex; flex-wrap: wrap; gap: .625rem; }

/* --- Forms ---------------------------------------------------------------- */
.tb-form { display: grid; gap: var(--tb-space-3); }
.tb-form__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--tb-space-3);
}
.tb-field { display: grid; gap: .375rem; }
.tb-field label {
  font-size: var(--tb-size-small);
  font-weight: 700;
  color: var(--tb-ink);
}
.tb-field label em { font-weight: 400; font-style: normal; color: var(--tb-ink-faint); }
.tb-field :is(input, textarea, select) {
  width: 100%;
  min-height: 48px;
  padding: .75rem 1rem;
  background: var(--tb-surface-raised);
  border: 1px solid var(--tb-sand);
  border-radius: var(--tb-radius-sm);
  color: var(--tb-ink);
  transition: border-color var(--tb-dur-fast) var(--tb-ease),
              box-shadow var(--tb-dur-fast) var(--tb-ease);
}
.tb-field textarea { min-height: 120px; resize: vertical; }
.tb-field :is(input, textarea):focus {
  border-color: var(--tb-gold-500);
  box-shadow: 0 0 0 3px rgba(180, 137, 79, .18);
  outline: none;
}
.tb-field :is(input, textarea)::placeholder { color: var(--tb-ink-faint); }

/* Honeypot. Must be reachable by a bot parsing the DOM but invisible and
   unfocusable for a person — display:none would let smarter bots skip it. */
.tb-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}

/* --- Notices --------------------------------------------------------------
   Accented with the same gold gradient hairline used by .tb-rule--gold, not a
   thick left tab. The tab is off-system here: this brand's whole accent
   vocabulary is hairlines and washes, and a 3px slab is the one heavy edge in
   a design built on 1px rules. */
.tb-notice {
  position: relative;
  padding: var(--tb-space-3) var(--tb-space-4);
  border-radius: var(--tb-radius-md);
  border: 1px solid var(--tb-rule);
  background: var(--tb-blush-50);
  overflow: hidden;
}
.tb-notice::before {
  content: "";
  position: absolute; inset-block-start: 0; inset-inline: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--tb-gold-500), transparent);
}
.tb-notice--bad::before { background: linear-gradient(90deg, #A6402C, transparent); }
.tb-notice--ok::before  { background: linear-gradient(90deg, #4A7A4E, transparent); }

/* Content the client still owes. Deliberately looks unfinished. */
.tb-awaiting {
  font-size: var(--tb-size-small);
  color: var(--tb-gold-700);
  border: 1px dashed rgba(180, 137, 79, .45);
  border-radius: var(--tb-radius-sm);
  padding: .75rem 1rem;
  background: var(--tb-blush-50);
}

/* --- Spec list ------------------------------------------------------------ */
.tb-specs { margin-top: var(--tb-space-4); display: grid; }
.tb-specs__row {
  display: grid;
  grid-template-columns: minmax(120px, 30%) 1fr;
  gap: var(--tb-space-2);
  padding-block: .75rem;
  border-top: 1px solid var(--tb-rule);
}
.tb-specs__row:last-child { border-bottom: 1px solid var(--tb-rule); }
.tb-specs dt {
  font-size: var(--tb-size-micro);
  font-weight: 800;
  letter-spacing: var(--tb-track-eyebrow);
  text-transform: uppercase;
  color: var(--tb-gold-700);
}
.tb-specs dd { margin: 0; }

.tb-note {
  margin-top: var(--tb-space-4);
  font-size: var(--tb-size-small);
  color: var(--tb-ink-soft);
  max-width: 52ch;
}

/* --- Testimonials --------------------------------------------------------- */
.tb-quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: var(--tb-space-4);
}
.tb-quote {
  margin: 0;
  padding: var(--tb-space-4);
  background: var(--tb-blush-50);
  border-radius: var(--tb-radius-lg);
  display: grid; gap: var(--tb-space-3);
}
.tb-quote blockquote {
  margin: 0;
  font-family: var(--tb-font-display);
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--tb-forest-700);
}
[data-theme="dark"] .tb-quote blockquote { color: var(--tb-cream); }
/* the_content() wraps the quote in <p>; marks on the blockquote itself would
   sit on their own lines, so they hang on the first and last paragraph. */
.tb-quote blockquote p:first-child::before { content: "\201C"; color: var(--tb-gold-500); }
.tb-quote blockquote p:last-child::after   { content: "\201D"; color: var(--tb-gold-500); }
.tb-quote blockquote p + p { margin-top: .75em; }
.tb-quote figcaption { display: grid; gap: .125rem; }
.tb-quote__who {
  font-size: var(--tb-size-small); font-weight: 700;
}
.tb-quote__role {
  font-size: var(--tb-size-micro);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--tb-ink-soft);
}

/* --- Empty states --------------------------------------------------------- */
.tb-empty {
  text-align: center;
  padding: var(--tb-space-7) var(--tb-space-3);
  border: 1px dashed var(--tb-sand);
  border-radius: var(--tb-radius-lg);
  background: var(--tb-blush-50);
}
.tb-empty p { max-width: 46ch; margin-inline: auto; margin-top: var(--tb-space-2); color: var(--tb-ink-soft); }
.tb-empty .tb-btn-row { justify-content: center; }

/* --- Prose (client-authored content) -------------------------------------- */
.tb-prose > * + * { margin-top: var(--tb-space-3); }
.tb-prose :is(h2, h3) { margin-top: var(--tb-space-5); }
.tb-prose ul, .tb-prose ol { padding-inline-start: 1.5rem; }
.tb-prose li + li { margin-top: .375rem; }
.tb-prose a {
  color: var(--tb-gold-700);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.tb-prose blockquote {
  border-inline-start: 2px solid var(--tb-gold-500);
  padding-inline-start: var(--tb-space-3);
  font-family: var(--tb-font-display);
  font-style: italic;
  color: var(--tb-ink-soft);
}
.tb-prose img { border-radius: var(--tb-radius-md); }

/* --- Pagination ----------------------------------------------------------- */
.pagination, .nav-links {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin-top: var(--tb-space-6);
}
.page-numbers {
  display: grid; place-items: center;
  min-width: 44px; min-height: 44px;
  padding-inline: .75rem;
  border: 1px solid var(--tb-rule);
  border-radius: var(--tb-radius-sm);
  font-size: var(--tb-size-small);
  transition: border-color var(--tb-dur-fast) var(--tb-ease),
              color var(--tb-dur-fast) var(--tb-ease);
}
.page-numbers:hover { border-color: var(--tb-gold-500); color: var(--tb-gold-700); }
.page-numbers.current {
  background: var(--tb-forest-700);
  border-color: var(--tb-forest-700);
  color: var(--tb-cream);
}

/* --- Search --------------------------------------------------------------- */
.tb-search { display: flex; gap: .5rem; flex-wrap: wrap; }
.tb-search input {
  flex: 1 1 220px;
  min-height: 48px;
  padding: .75rem 1rem;
  border: 1px solid var(--tb-sand);
  border-radius: var(--tb-radius-sm);
  background: var(--tb-surface-raised);
}

/* --- Footer --------------------------------------------------------------- */
.tb-footer__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--tb-space-5);
  align-items: start;
  margin-bottom: var(--tb-space-6);
}
.tb-footer__brand { display: grid; justify-items: start; gap: var(--tb-space-3); }
.tb-footer__logo { width: min(170px, 44vw); height: auto; margin: 0; opacity: .92; }
.tb-footer__slogans {
  display: grid; gap: .25rem;
  font-family: var(--tb-font-display);
  font-style: italic;
  color: var(--tb-gold-300);
  font-size: var(--tb-size-small);
}
.tb-footer__h {
  font-size: var(--tb-size-micro);
  font-family: var(--tb-font-body);
  font-weight: 800;
  letter-spacing: var(--tb-track-eyebrow);
  text-transform: uppercase;
  color: var(--tb-gold-300);
  margin-bottom: var(--tb-space-2);
}
.tb-contact { list-style: none; padding: 0; display: grid; gap: .625rem; }
.tb-contact li { display: grid; gap: .125rem; font-size: var(--tb-size-small); }
.tb-contact__k {
  font-size: var(--tb-size-micro);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(251, 248, 244, .55);
}
.tb-contact a:hover { color: var(--tb-gold-300); }
.tb-contact__v { line-height: 1.8; }

.tb-footer__links { list-style: none; padding: 0; display: grid; gap: .5rem; }
.tb-footer__links a { font-size: var(--tb-size-small); }
.tb-footer__links a:hover { color: var(--tb-gold-300); }

.tb-social { display: flex; gap: .5rem; margin-top: var(--tb-space-3); }
.tb-social a {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--tb-rule-dark);
  border-radius: var(--tb-radius-sm);
  transition: border-color var(--tb-dur-fast) var(--tb-ease),
              color var(--tb-dur-fast) var(--tb-ease);
}
.tb-social a:hover { border-color: var(--tb-gold-300); color: var(--tb-gold-300); }
.tb-social svg { width: 19px; height: 19px; }

.tb-footer__credit {
  text-align: center;
  margin-top: var(--tb-space-4);
  font-size: var(--tb-size-small);
  color: rgba(251, 248, 244, .6);
}
.tb-footer .tb-rule--gold { margin-block: var(--tb-space-5) 0; }

/* The sister business (HSE Day facilitation) — a signpost, not a sales line,
   so it sits quietly above the rule rather than competing with the columns. */
.tb-footer__sister {
  margin: var(--tb-space-5) 0 0;
  font-size: var(--tb-size-small);
  color: rgba(251, 248, 244, .72);
}
.tb-footer__sister a {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--tb-gold-300);
  text-decoration: underline;
  text-decoration-color: rgba(212, 185, 138, .4);
  text-underline-offset: .25em;
}
.tb-footer__sister a:hover { text-decoration-color: currentColor; }
.tb-footer__sister svg { flex: none; }

/* --- Single --------------------------------------------------------------- */
.tb-single .tb-split { align-items: start; }

/* --- Structural hooks -----------------------------------------------------
   These carry little visual styling, but they are grid children, and grid
   children default to min-width:auto — the exact rule that made the hero
   overflow on mobile. Pinning min-width:0 here stops that recurring. */
.tb-booking__form { min-width: 0; margin-top: var(--tb-space-4); }
.tb-footer__contact, .tb-footer__nav { min-width: 0; }


/* --- Footer widget area ---------------------------------------------------- */
.tb-footer__widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--tb-space-4);
  margin-bottom: var(--tb-space-6);
  padding-bottom: var(--tb-space-5);
  border-bottom: 1px solid var(--tb-rule-dark);
}
.tb-widget { min-width: 0; font-size: var(--tb-size-small); }
.tb-widget__title {
  font-family: var(--tb-font-body);
  font-size: var(--tb-size-micro);
  font-weight: 800;
  letter-spacing: var(--tb-track-eyebrow);
  text-transform: uppercase;
  color: var(--tb-gold-300);
  margin-bottom: var(--tb-space-2);
}
.tb-widget ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.tb-widget a:hover { color: var(--tb-gold-300); }


/* --- Shared bits added with the real content ------------------------------ */
.tb-section-head { margin-bottom: var(--tb-space-6); }
.tb-split--top { align-items: start; }

.tb-signoff {
  margin-top: var(--tb-space-3);
  font-family: var(--tb-font-display);
  font-style: italic;
  color: var(--tb-gold-700);
}

/* Daily rate on a rental item */
.tb-price {
  margin: var(--tb-space-2) 0 var(--tb-space-3);
  font-size: var(--tb-size-lead);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--tb-gold-700);
}

/* --- "Good to know" facts band -------------------------------------------
   Every figure is a Customizer value, so the client's price changes flow here. */
.tb-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: var(--tb-space-4);
}
.tb-fact { min-width: 0; padding-top: var(--tb-space-3); border-top: 1px solid var(--tb-rule); }
.tb-fact__n {
  font-family: var(--tb-font-display);
  font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
  line-height: 1.05;
  color: var(--tb-forest-700);
}
[data-theme="dark"] .tb-fact__n { color: var(--tb-cream); }
.tb-fact__l {
  margin-top: .375rem;
  font-size: var(--tb-size-micro);
  font-weight: 800;
  letter-spacing: var(--tb-track-eyebrow);
  text-transform: uppercase;
  color: var(--tb-gold-700);
}
.tb-fact__p { margin-top: var(--tb-space-2); font-size: var(--tb-size-small); color: var(--tb-ink-soft); max-width: 40ch; }
.tb-facts__more { margin-top: var(--tb-space-4); }

/* --- Photos of one item / event ------------------------------------------ */
.tb-photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr));
  gap: var(--tb-space-2);
  margin-top: var(--tb-space-6);
}
.tb-photos__item {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--tb-radius-md);
  background: var(--tb-blush-100);
}
.tb-photos__item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--tb-dur-slow) var(--tb-ease); }
.tb-photos__item:hover img { transform: scale(1.04); }

.tb-figure--zoom { display: block; cursor: zoom-in; }
.tb-event-photos { margin-top: var(--tb-space-5); }
.tb-event-photos .tb-figure { display: block; cursor: zoom-in; }
.tb-event-photos .tb-figure img { transition: transform var(--tb-dur-slow) var(--tb-ease); }
.tb-event-photos .tb-figure:hover img { transform: scale(1.03); }
.tb-single .tb-eyebrow a:hover { color: var(--tb-gold-500); }

/* --- Lightbox (native <dialog>) ------------------------------------------ */
.tb-lightbox[open] {
  width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh;
  margin: 0;
  padding: var(--tb-space-5) var(--tb-gutter);
  border: 0;
  background: rgba(12, 20, 13, .95);
  color: var(--tb-cream);
  display: grid;
  place-items: center;
}
.tb-lightbox::backdrop { background: rgba(12, 20, 13, .6); }
.tb-lightbox__fig { margin: 0; display: grid; gap: .75rem; justify-items: center; }
.tb-lightbox__img {
  max-width: min(92vw, 1100px);
  max-height: calc(100vh - 8rem);
  width: auto; height: auto;
  object-fit: contain;
  border-radius: var(--tb-radius-md);
}
.tb-lightbox__cap { font-size: var(--tb-size-small); letter-spacing: .08em; color: rgba(251, 248, 244, .7); }
.tb-lightbox__btn {
  position: fixed;
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(251, 248, 244, .25);
  border-radius: 50%;
  background: rgba(251, 248, 244, .06);
  color: var(--tb-cream);
  font-size: 1.75rem; line-height: 1;
  cursor: pointer;
  transition: background var(--tb-dur-fast) var(--tb-ease), border-color var(--tb-dur-fast) var(--tb-ease);
}
.tb-lightbox__btn:hover { background: rgba(251, 248, 244, .14); border-color: var(--tb-gold-300); }
/* display:grid above beats the UA's [hidden]{display:none}, so restate it. */
.tb-lightbox__btn[hidden] { display: none; }
.tb-lightbox__close { top: 1rem; right: 1rem; }
.tb-lightbox__prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.tb-lightbox__next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* --- Rentals notice ---------------------------------------------------------
   The photographs show stands full of desserts, so this says plainly that the
   rental is the display piece only. A full hairline border, not a side tab. */
.tb-callout {
  display: flex; gap: .875rem; align-items: flex-start;
  margin-bottom: var(--tb-space-4);
  padding: var(--tb-space-3) var(--tb-space-4);
  background: var(--tb-gold-100);
  border: 1px solid rgba(180, 137, 79, .45);
  border-radius: var(--tb-radius-md);
  color: var(--tb-ink);
}
.tb-callout p { margin: 0; max-width: 72ch; }
.tb-callout strong { color: var(--tb-forest-700); font-weight: 800; }
[data-theme="dark"] .tb-callout strong { color: var(--tb-cream); }
.tb-callout__icon { flex: none; width: 22px; height: 22px; margin-top: .1rem; color: var(--tb-gold-700); }
.tb-callout--compact { margin: 0 0 var(--tb-space-3); padding: .75rem 1rem; font-size: var(--tb-size-small); }
.tb-callout--compact .tb-callout__icon { width: 18px; height: 18px; }

/* --- Enquiry form: three steps in one form --------------------------------- */
.tb-enquiry { gap: var(--tb-space-5); }
.tb-chooser__hint { margin: -.5rem 0 var(--tb-space-2); font-size: var(--tb-size-small); color: var(--tb-ink-soft); }
.tb-chooser__step .tb-callout { margin: var(--tb-space-3) 0 0; }
.tb-chooser__step > .tb-form__grid + .tb-field { margin: var(--tb-space-3) 0 0; }
/* A tick marks multi-select choices, so they don't read as either/or. */
.tb-chip:has(input[type="checkbox"]:checked) span::before { content: "\2713"; margin-right: .4rem; }
