.tour-hero { padding-block: clamp(28px, 4vw, 56px) 28px; text-align: center; }
.tour-hero h1 { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.tour-hero p { margin-top: 12px; }
body:has(.tour-scene-complete:target) {
  --paper: #251e16;
  --wash: #33291c;
  --line: #675339;
  --green: #f2cf87;
  --ink: #fff5e6;
  --muted: #ddcbb2;
  --dark: #1b150e;
}
body:has(.tour-scene-complete:target) .closing {
  border-color: var(--line);
  background-color: #372b1c;
}
body:has(.tour-scene-complete:target) .closing::after {
  background-image: radial-gradient(circle, #f2cf874d 1px, transparent 1.5px);
}
.booking-tour {
  --tour-accent: #00813c;
  --tour-rule: #dedddb;
  --tour-muted: #625c55;
  --tour-cue-ring: #7288a4;
  --tour-cue-halo: #7e9bbb28;
}
.tour-scene:not(:first-child):not(:target),
.booking-tour:has(.tour-scene:target) .tour-scene:not(:target) { display: none; }
.tour-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.tour-steps a, .tour-step-label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  height: 100%;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
}
.tour-steps [aria-current] { border-color: var(--green); background: var(--wash); color: var(--ink); }
.tour-steps a:hover { border-color: var(--green); }
.tour-step-number {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--wash);
  color: var(--muted);
}
[aria-current="step"] .tour-step-number { background: var(--green); color: var(--dark); }
.tour-step-done .tour-step-number { background: #244638; color: #c9f6d8; }
.tour-instruction {
  display: flex;
  align-items: start;
  gap: 14px;
  margin-block: 16px;
  padding: 14px 16px;
  border: 1px solid #53779a;
  border-radius: 8px;
  background: #192a3a;
}
.tour-instruction h2 { font-size: clamp(1.18rem, 2.5vw, 1.55rem); letter-spacing: -.03em; }
.tour-instruction p { margin-top: 4px; color: #d0def0; font-size: .9rem; }
.tour-tip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 5px;
  background: #c4dfff;
  color: #19395b;
  font-size: .73rem;
  font-weight: 700;
}
.tour-tip .icon { width: 13px; height: 13px; }
.tour-scene-complete {
  --tour-accent: #785015;
  --tour-rule: #ebdec8;
}
.tour-scene-complete .tour-step-done .tour-step-number { background: #594426; color: #ffe3ad; }
.tour-success {
  overflow: hidden;
  margin-top: 16px;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 36px);
  border: 1px solid #a68049;
  border-radius: 16px;
  background: radial-gradient(ellipse at top, #ffd68e18, transparent 65%) #2c2318;
  text-align: center;
}
.tour-success h2 { max-width: 22ch; margin-inline: auto; color: #ffe1a3; font-size: clamp(1.9rem, 5vw, 3.35rem); }
.tour-success h2 + p { margin-top: 10px; color: #f1dec2; }
.tour-success-label { margin: 16px 0 8px; color: #f2cf87; font-size: .75rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.tour-celebration { position: relative; display: grid; width: 64px; height: 64px; margin-inline: auto; place-items: center; }
.tour-celebration-mark { display: grid; width: 100%; height: 100%; place-items: center; border: 1px solid #ffe0a0; border-radius: 50%; background: #f2cf87; color: #3c2912; }
.tour-celebration-mark .icon { width: 31px; height: 31px; }
.tour-celebration span { position: absolute; width: 7px; height: 12px; border-radius: 2px; background: #f2cf87; opacity: 0; }
.tour-celebration span:nth-child(2n) { width: 8px; height: 8px; border-radius: 50%; background: #ffe5b7; }
.tour-celebration span:nth-child(3n) { background: #9ccdb2; }
.tour-app {
  display: flex;
  flex-direction: column;
  color-scheme: light;
  overflow: hidden;
  border: 1px solid #537065;
  border-radius: 11px;
  background: #fcfcfc;
  color: #221f1c;
  font-size: .86rem;
  line-height: 1.4;
  box-shadow: 0 16px 48px #07120f42;
}
.tour-app :focus-visible { outline: 3px solid #17375f; outline-offset: 3px; }
.tour-app .tour-target { box-shadow: 0 0 0 2px var(--tour-cue-ring), 0 0 0 4px var(--tour-cue-halo); }
.tour-app a.tour-target:hover { box-shadow: 0 0 0 2px #536c8b, 0 0 0 4px #7e9bbb45; }
.tour-app a.tour-target:focus-visible { outline-offset: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .tour-app a.tour-target:not(:hover, :focus-visible) { animation: tour-cue-pulse 2.3s ease-in-out 2; }
}
@keyframes tour-cue-pulse {
  50% { box-shadow: 0 0 0 2px var(--tour-cue-ring), 0 0 0 6px #7e9bbb16; }
}
.tour-app-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; min-height: 44px; padding: 8px 14px; border-bottom: 1px solid var(--tour-rule); }
.tour-app-bar strong { font-size: .95rem; }
.tour-sample { padding: 3px 7px; border: 1px solid var(--tour-rule); border-radius: 5px; background: #f4f3f2; color: var(--tour-muted); font-size: .72rem; }
.tour-workspace { display: grid; flex: 1; grid-template-columns: minmax(0, 1fr) minmax(306px, .58fr); }
.tour-panel { display: flex; min-width: 0; flex-direction: column; border-left: 1px solid var(--tour-rule); box-shadow: inset 0 2px var(--tour-accent); }
.tour-panel-body { flex: 1; padding: 14px; }
.tour-panel-body h3 { margin: 0 0 9px; font-size: .91rem; font-weight: 650; }
.tour-panel-step { display: flex; align-items: center; gap: 8px; }
.tour-panel-number { display: grid; width: 21px; height: 21px; flex: none; place-items: center; border-radius: 50%; background: #e4f1e9; color: var(--tour-accent); font-size: .74rem; }
.tour-panel-number .icon { width: 13px; height: 13px; }
.tour-panel-current { background: var(--tour-accent); color: white; }
.tour-panel-summary { padding-bottom: 9px; margin-bottom: 10px; border-bottom: 1px solid var(--tour-rule); }
.tour-panel-summary h3 { margin-bottom: 3px; }
.tour-panel-summary p { margin-left: 29px; color: var(--tour-muted); font-size: .81rem; }
.tour-panel-footer { padding: 10px 14px; border-top: 1px solid var(--tour-rule); }
.tour-option, .tour-value, .tour-chip {
  border: 1px solid var(--tour-rule);
  border-radius: 5px;
  padding: 8px 10px;
}
.tour-option { display: grid; gap: 3px; color: inherit; text-decoration: none; }
.tour-options { display: grid; gap: 14px; }
.tour-option strong { font-weight: 600; }
.tour-option span { display: block; color: var(--tour-muted); font-size: .78rem; }
.tour-value { background: #f7f7f7; }
.tour-field { margin-top: 12px; }
.tour-panel-footer .tour-field { margin-top: 0; }
.tour-field > span { display: block; margin-bottom: 5px; color: var(--tour-muted); font-size: .69rem; font-weight: 650; text-transform: uppercase; }
.tour-value { display: flex; align-items: center; gap: 7px; }
.tour-value .icon { width: 14px; height: 14px; }
.tour-provider-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.tour-chip { display: grid; align-items: center; min-height: 44px; padding-inline: 5px; text-align: center; text-decoration: none; }
span.tour-chip { color: var(--tour-muted); background: #f7f7f7; }
span.tour-chip-selected { border-color: #79ae91; background: #edf6ef; color: var(--tour-accent); font-weight: 650; }
.tour-price { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; }
.tour-booked-card { width: min(100%, 440px); margin: 24px auto 20px; padding: 14px 16px; border: 1px solid #9f7d4e; border-radius: 9px; background: #fff8ea; color: #312416; text-align: left; }
.tour-booked-client { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; padding-bottom: 8px; border-bottom: 1px solid var(--tour-rule); }
.tour-booked-client span { color: var(--tour-muted); font-size: .8rem; }
.tour-booked-service { margin: 8px 0 0; }
.tour-booked-service dt { font-weight: 600; }
.tour-booked-service dd { margin: 3px 0 0; color: var(--tour-muted); font-size: .79rem; }
.tour-booked-service dd span { display: block; }
.tour-success-actions { justify-content: center; margin-top: 0; }
.tour-pricing-link { display: inline-flex; min-height: 44px; align-items: center; margin-top: 4px; color: var(--muted); font-size: .85rem; }
.tour-pricing-link:hover { color: var(--green); }
.tour-booked-calendar { margin-top: 12px; border: 1px solid var(--line); border-radius: 9px; }
.tour-booked-calendar summary { min-height: 44px; padding: 12px 14px; color: var(--green); cursor: pointer; }
.tour-booked-calendar .tour-calendar { overflow: hidden; border-radius: 0 0 8px 8px; color: #221f1c; }
.tour-calendar { --tour-hour-count: 5; display: flex; min-width: 0; flex-direction: column; background: #fff; font-size: .77rem; }
.tour-calendar-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px; }
.tour-calendar-jump, .tour-calendar-date, .tour-calendar-view { display: flex; align-items: center; min-height: 29px; border: 1px solid var(--tour-rule); border-radius: 5px; }
.tour-calendar-jump span, .tour-calendar-date { padding-inline: 6px; }
.tour-calendar-toolbar .icon { width: 13px; height: 13px; }
.tour-calendar-jump .icon:first-child { transform: rotate(180deg); }
.tour-calendar-date { gap: 5px; background: #f4f3f2; }
.tour-calendar-view { margin-left: auto; padding: 2px; gap: 5px; color: var(--tour-muted); background: #f4f3f2; font-size: .72rem; }
.tour-calendar-view strong { padding: 3px 6px; border-radius: 4px; background: var(--tour-accent); color: white; }
.tour-calendar-view span { padding-right: 4px; }
.tour-calendar-mode { padding: 7px 9px; border-block: 1px solid #83cec3; background: #a4e5dc; color: #123631; font-weight: 600; }
.tour-calendar-head, .tour-calendar-body { display: grid; grid-template-columns: 52px repeat(3, minmax(0, 1fr)); }
.tour-calendar-head strong { padding: 7px 5px; border-left: 1px solid var(--tour-rule); font-size: .75rem; font-weight: 600; }
.tour-calendar-head-label { grid-column: 2 / -1; grid-row: 1; padding: 6px 5px 0; border-left: 1px solid var(--tour-rule); color: var(--tour-muted); font-size: .68rem; font-weight: 600; line-height: 1.2; overflow-wrap: anywhere; }
.tour-calendar-early-booking .tour-calendar-head strong { padding-bottom: 30px; }
.tour-calendar-body { flex: 1; }
.tour-hours { display: grid; grid-template-rows: repeat(var(--tour-hour-count), minmax(70px, 1fr)); text-align: right; }
.tour-hours span { padding: 4px; border-top: 1px solid #c7c5c2; font-size: .72rem; white-space: nowrap; }
.tour-extra-hour { display: none; }
.tour-calendar-grid {
  display: grid;
  grid-column: 2 / -1;
  grid-template: repeat(calc(2 * var(--tour-hour-count)), minmax(35px, 1fr)) / repeat(3, minmax(0, 1fr));
  background:
    repeating-linear-gradient(#c7c5c2 0 1px, transparent 1px calc(100% / var(--tour-hour-count))),
    repeating-linear-gradient(90deg, #cddbd8 0 1px, transparent 1px calc(100% / 3)),
    var(--tour-calendar-fill, #c4efe9);
}
.tour-calendar-grid::before {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  z-index: 0;
  pointer-events: none;
  content: "";
  background: repeating-linear-gradient(transparent 0 calc(50% / var(--tour-hour-count)), #d6d4d1 calc(50% / var(--tour-hour-count)) calc(50% / var(--tour-hour-count) + 1px), transparent calc(50% / var(--tour-hour-count) + 1px) calc(100% / var(--tour-hour-count)));
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 10px);
  mask-image: repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 10px);
}
.tour-calendar-grid > * { position: relative; z-index: 1; }
.tour-scene-complete .tour-calendar { --tour-calendar-fill: #fffcf6; }
.tour-calendar-event {
  grid-column: var(--column);
  grid-row: var(--row) / span var(--blocks, 2);
  margin: 4px;
  padding: 5px 6px;
  border: 1px solid #9cabc1;
  border-left: 3px solid #394f73;
  border-radius: 5px;
  background: #edf4ff;
  color: #183c72;
  font-size: .73rem;
  line-height: 1.25;
}
.tour-calendar-event span { display: block; margin-top: 2px; }
.tour-calendar-saved { position: relative; margin: 5px; border-color: #b98d4e; background: #fff1d4; color: #593d19; }
.tour-booked-label {
  position: absolute;
  z-index: 1;
  inset-block-end: calc(100% + 6px);
  inset-inline-end: 0;
  width: max-content;
  max-width: 120px;
  padding: 3px 7px;
  border-radius: 4px;
  background: #f2cf87;
  color: #3c2912;
  font-size: .68rem;
  font-weight: 700;
  text-align: center;
}
.tour-booked-label::after {
  position: absolute;
  inset-block-start: 100%;
  inset-inline-end: 12px;
  border: 4px solid transparent;
  border-top-color: #f2cf87;
  content: "";
}
.tour-calendar-opening { display: grid; grid-column: var(--column); grid-row: var(--row) / span var(--blocks); place-items: center; margin: 4px 7px; padding: 2px 4px; border: 1px solid #599e8e; border-radius: 5px; background: #f4fffb; color: #123e35; text-align: center; font-weight: 650; text-decoration: none; }
.tour-next { padding-block: clamp(40px, 6vw, 70px); }
.tour-next h2 { font-size: 1.5rem; }
.tour-next-links { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 8px; }

@media (min-width: 960px) {
  body:has(.booking-tour) .closing { background: linear-gradient(115deg, #ffffff07, #00000026) #1b342e; }
  body:has(.tour-scene-complete:target) .closing { background-color: #372b1c; }
  .tour-app { min-height: 610px; }
  .tour-calendar { --tour-hour-count: 6; }
  .tour-extra-hour { display: block; }
}

@media (prefers-reduced-motion: no-preference) {
  body:has(.booking-tour),
  body:has(.booking-tour) :is(.site-header, .site-footer, .primary, .closing, .tour-next a),
  .tour-scene-complete :is(.tour-steps [aria-current], .tour-step-number, .tour-success) {
    transition-property: background-color, border-color, color, opacity, transform;
    transition-duration: .9s;
    transition-timing-function: ease-in-out;
  }

  /* The confirmation is hidden until booking completes, so it needs explicit entry colors. */
  @starting-style {
    .tour-scene-complete .tour-steps [aria-current] { border-color: #b9edce; background-color: #172622; }
    .tour-scene-complete .tour-step-done .tour-step-number { background-color: #244638; color: #c9f6d8; }
    .tour-scene-complete [aria-current="step"] .tour-step-number { background-color: #b9edce; color: #0b1512; }
    .tour-scene-complete .tour-success { opacity: 0; transform: translateY(8px); border-color: #537065; background-color: #172622; }
  }
  .tour-scene-complete:target .tour-celebration-mark { animation: tour-celebration-pop .65s .25s ease-out both; }
  .tour-scene-complete:target .tour-celebration span { animation: tour-celebration-burst 1.05s .45s ease-out both; }
}
@keyframes tour-celebration-pop {
  0% { transform: scale(.78); }
  65% { transform: scale(1.09); }
}
@keyframes tour-celebration-burst {
  0% { transform: scale(.3); }
  24% { opacity: .95; }
  100% { transform: translate(var(--spark-x), var(--spark-y)) rotate(115deg) scale(.65); opacity: 0; }
}
@media (max-width: 760px) {
  .tour-workspace { grid-template-columns: minmax(0, 1fr); }
  .tour-calendar { display: none; }
  .tour-booked-calendar .tour-calendar { display: flex; border-top: 1px solid var(--tour-rule); }
  .tour-panel { border-left: 0; }
}
@media (max-width: 600px) {
  .tour-instruction { flex-direction: column; gap: 7px; padding: 10px 12px; }
  .tour-calendar-event { font-size: .65rem; padding-inline: 3px; overflow-wrap: anywhere; }
  .tour-calendar-head strong { font-size: .69rem; }
  .tour-steps { gap: 3px; }
  .tour-steps a, .tour-step-label { flex-direction: column; justify-content: start; gap: 5px; padding: 6px 2px; font-size: .68rem; text-align: center; overflow-wrap: anywhere; }
  .tour-step-number { width: 21px; height: 21px; }
}
