/* COMMON */
:root {
  --main-color: #2F3133;
  --bg-color: #f7f7f5;
}

body {
  background: var(--bg-color);
}

#wrap {
  margin-bottom: 7.9rem;
}

.inner {
  width: 100%;
  padding: 0 2.4rem;
  margin: 0 auto;
}

main {
  margin-top: 7.5rem;
  padding-bottom: 2.5rem;
}
main.mt {
  margin-top: 13.2rem;
}

/* HEADER */
header {
  padding: 2.4rem 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99;
  width: 100%;
  background: var(--bg-color);
}
header h1 {
  font-family: 'CulturalHeritageCare';
  font-weight: 700;
  font-size: 2.4rem;
}
header p {
  font-size: 1.4rem;
  color: #737577;
  line-height: 2.4rem;
  margin-top: .8rem;
}

/* FOOTER */
footer {
  width: 100%;
  position: fixed;
  bottom: 0;
  left: 0;
  z-index: 999;
  border-top: 1px solid var(--main-color);
  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: #A99988;
  white-space: nowrap;
}
footer ul li.active a p {
  color: var(--main-color);
}

.notice_area {
  text-align: center;
  margin-top: 4rem;
}
.notice_area p {
  font-size: 1.2rem;
  color: #737577;
  line-height: 1.8rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 공통 CSS */
.common_select_wrap {
  background: #fff;
  padding: 1.6rem;
  box-shadow: 0px 0px 8px 0px #E3E3E0;
  border-radius: 1rem;
  margin-bottom: 1rem;
}
.common_select_wrap .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.common_select_wrap .title_box img {
  width: 1.8rem;
}
.common_select_wrap .title_box h2 {
  font-size: 1.4rem;
  font-weight: 500;
}
.common_select_wrap .select_box {
  border: 1px solid #e9e3dc;
  border-radius: 1rem;
  padding: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.common_select_wrap .select_box select {
  width: 100%;
  font-size: 1.6rem;
  font-weight: 600;
}
.common_select_wrap .select_box img {
  width: 1.8rem;
}

/* home.php */
.home .state_wrap {
  background: #fff;
  box-shadow: 0px 0px 8px 0px #E3E3E0;
  border-radius: 1rem;
  padding: 1.6rem;
}
.home .state_wrap .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2.4rem;
}
.home .state_wrap .title_wrap .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.home .state_wrap .title_wrap .title_box img {
  width: 1.8rem;
}
.home .state_wrap .title_wrap .title_box h2 {
  font-size: 1.4rem;
  font-weight: 500;
}
.home .state_wrap .title_wrap .update_box {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.home .state_wrap .title_wrap .update_box p {
  font-size: 1.2rem;
  color: #737577;
}
.home .state_wrap .title_wrap .update_box img {
  width: 1.4rem;
}
.home .state_wrap .graph_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.home .state_wrap .graph_wrap ul li .name_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.home .state_wrap .graph_wrap ul li .name_box .left_box {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.home .state_wrap .graph_wrap ul li .name_box .left_box h3 {
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.2;
  word-break: keep-all;
  overflow-wrap: break-word;
}
.home .state_wrap .graph_wrap ul li .name_box .left_box span {
  display: inline-block;
  font-size: 1rem;
  color: #737577;
  background: #E3E3E0;
  border-radius: 2rem;
  padding: .4rem .8rem;
  white-space: nowrap;
}
.home .state_wrap .graph_wrap ul li .name_box .right_box {
  flex-shrink: 0;
}
.home .state_wrap .graph_wrap ul li .name_box .right_box p {
  font-size: 1.4rem;
  font-weight: 600;
}
.home .state_wrap .graph_wrap ul li .bar_wrap {
  width: 100%;
  height: .5rem;
  background: #E3E3E0;
  border-radius: 4.5rem;
  margin: .7rem 0 .5rem;
  position: relative;
}
.home .state_wrap .graph_wrap ul li .bar_wrap .bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #2f3133;
  border-radius: 4.5rem;
}
.home .state_wrap .graph_wrap ul li .state_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.home .state_wrap .graph_wrap ul li .state_box p,
.home .state_wrap .graph_wrap ul li .state_box span {
  font-size: 1rem;
  color: #737577;
}
.home .state_wrap .graph_wrap .more_btn {
  display: block;
  width: 100%;
  font-size: 1.4rem;
  font-weight: 500;
  color: #737577;
  text-align: center;
  padding: 1.3rem 0;
  border-radius: 1rem;
  background: #f7f7f5;
  margin-top: 2.4rem;
}
.home .quick_wrap {
  background: #fff;
  box-shadow: 0px 0px 8px 0px #E3E3E0;
  padding: 1.6rem;
  border-radius: 1rem;
  margin-top: 1rem;
}
.home .quick_wrap ul {
  display: flex;
  align-items: center;
}
.home .quick_wrap ul li {
  width: 20%;
}
.home .quick_wrap ul li a {
  display: block;
  text-align: center;
}
.home .quick_wrap ul li a img {
  width: 2.4rem;
  margin-bottom: 1rem;
}
.home .quick_wrap ul li a p {
  font-size: 1.2rem;
  font-weight: 600;
}

/* parking.php */
.parking .state_wrap {
  padding: 1.6rem 1.6rem 2.4rem;
}

/* detail.php */
.detail {
  background: #fff;
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0px -4px 8px 0px #E3E3E0;
  position: fixed;
  top: 7.5rem;
  left: 0;
  right: 0;
  bottom: 7.9rem;
  margin-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.detail .title_wrap {
  padding: 2.4rem 0;
  flex-shrink: 0;
}
.detail .title_wrap .title_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
}
.detail .title_wrap .title_box .text_box span {
  display: block;
  font-size: 1.4rem;
  color: #737577;
  margin-bottom: .5rem;
}
.detail .title_wrap .title_box .text_box h2 {
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.3;
}
.detail .title_wrap .title_box button img {
  width: 2rem;
}
.detail .title_wrap .address {
  font-size: 1.4rem;
  color: #737577;
}
.detail .graph_wrap {
  margin-top: 2.4rem;
}
.detail .graph_wrap .name_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.detail .graph_wrap .name_box .left_box {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.detail .graph_wrap .name_box .left_box span {
  display: inline-block;
  font-size: 1.4rem;
  color: #737577;
  background: #E3E3E0;
  border-radius: 2rem;
  padding: .5rem 1rem;
  white-space: nowrap;
}
.detail .graph_wrap .name_box .right_box {
  flex-shrink: 0;
}
.detail .graph_wrap .name_box .right_box p {
  font-size: 2rem;
  font-weight: 600;
}
.detail .graph_wrap .bar_wrap {
  width: 100%;
  height: .5rem;
  background: #E3E3E0;
  border-radius: 4.5rem;
  margin: 1rem 0 .5rem;
  position: relative;
}
.detail .graph_wrap .bar_wrap .bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: #2f3133;
  border-radius: 4.5rem;
}
.detail .graph_wrap .state_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.detail .graph_wrap .state_box p,
.detail .graph_wrap .state_box span {
  font-size: 1.4rem;
  color: #737577;
}
.detail .fee_wrap {
  border-top: 5px solid #e3e3e0;
  padding: 2.4rem 0;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.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 h3 {
  font-size: 1.6rem;
  font-weight: 600;
  color: #191919;
}
.detail .fee_wrap ul li p {
  font-size: 1.6rem;
  font-weight: 700;
  color: #191919; 
}
.detail .fee_wrap ul li p b {
  font-weight: 500;
  color: #767676;
}
.detail .notice_area {
  flex-shrink: 0;
  margin-top: 0;
  padding: 1.6rem 0 2rem;
  border-top: 1px solid #e3e3e0;
  background: #fff;
}

/* calculator.php */
.calc .select_wrap {
  background: #fff;
  box-shadow: 0px 0px 8px 0px #E3E3E0;
  padding: 1.6rem;
  border-radius: 1rem;
}
.calc .select_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
}
.calc .select_wrap ul li .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.calc .select_wrap ul li .title_box img {
  width: 1.8rem;
}
.calc .select_wrap ul li .title_box h2 {
  font-size: 1.4rem;
  font-weight: 500;
}
.calc .select_wrap ul li .select_box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid #e9e3dc;
  padding: 1.6rem;
  border-radius: 1rem;
}
.calc .select_wrap ul li .select_box.mb {
  margin-bottom: 1rem;
}
.calc .select_wrap ul li .select_box select,
.calc .select_wrap ul li .select_box input {
  width: 100%;
  font-size: 1.6rem;
  font-weight: 600;
}
.calc .select_wrap ul li .select_box img {
  width: 1.8rem;
}
.calc .select_wrap .calc_btn {
  display: block;
  width: 100%;
  text-align: center;
  background: var(--main-color);
  color: #f7f7f5;
  font-size: 1.6rem;
  font-weight: 600;
  border-radius: 1rem;
  padding: 1.6rem 0;
  margin-top: 2.4rem;
}
.calc .fee_wrap {
  background: #fff;
  box-shadow: 0px 0px 8px 0px #E3E3E0;
  padding: 2.4rem 1.6rem;
  border-radius: 1rem;
  margin-top: 1rem;
}
.calc .fee_wrap .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 2rem;
}
.calc .fee_wrap .title_box img {
  width: 2.4rem;
}
.calc .fee_wrap .title_box h2 {
  font-size: 2rem;
  font-weight: 600;
}
.calc .fee_wrap .fee_box .top_wrap {
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  border-bottom: 1px solid #e3e3e0;
  padding-bottom: 1.6rem;
}
.calc .fee_wrap .fee_box .top_wrap .box {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.calc .fee_wrap .fee_box .top_wrap .box h4 {
  font-size: 1.2rem;
  color: #737577;
}
.calc .fee_wrap .fee_box .top_wrap .box p {
  font-size: 1.2rem;
  font-weight: 500;
  color: #737577;;
}
.calc .fee_wrap .fee_box .btm_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.6rem;
}
.calc .fee_wrap .fee_box .btm_wrap h4 {
  font-size: 1.2rem;
  color: #737577;
}
.calc .fee_wrap .fee_box .btm_wrap p {
  font-size: 2.4rem;
  font-weight: 600;
}
.calc .fee_wrap .notice {
  font-size: 1rem;
  line-height: 1.5rem;
  color: #737577;
  margin-top: 2rem;
}

