/* === Base === */
html, body, #map {
  height: 100%;
  margin: 0;
  padding: 0;
}

.leaflet-bottom.leaflet-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* === Filter box (checkboxes) === */
.filter-box {
  position: absolute;
  bottom: 60px;
  left: 10px;
  background: white;
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  z-index: 999;
  font-family: sans-serif;
}

.filter-box-search {
  bottom: 140px;
}

.filter-box-search input {
  padding: 6px;
  width: 160px;
}

.filter-box-search button {
  padding: 6px 10px;
  margin-left: 4px;
}

/* === Count box (Buses / Trains) === */
.count-box {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: white;
  padding: 6px 12px;
  border-radius: 6px;
  box-shadow: 0 0 5px rgba(0,0,0,0.2);
  font-family: sans-serif;
  font-size: 14px;
  z-index: 999;
}

/* === Map title === */
.map-title {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  font-size: 34px;
  font-weight: bold;
  font-family: sans-serif;
  background: rgba(255, 255, 255, 0.95);
  padding: 10px 20px;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
  z-index: 999;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
  letter-spacing: 0.02em;
  color: #e99611;
}

.map-subtitle {
  font-size: 13px;
  font-weight: normal;
  color: #555;
  opacity: 0.9;
}

.map-subsubtitle {
  font-size: 12px;
  font-weight: normal;
  color: #333;
  opacity: 0.85;
}

/* === Map control buttons (Tracking + Move to CBD) === */
#mapControlButtons {
  position: absolute;
  bottom: 305px;
  left: 10px;
  z-index: 999;
  display: flex;
  gap: 8px;
  align-items: center;
}

#locateBtnWrapper,
#cbdBtnWrapper {
  flex-shrink: 0;
}

.locate-btn,
.cbd-btn {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.25);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 2px solid transparent;
}

.locate-btn {
  border-color: #c41e3a;
}

.cbd-btn {
  border-color: #1a5fb4;
}

.cbd-btn:hover {
  background-color: #fff;
  box-shadow: 0 4px 14px rgba(26, 95, 180, 0.35);
  transform: scale(1.05);
}

.cbd-btn:active {
  transform: scale(1);
}

.cbd-btn img {
  display: block;
  object-fit: contain;
}

/* === Stats box (vehicles stopping, running, etc.) === */
#highestSpeedBox {
  position: absolute;
  bottom: 200px;
  left: 10px;
  font-size: 14px;
  font-family: sans-serif;
  color: #5904f6;
  z-index: 999;
  text-align: left;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 12px;
  border-radius: 8px;
  box-shadow: 0 0 5px rgba(0,0,0,0.15);
}

/* === Project & Members box === */
#projectMembersBox {
  position: absolute;
  bottom: 10px;
  right: 10px;
  font-size: 12px;
  font-family: sans-serif;
  color: #333;
  background: transparent;
  padding: 8px 12px;
  z-index: 999;
  text-align: left;
  line-height: 1.4;
  max-width: 320px;
}

#projectMembersBox .project-title {
  text-align: center;
}

#projectMembersBox .project-title strong {
  color: #8b4513;
}

#projectMembersBox .members-label {
  margin-top: 6px;
  display: block;
}
