/* =========================
   Skyscanner / Trip.com-ish Blue & White UI (Light)
   - Clean white cards
   - Soft airy blue background
   - Strong blue primary action
   - Subtle borders + modern shadows
   ========================= */

@import url("https://cdn.jsdelivr.net/npm/typeface-nanum-square-neo@0.0.6/nanumsquareneo.min.css");


:root{
  /* Surfaces */
  --bg: #f5f8ff;   /* page */
  --bg2: #eef5ff;   /* subtle depth */
  --card: #ffffff;   /* primary surface */
  --card2: #f7fbff;   /* inputs / secondary */

  /* Text */
  --text:  #0b1f3b;  /* navy */
  --muted: #5b6b80;  /* blue-gray */
  --muted2:#72839a;

  /* Lines & shadows */
  --line: #e3ebf7;
  --line2: #d6e3f6;
  --shadow:  0 14px 40px rgba(15,35,75,.10);
  --shadow2: 0 10px 22px rgba(15,35,75,.08);
  --radius:  18px;

  /* Accent (Skyscanner-ish) */
  --accent: #0770e3;
  --accent-dark: #055ec7;
  --accent-weak: rgba(7,112,227,.10);
  --accent-line: rgba(7,112,227,.22);
  --focus: rgba(7,112,227,.18);

  /* Helper */
  --teal:        #00a9a5;
  --teal-weak:   rgba(0,169,165,.10);

  /* Status */
  --danger:#d93025;
  --danger-weak: rgba(217,48,37,.08);
  --warning:#f59e0b;
  --success: #00a9a5;
  --accent2: #00a9a5;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }

body{
  margin:0;
  font-family: "NanumSquareNeo", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Noto Sans KR", sans-serif;
  color: var(--text);

  /* airy background like travel sites */
  background:
    radial-gradient(1100px 520px at 15% -10%, rgba(7,112,227,.12), transparent 60%),
    radial-gradient(900px 460px at 92% 0%, rgba(0,169,165,.10), transparent 55%),
    linear-gradient(180deg, var(--bg), var(--bg2));

  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
.muted{ color: var(--muted); }
.small{ font-size: 12px; color: var(--muted2); }
.hr{ height:1px; background: var(--line); border:0; margin:18px 0; }

.wrap{
  max-width:1100px;
  margin:0 auto;
  padding: 18px 16px 40px;
}

/* ===== Topbar / Tabs ===== */
.topbar{
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(245,248,255,.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.topbar-inner{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 14px 16px;
}

.brand{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight: 900;
  letter-spacing: .2px;
}
.brand-dot{
  width:10px; height:10px;
  border-radius:999px;
  background: var(--accent);
  box-shadow: 0 0 0 5px rgba(7,112,227,.12);
}

.tabs{
  display:flex;
  gap:8px;
  margin-left: 8px;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  box-shadow: var(--shadow2);
}
.tabs a{
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 800;
  color: var(--muted);
  border: 1px solid transparent;
}
.tabs a:hover{
  color: var(--text);
  background: rgba(7,112,227,.06);
}
.tabs a.active{
  color: var(--accent);
  background: var(--accent-weak);
  border-color: var(--accent-line);
}

.topbar-right{ margin-left:auto; display:flex; gap:10px; }

/* ===== Buttons ===== */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(7,112,227,.38);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 900;
  box-shadow: var(--shadow2);
}
.btn:hover{ filter: brightness(1.02); }
.btn:active{ transform: translateY(1px); }

.btn.ghost{
  background: #fff;
  color: var(--accent);
  border: 1px solid var(--accent-line);
  box-shadow: none;
}
.btn.ghost:hover{ background: rgba(7,112,227,.06); }

.btn.subtle{
  background: rgba(255,255,255,.92);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.subtle:hover{ border-color: var(--accent-line); }

.btn-row{ display:flex; gap:10px; flex-wrap:wrap; }

/* ===== Cards / Sections ===== */
.section{ padding: 18px 0; }
.section-head{ margin-bottom: 12px; }
.section-head h2{ margin: 0 0 4px; font-size: 20px; }
.section-head p{ margin: 0; color: var(--muted); }

.card{
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow2);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.card:hover{
  transform: translateY(-1px);
  border-color: rgba(7,112,227,.18);
  box-shadow: 0 14px 32px rgba(15,35,75,.10);
}

.card.soft{
  background: linear-gradient(180deg, #ffffff, #fbfdff);
}

.card-title{
  font-weight: 900;
  font-size: 14px;
  margin-bottom: 10px;
}

/* ===== Hero (intro) ===== */
.hero{
  display:grid;
  grid-template-columns: 1.25fr .75fr;
  gap:16px;
  padding: 22px 0 10px;
}

.badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.92);
  color: var(--muted);
  width: fit-content;
}

.hero h1{
  margin: 12px 0 10px;
  font-size: 42px;
  line-height: 1.10;
  letter-spacing: -0.8px;
}
.lead{
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
}

.chips{ display:flex; gap:8px; flex-wrap:wrap; }
.chip{
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  font-weight: 700;
}
.chip.blue{
  border-color: var(--accent-line);
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 900;
}

/* Hero-right “사이트 구성” */
.rows{ display:grid; gap:10px; }
.row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line2);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}
.pill{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--accent-line);
  background: var(--accent-weak);
  color: var(--accent);
  font-weight: 900;
  font-size: 12px;
}

