body.is-modal-open {
  overflow: hidden;
  touch-action: none; /* 모바일 스크롤 방지 강화 */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Pretendard", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #ffffff;
  background: #e7eef0;
}

img {
  max-width: 100%;
  display: block;
}

button {
  font-family: inherit;
}

.app {
  min-height: 100%;
}

.gnb {
  width: 100%;
  height: 36px;
  background: #ffffff;
  display: flex;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
}

.gnb__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}

.gnb__link {
  display: inline-flex;
  align-items: center;
}

.gnb__logo {
  height: 14px;
}

.visual {
  background-color: #000000;
  background-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.6) 0%,
      rgba(0, 0, 0, 0.6) 100%
    ),
    url("../img/visual-bg.png");
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 72px 16px 16px;
}

.visual__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.visual__copy {
  text-align: left;
}

.visual__title {
  margin: 0 0 12px;
  font-size: 26px;
  font-weight: 800;
}

.visual__sub {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  opacity: 0.9;
}

.visual__media {
  width: 140px;
  flex: 0 0 auto;
}

.lang-tabs {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  border-radius: 4px;
  overflow: hidden;
  height: 40px;
}

.lang-tab {
  position: relative;
  flex: 1;
  padding: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: #ffffff;
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lang-tab:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 25%;
  right: 0;
  width: 1px;
  height: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.lang-tab.is-active {
    font-weight: 600;
  background: linear-gradient(115deg, #f52c47 0%, #ff6d1f 100%);
}

.main {
  padding: 18px 16px 32px;
}

.fade-up {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-up.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-up {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

.main-actions {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.main-actions--spaced {
  margin-top: 16px;
}

.action-button {
  width: 100%;
  border: 0;
  border-radius: 4px;
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.action-button__icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.action-button--primary {
  background: linear-gradient(115deg, #f52c47 0%, #ff6d1f 100%);
}

.action-button--dark {
  background: #222222;
}

.action-button--qna {
  background: linear-gradient(115deg, #ee6921 0%, #ef3033 100%);
}

.action-button--qna-inline {
  display: none;
}

.notice {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e3e9ec;
}

.notice__header {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}

.notice__info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.notice__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  background: #ff7a32;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

.notice__title {
  display: inline-flex;
  align-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #222222;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notice__icon {
  width: 18px;
  transition: transform 0.2s ease;
}

.notice__content {
  display: grid;
  grid-template-rows: 0fr;
  overflow: hidden;
  opacity: 0;
  padding: 0 16px;
  color: #5b6166;
  font-size: 14px;
  line-height: 1.5;
  border-top: 1px solid #e3e9ec;
  transition: grid-template-rows 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.notice__content > * {
  overflow: hidden;
}

.notice.is-open .notice__content {
  opacity: 1;
  padding: 8px 16px 8px;
  grid-template-rows: 1fr;
}

.notice__content p {
  margin: 0;
}

.notice.is-open .notice__icon {
  transform: rotate(180deg);
}

.route-cards {
  margin-top: 32px;
  display: grid;
  gap: 14px;
}

.route-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px;
  padding-right: 0px;
  border-radius: 4px;
  background: #ffffff;
  text-decoration: none;
}

.route-card__content {
  display: grid;
  gap: 8px;
  color: #222222;
}

.route-card__title {
  line-height: 1.3;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}

.route-card__sub {
  margin: 0;
  font-size: 14px;
  color: #5b6166;
}

.route-card__btn {
  width: fit-content;
  padding: 6px 0;
  border: 0;
  border-radius: 0;
  font-size: 16px;
  font-weight: 700;
  color: #5b6166;
  text-decoration: none;
  margin-top: 12px;
}

.route-card__image {
  width: 148px;
  flex: 0 0 auto;
}

.info-cards {
  margin-top: 32px;
  display: grid;
  gap: 16px;
}

.info-card {
  background: #ffffff;
  border-radius: 4px;
  padding: 16px;
  color: #222222;
}

.info-card__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}

.info-card__list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.6;
  color: #5b6166;
}

.info-card__list li + li {
  margin-top: 6px;
}

.contact-card {
  margin-top: 16px;
  background: #ffffff;
  border-radius: 4px;
  padding: 16px;
  color: #222222;
}

.contact-card__title {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  color: #222222;
}

.contact-card__sub {
  margin: 0;
  font-size: 15px;
  color: #5b6166;
}

.qna-visual {
  background: linear-gradient(120deg, #d81e37 0%, #ff6d1f 100%);
  padding: 60px 16px 24px;
}

.qna-visual__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.qna-visual__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.qna-visual__back-link {
  display: inline-flex;
}

.qna-visual__back-link img {
  width: 24px;
  transform: rotate(180deg);
}

.qna-visual__media {
  width: 110px;
  flex: 0 0 auto;
}

.qna {
  padding: 18px 16px 32px;
}

.tax-visual {
  background: linear-gradient(135deg, #f52c47 0%, #f52c47 62%, #ff6d1f 100%);
  padding: 104px 16px 24px;
}

.tax-visual__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tax-visual__title {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
  color: #ffffff;
}

.tax-visual__sub {
  margin: 0;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
}

.tax-visual__media {
  width: 110px;
  flex: 0 0 auto;
}

.tax-visual__media img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}

.tax-visual .lang-tab.is-active {
  background: #ffffff;
  color: #222222;
  font-weight: 600;
}

/* 면세 페이지: 비주얼 아래 문서 흐름에 두고, 스크롤 시 GNB(36px) 바로 아래에 붙음 */
html.page-tax-refund .tax-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #222222;
  border-radius: 0 0 4px 4px;
  overflow: hidden;
  position: sticky;
  top: 36px;
  z-index: 900;
  width: 100%;
  margin: 0;
}

.tax-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.2px;
  transition: color 0.2s ease, background 0.2s ease, font-weight 0.2s ease;
}

.tax-tab.is-active {
  color: #ffffff;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 -3px 0 #e41d39;
}

.tax-tab + .tax-tab {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.tax {
  padding: 18px 16px 32px;
}

.tax-section + .tax-section {
  margin-top: 24px;
}

/* 면세환급 페이지: 섹션 바로가기 앵커 스크롤 부드럽게 (tax-refund-service.html 전용) */
html.page-tax-refund {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html.page-tax-refund {
    scroll-behavior: auto;
  }
}

/* 고정 GNB(36px) + 고정 섹션 탭(44px) — 앵커 스크롤 시 제목이 가리지 않도록 */
.tax-section[id] {
  scroll-margin-top: calc(36px + 44px + 8px);
}

.tax-compare-wrap#compare {
  scroll-margin-top: calc(36px + 44px + 8px);
}

/* 면세환급 페이지 비주얼만: GNB(36px) 아래부터 (섹션 탭은 비주얼 아래 흐름에 배치) */
html.page-tax-refund .tax-visual {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  box-sizing: border-box;
  padding: 68px 16px 36px;
}

html.page-tax-refund .tax-visual__inner {
  flex: 1 1 auto;
  align-items: center;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
}

html.page-tax-refund .tax-visual .lang-tabs {
  flex: 0 0 auto;
  align-self: stretch;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin-top: 18px;
  box-sizing: border-box;
  flex-wrap: nowrap;
}

html.page-tax-refund .tax-visual .lang-tab {
  white-space: nowrap;
  flex: 1 1 0;
  min-width: 0;
}

.tax-section__title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}

.tax-section__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5b6166;
}

.tax-compare-wrap {
  margin-top: 14px;
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e3e9ec;
  display: grid;
  gap: 12px;
}

.tax-compare__headline {
  margin: -18px 0 0;
  display: flex;
  align-items: center;
  gap: 8px;
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  padding: 12px 20px;
  box-sizing: border-box;
  border-radius: 12px 12px 0 0;
  background: #00458c;
  font-size: 22px;
  font-weight: 700;
  color: #ffffff;
}

.tax-compare__headline-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
}

.tax-compare__card {
  border-radius: 12px;
  padding: 20px 16px;
}

.tax-compare__card--primary {
  background: linear-gradient(135deg, #f52c47 0%, #f52c47 62%, #ff6d1f 100%);
  color: #ffffff;
}

.tax-compare__card--secondary {
  background: #f5f6f8;
  border: 1px solid #d1d6da;
  color: #222222;
  opacity: 0.8;
}

.tax-compare__badge {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
}

.tax-compare__badge--dark {
  background: #8b8f94;
  color: #ffffff;
}

.tax-compare__badge--on-gradient {
  background: #ffffff;
  color: #e41d39;
}

.tax-compare__title {
  margin: 10px 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.tax-compare__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}

.tax-compare__list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.tax-compare__item-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.tax-check {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.tax-icon-x {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  margin-top: 2px;
}

.tax-compare__item-title {
  display: block;
  font-weight: 700;
}

.tax-compare__item-desc {
  display: block;
  font-size: 13px;
  line-height: 1.5;
  color: inherit;
  opacity: 0.85;
}

.tax-compare__list--muted .tax-compare__item-desc {
  color: #7a828a;
  opacity: 1;
}

.tax-promo-wrap {
  margin-top: 0;
  background: #ffffff;
  border: 1px solid #e3e9ec;
  border-radius: 12px;
  padding: 18px 20px;
}

.tax-promo-wrap__title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}

.tax-promo-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 4px;
}

/* tax-air.svg에 빨간 배경·비행기가 이미 포함되어 있음 — 중복 배경/필터 제거 */
.tax-promo-head__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.tax-promo-head__icon img {
  width: 32px;
  height: auto;
  display: block;
  vertical-align: top;
}

.tax-promo-head__text {
  flex: 1 1 auto;
  min-width: 0;
}

/* 디자인: 0% #F52C47 → 57% #FF6D1F → 100% #FFF, 대각선(약 105deg) */
.tax-promo-head__highlight {
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  display: inline-block;
  max-width: 100%;
  background-image: linear-gradient(
    105deg,
    #f52c47 0%,
    #ff6d1f 57%,
    #ffa97a 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.tax-promo-head__subtitle {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #222222;
}

.tax-promo-rows {
  margin: 12px 0 0;
}

.tax-promo-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #e3e9ec;
  align-items: start;
}

.tax-promo-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.tax-promo-row dt {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #5b6166;
}

.tax-promo-row dd {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #222222;
}

.tax-promo-row--benefit {
  grid-template-columns: 1fr;
  gap: 8px;
}

.tax-promo-row--benefit dt {
  margin-bottom: 0;
}

.tax-promo-row--benefit dd {
  margin: 0;
}

.tax-promo-banner-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}

.tax-promo-banner {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  vertical-align: top;
}

.tax-promo-banner__text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 14px;
  text-align: center;
  box-sizing: border-box;
  pointer-events: none;
}

