/* ============================================================
   Aeronex Airlines — 홈페이지 (KOREAN AIR 구조 참고, Aeronex 브랜드 적용)
   style.css + booking.css 위에 얹는 홈 전용 오버레이 스타일시트
   ============================================================ */

body { padding-top: 0; }

/* ---------- 유틸리티 바 ---------- */
.util-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 210;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.util-bar-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 8px clamp(20px, 5vw, 48px);
}
.util-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-faint);
  white-space: nowrap;
}
.util-link:hover { color: var(--gold); }
.util-sep { width: 1px; height: 14px; background: var(--border-strong); }
.util-lang { margin-left: auto; position: relative; display: flex; align-items: center; gap: 2px; }
.util-lang .lang-menu { right: 0; left: auto; }
.util-auth { display: flex; align-items: center; }
.util-auth .btn {
  padding: 0; background: none; border: none; box-shadow: none;
  color: var(--ink-faint); font-size: 0.78rem; font-weight: 500; border-radius: 0;
}
.util-auth .btn:hover { color: var(--gold); transform: none; box-shadow: none; }

/* ---------- KOR/ENG 언어 토글 ---------- */
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.lang-toggle-btn {
  border: none;
  background: transparent;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-faint);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.lang-toggle-btn.is-active {
  background: var(--gold);
  color: #fff;
}
.lang-more {
  border: none;
  background: none;
  color: var(--ink-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  padding: 4px;
}
.lang-more:hover { color: var(--gold); }

/* ---------- 메인 네브 (유틸바 아래로 밀기) ---------- */
.kh-navbar {
  top: 33px;
  padding: 14px clamp(20px, 5vw, 48px) !important;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  justify-content: flex-start;
}
.kh-navbar .nav-logo { font-size: 1.08rem; }
.kh-navbar .nav-logo .mark { width: 28px; height: 28px; }
.kh-navbar .nav-links { gap: 30px; margin-left: clamp(40px, 8vw, 130px); }
.kh-navbar .nav-links a { font-size: 0.92rem; font-weight: 600; color: var(--ink); }
.kh-navbar .nav-links a:hover { color: var(--gold); }

.nav-search-mini {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--ink-faint);
  font-size: 0.8rem;
}
.nav-search-mini input {
  border: none; background: none; outline: none;
  font-size: 0.8rem; color: var(--ink); width: 150px;
}
.btn-outline-sm {
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--gold);
}
.btn-outline-sm:hover { border-color: var(--gold); }

/* ---------- 히어로 밴드 + 검색 위젯 ---------- */
.kh-hero {
  position: relative;
  padding-top: 150px;
  padding-bottom: 56px;
  overflow: hidden;
}
.kh-hero-band {
  position: absolute; inset: 0; z-index: 0;
  background: #f3f1ea;
}
.kh-hero-inner { position: relative; z-index: 1; }

.kh-hero-heading {
  text-align: left;
  margin-bottom: 34px;
}
.kh-hero-heading h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.kh-hero-heading p {
  margin-top: 10px;
  font-size: 1rem;
  color: var(--ink-dim);
}

.kh-search-panel {
  display: block;
  background: var(--surface);
  padding: 24px clamp(18px, 3vw, 32px) 26px;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.28);
  border: 1px solid var(--border);
}
.kh-panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 10px;
}
.kh-flexible-check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  color: var(--ink-faint);
  cursor: pointer;
}
.kh-flexible-check input { accent-color: var(--gold); }

/* 마일리지 사용 토글 스위치 */
.kh-mileage-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.84rem;
  color: var(--ink-dim);
  cursor: pointer;
  user-select: none;
}
.kh-switch { position: relative; width: 38px; height: 22px; display: inline-block; }
.kh-switch input {
  position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1;
}
.kh-switch-track {
  position: absolute; inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  transition: background 0.2s, border-color 0.2s;
}
.kh-switch-thumb {
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15,23,42,0.3);
  transition: transform 0.2s var(--ease-out);
}
.kh-switch input:checked ~ .kh-switch-track { background: var(--gold); border-color: var(--gold); }
.kh-switch input:checked ~ .kh-switch-track .kh-switch-thumb { transform: translateX(16px); }

.kh-search-panel .field label {
  font-family: var(--font-display);
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-faint);
}
.kh-fields-row {
  display: flex;
  align-items: end;
  gap: 22px;
  flex-wrap: wrap;
}
.kh-fields-row .field { flex: 1 1 150px; }
.kh-route-field {
  display: flex;
  align-items: end;
  gap: 8px;
  flex: 2.2 1 320px;
}
.kh-route-field .field { flex: 1; }
.kh-swap-btn { width: 36px; height: 36px; margin-bottom: 13px; flex-shrink: 0; }
.kh-date-field { min-width: 200px; flex: 1.3 1 200px; }
.kh-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 10px;
}
.kh-date-range input[type="date"] {
  border: none;
  background: transparent;
  padding: 13px 4px;
  font-size: 0.88rem;
  min-width: 0;
  flex: 1;
}
.kh-date-range input:focus { outline: none; }
.kh-date-sep { color: var(--ink-faint); flex-shrink: 0; }
#homeRetDateField { display: flex; flex: 1; min-width: 0; }
.kh-class-field { min-width: 150px; flex: 1 1 150px; }
.kh-class-field select {
  width: 100%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font-size: 0.88rem;
}
.kh-pax-field { position: relative; min-width: 150px; flex: 1 1 150px; }
.kh-pax-summary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.88rem;
  cursor: pointer;
  white-space: nowrap;
}
.kh-pax-popover {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  box-shadow: 0 20px 45px -20px rgba(15,23,42,0.32);
  z-index: 60;
}
.kh-pax-popover.is-open { display: block; }
.kh-search-submit-btn {
  border-radius: var(--radius-sm);
  padding: 15px 30px;
  flex: 0 0 auto;
}

