/* COMMON */
:root {
  --main-color: #FFC928;
  --sub-color: #F2B900;
  --bg-color: #fff;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 7.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  margin-top: 9.8rem;
  padding-bottom: 4rem;
}

/* HEADER */
header {
  padding: 3rem 0 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--bg-color);
}
header span {
  display: block;
  font-size: 1.8rem;
  font-weight: 700;
  color: #6f706a;
  margin-bottom: 1rem;
}
header .location_wrap {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding-bottom: 1.6rem;
  border-bottom: 1px solid #e9e9e4;
}
header .location_wrap p {
  font-size: 2.4rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
header .location_wrap button img {
  width: 1.6rem;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid #E9E9E4;
  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: #A9AAA4;
  white-space: nowrap;
}
footer ul li.active a p {
  color: #191A17;
}

/* index.php */
.index {
  height: calc(100dvh - 10.9rem);
  margin-top: 0;
  padding-top: 3rem;
  padding-bottom: 0;
}
.index .inner {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.index h1 {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 4rem;
}
.index ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem .8rem;
}
.index ul li {
  border: 1px solid #191A17;
  text-align: center;
  border-radius: 1rem;
  padding: 2.4rem 0;
  font-size: 2rem;
  font-weight: 600;
}
.index ul li.active {
  border: 2px solid var(--sub-color);
  color: var(--sub-color);
  background: #FEFDF8;
}
.index a {
  display: block;
  width: 100%;
  border-radius: 1rem;
  font-size: 2rem;
  font-weight: 700;
  background: #E9E9E4;
  color: #a9aaa4;
  padding: 2rem 0;
  margin-top: auto;
  pointer-events: none;
  text-align: center;
}
.index a.active {
  background: var(--main-color);
  color: #191A17;
  pointer-events: all;
}

/* home.php */
.home {
  padding-top: 3.2rem;
}
.home .today_wrap {
  padding-bottom: 3.2rem;
  border-bottom: 1px solid #e9e9e4;
}
.home .today_wrap h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6f706a;
  margin-bottom: 1.6rem;
}
.home .today_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.home .today_wrap ul li {
  text-align: center;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #00000026;
  padding: 2.4rem 0;
  position: relative;
}
.home .today_wrap ul li .choose {
  width: 2.4rem;
  position: absolute;
  top: 1rem;
  left: 1rem;
}
.home .today_wrap ul li h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1.8rem;
}
.home .today_wrap ul li .price_box {
  margin-bottom: 1.5rem;
}
.home .today_wrap ul li .price_box p {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--sub-color);
}
.home .today_wrap ul li .price_box p span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #6f706a;
}
.home .today_wrap ul li .prepare_box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}
.home .today_wrap ul li .prepare_box span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #6f706a;
}
.home .today_wrap ul li .prepare_box .fee_box {
  display: flex;
  align-items: center;
}
.home .today_wrap ul li .prepare_box .fee_box img {
  width: 2.4rem;
}
.home .today_wrap ul li .prepare_box .fee_box p {
  font-size: 1.8rem;
  font-weight: 600;
}
.home .today_wrap ul li .prepare_box .fee_box.up img {
  filter: invert(37%) sepia(88%) saturate(1914%) hue-rotate(333deg) brightness(91%) contrast(86%);
}
.home .today_wrap ul li .prepare_box .fee_box.up p {
  color: #D94A45;
}
.home .today_wrap ul li .prepare_box .fee_box.down img {
  filter: invert(39%) sepia(85%) saturate(375%) hue-rotate(107deg) brightness(91%) contrast(93%);
  transform: rotate(180deg);
}
.home .today_wrap ul li .prepare_box .fee_box.down p {
  color: #16845B;
}
.home .around_wrap {
  padding: 3.2rem 0;
  border-bottom: 1px solid #e9e9e4;
}
.home .around_wrap h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #6f706a;
  margin-bottom: 1.6rem;
}
.home .around_wrap .link_btn {
  display: block;
  width: 100%;
  background: var(--main-color);
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  border-radius: 1rem;
  padding: 2rem 0;
  margin-top: 1.6rem;
}

