/* COMMON */
:root {
  --main-color: #242424;
  --sub-color: #F2C94C;
  --bg-color: #fff;
}

html, body {
  height: 100%;
  overflow: hidden;
}

body {
  background: var(--bg-color);
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  padding-top: 3rem;
  padding-bottom: 2.5rem;
  border-radius: 2rem 2rem 0 0;
  background: var(--bg-color);
  position: fixed;
  top: 22.5rem;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 99;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.notice_area {
  text-align: center;
  margin-top: 3.2rem;
}
.notice_area p {
  font-size: 1rem;
  color: #767676;
  line-height: 1.5rem;
  word-break: keep-all;
}

/* HEADER */
header {
  padding: 2.4rem 0 5rem;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--main-color);
}
header .title_wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2.4rem;
}
header .title_wrap a img {
  width: 2.4rem;
  padding-top: .3rem;
}
header .title_wrap .title_box h1 {
  font-family: 'KoreaInstituteOfMachineryAndMaterials';
  font-weight: 700;
  font-size: 2.4rem;
  color: #f2f2f0;
  line-height: 3rem;
  margin-bottom: .5rem;
}
header .title_wrap .title_box h1 b {
  color: var(--sub-color);
}
header .title_wrap .title_box p {
  font-size: 1.4rem;
  line-height: 2rem;
  color: #f2f2f0;
}

/* NAV */
nav ul {
  display: flex;
  justify-content: space-evenly;
  gap: 2rem;
}
nav ul li {
  flex: 1;
}
nav ul li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .8rem;
}
nav ul li a img {
  width: 2.8rem;
  aspect-ratio: 1 / 1;
}
nav ul li a p {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
nav ul li.active a p {
  color: var(--sub-color);
}

/* 공통 CSS */
.common_title_wrap {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.6rem;
}
.common_title_wrap img {
  width: 2.4rem;
}
.common_title_wrap h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.2;
}
.common_title_wrap .prev {
  width: 2rem;
  margin-left: auto;
}

