/* Unified luxury real-estate listing cards; parent grids and carousels own the card width. */
.orm-home .orm-listing-card {
  --orm-card-radius: 14px;
  --orm-card-padding: 24px;
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  overflow: hidden;
  background: var(--orm-surface, #fff);
  color: var(--orm-ink, #000);
  border: 1px solid var(--orm-design-line);
  border-radius: var(--orm-card-radius);
  box-shadow: var(--orm-shadow-xs, 0 2px 10px rgb(0 0 0 / .05));
  text-align: start;
  transition: transform .35s var(--orm-ease, cubic-bezier(0.22, 1, 0.36, 1)), border-color .28s ease, box-shadow .35s ease;
}
.orm-home .bg-black .orm-listing-card {
  border-color: rgb(255 255 255 / .12);
  box-shadow: 0 14px 36px -12px rgb(0 0 0 / .55);
}
@media (hover: hover) and (pointer: fine) {
  .orm-home .orm-listing-card:hover {
    border-color: var(--orm-gold);
    transform: translateY(-4px);
    box-shadow: var(--orm-shadow-md, 0 18px 40px -12px rgb(0 0 0 / .14));
  }
  .orm-home .bg-black .orm-listing-card:hover {
    border-color: var(--orm-gold);
    box-shadow: 0 24px 48px -12px rgb(0 0 0 / .75), 0 0 0 1px rgb(var(--orm-gold-rgb) / .35);
  }
  .orm-home .orm-listing-card:hover .orm-listing-media img {
    transform: scale(1.055);
  }
}
.orm-home .orm-listing-card.swiper-slide { height: auto; }
.orm-home .orm-listing-card.orm-listing-track-card { flex: 0 0 min(330px, 100%); height: auto; scroll-snap-align: center; }

.orm-home .orm-listing-card .orm-listing-media {
  position: relative;
  flex-shrink: 0;
  height: 250px;
  overflow: hidden;
  background: var(--orm-design-soft, #f7f4ee);
}
.orm-home .orm-listing-card .orm-listing-media::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 52%;
  background: linear-gradient(180deg, transparent 0%, rgb(0 0 0 / .24) 100%);
  pointer-events: none;
}
.orm-home .orm-listing-card .orm-listing-media .orm-card-image { display: block; width: 100%; height: 100%; }
.orm-home .orm-listing-card .orm-listing-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .65s var(--orm-ease, cubic-bezier(0.22, 1, 0.36, 1));
}

.orm-home .orm-listing-card .orm-listing-status {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  z-index: 2;
  max-width: calc(100% - 28px);
  padding: 5px 12px;
  border-radius: 999px;
  background: rgb(12 12 12 / .78);
  border: 1px solid rgb(var(--orm-gold-rgb) / .45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--orm-gold);
  font-size: .76rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.orm-home .orm-listing-card .orm-listing-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  padding: var(--orm-card-padding);
}
.orm-home .orm-listing-card .orm-listing-eyebrow {
  margin: 0 0 6px;
  color: var(--orm-gold-dark);
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.orm-home .orm-listing-card .orm-listing-eyebrow a:hover { color: var(--orm-ink, #000); text-decoration: underline; }
.orm-home .orm-listing-card .orm-listing-title {
  margin: 0 0 10px;
  color: var(--orm-ink, #000);
  font-size: 1.32rem;
  line-height: 1.38;
  font-weight: 700;
  text-wrap: pretty;
  overflow-wrap: anywhere;
}
.orm-home .orm-listing-card .orm-listing-title a { transition: color .2s ease; }
.orm-home .orm-listing-card:hover .orm-listing-title a { color: var(--orm-gold-dark); }
.orm-home .orm-listing-card .orm-listing-location {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 0 0 18px;
  color: var(--orm-design-muted);
  font-size: .88rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.orm-home .orm-listing-card .orm-listing-location i { flex-shrink: 0; color: var(--orm-gold); font-size: .85em; }

.orm-home .orm-listing-card .orm-listing-specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 14px;
  margin: 0 0 20px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--orm-design-soft, #faf8f4);
  border: 1px solid var(--orm-design-line);
}
.orm-home .orm-listing-card .orm-listing-specs > div { min-width: 0; }
.orm-home .orm-listing-card .orm-listing-specs dt {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 3px;
  font-size: .75rem;
  line-height: 1.5;
  color: var(--orm-design-muted);
  overflow-wrap: anywhere;
}
.orm-home .orm-listing-card .orm-listing-specs dt i { color: var(--orm-gold-dark); font-size: .85em; flex-shrink: 0; }
.orm-home .orm-listing-card .orm-listing-specs dd {
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.45;
  color: var(--orm-ink, #000);
  overflow-wrap: anywhere;
}

.orm-home .orm-listing-card .orm-listing-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--orm-design-line);
}
.orm-home .orm-listing-card .orm-listing-price { min-width: 0; }
.orm-home .orm-listing-card .orm-listing-price > span {
  display: block;
  color: var(--orm-design-muted);
  font-size: .76rem;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 2px;
}
.orm-home .orm-listing-card .orm-listing-price strong {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.45;
  font-variant-numeric: tabular-nums;
  color: var(--orm-ink, #000);
  overflow-wrap: anywhere;
}

.orm-home .orm-listing-card .orm-listing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.orm-home .orm-listing-card .orm-listing-details {
  display: inline-flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid rgb(var(--orm-gold-rgb) / .65);
  border-radius: 8px;
  background: rgb(var(--orm-gold-rgb) / .08);
  color: var(--orm-gold-dark);
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, box-shadow .22s ease;
}
.orm-home .orm-listing-card .orm-listing-contact {
  display: inline-flex;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--orm-design-line);
  border-radius: 8px;
  background: var(--orm-design-soft, #faf8f4);
  color: var(--orm-gold-dark);
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}
.orm-home .orm-listing-card .orm-listing-details:hover {
  background: var(--orm-gold);
  border-color: var(--orm-gold);
  color: #111;
  box-shadow: 0 6px 18px -6px rgb(var(--orm-gold-rgb) / .55);
}
.orm-home .orm-listing-card .orm-listing-contact:hover {
  background: var(--orm-gold);
  border-color: var(--orm-gold);
  color: #111;
}
.orm-home .orm-listing-card .orm-listing-contact-whatsapp:hover {
  background: #15803d;
  border-color: #15803d;
  color: #fff;
}
.orm-home .orm-listing-card :focus-visible { outline: 2px solid var(--orm-gold-dark); outline-offset: 3px; }

/* Unit gallery controls inside card media */
.orm-home .orm-listing-card .orm-listing-image-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgb(255 255 255 / .3);
  border-radius: 50%;
  background: rgb(0 0 0 / .56);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  cursor: pointer;
  transition: background-color .22s ease, border-color .22s ease, color .22s ease, transform .22s ease;
}
.orm-home .orm-listing-card .orm-listing-image-arrow:hover {
  background: var(--orm-gold);
  border-color: var(--orm-gold);
  color: #111;
}
.orm-home .orm-listing-card .orm-listing-image-prev { left: 10px; }
.orm-home .orm-listing-card .orm-listing-image-next { right: 10px; }
.orm-home .orm-listing-card .orm-listing-image-dots {
  position: absolute;
  inset-inline: 12px;
  bottom: 12px;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  pointer-events: none;
}
.orm-home .orm-listing-card .orm-listing-image-dots span {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / .58);
  transition: width .25s ease, background-color .25s ease;
}
.orm-home .orm-listing-card .orm-listing-image-dots button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  pointer-events: auto;
  cursor: pointer;
}
.orm-home .orm-listing-card .orm-listing-image-dots button::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgb(255 255 255 / .58);
  transition: width .25s ease, background-color .25s ease;
}
.orm-home .orm-listing-card .orm-listing-image-dots span.active {
  width: 18px;
  background: var(--orm-gold);
}
.orm-home .orm-listing-card .orm-listing-image-dots button[aria-pressed=true]::before {
  width: 16px;
  background: var(--orm-gold);
}

/* Compact project cards in every grid and carousel. */
.orm-home .project-card { --orm-card-padding: 18px; }
.orm-home .project-card .orm-listing-media { height: 190px; }
.orm-home .project-card .orm-listing-eyebrow { margin-bottom: 4px; }
.orm-home .project-card .orm-listing-title { margin-bottom: 6px; font-size: 1.15rem; }
.orm-home .project-card .orm-listing-location { margin-bottom: 12px; font-size: .85rem; }
.orm-home .project-card .orm-listing-specs { gap: 10px; margin-bottom: 14px; padding: 10px 12px; }
.orm-home .project-card .orm-listing-footer { gap: 10px; padding-top: 12px; }
.orm-home .project-card .orm-listing-price strong { font-size: 1.12rem; }
@media (max-width: 767px) {
  .orm-home .orm-listing-card { --orm-card-padding: 20px; }
  .orm-home .project-card { --orm-card-padding: 16px; }
  .orm-home .project-card .orm-listing-media { height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .orm-home .orm-listing-card,
  .orm-home .orm-listing-card .orm-listing-media img { transition: none; transform: none; }
}

.orm-home .orm-listing-card :is(.orm-listing-eyebrow, .orm-listing-location) a { text-underline-offset: 4px; }
.orm-home .orm-listing-card :is(.orm-listing-eyebrow, .orm-listing-location) a:hover { text-decoration: underline; }

/* Restrained status seal, shared by listing images and property headings. */
.orm-home .orm-sold-badge, .orm-home .orm-listing-sold .orm-listing-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .75rem;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
}
.orm-home .orm-sold-badge {
  border: 1px solid rgb(var(--orm-gold-rgb) / .45);
  background: rgb(var(--orm-gold-rgb) / .1);
  color: var(--orm-gold);
}
.orm-home.orm-unit .orm-sold-badge {
  border-color: var(--orm-design-line);
  color: var(--orm-gold-dark);
  background: var(--orm-design-soft);
}
.orm-home .orm-listing-sold .orm-listing-status {
  background: rgb(255 255 255 / .94);
  color: var(--orm-ink, #000);
  border: 1px solid var(--orm-design-line);
  box-shadow: 0 4px 12px rgb(0 0 0 / .12);
}
.orm-home :is(.orm-sold-badge, .orm-listing-sold .orm-listing-status) svg { flex: 0 0 16px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.orm-home .orm-listing-card .orm-listing-sold-note { margin: 0 0 18px; color: var(--orm-design-muted); font-size: .85rem; line-height: 1.75; }
.orm-home .orm-listing-sold .orm-listing-price strong { color: var(--orm-design-muted); font-size: 1.05rem; font-weight: 500; }
.orm-home .orm-listing-sold .orm-listing-details {
  background: var(--orm-dark-surface);
  color: #fff;
  border-color: var(--orm-dark-surface);
  border-radius: 8px;
}
.orm-home .orm-listing-sold .orm-listing-details:hover {
  background: var(--orm-gold);
  color: var(--orm-ink);
  border-color: var(--orm-gold);
}

/* Diagonal launch ribbon, anchored to the image corner in both reading directions. */
.orm-home .orm-new-launch-badge:not(.orm-launch-inline) {
  --orm-ribbon-size: 132px;
  --orm-ribbon-width: 190px;
  --orm-ribbon-top: 28px;
  --orm-ribbon-offset: -41px;
  --orm-ribbon-height: 34px;
  --orm-ribbon-font: 13px;
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  z-index: 3;
  display: block;
  width: var(--orm-ribbon-size);
  height: var(--orm-ribbon-size);
  max-width: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}
.orm-home .orm-new-launch-badge:not(.orm-launch-inline) .orm-launch-label {
  position: absolute;
  top: var(--orm-ribbon-top);
  inset-inline-start: var(--orm-ribbon-offset);
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--orm-ribbon-width);
  height: var(--orm-ribbon-height);
  padding-inline: 20px;
  border-block: 1px solid #ffffff48;
  background: linear-gradient(180deg, #16a35f 0%, #0a7d47 65%, #066137 100%);
  color: #fff;
  box-shadow: 0 5px 12px #002e2466;
  font-family: inherit;
  font-size: var(--orm-ribbon-font);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
  transform: rotate(-45deg);
}
.orm-home .orm-new-launch-badge[dir=rtl]:not(.orm-launch-inline) .orm-launch-label { transform: rotate(45deg); }
.orm-home .orm-property-main-photo > .orm-new-launch-badge {
  --orm-ribbon-size: 180px;
  --orm-ribbon-width: 254px;
  --orm-ribbon-top: 43px;
  --orm-ribbon-offset: -51px;
  --orm-ribbon-height: 44px;
  --orm-ribbon-font: 16px;
}
.orm-home .orm-launch-inline {
  display: inline-flex;
  align-self: flex-start;
  width: fit-content;
  margin-block-end: 12px;
  padding: 5px 12px;
  border-radius: 6px;
  background: linear-gradient(180deg, #16a35f 0%, #087443 100%);
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  line-height: 1.5;
}
@media (max-width: 767px) {
  .orm-home .orm-property-main-photo > .orm-new-launch-badge {
    --orm-ribbon-size: 150px;
    --orm-ribbon-width: 214px;
    --orm-ribbon-top: 35px;
    --orm-ribbon-offset: -44px;
    --orm-ribbon-height: 38px;
    --orm-ribbon-font: 14px;
  }
}