.common_list_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.common_list_wrap ul li {
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #00000026;
  background: #fff;
  padding: 2.4rem;
  position: relative;
}
.common_list_wrap ul li .left_wrap h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  max-width: calc(100% - 9rem);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.common_list_wrap ul li .left_wrap .fee_box {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.common_list_wrap ul li .left_wrap .fee_box p {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sub-color);
}
.common_list_wrap ul li .left_wrap .fee_box p span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #6f706a; 
}
.common_list_wrap ul li .left_wrap .fee_box > span {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  color: #a9aaa4;
}
.common_list_wrap ul li .left_wrap .fee_box > span i {
  display: block;
  width: .4rem;
  height: .4rem;
  border-radius: 100%;
  background: #e9e9e4;
}
.common_list_wrap ul li .location {
  font-size: 1.4rem;
  color: #6b7280;
}
.common_list_wrap ul li .right_wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.6rem;
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
}
.common_list_wrap ul li .right_wrap span {
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--main-color);
  border-radius: 3rem;
  padding: .7rem 1.4rem;
}
.common_list_wrap ul li .right_wrap span.self {
  background: none;
  border: 1px solid var(--sub-color);
  color: var(--sub-color);
}
.common_list_wrap ul li .right_wrap .bookmark img {
  width: 2.4rem;
}
.common_list_wrap ul li .more_btn {
  display: block;
  width: 100%;
  border: 1px solid var(--sub-color);
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sub-color);
  text-align: center;
  padding: 1.4rem 0;
  margin-top: 1.6rem;
}

/* list.php */
.common_filter_wrap {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 1.6rem 0;
}
.common_filter_wrap a {
  display: block;
}
.common_filter_wrap a img {
  width: 2.4rem;
}
.common_filter_wrap ul {
  display: flex;
  align-items: center;
  gap: .8rem; 
}
.common_filter_wrap ul li {
  font-size: 1.8rem;
  font-weight: 600;
  color: #6f706a;
  border: 1px solid #6f706a;
  border-radius: 3rem;
  padding: .6rem 2rem;
}
.common_filter_wrap ul li.active {
  background: var(--main-color);
  color: #fff;
  border: 1px solid var(--main-color);
}

.list .list_wrap {
  border-top: 1px solid #e9e9e4;
  padding: 2rem 0 0;
  position: relative;
}
.list .list_wrap .switch_btn {
  display: block;
  width: 6.2rem;
  height: 6.2rem;
  position: fixed;
  bottom: 8.8rem;
  right: 1rem;
}
.list .list_wrap .switch_btn img {
  width: 100%;
}

/* filter.php */
.filter .filter_wrap {
  border-top: 1px solid #e9e9e4;
  padding-top: 2rem;
}
.filter .filter_wrap .inner {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}
.filter .filter_wrap .filter_box h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1.6rem;
}
.filter .filter_wrap .filter_box ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}
.filter .filter_wrap .filter_box ul li {
  font-size: 1.6rem;
  font-weight: 600;
  color: #6f706a;
  border: 1px solid #6f706a;
  padding: .7rem 1.4rem;
  border-radius: 3rem;
}
.filter .filter_wrap .filter_box ul li.active {
  background: var(--main-color);
  color: #fff;
  border: 1px solid var(--main-color);
}

