/* ============================================================
   AluminiumGlass
   Public Search Page
   ============================================================ */

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

.search-heading {
  max-width: 760px;
  margin: 0 auto 30px;
  text-align: center;
}

.search-heading .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.search-heading h1 {
  margin: 0 0 12px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.1;
}

.search-heading p {
  margin: 0;
  color: #667085;
  font-size: 16px;
}


/* SEARCH BOX */

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

.search-field {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 8px 15px;
  border-right: 1px solid #e5e7eb;
}

.field-icon {
  font-size: 21px;
}

.field-content {
  flex: 1;
}

.field-content label {
  display: block;
  margin-bottom: 3px;
  font-size: 12px;
  font-weight: 700;
  color: #667085;
}

.field-content input {
  width: 100%;
  padding: 2px 0;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 15px;
}

.search-button {
  min-width: 130px;
  padding: 0 25px;
  border: 0;
  border-radius: 10px;
  background: #111827;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.search-button:hover {
  opacity: .9;
}


/* POPULAR */

.popular-searches {
  max-width: 1050px;
  margin: 17px auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
}

.popular-searches span {
  font-weight: 700;
}

.popular-searches a {
  padding: 6px 11px;
  border-radius: 20px;
  background: #fff;
  border: 1px solid #e3e6eb;
  color: inherit;
  text-decoration: none;
}

.popular-searches a:hover {
  border-color: #111827;
}


/* CONTENT */

.search-content {
  padding: 35px 20px 70px;
}

.search-layout {
  display: grid;
  grid-template-columns: 245px 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: auto;
}


/* FILTERS */

.search-filters {
  height: fit-content;
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

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

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

.filter-header button {
  padding: 0;
  border: 0;
  background: none;
  color: #667085;
  font-size: 12px;
  cursor: pointer;
}

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

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

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

.filter-option {
  display: flex;
  gap: 9px;
  align-items: center;
  margin: 10px 0;
  font-size: 13px;
  cursor: pointer;
}

.filter-option input {
  width: 15px;
  height: 15px;
}

.filter-more {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  text-decoration: none;
}

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


/* RESULTS */

.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 20px;
}

.results-header h2 {
  margin: 0 0 5px;
  font-size: 22px;
}

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

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


/* SEARCH STATES */

.search-state,
.empty-state {
  padding: 65px 20px;
  text-align: center;
  border: 1px dashed #d8dde5;
  border-radius: 12px;
}

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

.search-state h3,
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.search-state p,
.empty-state p {
  margin: 0;
  color: #667085;
  font-size: 14px;
}

.empty-state button {
  margin-top: 18px;
  padding: 10px 18px;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  cursor: pointer;
}


/* RESULT CARD */

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

.business-card {
  padding: 18px;
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  transition: box-shadow .2s, transform .2s;
}

.business-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, .07);
}

.business-image {
  width: 80px;
  height: 80px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 10px;
  background: #f1f3f5;
  font-size: 25px;
}

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

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

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

.business-category,
.business-location {
  margin: 4px 0;
  color: #667085;
  font-size: 13px;
}

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

.verified-badge {
  display: inline-block;
  margin-left: 7px;
  padding: 3px 7px;
  border-radius: 12px;
  background: #eef8f1;
  color: #287b45;
  font-size: 11px;
  font-weight: 700;
}

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

.business-actions a,
.business-actions button {
  min-width: 100px;
  padding: 9px 12px;
  border: 1px solid #d9dde3;
  border-radius: 8px;
  background: #fff;
  color: inherit;
  text-align: center;
  text-decoration: none;
  font-size: 12px;
  cursor: pointer;
}

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


/* LOADING */

.loading-state {
  padding: 60px;
  text-align: center;
}

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

.loading-state p {
  color: #667085;
  font-size: 13px;
}

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


/* PAGINATION */

.pagination {
  margin-top: 25px;
  display: flex;
  justify-content: center;
  gap: 7px;
}

.pagination button {
  min-width: 36px;
  height: 36px;
  border: 1px solid #ddd;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
}

.pagination button.active {
  background: #111827;
  color: #fff;
  border-color: #111827;
}


/* FOOTER */

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

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

.footer-inner p {
  max-width: 400px;
  color: #667085;
  font-size: 13px;
}

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

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

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


/* RESPONSIVE */

@media (max-width: 850px) {

  .main-nav {
    display: none;
  }

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

  .search-field {
    border-right: 0;
    border-bottom: 1px solid #eee;
  }

  .search-button {
    min-height: 50px;
  }

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

  .search-filters {
    display: none;
  }

  .search-filters.open {
    display: block;
  }

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

}


@media (max-width: 600px) {

  .header-actions .business-link {
    display: none;
  }

  .search-hero {
    padding: 35px 15px;
  }

  .search-heading h1 {
    font-size: 30px;
  }

  .search-content {
    padding: 25px 15px 50px;
  }

  .business-card {
    grid-template-columns: 60px 1fr;
  }

  .business-image {
    width: 60px;
    height: 60px;
  }

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

  .business-actions a,
  .business-actions button {
    flex: 1;
  }

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

}