:root {
  --map-height: 600px;
  --map-radius: 8px;
  --hover-bg: #f0f0f0;
  --text-muted: #555;
  --link-color: #0066cc;
}

/* General container fix */
.container-2 {
  width: 100%;
  max-width: 100%;
  padding: 30px 1rem 1rem 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
}

#businessList {
  max-height: 700px;
  overflow-y: auto;
}

.selected-item {
      background-color: #f0f0f0;
    }
  </style>

.custom-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #007bff;
  border: 2px solid white;
  cursor: pointer;
}


/* Map display */
#map {
  display: block;
  height: var(--map-height);
  width: 100%;
  border-radius: var(--map-radius);
  margin-top: 1.5rem;
}




/* Business list */
.business-list {
  max-height: var(--map-height);
  overflow-y: auto;
}




/* Business item styling */
.business-item {
  cursor: pointer;
  padding: 12px;
  display: flex;
  align-items: flex-start;
  gap: 15px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #ddd;
  background-color: white;
}

.business-item img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.business-item:hover {
  background-color: var(--hover-bg);
}

.business-item.active {
  background-color: #e0e0e0 !important; /* slightly darker grey */
  color: inherit !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.business-item.active:focus {
  outline: none !important;
}

.business-item .field {
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.business-item small {
  color: var(--text-muted);
}

.membership {
  font-weight: bold;
  color: var(--link-color);
}

/* Search bar wrapper */
.search-bar-wrapper {
  width: 100%;
}

/* Search input */
#searchBox {
  flex: 1 1 auto;
  min-width: 0;
}

/* Search icon */
.search-icon {
  font-size: 1.4rem;
  padding: 0.5rem 0.75rem;
  background-color: #e9ecef;
  border: 1px solid #ccc;
  border-radius: 0.375rem;
  cursor: pointer;
  display: flex;
  align-items: center;
}

/* Search button */
#searchButton {
  padding: 0.6rem 1rem;
  font-size: 1rem;
  width: auto;
}

/* Responsive layout */
@media (max-width: 767.98px) {
  .search-bar-wrapper {
    flex-direction: column;
    gap: 0.5rem;
  }

  #searchBox {
    width: 100%;
  }

  .search-icon {
    width: 100%;
    justify-content: center;
  }

  #searchButton {
    width: 100%;
    margin-top: 0.75rem;
  }

  .business-list {
    max-height: 300px;
  }

  .col-md-4,
  .col-md-8 {
    width: 100%;
    flex: 0 0 100%;
    max-width: 100%;
  }

  #map {
    height: 400px;
  }

  .business-item {
    flex-direction: row;
    align-items: center;
  }

  .business-item img {
    width: 48px;
    height: 48px;
  }

  .business-item .field {
    font-size: 0.85rem;
  }
}

/* Utility spacing for map toggle visibility */
.map-visible #map {
  display: block;
}
