/* COMMON */
:root {
  --main-color: #84CC16;
  --bg-color: #f7f8f6;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 7.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  margin-top: 9.5rem;
  padding-bottom: 2.5rem;
}

/* HEADER */
header {
  padding: 2rem 0 1rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--bg-color);
}
header h1 {
  font-family: 'BoldRound';
  font-size: 2.4rem;
  line-height: 3.2rem;
}
header h1 b {
  letter-spacing: 0;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid #DDE2DD;
  background: var(--bg-color);
}
footer ul {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
}
footer ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
  padding: 1.3rem 0;
}
footer ul li a img {
  width: 3rem;
  aspect-ratio: 1 / 1;
}
footer ul li a p {
  font-size: 1.4rem;
  font-weight: 600;
  color: #292D2A;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

/* 공통 요소 */
.notice_container {
  margin-top: 4rem;
}
.notice_container p {
  font-size: 1.2rem;
  color: #6B746D;
  text-align: center;
  line-height: 1.8rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.common_search_wrap {
  background: #DDE2DD;
  padding: 1.3rem 2rem;
  border-radius: 3rem;
  margin-bottom: 1.6rem;
}
.common_search_wrap form {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.common_search_wrap input[type="text"] {
  width: 100%;
  font-size: 1.5rem;
}
.common_search_wrap input[type="text"]::placeholder {
  color: #6B746D;
}
.common_search_wrap button img {
  width: 2.4rem;
}

.common_item_wrap {
  background: var(--bg-color);
  border-radius: 2rem;
  padding: 2.4rem;
  box-shadow: 0px 0px 5px 0px #DDE2DD;
}
.common_item_wrap .title_wrap {
  position: relative;
  margin-bottom: 1.6rem;
}
.common_item_wrap .title_wrap .title_box {
  width: calc(100% - 6rem);
}
.common_item_wrap .title_wrap .title_box h3 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.common_item_wrap .title_wrap .title_box p {
  font-size: 1.4rem;
  color: #6B746D;
}
.common_item_wrap .title_wrap .state_box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1rem;
  position: absolute;
  top: 0;
  right: 0;
}
.common_item_wrap .title_wrap .state_box span {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-color);
  border: 1px solid var(--main-color);
  padding: .3rem .9rem;
  border-radius: 2rem;
}
.common_item_wrap .title_wrap .state_box span.off {
  color: #6B746D;
  border: 1px solid #6B746D;
}
.common_item_wrap .title_wrap .state_box button img {
  width: 2rem;
}
.common_item_wrap .bar_wrap .state {
  font-size: 2rem;
  font-weight: 600;
}
.common_item_wrap .bar_wrap .bar {
  width: 100%;
  height: .5rem;
  background: #DDE2DD;
  border-radius: 4.5rem;
  margin: 1rem 0 .5rem;
  position: relative;
}
.common_item_wrap .bar_wrap .bar .gage {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--main-color);
  border-radius: 4.5rem;
  height: 100%;
}
.common_item_wrap .bar_wrap .info_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.common_item_wrap .bar_wrap .info_box p {
  font-size: 1.4rem;
  color: #6B746D;
}
.common_item_wrap .more_btn {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 1.6rem;
  font-weight: 600;
  color: #f7f8f6;
  padding: 1.2rem 0;
  background: var(--main-color);
  border-radius: 2rem;
  margin-top: 1.6rem;
}

.common_filter_wrap {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.common_filter_wrap .filter img {
  width: 6rem;
}
.common_filter_wrap ul {
  display: flex;
  align-items: center;
  gap: .8rem;
  overflow-x: auto;
}
.common_filter_wrap ul::-webkit-scrollbar {
  display: none;
}
.common_filter_wrap ul li {
  font-size: 1.6rem;
  color: #f7f8f6;
  background: #292d2a;
  border-radius: 4.6rem;
  padding: .8rem 1rem;
  box-shadow: 0px 0px 4px 0px #0000004D;
  white-space: nowrap;
}

.common_view_item {
  background: var(--bg-color);
  border-radius: 2rem;
  padding: 2.2rem 2.7rem 3rem;
  text-align: center;
  box-shadow: 0px 0px 5px 0px #DDE2DD;
}
.common_view_item h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.8rem;
}
.common_view_item button {
  display: block;
  width: 100%;
  background: #292d2a;
  color: #fff;
  text-align: center;
  border-radius: 2rem;
  padding: 1.2rem 0;
  font-size: 1.6rem;
  font-weight: 600;
}