/* fee.php */
.fee .category_wrap {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin: 2.4rem 0;
}
.fee .category_wrap a {
  display: block;
  width: 50%;
  text-align: center;
  background: #e9e3dc;
  padding: 1rem 0;
  border-radius: 6rem;
  font-size: 1.4rem;
  font-weight: 500;
}
.fee .category_wrap a.active {
  background: var(--main-color);
  color: #f7f7f5;
}
.fee .table_wrap ul {
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}
.fee .table_wrap ul li .title_box {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.fee .table_wrap ul li .title_box h3 {
  font-size: 1.4rem;
  font-weight: 600;
}
.fee .table_wrap ul li .title_box span {
  display: inline-block;
  font-size: 1rem;
  color: #737577;
  border-radius: 2rem;
  padding: .4rem .8rem;
  background: #e3e3e0;
}
.fee .table_wrap ul li table {
  width: 100%;
  background: #fff;
}
.fee .table_wrap ul li table th,
.fee .table_wrap ul li table td {
  border: 1px solid #e3e3e0;
  font-size: 1rem;
  line-height: 1.2rem;
  padding: 1.2rem .4rem;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
  vertical-align: middle;
}
.fee .table_wrap ul li table th {
  font-weight: 500;
  color: #737577;
}
.fee .table_wrap ul li table td {
  font-weight: 600;
}

/* discount.php */
.discount .table_wrap {
  background: #fff;
  box-shadow: 0px 0px 8px 0px #E3E3E0;
  border-radius: 1rem;
  padding: 2.4rem 1.6rem;
}

/* reservation.php */
.reserve .reserve_wrap {
  background: #fff;
  box-shadow: 0px 0px 8px 0px #E3E3E0;
  padding: 2.4rem 1.6rem;
  border-radius: 1rem;
  margin-top: 1rem;
}
.reserve .reserve_wrap h3 {
  font-size: 1.4rem;
  color: #737577;
  margin-bottom: 1.6rem;
}
.reserve .reserve_wrap ul li {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  color: #191919;
  line-height: 1.3;
  word-break: keep-all;
  overflow-wrap: break-word;
  border-bottom: 1px solid #e3e3e0;
}
.reserve .reserve_wrap ul li:first-child {
  border-top: 1px solid #e3e3e0;
}
.reserve .reserve_wrap .link_btn {
  display: block;
  width: 100%;
  background: var(--main-color);
  color: #f7f7f5;
  text-align: center;
  border-radius: 1rem;
  padding: 1.7rem 0;
  font-size: 1.6rem;
  font-weight: 600;
  margin-top: 2.4rem;
}

/* more.php */
.more ul {
  display: flex;
  flex-direction: column;
  gap: 1.6rem; 
}
.more ul li {
  background: #fff;
  border-radius: 1rem;
  padding: 2rem;
}
.more ul li h2 {
  font-size: 2rem;
  font-weight: 600;
}
.more ul li img {
  width: 2.4rem;
}
.more ul li a,
.more ul li .title_wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.more ul li .content_wrap {
  margin-top: 2rem;
}
.more ul li .content_wrap p {
  font-size: 1.4rem;
  color: #737577;
  line-height: 2rem;
}
.more ul li .content_wrap p b {
  display: block;
  font-weight: 600;
}
.more ul li .content_wrap p em {
  font-weight: 600;
}
/* 기능 구현용 추가 스타일 */

/* 스피너: 0.4초 이상 지연될 때만 노출 */
.spinner_wrap {
  display: none;
}
.spinner_wrap.on {
  display: block;
}

/* 데이터를 불러오지 못했거나 준비 중일 때 */
.empty_msg {
  font-size: 1.4rem;
  color: #737577;
  line-height: 2rem;
  text-align: center;
  padding: 4rem 0;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 예약 미제공 공항 안내 */
.reserve .reserve_wrap .reserve_none {
  font-size: 1.2rem;
  color: #737577;
  line-height: 1.8rem;
  margin-top: 1.6rem;
  word-break: keep-all;
  overflow-wrap: break-word;
}

/* 더보기 아코디언 */
.more ul li .title_wrap {
  cursor: pointer;
}
.more ul li .content_wrap {
  display: none;
}
.more ul li .title_wrap img {
  transition: transform .2s;
}
.more ul li .title_wrap.open img {
  transform: rotate(180deg);
}

/* 날짜 · 시간 입력 - 기기별 기본 렌더링 차이 통일 */
.calc .select_wrap ul li .select_box.date_box {
  position: relative;
}
.calc .select_wrap ul li .select_box.date_box input {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 0;
  margin: 0;
  padding: 0;
  height: 2.2rem;
  line-height: 2.2rem;
  font-family: inherit;
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--main-color);
  -webkit-text-fill-color: var(--main-color);
  text-align: left;
}
/* iOS Safari는 값을 가운데 정렬한다 */
.calc .select_wrap ul li .select_box.date_box input::-webkit-date-and-time-value {
  text-align: left;
  margin: 0;
  line-height: 2.2rem;
}
.calc .select_wrap ul li .select_box.date_box input::-webkit-datetime-edit {
  padding: 0;
}
/* 크롬 계열 기본 달력 아이콘은 감추고 입력칸 전체를 탭 영역으로 */
.calc .select_wrap ul li .select_box.date_box input::-webkit-calendar-picker-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
}
.calc .select_wrap ul li .select_box.date_box img {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* 유의사항이 여러 문단일 때 (fee.php 요금 기준일 등) */
.notice_area p + p {
  margin-top: 1.8rem;
}
