/* P052: no secondary catalogue design. Native P049 listing cards remain authoritative. */
.houngues-ready-listings{display:none!important}
#view-resale.has-ready-publications,#view-rental.has-ready-publications{background:#000}
#view-resale .houngues-ready-native-card .preview-badge,#view-rental .houngues-ready-native-card .preview-badge{display:none!important}
#view-resale .houngues-ready-native-card .resale-dots,#view-rental .houngues-ready-native-card .resale-dots{min-width:62px;max-width:none;flex-wrap:nowrap;font-size:12px;letter-spacing:.035em;font-variant-numeric:tabular-nums;white-space:nowrap}
#view-resale .houngues-ready-native-card .resale-media-controls button:disabled,#view-rental .houngues-ready-native-card .resale-media-controls button:disabled{opacity:.4}
#view-resale .houngues-ready-native-card .project-copy h2,#view-rental .houngues-ready-native-card .project-copy h2{overflow-wrap:anywhere}
@media(min-width:960px){
 #view-resale.has-ready-publications,#view-rental.has-ready-publications{background:#f7f6f3;color:#171717}
 #view-resale.has-ready-publications>.catalogue-grid,#view-rental.has-ready-publications>.catalogue-grid{display:grid!important}
 #view-resale .houngues-ready-native-card .resale-gallery,#view-rental .houngues-ready-native-card .resale-gallery{pointer-events:auto}
 #view-resale .houngues-ready-native-card .resale-slide:not(:first-child),#view-rental .houngues-ready-native-card .resale-slide:not(:first-child){display:none}
}
@media(max-width:959px){
 #view-resale.has-ready-publications,#view-rental.has-ready-publications{overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior-y:contain;scroll-snap-type:y mandatory}
 #view-resale.has-ready-publications>.catalogue-grid,#view-rental.has-ready-publications>.catalogue-grid{display:flex!important;flex-direction:column;min-height:100%;gap:0}
 #view-resale.has-ready-publications>.catalogue-grid>.listing-card,#view-rental.has-ready-publications>.catalogue-grid>.listing-card{position:relative;flex:0 0 auto;height:calc(100dvh - var(--nav-size) - var(--safe-bottom));min-height:calc(100dvh - var(--nav-size) - var(--safe-bottom));scroll-snap-align:start;scroll-snap-stop:always;overflow:hidden}
 #view-resale.has-ready-publications .houngues-ready-native-card .resale-gallery,#view-rental.has-ready-publications .houngues-ready-native-card .resale-gallery{pointer-events:auto;scroll-snap-type:x mandatory}
 #view-resale.has-ready-publications .houngues-ready-native-card .resale-slide,#view-rental.has-ready-publications .houngues-ready-native-card .resale-slide{display:block}
 #view-resale.has-ready-publications .houngues-ready-native-card .project-copy h2,#view-rental.has-ready-publications .houngues-ready-native-card .project-copy h2{font-size:clamp(28px,8.2vw,43px);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden}
 #view-resale.has-ready-publications .houngues-ready-native-card .project-copy,#view-rental.has-ready-publications .houngues-ready-native-card .project-copy{z-index:2}
}

/* P053: vertical scroll reaches the existing HOUNGUES footer even with one READY Property.
 * Horizontal photo swipes do not intercept vertical swipes to the next listing/footer. */
@media(max-width:959px){
 #view-resale.has-ready-publications>.catalogue-footer,
 #view-rental.has-ready-publications>.catalogue-footer{scroll-snap-align:start;scroll-snap-stop:normal;position:relative;min-height:0}
 #view-resale.has-ready-publications .houngues-ready-native-card .resale-gallery,
 #view-rental.has-ready-publications .houngues-ready-native-card .resale-gallery{touch-action:pan-x pan-y;overscroll-behavior-y:auto}
}

/* P054 — READY catalogue title: typography of the approved GUIDE heading.
 * Preserve card sizing, carousel, vertical scroll and the mobile bottom bar. */
@media (max-width:959px) {
  #view-resale.has-ready-publications .houngues-ready-native-card .project-copy h2,
  #view-rental.has-ready-publications .houngues-ready-native-card .project-copy h2 {
    font-family:'Times New Roman',Times,serif;
    font-weight:400;
    font-style:normal;
    line-height:1.1;
    letter-spacing:-.7px;
  }
}

