body {
      margin: 0;
      font-family: system-ui, sans-serif;
    }

    h1 {
      padding: 0.75rem 1rem;
      margin: 0;
      font-size: 1.1rem;
    }

    #map {
      height: 400px;
    }

    #location-detail {
      padding: 1rem;
      display: none;
    }
    
    .footnote {
      font-size: .8rem;
    }

    .detail-header {
      position: sticky;
      top: 0;
      background: #fff;
      padding-bottom: 0.5rem;
      z-index: 10;
      border-bottom: 1px solid #ddd;
    }

    #back-to-map {
      background: none;
      border: none;
      font-size: 1rem;
      padding: 0;
      margin-bottom: 0.25rem;
      cursor: pointer;
      color: #0077cc;
    }

    .stats {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1rem;
      margin: 1rem 0;
    }

    .stat {
      background: #f5f5f5;
      padding: 0.75rem;
      border-radius: 6px;
      text-align: center;
    }

    .stat strong {
      display: block;
      font-size: 1.4rem;
    }

    .chart {
      margin: 1.5rem 0;
    }


@media (min-width: 900px) {
  #map-container {
    position: relative;
    width: 100%;
    max-width: 100% /* adjust for heading */
    overflow:hidden;
  }

  #map {
    height: 700px;
  }

  #location-detail {
    display: none;
    position: absolute;
    top: 0;
    right: 0;
    width: 35%;
    height: 100%;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.15);
    overflow-y: auto;
    z-index: 500;
    box-sizing: border-box;
  }
    }


