/* File: business-directory.css
   Description: Styles scoped to the Business Directory shortcode output only.
*/

.ll-business-directory {
  margin: 20px 0;
}

.ll-business-directory .ll-business-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.ll-business-directory .ll-business-card {
  width: min(420px, 100%);
  margin: 0;
  padding: 10px;
  text-align: center;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

.ll-business-directory .ll-business-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Compact logo + business identity row. If there is no logo, the copy simply
   occupies the full row; no placeholder space is reserved. */
.ll-business-directory .ll-business-card__identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  margin: 8px 0 12px;
}

.ll-business-directory .ll-business-card__identity-copy {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

.ll-business-directory .ll-business-card__logo-wrap {
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.ll-business-directory .ll-business-card__logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Fallback for older cards still using plain img. */
.ll-business-directory .ll-business-card > img {
  width: 82px;
  height: 82px;
  padding: 7px;
  object-fit: contain;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: block;
  margin: 8px 0 12px;
}

.ll-business-directory .ll-business-card h3 {
  font-size: 1.4em;
  line-height: 1.25;
  margin: 0 0 4px;
  color: #333;
}

.ll-business-directory .ll-business-primary-category {
  margin: 0 0 5px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.35;
  color: #64748b;
}

.ll-business-directory .ll-business-card p {
  font-size: 1em;
  color: #777;
  margin: 0 0 12px;
}

.ll-business-directory .ll-business-card__identity .ll-business-card__location,
.ll-business-directory .ll-business-card__identity .ll-business-card__brand-locations {
  margin: 0;
  line-height: 1.4;
}

/* PREMIUM RATING WRAP REUSED IN DIRECTORY */
.ll-business-directory .ll-business-card__rating {
  margin: 6px 0 10px;
  display: flex;
  justify-content: center;
}

.ll-business-directory .ll-business-card__rating .ll-premium-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  text-align: center;
}

.ll-business-directory .ll-business-card__rating .ll-premium-rating--link {
  text-decoration: none;
}

.ll-business-directory .ll-business-card__rating .ll-premium-rating__score {
  font-weight: 700;
  color: #111827;
}

.ll-business-directory .ll-business-card__rating .ll-premium-rating__stars {
  position: relative;
  display: inline-block;
  line-height: 1;
  letter-spacing: 1px;
  color: #d1d5db;
}

.ll-business-directory .ll-business-card__rating .ll-premium-rating__stars-base {
  display: block;
}

.ll-business-directory .ll-business-card__rating .ll-premium-rating__stars-fill {
  position: absolute;
  top: 0;
  left: 0;
  overflow: hidden;
  white-space: nowrap;
  color: #f59e0b;
}

.ll-business-directory .ll-business-card__rating .ll-premium-rating__count {
  font-size: 0.95em;
  color: #2563eb;
}

.ll-business-directory .business-google-rating {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin: 6px 0 10px;
}

/* Layout only - visual button styles belong in buttons.css */
.ll-business-directory .ll-business-card-link {
  display: inline-block;
  margin-top: auto;
}

.ll-business-directory .vote-container {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.ll-business-directory .vote-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ll-business-directory .vote-count {
  font-weight: 700;
  color: #111827;
}

@media (max-width: 768px) {
  .ll-business-directory .ll-business-card {
    width: min(360px, 92vw);
  }

  .ll-business-directory .ll-business-card__identity {
    gap: 11px;
  }

  .ll-business-directory .ll-business-card__logo-wrap {
    flex-basis: 72px;
    width: 72px;
    height: 72px;
    padding: 6px;
  }

  .ll-business-directory .ll-business-card__rating .ll-premium-rating {
    gap: 4px;
  }

  .ll-business-directory .ll-business-card__rating .ll-premium-rating__count {
    width: 100%;
  }
}

/* Business brands / multi-location directory — release 2026.08.19.1 */
.ll-business-directory__view-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 0 18px;
}

.ll-business-directory__view-toggle a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 1px solid #c9c9c9;
  border-radius: 999px;
  background: #fff;
  color: #222;
  font-weight: 600;
  text-decoration: none;
}

