/* ── RESET ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  { font-family: 'Outfit', sans-serif; background: #FAFAF8; color: #1A1814; line-height: 1.5; }
a     { text-decoration: none; color: inherit; }
button, input, select { font-family: inherit; }

/* ── DESIGN TOKENS ────────────────────────────────────────── */
:root {
  --cream:   #FAFAF8;
  --hero-bg: #1A2E1F;
  --ink:     #1A1814;
  --rust:    #E07340;
  --rust-dk: #C05820;
  --muted:   #7A6F65;
  --hint:    #A09590;
  --border:  #E8E2D9;
  --surface: #F7F3EE;
  --teal:    #0F766E;
  --serif:   'Cormorant Garamond', Georgia, serif;
  --r-sm:    6px;
  --r-md:    10px;
  --r-lg:    14px;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 40px;
  height: 58px; display: flex; align-items: center; gap: 40px;
}
.logo        { font-family: var(--serif); font-size: 23px; font-weight: 700; letter-spacing: -0.3px; }
.logo-accent { color: var(--rust); }
.logo-dot    { color: #C8BFB4; font-size: 13px; }
.nav-links   { display: flex; gap: 28px; flex: 1; }
.nav-link    { font-size: 14px; color: var(--muted); transition: color .15s; }
.nav-link:hover { color: var(--ink); }
.nav-btn {
  background: var(--ink); color: var(--cream); border: none;
  padding: 8px 20px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  cursor: pointer; transition: opacity .15s;
}
.nav-btn:hover { opacity: .8; }

/* ── HERO ─────────────────────────────────────────────────── */
.hero { background: var(--hero-bg); position: relative; overflow: hidden; }
.hero-bg-art {
  position: absolute; inset: 0; pointer-events: none;
}
.hero-bg-art svg,
.hero-bg-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-pattern {
  position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M20 2L38 20L20 38L2 20Z' fill='none' stroke='rgba(252,211,77,0.07)' stroke-width='1'/%3E%3C/svg%3E");
}
.hero-inner {
  max-width: 1120px; margin: 0 auto; padding: 80px 40px 72px;
  position: relative; display: grid; grid-template-columns: 1fr 440px; gap: 60px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(224,115,64,.18); border: 1px solid rgba(224,115,64,.32);
  border-radius: 20px; padding: 5px 14px;
  font-size: 11px; font-weight: 600; color: #FCD34D;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-h1 {
  font-family: var(--serif); font-size: clamp(48px,5.5vw,76px);
  font-weight: 700; line-height: 1.05; letter-spacing: -2px;
  color: var(--cream); margin-bottom: 20px;
}
.hero-h1 em  { font-style: italic; color: #FCD34D; }
.hero-sub {
  font-size: 16px; color: rgba(250,250,248,.55); line-height: 1.7;
  max-width: 380px; margin-bottom: 36px; font-weight: 300;
}
.hero-stats       { display: flex; align-items: center; }
.hero-stat        { display: flex; flex-direction: column; gap: 3px; padding-right: 24px; }
.hero-stat-num    { font-family: var(--serif); font-size: 30px; font-weight: 700; color: var(--cream); line-height: 1; }
.hero-stat-lbl    { font-size: 11px; color: rgba(250,250,248,.4); text-transform: uppercase; letter-spacing: .7px; }
.hero-stat-div    { width: 1px; height: 32px; background: rgba(250,250,248,.15); margin: 0 24px 0 0; }

/* ── SEARCH CARD ─────────────────────────────────────────── */
.search-card {
  background: rgba(250,250,248,.97); border-radius: var(--r-lg);
  padding: 26px 26px 22px; border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 24px 64px rgba(0,0,0,.32);
}
.search-card-label { font-size: 10px; font-weight: 700; color: var(--hint); text-transform: uppercase; letter-spacing: 1.2px; margin-bottom: 18px; }
.field-row    { display: flex; gap: 10px; margin-bottom: 14px; align-items: flex-end; }
.field-group  { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.field-label  { font-size: 10px; color: var(--hint); font-weight: 600; text-transform: uppercase; letter-spacing: .6px; }
.field-sub    { font-size: 11px; color: #B0A89C; height: 14px; margin-top: 3px; }
.select-wrap  { position: relative; }
.form-select, .form-input {
  width: 100%; background: var(--surface); border: 1px solid #E0DAD2;
  border-radius: var(--r-sm); padding: 9px 34px 9px 11px;
  font-size: 14px; font-weight: 500; color: var(--ink); outline: none;
  appearance: none; -webkit-appearance: none; cursor: pointer; transition: border-color .15s;
}
.form-input   { padding-right: 11px; cursor: text; }
.form-select:focus, .form-input:focus { border-color: var(--rust); }
.select-arrow { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--hint); display: flex; }
.swap-btn {
  background: none; border: 1px solid #E0DAD2; border-radius: var(--r-sm);
  padding: 9px; cursor: pointer; color: var(--muted); display: flex;
  align-items: center; justify-content: center; flex-shrink: 0;
  align-self: center; margin-top: 13px; transition: background .15s;
}
.swap-btn:hover { background: var(--surface); }
.search-row  { display: flex; align-items: center; gap: 14px; }
.search-btn  {
  background: var(--rust); color: #fff; border: none;
  padding: 11px 26px; border-radius: var(--r-sm); font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; gap: 8px;
  transition: background .15s; white-space: nowrap;
}
.search-btn:hover  { background: var(--rust-dk); }
.check-label { display: flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--muted); }
.check-label input { accent-color: var(--rust); cursor: pointer; }

/* ── MAIN CONTENT ────────────────────────────────────────── */
.main { max-width: 1120px; margin: 0 auto; padding: 56px 40px 80px; }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 24px; }
.section-title { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.3px; }
.section-sub   { font-size: 13px; color: var(--hint); margin-top: 4px; }
.section-link  { font-size: 13px; color: var(--rust); font-weight: 500; display: flex; align-items: center; gap: 4px; }
.section-link:hover { color: var(--rust-dk); }

/* ── DESTINATION CARDS ───────────────────────────────────── */
.dest-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 56px; }
.dest-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; cursor: pointer; transition: all .2s; display: block; color: inherit;
}
.dest-card:hover { box-shadow: 0 8px 32px rgba(26,24,20,.1); transform: translateY(-2px); }
.dest-scene  { height: 140px; overflow: hidden; position: relative; }
.scene-wrap  { width: 100%; height: 100%; }
.scene-svg   { width: 100%; height: 100%; display: block; }
.dest-badge  {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(26,24,20,.5); backdrop-filter: blur(6px);
  border-radius: 20px; padding: 3px 10px;
  font-size: 11px; color: #FEF9C3; font-weight: 600; letter-spacing: .3px;
}
.dest-body       { padding: 14px 16px 16px; }
.dest-city       { font-family: var(--serif); font-size: 20px; font-weight: 700; margin-bottom: 4px; letter-spacing: -.2px; }
.dest-tagline    { font-size: 12px; color: var(--hint); line-height: 1.5; margin-bottom: 12px; }
.dest-price-row  { display: flex; align-items: baseline; gap: 5px; }
.dest-from       { font-size: 11px; color: #B0A89C; }
.dest-price      { font-family: var(--serif); font-size: 19px; font-weight: 700; color: var(--rust); }

/* ── PRICE CALENDAR ──────────────────────────────────────── */
.cal-card   { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 28px 32px; }
.cal-grid   { display: grid; grid-template-columns: repeat(12,1fr); gap: 8px; align-items: end; height: 150px; margin-bottom: 4px; }
.cal-col    { display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; }
.cal-col:hover .cal-bar { opacity: .65; }
.cal-tick   { font-size: 10px; font-weight: 700; height: 14px; }
.cal-bar    { width: 100%; border-radius: 3px 3px 0 0; min-height: 4px; transition: opacity .15s; }
.cal-month  { font-size: 10px; color: var(--hint); font-weight: 500; }
.cal-kr     { font-size: 10px; font-weight: 600; }
.cal-color-low  { color: #0F766E; background: #0F766E; }
.cal-color-mid  { color: #6B7280; background: #6B7280; }
.cal-color-high { color: #C2410C; background: #C2410C; }
.cal-legend     { display: flex; gap: 20px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #F0ECE6; }
.cal-leg-item   { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.cal-dot        { width: 8px; height: 8px; border-radius: 2px; }

/* ── RESULTS HEADER ──────────────────────────────────────── */
.results-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; }
.results-title  { font-family: var(--serif); font-size: 30px; font-weight: 700; letter-spacing: -.5px; }
.results-title-dash { color: var(--rust); }
.results-meta   { font-size: 13px; color: var(--hint); margin-top: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.results-badge  { background: #F5EDE6; color: #9A4820; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 10px; }
.results-badge.live { background: #E8F5EE; color: #1A7A4A; }
.back-btn {
  background: none; border: 1px solid #E0DAD2; color: var(--muted);
  padding: 8px 16px; border-radius: var(--r-sm); font-size: 13px; cursor: pointer;
  white-space: nowrap; transition: all .15s; flex-shrink: 0;
}
.back-btn:hover { border-color: var(--ink); color: var(--ink); }

/* ── SORT BAR ────────────────────────────────────────────── */
.sort-bar    { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.sort-label  { font-size: 12px; color: var(--hint); margin-right: 2px; }
.sort-btn    { background: none; border: 1px solid #E0DAD2; color: var(--muted); padding: 6px 14px; border-radius: 20px; font-size: 13px; cursor: pointer; transition: all .15s; text-decoration: none; }
.sort-btn:hover  { border-color: var(--ink); color: var(--ink); }
.sort-btn.active { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 500; }
.sort-spacer { flex: 1; }

/* ── FLIGHT ROWS ─────────────────────────────────────────── */
.flight-list { display: flex; flex-direction: column; }
.flight-row  {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--border); border-top: none;
  padding: 20px 24px; gap: 20px; cursor: pointer; position: relative; transition: background .15s;
}
.flight-row:first-child { border-radius: var(--r-md) var(--r-md) 0 0; border-top: 1px solid var(--border) !important; }
.flight-row:last-child  { border-radius: 0 0 var(--r-md) var(--r-md); }
.flight-row:only-child  { border-radius: var(--r-md); }
.flight-row:hover       { background: #FDF7F3; }
.flight-row.best        { background: #FDF7F3; border-left: 3px solid var(--rust); }
.best-pill {
  position: absolute; top: 14px; right: 150px;
  background: #FDF0E8; border: 1px solid #E8C9B0; color: #C05820;
  font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: 10px;
}
.flight-left    { flex: 1; display: flex; align-items: center; gap: 20px; }
.airline-col    { width: 72px; flex-shrink: 0; }
.airline-code   { font-family: var(--serif); font-size: 22px; font-weight: 700; line-height: 1; }
.airline-name   { font-size: 11px; color: var(--hint); margin-top: 2px; }
.route-col      { flex: 1; display: flex; align-items: center; gap: 12px; }
.time-group     { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.time-big       { font-family: var(--serif); font-size: 24px; font-weight: 700; line-height: 1; }
.time-code      { font-size: 11px; color: var(--hint); font-weight: 500; }
.route-mid      { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.route-dur      { font-size: 11px; color: var(--hint); }
.route-line     { width: 100%; display: flex; align-items: center; }
.route-dot      { width: 4px; height: 4px; border-radius: 50%; background: #C8C2BA; flex-shrink: 0; }
.route-track    { flex: 1; height: 1px; background: #E0DAD2; }
.route-plane    { padding: 0 5px; background: #fff; font-size: 12px; }
.flight-row.best .route-plane { background: #FDF7F3; }
.route-stop         { font-size: 11px; font-weight: 500; }
.route-stop.direct  { color: var(--teal); }
.route-stop.layover { color: var(--hint); }
.tag-col { display: flex; flex-direction: column; gap: 4px; min-width: 110px; }
.tag     { font-size: 11px; color: var(--muted); background: #F5EDE6; padding: 2px 8px; border-radius: 4px; width: fit-content; white-space: nowrap; }
.price-col   { text-align: right; flex-shrink: 0; }
.price-per   { font-size: 10px; color: #B0A89C; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 2px; }
.price-num   { font-family: var(--serif); font-size: 26px; font-weight: 700; line-height: 1; }
.price-cur   { font-size: 15px; font-weight: 400; color: var(--muted); }
.price-total { font-size: 11px; color: var(--hint); margin-top: 2px; }
.book-btn {
  margin-top: 10px; background: var(--rust); color: #fff; border: none;
  padding: 8px 18px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: background .15s; display: inline-block;
}
.book-btn:hover { background: var(--rust-dk); }
.no-results {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 48px; text-align: center; color: var(--hint);
}
.no-results p { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; color: var(--ink); }

/* ── NOTICE BOXES ────────────────────────────────────────── */
.notice {
  padding: 12px 16px; border-radius: var(--r-sm); font-size: 13px; margin-bottom: 16px;
  display: flex; align-items: flex-start; gap: 10px;
}
.notice.info    { background: #EFF6FF; border: 1px solid #BFDBFE; color: #1E40AF; }
.notice.warning { background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E; }
.notice.error   { background: #FEF2F2; border: 1px solid #FECACA; color: #991B1B; }

/* ── FOOTER ──────────────────────────────────────────────── */
.site-footer  { background: var(--hero-bg); border-top: 1px solid rgba(255,255,255,.05); }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 28px 40px; display: flex; align-items: center; justify-content: space-between; }
.footer-logo  { font-family: var(--serif); font-size: 20px; font-weight: 700; color: var(--cream); }
.footer-sub   { font-size: 13px; color: #3A5A42; }
.footer-copy  { font-size: 12px; color: #2A3F2E; }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.fade-in  { animation: fadeIn  .35s ease both; }
.slide-up { animation: slideUp .3s  ease both; }
@keyframes fadeIn  { from { opacity: 0 }                            to { opacity: 1 } }
@keyframes slideUp { from { opacity: 0; transform: translateY(12px) } to { opacity: 1; transform: none } }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; padding: 48px 24px 40px; }
  .hero-h1    { font-size: 56px !important; }
  .dest-grid  { grid-template-columns: repeat(2,1fr); }
  .field-row  { flex-wrap: wrap; }
  .nav-links  { display: none; }
  .nav-inner  { padding: 0 20px; }
  .main       { padding: 32px 20px 60px; }
  .results-header { flex-direction: column; }
  .flight-left    { flex-wrap: wrap; }
  .best-pill      { display: none; }
  .tag-col        { display: none; }
  .footer-inner   { flex-direction: column; gap: 8px; text-align: center; padding: 24px 20px; }
  .cal-grid       { gap: 4px; }
}
@media (max-width: 560px) {
  .dest-grid  { grid-template-columns: 1fr; }
  .hero-h1    { font-size: 44px !important; }
  .hero-stats { flex-wrap: wrap; gap: 12px !important; }
}

input[type="date"]::-webkit-calendar-picker-indicator { opacity: .4; cursor: pointer; }
