/* ==========================================================
   RELIABLE TRAVELS — "Two more ways to wander": Group departures + Car rental photo panels
   (ways.js adds the scroll parallax and the open-on-view trigger)
   ========================================================== */
.xw { display: block; }

/* ---------- Heading row ---------- */
.xw-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: var(--sec-head, 36px); }
.xw-head .experience-copy h2 { margin: 0; }
.xw-lead { max-width: 400px; margin: 0; color: #b7c6c1; line-height: 1.75; }

/* ---------- Panels ---------- */
.xw-panels { display: flex; gap: 18px; height: clamp(420px, 36vw, 540px); }
.xw-panel { --py: 0px; position: relative; flex: 1 1 0; min-width: 0; display: block; border-radius: 26px; overflow: hidden; isolation: isolate; color: #fff; text-decoration: none; background: #06231e;
  box-shadow: 0 40px 80px -45px #000; clip-path: inset(0 50% 0 50% round 26px);
  transition: flex 1s var(--ease-cine), clip-path 1.4s var(--ease-cine), box-shadow .6s; transition-delay: 0s, calc(var(--i) * .18s), 0s; }
.xw.in .xw-panel { clip-path: inset(0 0 0 0 round 26px); }
.xw-panels:hover .xw-panel { flex-grow: .8; }
.xw-panels .xw-panel:hover, .xw-panel:focus-visible { flex-grow: 1.45; box-shadow: 0 50px 90px -40px var(--c); }
.xw-panel:focus-visible { outline: 3px solid var(--c); outline-offset: 4px; }

/* Photo: slow zoom on reveal, drifts with scroll (--py), leans in on hover */
.xw-media { position: absolute; inset: -8% 0; display: block; transform: translate3d(0, var(--py), 0); }
.xw-media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.35); filter: saturate(.85) brightness(.85); transition: transform 2.2s var(--ease-out), filter .8s; transition-delay: calc(var(--i) * .18s), 0s; }
.xw.in .xw-media img { transform: scale(1.06); }
.xw.in .xw-panel:hover .xw-media img { transform: scale(1.14); filter: saturate(1.1) brightness(.95); transition-delay: 0s; transition-duration: 1.4s, .8s; }
.xw-shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(0deg, #021511f0 0%, #02151180 38%, transparent 66%), linear-gradient(180deg, #0215118c, transparent 32%); }

/* A streak of light crosses the photo on hover */
.xw-sweep { position: absolute; z-index: 2; top: -10%; bottom: -10%; left: -40%; width: 30%; pointer-events: none; transform: skewX(-16deg); opacity: 0;
  background: linear-gradient(90deg, transparent, #ffffff55, transparent); mix-blend-mode: overlay; }
.xw-panel:hover .xw-sweep { animation: xwSweep 1.1s var(--ease-cine); }
@keyframes xwSweep { 0% { left: -40%; opacity: 0; } 20% { opacity: 1; } 100% { left: 120%; opacity: 0; } }

.xw-no { position: absolute; z-index: 3; top: 18px; right: 24px; font: 800 clamp(56px, 6vw, 92px)/1 Manrope, sans-serif; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.3px #ffffff8c; transition: -webkit-text-stroke-color .5s, transform .8s var(--ease-out); }
.xw-panel:hover .xw-no { -webkit-text-stroke-color: var(--c); transform: translateY(-4px); }

/* ---------- Copy ---------- */
.xw-body { position: absolute; z-index: 3; left: clamp(22px, 2.6vw, 38px); right: clamp(22px, 2.6vw, 38px); bottom: clamp(24px, 2.6vw, 36px); display: block; }
.xw-body > * { display: block; opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(.7s + var(--i) * .18s + var(--j, 0) * .1s); }
.xw.in .xw-body > * { opacity: 1; transform: none; }
.xw-body small { --j: 0; font: 700 10px Manrope, sans-serif; letter-spacing: .2em; text-transform: uppercase; color: var(--c); margin-bottom: 10px; }
.xw-body strong { --j: 1; font: 700 clamp(34px, 3.6vw, 56px)/1 Manrope, sans-serif; letter-spacing: -.05em; text-shadow: 0 8px 40px #0007; }
/* Details open on hover (always open on touch screens) */
.xw-detail { --j: 2; display: grid !important; grid-template-rows: 0fr; transition: grid-template-rows .7s var(--ease-out), opacity .8s, transform 1s var(--ease-out) !important; }
.xw-detail > span { overflow: hidden; display: block; }
.xw-text { display: block; max-width: 440px; padding-top: 14px; color: #dfe9e5; line-height: 1.6; font-size: 15px; }
.xw-detail em { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 18px; border-radius: 40px; background: var(--c); color: var(--ink); font: 700 13px Manrope, sans-serif; font-style: normal; }
.xw-detail em i { font-style: normal; transition: transform .4s; }
.xw-panel:hover .xw-detail em i { transform: rotate(45deg); }
.xw-panel:hover .xw-detail, .xw-panel:focus-visible .xw-detail { grid-template-rows: 1fr; }

/* ---------- Group panel: a little crew of travellers ---------- */
.xw-crew { position: absolute; z-index: 3; top: 24px; left: clamp(22px, 2.6vw, 38px); display: flex; align-items: center; padding: 6px 14px 6px 6px; border-radius: 40px; background: #ffffff1f; border: 1px solid #ffffff33; backdrop-filter: blur(12px); }
.xw-crew i { width: 32px; height: 32px; display: grid; place-items: center; margin-right: -9px; border-radius: 50%; border: 2px solid #0b2a24; background: linear-gradient(135deg, var(--g), color-mix(in srgb, var(--g) 50%, #fff)); color: #fff; font: 700 12px Manrope, sans-serif; font-style: normal; animation: xwBob 3s ease-in-out infinite; }
.xw-crew i:nth-child(2) { animation-delay: .2s; } .xw-crew i:nth-child(3) { animation-delay: .4s; } .xw-crew i:nth-child(4) { animation-delay: .6s; }
.xw-crew b { margin-left: 18px; font: 600 12px "DM Sans", sans-serif; white-space: nowrap; }
@keyframes xwBob { 50% { transform: translateY(-4px); } }

/* ---------- Car panel: headlight glow + lane lines rushing past ---------- */
.xw-beam { position: absolute; z-index: 2; left: 34%; top: 46%; width: 46%; height: 30%; pointer-events: none; border-radius: 50%;
  background: radial-gradient(closest-side, #ffe4a3aa, transparent); mix-blend-mode: screen; filter: blur(20px); animation: xwBeam 4s ease-in-out infinite; }
@keyframes xwBeam { 50% { opacity: .35; transform: scale(.9); } }
.xw-road { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 4px; overflow: hidden; background: #ffffff14; }
.xw-road i { position: absolute; inset: 0; width: 200%; background: repeating-linear-gradient(90deg, var(--c) 0 40px, transparent 40px 80px); animation: xwLane 1.4s linear infinite; }
.xw-panel:hover .xw-road i { animation-duration: .5s; }
@keyframes xwLane { to { transform: translateX(-80px); } }

/* ---------- Responsive ---------- */
@media (hover: none) { .xw-detail { grid-template-rows: 1fr; } }
@media (max-width: 900px) {
  .xw-head { flex-direction: column; align-items: start; gap: 16px; }
  .xw-panels { flex-direction: column; height: auto; }
  .xw-panel { flex: none; height: 440px; clip-path: inset(50% 0 50% 0 round 22px); border-radius: 22px; }
  .xw.in .xw-panel { clip-path: inset(0 0 0 0 round 22px); }
  .xw-panels:hover .xw-panel, .xw-panels .xw-panel:hover { flex-grow: 0; }
  .xw-detail { grid-template-rows: 1fr; }
  .xw-text { font-size: 14px; }
  .xw-crew b { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .xw-panel, .xw.in .xw-panel { clip-path: none; }
  .xw *, .xw *:before, .xw *:after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .xw-body > * { opacity: 1; transform: none; }
  .xw-media { transform: none; }
}

/* Keep the van in frame and light its headlamps */
.xw-car .xw-media img { object-position: 0% 62%; transform-origin: 30% 70%; }
.xw-car .xw-beam { left: 6%; top: 52%; width: 44%; height: 26%; }
