.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #eba117;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  box-sizing: border-box;
  animation: rotation 1s linear infinite;
}

@keyframes rotation {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.search-container {
  background: rgba(8, 8, 8, 0.05);
  padding: 20px;
  border-radius: 8px;
  margin: 20px auto;
  max-width: 800px;
}

.search-heading {
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.search-description {
  color: #666;
  text-align: center;
  margin-bottom: 20px;
}

#searchForm {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}
.search-container #searchForm {
  max-width: 400px;
  margin: 0 auto;
  position: relative;
}

.search-container #searchForm fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

#searchForm fieldset {
  border: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

/* Estilos específicos para o widget do Places API */
gmp-map-place-autocomplete-widget {
  flex-grow: 1;
  display: block !important;
  margin-right: 40px;
}

gmp-map-place-autocomplete-widget input {
  width: 100% !important;
  height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  background: white !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  font-family: inherit !important;
}
.search-container gmp-map-place-autocomplete-widget {
  flex-grow: 1;
  display: block !important;
  margin-right: 40px;
}

.search-container gmp-map-place-autocomplete-widget input {
  width: 100% !important;
  height: 38px !important;
  padding: 8px 12px !important;
  border: 1px solid #ddd !important;
  border-radius: 4px !important;
  font-size: 14px !important;
  background: white !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
  font-family: inherit !important;
}

.search-container gmp-map-place-autocomplete-widget input::placeholder {
  color: #666 !important;
  opacity: 0.8 !important;
}

.search-container gmp-map-place-autocomplete-widget input:focus {
  border-color: #eba117 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(235, 161, 23, 0.2) !important;
}

gmp-map-place-autocomplete-widget input::placeholder {
  color: #666 !important;
  opacity: 0.8 !important;
}

gmp-map-place-autocomplete-widget input:focus {
  border-color: #eba117 !important;
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(235, 161, 23, 0.2) !important;
}

/* Estilo para o input padrão usado agora */
#searchTextField {
  width: 100%;
  height: 38px;
  padding: 8px 44px 8px 12px; /* espaço à direita para o ícone */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-family: inherit;
  box-sizing: border-box;
}
.search-container #searchTextField {
  width: 100%;
  height: 48px;
  padding: 8px 44px 8px 12px; /* espaço à direita para o ícone */
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  background: rgba(32, 32, 32, 0.8);
  padding-left: 64px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  font-family: inherit;
  box-sizing: border-box;
}

.search-container #searchTextField:focus {
  border-color: #eba117;
  outline: none;
  box-shadow: 0 0 0 2px rgba(235, 161, 23, 0.12);
}

#searchTextField:focus {
  border-color: #eba117;
  outline: none;
  box-shadow: 0 0 0 2px rgba(235, 161, 23, 0.12);
}

/* Estilo do botão de busca */
.search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}
.search-container .search-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.3s;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.search-container .search-button:hover {
  opacity: 0.7;
}

.search-container .search-button img {
  width: 20px;
  height: 20px;
  display: block;
}

.search-button:hover {
  opacity: 0.7;
}

.search-button img {
  width: 20px;
  height: 20px;
  display: block;
}

#searchResults {
  max-width: 600px;
  margin: 20px auto 0;
}

#nearestChurches {
  list-style: none;
  padding: 0;
}
.search-container #searchResults {
  max-width: 600px;
  margin: 20px auto 0;
}

.search-container #nearestChurches {
  list-style: none;
  padding: 0;
}

.search-container #nearestChurches li {
  padding: 15px;
  margin-bottom: 10px;
  background: rgba(32, 32, 32, 0.8);
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.search-container #nearestChurches li strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
}

.search-container #nearestChurches li .church-distance {
  color: #dddbdb;
  font-size: 0.9em;
  display: block;
  margin-bottom: 10px;
}

#nearestChurches li {
  padding: 15px;
  margin-bottom: 10px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

#nearestChurches li strong {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

#nearestChurches li .church-distance {
  color: #666;
  font-size: 0.9em;
  display: block;
  margin-bottom: 10px;
}

/* Responsividade */
@media (max-width: 600px) {
  .search-container {
    padding: 15px;
    margin: 10px;
  }

  #searchForm {
    flex-direction: column;
  }

  .search-button {
    width: 100%;
    margin-top: 10px;
  }
  .search-container #searchForm {
      flex-direction: column;
  }

    .search-container .search-button {
      width: 100%;
      margin-top: 10px;
      position: static;
      transform: none;
    }
}