/* index.php */
.home {
  padding-bottom: 0;
}
.home .map_container {
  position: relative;
}
.home .map_container .map {
  width: 100%;
  height: calc(100vh - 24.1rem);   /* dvh 미지원 브라우저 대비 (지도가 빈 div라 높이가 0이 되면 안 됨) */
  height: calc(100dvh - 24.1rem);
  min-height: 30rem;
}
.home .map_container .temp {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home .state_wrap {
  position: absolute;
  top: 1.2rem;
  left: 1.6rem;
  z-index: 9;
}
.home .modal_wrap {
  position: absolute;
  bottom: 1.6rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4.8rem);
  z-index: 9;
  pointer-events: none;
}
.home .modal_wrap .btn_wrap > *,
.home .modal_wrap .common_item_wrap,
.home .modal_wrap .common_view_item {
  pointer-events: auto;
}
.home .modal_wrap .btn_wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  margin-bottom: .8rem;
}
.home .modal_wrap .btn_wrap img {
  width: 6rem;
}
/* 지도 위 현재 내 위치 표시 (index.php 의 CustomOverlay 내용물) */
.my_location {
  position: relative;
  width: 1.6rem;
  height: 1.6rem;
  pointer-events: none;
}
.my_location span {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--main-color);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px 0 #00000040;
}
.my_location::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 4.4rem;
  height: 4.4rem;
  margin: -2.2rem 0 0 -2.2rem;
  border-radius: 50%;
  background: var(--main-color);
  animation: my_location_pulse 2s ease-out infinite;
}
@keyframes my_location_pulse {
  0% {
    transform: scale(.35);
    opacity: .4;
  }
  70% {
    transform: scale(1);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

/* list.php */
.list .common_search_wrap,
.filter .common_search_wrap {
  margin-bottom: 1rem;
}
.list .list_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  margin-top: 1rem;
}
.list .list_wrap ul,
.bookmark .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.list .list_wrap ul li[id] {
  scroll-margin-top: 12rem;
}
.list .more_list_btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  width: 100%;
  padding: 1.4rem 0;
  background: var(--bg-color);
  border: 1px solid #DDE2DD;
  border-radius: 2rem;
  box-shadow: 0px 0px 5px 0px #DDE2DD;
  font-size: 1.6rem;
  font-weight: 600;
  color: #292D2A;
}
.list .more_list_btn span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #6B746D;
}
.list .list_wrap ul li.empty,
.bookmark .list_wrap ul li.empty {
  text-align: center;
  font-size: 1.6rem;
  color: #6B746D;
  line-height: 2.5rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  margin: 5rem 0;
}

/* filter.php */
.filter .category_wrap {
  margin-top: 1.8rem;
}
.filter .category_wrap > ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.filter .category_wrap > ul > li h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: .8rem;
}
.filter .category_wrap > ul > li select {
  width: 100%;
  border: 1px solid #292D2A;
  padding: 1.8rem 1.6rem;
  border-radius: 1rem;
  font-size: 1.4rem;
  font-weight: 500;
  background: var(--bg-color) url("../img/icon_arrow_down.png") no-repeat calc(100% - 1.6rem) 50% / 1.8rem;
}
.filter .category_wrap > ul > li ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.filter .category_wrap > ul > li ul li {
  font-size: 1.6rem;
  font-weight: 600;
  color: #6B746D;
  border: 1px solid #6B746D;
  padding: .7rem 1.4rem;
  border-radius: 3rem;
}
.filter .category_wrap > ul > li ul li.active {
  background: #292D2A;
  color: #F7F8F6;
  border: 1px solid #292D2A;
}

