/* booking — the page's own styles, on this page only. */

/* ---------- The booking card: the rules the layout's main.css held for every page, now this folder's alone (before the page's own, as they were linked). ---------- */
.book-hint { font-size: .92rem; color: var(--muted); }

.book-card {
  scroll-margin-top: calc(var(--header-sticky-h, 0px) + 1.5rem);
  padding: 1.6rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.book-card .cal { max-width: none; margin: .6rem 0 1rem; }

.book-times[aria-busy='true'] { opacity: .6; transition: opacity .15s; }

.book-card .book-fields { grid-template-columns: 1fr; }

.book-label { font-size: .85rem; font-weight: 600; color: var(--ink); }

.slot input { position: absolute; opacity: 0; pointer-events: none; }

.slot span {
  display: block;
  text-align: center;
  padding: .6rem 0;
  border: 1.5px solid var(--line);
  border-radius: var(--radius-small);
  font-size: .92rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: all .15s ease;
}

.slot:hover span { border-color: var(--mark, var(--primary)); }

.slot input:checked + span {
  background: var(--primary);
  border-color: var(--mark, var(--primary));
  color: var(--primary-ink);
}

.slot input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }

.book-fields { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: .8rem; margin-bottom: .9rem; }

.book-fields input, .book-notes {
  width: 100%;
  padding: .85rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: .95rem;
}

.book-fields input:focus, .book-notes:focus { outline: none; border-color: var(--mark, var(--primary)); }

@media (max-width: 960px) {
  .book-fields { grid-template-columns: 1fr; }
}

.stay-guests { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }

.stay-guests input { width: 6rem; padding: .7rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-small); background: var(--bg); color: var(--ink); font-family: var(--font-body); font-size: .95rem; }

.stay-guests input:focus { outline: none; border-color: var(--mark, var(--primary)); }

@media (max-width: 640px) {
  .book-fields { grid-template-columns: 1fr; }
}

.book-card > .book-card__title { font-size: 1.25rem; margin: 0 0 1.1rem; }

.book-card .book-label { display: block; margin-bottom: .5rem; }

.book-times { scroll-margin-top: calc(var(--header-sticky-h, 0px) + 1rem); }

.book-times:focus { outline: none; }

.book-times .notice { margin-bottom: 1rem; }

.book-card .slot span { display: grid; place-items: center; height: 2.5rem; padding: 0; border-width: 1px; border-radius: 999px; background: var(--surface); font-variant-numeric: tabular-nums; }

.book-card .slot input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.book-card .slot input:focus-visible + span { outline-color: var(--mark, var(--primary)); }

.book-card .book-hint { margin: .2rem 0 0; font-size: .85rem; }

.book-card .field-error { color: var(--danger); font-weight: 500; font-size: .8rem; }

.book-details { margin-top: 1.2rem; display: grid; gap: .9rem; }

.book-details .notice { margin: 0; }

.book-chosen {
  display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem;
  background: var(--success-soft); border-radius: var(--radius-small); color: var(--ink); font-size: .92rem; font-weight: 600;
}

.book-chosen svg { width: 1.1rem; height: 1.1rem; flex: none; color: var(--success, var(--ink)); }

.book-chosen span { flex: 1; min-width: 0; }

.book-chosen__change {
  border: 0; background: none; padding: .2rem 0; font: inherit; font-size: .88rem; font-weight: 600;
  color: var(--mark, var(--primary)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}

.book-card .book-fields { display: grid; grid-template-columns: 1fr; gap: .2rem; margin: 0; }

.book-fields label { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); margin-bottom: .4rem; }

.book-fields input, .book-fields textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-small);
  background: var(--surface); color: var(--ink); font-family: var(--font-body); font-size: .97rem; margin-bottom: .35rem;
}

.book-fields textarea { resize: vertical; min-height: 5rem; }

.book-fields input:focus, .book-fields textarea:focus { outline: none; border-color: var(--mark, var(--primary)); box-shadow: 0 0 0 1px var(--mark, var(--primary)); }

.book-fields [aria-invalid='true'] { border-color: var(--danger); }

.book-fields .field-error { color: var(--danger); font-weight: 500; font-size: .8rem; margin-bottom: .3rem; }

.book-submit { width: 100%; justify-content: center; text-align: center; }

.book-card__text { margin: 0 0 1.1rem; color: var(--body-text); }

.book-card__ask { width: 100%; justify-content: center; text-align: center; }

.book-card__phone { margin: 1rem 0 .6rem; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; user-select: all; }

.book-card__phone a { color: var(--ink); text-decoration: none; }

