/**
 * Reusable UI Components: Buttons, Cards, Badges, Breadcrumbs, Pagination
 */
.aofbd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0.625rem 1.25rem;
  border-radius: var(--aofbd-radius-sm);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--aofbd-transition), border-color var(--aofbd-transition), color var(--aofbd-transition);
}

.aofbd-btn--primary {
  background: var(--aofbd-primary);
  color: #ffffff;
}
.aofbd-btn--primary:hover {
  background: var(--aofbd-primary-hover);
  color: #ffffff;
}

.aofbd-btn--secondary {
  background: var(--aofbd-surface);
  border-color: var(--aofbd-border);
  color: var(--aofbd-dark);
}
.aofbd-btn--secondary:hover {
  background: var(--aofbd-surface-alt);
  color: var(--aofbd-dark);
}

.aofbd-btn--sm {
  min-height: 36px;
  padding: 0.375rem 0.875rem;
  font-size: 0.875rem;
}

/* Badges */
.aofbd-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  border-radius: var(--aofbd-radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.aofbd-badge--primary { background: var(--aofbd-primary-subtle); color: var(--aofbd-primary); }
.aofbd-badge--success { background: var(--aofbd-success-bg); color: #047857; }
.aofbd-badge--warning { background: var(--aofbd-warning-bg); color: #b45309; }

/* Section Header */
.aofbd-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.aofbd-section-head__sub {
  margin: 0;
  color: var(--aofbd-muted);
  font-size: 0.9375rem;
}

/* Business Card */
.aofbd-card {
  display: flex;
  flex-direction: column;
  background: var(--aofbd-surface);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-md);
  overflow: hidden;
  box-shadow: var(--aofbd-shadow-sm);
  transition: transform var(--aofbd-transition), box-shadow var(--aofbd-transition);
}

.aofbd-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--aofbd-shadow-md);
}

.aofbd-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--aofbd-border-light);
  overflow: hidden;
}

.aofbd-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aofbd-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.aofbd-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.125rem;
  gap: 0.5rem;
}

.aofbd-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--aofbd-muted);
}

.aofbd-card__title {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.35;
}

.aofbd-card__title a {
  color: var(--aofbd-dark);
}
.aofbd-card__title a:hover {
  color: var(--aofbd-primary);
}

.aofbd-card__location {
  margin: 0;
  font-size: 0.875rem;
  color: var(--aofbd-muted);
}

.aofbd-card__footer {
  margin-top: auto;
  padding-top: 0.75rem;
  border-top: 1px solid var(--aofbd-border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.875rem;
}

/* Category & Location Chips */
.aofbd-cat-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.125rem;
  background: var(--aofbd-surface);
  border: 1px solid var(--aofbd-border);
  border-radius: var(--aofbd-radius-md);
  color: var(--aofbd-dark);
  font-weight: 600;
  transition: border-color var(--aofbd-transition), box-shadow var(--aofbd-transition);
}
.aofbd-cat-card:hover {
  border-color: var(--aofbd-primary);
  box-shadow: var(--aofbd-shadow-sm);
}
.aofbd-cat-card__count {
  font-size: 0.8125rem;
  color: var(--aofbd-muted);
  font-weight: 500;
}

/* Breadcrumbs */
.aofbd-breadcrumbs {
  padding-block: 0.875rem;
  font-size: 0.875rem;
  color: var(--aofbd-muted);
}
.aofbd-breadcrumbs__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.aofbd-breadcrumbs__list li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--aofbd-border);
}

/* Pagination */
.aofbd-pagination .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}
.aofbd-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 0.75rem;
  border-radius: var(--aofbd-radius-sm);
  border: 1px solid var(--aofbd-border);
  background: var(--aofbd-surface);
  color: var(--aofbd-dark);
  font-weight: 600;
}
.aofbd-pagination .page-numbers.current {
  background: var(--aofbd-primary);
  border-color: var(--aofbd-primary);
  color: #ffffff;
}

/* Empty State & Notice */
.aofbd-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--aofbd-surface);
  border: 1px dashed var(--aofbd-border);
  border-radius: var(--aofbd-radius-md);
}
