/* ===== TourFos.com Global CSS ===== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;900&family=Noto+Sans+KR:wght@300;400;500;600;700&family=Montserrat:wght@300;400;500;600;700&display=swap');

:root {
  /* Brand Colors */
  --tf-navy:    #0d1f3c;
  --tf-deep:    #142647;
  --tf-ocean:   #1a6fad;
  --tf-sky:     #3b9fd4;
  --tf-aqua:    #00c2cb;
  --tf-gold:    #e8a020;
  --tf-gold-lt: #f5c84a;
  --tf-coral:   #e85d3a;
  --tf-white:   #ffffff;
  --tf-offwhite:#f8fafd;
  --tf-gray-1:  #f2f5f9;
  --tf-gray-2:  #e0e7ef;
  --tf-gray-3:  #b0bcc8;
  --tf-gray-4:  #7a8fa6;
  --tf-gray-5:  #4a5e72;
  --tf-text:    #1c2b3a;

  /* Typography */
  --font-display: 'Playfair Display', 'Noto Serif KR', Georgia, serif;
  --font-body:    'Noto Sans KR', 'Montserrat', sans-serif;
  --font-ui:      'Montserrat', 'Noto Sans KR', sans-serif;

  /* Spacing */
  --gap-xs: 4px;
  --gap-sm: 8px;
  --gap-md: 16px;
  --gap-lg: 24px;
  --gap-xl: 40px;
  --gap-2xl:64px;

  /* Shadows */
  --shadow-sm:  0 2px 8px rgba(13,31,60,.08);
  --shadow-md:  0 4px 20px rgba(13,31,60,.12);
  --shadow-lg:  0 8px 40px rgba(13,31,60,.16);
  --shadow-xl:  0 16px 60px rgba(13,31,60,.22);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(.4,0,.2,1);
  --ease-bounce: cubic-bezier(.34,1.56,.64,1);
  --dur-fast: 180ms;
  --dur-base: 300ms;
  --dur-slow: 500ms;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-body);
  color: var(--tf-text);
  background: var(--tf-white);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ===== TOPBAR ===== */
.topbar {
  background: var(--tf-navy);
  color: rgba(255,255,255,.75);
  font-family: var(--font-ui);
  font-size: 12px;
  height: 36px;
  display: flex;
  align-items: center;
}
.topbar-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar-left { display: flex; gap: 20px; align-items: center; }
.topbar-right { display: flex; gap: 20px; align-items: center; }
.topbar a { color: rgba(255,255,255,.75); transition: color var(--dur-fast); }
.topbar a:hover { color: var(--tf-gold); }
.topbar .divider { width: 1px; height: 14px; background: rgba(255,255,255,.2); }

/* ===== GNB (MAIN NAV) ===== */
.gnb {
  background: var(--tf-white);
  border-bottom: 1px solid var(--tf-gray-2);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: box-shadow var(--dur-base) var(--ease);
}
.gnb.scrolled {
  box-shadow: var(--shadow-md);
}
.gnb-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 40px;
}
.gnb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.gnb-logo .logo-mark {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--tf-ocean), var(--tf-aqua));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -1px;
}
.gnb-logo .logo-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--tf-navy);
  letter-spacing: -0.5px;
}
.gnb-logo .logo-text span { color: var(--tf-ocean); }

.gnb-menu {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  flex-wrap: nowrap;
}
.gnb-menu > li { position: relative; }
.gnb-menu > li > a {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 8px 10px;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  color: var(--tf-gray-5);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
  white-space: nowrap;
}
.gnb-menu > li > a:hover,
.gnb-menu > li > a.active {
  color: var(--tf-ocean);
  background: rgba(26,111,173,.06);
}
.gnb-menu > li > a .arrow {
  width: 14px; height: 14px;
  transition: transform var(--dur-fast) var(--ease);
  opacity: .5;
}
.gnb-menu > li:hover > a .arrow { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--tf-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--tf-gray-2);
  padding: 12px;
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(-6px);
  transition: all var(--dur-base) var(--ease);
  z-index: 1001;
}
.gnb-menu > li:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 9px 14px;
  font-size: 13.5px;
  font-family: var(--font-ui);
  font-weight: 500;
  color: var(--tf-gray-5);
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
}
.dropdown a:hover {
  color: var(--tf-ocean);
  background: var(--tf-gray-1);
  padding-left: 18px;
}

