/* McKinley Group — Match (swipe-to-find-your-home). Scoped .mm- ; uses tokens.css. */

.mm-stage {
  max-width: 560px;
  margin: 0 auto;
  padding: clamp(74px, 12vh, 110px) var(--gutter) 2rem;
  min-height: 100svh;
}
.mm-stage [hidden], .mm-preview [hidden] { display: none !important; }
.mm-screen { animation: mm-in .4s var(--ease) both; }
@keyframes mm-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.mm-loading { display: flex; align-items: center; justify-content: center; gap: .9rem; min-height: 60svh; color: var(--grey); font-size: .9rem; letter-spacing: .04em; }
.mm-spin { width: 18px; height: 18px; border: 2px solid var(--line); border-top-color: var(--green); border-radius: 50%; animation: mm-rot .8s linear infinite; }
@keyframes mm-rot { to { transform: rotate(360deg); } }

/* ---------- intro / setup ---------- */
.mm-h1 { font-family: var(--serif); font-size: clamp(2.3rem, 8vw, 3.4rem); color: var(--ink); line-height: 1.02; margin: .5rem 0 .8rem; }
.mm-h2 { font-family: var(--serif); font-size: clamp(1.9rem, 6vw, 2.7rem); color: var(--ink); line-height: 1.05; margin: .4rem 0 .7rem; }
.mm-lead { color: rgba(28,26,24,.74); font-size: 1.02rem; line-height: 1.6; max-width: 46ch; }
.mm-setup { margin: 2rem 0 1.6rem; display: flex; flex-direction: column; gap: 1.7rem; }
.mm-field { display: flex; flex-direction: column; gap: .7rem; }
.mm-flabel { font-family: var(--sans); font-size: var(--cap); font-weight: 600; text-transform: uppercase; letter-spacing: .22em; color: var(--ink); }
.mm-flabel em { color: var(--grey); font-style: normal; font-weight: 400; text-transform: none; letter-spacing: .02em; }

/* dual range */
.mm-range { position: relative; height: 34px; }
.mm-range__track { position: absolute; top: 15px; left: 0; right: 0; height: 4px; background: var(--line); border-radius: 2px; }
.mm-range__fill { position: absolute; top: 0; bottom: 0; background: var(--green); border-radius: 2px; }
.mm-range input[type=range] { position: absolute; top: 0; left: 0; width: 100%; height: 34px; margin: 0; -webkit-appearance: none; appearance: none; background: transparent; pointer-events: none; }
.mm-range input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 22px; height: 22px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.28); cursor: pointer; }
.mm-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.28); cursor: pointer; }
.mm-range__out { display: flex; justify-content: space-between; margin-top: .5rem; font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }

/* chips */
.mm-chips { display: flex; flex-wrap: wrap; gap: .55rem; }
.mm-chip { font-family: var(--sans); font-size: .82rem; font-weight: 500; letter-spacing: .02em; color: rgba(28,26,24,.78); background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1.05rem; min-height: 44px; display: inline-flex; align-items: center; cursor: pointer; transition: all .25s var(--ease); }
@media (hover: hover) { .mm-chip:hover { border-color: var(--green); } }
.mm-chip.on { background: var(--green); color: #fff; border-color: var(--green); }
.mm-chips--beds .mm-chip { min-width: 56px; text-align: center; }

.mm-start { width: 100%; text-align: center; }
.mm-fineprint { margin-top: 1.1rem; font-size: .7rem; color: var(--grey); line-height: 1.6; letter-spacing: .02em; }

/* ---------- play / deck ---------- */
.mm-play { display: flex; flex-direction: column; min-height: calc(100svh - clamp(86px, 13vh, 130px)); }
.mm-hud { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.mm-hud__l { display: flex; flex-direction: column; gap: .15rem; }
.mm-count { font-family: var(--sans); font-size: var(--cap); font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--grey); }
.mm-hint { font-family: var(--serif); font-size: 1.12rem; color: var(--ink); }
.mm-matchbtn { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .04em; color: var(--grey); background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .55rem .95rem; cursor: pointer; transition: all .3s var(--ease); white-space: nowrap; }
.mm-matchbtn:disabled { opacity: .55; cursor: default; }
.mm-matchbtn.on { color: #fff; background: var(--green); border-color: var(--green); }
.mm-heart { font-size: .95rem; line-height: 1; }

.mm-deck { position: relative; flex: 1; min-height: 360px; }
.mm-card { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 50px rgba(28,26,24,.22), 0 2px 8px rgba(28,26,24,.12); will-change: transform; }
.mm-card--top { cursor: grab; }
.mm-card--top:active { cursor: grabbing; }
.mm-card__photo { position: relative; flex: 1; min-height: 0; background: var(--champagne); }
.mm-card__photo img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; user-select: none; }
.mm-card__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,14,12,0) 55%, rgba(16,14,12,.34) 100%); pointer-events: none; z-index: 1; }

