:root {
  --bg:        #0d0f14;
  --surface:   #161920;
  --surface-2: #1e2130;
  --border:    rgba(255,255,255,0.07);
  --text:      #e2e8f0;
  --muted:     #8892a4;
  --accent:    #4f46e5;
  --accent-2:  #7c3aed;
  --header-bg: linear-gradient(135deg, #4338ca 0%, #7c3aed 100%);
  --green:     #10b981;
  --amber:     #f59e0b;
  --red:       #ef4444;
  --font:      'Inter', system-ui, -apple-system, sans-serif;
  --radius:    12px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
}

/* ── Header ─────────────────────────────────────────── */
.site-header {
  background: var(--header-bg);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 20px rgba(0,0,0,0.4);
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.site-logo {
  width: 42px;
  height: 42px;
  background: rgba(255,255,255,0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}

.site-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
}

.site-sub {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.7);
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-shrink: 0;
}

.site-meta {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.65);
  white-space: nowrap;
}
.site-meta strong { color: rgba(255,255,255,0.9); font-weight: 600; }

.header-nav {
  display: flex;
  gap: 6px;
}

.nav-btn {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.25);
  transition: background 0.15s;
  white-space: nowrap;
  display: inline-block;
}
.nav-btn:hover  { background: rgba(255,255,255,0.28); color: #fff; text-decoration: none; }
.nav-btn.active { background: rgba(255,255,255,0.32); color: #fff; }

/* ── Main ────────────────────────────────────────────── */
main {
  padding: 24px 20px 40px;
  max-width: 1440px;
  margin: 0 auto;
}

/* ── Month grid ──────────────────────────────────────── */
.months-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.month-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.month-title {
  padding: 12px 16px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
  text-transform: uppercase;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

.dest-list {
  list-style: none;
}

.dest-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
}
.dest-item:last-child { border-bottom: none; }

.dest-item--link { cursor: pointer; transition: background 0.12s; }
.dest-item--link:hover { background: rgba(255,255,255,0.05); }

.dest-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-decoration: none;
  color: inherit;
}

.dest-name {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.price-badge {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
}

.price-low  { background: rgba(16,185,129,0.18); color: #34d399; }
.price-mid  { background: rgba(245,158,11,0.18); color: #fbbf24; }
.price-high { background: rgba(239,68,68,0.15);  color: #f87171; }

/* ── Calendar ────────────────────────────────────────── */
.cal-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.cal-nav-btn:hover:not(:disabled) { background: rgba(255,255,255,0.1); }
.cal-nav-btn:disabled { opacity: 0.25; cursor: default; }

.cal-cur-label {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  min-width: 130px;
  text-align: center;
  letter-spacing: -0.01em;
}

.cal-trip-type {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 5px;
}

.cal-month { margin-bottom: 0; }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.cal-dow {
  background: var(--surface-2);
  padding: 8px 4px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cal-cell {
  background: var(--surface);
  padding: 8px;
  min-height: 110px;
  vertical-align: top;
}

.cal-empty { background: rgba(255,255,255,0.01); min-height: 110px; }

.cal-has-data { background: var(--surface); }

.cal-num {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 6px;
}

.cal-has-data .cal-num { color: var(--text); }

.cal-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.cal-list li a,
.cal-list li span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  text-decoration: none;
  color: inherit;
  padding: 2px 3px;
  border-radius: 4px;
  transition: background 0.1s;
}

.cal-list li a:hover { background: rgba(255,255,255,0.06); }

.cal-dest {
  font-size: 0.72rem;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}

.cal-list .price-badge {
  font-size: 0.68rem;
  padding: 2px 6px;
}

/* ── Mobile ──────────────────────────────────────────── */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 16px;
    gap: 10px;
  }
  .header-right {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .header-nav { flex-wrap: wrap; }
  .nav-btn { flex: 1; text-align: center; min-width: 80px; }
  main { padding: 14px 12px 32px; }
  .months-grid { grid-template-columns: 1fr; gap: 12px; }
}
