/* ──────────────────────────────────────────────────────────
   LISTING — imóveis: card de categoria + detalhe do imóvel.
   Reusa tokens e os cards do rail (business.css).
   ────────────────────────────────────────────────────────── */

/* ── Grade de categoria (listing.html) ── */
.listing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 18px;
}

.listing-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface);
  transition: 0.12s;
}

.listing-card:hover {
  border-color: var(--brand-2);
}

.listing-thumb {
  aspect-ratio: 16 / 10;
  background: var(--surface-header);
  display: grid;
  place-items: center;
  color: var(--ink-2);
  position: relative;
}

.listing-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-thumb .ph {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.listing-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--verify);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 0;
}

.listing-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.listing-price {
  font-size: 18px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.listing-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.listing-loc {
  font-size: 12.5px;
  color: var(--muted);
}

.listing-attrs {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
  color: var(--ink-2);
  border-top: 1px solid var(--line-2);
}

.listing-attrs span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Detalhe do imóvel (imovel.html) ── */
.imovel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 332px;
  gap: 28px;
  align-items: start;
  padding: 24px 24px 70px;
}

@media (max-width: 980px) {
  .imovel-layout {
    grid-template-columns: 1fr;
  }
}

.imovel-gallery {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
  margin-bottom: 20px;
}

.imovel-gallery .g-main {
  position: relative;
  grid-column: 1 / -1;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: var(--surface-header);
  display: grid;
  place-items: center;
  color: var(--ink-2);
}

.imovel-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
  display: block;
}

.imovel-gallery .g-main img {
  position: absolute;
  inset: 0;
  border-radius: 0;
}

.imovel-figcap {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
}

.imovel-faq {
  margin-top: 22px;
}

.imovel-gallery .g-ph {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
}

.imovel-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.imovel-head h1 {
  margin: 0;
  border-bottom: none;
  padding-bottom: 0;
}

/* Nota discreta na Localização */
.loc-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--faint);
  line-height: 1.4;
}

.imovel-price {
  font-size: clamp(24px, 4vw, 30px);
  font-weight: 800;
  color: var(--brand-2);
  letter-spacing: -0.02em;
}

.imovel-prose {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-2);
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}

.imovel-prose p {
  margin: 0 0 14px;
}

