/* File: business-directory.css
   Description: Styles scoped to the Business Directory shortcode output only.
*/

/* Outer wrapper */
.ll-business-directory {
  margin: 20px 0;
}

/* Grid wrapper */
.ll-business-directory .ll-business-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* Card */
.ll-business-directory .ll-business-card {
  width: min(420px, 100%);
  margin: 0;                 /* gap handles spacing */
  padding: 10px;
  text-align: center;

  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;

  display: flex;
  flex-direction: column;

  transition: transform .2s, box-shadow .2s;
}

.ll-business-directory .ll-business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* Image */
.ll-business-directory .ll-business-card img {
  width: 100%;
  aspect-ratio: 4 / 3;     /* or 16 / 9, pick one */
  height: auto;
  object-fit: contain;     /* ✅ no crop, no distortion */
  background: #f1f5f9;     /* shows as a neutral frame */
  border-radius: 8px;
  display: block;
  margin-bottom: 10px;
}

/* Title */
.ll-business-directory .ll-business-card h3 {
  font-size: 1.4em;
  margin: 10px 0 4px;
  color: #333;
}

/* Primary category under title */
.ll-business-directory .ll-business-primary-category {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 18px;
  color: #64748b;
}

/* Body text */
.ll-business-directory .ll-business-card p {
  font-size: 1em;
  color: #777;
  margin: 0 0 12px;
}

/* Rating badge tweaks (optional; safe scoped) */
.ll-business-directory .business-google-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  margin: 6px 0 10px;
}

/* CTA link */
.ll-business-directory .ll-business-card-link {
  display: inline-block;
  margin-top: auto;          /* pushes button to bottom when content varies */
  padding: 10px 15px;

  background: #0073aa;
  color: #fff;
  text-decoration: none;
  border-radius: 8px;

  transition: background-color .2s ease;
}

.ll-business-directory .ll-business-card-link:hover {
  background: #005177;
}

/* Voting block (basic baseline so it doesn't look broken) */
.ll-business-directory .vote-container {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ll-business-directory .vote-button {
  border: 1px solid #ddd;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.ll-business-directory .vote-count {
  font-weight: 700;
  color: #111827;
}

/* Responsive */
@media (max-width: 768px) {
  .ll-business-directory .ll-business-card {
    width: min(360px, 92vw);
  }
}
