/* Motion layer (shared). Everything here is inert until motion.js has added
   .mo to <html>, which it never does with prefers-reduced-motion: reduce. */
.mo-w { display: inline-block; clip-path: inset(-0.4em -0.5em -0.2em -0.5em); }
.mo-wi { display: inline-block; will-change: translate; }
.mo-wdone .mo-w { clip-path: none; }
.mo-wdone .mo-wi { will-change: auto; }
.mo-deco { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  .mo-deco *, .mo-deco { animation: none !important; }
}

/* ── Miralume ── */
:root { --mo-ease: cubic-bezier(.16, 1, .3, 1); }
.mo-house { width: min(240px, 64vw); margin: 22px 0 -4px; }
.mo-house svg { display: block; width: 100%; height: auto; overflow: visible; }
.mo-door { transform-origin: 210px 262px; }
.mo-spill-p { transform-origin: 236px 262px; }
@media (min-width: 1000px) {
  .mo-house { position: absolute; right: 20px; top: 40px; width: min(340px, 30vw); margin: 0; }
}

/* Listing cards: a deeper lift, the photo eases in closer. */
html.mo .card { transition: transform .2s, box-shadow .35s, translate .55s var(--mo-ease); }
html.mo .card:hover { translate: 0 -4px; box-shadow: 0 4px 8px rgba(23, 38, 42, .06), 0 26px 46px -18px rgba(23, 38, 42, .28); }
html.mo .card .ph img { transition: scale 1.1s var(--mo-ease); }
html.mo .card:hover .ph img { scale: 1.06; }
html.mo .card .price { transition: color .3s; }
html.mo .card:hover .price { color: var(--teal); }

/* Search: the segmented control glides; the Search button has a sheen. */
html.mo .seg button { transition: background .3s, color .3s; border-radius: 8px; }
html.mo .search .go { position: relative; overflow: hidden; isolation: isolate; }
html.mo .search .go::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%); translate: -110% 0; transition: translate .7s var(--mo-ease); }
html.mo .search .go:hover::after { translate: 110% 0; }
html.mo .top nav a { background: linear-gradient(var(--teal), var(--teal)) 0 100% / 0 1.5px no-repeat; transition: background-size .35s var(--mo-ease), color .2s; padding-bottom: 2px; }
html.mo .top nav a:hover { background-size: 100% 1.5px; }

/* Property page: thumbnails and key facts respond to the pointer. */
html.mo .thumbs button { transition: translate .4s var(--mo-ease), border-color .2s; }
html.mo .thumbs button:hover { translate: 0 -3px; }
html.mo .keyfacts > span, html.mo .features li { transition: translate .4s var(--mo-ease), border-color .3s; }
html.mo .keyfacts > span:hover { translate: 0 -2px; border-color: var(--teal); }
html.mo .gallery .main img { transition: scale 1.2s var(--mo-ease); }
html.mo .gallery .main:hover img { scale: 1.03; }