/* detail.php */
.detail {
  margin-top: 3rem;
  padding-top: 1.6rem;
  box-shadow: 0px -4px 8px 0px #00000033;
}
.detail .close_btn {
  display: block;
  margin-left: auto;
  margin-bottom: 1rem;
}
.detail .close_btn img {
  width: 2.4rem;
}
.detail .title_wrap .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.detail .title_wrap .title_box h1 {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.detail .title_wrap .title_box span {
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--main-color);
  border-radius: 3rem;
  padding: .7rem 1.4rem;
  flex-shrink: 0;
}
.detail .title_wrap .info_box {
  border-bottom: 1px solid #e9e9e4;
  position: relative;
  padding-bottom: 1.6rem;
}
.detail .title_wrap .info_box ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.detail .title_wrap .info_box ul li {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.detail .title_wrap .info_box ul li span,
.detail .title_wrap .info_box ul li p {
  font-size: 1.4rem;
  color: #6f706a;
}
.detail .title_wrap .info_box ul li img {
  width: 1.6rem;
}
.detail .title_wrap .info_box .bookmark {
  width: 2.4rem;
  position: absolute;
  bottom: 1.6rem;
  right: 0;
}
.detail .title_wrap .info_box .bookmark img {
  width: 100%;
}
.detail .location_wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid #e9e9e4;
}
.detail .location_wrap img {
  width: 2.4rem;
}
.detail .location_wrap p {
  font-size: 1.6rem;
}
.detail .price_wrap {
  padding: 1.6rem 0 2.4rem;
  border-bottom: 1px solid #e9e9e4;
}
.detail .price_wrap .title_box {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.detail .price_wrap .title_box img {
  filter: brightness(0);
  width: 2.4rem;
}
.detail .price_wrap .title_box h2 {
  font-size: 1.8rem;
  font-weight: 600;
}
.detail .price_wrap ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
.detail .price_wrap ul li {
  text-align: center;
  box-shadow: 0px 0px 8px 0px #00000026;
  border-radius: 1rem;
  padding: 1.6rem 0;
}
.detail .price_wrap ul li h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 1rem;
}
.detail .price_wrap ul li p {
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--sub-color);
}
.detail .price_wrap ul li p span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #6f706a;
}
.detail .conv_wrap {
  padding: 2.4rem 0;
  border-bottom: 1px solid #e9e9e4;
}
.detail .conv_wrap ul {
  display: flex;
  align-items: center;
  gap: 2.6rem;
}
.detail .conv_wrap ul li {
  text-align: center;
}
.detail .conv_wrap ul li img {
  width: 2.4rem;
}
.detail .conv_wrap ul li p {
  font-size: 1.4rem;
  font-weight: 500;
  margin-top: .8rem;
  color: #a9aaa4;
}
.detail .conv_wrap ul li.active img {
  filter: brightness(0);
}
.detail .conv_wrap ul li.active p {
  color: #191A17;
}

/* map.php */
.map {
  padding-bottom: 0;
}
.map .map_wrap {
  width: 100%;
  height: calc(100dvh - 24.1rem);
  overflow: hidden;
  position: relative;
}
.map .map_wrap .map_box {
  width: 100%;
  height: 100%;
}
.map .map_wrap .btn_wrap {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  z-index: 9;
}
.map .map_wrap .btn_wrap img {
  width: 6rem;
}
.map .modal_wrap {
  display: none;
  border-radius: 1rem;
  box-shadow: 0px 0px 8px 0px #00000026;
  background: #fff;
  padding: 2.4rem;
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 4.8rem);
  z-index: 99;
}
.map .modal_wrap .left_wrap h3 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
  max-width: calc(100% - 9rem);
  word-break: keep-all;
  overflow-wrap: break-word;
}
.map .modal_wrap .left_wrap .fee_box {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
}
.map .modal_wrap .left_wrap .fee_box p {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sub-color);
}
.map .modal_wrap .left_wrap .fee_box p span {
  font-size: 1.4rem;
  font-weight: 500;
  color: #6f706a; 
}
.map .modal_wrap .left_wrap .fee_box > span {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.4rem;
  color: #a9aaa4;
}
.map .modal_wrap .left_wrap .fee_box > span i {
  display: block;
  width: .4rem;
  height: .4rem;
  border-radius: 100%;
  background: #e9e9e4;
}
.map .modal_wrap .location {
  font-size: 1.4rem;
  color: #6b7280;
}
.map .modal_wrap .right_wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2.6rem;
  position: absolute;
  top: 2.4rem;
  right: 2.4rem;
}
.map .modal_wrap .right_wrap span {
  font-size: 1.2rem;
  font-weight: 600;
  background: var(--main-color);
  border-radius: 3rem;
  padding: .7rem 1.4rem;
}
.map .modal_wrap .right_wrap span.self {
  background: none;
  border: 1px solid var(--sub-color);
  color: var(--sub-color);
}
.map .modal_wrap .right_wrap .bookmark img {
  width: 2.4rem;
}
.map .modal_wrap .more_btn {
  display: block;
  width: 100%;
  border: 1px solid var(--sub-color);
  border-radius: 1rem;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--sub-color);
  text-align: center;
  padding: 1.4rem 0;
  margin-top: 1.6rem;
}

