/* Booking pages (/reserve, /reserve/<token>) and the rules block on the landing page. Loads after landing.css. */

.rsv-page {
  min-height: 100vh;
}

.rsv-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem max(1rem, env(safe-area-inset-right)) 0.9rem max(1rem, env(safe-area-inset-left));
  border-bottom: 1px solid var(--hairline);
}

.rsv-top .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--fg);
  text-decoration: none;
}

.rsv-top .brand-text {
  display: grid;
  line-height: 1.2;
}

.rsv-top .brand-text small {
  color: var(--gold);
  letter-spacing: 0.18em;
  font-size: 0.7rem;
}

.rsv-back {
  color: var(--fg-muted);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 0.4rem;
}

.rsv-back:hover {
  color: var(--gold-bright);
}

.rsv-main {
  width: min(100% - 2rem, 38rem);
  margin: 0 auto;
  padding: 2rem 0 4rem;
  display: grid;
  gap: 1.25rem;
}

.rsv-main h1 {
  font-size: clamp(1.7rem, 5vw, 2.3rem);
  line-height: 1.25;
  text-wrap: balance;
}

.rsv-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.rsv-card h2 {
  font-size: 1.2rem;
}

/* the conditions: numbered, one idea each */
.rules-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  counter-reset: rule;
}

.rules-list li {
  position: relative;
  display: grid;
  gap: 0.15rem;
  padding-inline-start: 2.6rem;
  counter-increment: rule;
}

.rules-list li::before {
  content: counter(rule);
  position: absolute;
  inset-inline-start: 0;
  top: 0.1rem;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--ink);
  background: linear-gradient(180deg, #f5d76e, #c9a227);
}

.rules-list strong {
  color: var(--fg);
  font-size: 1.02rem;
}

.rules-list span {
  color: var(--fg-muted);
  line-height: 1.7;
}

/* form */
.rsv-form label {
  display: grid;
  gap: 0.35rem;
  color: var(--fg);
  font-weight: 600;
}

.rsv-form input[type="text"],
.rsv-form input[type="tel"],
.rsv-form input[type="file"] {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 0.9rem;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  font: inherit;
}

.rsv-form input[type="file"] {
  padding: 0.6rem 0.7rem;
}

.rsv-form input:focus-visible {
  outline: none;
  border-color: var(--gold);
  box-shadow: var(--focus);
}

.rsv-form small {
  color: var(--fg-muted);
  font-weight: 400;
  font-size: 0.82rem;
  line-height: 1.6;
}

.rsv-kind {
  border: 0;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  min-width: 0;
}

.rsv-kind legend {
  grid-column: 1 / -1;
  padding: 0;
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.rsv-choice {
  position: relative;
}

.rsv-choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.rsv-choice span {
  display: grid;
  place-items: center;
  min-height: 52px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.25);
  color: var(--fg-muted);
  font-weight: 600;
  transition: border-color 0.18s var(--ease), background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.rsv-choice input:checked + span {
  border-color: var(--gold);
  background: rgba(212, 175, 55, 0.14);
  color: var(--gold-bright);
}

.rsv-choice input:focus-visible + span {
  box-shadow: var(--focus);
}

.rsv-preview {
  width: 7.5rem;
  height: 7.5rem;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--gold);
  justify-self: center;
}

.rsv-agree {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.6rem !important;
  font-weight: 400 !important;
  color: var(--fg-muted) !important;
  line-height: 1.7;
}

.rsv-agree input {
  width: 1.3rem;
  height: 1.3rem;
  margin-top: 0.25rem;
  accent-color: var(--gold);
}

.rsv-trap {
  position: absolute !important;
  inset-inline-start: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.rsv-error {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(220, 38, 38, 0.14);
  border: 1px solid rgba(220, 38, 38, 0.5);
  color: #fecaca;
}

.rsv-hint {
  margin: 0;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border);
  color: var(--fg);
  line-height: 1.7;
}