/* P055 - READY desktop catalogue: the photograph always leads each card.
 * Restrict to published READY cards; leave demos, OFFPLAN and mobile untouched. */
@media (min-width:960px) {
  #view-resale.has-ready-publications .houngues-ready-native-card,
  #view-rental.has-ready-publications .houngues-ready-native-card {
    display:flex;
    flex-direction:column;
  }
  #view-resale.has-ready-publications .houngues-ready-native-card > .resale-gallery,
  #view-rental.has-ready-publications .houngues-ready-native-card > .resale-gallery {
    order:0;
    flex:0 0 auto;
    width:100%;
  }
  #view-resale.has-ready-publications .houngues-ready-native-card > .project-copy,
  #view-rental.has-ready-publications .houngues-ready-native-card > .project-copy {
    order:1;
    width:100%;
  }
}


/* P056 explicit desktop stacking for approved READY cards only; never move mobile overlay text. */
@media(min-width:960px){
 #view-resale.has-ready-publications article.houngues-ready-native-card,
 #view-rental.has-ready-publications article.houngues-ready-native-card{display:flex!important;flex-flow:column nowrap!important}
 #view-resale.has-ready-publications article.houngues-ready-native-card>.resale-gallery,
 #view-rental.has-ready-publications article.houngues-ready-native-card>.resale-gallery{order:-10!important;position:relative!important;inset:auto!important;flex:0 0 auto!important;width:100%!important}
 #view-resale.has-ready-publications article.houngues-ready-native-card>.project-copy,
 #view-rental.has-ready-publications article.houngues-ready-native-card>.project-copy{order:10!important;position:relative!important;inset:auto!important;flex:1 0 auto!important;width:100%!important}
}

/* P057 — taller image-first READY cards on DESKTOP only.
 * The previous native 4:3 gallery was visibly shorter than the HOUNGUES target.
 * Leave sample/demo cards, OFFPLAN and immersive mobile cards unchanged. */
@media (min-width:960px) {
  #view-resale.has-ready-publications article.houngues-ready-native-card > .resale-gallery,
  #view-rental.has-ready-publications article.houngues-ready-native-card > .resale-gallery {
    aspect-ratio: 21 / 20;
    height: auto;
  }
}

/* P058 — published READY catalogue: no dummy cards while loading/empty.
 * Desktop body is more compact between the real title and three facts. */
.houngues-ready-loading-note{max-width:1280px;margin:18px auto;padding:24px 18px;text-align:center;color:#786b58;font:14px/1.6 Arial,Helvetica,sans-serif}
#view-resale .houngues-ready-empty,#view-rental .houngues-ready-empty{
  width:100%;max-width:1280px;margin:0 auto;padding:36px 22px;background:#fff;
  color:#252525;border:1px solid #e5e2dc;text-align:center
}
#view-resale .houngues-ready-empty h2,#view-rental .houngues-ready-empty h2{
  font:400 clamp(21px,3vw,27px)/1.25 Arial,Helvetica,sans-serif;margin:0 0 12px
}
#view-resale .houngues-ready-empty p,#view-rental .houngues-ready-empty p{font-size:13px;line-height:1.6;color:#69635c}
@media(min-width:960px){
  #view-resale.has-ready-publications .houngues-ready-native-card>.catalogue-card-head,
  #view-rental.has-ready-publications .houngues-ready-native-card>.catalogue-card-head{padding-bottom:8px}
  #view-resale.has-ready-publications .houngues-ready-native-card>.project-copy,
  #view-rental.has-ready-publications .houngues-ready-native-card>.project-copy{padding-top:4px}
  #view-resale.has-ready-publications .houngues-ready-native-card .project-facts,
  #view-rental.has-ready-publications .houngues-ready-native-card .project-facts{margin-top:12px}
}
@media(max-width:959px){
  #view-resale .houngues-ready-empty,#view-rental .houngues-ready-empty{min-height:50dvh;display:flex;flex-direction:column;align-items:center;justify-content:center}
  .houngues-ready-loading-note{margin-top:22vh}
}
