body {
  margin: 0;
  padding: 10px;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f0f2f5;
  color: #333;
}
h2 {
  text-align: center;
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.search-container {
  display: flex;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 0 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}
input#address {
  flex: 1;
  font-size: 1rem;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #888;
  transition: border-color 0.3s;
  box-sizing: border-box;
  min-width: 200px;
}
input#address:focus {
  border-color: #3f51b5;
  outline: none;
}
button, input[type="file"] {
  background-color: #3f51b5;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  padding: 12px 18px;
  cursor: pointer;
  transition: background-color 0.3s;
  min-width: 44px;
}
button:hover:not(:disabled) {
  background-color: #2c3d9a;
}
button:disabled {
  background-color: #999;
  cursor: not-allowed;
}
#btn-voice {
  font-size: 1.3rem;
  line-height: 1;
  padding: 10px;
  min-width: 44px;
}
#toggle-map-btn {
  background-color: #009688;
}
#toggle-map-btn:hover {
  background-color: #00796b;
}
#resultado {
  max-width: 100%;
  margin: 0 auto 12px;
  padding: 10px 16px;
  background: #e3eafc;
  border-left: 5px solid #3f51b5;
  font-weight: 600;
  border-radius: 0 8px 8px 0;
  min-height: 36px;
  white-space: pre-wrap;
  font-size: 0.95rem;
}
#map {
  width: 100%;
  height: 350px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.1);
  margin: 0 auto 14px;
  transition: max-height 0.3s ease;
  overflow: hidden;
}
#listado-zonas {
  max-width: 800px;
  margin: 0 auto 30px;
  background: white;
  border-radius: 12px;
  padding: 15px 18px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 0.15);
  max-height: 400px;
  overflow-y: auto;
  font-size: 0.95rem;
}
#listado-zonas h3 {
  margin: 0 0 10px;
  font-weight: 700;
  color: #3f51b5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 1.1rem;
}
#listado-zonas h3 select, #listado-zonas h3 button {
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 6px;
}
#listado-zonas ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
#listado-zonas li {
  display: flex;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #eee;
  min-height: 40px;
}
#listado-zonas li span {
  flex-grow: 1;
  padding: 6px 8px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s;
  min-width: 0;
  word-break: break-word;
}
#listado-zonas li span:focus {
  border-color: #3f51b5;
  background-color: #f0f4ff;
  outline: none;
}
#listado-zonas li button {
  margin-left: 12px;
  background-color: #e53935;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 12px;
  font-weight: 600;
  cursor: pointer;
  min-width: 80px;
}
#listado-zonas li button:hover {
  background-color: #b71c1c;
}
@media (max-width: 600px) {
  body { padding: 1vw; }
  h2 { font-size: 1.1rem; text-align: left; }
  .search-container { flex-direction: column; gap: 12px; }
  input#address, button, input[type="file"] { width: 100%; box-sizing: border-box; }
  #map { height: 200px; }
  #listado-zonas { max-height: 300px; padding: 10px; }
  #listado-zonas h3 { flex-direction: column; gap: 8px; text-align: center; }
}
