#map {
  height: 724px;
  width: 100%;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.business-cards-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 0 15px;
  height: 724px;
  justify-content: space-between;
}

.business-cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  width: 100%;
  max-width: 412px;
}

.no-results {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  color: #666;
  font-style: italic;
}

.business-card {
  background-color: white;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  text-align: center;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.3s ease;
}

.business-card.highlighted {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid var(--color--brand--primary-200);
  transform: translateY(-8px);
  border: 4px dashed var(--color--brand--primary-200);
}

.business-card-content {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.company-name {
  color: #0066cc;
  font-size: 20px;
  margin-bottom: 15px;
  word-break: break-word;
  text-align: left;
}

.contact-info {
  margin-bottom: 15px;
  text-align: left;
  width: 100%;
}

.contact-item {
  margin: 16px 0;
  color: #333;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  word-break: break-word;
  font-size: 14px;
}

.contact-icon {
  color: #0066cc;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-svg-icon {
  width: 20px;
  height: 20px;
}

.contact-text {
  flex: 1;
}

.social-icons {
  display: flex;
  justify-content: flex-start;
  flex-wrap: wrap;
  width: 100%;
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px;
  color: #0066cc;
  transition: color 0.3s ease;
  background-color: var(--color--brand--primary-200);
  width: 32px;
  height: 32px;
}

.social-icon:hover {
  background-color: #004999;
}

.social-svg-icon {
  width: 20px;
  height: 20px;
  color: white;
}

@media (max-width: 480px) {
  .business-cards-grid {
    max-width: 100%;
    padding: 0 10px;
  }

  .business-card {
    padding: 15px;
  }

  .company-name {
    font-size: 18px;
  }

  .contact-item {
    font-size: 13px;
  }

  .contact-svg-icon {
    width: 18px;
    height: 18px;
  }

  .social-icons {
    gap: 8px;
  }

  .social-icon {
    width: 28px;
    height: 28px;
    margin: 3px;
  }

  .social-svg-icon {
    width: 16px;
    height: 16px;
  }
}

.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  width: 100%;
}

.pagination-controls {
  display: flex;
  align-items: center;
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 5px;
}

@media (max-width: 480px) {
  .pagination-controls {
    width: 100%;
    justify-content: space-between;
  }
}

.pagination-btn {
  background-color: var(--color--brand--primary-200);
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  font-size: 20px;
  padding: 0;
}

.pagination-btn:disabled {
  background-color: #e0e0e0;
  color: #a0a0a0;
  cursor: not-allowed;
}

.pagination-btn.prev::before {
  content: "←";
}

.pagination-btn.next::before {
  content: "→";
}

.page-indicators {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 0 10px;
}

@media (max-width: 480px) {
  .page-indicators {
    gap: 3px;
    margin: 0 5px;
  }

  .page-indicator {
    width: 12px;
    height: 12px;
  }

  .page-indicator.ellipsis::before {
    font-size: 12px;
  }
}

.page-indicator {
  width: 16px;
  height: 16px;
  border: 1px solid #838e9f;
}

.page-indicator.active {
  background-color: #33b1ff;
}

.page-indicator.ellipsis {
  border: none;
  position: relative;
}

.page-indicator.ellipsis::before {
  content: "...";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
  color: #838e9f;
  line-height: 0;
}

.page-indicator:not(.ellipsis) {
  cursor: pointer;
}

.map-popup h3 {
  color: #0066cc;
  margin-bottom: 10px;
  font-size: 16px;
}

.map-popup p {
  margin: 5px 0;
  font-size: 14px;
}

.map-popup a {
  color: #0066cc;
  text-decoration: none;
}

.map-popup a:hover {
  text-decoration: underline;
}

/* Autocomplete Styles */
.autocomplete-container {
  position: relative;
}

.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-height: 300px;
  overflow-y: auto;
  z-index: 1000;
  display: none;
  margin-top: 5px;
}

.autocomplete-dropdown.show {
  display: block;
}

.autocomplete-item {
  padding: 10px 15px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #f0f0f0;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover {
  background-color: #f5f9ff;
}

.autocomplete-item .city {
  font-weight: 500;
  color: #333;
}

.autocomplete-item .state {
  color: #666;
  font-size: 0.9em;
  background-color: #f0f0f0;
  padding: 2px 8px;
  border-radius: 4px;
}

.autocomplete-item.active {
  background-color: #e6f0ff;
}

/* Improve scrollbar appearance for the dropdown */
.autocomplete-dropdown::-webkit-scrollbar {
  width: 8px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

select.non-interactive {
  pointer-events: none;
  opacity: 0.6;
  background-color: #f2f2f2;
  cursor: not-allowed;
}

#category-select { 
  font-size: 12px;
}

.custom-marker {
  background: transparent;
  border: none;
}

.marker-number {
  background: #0066cc;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.card-header-left {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.card-pin-number .marker-number {
  background: #0066cc;
  color: #fff;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 16px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.card-distance {
  color: #333;
  font-size: 16px;
  font-weight: 500;
  min-width: 48px;
  text-align: right;
}

@media (max-width: 480px) {
  .card-header-row {
    margin-bottom: 4px;
  }
  .card-pin-number .marker-number {
    width: 22px;
    height: 22px;
    font-size: 13px;
  }
  .card-distance {
    font-size: 13px;
    min-width: 36px;
  }
}