/* Mega dropdown */
.mega-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--tf-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--tf-gray-2);
  padding: 28px;
  width: 640px;
  opacity: 0;
  visibility: hidden;
  transition: all var(--dur-base) var(--ease);
  z-index: 1001;
}
.gnb-menu > li:hover .mega-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}
.mega-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) var(--ease);
  cursor: pointer;
}
.mega-item:hover {
  background: var(--tf-gray-1);
}
.mega-icon {
  width: 36px; height: 36px;
  background: var(--tf-gray-1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  transition: background var(--dur-fast);
}
.mega-item:hover .mega-icon {
  background: rgba(26,111,173,.1);
}
.mega-label { font-size: 13px; font-weight: 600; color: var(--tf-text); font-family: var(--font-ui); }
.mega-sub { font-size: 11.5px; color: var(--tf-gray-4); margin-top: 1px; }

.gnb-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-outline-sm {
  padding: 7px 16px;
  border: 1.5px solid var(--tf-gray-2);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--tf-gray-5);
  transition: all var(--dur-fast) var(--ease);
}
.btn-outline-sm:hover {
  border-color: var(--tf-ocean);
  color: var(--tf-ocean);
}
.btn-primary-sm {
  padding: 7px 18px;
  background: linear-gradient(135deg, var(--tf-ocean), var(--tf-sky));
  border-radius: var(--radius-full);
  font-size: 13px;
  font-family: var(--font-ui);
  font-weight: 700;
  color: #fff;
  transition: all var(--dur-fast) var(--ease);
  box-shadow: 0 2px 10px rgba(26,111,173,.3);
}
.btn-primary-sm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(26,111,173,.4);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--tf-navy);
  color: rgba(255,255,255,.7);
  font-family: var(--font-body);
}
.footer-main {
  max-width: 1320px;
  margin: 0 auto;
  padding: 64px 24px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand .logo-text {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .logo-text span { color: var(--tf-aqua); }
.footer-brand p { font-size: 13.5px; line-height: 1.8; margin-bottom: 20px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.1);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: background var(--dur-fast) var(--ease);
}
.footer-social a:hover { background: var(--tf-ocean); }
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 18px;
  font-family: var(--font-ui);
  letter-spacing: .5px;
  text-transform: uppercase;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  font-size: 13.5px;
  color: rgba(255,255,255,.6);
  transition: color var(--dur-fast);
}
.footer-col ul li a:hover { color: var(--tf-aqua); }
.footer-contact-item {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13.5px;
}
.footer-contact-item .icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 20px 24px;
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12.5px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,.5); transition: color var(--dur-fast); }
.footer-bottom-links a:hover { color: #fff; }

/* ===== SECTION COMMON ===== */
.section { padding: 80px 0; }
.section-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
}
.section-header { text-align: center; margin-bottom: 50px; }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--tf-ocean);
  background: rgba(26,111,173,.08);
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 42px);
  font-weight: 700;
  color: var(--tf-navy);
  line-height: 1.25;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--tf-gray-4);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ===== CARD COMMON ===== */
.card {
  background: var(--tf-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--tf-gray-2);
  transition: all var(--dur-base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--tf-gray-1);
}
.card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.card:hover .card-img img { transform: scale(1.06); }
.card-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--tf-coral);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
}
.card-body { padding: 20px; }
.card-cat {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--tf-ocean);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-ui);
  margin-bottom: 8px;
}
.card-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--tf-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}
.card-meta {
  font-size: 13px;
  color: var(--tf-gray-4);
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
}
.card-price { font-size: 13px; color: var(--tf-gray-4); }
.card-price strong {
  font-size: 20px;
  font-weight: 700;
  color: var(--tf-coral);
  font-family: var(--font-ui);
}
.card-rating {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--tf-gold);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-full);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 14px;
  transition: all var(--dur-base) var(--ease);
  cursor: pointer;
}
.btn-primary {
  background: linear-gradient(135deg, var(--tf-ocean), var(--tf-sky));
  color: #fff;
  box-shadow: 0 4px 20px rgba(26,111,173,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(26,111,173,.45);
}
.btn-gold {
  background: linear-gradient(135deg, var(--tf-gold), var(--tf-gold-lt));
  color: var(--tf-navy);
  box-shadow: 0 4px 20px rgba(232,160,32,.35);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(232,160,32,.45);
}
.btn-outline {
  border: 2px solid var(--tf-ocean);
  color: var(--tf-ocean);
  background: transparent;
}
.btn-outline:hover {
  background: var(--tf-ocean);
  color: #fff;
}
.btn-white {
  background: #fff;
  color: var(--tf-navy);
  box-shadow: var(--shadow-md);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ===== PAGE HERO ===== */
.page-hero {
  background: linear-gradient(135deg, var(--tf-navy) 0%, var(--tf-deep) 100%);
  padding: 80px 0;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
}
.page-hero p {
  font-size: 17px;
  color: rgba(255,255,255,.7);
  max-width: 560px;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 20px;
  font-family: var(--font-ui);
}
.breadcrumb a { color: rgba(255,255,255,.6); transition: color var(--dur-fast); }
.breadcrumb a:hover { color: #fff; }
.breadcrumb .sep { opacity: .4; }

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.mt-sm { margin-top: 12px; }
.mt-md { margin-top: 24px; }
.mt-lg { margin-top: 40px; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--tf-gray-1);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  color: var(--tf-gray-5);
  font-family: var(--font-ui);
}
.tag.blue { background: rgba(26,111,173,.1); color: var(--tf-ocean); }
.tag.gold { background: rgba(232,160,32,.1); color: var(--tf-gold); }
.tag.coral { background: rgba(232,93,58,.1); color: var(--tf-coral); }

/* ============================================================
   MOBILE NAV HAMBURGER
   ============================================================ */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.mobile-menu-btn span {
  display: block;
  width: 22px; height: 2px;
  background: var(--tf-navy);
  border-radius: 2px;
  transition: all var(--dur-base) var(--ease);
  transform-origin: center;
}
.mobile-menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.mobile-menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 2000;
  pointer-events: none;
}
.mobile-nav.open { pointer-events: all; }
.mobile-nav-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(13,31,60,.55);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease);
}
.mobile-nav.open .mobile-nav-backdrop { opacity: 1; }
.mobile-nav-drawer {
  position: absolute;
  top: 0; right: 0;
  width: min(340px, 90vw);
  height: 100%;
  background: var(--tf-white);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}