.tax-promo-banner__line1 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.tax-promo-banner__line2 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
  color: #ffffff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.tax-promo-banner__line2 strong {
  font-weight: 800;
}

.tax-promo-banner__note {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.95;
  white-space: normal;
}

.tax-promo-footnote {
  margin: 14px 0 0;
  font-size: 12px;
  line-height: 1.5;
  color: #7a828a;
  text-align: center;
}

.tax-feature-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 20px;
  border: 1px solid #e3e9ec;
}

.tax-feature-card__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: #222222;
}

.tax-feature-card__text {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.6;
  color: #222222;
}

.tax-feature-card__text:last-child {
  margin-bottom: 0;
}

.tax-feature-card__point {
  font-weight: 700;
  color: #e41d39;
}

.tax-howto-wrap {
  background: #ffffff;
  border: 1px solid #e3e9ec;
  border-radius: 12px;
  padding: 18px 20px;
}

.tax-howto-wrap__title {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 700;
  color: #222222;
}

.tax-howto-note {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.55;
  color: #222222;
}

.tax-howto-note:last-of-type {
  margin-bottom: 14px;
}

.tax-howto-hero {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  margin-bottom: 16px;
  vertical-align: top;
}

.tax-howto-panels {
  margin-top: 16px;
}

.tax-howto-panel[hidden] {
  display: none !important;
}

