/* ─────────────────────────────────────────────────────────────
   Fazendas à venda por estado (#/regiao/<uf>) — escopo .rg-*
   Breadcrumb (.ad-crumbs) and facts (.ad-facts) come from anuncio.css.
   ───────────────────────────────────────────────────────────── */

.rg-top { padding-block: 16px 48px; }
.rg-top-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 24px 72px;
  align-items: end;
  margin: 20px 0 36px;
}
.rg-top h1 { max-width: 14ch; }
.rg-top .lead { margin-top: 20px; max-width: 46ch; }
.rg-intro { max-width: 62ch; line-height: 1.65; color: var(--fz-ink-soft); }
.rg-facts { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Seções ─────────────────────────────────────────────── */
.rg-sec { padding-block: 72px 88px; border-top: 1px solid var(--fz-line); }
.rg-sec.alt { background: var(--fz-paper-2); }
.rg-h2 { font-size: var(--fz-text-headline); line-height: 1.08; }
.rg-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.rg-sort { margin-top: 8px; font-size: var(--fz-text-body-sm); color: var(--fz-ink-soft); }

/* filtro por aptidão (links reais) */
.rg-chips a.chip:not(.is-active):hover { border-color: var(--fz-accent-deep); background: var(--fz-accent-dim); }
.rg-chip-n { font-weight: 500; color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }
.chip.is-active .rg-chip-n { color: var(--fz-on-dark-soft); }

/* ── Cards ──────────────────────────────────────────────── */
.rg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.rg-grid > li { min-width: 0; }
.rg-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--fz-line);
  border-radius: var(--fz-r-sm);
  background: var(--fz-white);
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease, box-shadow .2s ease;
}
.rg-card:hover { border-color: var(--fz-line-strong); box-shadow: 0 16px 40px -30px rgba(5, 16, 9, .4); }
.rg-media { position: relative; display: block; flex: none; aspect-ratio: 4 / 3; overflow: hidden; background: var(--fz-surface); }
.rg-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--fz-ease); }
.rg-card:hover .rg-media img { transform: scale(1.04); }
.rg-badge { position: absolute; top: 10px; left: 10px; padding: 4px 10px; border-radius: var(--fz-r-full); background: rgba(255, 255, 255, .94); font-size: var(--fz-text-caption); font-weight: 600; color: var(--fz-ink); }


.rg-body { display: flex; flex: 1; flex-direction: column; gap: 4px; padding: 16px 18px 18px; }
.rg-body h3 { font-size: 1.05rem; line-height: 1.25; letter-spacing: -0.01em; }
.rg-reg { font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.rg-meta { font-size: var(--fz-text-body-sm); }
.rg-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 2px 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--fz-line);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.rg-body .rg-meta { margin-bottom: 10px; }
.rg-price small { font-size: var(--fz-text-caption); font-weight: 500; color: var(--fz-ink-soft); }
.rg-price.is-muted { font-weight: 500; color: var(--fz-ink-soft); }

/* ── Outros estados ─────────────────────────────────────── */
.rg-ufs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.rg-ufs a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  min-height: 56px;
  padding: 16px 18px;
  border: 1px solid var(--fz-line);
  border-radius: var(--fz-r-sm);
  background: var(--fz-white);
  color: inherit;
  text-decoration: none;
  transition: border-color .16s ease;
}
.rg-ufs a:hover { border-color: var(--fz-accent-deep); }
.rg-ufs strong { font-family: var(--fz-display), sans-serif; font-size: 1.05rem; }
.rg-ufs span { flex: none; font-size: var(--fz-text-caption); color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 1080px) {
  .rg-top-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .rg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .rg-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .rg-top { padding-block: 8px 40px; }
  .rg-sec { padding-block: 56px 64px; }
  .ad-facts.rg-facts dd { font-size: 1.35rem; }
}
/* phone: one compact row per listing (photo left) */
@media (max-width: 560px) {
  .rg-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .rg-card { flex-direction: row; }
  .rg-media { width: 136px; aspect-ratio: auto; }
  .rg-badge { top: 6px; left: 6px; padding: 3px 8px; font-size: 11px; gap: 6px; }
  .rg-badge::before { width: 6px; height: 6px; }
  .rg-body { padding: 12px 14px 14px; }
  .rg-body .rg-meta { margin-bottom: 8px; }
  .rg-price { padding-top: 8px; }
}
@media (prefers-reduced-motion: reduce) { .rg-media img, .rg-card { transition: none; } }