.mobile-nav.open .mobile-nav-drawer { transform: translateX(0); }
.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--tf-gray-2);
  flex-shrink: 0;
}
.mobile-nav-close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--tf-gray-1);
  font-size: 18px;
  cursor: pointer;
}
.mobile-nav-body { flex: 1; padding: 12px 0; }
.mobile-nav-section { border-bottom: 1px solid var(--tf-gray-1); padding: 8px 0; }
.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tf-text);
  font-family: var(--font-ui);
  transition: background var(--dur-fast);
}
.mobile-nav-link:hover { background: var(--tf-gray-1); color: var(--tf-ocean); }
.mobile-nav-link .arrow { font-size: 12px; color: var(--tf-gray-4); transition: transform var(--dur-fast); }
.mobile-nav-link.open .arrow { transform: rotate(90deg); }
.mobile-nav-sub { display: none; background: var(--tf-gray-1); }
.mobile-nav-sub.open { display: block; }
.mobile-nav-sub a {
  display: block;
  padding: 11px 20px 11px 36px;
  font-size: 14px;
  color: var(--tf-gray-5);
  font-family: var(--font-ui);
  transition: color var(--dur-fast);
}
.mobile-nav-sub a:hover { color: var(--tf-ocean); }
.mobile-nav-footer {
  padding: 20px;
  border-top: 1px solid var(--tf-gray-2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}
.mobile-nav-footer .btn { width: 100%; justify-content: center; }

/* Bottom mobile tab bar */
.mobile-tabbar {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--tf-white);
  border-top: 1px solid var(--tf-gray-2);
  z-index: 900;
  padding-bottom: env(safe-area-inset-bottom);
  box-shadow: 0 -4px 20px rgba(13,31,60,.08);
}
.mobile-tabbar-inner {
  display: flex;
  height: 60px;
}
.mobile-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--tf-gray-4);
  font-family: var(--font-ui);
  transition: color var(--dur-fast);
  cursor: pointer;
}
.mobile-tab .tab-icon { font-size: 20px; }
.mobile-tab.active { color: var(--tf-ocean); }
.mobile-tab:hover { color: var(--tf-ocean); }

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {
  .topbar { display: none; }

  .gnb-menu,
  .gnb-actions { display: none !important; }

  .gnb-inner { gap: 0; }

  .mobile-menu-btn { display: flex; }

  .mobile-nav { display: block; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }

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

  .section { padding: 64px 0; }

  .page-hero { padding: 60px 0; }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {
  html { font-size: 15px; }

  .section { padding: 48px 0; }
  .section-inner { padding: 0 16px; }
  .section-header { margin-bottom: 32px; }

  .page-hero { padding: 48px 0 40px; }
  .page-hero-inner { padding: 0 16px; }
  .page-hero h1 { font-size: clamp(26px, 7vw, 40px); margin-bottom: 10px; }
  .page-hero p { font-size: 15px; }
  .breadcrumb { font-size: 12px; }

  .grid-3 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 14px; }
  .grid-2 { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; padding: 40px 16px 32px; }
  .footer-bottom {
    flex-direction: column;
    gap: 10px;
    text-align: center;
    padding: 16px;
    font-size: 11.5px;
  }
  .footer-bottom-links { flex-wrap: wrap; justify-content: center; gap: 12px; }

  /* Cards touch-friendly */
  .card:hover { transform: none; box-shadow: var(--shadow-md); }

  /* Buttons full-width on mobile when needed */
  .btn-block-mobile { width: 100%; justify-content: center; }

  /* Show bottom tabbar */
  .mobile-tabbar { display: flex; flex-direction: column; }
  body { padding-bottom: 60px; }

  /* Section title smaller */
  .section-title { font-size: clamp(22px, 5vw, 32px); }
}