.common_search_wrap {
  padding-bottom: 2.4rem;
}
.common_search_wrap .category_wrap {
  display: flex;
  gap: .8rem;
}
.common_search_wrap .category_wrap .route_btn {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.4rem;
  font-weight: 600;
  border: 1px solid #e3e3e0;
  border-radius: 1rem;
  width: 50%;
  padding: 2rem 1.6rem;
  color: #e3e3e0;
}
.common_search_wrap .category_wrap .route_btn.active {
  border: 1px solid var(--sub-color);
  color: #191919;
}
.common_search_wrap .category_wrap .route_btn img {
  width: 2rem;
  filter: brightness(0) invert(92%) sepia(2%) saturate(137%) hue-rotate(18deg) brightness(97%) contrast(85%);
}
.common_search_wrap .category_wrap .route_btn.active img {
  filter: none;
}
.common_search_wrap .choice_box {
  margin: 1.6rem 0;
}
.common_search_wrap .choice_box:last-of-type {
  margin-bottom: 0;
}
.common_search_wrap .choice_box h3 {
  font-size: 1.2rem;
  color: #767676;
  margin-bottom: 1rem;
}
.common_search_wrap .choice_box ul {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.common_search_wrap .choice_box ul li {
  font-size: 1.4rem;
  font-weight: 500;
  background: #f2f2f0;
  border-radius: 6rem;
  padding: 1rem 1.6rem;
  text-align: center;
}
.common_search_wrap .choice_box.direction ul li {
  width: 100%;
}
.common_search_wrap .choice_box ul li.active {
  background: var(--main-color);
  color: #f2f2f0;
}
.common_search_wrap .search_box {
  margin-top: 1.6rem;
}
.common_search_wrap .search_box h3 {
  font-size: 1.2rem;
  color: #767676;
  margin-bottom: 1rem;
}
.common_search_wrap .search_box input[type="text"] {
  width: 100%;
  background: #f2f2f0;
  font-size: 1.3rem;
  padding: 1.8rem 1.6rem;
  border-radius: 1rem;
}

.common_result_wrap {
  padding-top: 1.6rem;
  border-top: 5px solid #f2f2f0;
}
.common_result_wrap h3 {
  font-size: 1.4rem;
  color: #767676;
  margin-bottom: 1.6rem;
}
.common_result_wrap h3 b {
  font-weight: 600;
}
.common_result_wrap .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.common_result_wrap .list_wrap ul li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.8rem 1.6rem;
  border: 1px solid #e3e3e0;
  border-radius: 1rem;
}
.common_result_wrap .list_wrap ul li a .title_wrap {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  width: calc(100% - 17rem);
}
.common_result_wrap .list_wrap ul li a .title_wrap.auto {
  width: auto;
}
.common_result_wrap .list_wrap ul li a .title_wrap h4 {
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.common_result_wrap .list_wrap ul li a .title_wrap p {
  font-size: 1.2rem;
  color: #767676;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.common_result_wrap .list_wrap ul li a .title_wrap.auto h4,
.common_result_wrap .list_wrap ul li a .title_wrap.auto p {
  white-space: unset;
  line-height: 1.2;
}
.common_result_wrap .list_wrap ul li a .icon_wrap {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.common_result_wrap .list_wrap ul li a .icon_wrap .icon_box {
  text-align: center;
}
.common_result_wrap .list_wrap ul li a .icon_wrap .icon_box img {
  width: 2rem;
  margin-bottom: .5rem;
}
.common_result_wrap .list_wrap ul li a .icon_wrap .icon_box p {
  font-size: 1rem;
  color: #767676;
  white-space: nowrap;
}
.common_result_wrap .list_wrap ul li a .icon_wrap .arrow {
  width: 2rem;
}
.common_result_wrap .list_wrap ul li a .icon_wrap .icon_box.active p {
  color: #191919;
}
.common_result_wrap .list_wrap ul li a .arrow {
  width: 2rem;
}


/* index.php */
.home .route_wrap {
  background: #f2f2f0;
  padding: 0 1.6rem 0 2.4rem;
  display: flex;
  align-items: center;
  gap: 1.6rem;
  border-radius: 1rem;
}
.home .route_wrap .select_wrap {
  width: 100%;
}
.home .route_wrap .select_wrap .select_box {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 2rem 0;
  width: 100%;
}
.home .route_wrap .select_wrap .select_box:not(:last-child) {
  border-bottom: 1px solid #e3e3e0;
}
.home .route_wrap .select_wrap .select_box .icon {
  width: 1.8rem; 
}
.home .route_wrap .select_wrap .select_box select {
  width: 100%;
  font-size: 1.6rem;
  font-weight: 600;
}
.home .route_wrap .select_wrap .select_box .arrow {
  width: 1.6rem;
  margin-left: auto;
}
.home .route_wrap .switch_btn img {
  width: 1.6rem;
}
.home .car_select {
  margin-top: 1.6rem;
}
.home .route_container .check_btn {
  width: 100%;
  background: var(--sub-color);
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  padding: 2rem 0;
  border-radius: 1rem;
  margin-top: 2.4rem;
}
.home .result_wrap {
  margin-top: 3.2rem;
}
.home .result_wrap .content_wrap .fee_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home .result_wrap .content_wrap .fee_wrap .route_box {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.home .result_wrap .content_wrap .fee_wrap .route_box p {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3; 
}
.home .result_wrap .content_wrap .fee_wrap .route_box img {
  width: 2.4rem;
}
.home .result_wrap .content_wrap .fee_wrap .fee {
  font-size: 2.4rem;
  font-weight: 600;
}
.home .result_wrap .content_wrap .info_wrap {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-top: 1.6rem;
  background: #f2f2f0;
  border-radius: 1rem;
  padding: 2.4rem;
}
.home .result_wrap .content_wrap .info_wrap p {
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1.3;
  color: #767676;
}
.home .result_wrap .content_wrap .info_wrap span {
  font-size: 1.2rem;
  color: #767676;;
  line-height: 1.3;
}

/* detail.php */
.detail .title_wrap {
  padding-bottom: 2.4rem;
}
.detail .title_wrap .info_box p {
  font-size: 1.4rem;
  color: #767676;
  line-height: 1.3;
}
.detail .title_wrap .info_box .tel_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-top: .7rem;
}
.detail .title_wrap .info_box .tel_box button img {
  width: 1.6rem;
}
.detail .state_wrap {
  border-top: 5px solid #f2f2f0;
  padding: 2.4rem 0;
}
.detail .state_wrap ul {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}
.detail .state_wrap ul li {
  text-align: center;
}
.detail .state_wrap ul li img {
  width: 3.6rem;
  margin-bottom: 1rem;
}
.detail .state_wrap ul li p {
  font-size: 1.4rem;
}
.detail .price_wrap {
  border-top: 5px solid #f2f2f0;
  padding: 2.4rem 0;
}
.detail .price_wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
  color: #767676;
}
.detail .price_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.6rem;
}
.detail .price_wrap ul li {
  display: flex;
  align-items: center;
}
.detail .price_wrap ul li h4 {
  width: 52%;
  font-size: 1.6rem;
  font-weight: 600;
  white-space: nowrap;
}
.detail .price_wrap ul li p {
  width: 48%;
  font-size: 1.6rem;
  font-weight: 700;
  white-space: nowrap;
}
.detail .price_wrap ul li p b {
  font-weight: 500;
  color: #767676;
}
.detail .conv_wrap {
  border-top: 5px solid #f2f2f0;
  padding: 2.4rem 0;
}
.detail .conv_wrap h3 {
  font-size: 1.4rem;
  margin-bottom: 1.6rem;
  color: #767676;
}
.detail .conv_wrap ul {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.detail .conv_wrap ul li {
  font-size: 1.4rem;
  font-weight: 500;
  border-radius: 6rem;
  background: #f2f2f0;
  padding: 1rem 1.6rem;
}

/* map.php */
.map .map_wrap {
  border-top: 5px solid #f2f2f0;
  height: 40rem;
}
.map .map_wrap .map_box {
  width: 100%;
  height: 100%;
}

/* more.php */
.more .list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.more .list_wrap ul li {
  background: #f2f2f0;
  border-radius: 1.6rem;
  padding: 2rem;
}
.more .list_wrap ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.more .list_wrap ul li .title_wrap h3 {
  font-size: 2rem;
  font-weight: 600;
}
.more .list_wrap ul li .title_wrap img {
  width: 2.4rem;
}
.more .list_wrap ul li .content_wrap {
  margin-top: 2rem;
}
.more .list_wrap ul li .content_wrap p {
  font-size: 1.4rem;
  color: #77727f;
  line-height: 2rem;
  word-break: keep-all;
}
.more .list_wrap ul li .content_wrap p b {
  display: block;
  font-weight: 600;
}
/* API 연동 추가분 */
/* 노선이 30개라 한 줄에 다 안 들어간다. 줄바꿈 없이 가로 스크롤로 넘기고 스크롤바는 숨긴다. */
.common_search_wrap .choice_box.route ul {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.common_search_wrap .choice_box.route ul::-webkit-scrollbar {
  display: none;
}
.common_search_wrap .choice_box.route ul li {
  flex: 0 0 auto;
}
.common_search_wrap .choice_box ul li {
  cursor: pointer;
  white-space: nowrap;
}
.common_search_wrap .category_wrap .route_btn {
  cursor: pointer;
}

/* 검색 결과 없음 */
.common_result_wrap .list_wrap ul li.empty {
  padding: 4rem 0;
  text-align: center;
}
.common_result_wrap .list_wrap ul li.empty p {
  font-size: 1.3rem;
  color: #767676;
}

/* 더보기 아코디언 : 처음엔 전부 접혀 있고, 펼치는 건 js 가 한다 */
.more .list_wrap ul li .content_wrap {
  display: none;
}
.more .list_wrap ul li .title_wrap {
  cursor: pointer;
}
.more .list_wrap ul li .title_wrap img {
  transition: transform .2s;
}
.more .list_wrap ul li.active .title_wrap img {
  transform: rotate(180deg);
}

/* 상세 : 전화번호 복사 버튼 */
.detail .info_box .tel_box button {
  cursor: pointer;
}

/* 상세 : 편의시설이 최대 7개까지 나와서 노선 선택처럼 가로 스크롤로 넘긴다. */
.detail .conv_wrap ul {
  flex-wrap: nowrap;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.detail .conv_wrap ul::-webkit-scrollbar {
  display: none;
}
.detail .conv_wrap ul li {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* 상세 : 졸음쉼터 주소 줄 */
.detail .title_wrap .info_box p.addr {
  margin-top: .4rem;
  font-size: 1.2rem;
  color: #999;
}