/* detail.php */
.detail {
  margin-top: 0;
  padding-bottom: 0;
  padding-top: 2rem;
  background: var(--main-color);
}
.detail .container {
  background: var(--bg-color);
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0px -5px 5px 0px #292D2A4D;
  padding: 1.6rem 0;
}
.detail .close_btn {
  display: block;
  margin-left: auto;
  margin-bottom: 1.6rem;
}
.detail .close_btn img {
  width: 2.4rem;
}
.detail .title_wrap {
  position: relative;
  margin-bottom: 2.4rem;
}
.detail .title_wrap .title_box h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: .6rem;
  width: calc(100% - 4rem);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.detail .title_wrap .title_box p {
  font-size: 1.4rem;
  color: #6B746D;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.detail .title_wrap .bookmark {
  position: absolute;
  top: 0;
  right: 0;
}
.detail .title_wrap .bookmark img {
  width: 2.4rem;
}
.detail .bar_wrap {
  margin-bottom: 2.4rem;
}
.detail .bar_wrap .state_wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.detail .bar_wrap .state_wrap .state {
  font-size: 2rem;
  font-weight: 600;
}
.detail .bar_wrap .state_wrap span {
  font-size: 1.2rem;
  color: #6B746D;
}
.detail .bar_wrap .bar {
  width: 100%;
  height: .5rem;
  background: #DDE2DD;
  border-radius: 4.5rem;
  margin: 1rem 0 .5rem;
  position: relative;
}
.detail .bar_wrap .bar .gage {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--main-color);
  border-radius: 4.5rem;
  height: 100%;
}
.detail .bar_wrap .info_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail .bar_wrap .info_box p {
  font-size: 1.4rem;
  color: #6B746D;
}
.detail .info_wrap {
  padding: 1.6rem 0;
  border-top: 1px solid #DDE2DD;
  border-bottom: 1px solid #DDE2DD;
}
.detail .info_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.detail .info_wrap ul li {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.detail .info_wrap ul li img {
  width: 2.4rem;
}
.detail .info_wrap ul li p {
  font-size: 1.6rem;
  color: #6B746D;
}
.detail .info_wrap ul li span {
  font-size: 1.2rem;
  font-weight: 600;
  border: 1px solid var(--main-color);
  padding: .3rem .9rem;
  border-radius: 4.5rem;
  color: var(--main-color);
  margin-left: auto;
}
.detail .info_wrap ul li button img {
  width: 1.6rem;
}
.detail .info_wrap ul li span.off {
  color: #6B746D;
  border: 1px solid #6B746D;
}
.detail .fee_wrap {
  margin-top: 2.4rem;
}
.detail .fee_wrap h2 {
  font-size: 1.4rem;
  color: #737577;
  margin-bottom: 1.6rem;
}
.detail .fee_wrap ul {
  display: flex;
  flex-direction: column;
}
.detail .fee_wrap ul li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.6rem 0;
  border-bottom: 1px solid #E3E3E0;
}
.detail .fee_wrap ul li:first-child {
  border-top: 1px solid #E3E3E0;
}
.detail .fee_wrap ul li p {
  font-size: 1.6rem;
  font-weight: 600;
  color: #191919;
}
.detail .fee_wrap ul li span {
  font-size: 1.6rem;
  font-weight: 700;
  color: #191919
}
.detail .fee_wrap ul li span b {
  color: #767676;
  font-weight: 500;
}

/* more.php */
.more ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.more ul li {
  background: #dde2dd;
  border-radius: 1.6rem;
  padding: 2.4rem 2rem;
}
.more ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.more ul li .title_wrap h2 {
  font-size: 2rem;
  font-weight: 600;
}
.more ul li .title_wrap img {
  width: 2.4rem;
}
.more ul li .content_wrap {
  margin-top: 2rem;
}
.more ul li .content_wrap p {
  font-size: 1.4rem;
  line-height: 2rem;
  word-break: keep-all;
  overflow-wrap: break-word;
  color: #6B746D;
}
.more ul li .content_wrap p b {
  display: block;
  font-weight: 600;
}
.more ul li .content_wrap p em {
  font-weight: 600;
}
/* more.php 아코디언 (기본 접힘) */
.more ul li .content_wrap {
  display: none;
}
.more ul li .title_wrap {
  cursor: pointer;
}
.more ul li .title_wrap img {
  transition: transform .2s;
}
.more ul li.open .title_wrap img {
  transform: rotate(180deg);
}