/* ── Small Mobile (≤480px) ── */
@media (max-width: 480px) {
  .section-inner { padding: 0 14px; }

  .grid-3,
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .grid-2 { grid-template-columns: 1fr; }

  .footer-main { grid-template-columns: 1fr; gap: 24px; }

  .gnb-inner { padding: 0 14px; height: 58px; }

  .btn { padding: 12px 22px; font-size: 13.5px; }
  .btn-primary-sm,
  .btn-outline-sm { font-size: 12px; padding: 6px 14px; }

  .section-header { margin-bottom: 24px; }

  .tag { font-size: 11px; padding: 3px 10px; }
}

/* ── Touch hover suppression ── */
@media (hover: none) {
  .card:hover { transform: none !important; }
  .btn:hover  { transform: none !important; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Print ── */
@media print {
  .topbar, .gnb, .mobile-tabbar, .mobile-nav { display: none !important; }
  .section { padding: 24px 0; }
  body { font-size: 12pt; color: #000; }
}

/* ══════════════════════════════════════════
   DARK MODE
══════════════════════════════════════════ */
@media (prefers-color-scheme: dark) {
  :root {
    --tf-bg:       #0d1117;
    --tf-surface:  #161b22;
    --tf-border:   #30363d;
    --tf-text:     #e6edf3;
    --tf-gray-1:   #161b22;
    --tf-gray-2:   #21262d;
    --tf-gray-3:   #8b949e;
    --tf-gray-4:   #8b949e;
    --tf-gray-5:   #c9d1d9;
  }
  body { background: var(--tf-bg); color: var(--tf-text); }
  .gnb { background: rgba(13,17,23,.96); border-bottom-color: var(--tf-border); }
  .topbar { background: #010409; border-bottom-color: var(--tf-border); }
  .footer { background: #010409; }

  /* Cards */
  .card,
  [class*="-card"],
  [class*="pkg-card"],
  [class*="ht-card"],
  [class*="fl-card"],
  [class*="cr-card"],
  [class*="hm-pkg-card"] {
    background: var(--tf-surface) !important;
    border-color: var(--tf-border) !important;
  }

  /* Inputs / selects */
  input:not([type=range]),
  select,
  textarea {
    background: var(--tf-surface) !important;
    border-color: var(--tf-border) !important;
    color: var(--tf-text) !important;
  }

  /* Sidebars / panels */
  .fl-sidebar,
  .ht-sidebar,
  .art-sidebar .sb-card,
  .cs-nav,
  .bs-widget,
  .faq-list,
  .notice-list,
  .ct-card,
  .apply-form,
  .gt-form,
  .vs-search,
  .ins-hero .apply-form {
    background: var(--tf-surface) !important;
    border-color: var(--tf-border) !important;
  }

  /* Text overrides */
  h1, h2, h3, h4, h5, h6,
  .section-title,
  .af-title,
  .bc-title,
  .ht-name,
  .pkg-name,
  .cr-name,
  .hm-pkg-name {
    color: var(--tf-text) !important;
  }

  /* Breadcrumb */
  .breadcrumb a { color: rgba(255,255,255,.55) !important; }
  .breadcrumb span { color: rgba(255,255,255,.85) !important; }

  /* Hero panels */
  .fl-panel,
  .ht-panel {
    background: rgba(22,27,34,.97) !important;
  }

  /* Table */
  .info-table td,
  .cov-table td { border-color: var(--tf-border) !important; }
  .cov-table tr:hover td { background: var(--tf-surface) !important; }

  /* FAQ */
  .faq-item.open .faq-q,
  .faq-item.open .faq-q2 { background: rgba(26,111,173,.12) !important; }
  .faq-a, .faq-a2 { background: rgba(13,17,23,.5) !important; }

  /* Notice */
  .notice-item:hover { background: var(--tf-surface) !important; }

  /* Map */
  .map-view { background: linear-gradient(135deg,#1a2233,#1e2d42) !important; }

  /* Chat */
  .chat-messages { background: #0d1117 !important; }
  .chat-msg.agent .msg-bubble { background: var(--tf-surface) !important; color: var(--tf-text) !important; }
}

/* ══════════════════════════════════════════
   MICRO-INTERACTIONS & SCROLL ANIMATIONS
══════════════════════════════════════════ */

/* Fade-in-up on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .5s cubic-bezier(.4,0,.2,1),
              transform .5s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .45s cubic-bezier(.4,0,.2,1),
              transform .45s cubic-bezier(.4,0,.2,1);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: .0s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: .08s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: .16s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: .24s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: .32s; opacity:1; transform:none; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: .40s; opacity:1; transform:none; }

/* Pulse badge */
@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232,93,58,.4); }
  50%       { box-shadow: 0 0 0 8px rgba(232,93,58,0); }
}
.badge-pulse { animation: pulse-badge 2.5s ease-in-out infinite; }

/* Shimmer loading skeleton */
@keyframes shimmer {
  0%   { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--tf-gray-1) 25%, var(--tf-gray-2) 50%, var(--tf-gray-1) 75%);
  background-size: 800px 100%;
  animation: shimmer 1.4s infinite linear;
  border-radius: var(--radius-sm);
}

/* Smooth counter animation utility */
.count-up { font-variant-numeric: tabular-nums; }

/* Focus ring (accessibility) */
:focus-visible {
  outline: 2px solid var(--tf-ocean);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* Button micro-interactions */
.btn:active {
  transform: translateY(1px) scale(.98) !important;
  transition: transform .08s !important;
}

/* Card hover lift (unified) */
.card-lift {
  transition: transform .25s cubic-bezier(.4,0,.2,1),
              box-shadow .25s cubic-bezier(.4,0,.2,1);
}
.card-lift:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 40px rgba(0,0,0,.12);
}

/* Tooltip */
[data-tooltip] {
  position: relative;
  cursor: pointer;
}
[data-tooltip]::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(.9);
  background: rgba(10,15,30,.9);
  color: #fff;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s, transform .18s;
  z-index: 100;
  font-family: var(--font-ui);
}
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Page transition fade */
.page-transition {
  animation: pageIn .3s ease-out;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Custom scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(26,111,173,.35); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(26,111,173,.6); }

/* ── Selection color ── */
::selection { background: rgba(26,111,173,.25); color: inherit; }

/* ═══════════════════════════════════════════════════
   TOURFOS GLOBAL CSS — v3 ENHANCEMENTS
   추가: 유틸리티·애니메이션·다크모드·접근성·인쇄
   ═══════════════════════════════════════════════════ */

/* ── 공통 유틸리티 ── */
.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }
.mt-sm  { margin-top: 12px; }
.mt-md  { margin-top: 24px; }
.mt-lg  { margin-top: 40px; }
.mt-xl  { margin-top: 64px; }
.mb-sm  { margin-bottom: 12px; }
.mb-md  { margin-bottom: 24px; }
.mb-lg  { margin-bottom: 40px; }
.d-flex { display: flex; }
.d-grid { display: grid; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.flex-wrap  { flex-wrap: wrap; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.hidden { display: none !important; }
.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0; }

/* ── 강화된 카드 공통 ── */
.card {
  background: #fff;
  border: 1px solid var(--tf-gray-2);
  border-radius: var(--radius-lg);
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  border-color: transparent;
  transform: translateY(-3px);
}
.card-p { padding: 20px 22px; }

/* ── 배지 ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 99px;
  font-family: var(--font-ui);
  white-space: nowrap;
}
.badge-primary { background: rgba(26,111,173,.1); color: var(--tf-ocean); }
.badge-success { background: rgba(22,163,74,.1);  color: #16a34a; }
.badge-warning { background: rgba(232,160,32,.1); color: var(--tf-gold); }
.badge-danger  { background: rgba(232,93,58,.1);  color: var(--tf-coral); }
.badge-dark    { background: var(--tf-navy); color: #fff; }

/* ── 강화된 버튼 ── */
.btn-sm { padding: 7px 16px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-icon { display: inline-flex; align-items: center; gap: 6px; }

/* 로딩 스피너 */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── 폼 강화 ── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--tf-gray-4);
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-family: var(--font-ui);
}
.form-control {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--tf-gray-2);
  border-radius: var(--radius-md);
  font-size: 14px;
  color: var(--tf-text);
  font-family: var(--font-body);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
}
.form-control:focus {
  border-color: var(--tf-ocean);
  box-shadow: 0 0 0 3px rgba(26,111,173,.12);
}
.form-control.error { border-color: var(--tf-coral); }
.form-control::placeholder { color: var(--tf-gray-3); }
.form-error { font-size: 12.5px; color: var(--tf-coral); margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* ── 알림 박스 ── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  line-height: 1.6;
}
.alert-info    { background: rgba(26,111,173,.07);  border-left: 4px solid var(--tf-ocean); }
.alert-success { background: rgba(22,163,74,.07);   border-left: 4px solid #16a34a; }
.alert-warning { background: rgba(232,160,32,.07);  border-left: 4px solid var(--tf-gold); }
.alert-danger  { background: rgba(232,93,58,.07);   border-left: 4px solid var(--tf-coral); }

/* ── 스켈레톤 로딩 ── */
.skeleton {
  background: linear-gradient(90deg, var(--tf-gray-1) 25%, var(--tf-gray-2) 50%, var(--tf-gray-1) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius-sm);
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── 스크롤바 스타일 ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--tf-gray-1); }
::-webkit-scrollbar-thumb { background: var(--tf-gray-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--tf-gray-4); }

/* ── 선택 영역 ── */
::selection { background: rgba(26,111,173,.2); color: var(--tf-navy); }

/* ── 이미지 공통 ── */
img { max-width: 100%; height: auto; display: block; }
.img-cover { width: 100%; height: 100%; object-fit: cover; }
.img-contain { width: 100%; height: 100%; object-fit: contain; }
.img-rounded { border-radius: var(--radius-md); }

/* ── 구분선 ── */
.divider-h { height: 1px; background: var(--tf-gray-2); margin: 24px 0; }
.divider-v { width: 1px; background: var(--tf-gray-2); align-self: stretch; margin: 0 12px; }

/* ── 텍스트 클램프 ── */
.clamp-1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ── 애니메이션 유틸 ── */
.fade-in { animation: fadeIn .4s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.slide-up { animation: slideUp .5s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.scale-in { animation: scaleIn .3s ease forwards; }
@keyframes scaleIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: scale(1); } }

/* ── 다크모드 지원 ── */
[data-theme="dark"] {
  --tf-bg: #0d1117;
  --tf-text: #e6edf3;
  --tf-gray-1: #161b22;
  --tf-gray-2: #21262d;
  --tf-gray-3: #6e7681;
  --tf-gray-4: #8b949e;
  --tf-gray-5: #b1bac4;
}
[data-theme="dark"] body { background: var(--tf-bg); color: var(--tf-text); }
[data-theme="dark"] .gnb,
[data-theme="dark"] .gnb.scrolled { background: rgba(13,17,23,.98); border-color: var(--tf-gray-2); }
[data-theme="dark"] .card,
[data-theme="dark"] .faq-list,
[data-theme="dark"] .notice-list { background: var(--tf-gray-1); border-color: var(--tf-gray-2); }
[data-theme="dark"] .section { background: var(--tf-bg); }
[data-theme="dark"] .section:nth-child(even) { background: var(--tf-gray-1); }

/* ── 접근성 ── */
:focus-visible {
  outline: 2px solid var(--tf-ocean);
  outline-offset: 2px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ── 프린트 ── */
@media print {
  .gnb, .topbar, .footer, .mobile-tabbar, .mobile-nav,
  .mobile-menu-btn, .btn, button { display: none !important; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .section { padding: 20pt 0; }
}

/* ── 추가 반응형 유틸 ── */
@media (max-width: 1024px) {
  .hide-tablet { display: none !important; }
}
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  .show-mobile { display: block !important; }
  .mt-lg { margin-top: 28px; }
  .mt-xl { margin-top: 40px; }
}
@media (max-width: 480px) {
  .hide-xs { display: none !important; }
  .full-xs { width: 100% !important; }
}

/* ── 강화된 GNB 액티브 인디케이터 ── */
.gnb-menu > li > a.active {
  color: var(--tf-ocean);
  position: relative;
}
.gnb-menu > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--tf-ocean);
  border-radius: 2px;
}