/* photo gallery — tap left/right of the photo to flip; segmented bars track position */
.mm-card__dots { position: absolute; top: 9px; left: 11px; right: 11px; z-index: 4; display: flex; gap: 4px; }
.mm-dot { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.42); transition: background .2s var(--ease); }
.mm-dot.on { background: #fff; }
.mm-pnav { position: absolute; top: 0; bottom: 0; width: 30%; background: transparent; border: 0; padding: 0; margin: 0; cursor: pointer; z-index: 3; -webkit-tap-highlight-color: transparent; }
.mm-pnav--prev { left: 0; }
.mm-pnav--next { right: 0; }

.mm-card__status { position: absolute; top: 22px; left: 14px; z-index: 4; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; padding: .42rem .7rem; border-radius: 3px; backdrop-filter: blur(2px); }
.mm-sale { background: rgba(44,52,38,.92); }
.mm-uc { background: rgba(28,26,24,.86); }
.mm-soon { background: rgba(120,86,42,.92); }
.mm-card__broker { position: absolute; right: 14px; bottom: 14px; z-index: 4; background: rgba(255,255,255,.94); border-radius: 6px; padding: .32rem .55rem; box-shadow: 0 4px 14px rgba(28,26,24,.22); display: inline-flex; align-items: center; }
.mm-card__broker img { display: block; height: 16px; width: auto; }
.mm-card__info { padding: 1.1rem 1.2rem 1.25rem; }
.mm-card__price { font-family: var(--serif); font-size: 1.85rem; color: var(--ink); line-height: 1; }
.mm-card__addr { font-family: var(--sans); font-weight: 600; font-size: 1rem; color: var(--ink); margin-top: .35rem; }
.mm-card__area { font-size: .85rem; color: var(--grey); margin-top: .1rem; }
.mm-card__meta { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; }
.mm-card__meta span { font-family: var(--sans); font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: rgba(28,26,24,.7); background: var(--paper); border-radius: 4px; padding: .3rem .55rem; }
.mm-card__meta .mm-meta-type { color: var(--green); background: rgba(44,52,38,.1); font-weight: 600; }

/* swipe stamps */
.mm-stamp { position: absolute; top: 40px; z-index: 5; font-family: var(--sans); font-weight: 800; font-size: 1.5rem; letter-spacing: .12em; text-transform: uppercase; padding: .35rem .8rem; border: 3px solid currentColor; border-radius: 8px; opacity: 0; pointer-events: none; }
.mm-stamp--like { right: 18px; color: #2c3426; transform: rotate(14deg); background: rgba(255,255,255,.7); }
.mm-stamp--pass { left: 18px; color: #b23b34; transform: rotate(-14deg); background: rgba(255,255,255,.7); }

/* controls */
.mm-controls { display: flex; align-items: center; justify-content: center; gap: 1.5rem; margin-top: 1.1rem; }
.mm-ctrl { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; cursor: pointer; background: var(--white); border: 1px solid var(--line); transition: transform .2s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease); box-shadow: 0 6px 18px rgba(28,26,24,.12); }
@media (hover: hover) { .mm-ctrl:hover { transform: translateY(-2px); } }
.mm-ctrl:active { transform: scale(.92); }
.mm-ctrl--pass { width: 62px; height: 62px; font-size: 1.5rem; color: #b23b34; }
@media (hover: hover) { .mm-ctrl--pass:hover { background: #b23b34; color: #fff; border-color: #b23b34; } }
.mm-ctrl--like { width: 62px; height: 62px; font-size: 1.6rem; color: #fff; background: var(--green); border-color: var(--green); }
@media (hover: hover) { .mm-ctrl--like:hover { background: var(--green-deep); } }
.mm-ctrl--undo { width: 46px; height: 46px; font-size: 1.15rem; color: var(--grey); }
@media (hover: hover) { .mm-ctrl--undo:hover { color: var(--ink); } }
.mm-swipehint { text-align: center; font-size: .72rem; color: var(--grey); letter-spacing: .03em; margin-top: .8rem; }

/* ---------- results ---------- */
.mm-results__head { text-align: center; }
.mm-results .mm-lead { margin: 0 auto; }
.mm-gate { display: flex; flex-direction: column; gap: .8rem; max-width: 380px; margin: 1.8rem auto 0; }
.mm-gate input { font-family: var(--sans); font-size: 1rem; padding: .95rem 1.1rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 6px; }
.mm-gate input:focus { outline: none; border-color: var(--green); }
.mm-gate .btn { width: 100%; text-align: center; }
.mm-consent { font-size: .68rem; color: var(--grey); line-height: 1.6; text-align: center; }

.mm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.8rem; }
.mm-rcard { background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.mm-rcard__img { position: relative; aspect-ratio: 4/3; background: var(--champagne); }
.mm-rcard__img img { width: 100%; height: 100%; object-fit: cover; }
.mm-rcard__price { font-family: var(--serif); font-size: 1.25rem; color: var(--ink); padding: .7rem .8rem 0; }
.mm-rcard__addr { font-family: var(--sans); font-weight: 600; font-size: .82rem; color: var(--ink); padding: .15rem .8rem 0; }
.mm-rcard__meta { font-size: .72rem; color: var(--grey); padding: .15rem .8rem .9rem; }
.mm-results__foot { text-align: center; margin-top: 1.8rem; }
.mm-thanks { font-family: var(--serif); font-size: 1.15rem; color: var(--ink); }
.mm-thanks span { display: block; font-family: var(--sans); font-size: .68rem; color: var(--grey); letter-spacing: .03em; margin-top: .4rem; }
.mm-results__btns { display: flex; gap: .8rem; justify-content: center; margin-top: 1.2rem; flex-wrap: wrap; }

/* ---------- homepage "find your home" section (big, fills the fold) ---------- */
.mm-home { min-height: 100svh; display: flex; align-items: center; padding-top: clamp(5rem, 10vh, 8rem); padding-bottom: clamp(3rem, 6vh, 5rem); }
.mm-home__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; width: 100%; max-width: 1200px; margin: 0 auto; }
.mm-home__h { font-family: var(--serif); font-size: clamp(3rem, 5.6vw, 5rem); line-height: 0.98; color: var(--ink); margin: .7rem 0 1.05rem; }
.mm-home__lead { color: rgba(28,26,24,.74); font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; max-width: 44ch; }
.mm-home__filter { display: flex; flex-direction: column; gap: 1.4rem; margin: 1.9rem 0; max-width: 460px; }
.mm-home__cta { display: inline-block; }
.mm-home__deck { position: relative; }
.mm-home .mm-deck { height: clamp(460px, 64vh, 620px); min-height: 0; max-width: 470px; margin: 0 auto; }

.mm-preview__ctrls { display: flex; align-items: center; justify-content: center; gap: 1.4rem; margin-top: 1.1rem; }
.mm-preview__info { display: grid; grid-template-columns: 1fr auto 1fr; align-items: baseline; column-gap: .7rem; margin-top: 1.05rem; font-size: .78rem; color: var(--grey); letter-spacing: .06em; text-transform: uppercase; }
.mm-preview__info .mm-likes { grid-column: 1; justify-self: end; white-space: nowrap; }
.mm-preview__info b { color: var(--green); font-weight: 600; }
.mm-allmatches { grid-column: 2; justify-self: center; font-family: var(--sans); font-weight: 600; font-size: .82rem; text-transform: uppercase; letter-spacing: .14em; color: var(--green); text-decoration: none; border-bottom: 1.5px solid var(--green); padding-bottom: 4px; transition: color .15s, border-color .15s; }
@media (hover: hover) { .mm-allmatches:hover { color: var(--green-deep); border-color: var(--green-deep); } }
.mm-pvempty { display: flex; align-items: center; justify-content: center; height: 100%; text-align: center; color: var(--grey); border: 1px dashed var(--line); border-radius: 14px; padding: 2rem; font-size: .9rem; }
.mm-pvend { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; height: 100%; text-align: center; background: var(--green); color: #fff; border-radius: 14px; padding: 2rem; font-family: var(--sans); font-weight: 600; letter-spacing: .04em; }
.mm-pvend span { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .mm-home { min-height: 0; }
  .mm-home__grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .mm-home__h { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .mm-home__filter { max-width: 100%; }
  .mm-home .mm-deck { height: 60svh; max-width: 360px; }
  .mm-grid { gap: .7rem; }
}
@media (min-width: 700px) {
  .mm-stage { max-width: 600px; }
  .mm-deck { min-height: 440px; }
}
/* landscape phone: shrink the deck so Pass/Like stay on-screen */
@media (max-height: 480px) and (orientation: landscape) {
  .mm-stage { padding-top: 60px; }
  .mm-play { min-height: auto; }
  .mm-deck { min-height: 190px; }
  .mm-home { min-height: 0; }
}

/* ============================================================
   FEATURED LISTINGS — hero + 6-grid (Featured page) + trio (Rent page)
   Photo carousel per card, scroll parallax, click-into-detail.
   ============================================================ */
.feat-lead { padding-top: clamp(7rem, 12vh, 9.5rem); }
.feat-lead__head { max-width: 780px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.feat-lead__head h1 { font-family: var(--serif); font-size: clamp(2.8rem, 6vw, 5rem); line-height: 1; color: var(--ink); margin: .5rem 0 .9rem; }
.feat-lead__sub { color: rgba(28,26,24,.74); font-size: clamp(1.02rem, 1.3vw, 1.18rem); line-height: 1.6; max-width: 58ch; }
.feat-more { padding-top: clamp(2.5rem, 5vh, 4rem); }
.feat-more .section-head { margin-bottom: clamp(1.6rem, 3vw, 2.6rem); }

.feat-card { cursor: pointer; outline: none; }
.feat-card--grid, .feat-card--trio { transition: transform .35s var(--ease); }
@media (hover: hover) { .feat-card--grid:hover, .feat-card--trio:hover { transform: translateY(-4px); } }
.feat-card__frame { position: relative; overflow: hidden; background: var(--champagne); border-radius: 14px; box-shadow: 0 14px 40px rgba(28,26,24,.14); }
.feat-pan { position: absolute; top: -14%; left: 0; width: 100%; height: 128%; will-change: transform; }
.feat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform; -webkit-user-drag: none; user-select: none; }
.feat-img--kb { animation: feat-kenburns 26s ease-in-out infinite; }
@keyframes feat-kenburns {
  0%   { transform: scale(1.03) translate3d(0, 0, 0); }
  50%  { transform: scale(1.10) translate3d(0, -1.8%, 0); }
  100% { transform: scale(1.03) translate3d(0, 0, 0); }
}
@media (prefers-reduced-motion: reduce) { .feat-img--kb { animation: none; } }
.feat-card__shade { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(180deg, rgba(16,14,12,.20) 0%, rgba(16,14,12,0) 26%, rgba(16,14,12,0) 58%, rgba(16,14,12,.46) 100%); }
.feat-card__status { position: absolute; top: 22px; left: 14px; z-index: 4; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; padding: .42rem .7rem; border-radius: 3px; backdrop-filter: blur(2px); }
.feat-card__view { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: inline-flex; align-items: center; gap: .3rem; font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .03em; color: var(--ink); background: rgba(255,255,255,.94); padding: .5rem .9rem; border-radius: 999px; box-shadow: 0 4px 14px rgba(28,26,24,.22); transform: translateY(3px); transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease); }
.feat-card__broker { position: absolute; right: 14px; bottom: 14px; z-index: 5; background: rgba(255,255,255,.94); border-radius: 6px; padding: .35rem .6rem; box-shadow: 0 4px 14px rgba(28,26,24,.22); display: inline-flex; align-items: center; }
.feat-card__broker img { display: block; height: 18px; width: auto; }
.feat-card:focus-visible .feat-card__view { transform: translateY(0); background: var(--green); color: #fff; }
@media (hover: hover) { .feat-card:hover .feat-card__view { transform: translateY(0); background: var(--green); color: #fff; } }
.feat-card:focus-visible .feat-card__frame { outline: 2px solid var(--green); outline-offset: 3px; }
.feat-card__info { padding: 1rem .15rem 0; }
.feat-card__price { font-family: var(--serif); font-size: 1.7rem; color: var(--ink); line-height: 1; }
.feat-card__addr { font-family: var(--sans); font-weight: 600; font-size: .98rem; color: var(--ink); margin-top: .35rem; }
.feat-card__area { font-size: .85rem; color: var(--grey); margin-top: .1rem; }
.feat-card__nc, .mm-card__nc { display: inline-block; margin-top: .55rem; padding: .3em .6em; border: 1px solid var(--line);
  font-size: .62rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); }
.feat-card--hero .feat-card__nc { color: #fff; border-color: rgba(255,255,255,.5); }
.feat-card--nc { display: block; color: inherit; text-decoration: none; }
.feat-card--nc .soon-tile { position: absolute; inset: 0; }
.feat-card__meta { font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: rgba(28,26,24,.6); margin-top: .55rem; }

/* hero — one big full-bleed featured listing (the show-off piece) */
.feat-hero { width: 100vw; margin-left: calc(50% - 50vw); margin-top: clamp(1.6rem, 3vw, 2.6rem); }
.feat-card--hero { display: block; position: relative; width: 100%; }
.feat-card--hero .feat-card__frame { aspect-ratio: auto; height: clamp(440px, 84vh, 960px); border-radius: 0; box-shadow: none; }
.feat-card--hero .feat-card__shade { background: linear-gradient(to top, rgba(8,10,7,.85) 0%, rgba(8,10,7,.5) 22%, rgba(8,10,7,.06) 48%, rgba(8,10,7,0) 70%); }
.feat-card--hero .feat-card__info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; pointer-events: none; padding: clamp(1.6rem, 4.5vw, 4.6rem); color: #fff; max-width: 880px; }
.feat-card--hero .feat-card__price { color: #fff; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; text-shadow: 0 2px 34px rgba(0,0,0,.45); }
.feat-card--hero .feat-card__addr { color: #fff; font-size: clamp(1.15rem, 2.2vw, 1.7rem); margin-top: .7rem; }
.feat-card--hero .feat-card__area { color: rgba(255,255,255,.86); font-size: clamp(1rem, 1.4vw, 1.18rem); margin-top: .15rem; }
.feat-card--hero .feat-card__meta { color: rgba(255,255,255,.82); font-size: .86rem; margin-top: 1rem; }
.feat-card--hero .feat-card__status { top: clamp(1.3rem, 3vw, 2.2rem); left: clamp(1.3rem, 3vw, 2.2rem); font-size: .68rem; padding: .5rem .85rem; }
/* hero photo arrows — visible circular buttons, top-right (replace the invisible side zones) */
.feat-card--hero .mm-pnav { top: clamp(1.3rem, 3vw, 2.2rem); bottom: auto; width: 50px; height: 50px; border-radius: 999px; background: rgba(255,255,255,.9); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.28); z-index: 5; transition: background .25s var(--ease), transform .25s var(--ease); }
@media (hover: hover) { .feat-card--hero .mm-pnav:hover { background: #fff; transform: scale(1.06); } }
.feat-card--hero .mm-pnav::before { font-family: var(--sans); font-size: 1.5rem; font-weight: 400; color: var(--ink); line-height: 1; }
.feat-card--hero .mm-pnav--prev { left: auto; right: calc(clamp(1.3rem, 3vw, 2.2rem) + 60px); }
.feat-card--hero .mm-pnav--prev::before { content: '\2039'; }
.feat-card--hero .mm-pnav--next { right: clamp(1.3rem, 3vw, 2.2rem); }
.feat-card--hero .mm-pnav--next::before { content: '\203A'; }
/* hero "view listing" pill — bottom-right, above the scrim */
.feat-card--hero .feat-card__view { left: auto; top: auto; right: clamp(1.6rem, 4vw, 3rem); bottom: clamp(1.6rem, 4vw, 3rem); transform: none; }
.feat-card--hero:focus-visible .feat-card__view { transform: none; background: var(--green); color: #fff; }
@media (hover: hover) { .feat-card--hero:hover .feat-card__view { transform: none; background: var(--green); color: #fff; } }
/* hero broker mark — bottom-left, opposite the view-listing pill */
.feat-card--hero .feat-card__broker { left: clamp(1.6rem, 4vw, 3rem); right: auto; bottom: clamp(1.6rem, 4vw, 3rem); padding: .5rem .8rem; }
.feat-card--hero .feat-card__broker img { height: 22px; }

.feat-grid, .feat-trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.4rem, 2.4vw, 2.2rem); }
.feat-card--grid .feat-card__frame, .feat-card--trio .feat-card__frame { aspect-ratio: 4 / 3; }
.feat-empty { grid-column: 1 / -1; text-align: center; color: var(--grey); padding: 2.5rem 1rem; border: 1px dashed var(--line); border-radius: 14px; }
.feat-empty a { color: var(--green); font-weight: 600; }

/* trio adapts to how many featured rentals actually exist: 1 = full-width hero carousel, 2 = side by side, 3 = the original trio grid */
.feat-trio.feat-trio--single { grid-template-columns: 1fr; }
.feat-trio.feat-trio--pair { grid-template-columns: repeat(2, 1fr); }
.feat-trio--single .feat-card--hero .feat-card__frame { height: clamp(400px, 60vh, 720px); }

@media (max-width: 920px) {
  .feat-grid, .feat-trio { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .feat-card--hero .feat-card__frame { height: clamp(420px, 78vh, 640px); }
  .feat-card--hero .mm-pnav { width: 44px; height: 44px; }
}
@media (max-width: 600px) {
  .feat-grid, .feat-trio { grid-template-columns: 1fr; }
  .feat-card--grid .feat-card__frame, .feat-card--trio .feat-card__frame { aspect-ratio: 16 / 11; }
  .feat-trio.feat-trio--pair { grid-template-columns: 1fr; }
}

/* ============================================================
   LISTING DETAIL MODAL — the "learn more" lightbox
   ============================================================ */
.mm-detail { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: clamp(.8rem, 3vw, 2rem); }
.mm-detail.open { display: flex; }
.mm-detail__backdrop { position: absolute; inset: 0; background: rgba(16,14,12,.62); backdrop-filter: blur(3px); }
.mm-detail__panel { position: relative; z-index: 1; display: grid; grid-template-columns: 1.4fr 1fr; width: min(1040px, 100%); max-height: 92vh; background: var(--paper); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 90px rgba(16,14,12,.5); animation: mmDetailIn .3s var(--ease); }
@keyframes mmDetailIn { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.mm-detail__close { position: absolute; top: 12px; right: 12px; z-index: 6; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 1rem; cursor: pointer; box-shadow: 0 4px 14px rgba(28,26,24,.25); }
.mm-detail__media { position: relative; background: #000; min-height: 320px; }
.mm-detail__img { width: 100%; height: 100%; max-height: 92vh; object-fit: cover; display: block; }
.mm-detail__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.mm-detail__nav--prev { left: 12px; } .mm-detail__nav--next { right: 12px; }
.mm-detail__count { position: absolute; bottom: 12px; right: 14px; z-index: 5; font-family: var(--sans); font-size: .72rem; letter-spacing: .08em; color: #fff; background: rgba(16,14,12,.6); padding: .3rem .6rem; border-radius: 999px; }
.mm-detail__status { position: absolute; top: 14px; left: 14px; z-index: 5; font-family: var(--sans); font-size: .62rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: #fff; padding: .42rem .7rem; border-radius: 3px; }
.mm-detail__body { padding: clamp(1.5rem, 3vw, 2.4rem); overflow-y: auto; display: flex; flex-direction: column; }
.mm-detail__price { font-family: var(--serif); font-size: clamp(2rem, 3vw, 2.6rem); color: var(--ink); line-height: 1; }
.mm-detail__addr { font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink); margin-top: .6rem; }
.mm-detail__area { color: var(--grey); margin-top: .15rem; }
.mm-detail__facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.mm-detail__facts span { font-family: var(--sans); font-size: .8rem; letter-spacing: .03em; color: rgba(28,26,24,.78); background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; }
.mm-detail__facts b { font-weight: 700; color: var(--ink); }
.mm-detail__cta { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: auto; padding-top: 1.6rem; }
.mm-detail__note { font-size: .72rem; color: var(--grey); line-height: 1.6; margin-top: 1rem; }
@media (max-width: 800px) {
  .mm-detail__panel { grid-template-columns: 1fr; max-height: 94vh; }
  .mm-detail__media { min-height: 240px; max-height: 44vh; }
  .mm-detail__img { max-height: 44vh; }
}

/* ============================================================
   TESTIMONIALS — shared quote card + home carousel + full page
   ============================================================ */
/* shared flat quote card (dark = on ink/forest, light = on cream) */
.tq { position: relative; margin: 0; padding: 2.2rem 0 0; }
.tq__mark { font-family: var(--serif); font-size: 5rem; line-height: .6; position: absolute; top: 0; left: -2px; opacity: .26; }
.tq__quote { font-family: var(--sans); font-weight: 300; font-size: clamp(1rem, 1.3vw, 1.18rem); line-height: 1.62; letter-spacing: .003em; margin: 0; }
.tq__cite { font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; margin-top: 1.4rem; display: flex; align-items: center; gap: .9rem; }
.tq__rule { display: inline-block; width: 30px; height: 1px; flex: 0 0 auto; }
.tq--dark .tq__mark { color: var(--champagne); }
.tq--dark .tq__quote { color: var(--white); }
.tq--dark .tq__cite { color: rgba(228,223,216,.72); }
.tq--dark .tq__rule { background: rgba(228,223,216,.5); }
.tq--light .tq__mark { color: var(--green); }
.tq--light .tq__quote { color: var(--ink); }
.tq--light .tq__cite { color: var(--green); }
.tq--light .tq__rule { background: rgba(44,52,38,.4); }

/* home carousel — dark band, 2-up, auto-rotating crossfade */
.tcar { position: relative; margin-top: clamp(2rem, 4vw, 3.2rem); }
.tcar__stage { position: relative; }
.tcar__slide { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); opacity: 0; visibility: hidden; transition: opacity .8s var(--ease); pointer-events: none; }
.tcar__slide.is-active { position: relative; opacity: 1; visibility: visible; pointer-events: auto; }
.tcar__dots { display: flex; justify-content: center; gap: .6rem; margin-top: clamp(2rem, 4vw, 3rem); }
.tcar__dot { width: 9px; height: 9px; padding: 0; border-radius: 50%; border: 1px solid rgba(228,223,216,.5); background: transparent; cursor: pointer; transition: background .3s var(--ease), border-color .3s var(--ease); }
.tcar__dot.is-on { background: var(--champagne); border-color: var(--champagne); }
@media (prefers-reduced-motion: reduce) { .tcar__slide { transition: none; } }
@media (max-width: 720px) {
  .tcar__slide { grid-template-columns: 1fr; gap: 0; }
  .tcar__slide .tq + .tq { display: none; } /* one quote per slide on mobile */
}

/* ---- full testimonials page ---- */
.t-hero { position: relative; min-height: 62vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.t-hero__media { position: absolute; inset: 0; z-index: 0; }
.t-hero__media img { width: 100%; height: 100%; object-fit: cover; }
.t-hero__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(31,36,25,.55), rgba(31,36,25,.55)); }
.t-hero__inner { position: relative; z-index: 1; padding: 0 var(--gutter); }
.t-hero h1 { font-family: var(--serif); color: #fff; font-size: clamp(2.8rem, 7vw, 5.5rem); line-height: 1; letter-spacing: .01em; }
.t-hero p { color: rgba(255,255,255,.86); font-family: var(--sans); margin-top: 1rem; font-size: clamp(1rem, 1.4vw, 1.18rem); }

.t-sub { text-align: center; }
.t-sub .eyebrow { color: rgba(228,223,216,.7); }
.t-sub h2 { color: var(--white); font-size: clamp(2rem, 4vw, 3.2rem); }

/* featured pull-quote on dark */
.tfeat { max-width: 980px; margin: 0 auto; text-align: center; position: relative; }
.tfeat::before { content: '“'; font-family: var(--serif); color: rgba(228,223,216,.16); font-size: clamp(7rem, 16vw, 13rem); line-height: .8; position: absolute; top: -.35em; left: 50%; transform: translateX(-50%); pointer-events: none; }
.tfeat__quote { position: relative; font-family: var(--sans); font-weight: 300; color: #fff; font-size: clamp(1.4rem, 2.9vw, 2.3rem); line-height: 1.45; margin: 0; }
.tfeat__cite { font-family: var(--sans); font-size: .8rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(228,223,216,.74); margin-top: 1.8rem; }

/* flat cream grid */
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.4rem, 5vw, 5rem) clamp(2.6rem, 6vw, 6rem); }
@media (max-width: 760px) { .tgrid { grid-template-columns: 1fr; gap: 3rem; } }

/* full-bleed interior photo break band */
.t-photo { width: 100vw; margin-left: calc(50% - 50vw); height: clamp(320px, 46vh, 520px); position: relative; overflow: hidden; }
.t-photo img { width: 100%; height: 100%; object-fit: cover; }
.t-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(31,36,25,.28), rgba(31,36,25,.28)); }

/* CTA band */
.t-cta { position: relative; min-height: 52vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.t-cta__media { position: absolute; inset: 0; z-index: 0; }
.t-cta__media img { width: 100%; height: 100%; object-fit: cover; }
.t-cta__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(20,24,16,.6), rgba(20,24,16,.6)); }
.t-cta__inner { position: relative; z-index: 1; padding: 0 var(--gutter); }
.t-cta h2 { font-family: var(--serif); color: #fff; font-size: clamp(2rem, 4.5vw, 3.4rem); }
.t-cta p { color: rgba(255,255,255,.85); margin: 1rem auto 0; max-width: 56ch; }
.btn--outline-light { display: inline-block; margin-top: 1.8rem; border: 1.5px solid rgba(255,255,255,.85); color: #fff; background: transparent; padding: .9rem 2rem; font-family: var(--sans); font-size: .76rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; border-radius: 999px; transition: background .3s var(--ease), color .3s var(--ease); }
@media (hover: hover) { .btn--outline-light:hover { background: #fff; color: var(--ink); } }

/* ============================================================
   TESTIMONIALS GALLERY v2 — editorial interleave (photos + quotes)
   ============================================================ */
/* full-bleed photo band caption */
.t-photo { position: relative; }
.t-photo__cap { position: absolute; left: clamp(1.2rem,4vw,3rem); bottom: clamp(1rem,3vw,2rem); z-index: 2;
  font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase;
  color: rgba(255,255,255,.92); text-shadow: 0 1px 16px rgba(0,0,0,.55); }

/* big quote over a photo */
.t-over { position: relative; min-height: 72vh; display: flex; align-items: center; justify-content: center; text-align: center; overflow: hidden; }
.t-over__media { position: absolute; inset: 0; z-index: 0; }
.t-over__media img { width: 100%; height: 100%; object-fit: cover; }
.t-over__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(20,24,16,.6), rgba(20,24,16,.64)); }
.t-over__inner { position: relative; z-index: 1; max-width: 900px; padding: 0 var(--gutter); }
.t-over__mark { display: block; font-family: var(--serif); font-size: clamp(4rem,9vw,7rem); line-height: .5; color: rgba(255,255,255,.32); margin-bottom: .3rem; }
.t-over__quote { font-family: var(--sans); font-weight: 300; color: #fff; font-size: clamp(1.35rem, 2.8vw, 2.2rem); line-height: 1.45; margin: 0; }
.t-over__cite { font-family: var(--sans); font-size: .74rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.82); margin-top: 1.6rem; }

/* detail image rows (triptych / duo) — full bleed */
.t-trip, .t-duo { display: grid; gap: clamp(.5rem, 1vw, .9rem); width: 100vw; margin-left: calc(50% - 50vw); }
.t-trip { grid-template-columns: repeat(3, 1fr); }
.t-duo  { grid-template-columns: repeat(2, 1fr); }
.t-trip img, .t-duo img { width: 100%; height: clamp(300px, 42vh, 580px); object-fit: cover; display: block; }
.t-rowcap { text-align: center; font-family: var(--sans); font-size: .66rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--grey); padding: clamp(1.1rem,2.5vw,1.8rem) var(--gutter) 0; }
@media (max-width: 760px) {
  .t-trip, .t-duo { grid-template-columns: 1fr; }
  .t-trip img, .t-duo img { height: clamp(240px, 48vh, 360px); }
}

/* ===================================================================
   "Your matches" modal — liked listings + contact + broker callback
   (z-index 990 sits below the listing detail lightbox at 1000)
   =================================================================== */
.mm-matches { position: fixed; inset: 0; z-index: 990; display: flex; align-items: center; justify-content: center; padding: clamp(1rem,4vw,2.5rem); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease); }
.mm-matches.open { opacity: 1; visibility: visible; }
.mm-matches__backdrop { position: absolute; inset: 0; background: rgba(20,18,16,.62); backdrop-filter: blur(3px); }
.mm-matches__panel { position: relative; z-index: 1; width: min(560px, 100%); max-height: 90vh; overflow-y: auto; background: var(--white); border-radius: 16px; padding: clamp(1.6rem,4vw,2.6rem); box-shadow: 0 30px 90px rgba(16,14,12,.5); transform: translateY(16px); transition: transform .4s var(--ease); -webkit-overflow-scrolling: touch; }
.mm-matches.open .mm-matches__panel { transform: none; }
.mm-matches__close { position: absolute; top: 1rem; right: 1rem; width: 42px; height: 42px; border: 0; background: var(--paper); border-radius: 50%; cursor: pointer; font-size: 1rem; color: var(--ink); transition: background .25s var(--ease); }
@media (hover: hover) { .mm-matches__close:hover { background: var(--champagne); } }
.mm-matches__head { margin-bottom: 1.3rem; padding-right: 2.6rem; }
.mm-matches__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.6rem,4vw,2.2rem); color: var(--ink); margin: .25rem 0 .45rem; line-height: 1.1; }
.mm-matches__sub { font-family: var(--sans); font-weight: 300; font-size: .93rem; color: var(--grey); line-height: 1.55; margin: 0; }
.mm-matches__list { display: flex; flex-direction: column; gap: .55rem; margin-bottom: 1.5rem; }
.mm-matches__list:empty { margin-bottom: 0; }
.mm-mrow { display: flex; align-items: center; gap: 1rem; width: 100%; text-align: left; background: var(--paper); border: 1px solid transparent; border-radius: 11px; padding: .55rem; cursor: pointer; font-family: var(--sans); transition: border-color .25s var(--ease), background .25s var(--ease), transform .25s var(--ease); }
@media (hover: hover) { .mm-mrow:hover { border-color: var(--green); background: #fff; transform: translateY(-1px); } }
.mm-mrow__img { width: 80px; height: 62px; border-radius: 8px; overflow: hidden; flex: none; background: var(--champagne); }
.mm-mrow__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mm-mrow__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.mm-mrow__price { font-weight: 700; color: var(--ink); font-size: 1rem; }
.mm-mrow__addr { color: var(--ink); font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mm-mrow__meta { color: var(--grey); font-size: .8rem; }
.mm-mrow__go { flex: none; color: var(--green); font-weight: 600; font-size: .8rem; letter-spacing: .04em; }
.mm-matches__form { display: flex; flex-direction: column; gap: .8rem; }
.mm-matches__form[hidden] { display: none; }
.mm-matches__fields { display: flex; flex-direction: column; gap: .55rem; }
.mm-matches__fields input { width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 9px; font-family: var(--sans); font-size: .95rem; color: var(--ink); background: #fff; }
.mm-matches__fields input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(44,52,38,.12); }
.mm-matches__btns { display: flex; flex-wrap: wrap; gap: .6rem; }
.mm-matches__btns .btn { flex: 1 1 auto; text-align: center; justify-content: center; }
.mm-matches__consent { font-size: .72rem; color: var(--grey); line-height: 1.5; margin: .1rem 0 0; }
.mm-matches__done[hidden], .mm-matches__list[hidden] { display: none; }
.mm-matches__doneinner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .85rem; padding: 1.4rem 0 .4rem; }
.mm-matches__check { width: 56px; height: 56px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.mm-matches__doneinner p { font-family: var(--sans); color: var(--ink); margin: 0; max-width: 42ch; line-height: 1.55; }
.mm-matches__note { font-size: .75rem; color: var(--grey) !important; }
@media (max-width: 480px) { .mm-matches__btns .btn { flex-basis: 100%; } }

/* ---------- first-run swipe coachmarks ---------- */
.mm-deck { position: relative; }
.mm-tut { position: absolute; inset: 0; z-index: 40; pointer-events: none; display: flex; align-items: center;
          justify-content: space-between; border-radius: 18px; overflow: hidden; transition: opacity .42s var(--ease); }
.mm-tut.out { opacity: 0; }
.mm-tut::before { content: ""; position: absolute; inset: 0; background: rgba(28,26,24,.5); }
.mm-tut__hint { position: relative; z-index: 1; color: #fff; font-family: var(--sans); font-size: .72rem; font-weight: 500;
                text-transform: uppercase; letter-spacing: .14em; text-align: center; line-height: 1.55;
                background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.42);
                padding: .65rem .7rem; margin: 0 .6rem; border-radius: .7rem; backdrop-filter: blur(3px); }
.mm-tut__hint b { font-size: .92rem; letter-spacing: .08em; }
.mm-tut__ar { display: block; font-size: 1.55rem; line-height: 1; margin-bottom: .15rem; }
.mm-tut__hint--left { animation: mmNudgeL 1.7s var(--ease) infinite; }
.mm-tut__hint--right { animation: mmNudgeR 1.7s var(--ease) infinite; }
@keyframes mmNudgeL { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-7px); } }
@keyframes mmNudgeR { 0%,100% { transform: translateX(0); } 50% { transform: translateX(7px); } }
.mm-tut__tap { position: absolute; left: 50%; top: 44%; transform: translate(-50%,-50%); z-index: 1; color: #fff;
               text-align: center; font-family: var(--sans); font-size: .7rem; font-weight: 500; text-transform: uppercase;
               letter-spacing: .14em; line-height: 1.55; }
.mm-tut__ring { display: block; width: 44px; height: 44px; margin: 0 auto .55rem; border-radius: 50%; border: 2px solid #fff; position: relative; }
.mm-tut__ring::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255,255,255,.75);
                       animation: mmTap 1.5s ease-out infinite; }
@keyframes mmTap { 0% { transform: scale(.65); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.mm-tut__got { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; pointer-events: auto;
               background: #fff; color: var(--ink); border: 0; font-family: var(--sans); font-size: .68rem; font-weight: 600;
               text-transform: uppercase; letter-spacing: .16em; padding: .6rem 1.4rem; border-radius: 2rem; cursor: pointer;
               transition: transform .3s var(--ease); }
@media (hover: hover) { .mm-tut__got:hover { transform: translateX(-50%) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) {
  .mm-tut__hint--left, .mm-tut__hint--right, .mm-tut__ring::after { animation: none; }
}

/* ---------- phones (JJ 9/28) ----------
   The dots get room so their widened tap areas (site.css) do not overlap. The testimonials
   photo header drops from 62vh so the first quote shows on the first screen.
   Listing cards: the left and right thirds of a card photo were invisible "next photo" zones,
   so a tap there swapped the picture and read as a dead tap. On phones a swipe flips the
   photos (match.js) and any tap opens the listing; the round arrows on the big card stay. */
@media (max-width: 720px) { .tcar__dots { gap: 1.5rem; } }
@media (max-width: 600px) {
  .t-hero { min-height: 42vh; padding-top: 5.5rem; }  /* the padding keeps the centred title clear of the nav on a short phone */
  /* .feat-lead's tall top clears the fixed nav where it opens a page (Properties). Mid-page on
     Home it stacked 112px on the band above and left 186px of blank before On The Market. */
  #homeFeat > .feat-lead:first-child { padding-top: var(--band); }
  /* Properties and Rentals open on the lead listing: the intro, its photo and its price all fit the
     first screen (JJ 9/28). svh is the height left once the phone's own browser bars are drawn. */
  .feat-lead { padding-top: 5.8rem; }
  .feat-lead__head { margin-bottom: 1.3rem; }
  .feat-lead__head h1 { font-size: 2.5rem; margin: .35rem 0 .6rem; }
  .feat-lead__sub { font-size: .98rem; line-height: 1.5; }
  .feat-card--hero .feat-card__frame, .feat-trio--single .feat-card--hero .feat-card__frame { height: clamp(300px, 50vh, 460px); height: clamp(300px, 50svh, 460px); }
  /* the price block sat on the same bottom edge as the McKinley badge and the View listing pill, and ran under them */
  .feat-card--hero .feat-card__info { padding-bottom: 4.9rem; }
  .feat-card--hero .feat-card__price { font-size: 2.3rem; }
  .feat-card--hero .feat-card__meta { margin-top: .5rem; }
  .feat-card--hero .feat-card__shade { background: linear-gradient(to top, rgba(8,10,7,.88) 0%, rgba(8,10,7,.62) 45%, rgba(8,10,7,.18) 75%, rgba(8,10,7,0) 100%); }
}
@media (max-width: 880px) { .feat-card:not(.feat-card--hero) .mm-pnav { display: none; } }
