:root {
  --coral: #ff6b5b;
  --coral-deep: #e9503c;
  --coral-tint: #fff1ee;
  --ink: #201a17;
  --ink-soft: #4a423d;
  --sub: #857a73;
  --line: #ece4de;
  --bg: #fbf8f6;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 1px 2px rgba(32, 26, 23, 0.04), 0 8px 24px rgba(32, 26, 23, 0.05);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
  font-size: 15px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

.wrap {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 18px;
}

/* header */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 248, 246, 0.92);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 54px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 700;
  font-size: 15px;
}

.brand-mark {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-tint);
}

.brand-sub {
  font-weight: 600;
  color: var(--sub);
  font-size: 13px;
}

.top-meta {
  font-size: 12px;
  color: var(--sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* intro */
.intro {
  padding: 26px 0 22px;
}

.intro h1 {
  font-size: 23px;
  line-height: 1.38;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.intro p {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--sub);
  max-width: 46ch;
}

/* section head */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.section-head h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-note {
  font-size: 11.5px;
  color: var(--sub);
}

/* fx */
.fx {
  padding-bottom: 20px;
}

.fx-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}

.fx-row::-webkit-scrollbar { display: none; }

.fx-chip {
  flex: 0 0 auto;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 9px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: nowrap;
}

.fx-chip .label {
  font-size: 11.5px;
  color: var(--sub);
}

.fx-chip .value {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.fx-chip .delta {
  font-size: 11px;
  font-weight: 600;
}

.delta.up { color: var(--coral-deep); }
.delta.down { color: #2f8f6b; }

/* filters */
.filters {
  position: sticky;
  top: 54px;
  z-index: 15;
  padding: 12px 0 10px;
  background: linear-gradient(var(--bg) 82%, rgba(251, 248, 246, 0));
}

.chips {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.chip .n {
  margin-left: 4px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
}

.chip[aria-pressed="true"] {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.chip[aria-pressed="true"] .n { color: rgba(255, 255, 255, 0.66); }

.chip:active { transform: scale(0.98); }

.filter-block + .filter-block { margin-top: 7px; }

.list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
}

.count {
  font-size: 12.5px;
  color: var(--sub);
  font-weight: 600;
  white-space: nowrap;
}

.count strong { color: var(--ink); font-weight: 800; }

.basis {
  margin-top: 1px;
  font-size: 11px;
  color: #a99b93;
  font-weight: 500;
}

.list-tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.search input {
  width: 108px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  font-size: 12.5px;
  color: var(--ink);
  -webkit-appearance: none;
}

.search input::placeholder { color: #ae9f97; }
.search input:focus { outline: none; border-color: var(--coral); }

#sort {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--card);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='5' viewBox='0 0 8 5'%3E%3Cpath d='M1 1l3 3 3-3' stroke='%23857a73' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}

#sort:focus { outline: none; border-color: var(--coral); }

/* banner */
.banner {
  margin: 0 0 12px;
  padding: 10px 13px;
  border-radius: 10px;
  background: #fff6e8;
  border: 1px solid #f3e0c2;
  font-size: 12.5px;
  color: #7a5a22;
}

/* cards */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding-bottom: 8px;
}

.card {
  display: block;
  padding: 15px 15px 14px;
  cursor: pointer;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.card:active { transform: scale(0.995); }

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-city {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
}

.card-city h3 {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-country {
  font-size: 11.5px;
  color: var(--sub);
  white-space: nowrap;
}

.route {
  margin-top: 3px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--sub);
  letter-spacing: 0.02em;
}

.badge-discount {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 8px;
  background: var(--coral);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.dates {
  margin-top: 11px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.dates .dow { color: var(--sub); font-weight: 500; }

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 9px;
}

.tag {
  padding: 3px 8px;
  border-radius: 6px;
  background: #f6f1ee;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 600;
}

.tag.leave {
  background: var(--coral-tint);
  color: var(--coral-deep);
  font-weight: 700;
}

.tag.leave.zero {
  background: var(--coral);
  color: #fff;
}

.tag.airline { background: #f4f4f2; color: var(--sub); }

/* 네이버 실시간 검증 · 수하물 */
.tag.live {
  background: #eaf6ee;
  color: #1f7a45;
  font-weight: 700;
}

.tag.live::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #2a9a58;
  vertical-align: 1px;
}

.tag.bag-free { background: #eef4fb; color: #2a5e97; }
.tag.bag-partial { background: #eef4fb; color: #4f7aa8; }
.tag.bag-charge { background: #fbf1e8; color: #a9652a; }
.tag.bag-unknown { background: #f4f2f0; color: #8b8078; }

/* 하루만 옮기면 더 싼 대안 */
.alt {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
  padding: 8px 10px;
  border-radius: 9px;
  background: #f8f4f1;
  font-size: 11.5px;
  line-height: 1.4;
}

.alt-label { color: var(--sub); font-weight: 600; }
.alt-price { color: var(--coral-deep); font-weight: 800; }
.alt-meta { color: #a99b93; font-weight: 500; }

a.alt:active { background: #f3ece7; }

.card-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-top: 13px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.price {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.price .unit {
  font-size: 13px;
  font-weight: 700;
  margin-left: 1px;
}

.price-sub {
  display: block;
  margin-top: 2px;
  font-size: 11.5px;
  color: var(--sub);
  font-weight: 500;
}

.go {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--coral-deep);
}

.go .arrow { font-size: 13px; }

/* empty / skeleton */
.empty {
  padding: 46px 10px 54px;
  text-align: center;
  font-size: 13.5px;
  color: var(--sub);
}

.skeleton {
  height: 168px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #f2ece8 20%, #f8f4f1 40%, #f2ece8 60%);
  background-size: 220% 100%;
  animation: shimmer 1.4s infinite linear;
}

@keyframes shimmer {
  from { background-position: 120% 0; }
  to { background-position: -40% 0; }
}

/* cta */
.cta {
  display: grid;
  gap: 8px;
  margin: 26px 0 8px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
}

.cta-card.light {
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
}

.cta-card .label { font-size: 14px; font-weight: 700; letter-spacing: -0.02em; }
.cta-card .desc { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, 0.68); }
.cta-card.light .desc { color: var(--sub); }
.cta-card .arrow { font-size: 15px; flex: 0 0 auto; }

/* notes */
.notes {
  margin: 22px 0 10px;
  padding: 16px;
  border-radius: 14px;
  background: #f6f1ee;
}

.notes h2 {
  font-size: 12.5px;
  font-weight: 800;
  margin-bottom: 9px;
}

.notes li {
  position: relative;
  padding-left: 11px;
  font-size: 12px;
  line-height: 1.62;
  color: var(--ink-soft);
}

.notes li + li { margin-top: 5px; }

.notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #cbbcb4;
}

/* foot */
.foot {
  margin-top: 18px;
  padding: 20px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 11.5px;
  color: var(--sub);
  line-height: 1.6;
}

.foot p + p { margin-top: 3px; }

/* wider screens */
@media (min-width: 620px) {
  .wrap { padding: 0 24px; }
  .intro h1 { font-size: 27px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .search input { width: 150px; }
}

@media (min-width: 980px) {
  .intro { padding: 40px 0 28px; }
  .intro h1 { font-size: 32px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cta { grid-template-columns: 1fr 1fr; }
  .filters { top: 54px; }
}