/* ── 페이지 트랜지션 ── */
.page-transition {
  animation: pageIn .35s ease-out;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── 위시리스트 하트 토글 ── */
.wish-btn { cursor: pointer; transition: transform .2s; }
.wish-btn:hover { transform: scale(1.2); }
.wish-btn.active { color: var(--tf-coral); }

/* ── 강화된 가격 표시 ── */
.price-block .original {
  font-size: 13px;
  color: var(--tf-gray-3);
  text-decoration: line-through;
}
.price-block .final {
  font-size: 24px;
  font-weight: 700;
  color: var(--tf-coral);
  font-family: var(--font-ui);
  line-height: 1.1;
}
.price-block .per {
  font-size: 12px;
  color: var(--tf-gray-4);
}
.discount-badge {
  display: inline-block;
  background: rgba(232,93,58,.1);
  color: var(--tf-coral);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 99px;
  font-family: var(--font-ui);
}

/* ── 강화된 탭 컴포넌트 ── */
.tabs {
  display: flex;
  border-bottom: 2px solid var(--tf-gray-2);
  margin-bottom: 24px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--tf-gray-4);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: all .15s;
  font-family: var(--font-ui);
}
.tab:hover { color: var(--tf-ocean); }
.tab.active { color: var(--tf-ocean); border-bottom-color: var(--tf-ocean); }

