/* Search Results Styles */
.search-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  margin-top: 10px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
}

.search-results__header {
  padding: 15px 20px;
  border-bottom: 1px solid #e5e5e5;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.search-results__header h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #131216;
}

#search-results-count {
  font-size: 14px;
  color: #666;
}

.search-results__content {
  padding: 10px 0;
}

.search-results__section {
  margin-bottom: 15px;
}

.search-results__section:last-child {
  margin-bottom: 0;
}

.search-results__section h5 {
  padding: 10px 20px;
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #3e8f75;
  text-transform: uppercase;
  background: #f8f9fa;
  border-bottom: 1px solid #e5e5e5;
}

.search-results__section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results__section li {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background-color 0.2s ease;
}

.search-results__section li:hover {
  background-color: #f8f9fa;
}

.search-results__section li:last-child {
  border-bottom: none;
}

.search-results__section li a {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: #131216;
  text-decoration: none;
  margin-bottom: 5px;
  transition: color 0.2s ease;
}

.search-results__section li a:hover {
  color: #3e8f75;
}

.search-results__section li p {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.search-loading,
.search-no-results {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-radius: 10px;
  margin-top: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  z-index: 10000;
}

.search-loading p,
.search-no-results p {
  margin: 0;
  color: #666;
  font-size: 14px;
}

/* Adjust search popup content to accommodate results */
.search-popup__content {
  position: relative;
}

/* Scrollbar styling for search results */
.search-results::-webkit-scrollbar {
  width: 6px;
}

.search-results::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb {
  background: #3e8f75;
  border-radius: 10px;
}

.search-results::-webkit-scrollbar-thumb:hover {
  background: #2d6b57;
}
