/* NASR AQARAT v18: featured properties grid only.
   4 columns on regular desktops, even with moderate browser zoom.
   Isolated from hero carousel, navigation, mobile menu, and marquee. */
@media screen and (min-width: 1200px) {
  html body.home-page #featured.property-grid.cinematic-grid,
  html body.home-page .featured-scene #featured.property-grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    grid-auto-flow: row !important;
    gap: 20px !important;
    width: 100% !important;
  }
  html body.home-page #featured.property-grid > .property-card {
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    grid-column: auto !important;
    margin: 0 !important;
  }
  html body.home-page #featured .property-body { padding: 16px !important; }
  html body.home-page #featured .property-title {
    font-size: clamp(18px, 1.3vw, 22px) !important;
    overflow-wrap: anywhere;
  }
  html body.home-page #featured .property-meta {
    display: flex;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 5px !important;
    font-size: clamp(10px, 0.73vw, 12px) !important;
    white-space: nowrap !important;
    font-variant-numeric: tabular-nums;
  }
  html body.home-page #featured .property-meta > span {
    display: inline-block;
    white-space: nowrap !important;
    flex: 0 0 auto;
  }
}
@media screen and (min-width: 900px) and (max-width: 1199.98px) {
  html body.home-page #featured.property-grid.cinematic-grid {
    display:grid !important;
    grid-template-columns:repeat(3,minmax(0,1fr)) !important;
  }
}
/* Below 900px, retain original tablet/mobile rules. */

/* V18 compact desktop card rhythm: align title, location, price and metadata.
   Scoped to four-column featured grid; no changes to navigation/hero/mobile. */
@media screen and (min-width: 1200px) {
  html body.home-page #featured .property-card {
    display: flex !important;
    flex-direction: column !important;
  }
  html body.home-page #featured .property-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: 2.7em 1.35em 1.6em minmax(1.6em, auto) !important;
    align-content: start !important;
    row-gap: 5px !important;
    flex: 1 1 auto !important;
  }
  html body.home-page #featured .property-title {
    margin: 0 !important;
    line-height: 1.35 !important;
    min-height: 0 !important;
    max-height: 2.7em !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    line-clamp: 2 !important;
  }
  html body.home-page #featured .property-location {
    margin: 0 !important;
    line-height: 1.3 !important;
    overflow: hidden !important;
    align-self: start !important;
  }
  html body.home-page #featured .property-price {
    margin: 0 !important;
    align-self: center !important;
    line-height: 1.3 !important;
  }
  html body.home-page #featured .property-meta {
    margin: 0 !important;
    align-self: center !important;
    min-width: 0 !important;
  }
}
