/* Set the size of the div element that contains the map */
body {
  height: 100%;
  overflow: hidden;
}

.body-container {
  display: flex;
  height: 100vh;
}

.mapa-container {
  margin-top: 15px;
  flex: 1 1 45%;
}
#mapa {
  width: 100%;
  height: 90%;
  /* padding-bottom: 50%; */
}

#lista-container {
  height: 90%;
  overflow-y: scroll;
  padding: 10px;
  flex: 1 1 45%;
  display: flex;
  flex-flow: column;
  font-family: Arial, Helvetica, sans-serif;
}

.item-lista {
  border: 1px solid #ed2b37;
  border-radius: 10px;
  margin: 5px;
  padding: 10px 20px 10px 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  color: #ed2b37;
  font-weight: bold;
}

.item-lista:hover {
  background-color: #ed2b37;
  color: #fff;
}

.item-lista img {
  height: 2em;
  float: right;
}

.item-lista span {
  max-width: calc(100% - 52px);
}

.desplegable-lista {
  margin: 10px;
  margin-left: 35px;
  margin-bottom: 25px;
  display: none;
}

.visible {
  display: block;
}

.desplegable-lista p {
  border: 1px solid #ed2b37;
  border-radius: 10px;
  padding: 10px;
  color: #ed2b37;
}

.desplegable-lista a {
  border: 1px solid #ed2b37;
  border-radius: 10px;
  padding: 10px;
  margin: 10px 10px 10px 0;
  text-decoration: none;
  color: #ed2b37;
  font-weight: bold;
}

.desplegable-lista a:hover {
  background-color: #ed2b37;
  color: #fff;
}

.select-container {
  color: #ed2b37;
  font-weight: bold;
}

.select-container label {
  padding-left: 10px;
}

/* Select custom */

*,
*::before,
*::after {
  box-sizing: border-box;
}

select {
  /* appearance: none; */
  background-color: transparent;
  border: none;
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  outline: none;
  color: #333;
}

select::-ms-expand {
  display: none;
}

:root {
  --select-border: #777;
  --select-focus: blue;
  --select-arrow: var(--select-border);
}

.select {
  width: 100%;
  min-width: 15ch;
  max-width: 30ch;
  border: 1px solid var(--select-border);
  border-radius: 0.25em;
  padding: 0.25em 0.5em;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1.1;
  background-color: #fff;
  background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
  display: grid;
  grid-template-areas: "select";
  align-items: center;
  position: relative;
  margin: 10px 5px;
}

.select::after {
  content: "";
  width: 0.8em;
  height: 0.5em;
  background-color: var(--select-arrow);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
  justify-self: end;
}

select,
.select:after {
  grid-area: select;
}

select:focus + .focus {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--select-focus);
  border-radius: inherit;
}

#direccion {
  font-size: 1.1rem;
  border-radius: 0.25em;
  border: 1px #777 solid;
  padding: 0.25em 0.5em;
  margin: 10px 5px;
  width: 100%;
  min-width: 15ch;
  max-width: 30ch;
}

#direccion-container {
  display: none;
  color: #ed2b37;
  font-weight: bold;
}

#direccion:focus {
  outline: none !important;
  border: 2px solid #777;
}
@media (max-width: 400px) {
  .visible {
    display: flex;
    flex-flow: column;
  }
}
@media (max-width: 700px) {
  .body-container {
    flex-flow: column;
  }

  .lista-container {
    order: 1;
  }

  .mapa-container {
    order: 2;
  }
}