/* ── Catálogo: every listing, crawlable ── */
.ct { padding-block: 40px 88px; }
.ct-h { margin-top: 8px; font-size: clamp(2.2rem, 4vw, 3.4rem); letter-spacing: -0.03em; }
.ct .lead { margin-top: 12px; }
.ct .lead a { color: var(--fz-primary); font-weight: 600; }
.ct-hubs { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; margin: 36px 0 12px; padding: 24px; border: 1px solid var(--fz-line); border-radius: var(--fz-r-md); background: var(--fz-white); }
.ct-hubs h2 { margin-bottom: 12px; font-size: 1.05rem; }
.ct-hubs ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.ct-hubs div:last-child ul { grid-template-columns: minmax(0, 1fr); }
.ct-hubs a { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--fz-line); color: var(--fz-ink); font-size: 14.5px; text-decoration: none; }
.ct-hubs a:hover, .ct-hubs a[aria-current] { color: var(--fz-primary); }
.ct-hubs a span { color: var(--fz-ink-soft); font-variant-numeric: tabular-nums; }
.ct-uf { margin-top: 36px; }
.ct-uf h2 { display: flex; align-items: baseline; gap: 10px; margin-bottom: 10px; font-size: 1.4rem; }
.ct-uf h2 a { color: inherit; text-decoration: none; }
.ct-uf h2 a:hover { color: var(--fz-primary); }
.ct-uf h2 span { font-size: 14px; font-weight: 500; color: var(--fz-ink-soft); }
.ct-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; padding: 0; list-style: none; }
.ct-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--fz-line); color: var(--fz-ink); text-decoration: none; }
.ct-list a:hover .ct-name { color: var(--fz-primary); }
.ct-name { font-weight: 600; font-size: 15px; }
.ct-meta { grid-column: 1; font-size: 13px; color: var(--fz-ink-soft); }
.ct-badge { grid-column: 2; grid-row: 1 / span 2; align-self: center; padding: 3px 10px; border-radius: var(--fz-r-full); background: var(--fz-accent-dim); color: var(--fz-accent-deep); font-size: 11.5px; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) { .ct-hubs, .ct-hubs ul, .ct-list { grid-template-columns: minmax(0, 1fr); } }
.ct-badge.vbadge { padding: 0; background: none; color: var(--fz-ink); font-size: var(--fz-text-caption); }
.ct-uf-lead { max-width: 75ch; margin: -4px 0 12px; font-size: 15px; line-height: 1.55; color: var(--fz-ink-soft); }

/* Trilha e números (vindos de anuncio.css, que não é publicado: a página de anúncio é /anuncios/<slug>) */
.ad-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); border-top: 1px solid var(--fz-line); }
.ad-top .ad-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ad-facts > div { min-width: 0; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--fz-line); }
.ad-facts dt {
  font-family: var(--fz-mono), sans-serif; font-weight: 600;
  font-size: var(--fz-text-label);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--fz-ink-soft);
}
.ad-facts dd {
  margin-top: 6px;
  font-family: var(--fz-display), sans-serif;
  font-size: 1.6rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}
.ad-fact-sub { margin-top: 2px; font-size: var(--fz-text-caption); color: var(--fz-ink-soft); }
.ad-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 20px; padding: 0; list-style: none; font-size: var(--fz-text-body-sm); color: var(--fz-ink-soft); }
.ad-crumbs li:not(:last-child)::after { content: "›"; margin-left: 8px; color: var(--fz-line-strong); } /* a wrapped line never starts with › */
.ad-crumbs a { color: var(--fz-ink-soft); text-decoration: none; }
.ad-crumbs a:hover { color: var(--fz-primary); }
.ad-crumbs [aria-current] { color: var(--fz-ink); font-weight: 500; }
@media (max-width: 760px) { .ad-facts dd { font-size: 1.35rem; } }
