/* Business Directory Frontend Styles */

/* Filter form wrapper: flexible layout with gaps and wrapping */
.fcs-bd-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  align-items: center;
}

/* Filter form inputs (search + select) styling */
.fcs-bd-filters input[type="text"],
.fcs-bd-filters select {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  width: 42%;
  box-sizing: border-box; /* prevent padding from increasing width */
}

/* Filter form button styling */
.fcs-bd-filters button {
  padding: 6px 24px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #006A4D;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button#fcs-bd-reset {
    background-color: #fff;
    color: #999;
    border: 0px;
    box-shadow: none;
}

.fcs-bd-filters button:hover,
.fcs-bd-filters button:focus {
  background-color: #024f39;
  outline: none;
  color: #333;
}

button#fcs-bd-reset:hover {
    background-color: #f5f5f5;
    color: #666;
}



/* Grid layout for business cards */
.fcs-bd-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Individual business card style */
article.fcs-bd-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect on business card: subtle shadow and border highlight */
article.fcs-bd-card:hover {
  border-color: #016A4C;
  box-shadow: 0 4px 10px rgba(1, 106, 76, 0.2);
}

/* Logo image styling centered with margin */
.fcs-bd-card .fcs-bd-logo img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto 12px;
  border-radius: 8px;
}

/* Business title styling */
.fcs-bd-title {
  margin: 0 0 6px 0;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

/* Business categories styling */
.fcs-bd-cats {
  font-size: 0.9rem;
  opacity: 0.8;
  margin-bottom: 6px;
}

/* Business description with spacing */
.fcs-bd-desc {
  margin-bottom: 10px;
}

/* Meta information list styling */
.fcs-bd-meta {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fcs-bd-meta li {
  margin: 4px 0;
  font-size: 0.95rem;
}

/* VIP badge styling with dynamic color and border */
.fcs-bd-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 8px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 999px;
  background-color: var(--fcs-vip-bg, #facc15);
  color: var(--fcs-vip-text, #000);
  margin-top: 6px;
}

/* Load more section wrapper */
.fcs-bd-load-more-wrap {
  text-align: center;
  margin: 2em 0;
}

/* Load more button style */
.fcs-bd-load-more-button {
  display: inline-block; /* button width adapts to content */
  padding: 10px 20px;
  border-radius: 8px;
  border: none;
  background-color: #006A4D;
  color: #fff;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.fcs-bd-load-more-button:hover,
.fcs-bd-load-more-button:focus {
  background-color: #016A4C;
  outline: none;
}

/* Responsive styles */

/* Medium screens (tablets, 640-1024px) */
@media (max-width: 1024px) {
  .fcs-bd-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .fcs-bd-filters input[type="text"],
  .fcs-bd-filters select {
    width: 40%;
  }
}

/* Small screens (mobile, under 640px) */
@media (max-width: 640px) {
  .fcs-bd-grid {
    grid-template-columns: 1fr;
  }
  .fcs-bd-filters input[type="text"],
  .fcs-bd-filters select,
  .fcs-bd-filters button {
    width: 100%;
  }
  .fcs-bd-filters button {
    padding: 12px 0;
  }
}
