/* Anytime Fly — promoções. Mobile-first. */
:root {
  --blue: #3a34d6;          /* azul do logo */
  --blue-dark: #241fa8;
  --ink: #1c1b2e;
  --ink-soft: #5b5a72;
  --bg: #f7f7fb;
  --card: #ffffff;
  --line: #e5e4f0;
  --promo: #eef3ff;
  --promo-border: #b9c8f5;
  --green: #1fa855;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(28, 27, 46, .08), 0 6px 18px rgba(28, 27, 46, .06);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

a { color: var(--blue); text-decoration: none; }

/* ---------------------------------------------------------------- topbar */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; }
.brand-logo { height: 44px; width: auto; display: block; }

.topbar-wa {
  display: flex; align-items: center; gap: 8px;
  background: var(--green); color: #fff;
  padding: 9px 16px; border-radius: 99px;
  font-weight: 600; font-size: .9rem;
}
.topbar-wa:hover { filter: brightness(1.06); }
.wa-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; }

/* ------------------------------------------------------------------ hero */
main { max-width: 1080px; margin: 0 auto; padding: 0 20px 60px; }

.hero { padding: 48px 0 8px; text-align: center; }
.hero h1 { font-size: 2rem; letter-spacing: -.5px; }
.hero-sub { color: var(--ink-soft); margin: 10px auto 28px; max-width: 34em; }

.route-picker {
  display: grid; gap: 12px;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 18px; max-width: 720px; margin: 0 auto;
  text-align: left;
}
.combo { position: relative; }
.combo-label {
  display: block; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft);
  margin-bottom: 4px;
}
.combo input {
  width: 100%; padding: 12px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  color: var(--ink);
}
.combo input:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.combo input::placeholder { color: #a5a4ba; }
.combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30;
  margin: 0; padding: 4px; list-style: none;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow);
}
.combo-list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px; border-radius: 8px; cursor: pointer; font-size: .95rem;
}
.combo-list li:hover, .combo-list li.active { background: var(--promo); }
.combo-list .code { color: var(--ink-soft); font-size: .8em; font-weight: 700; }
.combo-list .combo-none { color: var(--ink-soft); cursor: default; }
.combo-list .combo-none:hover { background: none; }
.route-picker button {
  padding: 13px; font-size: 1rem; font-weight: 700;
  background: var(--blue); color: #fff; border: 0; border-radius: 10px;
  cursor: pointer;
}
.route-picker button:hover { background: var(--blue-dark); }
.picker-msg { font-size: .9rem; color: var(--ink-soft); }

/* ---------------------------------------------------------------- routes */
.routes { padding-top: 48px; }
.routes h2, .how h2 { font-size: 1.3rem; margin-bottom: 16px; }

.region-title {
  font-size: 1rem; font-weight: 700; color: var(--ink);
  margin: 22px 0 10px;
}
.flag { display: inline-block; vertical-align: -2px; line-height: 0; }
.flag svg { width: 19px; height: 13px; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(28,27,46,.12); }

.empty-state {
  max-width: 480px; margin: 0 auto; text-align: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px;
}
.empty-state p { color: var(--ink-soft); margin-bottom: 14px; }
.empty-state p:last-child { margin-bottom: 0; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.btn.btn-outline {
  background: #fff; color: var(--green); border: 2px solid var(--green);
}
.region-title:first-of-type { margin-top: 4px; }

.route-grid { display: grid; gap: 14px; }

.route-card {
  display: block;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px 18px; color: var(--ink);
  transition: transform .12s ease, border-color .12s ease;
}
.route-card:hover { transform: translateY(-2px); border-color: var(--blue); }
.route-card-cities { font-size: 1.15rem; font-weight: 700; }
.swap { color: var(--blue); }
.route-card-tags { display: flex; gap: 6px; margin: 6px 0 10px; }
.tag {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 2px 10px; border-radius: 99px;
  background: var(--promo); color: var(--blue-dark); border: 1px solid var(--promo-border);
}
.route-card-price { font-size: 1rem; }
.route-card-price strong { color: var(--blue); font-size: 1.4rem; }
.brl { color: var(--ink-soft); font-size: .9em; }
.route-card-foot {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line);
}
.route-card-period { font-size: .82rem; color: var(--ink-soft); }
.route-card-cta { font-size: .85rem; font-weight: 600; color: var(--blue); white-space: nowrap; }

/* ------------------------------------------------------------------- how */
.how { padding-top: 48px; max-width: 640px; }
.how ol { padding-left: 20px; display: grid; gap: 8px; color: var(--ink-soft); }
.how strong { color: var(--ink); }

/* ------------------------------------------------------------ route page */
.route-page { padding-top: 28px; }
.crumbs { margin-bottom: 14px; font-size: .9rem; }
.route-page h1 { font-size: 1.7rem; letter-spacing: -.5px; }
.route-sub { color: var(--ink-soft); font-size: .9rem; margin: 6px 0 18px; }

