/*
  Tonitza — room reservation styles (room showcase, availability, thanks page).
  Loaded from templates/bookings/*.html after main.css; the shared form styling
  (.booking-form, .bk-*, .hp-wrap) lives in main.css. Only what is specific to
  the room page and the confirmation page is here. See docs/brand/web-identity.md.
*/

/* ---------- Room showcase ---------- */
/* A plain 4:5 photograph with its caption beneath, beside the room's story.
   No overlay, no shadow, no hover zoom — the photograph is simply shown. */
.room-showcase {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.room-showcase__media { margin: 0; }
.room-showcase__frame { background: var(--paper-3); }
.room-showcase__cap {
  display: flex; flex-direction: column; gap: 0.15rem;
  margin-top: 0.8rem;
}
.room-showcase__name {
  font-family: var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 32;
  font-size: 1.35rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.room-showcase__tag { font-size: 0.85rem; color: var(--ink-soft); }
.room-showcase__body > .prose { max-width: 56ch; }

/* The facts in one inline row: Fraunces numbers in ink, tracked labels beside
   them, hairlines between the pairs. */
.room-facts {
  list-style: none; margin: 1.6rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 0.6rem 0;
}
.room-facts li { display: flex; align-items: baseline; gap: 0.5rem; }
.room-facts li + li { padding-left: 1.6rem; margin-left: 1.6rem; border-left: 1px solid var(--line); }
.room-facts__n {
  font-family: var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 32;
  font-size: 2.2rem;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.room-facts__l {
  font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* Amenities: a quiet list of line icons and labels. */
.amenities {
  list-style: none; margin: 1.8rem 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 0.6rem 1.2rem;
}
.amenity { display: flex; align-items: center; gap: 0.55rem; font-size: 0.9rem; }
.amenity__icon { width: 20px; height: 20px; color: var(--ink); flex: none; }
/* Accessibility line — always shown; the "not step-free" variant carries the
   one clay accent so the caveat reads as a caveat, not a feature. */
.room-access { display: flex; align-items: center; gap: 0.55rem; margin: 1.1rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }
.room-access--stairs .amenity__icon { color: var(--clay); }
.room-pricenote { margin: 1.2rem 0 0; color: var(--ink-soft); font-size: 0.88rem; }

/* ---------- Availability (filled by booking.js after a date is picked) ---------- */
.availability {
  margin-top: 1rem; padding: 0.9rem 1.1rem;
  background: var(--white); border: 1px solid var(--line);
}
.availability__head {
  font-size: 0.68rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); margin: 0 0 0.6rem;
}
.availability__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.availability__list:empty { display: none; }
/* A taken window reads like the "reserved" status tag: ochre tint + ochre rule, ink text (solid ochre under ink is only ~3.1:1). */
.availability__slot {
  font-variant-numeric: tabular-nums; font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em;
  padding: 0.32rem 0.6rem;
  background: color-mix(in srgb, var(--ochre) 28%, var(--paper)); box-shadow: inset 0 0 0 1px var(--ochre); color: var(--ink);
}
.availability__free { margin: 0; color: var(--ink); font-size: 0.92rem; }
.availability__closed { margin: 0; color: var(--clay-deep); font-size: 0.92rem; font-weight: 500; }

.booking-form__foot { display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; margin-top: 0.6rem; }
.booking-form__note { font-size: 0.82rem; color: var(--ink-soft); margin: 0; }

@media (max-width: 820px) {
  .room-showcase { grid-template-columns: 1fr; }
  .room-facts__n { font-size: 1.9rem; }
  .room-facts li + li { padding-left: 1.1rem; margin-left: 1.1rem; }
}

/* ---------- Reservation success screen ---------- */
.thanks { max-width: 620px; margin-inline: auto; text-align: center; }
.thanks__mark { width: 76px; height: 76px; margin: 0 auto 1.6rem; color: var(--ink); }
.thanks__mark svg { width: 100%; height: 100%; }
.thanks__check { stroke-dasharray: 40; stroke-dashoffset: 40; animation: thanks-draw 0.8s var(--ease) 0.2s forwards; }
@keyframes thanks-draw { to { stroke-dashoffset: 0; } }
.thanks h1 { font-size: clamp(1.9rem, 1.3rem + 2.4vw, 3rem); }
.thanks .lead { margin-inline: auto; }
.thanks__summary {
  margin: 2.4rem auto; max-width: 420px; text-align: left;
  border-top: 1px solid var(--line);
}
.thanks__summary > div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
.thanks__summary dt { color: var(--ink-soft); font-size: 0.86rem; margin: 0; }
.thanks__summary dd { margin: 0; font-weight: 500; }
.thanks__ref {
  font-family: var(--serif);
  font-optical-sizing: none;
  font-variation-settings: "opsz" 32;
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--ink);
}
.thanks__actions { display: flex; align-items: center; justify-content: center; gap: 1.6rem; flex-wrap: wrap; }

@media (max-width: 360px) {
  /* Three facts no longer fit one row; stack them and drop the dividers. */
  .room-facts { flex-direction: column; gap: 0.5rem; }
  .room-facts li + li { padding-left: 0; margin-left: 0; border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  /* The booking-confirmation tick is hidden at stroke-dashoffset:40 and revealed
     only by its draw animation — which main.css's reduced-motion rule freezes.
     Show it drawn so the success screen still lands its mark. */
  .thanks__check { stroke-dashoffset: 0; }
}

@media print {
  .room-showcase { grid-template-columns: 1fr; }
  .availability { display: none; }
}
