/* Business directory styles tuned to match the provided template image */

/* Page header/title */
.page-wrap {
  padding: 36px 18px 60px;
  background: #f8fbff;
  min-height: 80vh;
}
.title {
  text-align: center;
  font-size: 26px;
  margin-top: 8px;
  margin-bottom: 6px;
  color: #213149;
  font-weight: 600;
}
.subtitle {
  text-align: center;
  color: #7b8a9a;
  margin-bottom: 22px;
}

/* Tabs under header */
.tabs {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.tabs .tab {
  background: transparent;
  border: none;
  padding: 8px 14px;
  color: #2b7cff;
  cursor: pointer;
}
.tabs .tab.active {
  border-bottom: 2px solid #2b7cff;
  color: #123456;
  font-weight: 600;
}

/* Search box card (white rounded with input + blue button) */
.search-box {
  max-width: 980px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
}
.search-box input[type="text"] {
  flex: 1;
  padding: 12px 14px;
  border: 1px solid #e6eef6;
  border-radius: 6px 0 0 6px;
  background: #fff;
  font-size: 14px;
}
.search-box button {
  padding: 10px 16px;
  background: #2b7cff;
  color: #fff;
  border: 1px solid #2b7cff;
  border-radius: 0 6px 6px 0;
  cursor: pointer;
}
.search-box {
  box-shadow: 0 1px 0 rgba(22, 37, 61, 0.03);
}

/* Grid: 3 columns on desktop, 2 on tablet, 1 on mobile */
#grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 992px) {
  #grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  #grid {
    grid-template-columns: 1fr;
  }
}

/* Card style */
.bcard {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  padding: 14px;
  background: #fff;
  border: 1px solid #e9f0f6;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(22, 37, 61, 0.03);
}
.bmedia {
  width: 72px;
  height: 72px;
  flex: 0 0 72px;
  border-radius: 6px;
  overflow: hidden;
  background: #f4f7fb;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
}
.bmedia img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.bbody {
  flex: 1 1 auto;
  min-width: 0;
}
.bmeta {
  display: flex;
  flex-direction: column;
}
.bname {
  font-size: 15px;
  color: #213149;
  margin: 0 0 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bdesc {
  color: #6b7b8c;
  font-size: 13px;
  margin: 0 0 8px;
  line-height: 1.3;
}

.bfooter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.badge {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  background: #e6f7ee;
  color: #0a9e4a;
}
.view-link {
  color: #2b7cff;
  text-decoration: none;
  font-size: 13px;
}

/* results info + pager at bottom */
.pagination-row {
  max-width: 1100px;
  margin: 18px auto 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #6b7b8c;
  font-size: 13px;
}
.pager button {
  border: 1px solid #e6eef6;
  background: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  margin-left: 6px;
  cursor: pointer;
}
.pager button.active {
  background: #2b7cff;
  color: #fff;
  border-color: #2b7cff;
}

/* No results / errors */
.bcard.empty {
  justify-content: center;
  text-align: center;
  padding: 22px;
}

/* small responsive tweaks */
@media (max-width: 480px) {
  .title {
    font-size: 20px;
  }
  .search-box input[type="text"] {
    padding: 10px;
  }
}

/* Compact profile styles (appended) */
.business-page .card,
.card.cs-compact {
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 6px 18px rgba(18, 38, 63, 0.06);
  border: none;
  margin-bottom: 12px;
}
.verified-banner {
  padding: 8px 12px;
  font-weight: 700;
  font-size: 14px;
  background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
  color: #fff;
  border-radius: 6px;
}
.info-card .card {
  margin-top: -44px;
}
.profile-picture {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 4px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}
h1,
h2,
h3,
h4,
h5 {
  margin-top: 0;
  margin-bottom: 6px;
}
.card .about-box,
.card .text-muted {
  min-height: initial;
}
.btn {
  border-radius: 6px;
  padding: 6px 10px;
}
.btn-sm {
  padding: 4px 8px;
}
#postsContainer .no-posts,
#postsContainer .loading-spinner {
  padding: 18px;
  height: auto;
}
.loading-spinner {
  min-height: 90px;
}
#reviewsContainer .review-card,
.card .card-body {
  padding: 12px;
}
.rating-input label {
  font-size: 20px;
  margin-right: 6px;
}
.list-unstyled li {
  margin-bottom: 8px;
}
@media (max-width: 767px) {
  .info-card .card {
    margin-top: -30px;
    padding: 10px;
  }
  .profile-picture {
    width: 70px;
    height: 70px;
  }
}
