/**
 * OMNI-NEXUS KCTA TOUR 메인(index.html) 전용 스타일.
 * 인라인 <style> 분리 — tailwind-built.css · b2c-nav.css 와 함께 로드.
 */
/* 로고·배너 반드시 노출 - 외부파일/스크립트 무관 */
.kt-logo-img{display:block!important;visibility:visible!important;opacity:1!important;width:52px!important;height:52px!important;min-width:52px!important;min-height:52px!important;object-fit:contain}
.kt-top-logo{display:block!important;visibility:visible!important;opacity:1!important;width:28px!important;height:28px!important;min-width:28px!important;min-height:28px!important;object-fit:contain}
#top-bar-logo,#nav-logo,#hero-banner{display:flex!important;visibility:visible!important;opacity:1!important}
/* flex-col + items-center/items-end 이면 자식이 가로로 줄어들어 히어로 너비·배경이 0처럼 보일 수 있음 */
/* z-index 낮추면 fixed 캐릭터(#character-display)가 홍보·히어로보다 아래로 깔려 모바일에서 안 보일 수 있음 */
#hero-banner{min-height:320px!important;margin-top:5px!important;flex-direction:column!important;align-items:center!important;width:100%!important;max-width:100%!important;position:relative!important;z-index:10!important}
#recommend-products .kt-image-credit{display:none!important}

