/* 시안 9 하단 팝업(바텀 시트) — 혜택 카드 2장(강습생 바이저 헬멧 · 대중교통 무료 픽업)을 옆으로 넘긴다.
   폰은 아래에서 올라오는 시트에 다음 카드가 살짝 보이는 가로 스크롤, 데스크톱은 가운데 아래에 두 장 나란히. 하단 고정 바·상담 알약보다 위 */
.promo9 {
  position: fixed;
  inset: 0;
  z-index: 1200;
}
.promo9[hidden] {
  display: none;
}
.promo9-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(9, 34, 58, 0.55);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.promo9-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  overflow: auto;
  background: #fff;
  color: var(--ink);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -20px 60px rgba(9, 34, 58, 0.35);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.2, 0.8, 0.2, 1);
  padding-bottom: env(safe-area-inset-bottom);
}
.promo9-sheet:focus {
  outline: none;
}
/* 폰 — 세로 끌기는 스크립트가(아래로 끌어 닫기), 가로는 브라우저가(카드 넘김) */
@media (max-width: 759px) {
  .promo9-sheet {
    touch-action: pan-x;
    user-select: none;
    -webkit-user-select: none;
  }
  .promo9-sheet img {
    -webkit-user-drag: none;
    pointer-events: none;
  }
}
.promo9.is-open .promo9-backdrop {
  opacity: 1;
}
.promo9.is-open .promo9-sheet {
  transform: none;
}
/* 손잡이 — 잡는 자리는 시트 윗변 전체(높이 28px), 막대는 조금 진하게 해 「끌어 내리는 곳」이 보이게 */
.promo9-handle {
  display: block;
  height: 28px;
  margin: 0;
  cursor: grab;
  background: linear-gradient(#c3d0d9, #c3d0d9) center 12px / 48px 5px no-repeat;
  border-radius: 999px;
}
/* 카드 묶음 — 가로로 넘김, 다음 카드가 14% 보인다 */
.promo9-deck {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84%;
  gap: 12px;
  padding: 4px 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 16px;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.promo9-deck::-webkit-scrollbar {
  display: none;
}
.promo9-slot {
  scroll-snap-align: start;
  min-width: 0;
}
/* 카드 하나 = 링크 하나(사진 + 제목) */
.promo9-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 1px solid #e3eaef;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.promo9-card:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: -3px;
}
.promo9-photo {
  display: block;
  width: 100%;
  height: 20vh;
  min-height: 130px;
  max-height: 180px;
  object-fit: cover;
}
.promo9-body {
  display: block;
  flex: 1 1 auto;
  padding: 12px 14px 14px;
  background: #f3f7f9; /* 사진 아래 글 칸은 옅은 색 — 빈 자리가 허옇게 뜨지 않게(대표 2026-10-05) */
}
.promo9-eyebrow {
  display: block;
  margin: 0 0 4px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blue);
}
.promo9-title {
  display: block;
  margin: 0;
  font-size: 23px;
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.promo9-title b {
  color: var(--blue);
}
/* 「강습 보기 ›」「픽업 안내 ›」는 제목 마지막 줄(「무료 대여.」) 오른쪽에 — 아래 따로 한 줄을 두지 않아 빈 자리가 없다(대표 2026-10-05) */
.promo9-line {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
}
.promo9-line > .promo9-title {
  flex: 1 1 auto;
  min-width: 0;
}
.promo9-more {
  flex: 0 0 auto;
  margin-bottom: 3px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  color: var(--blue);
}
/* 아래 줄 — 왼쪽 「오늘 하루 열지 않음」, 가운데 1/2, 오른쪽 「닫기」 */
.promo9-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 10px 8px;
}
.promo9-count {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.promo9-count b {
  color: var(--ink);
}
.promo9-mute,
.promo9-close {
  min-height: 44px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.promo9-close {
  color: var(--ink);
  font-weight: 700;
}
/* 데스크톱 — 가운데 아래, 두 장 나란히(넘김 없음) */
/* PC(760px~) — 사진 팝업은 쓰지 않고 화면 맨 위 글자 띠(트리니티항공식, 대표 2026-10-05). 띠가 있는 동안 떠 있는 헤더를 띠 높이만큼 내린다 */
@media (min-width: 760px) {
  .promo9 {
    display: none !important;
  }
}
.promo9-bar {
  display: none;
}
@media (min-width: 760px) {
  .promo9-bar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 60;
    display: block;
    /* 52 → 40px(대표 2026-10-18 「위아래 여백 남는 거 줄여 줘」) → 32px(2026-10-20 「조금 더 높이 얇게」) */
    height: 32px;
    background: #22343f;
    color: #fff;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
  }
  .promo9-bar[hidden] {
    display: none;
  }
  .promo9-bar.is-open {
    transform: none;
  }
  .promo9-bar-in {
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(1180px, calc(100% - 48px));
    height: 100%;
    margin-inline: auto;
    font-size: 15px;
  }
  .promo9-bar-icon {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 999px;
    background: #fee500;
    color: #22343f;
  }
  .promo9-bar-icon svg {
    width: 12px;
    height: 12px;
  }
  .promo9-bar-track {
    flex: 1 1 auto;
    min-width: 0;
  }
  .promo9-bar-item {
    display: block;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    animation: promo9-bar-in 0.35s ease;
  }
  .promo9-bar-item[hidden] {
    display: none;
  }
  .promo9-bar-item:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
  @keyframes promo9-bar-in {
    from {
      opacity: 0;
      transform: translateY(6px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  .promo9-bar button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 6px;
    border: 0;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
  }
  .promo9-bar button:focus-visible,
  .promo9-bar-item:focus-visible {
    outline: 2px solid #fee500;
    outline-offset: 2px;
  }
  .promo9-bar-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.3);
  }
  .promo9-bar-nav {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .promo9-bar-nav button {
    font-size: 20px;
    line-height: 1;
  }
  .promo9-bar-count {
    min-width: 30px;
    text-align: center;
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    color: rgba(255, 255, 255, 0.8);
  }
  .promo9-bar-count b {
    color: #fff;
  }
  .promo9-bar-close {
    margin-left: 6px;
  }
  /* 접힌 띠 다시 보기 탭 — 헤더 위 빈 칸(24px) 가운데에 띠 색으로 매달린 작은 손잡이(대표 2026-10-10 「아래 모양 아이콘 눌러서 내리는 걸로」) */
  .promo9-tab {
    position: absolute;
    top: 0;
    left: 50%;
    z-index: 60;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 24px;
    padding: 0 12px 0 6px;
    border: 0;
    border-radius: 0 0 10px 10px;
    background: #22343f;
    color: #fff;
    font: inherit;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(9, 34, 58, 0.22);
    transform: translate(-50%, -100%);
    transition: transform 0.25s ease;
  }
  .promo9-tab[hidden] {
    display: none;
  }
  .promo9-tab.is-shown {
    transform: translate(-50%, 0);
  }
  .promo9-tab:hover {
    filter: brightness(1.15);
  }
  .promo9-tab:focus-visible {
    outline: 2px solid #fee500;
    outline-offset: 2px;
  }
  .promo9-tab-icon {
    display: grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #fee500;
    color: #22343f;
  }
  .promo9-tab-icon svg {
    width: 11px;
    height: 11px;
  }
  /* 띠가 열려 있는 동안 떠 있는 헤더(top 24px)를 띠 아래로 */
  html.promo9-bar-on .home-floating .header {
    top: calc(24px + 32px);
    transition: top 0.3s ease;
  }
  html.promo9-bar-off .home-floating .header {
    transition: top 0.3s ease;
  }
}
@media (prefers-reduced-motion: reduce) {
  .promo9-backdrop,
  .promo9-sheet,
  .promo9-bar,
  .promo9-tab,
  html.promo9-bar-on .home-floating .header {
    transition: none;
  }
  .promo9-bar-item {
    animation: none;
  }
  .promo9-deck {
    scroll-behavior: auto;
  }
}