.rsv-note,
.rsv-help {
  margin: 0;
  color: var(--fg-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.rsv-help a {
  color: var(--gold-bright);
}

.rsv-form button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* the confirmation ticket */
.rsv-ticket {
  border-color: var(--border);
  background: linear-gradient(180deg, rgba(212, 175, 55, 0.1), rgba(255, 255, 255, 0.03));
}

.rsv-ticket.is-off {
  background: var(--surface);
  border-color: var(--hairline);
}

.rsv-when {
  display: grid;
  gap: 0.2rem;
  justify-items: start;
  padding: 0.9rem 0;
  border-block: 1px dashed var(--border);
}

.rsv-when strong {
  font-size: 1.1rem;
  color: var(--fg-muted);
}

.rsv-when span {
  font-size: 1.15rem;
  font-variant-numeric: tabular-nums;
}

.rsv-when b {
  font-size: clamp(2rem, 9vw, 2.8rem);
  line-height: 1.1;
  color: var(--gold-bright);
  font-variant-numeric: tabular-nums;
}

.rsv-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1rem;
  margin: 0;
}

.rsv-facts div {
  min-width: 0;
}

.rsv-facts dt {
  color: var(--fg-muted);
  font-size: 0.82rem;
}

.rsv-facts dd {
  margin: 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

/* the rules block on the landing page */
.requirements {
  max-width: 62rem;
  margin-inline: auto;
}

.requirements .rsv-card {
  max-width: 44rem;
}

.requirements .req-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 1.1rem;
}

@media (max-width: 480px) {
  .rsv-facts {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsv-choice span {
    transition: none;
  }
}

/* landing-polish pads every <main> > <section> like a page section; these are cards */
main.rsv-main > section.rsv-card:not(.hero):not(.news) {
  padding: 1.25rem;
}

.rsv-preview[hidden] {
  display: none;
}

/* ---- language switch (landing header, mobile sheet, booking pages) ---- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.2rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  min-width: 44px;
  padding: 0 0.7rem;
  border-radius: 999px;
  color: var(--fg-muted);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease);
}

.lang-switch a:hover {
  color: var(--gold-bright);
}

.lang-switch a[aria-current="true"] {
  background: linear-gradient(180deg, #f5d76e, #c9a227);
  color: var(--ink);
}

.lang-switch a:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.top-nav > .lang-switch {
  display: none;
}

.mobile-sheet .lang-switch {
  display: flex;
  justify-content: center;
  margin-top: 0.75rem;
}

.mobile-sheet .lang-switch a {
  min-height: 44px;
  flex: 1;
  padding: 0 0.5rem;
}

.rsv-top .lang-switch {
  margin-inline-start: auto;
}

@media (min-width: 900px) {
  .top-nav > .lang-switch {
    display: inline-flex;
    margin-inline-start: 1rem;
  }
}

/* ---- left-to-right (English): the pieces that were drawn for right-to-left ---- */
html[dir="ltr"] .news-track {
  animation-name: ticker-ltr;
}

@keyframes ticker-ltr {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

html[dir="ltr"] body {
  letter-spacing: 0;
}

html[dir="ltr"] h1,
html[dir="ltr"] h2,
html[dir="ltr"] h3 {
  font-family: var(--font-body);
  letter-spacing: -0.01em;
}

@media (min-width: 900px) {
  html[dir="ltr"] .route-fill {
    transform-origin: left;
  }

  html[dir="ltr"] .rider {
    right: auto;
    left: calc(12.5% + 75% * var(--p) - 16px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .lang-switch a {
    transition: none;
  }
}

/* booking pages: the header must fit a phone in every language */
.rsv-top {
  flex-wrap: wrap;
  row-gap: 0.4rem;
}

.rsv-back {
  white-space: nowrap;
}

@media (max-width: 520px) {
  .rsv-top .brand-text {
    display: none;
  }
}

/* ---- the appointment ticket (booking page) ---- */
.tk {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #221e19 0%, #14110e 100%);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tk::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright), var(--gold-deep));
}

.tk-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem 0;
}

.tk-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.tk-brand img {
  border-radius: 12px;
  flex: none;
}

.tk-brand span {
  display: grid;
  line-height: 1.3;
  min-width: 0;
}

.tk-brand strong {
  font-size: 1.1rem;
}

.tk-brand small {
  color: var(--gold-bright);
  font-size: 0.82rem;
}

.tk-status {
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(245, 215, 110, 0.55);
  background: rgba(245, 215, 110, 0.12);
  color: var(--gold-bright);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.tk-when {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  padding: 1.6rem 1rem 1.4rem;
  text-align: center;
}

.tk-day {
  color: var(--fg-muted);
  font-size: 1.15rem;
  font-weight: 500;
}

.tk-date {
  font-size: 1.5rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tk-time {
  margin-top: 0.15rem;
  font-size: clamp(2.9rem, 15vw, 4.4rem);
  line-height: 1.05;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #fff1a8, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tk-perf {
  position: relative;
  height: 28px;
  margin-inline: 0;
}

.tk-perf::before,
.tk-perf::after {
  content: "";
  position: absolute;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-deep, #0a0a0c);
  box-shadow: inset 0 0 0 1px var(--border);
}

.tk-perf::before {
  inset-inline-start: -14px;
}

.tk-perf::after {
  inset-inline-end: -14px;
}

.tk-perf i {
  position: absolute;
  inset-inline: 22px;
  top: 50%;
  border-top: 2px dashed rgba(245, 215, 110, 0.35);
}

.tk-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 1.1rem 1.4rem 1.5rem;
}

.tk-facts .wide {
  grid-column: 1 / -1;
}

.tk-facts div {
  min-width: 0;
}

.tk-facts dt {
  color: var(--fg-muted);
  font-size: 0.82rem;
}

.tk-facts dd {
  margin: 0.1rem 0 0;
  font-size: 1.12rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.tk-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

.tk-actions .btn {
  gap: 0.55rem;
  min-height: 54px;
  padding-inline: 1rem;
  text-align: center;
}

.tk-actions .btn svg {
  flex: none;
}

.tk-hint {
  text-align: center;
}

.tk-office h2 {
  margin: 0;
}

.tk-office-name {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.tk-address {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--hairline);
  line-height: 1.7;
}

.tk-address span {
  color: var(--fg-muted);
  font-size: 0.82rem;
}

.tk-dir {
  gap: 0.55rem;
  min-height: 54px;
}

.rsv-rules summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  font-weight: 700;
  font-size: 1.05rem;
}

.rsv-rules[open] summary {
  margin-bottom: 0.7rem;
}

@media (max-width: 520px) {
  .tk-actions {
    grid-template-columns: 1fr;
  }

  .tk-facts {
    padding-inline: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tk-actions .btn {
    transition: none;
  }
}

.rsv-rules summary {
  list-style: none;
  justify-content: space-between;
}

.rsv-rules summary::-webkit-details-marker {
  display: none;
}

.rsv-rules summary::after {
  content: "";
  width: 0.6rem;
  height: 0.6rem;
  border-inline-end: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg);
  transition: transform 0.18s var(--ease);
}

.rsv-rules[open] summary::after {
  transform: rotate(-135deg);
}
