/* Ensure the map takes up the whole page */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Roboto', 'Segoe UI', Arial, sans-serif;
  }
  #map {
    height: 100%;
    width: 100%;
  }
  
  h2 {
    position: absolute;
    top: 20px;
    left: 60px; /* Changed from 20px to 60px to move it 40px to the right */
    z-index: 1000;
    color: #333;
    background-color: rgba(255, 255, 255, 0.8);
    padding: 8px 15px;
    border-radius: 4px;
    margin: 0;
    font-size: 18px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  }
  
  .info-button {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background-color: white;
    color: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: all 0.2s ease;
  }
  
  .info-button:hover {
    background-color: #4285f4;
    color: white;
  }
  
  /* Style for the controls box overlaying the map */
  .controls {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    background: white;
    padding: 16px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-family: inherit;
    display: flex;
    align-items: center;
    gap: 12px;
  }
  
  .controls label {
    font-size: 14px;
    font-weight: 500;
    color: #555;
  }
  
  .controls input[type="text"] {
    width: 280px;
    padding: 10px 14px;
    font-size: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
  }
  
  .controls input[type="text"]:focus {
    outline: none;
    border-color: #4285f4;
    box-shadow: 0 0 0 2px rgba(66, 133, 244, 0.25);
  }
  
  .controls button {
    padding: 10px 16px;
    font-size: 15px;
    background-color: #4285f4;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
  }
  
  .controls button:hover {
    background-color: #3367d6;
  }
  
  .controls button:active {
    background-color: #2a56c6;
  }
  
  /* Responsive adjustments */
  @media (max-width: 700px) {
    .controls {
      flex-direction: column;
      width: calc(100% - 40px);
      max-width: 400px;
      gap: 10px;
      align-items: flex-start;
      /* Add box-sizing here too, just for consistency */
      box-sizing: border-box; 
    }
    
    .controls input[type="text"] {
      width: 100%;
      /* This is the magic line that fixes the overflow */
      box-sizing: border-box; 
    }
    
    h2 {
      top: auto;
      bottom: 20px;
      left: 20px;
      right: auto;
    }

    .info-button {
      top: auto;
      bottom: 20px;
      right: 20px;
      left: auto;
    }
  }

/* About modal styles */
.about-modal {
display: none;
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0,0,0,0.5);
z-index: 2000;
justify-content: center;
align-items: center;
}

.about-content {
background-color: white;
border-radius: 8px;
width: 90%;
max-width: 500px;
max-height: 80vh;
overflow-y: auto;
box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.about-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
border-bottom: 1px solid #eee;
}

.about-header h3 {
margin: 0;
color: #333;
font-size: 18px;
}

.close-button {
font-size: 28px;
font-weight: bold;
color: #777;
cursor: pointer;
transition: color 0.2s;
}

.close-button:hover {
color: #333;
}

.about-body {
padding: 20px;
color: #444;
line-height: 1.5;
}

.about-body p {
margin-top: 0;
margin-bottom: 16px;
}

.about-body ul {
margin-bottom: 16px;
padding-left: 20px;
}

.about-body li {
margin-bottom: 8px;
}