/**
 * Hub de categoria, /chapada-diamantina/<tipo>/ (PROMPT 06, 06/10/2026). Carrega depois do
 * gcep-cidade.css, só nesta página. Tokens do manual da marca herdados de .mgh.rh (Verde Chapada,
 * Verde Vale, Laranja Guia com texto Grafite, Areia, Grafite; Montserrat e Poppins).
 *
 * Topo em duas colunas (texto e capa) no fundo Areia; o filtro de cidade logo acima da lista, que é o
 * que a pessoa veio ver. O resto é quieto: as cidades em cartões pequenos, texto, perguntas e a chamada.
 *
 * @package GuiaWP
 * @since   2026-10-06
 */

/* ───────────── Topo ───────────── */
.mgh.rh .rcat-hero { background: var(--areia); padding: 40px 0 48px; }
.mgh.rh .rcat-hero__in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.rcat-hero .mg-cach-migalha { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; font-size: 13.5px; color: var(--mudo); }
.mgh.rh .rcat-hero .mg-cach-migalha a { color: var(--mudo); text-decoration: underline; text-underline-offset: 2px; }
.mgh.rh .rcat-hero .mg-cach-migalha [aria-current] { color: var(--grafite); font-weight: 600; }
.rcat-hero h1 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.05; letter-spacing: -.02em; color: var(--verde); text-wrap: balance; }
.rcat-hero h1 small { font-size: .45em; font-weight: 600; color: var(--mudo); }
.rcat-hero__sub { margin: 0; font-size: 17px; line-height: 1.55; color: var(--grafite); max-width: 52ch; }
.rcat-hero__capa { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: var(--raio-g); overflow: hidden; background: var(--verde); }
.rcat-hero__capa img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ───────────── Seções ───────────── */
.mgh.rh .rcat .rh-sec { padding: 48px 0; }
.mgh.rh .rcat .rh-sec + .rh-sec { padding-top: 16px; }
.mgh.rh .rcat-intro { padding-bottom: 8px; }
.rcat .rh-texto { max-width: 72ch; font-size: 16.5px; line-height: 1.7; color: var(--grafite); }
.rcat .rh-texto p { margin: 0 0 1em; }

/* ───────────── Filtro de cidade ───────────── */
.rcat-filtro { display: flex; align-items: center; gap: 14px; margin: 0 0 22px; }
.rcat-filtro__r { flex: none; font-size: 14.5px; font-weight: 700; color: var(--verde); }
.rcat-filtro__bs { display: flex; flex-wrap: wrap; gap: 8px; }

/* ───────────── Cards (o cartão de atrativo das páginas mãe) ───────────── */
.mgh.rh .rcat-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.rcat-grade > li[hidden] { display: none; }
.rcat .mg-hub-atr { height: 100%; display: flex; flex-direction: column; border: 1px solid var(--linha); border-radius: var(--raio-g); overflow: hidden; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.rcat .mg-hub-atr:hover { border-color: var(--vale); box-shadow: 0 10px 28px rgba(15, 81, 50, .1); }
.rcat .mg-hub-atr__foto { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--verde); display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, .55); }
.rcat .mg-hub-atr__foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rcat .mg-hub-atr__foto svg { width: 44px; height: 44px; }
.rcat .mg-hub-atr__selo { position: absolute; left: 12px; top: 12px; padding: 3px 10px; border-radius: 99px; background: #fff; color: var(--verde); font-size: 12px; font-weight: 700; }
.rcat .mg-hub-atr__corpo { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; }
.rcat .mg-hub-atr__titulo { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.25; }
.mgh.rh .rcat .mg-hub-atr__titulo a { color: var(--grafite); }
.mgh.rh .rcat .mg-hub-atr__titulo a::after { content: ""; position: absolute; inset: 0; }
.rcat .mg-hub-atr { position: relative; }
.rcat .mg-hub-atr__local { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 13px; font-weight: 600; color: var(--verde); }
.rcat .mg-hub-atr__local svg { width: 15px; height: 15px; flex: none; }
.rcat .mg-hub-atr__texto { margin: 0; font-size: 14px; line-height: 1.5; color: var(--mudo); }

/* ───────────── Em quais cidades ───────────── */
.rcat-cids { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.mgh.rh .rcat-cid { display: flex; align-items: center; gap: 14px; padding: 10px; border: 1px solid var(--linha); border-radius: var(--raio); background: #fff; color: var(--grafite); transition: border-color .2s ease; }
.mgh.rh .rcat-cid:hover { border-color: var(--verde); }
.rcat-cid__img { flex: none; width: 72px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--areia); }
.rcat-cid__img img { width: 100%; height: 100%; object-fit: cover; }
.rcat-cid__txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rcat-cid__txt b { font-family: var(--titulo); font-size: 16px; font-weight: 800; line-height: 1.25; color: var(--verde); }
.rcat-cid__txt small { font-size: 13px; color: var(--mudo); }

/* ───────────── Vazio, fontes, CTA ───────────── */
.rcat-vazio { max-width: 640px; padding: 28px; border-radius: var(--raio-g); background: #faf6ef; border: 1px solid var(--linha); }
.rcat-vazio h2 { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: var(--verde); }
.rcat-vazio p { margin: 0 0 18px; font-size: 15px; line-height: 1.55; color: var(--mudo); }
.rcat-fontes__h { margin: 0 0 6px; font-size: 15px; font-weight: 700; color: var(--grafite); }
.rcat .rh-fontes ul { margin: 0; padding-left: 18px; }
.mgh.rh .rcat-cta { margin-top: 32px; }

/* ───────────── Celular ───────────── */
@media (max-width: 767.98px) {
	.mgh.rh .rcat-hero { padding: 20px 0 28px; }
	.mgh.rh .rcat-hero__in { grid-template-columns: 1fr; gap: 20px; }
	.rcat-hero__capa { aspect-ratio: 16 / 10; }
	.rcat-hero__sub { font-size: 15.5px; }
	.mgh.rh .rcat .rh-sec { padding: 32px 0; }
	.rcat-filtro { display: block; }
	.rcat-filtro__r { display: block; margin-bottom: 10px; }
	.rcat-filtro__bs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
	.rcat-filtro__bs::-webkit-scrollbar { display: none; }
	.rcat-filtro__bs .rh-cidades__b { flex: none; }
	.mgh.rh .rcat-grade { grid-template-columns: 1fr; gap: 14px; }
	.rcat .mg-hub-atr { flex-direction: row; }
	.rcat .mg-hub-atr__foto { flex: none; width: 112px; aspect-ratio: auto; min-height: 112px; }
	.rcat .mg-hub-atr__selo { display: none; }
	.rcat .mg-hub-atr__corpo { padding: 12px 14px; }
	.rcat .mg-hub-atr__titulo { font-size: 15.5px; }
	.rcat .mg-hub-atr__texto { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 13.5px; }
	.rcat-cids { grid-template-columns: 1fr; }
	.rcat-vazio { padding: 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.rcat * { transition: none !important; }
}
