/* ---- 디자인 토큰: 탑승권 콘셉트 (깊은 청록 하늘 + 종이 티켓 + 주황 버튼) ---- */
:root {
  --bg: #f1f5f4; --card: #ffffff; --ink: #10262c; --muted: #55686d; --line: #d9e2e1;
  --brand: #0b6e78; --brand-ink: #ffffff; --brand-soft: #e2f0ef; --accent: #ec5a2b; --accent-ink: #fff;
  --warn: #fff4e2; --warn-ink: #7a4300; --good: #17794a;
  --shadow: 0 1px 0 rgba(16,38,44,.03);
  --lift: 0 2px 0 rgba(4,30,34,.06), 0 28px 60px -28px rgba(4,30,34,.55);
  --radius: 14px; --hero: #0b3a41; --hero-ink: #f1f8f7; --hero-muted: #a8c7c6;
  --hero-a: #e3f3f4; --hero-b: #f1f5f4;
  --num: "Barlow Condensed", "IBM Plex Sans KR", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1417; --card: #142026; --ink: #e8f0f0; --muted: #9fb1b4; --line: #25363c;
    --brand: #3fbcc6; --brand-ink: #04191c; --brand-soft: #12313a; --accent: #ff8a5c; --accent-ink: #1c0c04;
    --warn: #3a2a12; --warn-ink: #ffd08f; --good: #5dd39e; --shadow: none;
    --lift: 0 28px 60px -28px rgba(0,0,0,.8); --hero: #082a30; --hero-ink: #eef6f5; --hero-muted: #93b4b4;
    --hero-a: #11303a; --hero-b: #0c1417;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16.5px/1.7 "IBM Plex Sans KR", -apple-system, "Malgun Gothic", sans-serif; -webkit-font-smoothing: antialiased; word-break: keep-all; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.025em; font-weight: 700; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }

/* 헤더 */
header.top { background: color-mix(in srgb, var(--card) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.logo { font-weight: 700; font-size: 21px; text-decoration: none; color: var(--ink); letter-spacing: -0.04em; display: inline-flex; align-items: center; }
.logo::before { content: ""; margin-right: 8px; width: 20px; height: 20px; border-radius: 50% 50% 50% 4px; background: var(--brand); box-shadow: inset 0 0 0 6px color-mix(in srgb, var(--brand) 55%, #fff); }
.logo b { color: var(--brand); font-weight: 700; }
nav.menu { display: flex; align-items: center; gap: 24px; }
nav.menu a { text-decoration: none; color: var(--muted); font-size: 15px; font-weight: 500; }
nav.menu a:hover { color: var(--ink); }
nav.menu a.cta { color: var(--brand-ink); background: var(--brand); padding: 8px 16px; border-radius: 10px; font-weight: 600; }
nav.menu a.cta:hover { color: var(--brand-ink); filter: brightness(1.08); }
@media (max-width: 560px) { nav.menu { gap: 16px; } nav.menu a:not(.cta):not(.mine) { display: none; } }

/* 기본 히어로 (다른 페이지) */
.hero { background: linear-gradient(180deg, var(--hero-a), var(--hero-b)); padding: 72px 0 56px; text-align: center; }
.hero .eyebrow { display: inline-block; font-size: 14px; font-weight: 600; color: var(--brand); background: var(--card); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(30px, 6vw, 52px); margin: 0 0 18px; }
.hero p.lead { font-size: clamp(16px, 2.4vw, 19px); color: var(--muted); max-width: 600px; margin: 0 auto 30px; }
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero.small { padding: 44px 0 26px; text-align: left; background: none; }
.hero.small h1 { font-size: clamp(26px, 4.5vw, 38px); margin-bottom: 12px; }
.hero.small p.lead { margin: 0; max-width: 660px; font-size: 17px; }

/* 홈 히어로: 짙은 하늘 띠 + 아래로 걸친 탑승권 */
.hero.home { --band: 150px; position: relative; overflow: hidden; text-align: left; padding: 76px 0 36px; color: var(--hero-ink);
  background: linear-gradient(var(--hero), var(--hero)) top / 100% calc(100% - var(--band)) no-repeat; }
.hero.home h1 { font-size: clamp(32px, 5.6vw, 58px); letter-spacing: -0.04em; line-height: 1.18; margin: 0 0 18px; max-width: 14em; }
.hero.home p.lead { color: var(--hero-muted); margin: 0 0 40px; max-width: 34em; }
.hero-arc { position: absolute; right: -40px; top: 34px; width: min(620px, 70vw); fill: none; stroke: color-mix(in srgb, var(--hero-ink) 22%, transparent); stroke-width: 1.5; stroke-dasharray: 2 9; stroke-linecap: round; pointer-events: none; }
.hero-arc circle { fill: color-mix(in srgb, var(--hero-ink) 35%, transparent); stroke: none; }
.hero-alt { margin: 18px 0 0; font-size: 15px; }
.hero-alt a { color: var(--muted); }

/* 탑승권 폼 */
.pass { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: var(--card); color: var(--ink); border-radius: 20px; box-shadow: var(--lift); }
.pass-main { padding: 30px 32px 32px; }
.pass-main h2 { margin: 0 0 4px; font-size: 24px; }
.pass-main .sub { margin: 0 0 22px; color: var(--muted); font-size: 15px; }
.pass .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
.pass-stub { position: relative; display: flex; flex-direction: column; gap: 18px; padding: 30px 26px 26px; border-left: 2px dashed var(--line); background: color-mix(in srgb, var(--brand-soft) 60%, var(--card)); border-radius: 0 20px 20px 0; }
.pass-stub::before, .pass-stub::after { content: ""; position: absolute; left: -14px; width: 26px; height: 26px; border-radius: 50%; }
.pass-stub::before { top: -13px; background: var(--hero); }
.pass-stub::after { bottom: -13px; background: var(--bg); }
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 10px; }
.route b { display: block; font: 700 46px/1 var(--num); letter-spacing: 0.01em; }
.route small { display: block; margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.35; max-width: 7.5em; }
.route .r { text-align: right; }
.route .r small { margin-left: auto; }
.route .ln { position: relative; height: 46px; display: grid; place-items: center; }
.route .ln::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dotted color-mix(in srgb, var(--brand) 55%, transparent); }
.route .ln svg { position: relative; width: 22px; height: 22px; fill: var(--brand); transform: rotate(90deg); background: color-mix(in srgb, var(--brand-soft) 60%, var(--card)); padding: 0 2px; box-sizing: content-box; }
.pmeta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 10px; margin: 0; padding: 16px 0 0; border-top: 1px solid var(--line); }
.pmeta div:last-child { grid-column: 1 / -1; }
.pmeta dt { font-size: 12.5px; color: var(--muted); }
.pmeta dd { margin: 0; font-weight: 600; font-size: 15.5px; font-variant-numeric: tabular-nums; }
.pass-stub .btn.block { margin-top: auto; }
.pass-stub .hint:empty { display: none; }
.pass-stub .hint { margin: 0; color: var(--accent); }
@media (max-width: 820px) {
  .hero.home { --band: 360px; padding-top: 48px; }
  .hero-arc { top: 10px; opacity: .6; }
  .pass { grid-template-columns: 1fr; }
  .pass-main { padding: 24px 20px 22px; }
  .pass-stub { border-left: 0; border-top: 2px dashed var(--line); border-radius: 0 0 20px 20px; padding: 22px 20px 20px; }
  .pass-stub::before, .pass-stub::after { top: -14px; bottom: auto; background: var(--bg); }
  .pass-stub::before { left: -13px; }
  .pass-stub::after { left: auto; right: -13px; }
  .pmeta { grid-template-columns: 1fr 1fr 1fr; }
  .pmeta div:last-child { grid-column: auto; }
}
@media (max-width: 480px) { .pass .grid .full { grid-column: 1 / -1; } .route b { font-size: 40px; } }

/* 섹션: 왼쪽 정렬 제목 */
section.block { padding: 64px 0 8px; }
section.block > h2 { font-size: clamp(22px, 3.4vw, 28px); margin: 0 0 6px; }
section.block > p.sub { color: var(--muted); margin: 0 0 24px; max-width: 620px; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feat .ic { font-size: 28px; display: block; margin-bottom: 10px; }
.feat h3 { margin: 0 0 6px; font-size: 18px; }
.feat p { margin: 0; color: var(--muted); font-size: 15.5px; }
/* 기능 소개: 카드 대신 구분선 목록 */
.feats { gap: 0 48px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .feats { grid-template-columns: 1fr; } }
.feats .feat { background: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 20px 0 22px; display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; }
.feats .feat .ic { grid-row: 1 / 3; margin: 0; font-size: 26px; line-height: 1.2; }
/* 이용 방법: 실제 순서이므로 번호 + 점선 경로 */
.steps { counter-reset: s; display: grid; gap: 24px; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; padding: 0; }
.step::before { counter-increment: s; content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--brand); color: var(--brand-ink); font: 700 20px/1 var(--num); margin-bottom: 14px; position: relative; z-index: 1; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 19px; left: 50px; right: -12px; border-top: 2px dotted color-mix(in srgb, var(--brand) 50%, var(--line)); }
.step h3 { margin: 0 0 6px; font-size: 18px; }
.step p { margin: 0; color: var(--muted); font-size: 15.5px; }
@media (max-width: 700px) { .steps { grid-template-columns: 1fr; gap: 20px; } .step { padding-left: 54px; } .step::before { position: absolute; left: 0; top: 0; margin: 0; } .step:not(:last-child)::after { top: 44px; bottom: -18px; left: 18px; right: auto; border-top: 0; border-left: 2px dotted color-mix(in srgb, var(--brand) 50%, var(--line)); } }

/* 카드·폼 */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 16px; font-size: 20px; }
.start { max-width: 860px; margin: 0 auto; border: 2px solid var(--brand); }
.start h2 { font-size: 24px; margin-bottom: 4px; }
.start .sub { color: var(--muted); margin: 0 0 20px; font-size: 15.5px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
label.f { display: block; font-size: 13.5px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input, select { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; font-weight: 500; min-height: 50px; transition: border-color .15s, background-color .15s; }
input:hover, select:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
input:focus, select:focus { background: var(--card); border-color: var(--brand); }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; min-height: 0; width: 100%; height: 100%; cursor: pointer; }
.seg span { display: inline-block; padding: 10px 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--bg); cursor: pointer; transition: border-color .15s; }
.seg label:hover span { border-color: var(--brand); }
.seg input:checked + span { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); font-weight: 600; }
.seg input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.stepper { display: flex; gap: 8px; align-items: center; }
.stepper button { width: 50px; height: 50px; flex: none; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 22px; cursor: pointer; }
.stepper input { text-align: center; }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 12px; padding: 15px 28px; font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-decoration: none; transition: filter .15s, transform .1s; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn.lg { padding: 17px 32px; font-size: 17.5px; }
.btn.block { display: block; width: 100%; text-align: center; margin-top: 22px; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); padding: 10px 16px; font-weight: 600; font-size: 14.5px; }
.btn.sec { background: var(--card); color: var(--ink); border: 1.5px solid var(--line); }
.btn.sm { padding: 10px 16px; font-size: 14.5px; border-radius: 10px; }
.hint { font-size: 13.5px; color: var(--muted); margin-top: 7px; line-height: 1.55; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sp { justify-content: space-between; }
.hidden { display: none !important; }

/* 단계 표시·접이식 */
.progress { display: flex; gap: 8px; margin: 0 0 18px; font-size: 14px; font-weight: 600; color: var(--muted); flex-wrap: wrap; }
.progress span { padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); }
.progress span.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
details.basic { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
details.basic summary { cursor: pointer; font-weight: 700; font-size: 17px; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
details.basic summary::-webkit-details-marker { display: none; }
details.basic summary small { color: var(--brand); font-weight: 600; }
details.basic[open] summary { margin-bottom: 16px; }
.q { margin-bottom: 26px; }
.q:last-of-type { margin-bottom: 0; }
.q .t { font-weight: 700; font-size: 16px; margin-bottom: 4px; }
.q .d { color: var(--muted); font-size: 14px; margin-bottom: 10px; }

/* 결과 */
.summary { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.stat { background: var(--brand-soft); border-radius: 14px; padding: 16px; }
.stat small { color: var(--muted); display: block; font-size: 14px; }
.stat b { font-size: 22px; letter-spacing: -0.02em; }
.alert { background: var(--warn); color: var(--warn-ink); padding: 13px 16px; border-radius: 12px; margin-bottom: 12px; font-size: 15px; }
.alert.ok { background: var(--brand-soft); color: var(--good); }
.flight { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 10px; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; cursor: pointer; background: var(--bg); }
.flight:hover { border-color: var(--brand); }
.flight.sel { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand) inset; background: var(--brand-soft); }
.flight .price { font-size: 22px; font-weight: 800; }
.badge { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); margin-right: 5px; font-weight: 700; vertical-align: middle; }
.badge.b2 { background: var(--brand); color: var(--brand-ink); }
.badge.pop { background: #e8e1ff; color: #4a2fb5; }
.badge.hid, .badge.loc { background: #dff5e7; color: #176a3f; }
.badge.tou { background: #ffe9d6; color: #994a00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.pop { background: #2b2552; color: #cbbfff; } :root:not([data-theme="light"]) .badge.hid, :root:not([data-theme="light"]) .badge.loc { background: #163c29; color: #9be3b7; } :root:not([data-theme="light"]) .badge.tou { background: #4a2d12; color: #ffc89a; } }
.bar { display: flex; height: 14px; border-radius: 99px; overflow: hidden; margin: 8px 0 14px; background: var(--line); }
.bar i { display: block; }
.legend { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); font-size: 15px; }
.legend span::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 8px; background: var(--c); }
.day h3 { margin: 0 0 8px; font-size: 19px; }
.day h3 small { color: var(--muted); font-weight: 400; font-size: 15px; margin-left: 6px; }
.item { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); }
.item .tm { color: var(--muted); font-size: 14px; padding-top: 3px; font-variant-numeric: tabular-nums; }
.item .nm { font-weight: 700; }
.item .ds { font-size: 15px; color: var(--muted); }
.item .lk { margin-top: 4px; }
.item .lk a { font-size: 13.5px; margin-right: 12px; white-space: nowrap; }
.item .cs { font-size: 14.5px; text-align: right; white-space: nowrap; color: var(--muted); }
@media (max-width: 560px) { .item { grid-template-columns: 52px 1fr; } .item .cs { grid-column: 2; text-align: left; } }
.dest-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.dest-grid a { display: grid; grid-template-columns: auto 1fr auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); transition: border-color .15s; }
.dest-grid a:hover { border-color: var(--brand); }
.dest-grid a b { grid-column: 2; display: block; font-size: 17px; line-height: 1.35; }
.dest-grid a small { grid-column: 2; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.dest-grid .em { grid-row: 1 / span 2; grid-column: 1; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 23px; }
.dest-grid .code { grid-row: 1 / span 2; grid-column: 3; font: 600 20px/1 var(--num); font-style: normal; letter-spacing: .04em; color: color-mix(in srgb, var(--muted) 75%, transparent); }
.dest-grid a:hover .code { color: var(--brand); }
.faq h3 { font-size: 17px; margin: 0 0 4px; padding-top: 18px; border-top: 1px solid var(--line); }
.faq p + h3 { margin-top: 18px; }
.faq h3:first-of-type { padding-top: 0; border-top: 0; }
.faq p { margin: 0; color: var(--muted); }
footer { color: var(--muted); font-size: 14px; padding: 36px 0 72px; margin-top: 64px; border-top: 1px solid var(--line); background: var(--card); }
footer p { margin: 4px 0; }
main > h2.sec { font-size: 24px; margin: 32px 0 14px; }
@media print { header.top, .no-print, footer, form, .progress, details.basic, .hero { display: none !important; } body { background: #fff; color: #000; } .card { border: 0; box-shadow: none; } }

.prose { padding-top: 40px; padding-bottom: 20px; }
.prose h1 { font-size: clamp(28px, 5vw, 38px); margin: 0 0 12px; }
.prose .lead { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 21px; margin: 32px 0 8px; }
.prose p, .prose li { color: var(--ink); }
.prose ul { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose code { background: var(--brand-soft); padding: 1px 6px; border-radius: 6px; font-size: 14px; }
footer a { color: var(--muted); }

.crumbs { font-size: 14px; color: var(--muted); padding-top: 20px; }
.crumbs a { color: var(--muted); }

/* 유튜브 카드 · 재생 모달 */
.vgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.trank { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.trank .th { display: flex; flex-direction: column; }
.trank .th small { color: var(--muted); font-size: 13.5px; }
.trank > a { font-size: 14.5px; font-weight: 700; text-decoration: none; }
.vcard { display: flex; flex-direction: column; gap: 6px; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); font: inherit; }
.vthumb { position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--line); }
.vthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vthumb i { position: absolute; inset: 0; display: grid; place-items: center; font-style: normal; color: #fff; font-size: 28px; background: rgba(0,0,0,.28); }
.vcard:hover .vthumb i { background: rgba(0,0,0,.45); }
.vcard .vt { font-weight: 700; font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vcard .vm { font-size: 12.5px; color: var(--muted); }
.vmodal { position: fixed; inset: 0; background: rgba(0,0,0,.75); display: grid; place-items: center; z-index: 50; padding: 16px; }
.vbox { position: relative; width: min(900px, 100%); }
.vframe { aspect-ratio: 16 / 9; background: #000; border-radius: 12px; overflow: hidden; }
.vframe iframe { width: 100%; height: 100%; border: 0; display: block; }
.vclose { position: absolute; top: -44px; right: 0; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #000; font-size: 18px; cursor: pointer; }

/* 날씨·환율 카드 */
.xcard h2 small { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 6px; }
.xtable { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 15px; }
.xtable th, .xtable td { padding: 9px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.xtable thead th { color: var(--muted); font-size: 13px; font-weight: 600; }
.xtable tbody th { font-weight: 700; white-space: nowrap; }
.xtable tr.best { background: var(--brand-soft); }
.xtips { margin: 0 0 8px; padding-left: 20px; }
.xtips li { margin: 4px 0; }
.xconv { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-top: 12px; }
.xconv label { flex: 1; min-width: 130px; font-size: 13px; font-weight: 700; display: block; }
.xconv input { margin-top: 6px; }
.xconv span { padding-bottom: 14px; color: var(--muted); }

.fare { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); }
.fare .price { font-size: 20px; font-weight: 800; margin-bottom: 6px; }

/* 토스트 · 예약 영역 · 쿠팡 추천템 */
.toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 20px); background: #162230; color: #fff; padding: 12px 20px; border-radius: 999px; font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.book { display: grid; gap: 16px; }
.bgroup .bt { font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.gear { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; font-size: 14px; }
.gear h2 { font-size: 15px; margin: 0 0 4px; }
.gear .gsub { color: var(--muted); font-size: 12.5px; margin: 0 0 10px; }
.gear a.gi { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 500; }
.gear a.gi:hover { color: var(--brand); }
.gear a.gi span { font-size: 18px; }
.gear .gnote { color: var(--muted); font-size: 11.5px; line-height: 1.5; margin: 10px 0 0; }
.gear.inline { max-width: 1040px; margin: 24px auto 0; }
.side-gear { display: none; }
@media (min-width: 1500px) { .side-gear { display: block; position: fixed; top: 84px; right: calc((100vw - 1040px) / 2 - 236px); width: 212px; z-index: 5; } .gear.inline { display: none; } }
@media print { .gear, .side-gear, .toast { display: none !important; } }

.gear.weekly { margin-bottom: 12px; text-align: center; }
.gear.weekly h2 { text-align: left; }
.wframe { display: flex; justify-content: center; padding: 6px 0 2px; }
.wframe iframe { border: 0; max-width: 100%; }
.gear.inline.weekly { max-width: 1040px; }
.gear-wrap { display: grid; gap: 12px; }

.side-gear { max-height: calc(100vh - 100px); overflow-y: auto; }

.gframes { margin-bottom: 8px; }
.gframes iframe { display: block; width: 100%; border: 0; margin-bottom: 8px; }

.fbtns { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
@media (max-width: 560px) { .fare { align-items: stretch; } .fbtns { align-items: stretch; } .fare > div:last-child { text-align: left !important; } }

/* 일정 편집 */
.ectl { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.ectl button { min-height: 34px; padding: 4px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.ectl button:disabled { opacity: .35; cursor: default; }
.ectl button.del { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.ectl .mvsel { min-height: 34px; padding: 4px 8px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.item.dragable { cursor: grab; }
.item.dragging { opacity: .45; }
.item.dropbefore { box-shadow: 0 -3px 0 0 var(--brand); }
.item.dropafter { box-shadow: 0 3px 0 0 var(--brand); }
.day.dragover { outline: 2px dashed var(--brand); outline-offset: -2px; }
.eadd { padding-top: 12px; border-top: 1px dashed var(--line); }
.etoolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 24px 0 10px; }
.etoolbar h2 { margin: 0; margin-right: auto; }
.btn.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.pmodal { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; display: grid; place-items: center; padding: 16px; }
.pbox { background: var(--card); color: var(--ink); width: min(640px, 100%); max-height: min(80vh, 720px); border-radius: var(--radius); display: flex; flex-direction: column; overflow: hidden; }
.phead { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 17px; }
.pclose { border: 0; background: var(--bg); color: var(--ink); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; }
.ptabs { display: flex; gap: 8px; padding: 12px 18px 0; }
.ptabs button { flex: 1; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.ptabs button.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.plist { overflow-y: auto; padding: 8px 18px 18px; }
.prow { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 12px 0; cursor: pointer; color: var(--ink); font: inherit; }
.prow:hover { background: var(--brand-soft); }
.prow .pn { font-weight: 700; }
.prow .pb { font-style: normal; font-size: 12px; color: var(--brand); margin-left: 4px; font-weight: 600; }
.prow .pd { grid-column: 1; color: var(--muted); font-size: 13.5px; }
.prow .pc { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: 13.5px; color: var(--muted); white-space: nowrap; }

.deal h3 small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.dprice { font-size: 26px; font-weight: 800; margin: 2px 0 6px; letter-spacing: -0.02em; }
.dprice small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 4px; }

/* ---- 홈 특가 배너(가로 스크롤 + 자동 넘김) ---- */
#hotBanner { max-width: 860px; margin: 0 auto; }
.hb-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.hb-head h2 { margin: 0; }
.hb-src { font-size: 12.5px; color: var(--muted); }
.hb-track { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 2px 8px; }
.hb-track::-webkit-scrollbar { display: none; }
.hb-slide { flex: 0 0 86%; scroll-snap-align: start; background: linear-gradient(135deg, var(--brand-soft), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 16px; box-shadow: var(--shadow); display: flex; flex-direction: column; }
@media (min-width: 760px) { .hb-slide { flex-basis: calc(50% - 7px); } }
.hb-top { display: flex; align-items: center; gap: 12px; }
.hb-em { font-size: 40px; line-height: 1; }
.hb-name { display: block; font-size: 21px; font-weight: 800; }
.hb-top small { color: var(--muted); font-size: 13px; }
.hb-when { margin: 12px 0 2px; font-weight: 700; font-size: 15px; }
.hb-price { margin: 0 0 14px; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--accent); }
.hb-price small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.hb-price em { font-style: normal; font-size: 20px; margin-left: 2px; }
.hb-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.hb-btns .btn.sm:first-child { flex: 1 1 auto; text-align: center; }
.hb-nav { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 4px; }
.hb-arrow { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; }
.hb-dots { display: flex; gap: 6px; }
.hb-dots button { width: 8px; height: 8px; padding: 0; border-radius: 99px; border: 0; background: var(--line); cursor: pointer; transition: width .2s; }
.hb-dots button.on { width: 22px; background: var(--brand); }

/* ---- 결과 화면: 다음 단계(숙소) 카드 + 모바일 하단 고정 바 ---- */
.nextstep { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--brand-soft); border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.nextstep b { display: block; font-size: 16.5px; }
.nextstep small { color: var(--muted); font-size: 13.5px; }
.mbar { display: none; }
@media (max-width: 700px) {
  .mbar { display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--card) 96%, transparent); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); transform: translateY(110%); transition: transform .25s; }
  .mbar.show { transform: none; }
  .mbar .btn { flex: 1; text-align: center; }
  .mbar .btn:first-child { flex: 1.4; }
}
@media print { .mbar, .nextstep { display: none !important; } }

/* ---- 여행지 페이지 상단 특가 카드 ---- */
.destdeal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; border: 2px solid var(--accent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 8%, var(--card)), var(--card)); }
.destdeal small { color: var(--muted); font-size: 13px; display: block; margin-bottom: 4px; }
.destdeal b { font-size: 17px; }
.destdeal b span { color: var(--accent); white-space: nowrap; margin-left: 4px; }
.destdeal .hint { flex-basis: 100%; margin: 0; font-size: 12.5px; }
@media (max-width: 700px) { body:has(.mbar) { padding-bottom: 76px; } }

/* ---- 숫자 표기: 좁은 글꼴 + 고정폭 숫자 ---- */
.flight .price, .stat b, .dprice, .hb-price, .fare .price { font-family: var(--num); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.flight .price { font-size: 26px; }
.stat b { font-size: 26px; }
.dprice { font-size: 30px; }
.fare .price { font-size: 24px; }
.hb-price { font-size: 36px; line-height: 1.1; }
.hb-price em { font-family: "IBM Plex Sans KR", sans-serif; font-size: 18px; font-weight: 700; }
.stat { background: var(--brand-soft); border-radius: 12px; }
.badge { font-weight: 600; border-radius: 6px; }

/* ---- 홈 특가 배너: 흰 종이 카드 + 왼쪽 띠 ---- */
#hotBanner { max-width: none; }
.hb-slide { background: var(--card); box-shadow: none; border-radius: 14px; border-left: 4px solid var(--accent); }
@media (min-width: 760px) { .hb-slide { flex-basis: calc(33.333% - 10px); } }
.hb-em { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 26px; }
.hb-name { font-size: 19px; font-weight: 700; }
.hb-dots button.on { background: var(--accent); }

/* ---- 일정표: 시간 열을 출발 안내판처럼 ---- */
.item .tm { font-family: var(--num); font-size: 17px; font-weight: 600; color: var(--brand); padding-top: 1px; }
.day h3 { font-size: 20px; }
.progress span { border-radius: 8px; }
.progress span.on { font-weight: 600; }
.flight { border-radius: 12px; }
.badge.trip { background: #dbeafe; color: #1e4fa8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .badge.trip { background: #172b4d; color: #a9c7ff; } }

/* ---- 최저가 달력 ---- */
.cal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-head h2 { margin: 0; }
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav b { min-width: 7.5em; text-align: center; font-variant-numeric: tabular-nums; }
.cal-nav button:disabled { opacity: .35; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-dow span { text-align: center; font-size: 12.5px; color: var(--muted); padding-bottom: 4px; }
.cal-dow span:first-child { color: #c2410c; }
.cal-c { min-height: 58px; border-radius: 8px; padding: 6px 4px; display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid transparent; background: none; font: inherit; color: var(--muted); }
.cal-c b { font-weight: 500; font-size: 13.5px; }
.cal-c.past { opacity: .4; }
.cal-c.has { background: var(--bg); border-color: var(--line); color: var(--ink); cursor: pointer; }
.cal-c.has i { font: 600 15px/1.1 var(--num); font-style: normal; color: var(--ink); }
.cal-c.has:hover { border-color: var(--brand); }
.cal-c.low { background: #e3f6ea; border-color: #a7dcb9; }
.cal-c.low i { color: #166534; }
.cal-c.sel { outline: 2px solid var(--brand); outline-offset: -2px; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cal-c.low { background: #133222; border-color: #24603d; } :root:not([data-theme="light"]) .cal-c.low i { color: #8ee0ad; } }
@media (max-width: 480px) { .cal-c { min-height: 50px; padding: 4px 1px; } .cal-c.has i { font-size: 13px; } }

/* ---- 내 여행 ---- */
nav.menu a.mine { color: var(--ink); font-weight: 600; }
.mine-list { display: grid; gap: 10px; }
.trip-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.mine-list .trip-card { margin: 0; }
.tc-main { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; text-decoration: none; color: var(--ink); }
.tc-main .em { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); font-size: 23px; }
.tc-main b { display: block; font-size: 17px; }
.tc-main small { display: block; color: var(--muted); font-size: 13.5px; }
.tc-price { text-align: right; font: 700 22px/1.1 var(--num); font-variant-numeric: tabular-nums; }
.tc-price small { font: 400 12px/1.4 "IBM Plex Sans KR", sans-serif; }
.trip-card:hover { border-color: var(--brand); }
.tc-act { display: flex; gap: 8px; justify-content: flex-end; padding: 0 16px 14px; }
.hb-head a { font-size: 14px; }

/* ---- 이용자 제보 팁 ---- */
.utips { list-style: none; padding: 0; margin: -4px 0 8px; }
.utips li { padding: 12px 0; border-top: 1px solid var(--line); }
.utips li:first-child { border-top: 0; }
.utips small { display: block; color: var(--muted); font-size: 12.5px; margin-top: 2px; }
.tipform { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.tipform summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.tipform form { margin-top: 14px; }
textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--ink); font: inherit; font-size: 16px; resize: vertical; }
textarea:focus { background: var(--card); border-color: var(--brand); outline: 3px solid color-mix(in srgb, var(--brand) 40%, transparent); outline-offset: 1px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* ---- 특가 알림 ---- */
.al-in { display: flex; gap: 8px; max-width: 360px; }
.al-in input { flex: 1; }
.al-in .btn { white-space: nowrap; }
.al-on { margin: 0 0 10px; }
.al-msg:empty { display: none; }

/* 홈 여행지 더 보기 */
details.more { margin-top: 12px; }
details.more > summary { list-style: none; cursor: pointer; text-align: center; padding: 12px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-weight: 600; }
details.more > summary::-webkit-details-marker { display: none; }
details.more > summary:hover { color: var(--brand); border-color: var(--brand); }
details.more[open] > summary { display: none; }
details.more > .dest-grid { margin-top: 0; }