.ll-business-directory__view-toggle a.is-active {
  border-color: #1f6f3d;
  background: #1f6f3d;
  color: #fff;
}

.ll-business-directory .ll-business-card--brand {
  position: relative;
}

.ll-business-directory .ll-business-card__brand-badge {
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  margin: 0 0 6px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef7f1;
  color: #1f6f3d;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
}

.ll-business-directory .ll-business-card__brand-locations {
  color: #555;
  font-size: 14px;
  line-height: 1.45;
}

.ll-brand-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

.ll-brand-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 28px;
  padding: 28px;
  border: 1px solid #e2e2e2;
  border-radius: 16px;
  background: #fff;
}

.ll-brand-hero__logo img {
  display: block;
  width: 132px;
  height: 132px;
  object-fit: contain;
  border: 1px solid #e3e3e3;
  border-radius: 14px;
  background: #fff;
}

.ll-brand-hero__copy {
  min-width: 0;
}

.ll-brand-hero__title {
  display: block;
  margin: 0 0 8px;
  color: #1f2937;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 700;
  line-height: 1.08;
}

.ll-brand-hero__category {
  margin-bottom: 8px;
  color: #667085;
  font-weight: 700;
}

.ll-brand-hero__count {
  margin: 0 0 12px;
  color: #4b5563;
}

.ll-brand-section {
  margin-top: 34px;
}

.ll-brand-section h2 {
  margin: 0 0 14px;
}

.ll-brand-section__heading {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.ll-brand-section__heading h2 {
  margin-bottom: 5px;
}

.ll-brand-section__heading p {
  margin: 0;
  color: #667085;
}

.ll-brand-about {
  padding: 22px 24px;
  border: 1px solid #e2e2e2;
  border-radius: 14px;
  background: #fff;
}

.ll-brand-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #1f6f3d;
  border-radius: 8px;
  background: #1f6f3d;
  color: #fff;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
}

.ll-brand-action:hover,
.ll-brand-action:focus-visible {
  color: #fff;
  text-decoration: none;
  filter: brightness(.94);
}

.ll-brand-action--secondary {
  background: #fff;
  color: #1f6f3d;
}

.ll-brand-action--secondary:hover,
.ll-brand-action--secondary:focus-visible {
  background: #f2f8f4;
  color: #1f6f3d;
  filter: none;
}

.ll-brand-map {
  min-height: 340px;
  margin-bottom: 18px;
  overflow: hidden;
  border: 1px solid #ddd;
  border-radius: 14px;
  background: #f4f4f4;
}

.ll-brand-locations {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ll-brand-location-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border: 1px solid #dedede;
  border-radius: 14px;
  background: #fff;
}

.ll-brand-location-card h3 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.25;
}

.ll-brand-location-card h3 a {
  text-decoration: none;
}

.ll-brand-location__address,
.ll-brand-location__rating,
.ll-brand-location-card p {
  margin: 5px 0;
  color: #4b5563;
}

.ll-brand-location__rating {
  font-weight: 700;
}

.ll-brand-location__distance {
  min-height: 20px;
  margin-top: 7px;
  color: #1f6f3d;
  font-weight: 700;
}

.ll-brand-location-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ll-brand-content-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.ll-brand-content-card {
  overflow: hidden;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  background: #fff;
}

.ll-brand-content-card__image {
  display: block;
}

.ll-brand-content-card__image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ll-brand-content-card__body {
  padding: 14px;
}

