
  html, body { margin:0; padding:0; height:100%; }
  #map { width:100%; height:100%;}
  .marker {
    width: 20px;
    height: 20px;
    background-color: #4285f4;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
    animation: pulse 2s infinite;
    position: relative;
  }
  
  .marker::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background-color: white;
    border-radius: 50%;
  }

  table.legend tr td.text {
      font-family: Consolas, monospace;
      font-size: 12px;
      width: 200px;
      vertical-align: middle;
      padding-left: 10px;
  }
  table.legend tr td.img {
      width: 101px;
      vertical-align: middle;
  }

  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
    }
    50% {
      box-shadow: 0 0 0 10px rgba(66, 133, 244, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
  }
  .maplibregl-ctrl-group button {
    width: 50px !important;
    height: 50px !important;
    font-size: 22px !important;
  }

  .maplibregl-ctrl-group {
    border-radius: 8px !important;
  }

  /* GPS Tracking Button */
  .tracking-control-wrapper {
    position: absolute;
    bottom: 165px;
    right: 0x;
    pointer-events: auto;
  }

  .maplibregl-ctrl-gps {
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
  }

  .maplibregl-ctrl-gps svg {
    fill: #ccc;
    transition: fill 0.2s;
  }

  .maplibregl-ctrl-gps:hover {
    background: rgba(255, 255, 255, 1);
  }

  .maplibregl-ctrl-gps.active svg {
    fill: #2196F3;
  }

  .maplibregl-ctrl-gps:hover svg {
    fill: #999;
  }

  .maplibregl-ctrl-gps.active:hover svg {
    fill: #1976D2;
  }
  #install-prompt {
    position: fixed;
    align: center;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: white;
    padding: 5px 5px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    z-index: 1000;
    display: none;
    white-space: nowrap;
    width: auto;
  }
  #install-prompt button {
    margin-left: 2px;
    margin-right: 2px;
    padding: 8px 8px;
    max-width: 180px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  #install-prompt .install-btn {
    background: #2196F3;
    color: white;
    margin-bottom: 2px;
  }
  #install-prompt .dismiss-btn {
    background: #ddd;
    margin-bottom: 2px;
  }



/* Hamburger menu styles */
.hamburger-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.9);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.hamburger-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: #333;
  transition: all 0.3s;
}

.hamburger-btn:hover {
  background: rgba(255,255,255,1);
}

.menu-panel {
  position: absolute;
  top: 60px;
  left: 10px;
  background: rgba(255,255,255,0.95);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 2;
  display: none;
  min-width: 200px;
}

.menu-panel.show {
  display: block;
}

.menu-item {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: Consolas, monospace;
  font-size: 12px;
  transition: background 0.2s;
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item:hover {
  background: rgba(0,0,0,0.05);
}

.menu-item.toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.toggle-status {
  font-weight: bold;
  color: #22c55e;
}

.toggle-status.off {
  color: #ef4444;
}

.road-popup {
  font-family: Consolas, monospace;
  font-size: 12px;
  line-height: 14px;
}

.road-popup strong {
  font-family: Consolas, monospace;
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 6px;
}

.footer {
  font-family: Consolas, monospace;
  line-height: 13px;
  margin-top: 10px;
  font-size: 10px;
  font-style: italic;
}

/* Search container styles */
#search-container {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255,255,255,0.95);
  border-radius: 4px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  z-index: 3;
  display: none;
  min-width: 300px;
  max-width: 400px;
}

#search-header {
  display: flex;
  align-items: center;
  padding: 10px;
  border-bottom: 1px solid #e5e7eb;
}

#search-input {
  flex: 1;
  border: none;
  outline: none;
  font-family: Consolas, monospace;
  font-size: 14px;
  padding: 5px;
  background: transparent;
}

#search-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 20px;
  color: #666;
  padding: 0 5px;
  line-height: 1;
}

#search-close-btn:hover {
  color: #333;
}

#search-results {
  display: none;
  max-height: 300px;
  overflow-y: auto;
}

.search-result-item {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e7eb;
  cursor: pointer;
  font-family: Consolas, monospace;
  font-size: 12px;
  transition: background 0.2s;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: rgba(33, 150, 243, 0.1);
}

.search-result-item.selected {
  background: rgba(33, 150, 243, 0.2);
}

.search-result-item.no-results {
  cursor: default;
  color: #999;
  text-align: center;
}

.search-result-item.no-results:hover {
  background: transparent;
}

/* Legend popup styles */
.legend-popup .maplibregl-popup-content {
  max-height: 80vh;
  overflow-y: auto;
  padding: 15px;
}

.legend-popup .maplibregl-popup-tip {
  display: none;
}