.dir-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tab {
  padding: 9px 16px; border-radius: 99px; font-weight: 600; font-size: .92rem;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.tab.active { background: var(--blue); border-color: var(--blue); color: #fff; }

.cabin-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.chip {
  padding: 6px 14px; border-radius: 99px; font-size: .85rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--line); color: var(--ink);
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }

.price-banner {
  background: var(--card); border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 10px; padding: 14px 16px; margin: 14px 0 24px;
  font-size: 1.05rem;
}
.price-banner strong { color: var(--blue); font-size: 1.3rem; }
.price-note { display: block; font-size: .75rem; color: var(--ink-soft); }

/* -------------------------------------------------------------- calendar */
.calendars { display: grid; gap: 18px; }

.month {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px;
}
.month-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.month-head h3 { font-size: 1.05rem; }
.month-min { font-size: .8rem; color: var(--ink-soft); }

.weekdays, .grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.weekdays span {
  text-align: center; font-size: .7rem; font-weight: 700;
  color: var(--ink-soft); padding-bottom: 4px;
}

.day {
  min-height: 44px; border-radius: 8px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: .85rem;
}
.day.empty { visibility: hidden; }
.day.off { color: #c2c1d4; }
.day .n { font-weight: 600; }

.day.promo {
  background: var(--promo); border: 1px solid var(--promo-border);
  color: var(--ink); cursor: pointer;
  transition: transform .1s ease, background .1s ease;
}
.day.promo:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: scale(1.06); }
.day.promo .p { font-size: .62rem; font-weight: 700; color: var(--blue); }
.day.promo:hover .p { color: #fff; }

.no-dates { color: var(--ink-soft); }

button.day { font: inherit; border: 0; background: none; padding: 0; }
button.day.promo { border: 1px solid var(--promo-border); background: var(--promo); }
button.day.promo:hover { background: var(--blue); border-color: var(--blue); }
.day.multi .p { letter-spacing: .02em; }

/* --------------------------------------------------- painel de opcoes/dia */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(28, 27, 46, .45);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  width: 100%; max-width: 480px; max-height: 80vh; overflow-y: auto;
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: #fff;
}
.modal-head h3 { font-size: 1rem; }
.modal-close {
  border: 0; background: none; font-size: 1.5rem; line-height: 1;
  color: var(--ink-soft); cursor: pointer; padding: 2px 8px;
}
.modal-body { padding: 10px 18px 18px; display: grid; gap: 10px; }

.option {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px;
}
.option-airline { font-weight: 700; }
.option-flight { font-weight: 400; color: var(--ink-soft); font-size: .85em; }
.option-meta { font-size: .82rem; color: var(--ink-soft); margin: 2px 0; }
.option-price { font-size: .9rem; }
.option-price strong { color: var(--blue); }

.badge-us {
  display: inline-block; margin-left: 6px; padding: 1px 8px;
  border-radius: 99px; font-size: .68rem; font-weight: 700;
  background: #fff3e0; color: #b26a00; border: 1px solid #f0d9b0;
  vertical-align: middle;
}

.btn-sm { padding: 9px 14px; font-size: .85rem; white-space: nowrap; }

/* ------------------------------------------------------------------- cta */
.route-cta {
  margin-top: 28px; text-align: center;
  background: var(--card); border: 1px dashed var(--promo-border);
  border-radius: var(--radius); padding: 22px;
}
.route-cta p { margin-bottom: 10px; color: var(--ink-soft); }

.btn {
  display: inline-block; background: var(--green); color: #fff;
  font-weight: 700; padding: 12px 22px; border-radius: 99px;
}
.btn:hover { filter: brightness(1.06); }

.notfound { padding-top: 60px; text-align: center; }
.notfound p { margin-top: 8px; color: var(--ink-soft); }

/* ---------------------------------------------------------------- footer */
.footer { border-top: 1px solid var(--line); background: #fff; margin-top: 40px; }
.footer-inner { max-width: 1080px; margin: 0 auto; padding: 32px 20px; }
.footer-brand { margin-bottom: 14px; }
.footer-brand .brand-logo { height: 52px; }
.footer-links { list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.footer-note { margin-top: 16px; font-size: .75rem; color: var(--ink-soft); max-width: 46em; }

/* --------------------------------------------------------------- desktop */
@media (min-width: 720px) {
  .hero h1 { font-size: 2.6rem; }
  .route-picker { grid-template-columns: 1fr 1fr auto; align-items: end; }
  .route-picker button { padding: 13px 26px; }
  .picker-msg { grid-column: 1 / -1; }
  .route-grid { grid-template-columns: repeat(2, 1fr); }
  .calendars { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .route-grid { grid-template-columns: repeat(3, 1fr); }
  .calendars { grid-template-columns: repeat(3, 1fr); }
}