.book-hours { list-style: none; margin: 0; padding: .8rem 0 0; border-top: 1px solid var(--line); display: grid; gap: .3rem; font-size: .9rem; }

.book-hours__day { display: flex; justify-content: space-between; gap: 1rem; color: var(--body-text); }

.book-hours__day span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }

.book-hours__day.is-off span:last-child { color: var(--muted); }

.book-hours__special-title { display: block; margin-top: .8rem; font-size: .8rem; color: var(--muted); }

.book-hours--special { border-top: 0; padding-top: .3rem; }

.booking-page__book { margin-top: 1.4rem; }

.booking-page__book .book-card { padding: 1.4rem; }

.booking-cancel__buttons { display: flex; flex-wrap: wrap; gap: .6rem; }

.booking-cancel__yes { background: var(--danger); border-color: var(--danger); color: #fff; }

.booking-cancel__yes:hover { background: var(--danger); filter: brightness(.92); color: #fff; }

.book-card > h2 { font-size: 1.3rem; margin: 0 0 .4rem; }

.booking-cancel__buttons { justify-content: center; }

.stay-guests .qty { height: 44px; background: var(--bg); }

.book-card .book-empty { color: var(--muted); font-size: .92rem; }

.slot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: .55rem;
  margin-bottom: 1.4rem;
}

.book-empty {
  padding: 1.2rem;
  background: var(--tint);
  border-radius: var(--radius-small);
  color: var(--muted);
  text-align: center;
}

.book-staff { border: 0; padding: 0; margin: 0 0 1.2rem; min-width: 0; }

.book-staff legend { padding: 0; }

.book-person { align-items: center; gap: .8rem; margin-bottom: .5rem; padding: .7rem .9rem; }

.book-staff .book-person { position: relative; align-items: center; } /* stronger than .choice's flex-start */

/* No radio dot beside the picture: the row is the choice — its frame and a check on the right say
   which; the input stays (the keyboard, the form), out of sight. */
.book-person input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }

.book-person .choice__text { flex: 1; min-width: 0; }

.book-person__check {
  display: grid; place-items: center; flex: none; width: 1.4rem; height: 1.4rem; border-radius: 50%;
  border: 1px solid var(--line); color: transparent; transition: all .15s ease;
}

.book-person__check svg { width: .9rem; height: .9rem; }

.book-person:has(input:checked) .book-person__check { background: var(--ink); border-color: var(--ink); color: var(--bg); }

.book-person:has(input:focus-visible) { outline: 2px solid var(--mark, var(--primary)); outline-offset: 2px; }

.book-person--one { display: flex; padding: 0; margin: 0 0 1.2rem; }

.avatar--any { color: var(--muted); background: var(--hover-wash); }

.avatar--any svg { width: 1.3rem; height: 1.3rem; }

.slot-part { display: block; margin: .2rem 0 .45rem; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.book-card .slot-grid { grid-template-columns: repeat(auto-fill, minmax(4.6rem, 1fr)); gap: .45rem; margin-bottom: .9rem; }

.book-card .book-empty { padding: 1.1rem 1.2rem; background: none; border: 1px dashed var(--line); text-align: left; color: var(--body-text); }

.book-card .book-empty strong { display: block; color: var(--ink); }

/* --- product page (the record pages) ------------------------
   Gallery and description left, the buy box right — the name, the price and
   the button together, staying in sight while the left side scrolls (when it
   fits the window: record.js sets .is-sticky). One column from 720px,
   with a bar at the bottom once the button scrolled away. The .product-detail
   rules below stay for designs that draw their own product page. */
.product-page { padding-top: 1.6rem; }

.product-back { display: inline-block; margin-bottom: 1.4rem; color: var(--muted); font-size: .92rem; }

.product-back:hover { color: var(--mark, var(--primary)); }

.product-crumbs .product-back { margin-bottom: 0; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "gallery buy" "about buy";
  grid-template-rows: auto 1fr;
  column-gap: clamp(2rem, 4vw, 3rem);
  row-gap: 2.4rem;
  align-items: start;
}

.product-buy { grid-area: buy; min-width: 0; }

.product-about { grid-area: about; min-width: 0; }

.product-buy.is-sticky { position: sticky; top: calc(var(--header-sticky-h, 0px) + 1.5rem); }

/* The buy box. */
.product-buy__title { font-size: clamp(1.7rem, 3vw, 2.35rem); line-height: 1.12; margin-bottom: .6rem; text-wrap: balance; }

.product-buy__lead { font-size: 1rem; color: var(--body-text); max-width: 46ch; margin: 0 0 .5rem; }

/* The bar at the bottom of a narrow screen. */
.product-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; gap: 1rem;
  padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom, 0px));
  background: var(--surface); border-top: 1px solid var(--line);
}

