/* =========================================================
   TORONTO BUSINESS DIRECTORY - ENHANCED CATEGORY PAGE STYLES
   Scoped exclusively to .category-detail-page
   ========================================================= */

/* Breadcrumb styling */
.category-detail-page .breadcrumb-nav {
  margin-bottom: 14px;
  color: rgb(255 255 255 / 65%);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.category-detail-page .breadcrumb-nav a {
  color: rgb(255 255 255 / 85%);
  transition: color 200ms ease;
}

.category-detail-page .breadcrumb-nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.category-detail-page .breadcrumb-nav span {
  color: #f5a27f;
}

/* Sub-categories Section Grid */
.category-detail-page .subcategories-section {
  background: var(--cream);
}

.category-detail-page .subcategory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.category-detail-page .subcategory-pill-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
  transition:
    transform 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease;
}

.category-detail-page .subcategory-pill-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: var(--shadow-md);
}

.category-detail-page .subcategory-pill-card .sub-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.category-detail-page .subcategory-pill-card strong {
  color: var(--navy-800);
  font-family: "Manrope", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.category-detail-page .subcategory-pill-card span:not(.sub-info span) {
  color: var(--orange);
  font-weight: 800;
  font-size: 1.1rem;
}

.category-detail-page .sub-info span {
  color: var(--muted);
  font-size: 0.76rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Featured Listings Section Distinction */
.category-detail-page .featured-listings-section {
  background: #fff;
  border-bottom: 1px solid var(--border-light);
}

.category-detail-page .featured-card {
  border-color: rgb(224 108 59 / 35%);
  box-shadow: var(--shadow-md);
}

/* Standard Listings Section */
.category-detail-page .standard-listings-section {
  background: #fff;
}

.category-detail-page .directory-sort-indicator {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.category-detail-page .directory-pagination {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.category-detail-page .pagination-info {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}

.category-detail-page .pagination-actions {
  display: flex;
  gap: 12px;
}

/* Responsive Breakpoints */
@media (max-width: 1050px) {
  .category-detail-page .subcategory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .category-detail-page .subcategory-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .category-detail-page .directory-pagination {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
}
