/* Pacote 03 — componentes imobiliários reutilizáveis. */
.ro-property-card {
  min-width: 0;
}

.ro-property-media {
  width: 100%;
}

.ro-property-media__link {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.ro-property-media__image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
  transition: transform var(--ro-transition-base);
}

.ro-property-media__placeholder {
  position: absolute;
  inset: 0;
}

.ro-property-card:hover .ro-property-media__image {
  transform: scale(1.012);
}

.ro-property-card__body {
  padding-top: var(--ro-space-5);
}

.ro-property-location {
  margin: 0 0 var(--ro-space-2);
  color: var(--ro-color-taupe);
  font-size: var(--ro-text-xs);
  font-weight: 600;
  letter-spacing: 0.085em;
  line-height: 1.45;
  text-transform: uppercase;
}

.ro-property-card__title {
  margin: 0;
  max-width: 26ch;
  font-family: var(--ro-font-display);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.018em;
  line-height: 1.12;
}

.ro-property-card--feature .ro-property-card__title {
  max-width: 22ch;
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.ro-property-card__title a {
  color: inherit;
  text-decoration: none;
}

.ro-property-card__title a:hover {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.ro-property-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--ro-space-3) var(--ro-space-5);
  padding: var(--ro-space-4) 0 0;
  margin: 0;
  list-style: none;
}

.ro-property-meta__item {
  display: inline-flex;
  align-items: baseline;
  gap: 0.32rem;
  color: var(--ro-color-taupe);
  font-size: var(--ro-text-sm);
  line-height: 1.45;
}

.ro-property-meta__value {
  color: var(--ro-color-ink);
  font-weight: 600;
}

.ro-property-meta__label {
  white-space: nowrap;
}

.ro-property-price {
  margin: var(--ro-space-4) 0 0;
  font-size: var(--ro-text-sm);
  font-weight: 650;
  letter-spacing: 0.015em;
}

.ro-property-price--consult {
  color: var(--ro-color-taupe);
  font-weight: 500;
}

.ro-property-card__link {
  margin-top: var(--ro-space-4);
}

.ro-property-status {
  margin: 0;
  color: var(--ro-color-taupe);
  font-size: var(--ro-text-xs);
}

.ro-property-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(32px, 4.5vw, 72px) var(--ro-gutter);
  align-items: start;
}

.ro-property-grid > .ro-property-card:first-child {
  grid-column: 1 / span 7;
}

.ro-property-grid > .ro-property-card:not(:first-child) {
  grid-column: 9 / -1;
}

.ro-property-grid--count-2 > .ro-property-card:nth-child(2) {
  align-self: end;
}

.ro-property-grid--count-4 > .ro-property-card:nth-child(4) {
  grid-column: 5 / span 4;
}

/* QA controlado: somente a superfície, não faz parte da Home homologada. */
.ro-property-qa {
  margin-top: var(--ro-space-9);
  padding-top: var(--ro-space-7);
  border-top: 1px solid var(--ro-color-line);
}

.ro-property-qa__notice {
  max-width: 72ch;
  padding: var(--ro-space-4) var(--ro-space-5);
  margin: 0 0 var(--ro-space-7);
  border-inline-start: 2px solid var(--ro-color-bronze);
  background: color-mix(in srgb, var(--ro-color-stone) 50%, transparent);
  color: var(--ro-color-taupe);
  font-size: var(--ro-text-sm);
}

@media (max-width: 1100px) {
  .ro-property-grid {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .ro-property-grid > .ro-property-card:first-child {
    grid-column: 1 / span 5;
  }

  .ro-property-grid > .ro-property-card:not(:first-child) {
    grid-column: 6 / -1;
  }

  .ro-property-grid--count-4 > .ro-property-card:nth-child(4) {
    grid-column: 3 / span 4;
  }
}

@media (max-width: 640px) {
  .ro-property-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--ro-space-8) var(--ro-gutter);
  }

  .ro-property-grid > .ro-property-card,
  .ro-property-grid > .ro-property-card:first-child,
  .ro-property-grid > .ro-property-card:not(:first-child),
  .ro-property-grid--count-4 > .ro-property-card:nth-child(4) {
    grid-column: 1 / -1;
  }

  .ro-property-card--feature .ro-media-frame {
    aspect-ratio: 4 / 5;
  }

  .ro-property-card--standard .ro-media-frame,
  .ro-property-card--compact .ro-media-frame {
    aspect-ratio: 16 / 11;
  }

  .ro-property-card__body {
    padding-top: var(--ro-space-4);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ro-property-media__image {
    transition: none;
  }

  .ro-property-card:hover .ro-property-media__image {
    transform: none;
  }
}
