.farm-tour { --tour-paper: #f8eddb; --tour-ink: #40523b; --tour-accent: #9a733b; position: relative; z-index: 2; padding: clamp(44px, 5vw, 80px) 6vw 56px; background: var(--tour-paper); color: var(--tour-ink); scroll-margin-top: var(--site-header-clearance, 128px); }
.tour-inner { max-width: 1360px; margin-inline: auto; }
.tour-heading { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 24px clamp(32px, 6vw, 96px); margin-bottom: 28px; }
.tour-heading h2 { margin: 0; font: 400 clamp(3.5rem, 6.5vw, 6rem)/1.08 "Capela Assinatura", "Segoe Print", cursive; }
.tour-heading > p { max-width: 37rem; margin: 0; font-size: 1rem; line-height: 1.75; }
.tour-journey, .tour-window { position: relative; }
.tour-window { display: flex; flex-direction: column; gap: 20px; }
.tour-controls { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas: "hint route booking"; align-items: center; gap: 24px; padding: 10px 0; border-top: 1px solid #40523b20; border-bottom: 1px solid #40523b20; background: var(--tour-paper); }
.farm-tour:not(.tour-enhanced) .tour-controls { position: sticky; top: var(--site-header-clearance, 128px); z-index: 6; }
.farm-tour:not(.tour-enhanced) .tour-controls::before { content: ""; position: absolute; z-index: -1; inset: -10px -8px 0; background: var(--tour-paper); pointer-events: none; }
.tour-scroll-hint { grid-area: hint; display: flex; align-items: center; justify-self: start; gap: 10px; min-width: 0; margin: 0; color: #53634e; font-size: .875rem; line-height: 1.35; }
.tour-scroll-cue { position: relative; display: inline-block; flex: 0 0 auto; width: 18px; height: 30px; border: 1.5px solid currentColor; border-radius: 12px; }
.tour-scroll-cue-dot { position: absolute; left: 50%; top: 5px; width: 3px; height: 6px; border-radius: 3px; background: currentColor; opacity: .8; transform: translate(-50%, 4px); }
@keyframes tour-scroll-down { 0%, 10% { opacity: 0; transform: translate(-50%, 0); } 30%, 55% { opacity: .9; } 90%, 100% { opacity: 0; transform: translate(-50%, 12px); } }
@media (prefers-reduced-motion: no-preference) { .tour-in-view .tour-scroll-cue-dot { animation: tour-scroll-down 2.2s ease-in-out infinite; } }
.tour-route { grid-area: route; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); width: 220px; max-width: 100%; height: 44px; justify-self: center; isolation: isolate; }
.tour-route-line { position: absolute; z-index: -1; top: 6px; left: 0; width: 100%; height: 40px; pointer-events: none; overflow: visible; }
.tour-route-ground path { stroke: #c9b99a; stroke-width: 1.3; stroke-linecap: round; }
.tour-route-ink path { stroke: var(--tour-accent); stroke-width: 1.8; stroke-linecap: round; }
.tour-route-stop { position: relative; display: grid; place-items: center; width: 100%; min-width: 44px; height: 44px; text-decoration: none; }
.tour-route-pin { display: block; width: 10px; height: 10px; border: 1.5px solid #9a8156; border-radius: 50%; background: var(--tour-paper); transition: background-color .4s, box-shadow .4s; }
.tour-route-stop.is-reached .tour-route-pin { background: #dfcfab; }
.tour-route-stop.is-current .tour-route-pin { border-color: #40523b; background: #40523b; box-shadow: 0 0 0 5px #40523b12; }
.tour-route-stop:hover .tour-route-pin { box-shadow: 0 0 0 5px #9a733b18; }
.tour-route-stop:focus-visible { outline: 2px solid var(--tour-accent); outline-offset: -3px; border-radius: 5px; }
.tour-booking-button { grid-area: booking; justify-self: end; display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; max-width: 100%; padding: 12px 20px; border: 1px solid #40523b; border-radius: 3px; color: #fff8e8; background: #40523b; font: 400 1rem/1.35 "Segoe UI", Arial, sans-serif; text-align: center; text-decoration: none; transition: background-color .25s; }
.tour-booking-button:hover { background: #2b402e; }
.tour-booking-button:focus-visible, .tour-award:focus-visible { outline: 3px solid var(--tour-accent); outline-offset: 4px; }
.tour-whatsapp-icon { flex: 0 0 auto; width: 20px; height: 20px; }
.tour-stages { position: relative; min-width: 0; margin: 0; padding: 0; list-style: none; }
.tour-stage { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); grid-template-areas: "art copy"; align-items: center; gap: clamp(28px, 5vw, 80px); min-height: clamp(360px, 61svh, 600px); padding: 28px 0 40px; scroll-margin-top: calc(var(--site-header-clearance, 128px) + var(--tour-route-height, 80px) + 24px); }
.tour-stage + .tour-stage { border-top: 1px solid #40523b14; }
.tour-stage-art { grid-area: art; display: grid; place-items: center; width: 100%; min-width: 0; height: clamp(240px, 43svh, 460px); margin: 0; }
.tour-illustration { display: block; width: 100%; height: 100%; object-fit: contain; }
.tour-stage--chocolate .tour-illustration { max-width: 480px; }
.tour-stage--armazem .tour-illustration { max-width: 600px; }
.tour-stage-copy { grid-area: copy; min-width: 0; max-width: 31rem; }
.tour-step-position { margin: 0 0 12px; color: #65725c; font-size: .875rem; line-height: 1.4; }
.tour-stage h3 { margin: 0 0 18px; max-width: 18ch; font: 400 clamp(2rem, 3.3vw, 3.25rem)/1.14 "Capela Assinatura", "Segoe Print", cursive; text-wrap: balance; }
.tour-stage-copy > p:not(.tour-step-position) { margin: 0; max-width: 35ch; font-size: 1rem; line-height: 1.75; }
.tour-flow-ready:not(.tour-enhanced) .tour-stage-art { transition: opacity .7s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.tour-flow-ready:not(.tour-enhanced) .tour-stage:not(.is-visible) .tour-stage-art { opacity: 0; transform: translateY(14px); }
/* The reading sequence stays in normal flow when the viewport or text needs more room. */
.tour-enhanced .tour-journey { height: var(--tour-scroll-height); }
.tour-enhanced .tour-window { position: sticky; top: var(--site-header-clearance, 128px); display: grid; grid-template-areas: "controls" "panels"; grid-template-rows: auto minmax(0, 1fr); height: calc(100svh - var(--site-header-clearance, 128px) - 68px); min-height: 0; }
.tour-enhanced .tour-controls { grid-area: controls; }
.tour-enhanced .tour-stages { grid-area: panels; height: 100%; min-height: 0; }
.tour-enhanced .tour-stage { --tour-scene-shift: 14px; position: absolute; inset: 0; height: 100%; min-height: 0; padding: 0; border: 0; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .45s ease, visibility .45s; }
.tour-enhanced .tour-stage.is-before { --tour-scene-shift: -14px; }
.tour-enhanced .tour-stage.is-current { opacity: 1; visibility: visible; pointer-events: auto; }
.tour-enhanced .tour-stage-art { height: 100%; max-height: 100%; opacity: 0; transform: translateX(var(--tour-scene-shift)) scale(.985); transition: opacity .6s ease, transform .8s cubic-bezier(.2,.7,.2,1); }
.tour-enhanced .tour-stage-copy { transform: translateY(8px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.tour-enhanced .tour-stage.is-current .tour-stage-art, .tour-enhanced .tour-stage.is-current .tour-stage-copy { opacity: 1; transform: none; }
.tour-essentials { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 28px 48px; margin-top: 28px; padding-top: 28px; border-top: 1px solid #40523b26; }
.tour-facilities ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 28px; margin: 0; padding: 0; list-style: none; }
.tour-facilities li { max-width: 26rem; font-size: 1rem; line-height: 1.6; }
.tour-booking-note { margin: 18px 0 0; max-width: 48rem; color: #53634e; font-size: .875rem; line-height: 1.6; }
.tour-award { display: grid; justify-items: center; gap: 5px; min-height: 44px; max-width: 100%; color: inherit; font-size: .875rem; line-height: 1.4; text-decoration: none; }
.tour-award .tripadvisor-mark { --mark-width: 124px; }
.tour-award > span:last-child { display: inline-flex; align-items: center; min-height: 32px; text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 959px) {
  .farm-tour { padding-top: 48px; }
  .tour-heading { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .tour-heading h2 { font-size: clamp(3.5rem, 10vw, 5rem); }
  .tour-stage { gap: 26px; }
  .tour-stage h3 { font-size: clamp(2rem, 4vw, 2.75rem); }
}
@media (max-width: 700px) {
  .farm-tour { padding-inline: 22px; }
  .tour-controls { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "hint booking" "route route"; gap: 3px 12px; padding: 6px 0; }
  .tour-scroll-hint > span:last-child { max-width: 9ch; }
  .tour-booking-button { min-height: 44px; padding: 10px 14px; font-size: .875rem; }
  .tour-stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "art" "copy"; min-height: 0; gap: 20px; padding: 24px 0 36px; }
  .tour-stage-art { height: clamp(200px, 54vw, 340px); }
  .tour-stage h3 { max-width: 20ch; font-size: clamp(2rem, 6.5vw, 2.6rem); }
  .tour-stage-copy > p:not(.tour-step-position) { max-width: 40ch; }
  .tour-essentials { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .tour-facilities ul { gap: 14px 22px; }
  .tour-award { justify-self: start; display: flex; align-items: center; gap: 18px; }
  .tour-award .tripadvisor-mark { --mark-width: 112px; }
}
@media (max-height: 600px) {
  .farm-tour:not(.tour-enhanced) .tour-controls { position: relative; top: auto; }
  .tour-stage { scroll-margin-top: calc(var(--site-header-clearance, 94px) + 24px); }
}
@media (prefers-reduced-motion: reduce) {
  .tour-route-pin, .tour-booking-button, .tour-stage, .tour-stage-art, .tour-stage-copy { transition: none !important; }
  .tour-flow-ready:not(.tour-enhanced) .tour-stage .tour-stage-art { opacity: 1; transform: none; }
}