/* ── 스티키 헤더 그림자 강화 ── */
.gnb.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.15);
}

/* ── 모바일 탭바 강화 ── */
.mobile-tab.active .tab-icon { transform: scale(1.15); }
.mobile-tab.active span { color: var(--tf-ocean); font-weight: 700; }

/* ── 이미지 관련 공통 스타일 (v4 이미지 완성) ── */
.page-hero { position: relative; overflow: hidden; }
.page-hero-inner { position: relative; z-index: 1; }
.phero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; z-index: 0;
}

/* 카드 이미지 컨테이너 공통 */
.tc-img, .dc-img, .blog-img, .hd-item,
.dest-card, .wish-img, .feat-img {
  position: relative; overflow: hidden;
}
.tc-img img, .dc-img img, .blog-img img,
.hd-item img, .dest-card img, .wish-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.tc-card:hover .tc-img img,
.dc-card:hover .dc-img img,
.blog-card:hover .blog-img img,
.hd-item:hover img {
  transform: scale(1.06);
}

/* img lazy load fade-in */
img[loading="lazy"] {
  opacity: 0;
  transition: opacity 0.4s ease;
}
img[loading="lazy"].loaded,
img[loading="lazy"][src] {
  opacity: 1;
}

/* 푸터 사업자 정보 */
.footer-biz { font-size: 12px; line-height: 1.9; color: rgba(255,255,255,.5); }
.footer-biz .sep { margin: 0 6px; opacity: .5; }
@media (max-width: 768px) { .footer-biz { text-align: center; font-size: 11.5px; } }

