* {
  font-size: 18px;
}

a {
  color: blue;
  font-size: 14px;
  font-weight: 600;
}

body {
  margin: 0;
  padding: 0;
}

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

.map-title {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1000;
  background: white;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  font-weight: bold;
  font-size: .8rem;
}

.map-controls {
  position: absolute;
  top: 50px;
  left: 10px;
  z-index: 1000;
  background: white;
  padding: 5px 10px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  font-family: Arial, sans-serif;
  max-height: 80vh;
  overflow-y: auto;
  max-width: 150px;
}

.control-group {
  margin-bottom: 10px;
}

.control-label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  font-size: .75rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: #2196F3;
}

input:checked+.slider:before {
  transform: translateX(26px);
}

#location-select {
  width: 100%;
  font-size: .70rem;
  padding: 8px;
  margin-top: 10px;
  border-radius: 4px;
  border: 4px solid black;
}

.location-popup {
  width: 100%;
}

.search-container {
  margin-bottom: 15px;
}

.floating-controls {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 10px 20px;
  border-radius: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  gap: 20px;
  z-index: 1000;
  font-family: Arial, sans-serif;
  font-size: 0.75rem;
}

.floating-controls .control-group {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
}

.nav-logo img {
  width: 75px;
  height: 30px;
}

.navbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: white;
  padding: 1px 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
  height: 60px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
  font-size: 1rem;
  color: #2c3e50;
}

.nav-logo img {
  vertical-align: middle;
  border-style: none;
}

.nav-location-select {
  max-width: 250px;
}

#location-select {
  width: 100%;
  margin-top: 0;
  font-size: 0.85rem;
  padding: 6px 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: white;
  color: black;
}

#location-select option[value=""][disabled] {
  color: black;
}

#location-select:hover {
  border-color: #aaa;
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.2);
}

#location-select:focus {
  outline: none;
  border-color: #007bff;
  box-shadow: 0 0 3px rgba(0, 123, 255, 0.5);
}

#location-select option:checked {
  color: black;
  background-color: rgb(239, 239, 239);
  border: 2px solid black;
}

#location-select option:hover {
  background-color: white;
  color: black;
}

/* THIS AFFECTS THE TOOLTIPS STYLING */

.leaflet-popup-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 60vw !important;
  min-width: 300px !important;
  max-height: 40vh !important;
  overflow-y: scroll;
  font-size: 14px;
  margin: 20px 5px 0 0;
  padding: 0px 15px 20px 15px;
}

.location-description {
  width: 100%;
}

.leaflet-popup-content::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.leaflet-popup-content::-webkit-scrollbar-thumb {
  background-color: darkgray;
  border-radius: 10px;
}

.leaflet-popup-content::-webkit-scrollbar-track {
  border-radius: 10px;
  max-height: 90%;
  margin: 5px;
}

.leaflet-popup-content img {
  display: flex;
  max-width: 90%;
  max-height: 80%;
  border-radius: 4px;
  margin: 0;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}