body { font-family: 'Noto Sans KR', system-ui, -apple-system, 'Segoe UI', sans-serif; margin: 0; }
.omni-nexus-kcta-container { position: relative; width: 100%; max-width: 1400px; margin: 0 auto; overflow: visible; }
@keyframes char-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes char-summon-appear { 0%{opacity:0;transform:scale(0.6) translateY(10px)} 100%{opacity:1;transform:scale(1) translateY(0)} }
.char-summon { animation: char-float 2.5s ease-in-out infinite; }
.char-summon-appear { animation: char-summon-appear 0.6s ease-out forwards; }
.img-trim { object-fit: cover; object-position: center center; }
.kt-logo { font-weight: 900; letter-spacing: -0.5px; }
.kt-nav-logo { display: flex; align-items: center; gap: 1rem; flex-shrink: 0; position: relative; z-index: 2; }
.kt-nav-logo svg { flex-shrink: 0; }
.char-3d { perspective: 1000px; transform-style: preserve-3d; }
.char-3d .char-card-3d { transform: rotateY(-8deg) rotateX(4deg); transition: all 0.3s ease; box-shadow: 8px 8px 0 rgba(0,78,124,.15), 0 10px 25px rgba(0,0,0,.08); border: 2px solid transparent; cursor: pointer; transform-style: preserve-3d; }
.char-3d .char-card-3d:hover { transform: rotateY(0deg) rotateX(0deg) translateY(-10px) translateZ(30px) scale(1.05); box-shadow: 0 20px 25px -5px rgba(0,0,0,.1); border-color: #004e7c; }
/* 메인 17지자체 미니카드: 히어로 그리드에 맞게 수평 정렬(과한 3D 기울기 제거) */
.char-3d .char-card-3d.char-mini { transform: none; box-shadow: 0 2px 10px rgba(0,78,124,.1); }
.char-3d .char-card-3d.char-mini:hover { transform: translateY(-4px) scale(1.04); box-shadow: 0 10px 22px rgba(0,0,0,.12); border-color: #004e7c; }
#section-characters-home .char-strip-row { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; padding-bottom: 2px; }
#character-display .kt-char-quick a { min-height: 44px; }
.char-card-3d { position: relative; }
.char-msg { display: none; position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); margin-bottom: 6px; padding: 6px 12px; background: #004e7c; color: #fff; font-size: 11px; font-weight: bold; border-radius: 8px; white-space: nowrap; z-index: 10; box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.char-card-3d:hover .char-msg { display: block; }
@media (max-width: 768px) {
    .nav-cat { position: fixed; top: 0; right: -100%; width: 80%; max-width: 300px; height: 100vh; background: #fff; box-shadow: -4px 0 20px rgba(0,0,0,.15); z-index: 100; flex-direction: column; align-items: stretch; padding: 80px 24px 24px; gap: 0; transition: right .3s; margin-left: 0 !important; }
    .nav-cat.open { right: 0; }
    .nav-cat li { border-bottom: 1px solid #eee; }
    .nav-cat a, .nav-cat button { display: block; padding: 16px; text-align: left; width: 100%; }
    .nav-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.4); z-index: 99; }
    .nav-overlay.open { display: block; }
    .hero-cta-cluster { bottom: 6% !important; width: min(100%, 36rem) !important; padding-left: 0.5rem; padding-right: 0.5rem; }
    .hero-form { flex: 1 1 100% !important; width: 100% !important; justify-content: center !important; }
    .hero-form select, .hero-form input { font-size: 12px !important; }
}
/* 히어로: 예약하기(폼) + 바로 예약 — 한 덩어리로 수평·수직 정렬 */
/* tailwind-built.css 에 bottom-[10%]·-translate-x-1/2 등이 없을 때 absolute 만 먹어 상단에 붙는 문제 방지 */
.hero-cta-cluster {
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: 10%;
    z-index: 20;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.75rem 1rem;
    width: min(96%, 56rem);
    pointer-events: auto;
}
.hero-form {
    margin-top: 0 !important;
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center;
}
.hero-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
#hero-main-reserve-label {
    padding: 0.75rem 1.5rem;
    font-size: 0.9375rem;
    line-height: 1.25;
    border-radius: 0.75rem;
}
@media (min-width: 640px) {
    #hero-main-reserve-label {
        padding: 0.75rem 1.75rem;
        font-size: 1rem;
    }
}
.hero-slide { opacity: 0; transition: opacity .72s ease-in-out; z-index: 1; will-change: opacity; backface-visibility: hidden; transform: translateZ(0); }
.hero-slide-active { opacity: 1; z-index: 2; }
/* Tailwind preflight img{max-width:100%;height:auto} 무력화 — 메인·추천 카드 이미지 필수 노출 */
/* 히어로 실사·SVG 공통: 박스(3:2)에 맞춤 — 중앙 기준 크롭 */
#hero-banner .hero-slide-img-el,
#hero-banner #hero-underlay-img.hero-underlay-img-el{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover!important;object-position:center center!important;
}
#hero-banner .hero-slide-box{width:100%!important;max-width:1400px;min-width:0;min-height:320px!important;aspect-ratio:3/2;flex-shrink:0;position:relative;background:#e2e8f0;overflow:hidden}
#hero-banner #hero-slide-root{overflow:hidden;border-radius:inherit}
#recommend-grid .recommend-thumb-wrap{position:relative;min-height:11rem!important;height:11rem!important;overflow:hidden}
#home-travel-services-section .home-svc-thumb{position:relative;min-height:11rem!important;height:11rem!important;overflow:hidden}
/* 분야별 UI 톤 통일: 브랜드 #004e7c · 슬레이트 보조 · 동일 필(칩) 규격 */
.kt-field-pill {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 40px; padding: 0.375rem 0.875rem; border-radius: 9999px;
    font-size: 0.75rem; line-height: 1.2; font-weight: 900;
    border-width: 1px; box-shadow: 0 1px 2px rgb(15 23 42 / 0.06);
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.kt-field-pill:hover { box-shadow: 0 2px 6px rgb(15 23 42 / 0.08); }
.kt-field-pill--ferry { background: #fff; border-color: rgb(125 211 252); color: #0c4a6e; }
.kt-field-pill--ferry:hover { background: rgb(240 249 255); }
.kt-field-pill--flight { background: #fff; border-color: rgb(165 180 252); color: #312e81; }
.kt-field-pill--flight:hover { background: rgb(238 242 255); }
.kt-field-pill--rail { background: #fff; border-color: rgb(110 231 183); color: #064e3b; }
.kt-field-pill--rail:hover { background: rgb(236 253 245); }
.kt-field-pill--bus { background: #fff; border-color: rgb(252 211 77); color: #78350f; }
.kt-field-pill--bus:hover { background: rgb(255 251 235); }
.kt-field-pill--food { background: #fff; border-color: rgb(203 213 225); color: rgb(30 41 59); }
.kt-field-pill--food:hover { background: rgb(248 250 252); }
.kt-field-pill--lodging { background: #fff; border-color: rgb(196 181 253); color: rgb(76 29 149); }
.kt-field-pill--lodging:hover { background: rgb(245 243 255); }
.kt-field-pill--news { background: #fff; border: 2px solid #004e7c; color: #004e7c; }
.kt-field-pill--news:hover { background: rgba(0,78,124,0.06); }
#tourism-info-hub .grid > a {
    box-shadow: 0 1px 2px rgb(15 23 42 / 0.06), 0 0 0 1px rgb(241 245 249 / 0.95);
}
#recommend-grid .recommend-thumb-wrap img[data-st-slot]{
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;
  object-fit:cover!important;object-position:center center!important;min-height:11rem!important;
}
.hero-slide-dot.hero-dot-active { width: 1.5rem; background: #fff !important; opacity: 1 !important; }
/* 메인 배너: 텍스트는 둥근 박스 안에만 — 흰색 그림자/글로우 없음 */
.hero-slide-copy { word-break: keep-all; overflow-wrap: anywhere; text-shadow: none !important; }
.hero-slide-copy h2 { text-wrap: balance; text-shadow: none !important; }
.hero-slide-copy-inner { text-shadow: none !important; box-shadow: none !important; }
/* 부모 text-shadow 상속으로 버튼 글자가 번지지 않게 */
a.hero-slide-more-btn { text-shadow: none !important; -webkit-font-smoothing: antialiased; box-shadow: 0 1px 3px rgba(0,0,0,.2) !important; }
/* 슬라이드 사진·출처: 본문 패널 아래쪽에 겹치지 않게 */
#hero-slide-root .hero-slide .hero-slide-img-el { z-index: 5 !important; }
#hero-slide-root .hero-slide .hero-slide-credit {
    position: absolute; bottom: 3rem; left: 0.75rem; right: auto; z-index: 13;
    max-width: min(92%, 22rem); margin: 0; padding: 0.2rem 0.45rem; border-radius: 0.35rem;
    font-size: 10px; line-height: 1.35; color: rgba(255,255,255,0.96);
    background: rgba(0,0,0,0.42); pointer-events: none;
}
@media (min-width: 768px) {
    #hero-slide-root .hero-slide .hero-slide-credit { bottom: 3.25rem; left: 1rem; font-size: 11px; }
}

/* 푸터 사이트맵 그리드 (index 푸터 전용) */
@media (max-width: 900px) {
    .footer-site-map { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 520px) {
    .footer-site-map { grid-template-columns: 1fr !important; }
}

/* 웹·앱 공통: 모바일 글자 자동확대 완화, 접근성(모션 줄임) */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  .char-summon,
  .char-summon-appear,
  .hero-slide,
  .animate-bounce {
    animation: none !important;
  }
  .hero-slide {
    transition: opacity 0.01ms !important;
  }
}

/* 초기 렌더 성능: 하단 대형 섹션 지연 렌더 */
#recommend-products,
#home-travel-services-section,
#tourism-news-section,
#tourism-info-hub,
#section-characters-home,
#company-intro-teaser,
#corporate-seminar-cta,
#nearby-area-panel {
  content-visibility: auto;
  contain-intrinsic-size: 1px 900px;
}
/* 대형 푸터: 초기 페인트 부담 완화 */
#kt-site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}
/* LCP 구간: 히어로(하단 예약 바 포함)는 지연 렌더 제외 */
#hero-banner {
  content-visibility: visible;
}

/* 스킵 링크 · 배려 안내 띠 (키보드·스크린리더) */
.kt-skip-link {
  position: absolute;
  left: 0.5rem;
  top: 0.5rem;
  z-index: 9999;
  padding: 0.65rem 1rem;
  font-size: 0.8125rem;
  font-weight: 800;
  color: #fff;
  background: #9f1239;
  border: 2px solid #4c0519;
  border-radius: 0.5rem;
  text-decoration: none;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.kt-skip-link:focus,
.kt-skip-link:focus-visible {
  clip: auto;
  clip-path: none;
  width: auto;
  height: auto;
  overflow: visible;
  white-space: normal;
  outline: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #be123c;
}
.kt-skip-link--secondary {
  left: auto;
  right: 0.5rem;
  background: #0f766e;
  border-color: #134e4a;
}
.kt-skip-link--secondary:focus,
.kt-skip-link--secondary:focus-visible {
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px #0d9488;
}
.kt-care-strip a:focus-visible {
  outline: 2px solid #be123c;
  outline-offset: 2px;
}

/* Premium pass: 고급 톤/질감/대비 정리 (레이아웃 불변) */
body {
  background:
    radial-gradient(1200px 420px at 50% -160px, rgba(148, 163, 184, 0.16), transparent 58%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  color: #0f172a;
}
#top-bar-logo {
  background: linear-gradient(95deg, #0b2740 0%, #123c63 48%, #1f5d8e 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.kt-audience-strip {
  border-bottom-color: rgba(148, 163, 184, 0.42) !important;
  background: linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%) !important;
}
#hero-banner .hero-slide-box {
  border: 1px solid rgba(148, 163, 184, 0.32);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.14), 0 8px 18px rgba(15, 23, 42, 0.08) !important;
}
.hero-form {
  background: rgba(255, 255, 255, 0.97) !important;
  border: 1px solid rgba(148, 163, 184, 0.42) !important;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.14);
}
.hero-form select,
.hero-form input {
  color: #0f172a !important;
}
#hero-main-reserve-label {
  background: linear-gradient(120deg, #8f1d2c 0%, #b1383d 45%, #d97706 100%) !important;
  box-shadow: 0 12px 24px rgba(127, 29, 29, 0.26) !important;
}
#quick-booking-bar {
  border-color: rgba(148, 163, 184, 0.34) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.97) 100%) !important;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.09) !important;
}
#recommend-products,
#home-travel-services-section {
  border-color: rgba(148, 163, 184, 0.3) !important;
}
#recommend-grid > a,
#home-travel-services-grid article,
#tourism-info-hub .grid > a {
  border: 1px solid rgba(148, 163, 184, 0.34);
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.08), 0 2px 7px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#recommend-grid > a:hover,
#home-travel-services-grid article:hover,
#tourism-info-hub .grid > a:hover {
  transform: translateY(-4px);
  border-color: rgba(30, 64, 175, 0.38);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14), 0 5px 12px rgba(15, 23, 42, 0.09);
}
#company-intro-teaser > div,
#corporate-seminar-cta > div {
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.11), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}
.kt-field-pill {
  border-width: 1px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.08);
}