/* 로고 TourFos.com */
.logo-text .logo-dom { font-style: normal; font-size: .68em; font-weight: 600; opacity: .65; margin-left: 1px; letter-spacing: 0; }

/* 상단 메뉴: TOURFOS AI 강조 */
.gnb-menu a.gnb-ai { font-weight: 800; color: #0a8a92; }
.gnb-menu a.gnb-ai::before { content: "✨"; margin-right: 3px; }

/* 하단 링크 줄: 회사소개 · 약관 · 보험 · 제휴 */
.footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-bottom-links { order: -1; width: 100%; flex-wrap: wrap; gap: 8px 22px; justify-content: flex-start; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-bottom-links a { font-size: 13px; color: rgba(255,255,255,.72); }
.footer-bottom-links a strong { color: #fff; font-weight: 700; }
@media (max-width: 768px) { .footer-bottom { align-items: center; } .footer-bottom-links { justify-content: center; } }

/* ══════════════════════════════════════════
   모바일 최적화 보강
   ══════════════════════════════════════════ */
.mobile-nav { overflow: hidden; }                 /* 화면 밖에 접혀 있는 서랍이 가로 스크롤을 만들지 않게 */
@media (max-width: 1024px) { .mobile-nav { display: block; } }
img, video, iframe { max-width: 100%; }

@media (max-width: 900px) {
  /* 상세 페이지: 2단 → 1단, 긴 제목·탭이 폭을 밀어내지 않게 */
  .detail-layout, .d-layout, .booking-layout, .mp-layout, .legal-layout, .contact-layout, .support-layout { grid-template-columns: minmax(0, 1fr) !important; }
  .detail-layout > *, .d-layout > *, .booking-layout > *, .mp-layout > *, .legal-layout > *, .contact-layout > *, .support-layout > * { min-width: 0; }
  .order-summary, .book-box, .detail-book-box, .mp-sidebar { position: static !important; }
  .mp-nav { display: flex; overflow-x: auto; gap: 6px; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .mp-nav::-webkit-scrollbar { display: none; }
  .mp-nav .mp-nav-item { flex-shrink: 0; white-space: nowrap; }
  .booking-item { flex-wrap: wrap; }
  .booking-right { width: 100%; text-align: left !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .detail-tabs, .d-tabs, .d-tabs-wrap, .region-tabs, .tabs, .filter-bar, .sort-tabs, #pickTabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .detail-tabs::-webkit-scrollbar, .d-tabs::-webkit-scrollbar, .region-tabs::-webkit-scrollbar, #pickTabs::-webkit-scrollbar { display: none; }
  .detail-tabs > *, .d-tabs > *, .region-tabs > *, #pickTabs > * { flex-shrink: 0; white-space: nowrap; }
  #pickTabs { flex-wrap: nowrap !important; max-width: 100%; }
  .detail-title, .d-title, .hero-title, .section-title, .page-hero h1 { overflow-wrap: anywhere; word-break: keep-all; }
  table { max-width: 100%; }
}

@media (max-width: 768px) {
  /* 인라인으로 지정된 다단 그리드는 1단으로 */
  [style*="grid-template-columns:1fr 1fr"], [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns:repeat(2"], [style*="grid-template-columns:repeat(3"], [style*="grid-template-columns:repeat(4"] { grid-template-columns: minmax(0, 1fr) !important; }
  /* 항공 검색 폼 */
  .fl-search-grid { display: flex !important; flex-direction: column; gap: 10px; }
  .fl-search-grid > * { width: 100% !important; min-width: 0; max-width: 100%; }
  .fl-search-grid .swap-btn, .fl-search-grid .fl-swap { align-self: center; width: 40px !important; }
  /* 히어로 통계: 2×2 */
  .hero-stats { display: grid !important; grid-template-columns: 1fr 1fr; gap: 16px 12px !important; margin-top: 28px !important; }
  .hero-scroll { display: none !important; }
  /* 손가락으로 누르기 쉬운 크기 · iOS 입력 시 화면 확대 방지 */
  input, select, textarea { font-size: 16px !important; }
  .btn, .btn-next, .btn-prev, .btn-book, .btn-book-main, .btn-wish-main, .btn-submit, .af-submit, .submit-btn { min-height: 46px; }
  .gnb-actions .btn-primary-sm, .gnb-actions a { white-space: nowrap; }
  /* 푸터 */
  .footer-main { grid-template-columns: 1fr 1fr !important; gap: 22px 16px !important; padding: 32px 18px !important; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { padding: 18px 16px 22px; }
  .footer-biz { line-height: 1.8; }
  .footer-biz .sep { margin: 0 4px; }
  /* 떠 있는 버튼이 하단 탭바를 가리지 않게 */
  body:has(.mobile-tabbar) .ai-chat-btn, body:has(.mobile-tabbar) #tfChatBtn { bottom: 76px !important; }
}

@media (max-width: 480px) {
  .section { padding: 40px 0; }
  .prod-grid, .card-grid, .tour-grid, .pkg-grid, .honey-grid, .dest-mosaic, .wish-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
  .sv-card { padding: 16px 6px !important; }
  .sv-icon { font-size: 28px !important; }
  .sv-desc { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-item { border-right: none !important; padding: 14px 8px !important; }
  .stat-num { font-size: 30px !important; }
  .trust-bar-inner { gap: 10px 18px !important; justify-content: flex-start !important; }
  .hero-search { padding: 18px 16px !important; }
  .search-form { grid-template-columns: minmax(0, 1fr) !important; }
  .search-tab { padding: 8px 4px !important; font-size: 12px !important; }
}
@media (max-width: 768px) {
  /* 아이콘 타일처럼 5~6칸으로 나뉜 그리드는 3칸으로 */
  [style*="grid-template-columns:repeat(5"], [style*="grid-template-columns:repeat(6"] { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 10px !important; }
  /* 상품 비교 막대가 화면 폭을 넘지 않게 */
  .compare-bar { max-width: calc(100vw - 20px); }
  .compare-bar-inner { flex-wrap: wrap; gap: 8px !important; max-width: 100%; }
}
@media (max-width: 480px) {
  /* 검색 폼 1단: 칸을 가로지르던 항목 때문에 2단으로 남지 않게 */
  .search-form > * { grid-column: auto !important; min-width: 0; }
  .search-form input, .search-form select { width: 100%; min-width: 0; box-sizing: border-box; }
  .hero-search { max-width: 100%; box-sizing: border-box; }
  .search-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .search-tabs::-webkit-scrollbar { display: none; }
  .search-tabs .search-tab { flex: 1 0 auto !important; white-space: nowrap; padding: 9px 10px !important; }
  .hero-eyebrow { font-size: 10.5px !important; letter-spacing: 1px !important; padding: 6px 14px !important; white-space: nowrap; }
  .hero-sub, .section-sub, .ai-hero p, .ab-hero p { word-break: keep-all; }
  .hero-inner { padding-left: 16px !important; padding-right: 16px !important; width: 100%; min-width: 0; box-sizing: border-box; }
  .btn-search-hero { width: 100%; }
}