.tax-howto-steps-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
  vertical-align: top;
}

/* 75,000원 미만 — 2열 (좌: num SVG 세로선, 우: 이미지·텍스트·배지) */
/* 웹 너비가 커져도 2열 덩어리만 유지·가운데 (우측 1fr 무한 확장으로 num이 시각적으로 왼쪽으로 밀리는 현상 방지) */
.tax-timeline {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  width: 100%;
  max-width: 420px;
  box-sizing: border-box;
}

.tax-timeline > li.tax-timeline__step {
  margin: 0;
  padding: 0;
}

.tax-timeline__step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0 12px;
  align-items: stretch;
  margin: 0;
  padding: 0;
  min-height: 0;
  max-width: 100%;
}

/*
 * contain만 쓰면 행이 길 때 너비 기준 스케일로 세로 레터박스가 생겨 단계 사이 선이 끊겨 보임.
 * cover + 적정 너비(44px)로 세로 연결·가로 크롭 균형.
 */
.tax-timeline__rail {
  display: flex;
  align-items: stretch;
  justify-content: center;
  width: 44px;
  min-width: 0;
  min-height: 0;
  align-self: stretch;
  height: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.tax-timeline__num {
  display: block;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.tax-timeline__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  align-self: stretch;
  min-width: 0;
  min-height: 0;
  padding: 16px 16px;
  text-align: center;
  box-sizing: border-box;
}

.tax-timeline__pic {
  width: 100%;
  max-width: 248px;
  height: auto;
  display: block;
  border-radius: 12px;
  margin: 0 auto 16px;
}

.tax-timeline__title {
  margin: 0 0 3px;
  font-size: 17px;
  font-weight: 700;
  color: #222222;
  text-align: center;
}

.tax-timeline__sub {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.45;
  color: #5b6166;
  text-align: center;
}

.tax-timeline__tag {
  margin: 0 auto;
  display: inline-block;
  max-width: 100%;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
  color: #6b5a18;
  background: #fff9e6;
  padding: 6px 10px;
  border-radius: 6px;
  text-align: center;
}

/* 키오스크 환급 탭 — 실시간위치 .route-tabs / .route-tab 과 동일 (tax-refund-service 전용, 다른 페이지 미적용) */
.tax-howto-tabs.tax-amount-tabs {
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 4px;
  overflow: hidden;
  background: #eeeeee;
}

.tax-howto-tabs .tax-amount-tab {
  line-height: 1.4;
  border: 0;
  background: #eeeeee;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 400;
  color: #222222;
  cursor: pointer;
  width: 100%;
  margin: 0;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
  display: block;
  text-align: center;
}

.tax-howto-tabs .tax-amount-tab.is-active {
  background: #222222;
  color: #ffffff;
  font-weight: 600;
}

.tax-amount-section {
  margin-top: 16px;
}

.tax-amount-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: #222222;
}