/* ---------- 히어로 미디어 캐러셀 (사진/동영상) ---------- */
.kh-hero-media-section { padding-top: 0; padding-bottom: 56px; }
.kh-hero-carousel {
  position: relative;
  width: 100%;
  height: clamp(280px, 42vw, 560px);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(150deg, #101c34, #1c3358);
  box-shadow: 0 30px 60px -30px rgba(15, 23, 42, 0.45);
}
.kh-hc-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.kh-hc-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.kh-hc-slide img, .kh-hc-slide video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.kh-hc-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(6, 12, 26, 0.72) 0%, rgba(6, 12, 26, 0.08) 34%, transparent 60%);
  pointer-events: none;
}
.kh-hc-caption {
  position: absolute;
  left: clamp(20px, 3vw, 40px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 2;
  color: #fff;
}
.kh-hc-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f0d878;
}
.kh-hc-caption-text {
  margin-top: 6px;
  font-size: clamp(1.05rem, 2.2vw, 1.5rem);
  font-weight: 800;
  text-shadow: 0 2px 12px rgba(0,0,0,0.35);
}
.kh-hc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(6px);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}
.kh-hc-arrow:hover { background: rgba(255, 255, 255, 0.32); }
.kh-hc-prev { left: 18px; }
.kh-hc-next { right: 18px; }
.kh-hc-dots {
  position: absolute;
  right: clamp(20px, 3vw, 32px);
  bottom: clamp(18px, 3vw, 32px);
  z-index: 3;
  display: flex;
  gap: 6px;
}
.kh-hc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.kh-hc-dot.is-active { background: #fff; transform: scale(1.25); }
@media (max-width: 640px) {
  .kh-hc-arrow { width: 34px; height: 34px; }
  .kh-hc-dots { display: none; }
}

/* ---------- 프로모 배너 ---------- */
.kh-promo-banner {
  text-align: center;
  padding: 40px 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, #eef3fb, #f6eef2);
  border: 1px solid var(--border);
}
.kh-promo-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 10px;
}
.kh-promo-banner h3 { font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; margin-bottom: 18px; }

/* ---------- 프로모 3분할 그리드 ---------- */
.kh-promo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kh-promo-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 26px;
  text-align: left;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 1px 2px rgba(15,23,42,0.04);
}
.kh-promo-tile:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -26px rgba(15,23,42,0.22); border-color: var(--border-strong); }
.kh-tile-art {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  background: rgba(11, 42, 107, 0.06);
  color: var(--gold);
}
.kh-tile-art svg { width: 22px; height: 22px; }
.kh-promo-tile p { font-size: 0.92rem; color: var(--ink-dim); line-height: 1.65; }

/* ---------- 앱 프로모 배너 ---------- */
.kh-app-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold-soft));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 34px clamp(24px, 4vw, 44px);
}
.kh-app-banner h3 { font-size: clamp(1.1rem, 2.2vw, 1.4rem); font-weight: 800; margin: 8px 0 6px; }
.kh-app-banner p { font-size: 0.86rem; color: rgba(255,255,255,0.8); margin-bottom: 18px; }
.kh-app-phone {
  width: 84px; height: 84px;
  border-radius: 22px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.3);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.kh-app-phone-notch {
  position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 4px; border-radius: 2px; background: rgba(255,255,255,0.4);
}

/* ---------- 푸터 인증 뱃지 줄 ---------- */
.kh-footer-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  margin-top: 26px;
}
.kh-badge {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 12px;
}

@media (max-width: 960px) {
  .kh-navbar .nav-links { display: none; }
  .util-bar-inner { overflow-x: auto; }
  .kh-fields-row { flex-direction: column; align-items: stretch; gap: 14px; }
  .kh-route-field { flex-direction: column; align-items: stretch; }
  .kh-swap-btn { align-self: center; transform: rotate(90deg); margin-bottom: 0; }
  .kh-promo-grid { grid-template-columns: 1fr; }
  .kh-app-banner { flex-direction: column; text-align: center; }
  .kh-pax-popover { left: 0; right: auto; width: 100%; }
  .kh-search-submit-btn { width: 100%; justify-content: center; }
  .kh-hero-heading { text-align: left; }
}
