:root {
  --bg: #f6f7f9;
  --card: #ffffff;
  --text: #1a1d23;
  --muted: #5f6673;
  --line: #e3e6eb;
  --accent: #2f6fed;
  --accent-soft: #e8efff;
  --good: #11845b;
  --bad: #c2402f;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111317;
    --card: #1b1e24;
    --text: #e9ecf1;
    --muted: #9aa1ad;
    --line: #2c3038;
    --accent: #6c9bff;
    --accent-soft: #1f2a44;
    --good: #3ccf91;
    --bad: #ff7a68;
  }
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard', 'Noto Sans KR', sans-serif;
  word-break: keep-all;
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.top { background: var(--card); border-bottom: 1px solid var(--line); }
header.top .wrap { display: flex; align-items: center; gap: 12px; height: 56px; }
header.top .logo { font-weight: 800; font-size: 19px; color: var(--text); text-decoration: none; }
header.top .logo span { color: var(--accent); }
header.top nav { margin-left: auto; font-size: 14px; display: flex; gap: 14px; overflow-x: auto; white-space: nowrap; scrollbar-width: none; min-width: 0; }
header.top nav::-webkit-scrollbar { display: none; }
@media (max-width: 420px) { header.top nav { gap: 10px; font-size: 13.5px; } }
header.top nav a { color: var(--muted); text-decoration: none; }
main { padding: 20px 0 40px; }
h1 { font-size: 24px; line-height: 1.35; margin: 8px 0 6px; }
h2 { font-size: 19px; margin: 32px 0 10px; }
h3 { font-size: 16px; margin: 20px 0 6px; }
.lead { color: var(--muted); margin: 0 0 18px; }
.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin: 14px 0; }
.form { display: grid; gap: 12px; }
.form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.form .hint { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.form input, .form select {
  font: inherit; width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--bg); color: var(--text);
}
.form input:focus, .form select:focus { outline: 2px solid var(--accent); border-color: transparent; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .row2 { grid-template-columns: 1fr; } }
.result { background: var(--accent-soft); border: 0; }
.result .big { font-size: 30px; font-weight: 800; line-height: 1.2; margin: 2px 0 4px; }
.result .sub { color: var(--muted); font-size: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { padding: 8px 6px; border-bottom: 1px solid var(--line); text-align: left; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
.good { color: var(--good); }
.bad { color: var(--bad); }
.note { font-size: 13px; color: var(--muted); }
.ad { margin: 18px 0; min-height: 90px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.tile {
  --c: var(--accent);
  position: relative; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--c);
  border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--text);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgb(0 0 0 / .08); border-color: var(--c); }
.tile .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 24px;
  background: color-mix(in srgb, var(--c) 14%, transparent);
}
.tile .txt { min-width: 0; }
.tile b { display: block; line-height: 1.35; }
.tile small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; margin-top: 2px; }
.tile .kind {
  position: absolute; top: 8px; right: 10px; font-size: 10.5px; font-weight: 700; color: var(--c);
  background: color-mix(in srgb, var(--c) 12%, transparent); padding: 1px 6px; border-radius: 99px;
}
.tile .txt { padding-right: 34px; }
h2.sec { --c: var(--accent); display: flex; align-items: center; gap: 8px; margin-top: 34px; }
h2.sec .sec-ico {
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 18px;
  background: color-mix(in srgb, var(--c) 16%, transparent);
}
h2.sec::after { content: ''; flex: 1; height: 1px; background: var(--line); margin-left: 6px; }
.badge { --c: var(--accent); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.h1-ico { margin-right: 8px; }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.related { margin-top: 28px; }
footer { border-top: 1px solid var(--line); padding: 24px 0 40px; font-size: 13px; color: var(--muted); }
footer a { color: var(--muted); margin-right: 12px; }
.todo { padding-left: 0; list-style: none; margin: 12px 0 0; display: grid; gap: 8px; }
.todo li { background: var(--card); border-radius: 10px; padding: 10px 12px; }
.todo li small { display: block; color: var(--muted); margin-top: 3px; font-size: 13px; }
.hero { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 8px; }
@media (max-width: 720px) { .hero { grid-template-columns: 1fr; } }
.hero a {
  --c: var(--accent); display: block; text-decoration: none; color: #fff; border-radius: 16px; padding: 18px;
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, #000));
  box-shadow: 0 6px 18px color-mix(in srgb, var(--c) 30%, transparent); transition: transform .12s ease;
}
.hero a:hover { transform: translateY(-3px); }
.hero .hi { font-size: 34px; line-height: 1; }
.hero b { display: block; font-size: 18px; margin: 10px 0 4px; }
.hero small { display: block; opacity: .9; font-size: 13.5px; }
.hero .go { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; background: rgb(255 255 255 / .2); padding: 4px 10px; border-radius: 99px; }
[hidden] { display: none !important; }
.todo .good { white-space: nowrap; font-weight: 700; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.chip { font: inherit; font-size: 14px; font-weight: 700; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--card); color: var(--text); cursor: pointer; }
.chip.on { background: #0c8599; color: #fff; border-color: #0c8599; }
.fbest { background: linear-gradient(135deg, #0c8599, #0b5f6b); color: #fff; border-radius: 16px; padding: 18px; margin: 14px 0; }
.fbest .sub { color: #e3fafc; } .fbest .big { color: #fff; font-size: 30px; font-weight: 800; margin: 2px 0 6px; }
.fbest .leg { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; background: rgb(255 255 255 / .14); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 14px; }
.fbest .leg .t { font-weight: 800; } .fbest .leg span:last-child { grid-column: 2; opacity: .95; }
.fbest .hint { font-size: 12.5px; opacity: .85; margin: 8px 0 0; }
.fbest .btn { display: block; text-align: center; background: #fff; color: #0b5f6b; font-weight: 800; border-radius: 12px; padding: 12px; margin-top: 12px; text-decoration: none; }
.fcal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.fcal .h { text-align: center; color: var(--muted); font-size: 12px; }
.fcal .m { grid-column: 1 / -1; font-weight: 800; margin-top: 8px; }
.fcal button { font: inherit; border: 0; border-radius: 8px; padding: 5px 0; font-size: 11.5px; line-height: 1.3; cursor: pointer; color: #1a1d23; background: var(--line); }
.fcal button b { display: block; font-size: 13px; }
.fcal .lo { background: #d3f9d8; } .fcal .mid { background: #fff3bf; } .fcal .hi { background: #ffe3e3; }
.fcal .none { background: transparent; color: var(--muted); cursor: default; }
.fcal .pick { outline: 2px solid #0c8599; }
.bar { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.bar span:first-child { width: 40px; flex: none; } .bar i { display: block; height: 22px; border-radius: 6px; background: #0c8599; }
.bar.top i { background: #2b8a3e; } .bar.top span:last-child { font-weight: 800; color: var(--good); }
.deals { background: var(--card); border: 2px solid #0c8599; border-radius: 18px; padding: 16px; margin: 16px 0 22px; }
.deals-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 10px; }
.deals-head b { font-size: 19px; } .deals-head span { font-size: 13px; color: var(--muted); }
.deals-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 600px) { .deals-list { grid-template-columns: 1fr; } }
.deals-list a {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px;
  background: var(--bg); border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.deals-list a:hover { border-color: #0c8599; }
.deals-list a.top { background: #e3fafc; border-color: #0c8599; }
.deals-list .rk { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--line); color: var(--text); }
.deals-list .top .rk { background: #0c8599; color: #fff; }
.deals-list .rt { flex: 1; min-width: 0; }
.deals-list .rt b { display: block; font-size: 16px; }
.deals-list .rt small { display: block; font-size: 13px; color: var(--muted); margin-top: 1px; }
.deals-list .rt em { font-style: normal; font-weight: 800; color: #0c8599; margin-left: 4px; }
.deals-list .pr { font-size: 24px; font-weight: 800; color: #0b5f6b; white-space: nowrap; }
.deals-list .pr small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.deals-list .go { font-size: 22px; color: var(--muted); }
.deals .note { margin: 10px 0 0; }
@media (prefers-color-scheme: dark) { .deals-list a.top { background: #0b3d44; } .deals-list .pr { color: #66d9e8; } }
.tbox { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin: 14px 0; }
.tgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
@media (max-width: 480px) { .tgrid { grid-template-columns: 1fr; } }
.tgrid a { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: color-mix(in srgb, #0c8599 8%, transparent); color: var(--text); text-decoration: none; }
.tgrid a:hover { background: color-mix(in srgb, #0c8599 16%, transparent); }
.tgrid .ti { font-size: 26px; flex: none; }
.tgrid b { display: block; font-size: 15px; } .tgrid small { display: block; color: var(--muted); font-size: 12.5px; }
.tgrid em { font-style: normal; font-size: 12px; font-weight: 700; color: #0c8599; }
.tbox .note { margin: 10px 0 0; }
.wl-wrap { min-height: 320px; margin: 8px 0 16px; }
.fbest .btn2 { display: block; text-align: center; color: #fff; font-size: 13px; text-decoration: underline; margin-top: 8px; opacity: .9; }
.nbox .nh { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; margin-bottom: 10px; }
.nbox .nh b { font-size: 17px; } .nbox .nh span { font-size: 13px; color: var(--muted); }
.nrow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (max-width: 560px) { .nrow { grid-template-columns: repeat(3, 1fr); } }
.nrow a { display: grid; gap: 1px; text-align: center; padding: 10px 4px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; }
.nrow a:hover { border-color: #0c8599; }
.nrow a b { font-size: 15px; } .nrow a small { font-size: 11.5px; color: var(--muted); }
.nrow a span { font-size: 13px; font-weight: 700; color: #0b5f6b; margin-top: 2px; }
.nrow a.best { border-color: #2b8a3e; } .nrow a.best span { color: var(--good); }
.nrow a.on { background: #0c8599; border-color: #0c8599; color: #fff; }
.nrow a.on small, .nrow a.on span { color: #e3fafc; }
.nbox .note { margin: 10px 0 0; }
.rdir h3 { font-size: 15px; margin: 16px 0 6px; }
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 6px; }
.rgrid a { display: flex; justify-content: space-between; gap: 6px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; font-size: 14px; }
.rgrid a:hover { border-color: #0c8599; } .rgrid b { color: #0b5f6b; }
.nrow a span.live { color: var(--muted); font-weight: 600; } .nrow a.on span.live { color: #e3fafc; }

/* 홈 항공권 검색 카드 */
.fx { margin: 14px 0 24px; border-radius: 22px; padding: 18px 16px 16px; background: linear-gradient(140deg, #0c8599 0%, #0b5f6b 100%); box-shadow: 0 10px 30px rgb(11 95 107 / .25); }
.fx-top { color: #fff; margin: 2px 4px 14px; }
.fx-top b { display: block; font-size: 22px; letter-spacing: -.3px; }
.fx-top span { font-size: 12.5px; opacity: .85; }
.fx-card { background: #fff; color: #1a1d23; border-radius: 18px; padding: 14px; display: grid; gap: 10px; }
.fx-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 6px; }
.fx-field { font: inherit; text-align: left; border: 1.5px solid #e3e6eb; background: #f6f7f9; border-radius: 14px; padding: 10px 12px; cursor: pointer; color: inherit; display: grid; gap: 1px; min-width: 0; }
.fx-field.open, .fx-field:hover { border-color: #0c8599; background: #fff; }
.fx-field small { font-size: 12px; color: #5f6673; font-weight: 600; }
.fx-field b { font-size: 21px; letter-spacing: -.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-field em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #0c8599; }
.fx-arrow { align-self: center; color: #0c8599; font-size: 18px; }
.fx-panel { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; padding: 8px; background: #f6f7f9; border-radius: 14px; }
.fx-panel button { font: inherit; border: 1px solid #e3e6eb; background: #fff; border-radius: 10px; padding: 8px 6px; cursor: pointer; display: grid; gap: 1px; color: #1a1d23; }
.fx-panel button b { font-size: 15px; } .fx-panel button small { font-size: 12px; color: #0b5f6b; font-weight: 700; }
.fx-panel button.on { background: #0c8599; border-color: #0c8599; color: #fff; } .fx-panel button.on small { color: #e3fafc; }
.fx-date { position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border: 1.5px solid #e3e6eb; background: #f6f7f9; border-radius: 14px; padding: 10px 12px; cursor: pointer; }
.fx-date:hover { border-color: #0c8599; }
.fx-date small { font-size: 12px; color: #5f6673; font-weight: 600; width: 100%; }
.fx-date b { font-size: 18px; }
.fx-badge { font-size: 11.5px; font-weight: 800; color: #2b8a3e; background: #d3f9d8; padding: 2px 8px; border-radius: 99px; }
.fx-date input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.fx-nights { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fx-nights button { font: inherit; border: 1.5px solid #e3e6eb; background: #fff; border-radius: 12px; padding: 8px 2px; cursor: pointer; display: grid; gap: 1px; color: #1a1d23; position: relative; }
.fx-nights button b { font-size: 15px; } .fx-nights button small { font-size: 12px; color: #5f6673; font-weight: 700; }
.fx-nights button.best small { color: #2b8a3e; }
.fx-nights button.best::after { content: '최저'; position: absolute; top: -8px; right: 4px; font-size: 10px; font-weight: 800; background: #2b8a3e; color: #fff; padding: 0 5px; border-radius: 99px; }
.fx-nights button.on { background: #0c8599; border-color: #0c8599; color: #fff; } .fx-nights button.on small { color: #e3fafc; }
.fx-go { display: grid; gap: 2px; text-align: center; background: #ff6b35; color: #fff; text-decoration: none; border-radius: 14px; padding: 12px; box-shadow: 0 6px 16px rgb(255 107 53 / .3); }
.fx-go:hover { background: #f25a22; }
.fx-go span { font-size: 13px; opacity: .95; } .fx-go b { font-size: 17px; }
.wl-direct { margin: 4px 0 12px; }
.wl-direct summary { cursor: pointer; font-size: 13.5px; color: var(--muted); padding: 6px 2px; }
.wl-direct[open] summary { margin-bottom: 8px; }
.fx-strip { display: flex; gap: 6px; overflow-x: auto; scroll-behavior: smooth; padding: 8px 2px 4px; margin-top: -4px; scrollbar-width: thin; }
.fx-strip button { font: inherit; flex: 0 0 60px; display: grid; gap: 0; padding: 6px 0; border-radius: 12px; border: 1.5px solid #e3e6eb; background: #fff; color: #1a1d23; cursor: pointer; text-align: center; }
.fx-strip button small { font-size: 11.5px; color: #5f6673; }
.fx-strip button b { font-size: 13px; }
.fx-strip button span { font-size: 12.5px; font-weight: 800; color: #0b5f6b; }
.fx-strip button.lo { border-color: #2b8a3e; }
.fx-strip button.lo span { color: #2b8a3e; }
.fx-strip button.on { background: #0c8599; border-color: #0c8599; color: #fff; }
.fx-strip button.on small, .fx-strip button.on span { color: #e3fafc; }
.fx-strip button:disabled { opacity: .45; cursor: default; }
.fx-strip b.sat { color: #1c7ed6; } .fx-strip b.sun { color: #e03131; } .fx-strip button.on b { color: #fff; }
.bagbox ul { margin: 8px 0 4px; padding-left: 18px; font-size: 14px; }
.bagbox .airs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.bagbox .airs a { font-size: 13px; padding: 5px 10px; border-radius: 99px; border: 1px solid var(--line); background: var(--bg); color: var(--text); text-decoration: none; }
.bagbox .airs a:hover { border-color: #0c8599; }
.fx-share { font: inherit; font-size: 14.5px; font-weight: 700; color: #3c1e1e; background: #fee500; border: 0; border-radius: 14px; padding: 11px; cursor: pointer; }
.fx-share:hover { background: #f5dc00; }
.fx-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1a1d23; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; z-index: 99; box-shadow: 0 6px 18px rgb(0 0 0 / .25); }