.tax-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.tax-step {
  background: #ffffff;
  border: 1px solid #e3e9ec;
  border-radius: 8px;
  padding: 14px 16px;
  display: grid;
  gap: 6px;
}

.tax-step__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tax-step__num {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.tax-step__title {
  font-size: 15px;
  font-weight: 700;
  color: #222222;
}

.tax-step__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #5b6166;
}

.realtime-visual {
  background: linear-gradient(120deg, #d81e37 0%, #ff6d1f 100%);
  padding: 60px 16px 24px;
}

.realtime-visual__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.realtime-visual__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

html[lang="ja"] .realtime-visual__back {
  font-size: 18px;
}

.realtime-visual__back-link {
  display: inline-flex;
}

.realtime-visual__back-link img {
  width: 24px;
  transform: rotate(180deg);
}

.realtime-visual__media {
  width: 110px;
  flex: 0 0 auto;
}

.realtime {
  padding: 18px 16px 32px;
}

.loop-visual {
  background: linear-gradient(120deg, #d81e37 0%, #ff6d1f 100%);
  padding: 60px 16px 24px;
}

.loop-visual__inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.visual__inner,
.qna-visual__inner,
.realtime-visual__inner,
.loop-visual__inner {
  margin: 0 auto;
}

.loop-visual__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

html[lang="ja"] .loop-visual__back {
  font-size: 18px;
}

.loop-visual__back-link {
  display: inline-flex;
}

.loop-visual__back-link img {
  width: 24px;
  transform: rotate(180deg);
}

.loop-visual__media {
  width: 110px;
  flex: 0 0 auto;
}

.loop {
  padding: 18px 16px 32px;
}

.loop-route {
  margin-top: 0px;
  background: #ffffff;
  border-radius: 4px;
  padding: 20px 16px;
  color: #222222;
}

.loop-route__body {
  display: flex;
  align-items: stretch;
  gap: 0px;
}

.loop-route__map {
  width: 36px;
  flex: 0 0 auto;
  align-self: stretch;
}

.loop-route__map img {
  width: auto;
  height: 100%;
  display: block;
}

.loop-route__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0px;
  grid-auto-rows: 36px;
  flex: 1 1 auto;
}

.loop-route__item {
  display: flex;
  align-items: center;
  gap: 0px;
  height: 36px;
  padding: 0 10px;
  border-radius: 8px;
  color: #222222;
  cursor: pointer;
}

.loop-route__time {
  font-size: 13px;
  min-width: 40px;
  font-weight: 500;
  color: #222222;
}

.loop-route__name {
  font-weight: 500;
  color: #222222;
  white-space: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

html[lang="en"] .loop-route__name,
html[lang="ja"] .loop-route__name {
  font-size: 13px;
}

.loop-route__item.is-active {
  background: #ffefe0;
}

.loop-route__item.is-start .loop-route__time,
.loop-route__item.is-start .loop-route__name {
  color: #ee6916;
  font-weight: 500;
}

.loop-route__item.is-end {
  align-items: center;
  gap: 0px;
  color: #d81e37;
  font-weight: 500;
}

.loop-route__item.is-end .loop-route__time,
.loop-route__item.is-end .loop-route__name {
  color: #d81e37;
  font-weight: 500;
}

@media (hover: hover) and (pointer: fine) {
  .loop-route__item:hover {
    background: #ffefe0;
  }
}

.loop-route__badge {
  background: #d81e37;
  color: #ffffff;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 16px;
  flex: 0 0 auto;
}

.loop-route__empty {
  padding: 12px 0;
  color: #5b6166;
  font-size: 14px;
}

.route-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 4px;
  overflow: hidden;
  background: #ffffff;
}

.route-tab {
  line-height: 1.4;
  border: 0;
  background: #ffffff;
  padding: 14px 12px;
  font-size: 15px;
  font-weight: 400;
  color: #222222;
  cursor: pointer;
}

.route-tab.is-active {
  background: #222222;
  color: #ffffff;
  font-weight: 600;
}

.route-map {
  background: #ffffff;
  border-radius: 4px;
  padding: 20px 16px;
  color: #222222;
  overflow: visible;
}

.route-map__title {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  color: #222222;
  text-align: center;
}

.route-map__body {
  display: grid;
  gap: 0px;
  justify-items: center;
}

.route-map__panel {
  display: none;
}

.route-map__panel.is-active {
  display: block;
}

.route-map__panel.is-waiting .route-map__bus-wrap {
  --bus-offset-x: 6px;
  --bus-offset-y: 8px;
} 

.route-map__canvas {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 16px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: visible;
}

.route-map__canvas--narrow {
  max-width: 260px;
}

.route-map__canvas--narrow .route-map__svg {
  max-width: 44px;
}

.route-map__svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  margin: 0 auto;
  display: block;
  position: relative;
  z-index: 1;
}

