/* ============================================================
  InVaal [016] — Business Page Styles
  File: css/business.css

  Purpose:
  - Page-specific styling for business.html
  - Business directory (search, filters, listings, pagination)
  - Business CTA (list your business)
  - Services section (media offerings)

  Compatibility:
  - Supports BOTH the new markup (btn/card/service-card/etc.)
    and legacy classes still used in older versions:
      .load-more-btn, .cta-button, .business-card.placeholder
============================================================ */

/* =========================
  1) Page Layout Helpers
========================= */
.business-page {
  /* Keeps the page consistent with the news-style spacing */
  padding-bottom: 32px;
}

/* Optional intro card below the Business heading */
.business-intro-card {
  padding: 16px;
}

/* =========================
  2) Directory Controls (Search + Filter)
========================= */
.business-controls {
  margin-top: 12px;

  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 12px;
  align-items: center;
}

.business-controls input,
.business-controls select {
  width: 100%;
  padding: 12px 12px;

  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);

  box-shadow: var(--shadow-sm);
}

.business-controls input::placeholder {
  color: color-mix(in srgb, var(--muted) 75%, transparent);
}

/* =========================
  3) Business Grid + Cards
========================= */
.business-grid {
  margin-top: 14px;

  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

/* Each card spans 4 columns on desktop */
.business-grid > * {
  grid-column: span 4;
}

/* Business card (works with JS-rendered cards) */
.business-card {
  padding: 16px;
  border-radius: var(--radius);

  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);

  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}

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

/* Placeholder card while loading */
.business-card.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;

  color: var(--muted);
  min-height: 120px;
  background: var(--surface-2);
}

/* Common business card text styles (if your loader uses these classes) */
.business-card h3,
.business-card .business-name {
  font-size: 1.25rem;
  line-height: 1.2;
  color: var(--text);
}

.business-card p,
.business-card .business-description {
  margin-top: 8px;
  color: rgba(17, 24, 39, 0.82);
}

.business-card .business-meta {
  margin-top: 10px;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Optional tag/pill style if your data includes categories */
.business-tag {
  display: inline-flex;
  align-items: center;

  padding: 6px 10px;
  border-radius: 999px;

  border: 1px solid rgba(4, 174, 217, 0.22);
  background: rgba(4, 174, 217, 0.12);

  color: rgba(17, 24, 39, 0.85);
  font-weight: 800;
  font-size: 0.8rem;
}

/* =========================
  4) Pagination / Load More
========================= */
.business-pagination {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Legacy button support */
.load-more-btn {
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid transparent;

  font-weight: 800;
  cursor: pointer;

  background: var(--brand-600);
  color: var(--white);

  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.load-more-btn:hover {
  transform: translateY(-1px);
  background: var(--brand-700);
}

/* =========================
  5) Call-To-Action (List Your Business)
========================= */
.cta-card {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.cta-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* Legacy CTA link support */
.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 16px;
  border-radius: 999px;

  background: var(--brand-600);
  color: var(--white);
  text-decoration: none;
  font-weight: 800;

  transition: transform var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}

.cta-button:hover {
  transform: translateY(-1px);
  background: var(--brand-700);
}

/* =========================
  6) Services Section
========================= */
.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-card {
  padding: 16px;
}

.service-card .card-title {
  font-size: 1.2rem;
  line-height: 1.2;
}

.service-card .card-text {
  margin-top: 8px;
  color: rgba(17, 24, 39, 0.82);
}

/* Price line */
.service-card .price,
.service-card .p-price {
  margin-top: 10px;
  color: var(--muted);
  font-weight: 700;
}

/* Feature list */
.service-list {
  margin-top: 12px;
  padding-left: 18px;
  color: rgba(17, 24, 39, 0.78);
}

.service-list li + li {
  margin-top: 6px;
}

/* Legacy support: .service blocks (older markup) */
.service {
  padding: 16px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.service + .service {
  margin-top: 14px;
}

.service ul {
  margin-top: 12px;
  padding-left: 18px;
}

/* =========================
  7) Utility: Screen-reader Only
========================= */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* =========================
  8) Responsive
========================= */
@media (max-width: 980px) {
  .business-controls {
    grid-template-columns: 1fr;
  }

  .business-grid > * {
    grid-column: span 6;
  }

  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .business-grid {
    grid-template-columns: 1fr;
  }

  .business-grid > * {
    grid-column: auto;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }
}