/* setting.php */
.setting {
  margin-top: 4rem;
}
.setting ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.setting ul li {
  box-shadow: 0px 0px 6px 0px #00000033;
  border-radius: 1.6rem;
  padding: 2.4rem 2rem;
}
.setting ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.setting ul li .title_wrap h2 {
  font-size: 2rem;
  font-weight: 600;
}
.setting ul li .title_wrap img {
  width: 2.4rem;
}
.setting ul li .content_wrap {
  padding-top: 2rem;
}
.setting ul li .content_wrap p {
  font-size: 1.4rem;
  line-height: 2.3rem;
  color: #6b7280;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.setting ul li .content_wrap p b {
  font-size: 1.6rem;
  font-weight: 600;
}

/* ------------------------------------------------------------------
   기능 연동으로 추가된 부분
   퍼블리싱에 없던 상태(빈 목록 / 유종 4종)만 최소한으로 채웠습니다.
------------------------------------------------------------------ */

/* 유종 칩이 4개라 좁은 화면에서는 가로로 밀어서 본다 */
.common_filter_wrap ul.fuel_chips {
  overflow-x: auto;
  scrollbar-width: none;
}
.common_filter_wrap ul.fuel_chips::-webkit-scrollbar {
  display: none;
}
.common_filter_wrap ul.fuel_chips li {
  flex: 0 0 auto;
  white-space: nowrap;
  cursor: pointer;
}

/* 필터 화면의 조건 버튼 */
.filter_wrap .filter_box ul li {
  cursor: pointer;
}

/**
 * 설정 화면 아코디언 (앱 소개 · 정보 출처)
 *
 * 여닫는 상태는 인라인 style 로만 관리한다.
 * 첫 상태는 setting.php 가 그리고, 그 뒤로는 slideToggle 이 바꾼다.
 *
 * 여기서 display 를 같이 건드리면 안 된다. slideDown 이 끝날 때 jQuery 는
 * 인라인 display 를 비우고 "css 만으로도 보이면 그대로 둔다" 로 처리하는데,
 * 그때 클래스가 보이게 해주고 있으면 인라인 값이 사라진다. 그러면 다음 클릭에
 * 클래스가 빠지면서 css 가 먼저 숨겨버리고, jQuery 는 숨은 걸 보고 도로 연다.
 *
 * li.active 는 화살표 방향에만 쓴다.
 * 화살표 원본 이미지가 위를 향하고 있어 접힌 상태에서 뒤집는다.
 */
.setting ul li:has(.content_wrap) .title_wrap {
  cursor: pointer;
}
.setting ul li:has(.content_wrap) .title_wrap img {
  transform: rotate(180deg);
  transition: transform .2s;
}
.setting ul li.active .title_wrap img {
  transform: rotate(0deg);
}

/* 지도에서 핀을 눌렀을 때만 하단 카드를 띄운다 */
.map .modal_wrap.active {
  display: block;
}

/* 지도 위의 현재 내 위치 표시 (js/map.js 가 이 클래스로 그린다) */
.my_location_dot {
  box-sizing: content-box;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--main-color);
  border: .3rem solid #fff;
  box-shadow: 0px 0px 20px 0px #FFC928;
  backdrop-filter: blur(30px)
}

/* 편의시설 조건이 일부만 확인된 경우 알림 */
.list_notice {
  font-size: 1.3rem;
  color: #6f706a;
  text-align: center;
  padding: 1.6rem 0 .8rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 위치 미설정 · 결과 없음 안내 */
.empty_box {
  text-align: center;
  padding: 4rem 2rem;
}
.empty_box p {
  font-size: 1.6rem;
  line-height: 2.4rem;
  color: #6f706a;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.empty_box .locate_btn {
  margin-top: 2rem;
  background: var(--main-color);
  color: #191A17;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 3rem;
  padding: 1.2rem 2.8rem;
}