* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  flex-direction: column;
}

.container {
  display: flex;
  flex-direction: row;
  width: 100%;
}

.map-container {
  display: flex;
  width: 100vw;
  margin-bottom: 100px;
}

#map {
  height: 550px;
  width: 100%;
  position: relative;
  display: flex;
  flex-direction: row-reverse;
}

.location.show {
  display: block;
  transform: translateX(0px);
}

.location {
  font-size: 14px;
  width: 450px;
  padding: 20px 30px;
  background: var(--color-blanco);
  min-height: 450px;
  text-align: center;
  margin-top: 10px;
  z-index: 1000;
  border-radius: 10px;
  transform: translateX(100%);
  transition: transform 1s ease-in-out;
}

.location__type {
  display: flex;
  justify-content: flex-end;
}

.location__type-span {
  padding: 5px 10px;
  font-weight: bold;
  font-size: 12px;
  color: var(--color-blanco);
  border-radius: 15px;
}

.location__image {
  width: 300px;
}

.location__info {
  text-align: left;
}

.location__info-title {
  font-size: 18px;
  margin-top: 0;
  text-align: start;
  color: var(--color-subtitulo);
  font-weight: bold;
  margin-bottom: 50px;
}

.location__info-address,
.location__info-schedule,
.location__info-phone {
  margin-bottom: 4px;
}

.location__back-button {
  margin-top: 60px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  font-weight: 400;
  color: var(--color-blanco);
  background-color: var(--color-azul);
}

.location__back-button:hover {
  background: var(--color-azul-hover);
}

#legend {
  width: 170px;
  font-size: 14px;
  position: absolute;
  bottom: 10px;
  left: 10px;
  background-color: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 5px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}
#legend h4 {
  margin-top: 0;
}

.color-box {
  width: 20px;
  height: 20px;
  display: inline-block;
  margin-right: 10px;
  border-radius: 50%;
}

.green {
  background-color: #28a745;
}
.orange {
  background-color: #fd7e14;
}
.blue {
  background-color: #2b688f;
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.legend-item:last-child {
  margin-bottom: 0;
}

.filtre {
  display: flex;
  flex-direction: column;
  margin: 50px auto;
  width: 100vw;
}

.filtre__container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  /* width: 100vw; */
  justify-content: center;
}

.filtre__departments {
  width: 270px;
  padding: 15px 20px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  color: var(--color-negro);
  background-color: var(--color-blanco);
  border: 1px solid var(--color-azul);
  outline: none;
  appearance: none;
  background-image: url(../assets/img/arrow.svg);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.filtre__title {
  text-align: center;
  margin-bottom: 10px;
}

.filtre__search {
  width: 300px;
  position: relative;
}

.filtre__search input {
  width: 100%;
  outline: none;
  border-radius: 5px;
  font-size: 16px;
  color: var(--color-negro);
  background-color: var(--color-blanco);
  border: 1px solid var(--color-azul);
}

.filtre__search #loc-dropdown {
  padding: 15px 35px 15px 20px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url(../assets/img/arrow.svg);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
}

.filtre__search #loc-search {
  padding: 10px 20px 10px 40px;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url(../assets/img/search.svg);
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 20px;
}

.filtre__search .filtre__selected-item {
  position: relative;
}

.filtre__search .filtre__selected-item,
.filtre__search .filtre__selected-item input {
  cursor: pointer;
}

.filtre__search .filtre__search-content {
  box-shadow: 0 5px 15px rgb(0 0 0 / 15%);
  border-radius: 5px;
  max-height: 270px;
  overflow: auto;
  position: absolute;
  z-index: 1001;
  display: none;
  background-color: var(--color-blanco);
  width: 100%;
}

.filtre__search.active .filtre__search-content {
  display: block;
}

.filtre__search .filtre__search-content .filtre__search-input {
  padding: 5px;
}

.filtre__search .filtre__search-content ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.filtre__search .filtre__search-content ul li {
  font-size: 14px;
  padding: 14px 20px;
  cursor: pointer;
}

.filtre__search .filtre__search-content ul li.hide {
  display: none;
}

.filtre__search .filtre__search-content ul li:hover {
  background-color: rgb(245 245 245);
}

.filtre__search .filtre__search-content ul li.active {
  background-color: var(--color-blanco-oscuro);
  color: var(--color-negro);
}

.filtre__button {
  padding: 15px 20px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
  border: 1px solid var(--color-azul);
}

.filtre__button--search {
  background-color: var(--color-azul);
  color: var(--color-blanco);
}

.filtre__button--search:hover {
  background-color: var(--color-azul-hover);
}

.filtre__button--network {
  color: var(--color-azul);
  background-color: var(--color-blanco);
}

.filtre__button--network:hover {
  color: var(--color-blanco);
  background-color: var(--color-azul);
}

/* Pantallas pequeñas (móviles) */
@media (max-width: 600px) {
  .filtre__container {
    flex-direction: row;
    padding: 10px;
    width: 100vw;
  }

  .filtre__departments {
    width: 100%;
  }

  .filtre__search {
    width: 100%;
  }

  .filtre__button {
    width: 100%;
  }

  .map-container {
    display: flex;
    flex-direction: column;
  }

  .location {
    position: static;
    transform: none;
    width: 100%;
    margin-top: 20px;
    display: none;
    margin: 0;
    margin-bottom: 40px;
  }

  .location.show {
    display: block;
  }
}
