/* 모바일 (몽키트래블 모바일 구성 참고) — 맨 마지막에 불러옴 */
.m-only { display: none; }
.icon-btn2 { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink); }
.icon-btn2 svg { width: 22px; height: 22px; }

/* 햄버거 메뉴 서랍 */
.drawer-bg { position: fixed; inset: 0; z-index: 300; background: rgba(15,32,52,.4); opacity: 0; pointer-events: none; transition: opacity .2s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 301; width: min(86vw, 340px); background: #fff; transform: translateX(100%); transition: transform .25s ease; overflow-y: auto; padding: 18px 18px 40px; border-radius: 28px 0 0 28px; }
body.menu-open .drawer-bg { opacity: 1; pointer-events: auto; }
body.menu-open .drawer { transform: none; }
body.menu-open { overflow: hidden; }
.drawer .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.drawer .top img { height: 30px; }
.drawer .me { display: flex; gap: 8px; margin-bottom: 16px; }
.drawer .me a, .drawer .me button { flex: 1; height: 42px; border-radius: 99px; display: grid; place-items: center; font-size: 13.5px; font-weight: 800; background: var(--sky-50); color: var(--ink-2); }
.drawer .me .pri { background: linear-gradient(100deg, #2e6fd3, #2fc0dc); color: #fff; }
.drawer h4 { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 800; margin: 18px 0 8px; }
.drawer h4::before { content: ''; width: 24px; height: 15px; background: var(--cloud-sky) no-repeat center/contain; }
.drawer h5 { font-size: 12px; color: var(--ink-3); font-weight: 700; margin: 8px 0 4px; }
.drawer .links { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.drawer .links a { padding: 10px 12px; border-radius: 16px; background: #f6fafe; font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.drawer .links a small { color: var(--ink-3); font-weight: 600; margin-left: 2px; }
.drawer .foot { margin-top: 22px; font-size: 12.5px; color: var(--ink-3); line-height: 1.7; }

/* 상세: 아래 고정 구매 바 */
.m-buy { display: none; }

@media (max-width: 760px) {
  body { font-size: 15px; }
  .m-only { display: inline-flex; }
  .pc-only { display: none !important; }
  .wrap { padding: 0 16px; }

  /* 헤더 */
  .header .wrap, .m-header .wrap { height: 56px; gap: 6px; }
  .logo img { height: 30px; width: auto; }
  .b2b-tag { font-size: 11px; padding: 3px 9px; margin-top: 2px; }
  .m-header .util { display: none; }
  .header .m-icons { margin-left: auto; display: flex; gap: 2px; }

  /* 히어로: 검색 한 칸 */
  .m-hero { height: 290px; }
  .m-hero .wrap { justify-content: flex-end; padding-bottom: 64px; }
  .m-hero h1 { font-size: 25px; }
  .m-search { grid-template-columns: 1fr auto; margin-top: 16px; padding: 5px; border-radius: 99px; }
  .m-search .f { height: 46px; padding: 0 12px; }
  .m-search .f:not(:first-child) { display: none; }
  .m-search .btn { height: 46px; padding: 0 18px; }
  .m-hero .bottom svg { height: 34px; }

  .m-sec { padding-top: 36px; }
  .sec-head { margin-bottom: 12px; }
  .sec-head h2 { font-size: 20px; }
  .sec-head p { font-size: 13px; }

  /* 인기 여행지: 3칸 타일 */
  .countries { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .country { flex-direction: column; text-align: center; gap: 6px; padding: 14px 6px; font-size: 14.5px; border-radius: 20px; }
  .country svg.flag { width: 38px; height: 26px; }
  .country small { display: none; }
  .country small[style] { display: inline !important; }
  .country .arr { display: none; }

  /* 혜택: 아이콘 4개 한 줄 */
  .perks { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .perk { flex-direction: column; text-align: center; gap: 6px; padding: 10px 2px; background: transparent; box-shadow: none; border: 0; }
  .perk .pi { width: 50px; height: 50px; }
  .perk b { font-size: 12.5px; font-weight: 700; }
  .perk small { display: none; }

  /* 배너 */
  .slides { border-radius: 22px; margin-top: 12px; }
  .slide { height: 108px; padding: 0 18px; gap: 10px; }
  .slide h3 { font-size: 15.5px; line-height: 1.35; }
  .slide p { font-size: 12px; }
  .slide img { width: 60px; }
  .slide::after { display: none; }

  /* 도시 동그라미 */
  .cities { gap: 12px; margin: 0 -16px; padding: 4px 16px 8px; }
  .city { font-size: 12.5px; gap: 6px; }
  .city span { width: 62px; height: 62px; border-width: 3px; }

  /* 특집 · 가로 카드 줄 */
  .feature { padding: 26px 0 22px; }
  .feature h2 { font-size: 20px; }
  .feature p.sub { font-size: 12.5px; }
  .ftabs { margin: 12px 0 14px; }
  .ftabs button { height: 32px; font-size: 12.5px; padding: 0 13px; }
  .arrows { display: none; }
  .row-scroll { grid-auto-columns: 46%; gap: 10px; margin: 0 -16px; padding: 0 16px 6px; scroll-padding: 0 16px; }

  /* 상품 카드 공통 (2칸) */
  .grid, .grid.three { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .prod { padding: 5px; border-radius: 20px; }
  .prod .pic { border-radius: 16px; aspect-ratio: 1 / 1; }
  .prod .pic img { border-radius: 16px; }
  .prod .pic .tags { top: 8px; left: 8px; }
  .prod .body { padding: 8px 6px 6px; }
  .prod .where { font-size: 11px; }
  .prod h3 { font-size: 13.5px; min-height: 38px; margin: 2px 0 4px; }
  .prod .meta { font-size: 11px; gap: 5px; }
  .price { margin-top: 4px; gap: 4px; flex-wrap: wrap; }
  .price .off { font-size: 14px; }
  .price .now { font-size: 15.5px; }
  .price .now small { font-size: 11px; }
  .price .was { font-size: 11px; }
  .prod:hover { transform: none; }

  /* 후기: 가로로 넘기기 */
  .reviews.rv-row { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; gap: 10px; scrollbar-width: none; }
  .reviews.rv-row > * { scroll-snap-align: start; }
  .review { padding: 16px; }

  /* 처음이신가요 2x2 */
  .why { grid-template-columns: 1fr 1fr; gap: 8px; }
  .why .w { height: 140px; border-radius: 22px; padding: 14px; }
  .why .w h3 { font-size: 14px; }
  .why .w .n { left: 14px; top: 12px; }

  .story { padding: 24px 20px 90px; border-radius: 26px; gap: 10px; }
  .story h2 { font-size: 21px; }
  .story p { font-size: 14px; }
  .story img.d { width: 84px; right: 16px; }

  .footer { margin-top: 50px; padding: 28px 0 100px; font-size: 12.5px; }
  .footer .wrap { gap: 16px; }

  /* 카톡 버튼: 동그란 버튼 + 짧은 글씨 */
  .kakao-fab { height: 50px; padding: 0 14px 0 5px; font-size: 13px; right: 14px; bottom: 16px; }
  .kakao-fab small { display: none; }
  .kakao-fab .ic { width: 40px; height: 40px; }
  body.has-mbuy .kakao-fab { bottom: 84px; }

  /* 목록 */
  .list-hero { padding: 22px 0 6px; }
  .list-hero h1 { font-size: 23px; }
  .sub-cats { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 4px; padding: 0 16px 4px; scrollbar-width: none; }
  .sub-cats .chip { flex: none; height: 34px; font-size: 13px; }
  .list-tools { margin: 10px 0 12px; }
  .list-tools .sort { margin-left: 0; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .list-tools .sort button { flex: none; height: 30px; font-size: 12px; }
  .group-title { font-size: 18px; margin: 26px 0 10px; }
  .search-big .input { height: 48px; font-size: 15px; }
  .search-big .btn { height: 48px; }

  /* 상품 상세 */
  .crumb { padding: 12px 0 8px; font-size: 12px; }
  .gallery { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 8px; margin: 0 -16px; padding: 0 16px; grid-template-rows: none; scrollbar-width: none; }
  .gallery div { flex: 0 0 86%; height: 260px; scroll-snap-align: center; border-radius: 22px; display: block !important; }
  .detail { grid-template-columns: 1fr; gap: 20px; margin-top: 18px; }
  .d-head h1 { font-size: 22px; }
  .d-tabs { top: 56px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
  .d-tabs a { flex: none; padding: 9px 14px; font-size: 13px; }
  .d-sec { margin-top: 30px; scroll-margin-top: 120px; }
  .d-sec h2 { font-size: 19px; }
  .d-content { font-size: 14.5px; }
  .d-content img { border-radius: 14px; }
  .book-box { position: static; padding: 18px; scroll-margin-top: 70px; }
  .opt-card .pr { margin-left: 0; width: 100%; }
  .rv-sum { padding: 16px; gap: 14px; }
  .rv-sum .big { font-size: 34px; }
  .m-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; align-items: center; gap: 10px; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.96); backdrop-filter: blur(10px); box-shadow: 0 -6px 20px rgba(46,111,211,.12); border-radius: 22px 22px 0 0; }
  .m-buy .p { line-height: 1.2; }
  .m-buy .p small { display: block; font-size: 11px; color: var(--ink-3); }
  .m-buy .p b { font-size: 18px; font-weight: 800; }
  .m-buy .btn { margin-left: auto; height: 48px; padding: 0 26px; }

  /* 예약 · 마이 */
  .checkout { padding: 18px 0 40px; gap: 14px; }
  .co-sec { padding: 18px 16px; }
  .co-sec .g2, .co-sec div[style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  .my { padding: 18px 0 40px; }
  .bk { grid-template-columns: 80px 1fr; }
  .bk > div:last-child { grid-column: 1 / -1; text-align: left !important; display: flex; align-items: center; justify-content: space-between; }
  .bk .th { height: 70px; }

  /* B2B */
  .b2b-strip .wrap { height: auto; padding: 8px 16px; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; }
  .b2b-strip .wrap > span:last-child { margin-left: 0 !important; }
  .b2b-hero h1 { font-size: 22px; }
  .b2b-hero .wrap { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 14px; }
  .kpi .val { font-size: 19px; }
  .qo-head .tabs button { padding: 0 12px; font-size: 12.5px; }
  .qo-head p { display: none; }
  .toolbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .toolbar .search-in { min-width: 200px; }
  .toolbar .chip { flex: none; }
  .qo-row { grid-template-columns: 1fr 1fr; padding: 12px 8px; border-bottom: 1px dashed var(--line); border-radius: 0; }
  .qo-row .qo-price { text-align: left; }
  .qo-row .qo-add { grid-column: 1 / -1; }
  .cart { position: static; }
}
@media (max-width: 760px) {
  .kakao-fab { height: 42px; padding: 0 12px 0 5px; font-size: 12.5px; }
  .kakao-fab .ic { width: 32px; height: 32px; }
  .m-hero .dol { display: block; width: 86px; right: 10px; bottom: 120px; }
  .story { padding: 22px 20px; }
  .story img.d { grid-column: 1; width: 80px; margin-top: 0; }
  .nav { display: none; }
  .slide img { height: 64px; }
}
@media (max-width: 760px) {
  .row-scroll { grid-auto-columns: calc((100% - 10px) / 2); gap: 10px; margin: 0; padding: 0 0 6px; }
  .reviews.rv-row { grid-auto-columns: 100%; margin: 0; padding: 0 0 8px; }
  .gal { grid-auto-columns: 100%; gap: 10px; }
  .gal figure { border-radius: 20px; }
  .prod .pic { aspect-ratio: 1 / 1; }
}
@media (max-width: 760px) {
  .m-hero { height: 250px; }
  .m-hero .wrap { justify-content: center; padding-bottom: 30px; }
  .m-hero .dol { bottom: 60px; width: 78px; }
  .s-wrap { margin-top: -26px; }
  .s-box { height: 52px; padding: 0 5px 0 16px; }
  .s-box input { font-size: 14.5px; }
  .s-box button { width: 42px; height: 42px; }
  .s-drop { border-radius: 22px; max-height: 60vh; }
  .countries { grid-template-columns: repeat(3, 1fr); }
  .country > div { justify-content: center; }
  .country .sub { display: none; }
  .country .cnt { flex-basis: 100%; }
}
@media (max-width: 760px) {
  .sc-btn { width: 34px; height: 34px; margin-top: -17px; }
  .sc-btn svg { width: 15px; height: 15px; }
  .sc-prev { left: 4px; } .sc-next { right: 4px; }
  .slides .sc-btn { opacity: 1; }
  .sc-btn.in.sc-prev { left: 8px; } .sc-btn.in.sc-next { right: 8px; }
  .sc-dots, .dots { margin-top: 10px; gap: 6px; }
  .reviews.rv-row { grid-auto-columns: 100%; }
}
@media (max-width: 760px) {
  .hs-s .wrap { padding-bottom: 50px; }
  .hs-s h1 { font-size: 24px; }
  .hs-sub { font-size: 13px; }
  .hs-go { height: 34px; font-size: 12.5px; margin-top: 12px; }
  .hs-dots { bottom: 44px; }
  .hs-btn { display: none; }
}
@media (max-width: 1024px) { .m-header .wrap { height: 60px; } .m-header .util { padding-top: 0; } }

/* 모바일 위쪽 '앱으로 받기' 배너 */
.app-bar { position: relative; z-index: 120; display: flex; align-items: center; gap: 10px; padding: 9px 12px 9px 8px; background: linear-gradient(100deg, #eaf5ff, #fdf0f6); border-bottom: 1px solid #e3eef8; }
.app-bar img { width: 42px; height: 42px; border-radius: 11px; box-shadow: 0 2px 6px rgba(46,111,211,.18); }
.app-bar .ab-x { width: 26px; height: 26px; border-radius: 50%; font-size: 18px; color: var(--ink-3); flex: none; }
.app-bar .ab-t { flex: 1; min-width: 0; line-height: 1.3; }
.app-bar .ab-t b { display: block; font-size: 14px; font-weight: 800; }
.app-bar .ab-t span { font-size: 12px; color: var(--ink-2); }
.app-bar .ab-go { height: 34px; padding: 0 14px; border-radius: 99px; background: linear-gradient(100deg, #2e6fd3, #2fc0dc); color: #fff; font-size: 13px; font-weight: 800; flex: none; }
@media (max-width: 760px) { .hero-sl .dol { display: none; } }
