/* ==========================================================
   mobile-motion.css
   Phone and small-screen motion for every page (behaviour: scripts/core/mobile-motion.js).
   - .mm-stack   cards stick near the top and the next card slides over them
   - .mm-pre     waiting to be revealed (hidden, nudged down); .mm-in = revealed
   - .mm-wipe    photo that wipes up into view
   The classes are added by the script, so a page without JS stays fully visible.
   ========================================================== */
.mm-stack { position: sticky; top: calc(var(--mm-top, 76px) + var(--mm-i, 0) * 14px); margin-bottom: 1.5rem; transform-origin: 50% 0; will-change: transform; }
.mm-stack:last-child { margin-bottom: 0; }
.mm-stack > .property-box, .mm-stack > .blog-box, .mm-stack > .cat-box { box-shadow: 0 -10px 30px rgba(0, 0, 0, .12); }
.ab-fan-card.mm-stack { box-shadow: 0 -8px 26px rgba(28, 28, 26, .16); }

.mm-pre { opacity: 0; translate: 0 44px; scale: .965; }
.mm-pre.mm-left { translate: -34px 22px; }
.mm-pre.mm-right { translate: 34px 22px; }
.mm-in { opacity: 1; translate: 0 0; scale: 1; transition: opacity .8s ease var(--mm-d, 0s), translate .9s cubic-bezier(.2, .8, .2, 1) var(--mm-d, 0s), scale .9s cubic-bezier(.2, .8, .2, 1) var(--mm-d, 0s); }
.mm-wipe { clip-path: inset(100% 0 0 0); }
.mm-wipe.mm-in { clip-path: inset(0 0 0 0); transition: clip-path 1.2s cubic-bezier(.77, 0, .18, 1) var(--mm-d, 0s); opacity: 1; translate: 0 0; scale: 1; }
@media (prefers-reduced-motion: reduce) { .mm-pre, .mm-wipe { opacity: 1; translate: none; scale: none; clip-path: none; } }

/* ---------- amenities list: rows fly in from the right, then the left, then the right... (small screens) ---------- */
@media (max-width: 991px) {
  .ab-rows { overflow-x: clip; }
  .ab-rows > .ab-row[data-ab-reveal] { transform: translateX(60vw); transition-duration: 1s, 1.1s; }
  .ab-rows > .ab-row[data-ab-reveal]:nth-child(even) { transform: translateX(-60vw); }
  .ab-rows > .ab-row[data-ab-reveal].is-in { transform: none; }
}
@media (prefers-reduced-motion: reduce) { .ab-rows > .ab-row[data-ab-reveal] { transform: none; } }

/* ---------- phones: the Stay cards and the journey steps each fill one screen ---------- */
@media (max-width: 767px) {
  .mm-stack.mm-fit { height: calc(100vh - 96px); height: calc(100svh - 96px); }
  /* The Stay: the photo takes the free height, the details stay under it */
  .mm-fit > .property-box { height: 100%; display: flex; flex-direction: column; }
  .mm-fit .property-image-box { flex: 1 1 auto; height: auto; min-height: 0; }
  .mm-fit .property-slider, .mm-fit .property-slider-mask, .mm-fit .property-slide, .mm-fit .property-gallery-image-box { height: 100%; }
  .mm-fit .property-gallery-image-box img { width: 100%; height: 100%; object-fit: cover; }
  /* Your journey: each step is a full panel with a big number, the photo and the words */
  .ab-j-steps { display: block; }
  .ab-j-step.mm-fit { display: flex; flex-direction: column; padding: 1.6rem 1.4rem 1.8rem; border-radius: 14px; background: #263229; border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 -12px 34px rgba(0, 0, 0, .35); overflow: hidden; }
  .ab-j-step.mm-fit .ab-j-num { font-size: clamp(64px, 24vw, 104px); color: #fff; }
  .ab-j-step.mm-fit .ab-j-dot { display: none; }
  .ab-j-step.mm-fit img { flex: 1 1 auto; width: 100%; max-width: none; min-height: 0; aspect-ratio: auto; margin: 1rem 0 1.2rem; border-radius: 8px; }
  .ab-j-step.mm-fit h3 { font-size: 24px; margin-bottom: .5rem; color: #fff; }
  .ab-j-step.mm-fit p { max-width: none; font-size: 16px; }
}
