html, #map {
  height: 100%;
  margin: 0;
  font-family: 'Noto Sans Thai', sans-serif;
}

/* Add these styles */
body {
    padding-top: 5rem; /* Height of navigation bar */
}

#container {
    display: flex;
    height: calc(100vh - 5rem); /* Subtract nav height */
    width: 100vw;
    position: relative;
    margin-top: 0; /* Remove margin since we're using padding-top on body */
}

/* Make sure the map container is positioned correctly */
#map {
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Navigation styles */
nav.hidden.md\:flex {
    display: flex !important;
}

@media (max-width: 768px) {
    nav.hidden.md\:flex {
        display: none !important;
    }
}

/* Update navigation z-indices */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

#nav-mobile-menu {
  z-index: 100; /* Higher than map and nav */
}

#side-popup {
  margin-left: 1rem;
  margin-right: 1rem;
  width: 50%;
  overflow-y: auto;
}

.hidden {
  display: none;
}

.custom-popup {
  text-align: center;
  font-weight: bold;
}

.aqi-marker {
  background: transparent;
  border: none;
}

.loading {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
}

fieldset {
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 10px;
  margin: 10px 0;
}

fieldset label {
  display: block;
  margin: 5px 0;
}

#PopupBtn {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 5px;
  cursor: pointer;
}

#PopupBtn:hover {
  background-color: #0056b3;
}

#widget-container {
  /* margin-top: 2rem; */
  padding-bottom: 1rem;
  /* padding-left: 1rem; */
  /* padding-top: 1rem; */
}