.mini-kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:10px;
  margin-top: 12px;
}
.kpi{
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
}
.kpi-num{ font-weight: 950; margin-bottom: 4px; }
.kpi-label{ color: var(--muted); font-size: 12px; line-height: 1.35; }

/* ===== Project cards (optional) ===== */
.cards{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
}
.project-top{ display:flex; justify-content:space-between; align-items:center; gap:10px; }
.project-title{ font-weight: 950; }
.project-desc{ color: var(--muted); margin: 10px 0 12px; line-height: 1.65; }
.project-meta{ display:flex; gap:8px; flex-wrap:wrap; }
.tag{
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  background: var(--teal-weak);
  border: 1px solid rgba(0,169,165,.18);
  color: #067a77;
}
.tag.ghost{
  background: rgba(11,31,59,.04);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ===== Forms (travel) ===== */
.form fieldset{
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 12px 0;
  background: #fff;
}
.form legend{
  padding: 0 8px;
  font-weight: 950;
  color: var(--text);
}

.form label{
  margin:0;
  display:flex;
  flex-direction:column;
  gap:6px;
  color: var(--muted);
  font-size: 13px;
  min-width: 0;
}

.form input, .form select{
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--card2);
  color: var(--text);
  transition: border-color .12s ease, box-shadow .12s ease, background .12s ease;
}

.form input::placeholder{ color: rgba(91,107,128,.55); }
.form input[type="radio"]{ accent-color: var(--accent); }

.form input:focus, .form select:focus{
  outline: 3px solid var(--focus);
  border-color: rgba(7,112,227,.34);
  background: #fff;
}

.form .helper{
  margin-top: 8px;
  color: var(--muted2);
  font-size: 12px;
  line-height: 1.45;
}

/* Grids for clean alignment */
.form .grid2{ display:grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap:12px; }
.form .grid3{ display:grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap:12px; }
.form .grid4{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap:12px; }

.mode-box{ display:flex; gap:10px; flex-wrap:wrap; }
.mode-item{
  display:flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
  transition: background .12s ease, border-color .12s ease;
}
.mode-item:hover{
  border-color: var(--accent-line);
  background: rgba(7,112,227,.06);
}

.form-actions{
  display:flex;
  justify-content:flex-end;
  margin-top: 10px;
}

.hidden{ display:none !important; }

/* Error / Info boxes */
.error, .errorbox{
  border: 1px solid rgba(217,48,37,.22);
  background: var(--danger-weak);
  color: #8a1b16;
  padding: 10px 12px;
  border-radius: 14px;
}

/* ===== Tables (results) ===== */
.table-wrap{
  overflow:auto;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow2);
}

table{
  border-collapse: collapse;
  width:100%;
  min-width: 760px;
}

th, td{
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

th{
  text-align:left;
  color: #24415f;
  background: linear-gradient(180deg, #f3f8ff, #eaf2ff);
  position: sticky;
  top: 0;
  z-index: 1;
}

tbody tr:hover td{
  background: rgba(7,112,227,.04);
}

td.num{
  text-align:right;
  font-variant-numeric: tabular-nums;
}

/* ===== Footer ===== */
.footer{
  display:flex;
  justify-content:space-between;
  gap:10px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted2);
}

/* ===== Responsive ===== */
@media (max-width: 980px){
  .hero{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .mini-kpis{ grid-template-columns: 1fr; }
  .form .grid2, .form .grid3, .form .grid4{ grid-template-columns: 1fr; }
  table{ min-width: 640px; }
  .hero h1{ font-size: 34px; }
}

/* ✅ travel submit button: always readable */
.form button[type="submit"]{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(7,112,227,.38);
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
  color: #ffffff !important;
  font-weight: 900;
  box-shadow: var(--shadow2);
  cursor: pointer;
}
.form button[type="submit"]:hover{ filter: brightness(1.02); }
.form button[type="submit"]:active{ transform: translateY(1px); }



/* =========================
   Border visibility upgrade (2) + Card top accent (3)
   ========================= */

/* (2) Emphasize key containers without making the whole UI heavy */
.form fieldset,
.table-wrap{
  border-color: var(--line2);
}

.tabs,
.badge{
  border-color: var(--line2);
}

/* Slightly stronger row separators in tables */
th, td{
  border-bottom-color: var(--line2);
}

/* Make hover state a bit clearer */
.card:hover{
  border-color: rgba(7,112,227,.26);
}

/* (3) Subtle top accent line on cards (Skyscanner / Trip-like) */
.card{
  position: relative;
  overflow: hidden; /* keeps the top rail clean on rounded corners */
}

.card::before{
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 999px;
  background: rgba(7,112,227,.20);
  pointer-events: none;
}

.card.soft::before{
  background: rgba(7,112,227,.16);
}

/* Optional: don't show rail on specific cards */
.card.no-rail::before{ display:none; }

