/* Visual da categoria; o painel continua usando directory.css. */
.category-page .category-results { padding: 0 0 24px; border-radius: 24px; background: #fff; box-shadow: 0 10px 36px #123b6010; }
.category-page #categoryResultsTitle { margin: 0; padding: 36px 24px 12px; text-align: left; }
.category-page #categoryResultsSubtitle { margin: 0; padding: 0 24px 24px; color: #53647b; font-size: 15px; }
.category-hero { position: relative; display: grid; min-height: 285px; overflow: hidden; align-items: center; border-radius: 24px 24px 18px 18px; background: #15467d url('brejo-city-aerial.webp') center 55% / cover; isolation: isolate; }
.category-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, #080e38bb, #080e3859); }
.category-hero-image { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.category-hero-copy { min-width: 0; padding: 32px; }
.category-page .subcategory-heading { display: grid; width: 100%; justify-items: center; justify-content: center; gap: 12px; margin: 0; text-align: center; }
.category-page .subcategory-heading-icon, .category-page .subcategory-heading-icon:has(img) { width: 58px; padding: 8px; overflow: hidden; border-radius: 16px; background: #ffda32 !important; color: var(--ink); }
.category-page .subcategory-heading-icon img { width: 100%; height: 100%; object-fit: contain; }
.category-page .subcategory-heading h1 { margin: 0; color: #fff; font: 800 36px/1.1 Manrope, sans-serif; letter-spacing: -1.2px; text-align: center; overflow-wrap: anywhere; }
.category-page .subcategory-heading h1::first-letter { color: inherit; }
.category-search-wrap { position: relative; z-index: 2; margin: -24px 24px 0; }
.category-search { display: flex; min-height: 50px; align-items: center; gap: 12px; padding: 4px 8px 4px 17px; border: 1px solid #e3ebf5; border-radius: 999px; background: #fff; box-shadow: 0 5px 16px #073c7b1c; scroll-margin-top: 90px; }
.category-search > svg { flex: 0 0 22px; color: #142653; }
.category-search input { min-width: 0; width: 100%; padding: 8px 0; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: 400 16px/1.3 'DM Sans', sans-serif; }
.category-search input::placeholder { color: #68788e; opacity: 1; }
.category-search input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.category-search input:focus-visible { outline-offset: 2px; }
.category-search button { flex: 0 0 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: #eef5ff; color: var(--ink); font-size: 25px; cursor: pointer; }
.category-page .directory-layout { display: flex; flex-direction: column; align-items: stretch; gap: 12px; margin: 12px 24px 0; }
.category-page .directory-filters { display: flex; width: 100%; min-width: 0; align-items: center; gap: 8px; padding: 0; border-radius: 0; background: transparent; overflow: visible; }
.category-page .directory-filter-panel { flex: 1; min-width: 0; margin: 0; }
.category-page .directory-filter-list { display: flex; flex-direction: row; flex-wrap: nowrap; align-items: stretch; gap: 8px; overflow-x: auto; padding: 5px 4px; overscroll-behavior-inline: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
.category-page .directory-filter-list::-webkit-scrollbar { display: none; }
.category-page .directory-filter-list button, .category-page .directory-all { flex: 0 0 auto; width: auto; min-width: max-content; min-height: 40px; padding: 8px 15px; border-radius: 999px; background: #eef5ff !important; color: #133378 !important; box-shadow: none; font: 600 12px/1.3 'DM Sans', sans-serif; white-space: nowrap; cursor: pointer; scroll-snap-align: start; }
.category-page .directory-filters button[aria-pressed='true'] { background: #0054dc !important; color: #fff !important; box-shadow: 0 3px 9px #0054dc24; }
.category-page .directory-filter-panel.can-scroll:not(.at-scroll-end)::after { background: linear-gradient(90deg, transparent, #fff 70%); color: #0054dc; }
.category-page .category-result-count { margin: 0 0 10px; color: #617188; font-size: 12px; }
.category-page .directory-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.category-page .directory-card { display: flex; min-height: 122px; gap: 12px; padding: 8px; border: 1px solid #edf1f7; border-radius: 18px; background: #fff; box-shadow: 0 4px 18px #142a4f0c; }
.category-page .directory-card:hover { transform: translateY(-1px); box-shadow: 0 6px 20px #142a4f18; }
.category-page .directory-photo { position: relative; top: auto; left: auto; flex: 0 0 116px; width: 116px; height: auto; min-height: 104px; align-self: stretch; border: 0; border-radius: 12px; font-size: 36px; }
.category-page .directory-photo img { object-fit: contain; background: #f1f6fc; }
.category-page .directory-photo.has-cover img { object-fit: cover; }
.category-page .directory-card-info { gap: 8px; overflow: hidden; }
.category-page .directory-card h2 { color: var(--ink); font-size: 19px; letter-spacing: -.6px; line-height: 1.2; }
.category-page .directory-item-tags { flex-wrap: wrap; gap: 5px; overflow: visible; }
.category-page .directory-card .directory-tag { min-height: 23px; padding: 4px 10px; border-radius: 999px; font-size: 11px; }
.category-page .directory-item-tags .directory-tag--overflow { display: none; }
.category-page .directory-item-tags.show-all-tags .directory-tag--overflow { display: inline-flex; }
.category-page .directory-tags-more { display: inline-grid; min-width: 28px; min-height: 23px; padding: 3px 6px; border-radius: 999px; background: #eef5ff; color: #0054dc; }
.category-page .directory-card-trail { position: static; flex: 0 0 32px; width: 32px; height: 32px; margin-right: 2px; border-radius: 50%; background: #e4f0ff !important; color: #0054dc !important; font: 500 30px/1 Arial, sans-serif; }
.category-page .directory-empty { margin: 0; padding: 24px 12px; border-radius: 16px; background: #f4f8ff; color: #53647b; font-size: 15px; text-align: center; }
.category-page .directory-load-more { display: block; min-height: 44px; margin: 20px auto 0; padding: 10px 22px; border: 0; border-radius: 999px; background: #0054dc; color: #fff; font-weight: 700; cursor: pointer; }
.category-page .directory-retry { margin: 0 24px 24px; border-radius: 999px; background: #0054dc; }
.category-page .directory-card--skeleton { background: #eff5fc; box-shadow: none; }
@media (max-width: 900px) { .category-page .directory-list { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) {
  .category-page .category-results { width: 100%; margin: 0; padding-bottom: 22px; border-radius: 0; box-shadow: none; }
  body.category-page.has-side-ads .category-results { width: var(--content-width); margin-inline: auto; }
  .category-hero { min-height: 225px; border-radius: 0 0 16px 16px; }
  .category-hero-copy { padding: 24px 20px; }
  .category-page .subcategory-heading { gap: 10px; }
  .category-page .subcategory-heading-icon, .category-page .subcategory-heading-icon:has(img) { width: 52px; padding: 7px; border-radius: 14px; }
  .category-page .subcategory-heading h1 { font-size: clamp(27px, 7.4vw, 34px); letter-spacing: -.9px; }
  .category-search-wrap { margin-inline: 12px; }
  .category-page .directory-layout { margin: 10px 12px 0; gap: 10px; }
  .category-page .directory-filter-list button, .category-page .directory-all { min-height: 38px; padding: 8px 13px; font-size: 11px; }
  .category-page .directory-photo { flex-basis: clamp(88px, 28vw, 126px); width: clamp(88px, 28vw, 126px); min-height: 88px; }
  .category-page .directory-card { min-height: 104px; gap: 10px; padding: 7px; border-radius: 17px; }
  .category-page .directory-card h2 { font-size: clamp(16px, 4.5vw, 20px); }
  .category-page .directory-card .directory-tag { min-height: 22px; padding: 4px 8px; font-size: 10px; }
  .category-page .directory-card-trail { flex-basis: 29px; width: 29px; height: 29px; font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) { .category-page .directory-card { transition: none; } }
