/* styles.css */
body, html {
  margin: 0;
  height: 100%;
}

#map {
  height: 100vh;
  width: 100vw;
}

.custom-control-container {
  background: transparent;
  padding: 2px;
  border: none;
  box-shadow: none;
}

.custom-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 6px 0;
  padding: 0;
  background-color: #1d72b8;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.custom-button:hover {
  background-color: #145a86;
}

.custom-button img {
  max-width: 80%;
  max-height: 80%;
}

#legend-popup {
  position: absolute;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
}

.legend-line {
  display: inline-block;
  width: 20px;
  height: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.legend-line.blue {
  background-color: blue;
}

.legend-line.green {
  background-color: green;
}

.legend-icon {
  width: 20px;
  vertical-align: middle;
  margin-right: 8px;
}
.custom-dropdown {
  position: absolute;
  top: 40px;
  left: 40px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  padding: 6px;
  min-width: 180px;
}

.dropdown-item {
  padding: 6px 10px;
  cursor: pointer;
}

.dropdown-item:hover {
  background-color: #f0f0f0;
}

.dropdown-item.active {
  font-weight: bold;
  color: #1d72b8;
}

.hidden {
  display: none;
}

.divvy-icon-content {
  background: rgba(255, 255, 255, 0.85);
  border-radius: 6px;
  padding: 1px 4px;
  display: inline-block;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  white-space: nowrap;          /* keeps the text on one line */
  width: auto;                  /* allow width to fit content */
  max-width: none;              /* prevents it from constraining long text */
}
.user-location-icon {
  background: none;
  border: none;
}

.user-direction-container {
  position: relative;
  width: 30px;
  height: 30px;
}

.user-dot {
  position: absolute;
  top: 7px;
  left: 7px;
  width: 16px;
  height: 16px;
  background: blue;
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  z-index: 2;
  animation: pulse 3s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 1;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.under-construction-pulse {
  animation: lane-pulse 3s infinite;
}
@keyframes lane-pulse {
  0% { opacity: 1; }
  50% { opacity: 0.25; }
  100% { opacity: 1; }
}