/* loop 노선 중앙 정렬 */
.route-map__panel[data-route-panel="t2-loop"] .route-map__svg {
  transform: translateX(0);
}

.route-map__labels {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  z-index: 4;
}

.route-map__label {
  position: absolute;
  top: var(--stop-top);
  font-size: 14px;
  color: #222222;
  white-space: normal;
  max-width: 120px;
  line-height: 1.3;
  transform: translateY(-50%);
  cursor: default;
  z-index: 5; /* ETA/버스보다 항상 위 */
}

.route-map__label:focus {
  outline: 2px solid rgba(238, 105, 22, 0.4);
  outline-offset: 2px;
}

.route-map__label[data-side="left"] {
  right: 72%;
  text-align: right;
  padding-right: 10px;
  transform: translateY(-50%);
}

.route-map__label[data-side="right"] {
  left: 72%;
  text-align: left;
  padding-left: 10px;
  transform: translateY(-50%);
}

.route-map__label--t2[data-side="right"] {
  left: 55%;
}

.route-map__bus-wrap {
  position: absolute;
  transform:
    translate(
      calc(-50% + var(--bus-offset-x, 0px)),
      calc(-50% + var(--bus-offset-y, 0px))
    ); 
  z-index: 100; /* SVG보다 위 */
}

/* 좁은 노선 */
.route-map__bus-wrap--narrow {
  left: 50%;
}

