html, body {
  margin: 0;
  padding: 0;
  overflow: hidden;
  height: 100%;
  width: 100%;
}

body {
  font-family: sans-serif;
  background: #2a2829;
  text-align: center;
  padding: 20px;
}

.brand-buttons {
  display: flex;
  flex-wrap: wrap;             /* Allow wrapping on smaller screens */
  justify-content: center;
  align-items: center;
  gap: 20px;                   /* Space between logos */
  max-width: 1000px;           /* Match the map’s max-width */
  margin: 0 auto 20px auto;
  padding: 0 1rem;
}

.brand-buttons img {
  flex: 1 1 20%;               /* Each logo takes ~20% of row, grows/shrinks */
  max-width: 200px;            /* Prevents oversized logos */
  height: auto;
  object-fit: contain;
  margin: 10px;
  cursor: pointer;
  transition: transform 0.2s;
  vertical-align: middle;
}

.brand-buttons img:hover {
  transform: scale(1.05);
}

.map-container {
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1rem;
}

.highlight-woodmode {
  fill: #006892 !important;
  transition: fill 0.3s ease;
}

.highlight-stoll {
  fill: #a51f44 !important;
  transition: fill 0.3s ease;
}

.highlight-bridgewood {
  fill: #08877b !important;
  transition: fill 0.3s ease;
}

.highlight-danver {
  fill: #d9df2d !important;
  transition: fill 0.3s ease;
}

#usamap {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 768px) {
  .map-container {
    padding: 0 1rem;
  }

  .brand-buttons img {
    flex: 1 1 40%;             /* On smaller screens, two per row */
    max-width: 150px;
  }
}
