/* Make the Leaflet layer control bigger for mobile */
.leaflet-control-layers {
    font-size: 18px;       /* bigger font */
    min-width: 200px;      /* wider control */
    max-height: 80vh;      /* scrollable if too tall */
    overflow-y: auto;      /* allow scrolling */
    padding: 10px;
}

/* Increase spacing between checkboxes */
.leaflet-control-layers label {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

/* Make checkboxes bigger */
.leaflet-control-layers input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 8px;
}

.map-controls {
  position: absolute;
  top: 10px;
  left: 100px;
  z-index: 1000;

  background: white;
  padding: 12px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);

  display: flex;
  gap: 8px;
  align-items: center;
}

/* Inputs */
.map-controls input {
  width: 120px;
  padding: 8px;
  font-size: 16px; /* prevents iOS zoom */
  border-radius: 6px;
  border: 1px solid #ccc;
}

/* Button */
.map-controls button {
  padding: 8px 14px;
  font-size: 16px;
  border: none;
  background: #2c7be5;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

.map-controls button:active {
  transform: scale(0.97);
}

/* 📱 MOBILE LAYOUT */
@media (max-width: 600px) {
  .map-controls {
    flex-direction: column;
    width: calc(100% - 20px);
  }

  .map-controls input,
  .map-controls button {
    width: 100%;
  }
}