.product-bar__text { display: grid; min-width: 0; flex: 1; }

.product-bar__name { font-size: .8rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.product-bar__price { font-family: var(--font-display); font-weight: 700; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

@media (min-width: 721px) {
  .product-bar { display: none !important; }
}

@media (max-width: 1100px) {
  .product-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 2rem; }
}

@media (max-width: 720px) {
  .product-layout, .product-layout--nophoto { display: flex; flex-direction: column; gap: 1.8rem; }
  .product-buy.is-sticky { position: static; }
}

/* ---------- booking_receipt.twig — the booking's own page: the order's receipt, one column ---------- */
.booking-page__inner { display: grid; gap: 1.2rem; } /* its width is the order page's (.order-page__inner) */

.booking-page .order-head { margin-bottom: .4rem; }

.booking-when { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; padding: 1.4rem; flex-direction: row; }

.booking-when__text { display: grid; gap: .25rem; min-width: 0; }

.booking-when__label { font-size: .8rem; color: var(--muted); }

.booking-when__date { font-family: var(--font-display); font-size: clamp(1.25rem, 2.6vw, 1.55rem); font-weight: 700; color: var(--ink); line-height: 1.25; font-variant-numeric: tabular-nums; }

.booking-when__what { color: var(--body-text); font-size: .95rem; }

.booking-when.is-cancelled .booking-when__date { color: var(--muted); }

.booking-when__add { display: inline-flex; align-items: center; gap: .45rem; flex: none; }

.booking-when__add svg { width: 1.05rem; height: 1.05rem; }

.booking-facts { padding: 1.4rem; }

.booking-facts dd a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--muted); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: color .15s ease, text-decoration-color .15s ease; }

.booking-facts dd a:hover { color: var(--mark, var(--primary)); text-decoration-color: currentColor; }

.booking-facts dd.booking-facts__person { display: flex; align-items: center; gap: 1rem; }

.booking-facts__person .avatar.avatar { width: 3rem; height: 3rem; font-size: 1.1rem; }

.booking-facts__who { display: grid; gap: 0; line-height: 1.3; }

.booking-facts__number { font-variant-numeric: tabular-nums; }

.booking-cancel__ask { border: 0; background: none; padding: 0; color: var(--muted); font-size: .92rem; text-decoration: underline; text-underline-offset: 3px; }

.booking-cancel__ask:hover { color: var(--danger); }

.booking-cancel__confirm { padding: 1rem 1.2rem; border-radius: var(--radius); background: var(--danger-soft); }

.booking-cancel__confirm p { margin: 0 0 .8rem; color: var(--ink); font-weight: 600; }

.booking-page .order-actions { margin-top: .8rem; }

/* The booking's own page for a stay: hand-over → return, the day and the hour each. */
.booking-when--stay { flex-direction: column; align-items: stretch; }

.booking-span { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 1rem; }

.booking-span__end { display: grid; gap: .2rem; }

.booking-span__end:last-child { text-align: right; }

.booking-span__units { font-size: .88rem; color: var(--muted); white-space: nowrap; }

.booking-when__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem; padding-top: .9rem; border-top: 1px solid var(--line); }

@media (max-width: 560px) {
  .booking-span { grid-template-columns: 1fr; }

  .booking-span__end:last-child { text-align: left; }
}

.booking-cancel { text-align: center; }

/* The price on the page (_price.twig): the old price, «from», the amount, the unit, how long a visit takes. */
.booking-price { display: grid; gap: .2rem; margin: 1.2rem 0 .7rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--ink); grid-template-columns: auto; }

.booking-price__was { display: flex; align-items: center; gap: .5rem; }

.booking-price__was .price-was { font-size: .95rem; margin: 0; color: var(--muted); }

.booking-price .price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: .45rem; }

.booking-price .price { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }

.booking-price .price-from,
.booking-price .price-unit { font-size: 1rem; color: var(--muted); }

.booking-price .price-ask { font-family: var(--font-display); font-size: 1.5rem; font-weight: 600; }

.booking-price__dur { display: inline-flex; align-items: center; gap: .4rem; font-size: .95rem; color: var(--muted); }

.booking-price__dur svg { width: 1.1rem; height: 1.1rem; }

@media (max-width: 560px) {
  .booking-price .price { font-size: 1.85rem; }
}
