/*!
 * ol-geocoder - v4.3.4
 * A geocoder extension compatible with OpenLayers v6.x to v9.0
 * https://github.com/Dominique92/ol-geocoder
 * Built: 15/03/2024 09:40:16
 */
 /* ============================== */
/*        Estilos Gerais          */
/* ============================== */

/* Ajustes para dispositivos touch */
.ol-touch .ol-control.gcd-gl-control button {
  font-size: 1.14em;
}
.ol-touch .ol-geocoder.gcd-gl-container {
  font-size: 1.1em;
}

/* ============================== */
/*       Contêiner GL (Ícone)     */
/* ============================== */

.ol-geocoder.gcd-gl-container {
  box-sizing: border-box;
  font-size: 5.9em;
  left: 5.5em;
  position: absolute;
  top: 4.875em;
}

/* Herdar box-sizing para todos os elementos internos */
.ol-geocoder.gcd-gl-container *,
.ol-geocoder.gcd-gl-container :after,
.ol-geocoder.gcd-gl-container :before {
  box-sizing: inherit;
}

/* ------------------------------ */
/*       Controles GL           */
/* ------------------------------ */

/* Controle principal (minimizado) */
.ol-geocoder .gcd-gl-control {
  height: 2.1875em;
  width: 2.1875em;
  overflow: hidden;
  transition: width 0.2s, height 0.2s;
}

/* Controle expandido */
.ol-geocoder .gcd-gl-expanded {
  height: 2.1875em;
  width: 15.625em;
}

/* Campo de entrada do geocoder */
.ol-geocoder .gcd-gl-input {
  background-color: #fff;
  border: 1px solid #ccc;
  color: #222;
  font-family: inherit;
  font-size: 0.875em;
  position: absolute;
  top: 0.25em;
  left: 2.5em;
  padding: 5px;
  width: 14.84375em;
  z-index: 99;
}
.ol-geocoder .gcd-gl-input:focus {
  border: none;
  box-shadow: inset 0 0 0 1px #4d90fe, inset 0 0 5px #4d90fe;
  outline: none;
}

/* Botão de busca (ícone) */
.ol-geocoder .gcd-gl-search {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  line-height: 1.4;
  width: 1.5625em;
  z-index: 100;
}
.ol-geocoder .gcd-gl-search:after {
  content: "\2386";
  color: #333;
  cursor: pointer;
  display: inline-block;
  font-size: 1.5em;
}

/* Botão de ícone (lupa) */
.ol-geocoder .gcd-gl-btn {
  cursor: pointer;
  position: absolute;
  top: 2.125pxm;
  left: 0.125em;
  height: 1.5625em;
  width: 1.5625em;
}
.ol-geocoder .gcd-gl-btn:after {
  content: "\1F50D";
}

/* Lista de resultados */
.ol-geocoder ul.gcd-gl-result {
  background-color: #fff;
  border: none;
  border-radius: 4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 2em;
  top: 2.1875em;
  width: 16.25em;
  max-height: 18.75em;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  transition: max-height 0.3s ease-in;
}
.ol-geocoder ul.gcd-gl-result:empty {
  display: none;
}
.ol-geocoder ul.gcd-gl-result > li {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid #eee;
  line-height: 0.875rem;
}
.ol-geocoder ul.gcd-gl-result > li > a {
  display: block;
  padding: 3px 5px;
  text-decoration: none;
}
.ol-geocoder ul.gcd-gl-result > li > a:hover {
  background-color: #d4d4d4;
}
.ol-geocoder ul.gcd-gl-result > li:nth-child(odd) {
  background-color: #e0ffe0;
}

/* ============================== */
/*      Contêiner TXT (Texto)     */
/* ============================== */

.ol-geocoder.gcd-txt-container {
  box-sizing: border-box;
  height: 4.375em;
  width: 25em;
  position: absolute;
  left: calc(50% - 12.5em);
  top: 0.5em;
}

/* Herdar box-sizing para todos os elementos internos */
.ol-geocoder.gcd-txt-container *,
.ol-geocoder.gcd-txt-container :after,
.ol-geocoder.gcd-txt-container :before {
  box-sizing: inherit;
}

/* ------------------------------ */
/*       Controles TXT          */
/* ------------------------------ */

/* Controle principal */
.ol-geocoder .gcd-txt-control {
  background-color: #fff;
  border: 1px solid #ccc;
  height: 4.375em;
  overflow: hidden;
  position: relative;
  width: 100%;
}

/* Rótulo centralizado */
.ol-geocoder .gcd-txt-label {
  display: inline-block;
  text-align: center;
  width: 100%;
}

/* Campo de entrada de texto */
.ol-geocoder .gcd-txt-input {
  background-color: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.875em;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  padding: 5px 30px 5px 40px;
  text-indent: 6px;
  width: 100%;
  z-index: 99;
}
.ol-geocoder .gcd-txt-input:focus {
  box-shadow: inset 0 0 0 1px #4d90fe, inset 0 0 6px #4d90fe;
  outline: none;
}

/* Botão de busca (ícone) no modo TXT */
.ol-geocoder .gcd-txt-search {
  background-color: transparent;
  border: none;
  cursor: pointer;
  display: inline-block;
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  line-height: 100%;
  vertical-align: middle;
  width: 2.5em;
  z-index: 100;
}
.ol-geocoder .gcd-txt-search:after {
  content: "\2386";
  color: #333;
  cursor: pointer;
  display: inline-block;
  font-size: 2em;
}

/* Ícone da lupa (glass) */
.ol-geocoder .gcd-txt-glass {
  display: inline-block;
  position: absolute;
  top: 26px;
  left: 9px;
  height: 100%;
  width: 2.5em;
  z-index: 100;
}
.ol-geocoder .gcd-txt-glass:after {
  content: "\1F50D";
}

/* Lista de resultados para o modo TXT */
.ol-geocoder ul.gcd-txt-result {
  background-color: #fff;
  border: none;
  border-radius: 4px;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  box-shadow: 0 1px 7px rgba(0, 0, 0, 0.8);
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 0;
  top: 4.575em;
  width: 25em;
  max-height: 18.75em;
  overflow-x: hidden;
  overflow-y: auto;
  white-space: normal;
  transition: max-height 0.3s ease-in;
}
.ol-geocoder ul.gcd-txt-result:empty {
  display: none;
}
.ol-geocoder ul.gcd-txt-result > li {
  width: 100%;
  overflow: hidden;
  padding: 0;
  border-bottom: 1px solid #eee;
  line-height: 0.875rem;
}
.ol-geocoder ul.gcd-txt-result > li > a {
  display: block;
  padding: 3px 5px;
  text-decoration: none;
}
.ol-geocoder ul.gcd-txt-result > li > a:hover {
  background-color: #d4d4d4;
}
.ol-geocoder ul.gcd-txt-result > li:nth-child(odd) {
  background-color: #e0ffe0;
}

/* ============================== */
/*        Classes Utilitárias     */
/* ============================== */

/* Elementos ocultos */
.ol-geocoder .gcd-hidden {
  opacity: 0;
  visibility: hidden;
}

/* Rotação animada (ex.: carregando) */
.ol-geocoder .gcd-pseudo-rotate:after {
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(1turn);
  }
}

/* ============================== */
/*      Estilos de Endereço       */
/* ============================== */

.gcd-address,
.gcd-road {
  color: #333;
  font-size: 0.875em;
  font-weight: 500;
}

.gcd-city {
  font-weight: 400;
}

.gcd-city,
.gcd-country {
  color: #333;
  font-size: 0.75em;
}

.gcd-country {
  font-weight: lighter;
}
