body, html {
    margin: 0;
    padding: 0;
    height: 100%;
  }
  #header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    font-family: sans-serif;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    box-sizing: border-box;
  }
  #title {
    font-weight: bold;
    font-size: 1.2rem;
  }
  #controls {
    display: flex;
    gap: 8px;
    align-items: center;
  }
  .header-btn {
    background: #007BFF;
    color: white;
    border: none;
    padding: 6px 12px;
    font-size: 0.9rem;
    border-radius: 4px;
    cursor: pointer;
  }
  .header-btn:hover {
    background: #0056b3;
  }
  #map {
    position: absolute;
    top: 45px;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }
  #legend {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    z-index: 1000;
    font-family: sans-serif;
  }
  #legend input[type="checkbox"] {
    margin-right: 6px;
  }
  #introPopup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
  }
  #popupContent {
    background: white;
    padding: 20px 30px;
    max-width: 90%;
    width: 400px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
    font-family: sans-serif;
    margin: 0 16px;
  }
  #popupContent h2 {
    margin-top: 0;
  }
  .popup-btn {
    background: #007BFF;
    color: white;
    border: none;
    padding: 8px 16px;
    font-size: 1rem;
    border-radius: 4px;
    margin: 10px 6px 0 6px;
    cursor: pointer;
  }
  .popup-btn:hover {
    background: #0056b3;
  }
  #slideout {
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background: white;
    box-shadow: -2px 0 5px rgba(0,0,0,0.3);
    padding: 16px;
    box-sizing: border-box;
    z-index: 1001;
    transition: right 0.3s ease;
    font-family: sans-serif;
  }
  #slideout.open {
    right: 0;
  }
  #overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
  }
  #overlay.show {
    display: block;
  }
  .nav-btn {
    display: block;
    background: #007BFF;
    color: white;
    text-align: center;
    padding: 8px;
    border-radius: 4px;
    margin-top: 8px;
    text-decoration: none;
  }
  .nav-btn:hover {
    background: #0056b3;
  }
  .close-slideout {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #ccc;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    font-weight: bold;
  }
  .location-photo {
    width: 100%;
    border-radius: 4px;
    margin-bottom: 8px;
  }
  .no-photo-msg {
    font-style: italic;
    margin-bottom: 8px;
  }