.ll-brand-content-card__type {
  margin: 0 0 5px;
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.ll-brand-content-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.ll-brand-content-card h3 a {
  text-decoration: none;
}

.ll-brand-content-card p {
  margin: 0;
  color: #4b5563;
}

.ll-business-brand-context {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 14px;
  background: #fff;
}

.ll-business-brand-context__locations {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.ll-business-brand-context__locations a {
  font-weight: 600;
}

@media (max-width: 800px) {
  .ll-brand-hero {
    grid-template-columns: 1fr;
  }

  .ll-brand-hero__logo img {
    width: 110px;
    height: 110px;
  }

  .ll-brand-locations,
  .ll-brand-content-grid {
    grid-template-columns: 1fr;
  }

  .ll-brand-map {
    min-height: 280px;
  }

  .ll-business-brand-context {
    align-items: flex-start;
  }
}

/* Directory filtering + sorting — release 2026.09.04.2 */
.ll-business-directory__filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(150px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 0 auto 20px;
  padding: 16px;
  max-width: 1240px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
}

.ll-business-directory__filter {
  min-width: 0;
}

.ll-business-directory__filter label {
  display: block;
  margin: 0 0 5px;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.ll-business-directory__filter input,
.ll-business-directory__filter select {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  font: inherit;
}

.ll-business-directory__filter input:focus,
.ll-business-directory__filter select:focus {
  outline: 2px solid #bfdbfe;
  outline-offset: 1px;
  border-color: #2563eb;
}

.ll-business-directory__filter-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 42px;
}

.ll-business-directory__apply,
.ll-business-directory__clear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 14px;
  border-radius: 8px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ll-business-directory__apply {
  border: 1px solid #1f6f3d;
  background: #1f6f3d;
  color: #fff;
  cursor: pointer;
}

.ll-business-directory__apply:hover,
.ll-business-directory__apply:focus-visible {
  background: #195c33;
  color: #fff;
}

.ll-business-directory__clear {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
}

.ll-business-directory__clear:hover,
.ll-business-directory__clear:focus-visible {
  background: #f8fafc;
  color: #111827;
}

.ll-business-directory__filter-footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  padding-top: 2px;
  color: #64748b;
  font-size: 13px;
}

.ll-business-directory__result-count {
  font-weight: 700;
  color: #475569;
}

.ll-business-directory__sort-status:not(:empty) {
  color: #1f6f3d;
  font-weight: 600;
}

.ll-business-directory__no-results {
  max-width: 820px;
  margin: 28px auto;
  padding: 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
  font-weight: 600;
}

.ll-business-directory .ll-business-card__distance {
  margin: -2px 0 10px;
  color: #1f6f3d;
  font-size: 14px;
  font-weight: 700;
}

.ll-business-directory .ll-business-card__distance[hidden] {
  display: none;
}

@media (max-width: 1100px) {
  .ll-business-directory__filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ll-business-directory__filter--search {
    grid-column: 1 / -1;
  }

  .ll-business-directory__filter-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .ll-business-directory__filters {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .ll-business-directory__filter--search,
  .ll-business-directory__filter-footer {
    grid-column: auto;
  }

  .ll-business-directory__filter-actions {
    width: 100%;
  }

  .ll-business-directory__apply,
  .ll-business-directory__clear {
    flex: 1 1 0;
  }
}

/* Offers archive/listing cards.
   Uses the same public card shell as the Business Directory and Events page. */
.ll-offers-directory .ll-business-card--offer {
  overflow: hidden;
}

.ll-offers-directory .ll-offer-card__image-link {
  display: block;
  width: 100%;
  margin: 0 0 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  background: #f4f4f4;
}

.ll-offers-directory .ll-offer-card__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ll-offers-directory .ll-offer-card__business {
  margin-bottom: 10px;
}

.ll-offers-directory .ll-offer-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  line-height: 1.5;
}

.ll-offers-directory .ll-offer-card__expires {
  margin-top: 2px;
}

.ll-offers-directory .ll-offer-card__cta {
  padding-top: 4px;
}

@media (max-width: 768px) {
  .ll-offers-directory .ll-offer-card__image-link {
    aspect-ratio: 16 / 9;
  }
}

