/* ============================================================
   AluminiumGlass
   Public Business Listings
   ============================================================ */

.businesses-hero {
  padding: 45px 20px 40px;
  background: #f6f8fb;
  border-bottom: 1px solid #e5e7eb;
}

.businesses-heading {
  max-width: 800px;
  margin: 0 auto 25px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.businesses-heading h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 5vw, 42px);
}

.businesses-heading p {
  margin: 0;
  color: #667085;
}


/* SEARCH */

.business-search {
  max-width: 1050px;
  margin: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 8px;
  background: #fff;
  border: 1px solid #dfe3e8;
  border-radius: 12px;
  box-shadow: 0 7px 25px rgba(0,0,0,.06);
}

.search-field {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 13px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.search-field input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  outline: 0;
  background: transparent;
}

.business-search button {
  padding: 0 22px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}


/* RESULTS */

.businesses-section {
  padding: 35px 20px 60px;
}

.results-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}


/* FILTERS */

.filters-panel {
  position: sticky;
  top: 15px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 15px;
  border-bottom: 1px solid #e5e7eb;
}

.filters-header h2 {
  margin: 0;
  font-size: 18px;
}

.filters-header button {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}

.filter-group {
  padding: 18px 0;
  border-bottom: 1px solid #edf0f2;
}

.filter-group:last-child {
  border-bottom: 0;
}

.filter-group h3 {
  margin: 0 0 11px;
  font-size: 13px;
}

.filter-group select {
  width: 100%;
  padding: 10px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
}

.filter-group label {
  display: block;
  margin: 10px 0;
  color: #475467;
  font-size: 13px;
}

.filter-group input {
  margin-right: 7px;
}


/* TOOLBAR */

.results-toolbar {
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.results-toolbar h2 {
  margin: 0 0 4px;
  font-size: 21px;
}

.results-toolbar p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.mobile-filter-button {
  display: none;
  padding: 9px 13px;
  border: 1px solid #dfe3e8;
  border-radius: 8px;
  background: #fff;
}


/* BUSINESS CARD */

.business-list {
  display: grid;
  gap: 15px;
}

.business-card {
  padding: 20px;
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  gap: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s ease;
}

.business-card:hover {
  box-shadow: 0 7px 22px rgba(0,0,0,.07);
}

.business-logo {
  width: 90px;
  height: 90px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f3f5;
  color: #344054;
  font-size: 24px;
  font-weight: 800;
}

.business-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.business-info h3 {
  margin: 0 0 7px;
  font-size: 18px;
}

.business-info h3 a {
  color: inherit;
  text-decoration: none;
}

.business-category {
  margin-bottom: 7px;
  color: #667085;
  font-size: 12px;
}

.business-location {
  color: #667085;
  font-size: 13px;
}

.business-description {
  margin: 9px 0 0;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.business-badges {
  margin-bottom: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  padding: 4px 7px;
  border-radius: 5px;
  font-size: 10px;
  font-weight: 700;
}

.badge-verified {
  background: #eefbf3;
  color: #147a3e;
}

.badge-featured {
  background: #fff7e6;
  color: #9a6200;
}

.business-rating {
  margin: 8px 0;
  font-size: 13px;
}

.business-rating strong {
  margin-right: 4px;
}

.business-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.business-action {
  min-width: 105px;
  padding: 9px 12px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
}

.business-action.primary {
  border-color: #111827;
  background: #111827;
  color: #fff;
}


/* STATE */

.business-state {
  padding: 55px 20px;
  text-align: center;
  border: 1px dashed #d8dde5;
  border-radius: 12px;
  color: #667085;
}

.business-state h3 {
  margin: 10px 0 5px;
  color: #111827;
}

.state-icon {
  font-size: 35px;
}

.business-state button {
  margin-top: 12px;
  padding: 9px 15px;
  border: 1px solid #dfe3e8;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.loader {
  width: 30px;
  height: 30px;
  margin: 0 auto 12px;
  border: 3px solid #ddd;
  border-top-color: #111827;
  border-radius: 50%;
  animation: spin .8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* CTA */

.business-listing-cta {
  padding: 45px 20px 60px;
}

.cta-box {
  max-width: 1050px;
  margin: auto;
  padding: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  border: 1px solid #e1e5e9;
  border-radius: 13px;
}

.cta-box h2 {
  margin: 0 0 7px;
}

.cta-box p {
  margin: 0;
  color: #667085;
  font-size: 13px;
}

.cta-button {
  flex-shrink: 0;
  padding: 12px 18px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}


/* FOOTER */

.site-footer {
  border-top: 1px solid #e5e7eb;
}

.footer-inner {
  padding: 35px 20px;
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-about {
  max-width: 400px;
}

.footer-about p {
  color: #667085;
  font-size: 13px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  font-size: 13px;
}

.footer-bottom {
  padding: 15px;
  border-top: 1px solid #e5e7eb;
  color: #667085;
  text-align: center;
  font-size: 12px;
}


/* RESPONSIVE */

@media (max-width: 850px) {

  .results-layout {
    grid-template-columns: 1fr;
  }

  .filters-panel {
    display: none;
  }

  .mobile-filter-button {
    display: block;
  }

  .business-search {
    grid-template-columns: 1fr;
  }

  .business-search button {
    padding: 12px;
  }

}


@media (max-width: 600px) {

  .main-nav {
    display: none;
  }

  .business-card {
    grid-template-columns: 65px minmax(0,1fr);
  }

  .business-logo {
    width: 65px;
    height: 65px;
  }

  .business-actions {
    grid-column: 1 / -1;
    flex-direction: row;
  }

  .business-action {
    flex: 1;
  }

  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-inner {
    flex-direction: column;
  }

}