/* 버스 아이콘 */
.route-map__bus {
  width: 36px;
  display: block;
  position: relative;
  z-index: 10;    /* ETA보다 위 */
}

/* ETA 말풍선 */
.route-map__eta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: all 0.3s ease;
  background: #e84c3d;
  color: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  z-index: 5;
}

/* narrow 버전 */
.route-map__eta--narrow {
  right: 42px;
}

/* 버스 오른쪽 라인 → ETA는 왼쪽 */
.route-map__eta.eta-left {
  right: 100%;          /* 버스 너비 기준 바깥 */
  margin-right: 0px;   /* 버스와 간격 */
  left: auto;
  text-align: left;
}
	
/* 버스 왼쪽 라인 → ETA는 오른쪽 */
.route-map__eta.eta-right {
  left: 100%;           /* 버스 너비 기준 바깥 */
  margin-left: 0px;    /* 버스와 간격 */
  right: auto;
  text-align: right;
} 
	
.route-map__destination {
  margin: 8px 0 0;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
}

.stop-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
}

.stop-modal.is-hidden {
  display: none;
}

.stop-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.stop-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(92vw, 360px);
  margin: 20px auto 24px;
  background: #ffffff;
  border-radius: 12px;
  padding: 16px;
  color: #222222;
}

/* 실시간 위치 준비 중 팝업 */
.realtime-modal .stop-modal__dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-height: calc(100vh - 40px);
  overflow: auto;
}

.stop-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.stop-modal__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #222222;
}

.stop-modal__close {
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}

.stop-modal__map img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

.stop-modal__images {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.stop-modal__images img {
  width: 100%;
  display: block;
  border-radius: 8px;
}

.stop-modal__action {
  width: 100%;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid #d4dce0;
  border-radius: 4px;
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: #222222;
  cursor: pointer;
}

.route-map__stops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: none;
}

.route-map__status {
  margin-top: 16px;
  text-align: center;
  font-size: 14px;
  color: #5b6166;
}

/* 현재 향하고 있는 정류장 */
.route-map__stops li.is-next-stop {
  color: #EE6916;
  font-weight: 700;
}

.route-map__label.is-next-stop {
  color: #EE6916;
  font-weight: 700;
  transform: scale(1.05);
}

.route-map__status strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  color: #222222;
}

