/* ==== FUN additions (Oct 2026). Each block is gated by a body class set from FUN flags in build.py ==== */

/* ---- 1) ICONS: hand-drawn look (body.fun-icons) ---- */
.fun-icons svg.i{filter:url(#sketch);stroke-width:2.05;stroke-linecap:round;stroke-linejoin:round;overflow:visible}
.fun-icons .ic svg.i,.fun-icons .perks li>svg.i{stroke-width:1.9}
.fun-icons .ic{border-radius:46% 54% 50% 50% / 55% 45% 55% 45%}

/* ---- 2) MOTION (body.fun-motion) ---- */
.fun-motion .btn{transition:transform .25s cubic-bezier(.34,1.56,.64,1),background .2s,box-shadow .25s}
.fun-motion .btn:hover{transform:translateY(-3px)}
.fun-motion .btn:active{transform:translateY(0) scale(.98)}
.fun-motion .room,.fun-motion .g-type,.fun-motion .bt,.fun-motion .rv-card,.fun-motion .fact{transition:transform .35s cubic-bezier(.34,1.56,.64,1),box-shadow .35s}
.fun-motion .room:hover,.fun-motion .g-type:hover,.fun-motion .bt:hover,.fun-motion .rv-card:hover{transform:translateY(-6px);box-shadow:0 22px 40px -24px rgba(0,0,0,.45)}
html.rv-on .rv{opacity:0;transform:translateY(28px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:var(--d,0s)}
html.rv-on .rv.in{opacity:1;transform:none}
.wordbelt{background:var(--pine);color:var(--cream);overflow:hidden;padding:1.1rem 0;white-space:nowrap}
.wordbelt .rb-track{display:flex;width:max-content;animation:rb 48s linear infinite}
html[lang="fr"] .wordbelt .rb-track.en,html:not([lang="fr"]) .wordbelt .rb-track.fr{display:none}
.wordbelt .rb-run{display:flex;align-items:center}
.wordbelt span{font-family:var(--serif,'Fraunces',serif);font-weight:700;font-size:clamp(1.5rem,3.2vw,2.4rem);padding:0 1.2rem}
.wordbelt i{font-style:normal;color:var(--ember);font-size:clamp(1.5rem,3.2vw,2.4rem)}
@keyframes rb{to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){
  .wordbelt .rb-track{animation:none}
  .fun-motion .btn,.fun-motion .room,.fun-motion .g-type,.fun-motion .bt,.fun-motion .rv-card{transition:none!important;transform:none!important}
}

/* ---- 3) SOCIAL PROOF (section.reviews, built only when FUN social) ---- */
.reviews .rv-head{display:flex;justify-content:space-between;align-items:flex-end;gap:1rem 2rem;flex-wrap:wrap;margin-bottom:1.6rem}
.reviews h2{margin-top:.5rem}
.rv-score{display:grid;grid-template-columns:auto auto;column-gap:.9rem;align-items:center;text-decoration:none;color:inherit}
.rv-score b{grid-row:span 2;font-family:var(--serif,'Fraunces',serif);font-size:3.6rem;line-height:1}
.rv-score small{font-weight:600;opacity:.9}
.stars{display:inline-flex;gap:2px;position:relative}
.stars svg{width:18px;height:18px;fill:#ffd36b;stroke:none}
.rv-score .stars svg{width:22px;height:22px}
.rv-score .stars{-webkit-mask:linear-gradient(90deg,#000 calc(var(--r)*100%),rgba(0,0,0,.35) 0);mask:linear-gradient(90deg,#000 calc(var(--r)*100%),rgba(0,0,0,.35) 0)}
.rv-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1.4rem}
.rv-card{margin:0;background:var(--cream);color:var(--ink);border-radius:22px;padding:1.6rem;display:flex;flex-direction:column;gap:.9rem}
.rv-card .stars svg{fill:var(--ember)}
.rv-card blockquote{margin:0;font-size:1.02rem;line-height:1.6;flex:1}
.rv-card figcaption{font-weight:700;font-size:.9rem;color:var(--muted)}
.rv-note{margin:1rem 0 0;font-size:.85rem;opacity:.85}
html:not([lang="fr"]) .rv-note{display:none}
.rv-links{display:flex;gap:1rem;flex-wrap:wrap;margin-top:1.8rem}
.btn-light{background:var(--cream);color:var(--pine)}
.btn-line{border:2px solid currentColor;color:#fff}
@media (max-width:980px){.rv-grid{grid-template-columns:1fr}}
@media (max-width:640px){.rv-score b{font-size:2.8rem}.rv-links .btn{width:100%;justify-content:center;white-space:normal;text-align:center}}

/* ---- 4) BOLD ORANGE (body.fun-orange) ---- */
.reviews{background:var(--pine);color:#fff}
.reviews .eyebrow{color:#ffc89e}
.fun-orange .reviews{background:var(--ember-2);color:#fff}
.fun-orange .reviews .eyebrow{color:#fff3e6}
.fun-orange .g-quote{background:var(--ember-2)}
.fun-orange .g-quote .eyebrow{color:#fff3e6!important}
.fun-orange .g-quote .why li::before{background:#fff3e6}
.fun-orange .g-quote .btn-ember{background:var(--pine);box-shadow:0 10px 24px -10px rgba(0,0,0,.5)}
.fun-orange .g-quote .btn-ember:hover{background:var(--pine-2)}

/* ---- 5) ALL-SEASON TRAIL (section.trail, built only when FUN trail) ---- */
.trail-photos{display:grid;grid-template-columns:1fr 1fr;gap:1rem;height:540px}
.trail-photos img{width:100%;height:100%;object-fit:cover;border-radius:16px}
.trail-photos img:last-child{margin-top:2.5rem;height:calc(100% - 2.5rem)}
.trail .trail-sub{margin:1.6rem 0 .2rem;font-size:.78rem;letter-spacing:.18em;text-transform:uppercase;font-weight:700;color:#a9bcab}
.trail .perks.trail-perks{margin-top:.6rem!important;opacity:.9}
.trail .perks.trail-perks li{font-size:.9rem}
.trail .perks.trail-perks li>svg.i{width:18px;height:18px}
@media (max-width:980px){.trail-photos{height:420px}}
@media (max-width:640px){.trail-photos{height:240px}.trail-photos img:last-child{margin-top:0;height:100%}.trail .trail-sub{display:none}}

/* ---- 6) TOPO contour texture (body.fun-topo). One pattern (assets/topo.svg), one scale, faded away from text. ---- */
.fun-topo .bike-sec,.fun-topo .groups,.fun-topo footer,.fun-topo .wordbelt,.fun-topo .reviews,.fun-topo .owners{position:relative;isolation:isolate}
.fun-topo .bike-sec::before,.fun-topo .groups::before,.fun-topo footer::before,.fun-topo .wordbelt::before,.fun-topo .reviews::before,.fun-topo .owners::before{
  content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  --topo-edge:linear-gradient(180deg,transparent 0%,#000 18%,#000 82%,transparent 100%);-webkit-mask-image:url("topo.svg"),var(--topo-fade,linear-gradient(#000,#000)),var(--topo-edge);mask-image:url("topo.svg"),var(--topo-fade,linear-gradient(#000,#000)),var(--topo-edge);
  -webkit-mask-size:640px 640px,100% 100%,100% 100%;mask-size:640px 640px,100% 100%,100% 100%;
  -webkit-mask-repeat:repeat,no-repeat,no-repeat;mask-repeat:repeat,no-repeat,no-repeat;
  -webkit-mask-composite:source-in,source-in;mask-composite:intersect,intersect}
/* dark green sections: lighter green lines */
.fun-topo .bike-sec::before,.fun-topo footer::before,.fun-topo .wordbelt::before{background:#8fb39a;opacity:.16}
/* cream section: slightly darker cream lines */
.fun-topo .groups::before{background:#b9a887;opacity:.35}
/* keep lines away from text columns */
.fun-topo .bike-sec{--topo-fade:linear-gradient(90deg,#000 0%,#000 38%,transparent 62%)}
.fun-topo .groups{--topo-fade:linear-gradient(180deg,transparent 0%,transparent 35%,#000 60%,#000 100%)}
.fun-topo footer{--topo-fade:radial-gradient(ellipse at 100% 100%,#000 0%,transparent 50%)}
@media (max-width:980px){.fun-topo .bike-sec{--topo-fade:linear-gradient(180deg,#000 0%,#000 30%,transparent 45%)}}
.fun-topo .reviews::before{background:#e07a3c;opacity:.45}
.fun-topo .reviews{--topo-fade:linear-gradient(180deg,#000 0%,#000 100%)}
.fun-topo .owners::before{background:#b9a887;opacity:.22}