.result {
  padding: 1rem;
  margin: 0;
  font-weight: bold;
}

#total {
  color: orange;
  font-size: 2rem;
  padding: 0 0.5rem;
}

.content {
  display: flex;
  position: relative;
  height: 700px;
  margin-bottom: 70px;
}

.content .filter {
  position: absolute;
  top: 10px;
  left: 1%;
  width: 330px;
  background-color: white;
  border-radius: 6px;
  z-index: 3;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.1);
}

@media only screen and (max-width: 600px) {
  .content {
    height: 65vh;
  }
  .content .filter {
    width: 230px;
    max-height: calc(100% - 26px);
    overflow-y: scroll;
  }
}

.content .filter .filter-title {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  text-align: center;
  font-weight: bold;
}
.content .filter .filter-title::after {
  content: "";
  width: 30px;
  height: 15px;
  position: absolute;
  right: 25px;
  background: url(icon_hbg.svg) no-repeat center / contain;
}
.content .filter .filter-group {
  display: none;
  padding: 0 1rem 20px;
}
.content .filter .filter-group hr {
  margin: 0;
  background: #ccc;
}
.content .filter .filter-group p {
  margin: 0 0 10px 0;
  font-weight: bold;
}
.content .filter .filter-group .filter-select {
  position: relative;
}
.content .filter .filter-group .filter-select::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-right: 9px solid transparent;
  border-left: 9px solid transparent;
  border-top: 16px solid #333333;
  border-bottom: 0;
  pointer-events: none;
}
.content .filter .filter-group .filter-select select {
  border: 1px solid #ccc;
  width: 100%;
  height: 100%;
  padding: 10px;
  border-radius: 4px;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
}
.content .filter .filter-group .filter-type {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
}
.content .filter .filter-group .filter-type .filter-type-box {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  cursor: pointer;
}
.content .filter .filter-group .filter-type .filter-type-box .filter-type-img {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 80px;
  background-color: #f8f7f6;
  border-radius: 4px;
}
/* .content
  .filter
  .filter-group
  .filter-type
  .filter-type-box.active
  .filter-type-img {
  background-color: orange;
} */
.content .filter .filter-group .filter-type .filter-type-box.active::before,
.content
  .filter
  .filter-group
  .filter-gender
  .filter-gender-box.active::before {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 18px;
  background-color: orange;
}
.content .filter .filter-group .filter-type .filter-type-box.active::after,
.content .filter .filter-group .filter-gender .filter-gender-box.active::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 7px;
  height: 3px;
  border-left: 3px solid #fff;
  border-bottom: 3px solid #fff;
  transform: rotate(-45deg);
}
.content
  .filter
  .filter-group
  .filter-type
  .filter-type-box
  .filter-type-img
  img {
  margin: 0 auto;
}
.content .filter .filter-group .filter-check {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
}
.content .filter .filter-group .filter-check li {
  width: calc(50% - 10px);
  display: flex;
  align-items: center;
  gap: 5px;
}
.content .filter .filter-group .filter-check input,
.content .filter .filter-group .filter-check label {
  cursor: pointer;
}
.content .filter .filter-group .filter-check input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  width: 20px;
  height: 20px;
  border: 1px solid #ccc;
  border-radius: 4px;
  vertical-align: -5px;
}
.content .filter .filter-group .filter-check input[type="checkbox"]:checked {
  background: #333;
  border: none;
}
.content
  .filter
  .filter-group
  .filter-check
  input[type="checkbox"]:checked:before {
  position: absolute;
  top: 2px;
  left: 7px;
  transform: rotate(50deg);
  width: 5px;
  height: 10px;
  border-right: 3px solid #fff;
  border-bottom: 3px solid #fff;
  content: "";
}
.content .filter .filter-group .filter-gender {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(3, 1fr);
}
.content .filter .filter-group .filter-gender .filter-gender-box {
  position: relative;
  display: flex;
  flex-direction: column;
  text-align: center;
  cursor: pointer;
}
.content .filter .filter-group .filter-gender img {
  width: 100%;
  margin: 0 auto;
}

#map {
  width: 100%;
  height: 100%;
}