.faq-list {
  display: grid;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.faq-item__header {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.5;
  color: #222222;
  cursor: pointer;
}

.faq-item__question {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
}

.faq-item__num {
  flex: 0 0 auto;
}

.faq-item__text {
  flex: 1 1 auto;
  min-width: 0;
}

.faq-item__icon {
  width: 18px;
  transition: transform 0.2s ease;
}

.faq-item__content {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #5b6166;
  border-top: 1px solid #e3e9ec;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.faq-item.is-open .faq-item__content {
  opacity: 1;
  padding: 0 16px 12px;
}

.faq-item.is-open .faq-item__icon {
  transform: rotate(180deg);
}


@media (max-width: 480px) {
  html[lang="en"].page-tax-refund .tax-compare__badge {
    height: auto;
    min-height: 24px;
    padding: 4px 8px;
    font-size: 11px;
    line-height: 1.25;
    white-space: normal;
    word-break: break-word;
  }

  html[lang="en"].page-tax-refund .tax-promo-banner__text {
    padding: 8px 10px;
  }

  html[lang="en"].page-tax-refund .tax-promo-banner__line1 {
    margin: 0 0 4px;
    font-size: 11px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  html[lang="en"].page-tax-refund .tax-promo-banner__line2 {
    font-size: 12px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  html[lang="en"].page-tax-refund .tax-promo-banner__note {
    display: block;
    font-size: 10px;
    line-height: 1.2;
    overflow-wrap: anywhere;
  }

  .route-map__eta {
    font-size: 13px;
    padding: 6px 10px;
  }
} 


@media (min-width: 768px) {
  .visual,
  .realtime-visual,
  .loop-visual,
  .qna-visual {
    padding-top: 72px;
    padding-left: 24px;
    padding-right: 24px;
  }
  .visual__title{
    font-size: 32px;
  }
  .visual__sub {
    font-size: 18px;
  }

  .visual {
    padding: 64px 24px 34px;
  }
  .visual__inner,
  .qna-visual__inner,
  .realtime-visual__inner,
  .loop-visual__inner {
    max-width: 800px;
  }

  html.page-tax-refund .tax-visual__inner {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
  }

  html.page-tax-refund .tax-visual {
    padding: 68px 24px 40px;
  }

  .lang-tabs {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  html.page-tax-refund .tax-visual .lang-tabs {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
  }

  .main,
  .realtime,
  .loop,
  .qna,
  .tax {
    max-width: 800px;
    margin: 0 auto;
    padding: 18px 0px 32px;
  }

  html.page-tax-refund .tax-tabs {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    border-radius: 0 0 4px 4px;
  }

  .main-actions {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .action-button--qna-inline {
    display: flex;
  }

  .main-actions--qna {
    display: none;
  }

  .action-button--qna,
  .action-button--qna-inline {
    background: #222222;
  }

  .route-cards {
    grid-template-columns: repeat(2, 1fr);
  }

  .route-map,
  .loop-route {
    padding: 24px;
  }

  .route-map__labels{
    width:100%;
  }
  .route-map__canvas {
    max-width: 90%;
  }

  .route-map__label[data-side="left"] {
    right: 63%;
  }
  
  .route-map__label[data-side="right"] {
    left: 63%;
  }
  
  .route-map__label--t2[data-side="right"] {
    left: 53%;
  }

  html[lang="en"] .loop-route__name,
  html[lang="ja"] .loop-route__name {
    font-size: 14px;
  }

  .route-tab {
    font-size: 16px;
  }

  .tax-howto-tabs .tax-amount-tab {
    font-size: 16px;
  }

  .tax-promo-banner__text {
    padding: 14px 18px;
  }

  .tax-promo-banner__line1 {
    margin: 0 0 8px;
    font-size: 17px;
  }

  .tax-promo-banner__line2 {
    font-size: 19px;
  }

  .tax-promo-banner__note {
    font-size: 16px;
    font-weight: 600;
  }

  .route-map__title {
    font-size: 16px;
  }

  .route-map__label {
    font-size: 16px;
  }

  .route-map__destination {
    font-size: 16px;
  }
  
}

@media (min-width: 1024px) {

  .main {
    padding: 24px 0px 32px;
  }

  .visual {
    padding: 64px 24px 34px;
  }
  .visual__title{
    font-size: 36px;
  }
  .visual__sub {
    font-size: 22px;
  }

  .tax-promo-banner__text {
    padding: 16px 22px;
  }

  .tax-promo-banner__line1 {
    font-size: 18px;
  }

  .tax-promo-banner__line2 {
    font-size: 21px;
  }

  .tax-promo-banner__note {
    font-size: 17px;
    font-weight: 600;
  }

  /*.visual__title {
    font-size: 28px;
  }

  .visual__sub {
    font-size: 16px;
  }

  .visual__media {
    width: 140px;
  }

  .qna-visual {
    padding: 28px 24px 32px;
  }

  .qna-visual__media {
    width: 140px;
  }

  .realtime-visual__media {
    width: 140px;
  }

  .loop-visual__media {
    width: 140px;
  }

  .visual__inner,
  .qna-visual__inner,
  .realtime-visual__inner,
  .loop-visual__inner {
    max-width: 960px;
  }

  .lang-tabs {
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
  }

  .main,
  .realtime,
  .loop,
  .qna {
    max-width: 960px;
    margin: 0 auto;
  } */
}