.category {
  bottom: 1rem;
  left: 1%;
  position: absolute;
  z-index: 2;
  display: flex;
  gap: 1rem;
  transition: 0.4s;
}
.category.move {
  left: calc(330px + 2%);
}
.category .category-card {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 140px;
  padding: 0.5rem;
  background-color: white;
  border: 2px solid;
  border-radius: 0.5rem;
  cursor: pointer;
  font-size: 1rem;
  text-decoration: none;
}
.category .category-card.wifi {
  color: #12afbb;
  border-color: #12afbb;
}
.category .category-card.wifi.active {
  color: white;
  background-color: #12afbb;
}
.category .category-card.toilet {
  color: #e58312;
  border-color: #e58312;
}
.category .category-card.toilet.active {
  color: white;
  background-color: #e58312;
}
.category .category-card.event {
  position: relative;
  color: #f8cf2a;
  border-color: #f8cf2a;
}
.category .category-card.event.active {
  color: white;
  background-color: #f8cf2a;
}

.category .category-card img {
  padding: 0.5rem 2rem;
  border-radius: 0.25rem;
  height: 50px;
}
.category .category-card.active img {
  background-color: white;
}
.category .category-card span {
  font-weight: 700;
  text-align: center;
}

.category-event {
  flex-wrap: wrap;
  width: 452px;
  /* width: 250px; */
  /* height: 130px; */
  align-items: center;
  /* bottom: 8rem; */
  position: absolute;
  top: -125px;
  left: 0 !important;
  right: 0 !important;
  gap: 10px;
  /* margin: 0 auto; */
  margin: 0 0 0 auto;
  padding: 10px;
  background-color: white;
  border: 2px solid;
  border-radius: 0.5rem;
  border-color: #f8cf2a;
}
.category-event .category-event-card {
  display: flex;
  justify-content: center;
  align-items: center;
  width: calc((100% - 30px) / 4);
  height: 40px;
  color: #f8cf2a;
  border: 2px solid;
  border-radius: 0.5rem;
  border-color: #f8cf2a;
  text-decoration: none;
  word-break: keep-all;
}
.category-event .category-event-card.active {
  color: white;
  background-color: #f8cf2a;
}
@media only screen and (max-width: 600px) {
  .category {
    left: 3%;
    justify-content: space-between;
    width: 94%;
  }
  .category.move {
    left: 3%;
  }
  .category .category-card {
    width: 30%;
    font-size: 0.8rem;
  }
  .category-event {
    top: -145px;
    left: 3% !important;
    width: 100%;
  }
  .category-event .category-event-card {
    /* width: 22%; */
    height: 50px;
    padding: 0.5rem 0;
    text-align: center;
  }
}
.popup-card p {
  margin: 0;
}
.popup-card .popup-header {
  display: flex;
  gap: 10px;
}
.popup-card .popup-header .popup-img {
  width: 40%;
  border-radius: 4px;
  overflow: hidden;
}
.popup-card .popup-header .popup-title {
  width: calc(60% - 10px);
}
.popup-card .popup-header.toilet .popup-title {
  width: 100%;
}
.popup-card .popup-header .popup-titl {
  width: calc(100% - 40% - 10px);
}
.popup-card .popup-header .popup-title p {
  color: #999999;
}
.popup-card .popup-header .popup-title strong {
  font-size: 1rem;
}
.popup-card .popup-content p {
  margin-top: 10px;
}
.popup-card .popup-content .popup-icon {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  margin-top: 10px;
}
.popup-card .popup-content .popup-icon img {
  width: 30px;
}
.maplibregl-popup-content {
  padding: 10px !important;
  border-radius: 0.5rem !important;
  word-break: break-all;
  overflow-y: auto;
  max-height: 300px;
}
.maplibregl-popup-close-button {
  display: none !important;
}
.maplibregl-popup {
  max-width: 380px !important;
}
#mbgl-gesture-handling-help-container-0 {
  z-index: 99 !important;
}
@media only screen and (min-width: 601px) {
  #mbgl-gesture-handling-help-container-0 {
    display: none !important;
  }
}
@media only screen and (max-width: 600px) {
  .maplibregl-popup {
    max-width: 200px !important;
  }
  .popup-card .popup-header {
    flex-wrap: wrap;
  }
  .popup-card .popup-header .popup-img {
    width: 100%;
    height: 100px;
  }
  .popup-card .popup-header .popup-img img {
    object-fit: cover;
    object-position: center;
  }
  .popup-card .popup-header .popup-title {
    width: 100%;
  }
  .popup-card .popup-header .popup-title strong {
    display: block;
    font-size: 11px;
    line-height: 1.5em;
  }
  .popup-card .popup-header .popup-title p {
    font-size: 10px;
  }
  .popup-card .popup-header.toilet .popup-title {
    width: 100%;
  }
  .popup-card .popup-content .popup-icon {
    flex-wrap: wrap;
  }
  .popup-card .popup-content .popup-icon img {
    width: 25px;
  }
}
