/* EMVIAGEM Corporate. Navy faz o trabalho (botões, estrutura); o laranja marca a
   marca e o foco. Verde, âmbar e vermelho só significam: dentro da política, pede
   motivo, fora dela. Classes com prefixo cp- para não colidirem com o backoffice. */
:root {
  --cp-bg: #fcfbf9; --cp-surface: #ffffff; --cp-sunken: #f0ece7; --cp-line: #d9d4ce;
  --cp-ink: #191919; --cp-text: #393536; --cp-muted: #6c675f; --cp-logo-navy: #2b4257;
  --cp-primary: #172c3d; --cp-on-primary: #ffffff; --cp-brand: #ff7900;
  --cp-ok: #17663f; --cp-ok-bg: #e2f1e8; --cp-warn: #7a4e00; --cp-warn-bg: #faebc8; --cp-bad: #a3221b; --cp-bad-bg: #f9dedb;
  --cp-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; --cp-serif: Georgia, 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cp-bg: #0e151c; --cp-surface: #151e27; --cp-sunken: #1b2630; --cp-line: #2b3947;
    --cp-ink: #f3efe9; --cp-text: #d3cec7; --cp-muted: #97a3ae; --cp-logo-navy: #f3efe9;
    --cp-primary: #f1ece5; --cp-on-primary: #10202d;
    --cp-ok: #7bd6a4; --cp-ok-bg: #12301f; --cp-warn: #f0c46c; --cp-warn-bg: #352a0d; --cp-bad: #ff9f96; --cp-bad-bg: #3a1512;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cp-bg: #0e151c; --cp-surface: #151e27; --cp-sunken: #1b2630; --cp-line: #2b3947;
  --cp-ink: #f3efe9; --cp-text: #d3cec7; --cp-muted: #97a3ae; --cp-logo-navy: #f3efe9;
  --cp-primary: #f1ece5; --cp-on-primary: #10202d;
  --cp-ok: #7bd6a4; --cp-ok-bg: #12301f; --cp-warn: #f0c46c; --cp-warn-bg: #352a0d; --cp-bad: #ff9f96; --cp-bad-bg: #3a1512;
  color-scheme: dark;
}
.cp-body { margin: 0; background: var(--cp-bg); color: var(--cp-text); font: 14px/1.5 var(--cp-sans); }
.cp-body *, .cp-body *::before, .cp-body *::after { box-sizing: border-box; }
.cp-body h1, .cp-body h2, .cp-body h3, .cp-body p { margin: 0; }
.cp-body :focus-visible { outline: 2px solid var(--cp-brand); outline-offset: 2px; }
.cp-num { font-variant-numeric: tabular-nums; }
.cp-muted { color: var(--cp-muted); }
[hidden] { display: none !important; }

.cp-top { background: var(--cp-surface); color: var(--cp-ink); border-bottom: 1px solid var(--cp-line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; }
.cp-brand { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.cp-sym { display: block; height: 46px; width: auto; flex: none; }
.cp-lock { display: flex; flex-direction: column; gap: 6px; width: 172px; }
.cp-word { display: block; width: 100%; height: auto; }
.cp-tag { display: block; font: 500 8.6px/1 var(--cp-sans); letter-spacing: .4em; margin-right: -.4em; text-transform: uppercase; color: var(--cp-logo-navy); text-align: justify; text-align-last: justify; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cp-word { filter: brightness(0) invert(1); } }
:root[data-theme="dark"] .cp-word { filter: brightness(0) invert(1); }
.cp-nav { display: flex; gap: 4px; flex: 1; }
.cp-nav button { all: unset; box-sizing: border-box; padding: 7px 12px; border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--cp-ink); opacity: .75; display: inline-flex; gap: 6px; align-items: center; }
.cp-nav button:hover { opacity: 1; background: var(--cp-sunken); }
.cp-nav button[aria-current="page"] { opacity: 1; background: var(--cp-sunken); }
.cp-nav button:focus-visible { outline: 2px solid var(--cp-brand); }
.cp-nav small { background: var(--cp-brand); color: #fff; border-radius: 999px; padding: 1px 7px; font-weight: 700; font-size: 11px; }
.cp-who { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.cp-who button { all: unset; cursor: pointer; text-decoration: underline; opacity: .8; }
.cp-preview { background: var(--cp-warn-bg); color: var(--cp-warn); padding: 8px max(16px, env(safe-area-inset-left, 0px)); font-weight: 600; font-size: 13px; }

.cp-main { max-width: 1180px; margin: 0 auto; padding: 22px max(16px, env(safe-area-inset-right, 0px)) 48px max(16px, env(safe-area-inset-left, 0px)); }
.cp-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; color: var(--cp-muted); }
.cp-main h1 { font: 400 28px/1.2 var(--cp-serif); color: var(--cp-ink); margin-top: 4px; text-wrap: balance; }
.cp-sub { margin-top: 6px; color: var(--cp-muted); max-width: 68ch; }
.cp-head { margin-bottom: 18px; }

.cp-card { background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: 10px; padding: 16px; }
.cp-card + .cp-card { margin-top: 14px; }
.cp-cols { display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.cp-sticky { position: sticky; top: 16px; }
.cp-stack { display: flex; flex-direction: column; gap: 10px; }
.cp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cp-row.cp-between { justify-content: space-between; }
.cp-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.cp-body label.cp-f { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--cp-muted); min-width: 0; }
.cp-body input, .cp-body select, .cp-body textarea { background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: 6px; padding: 8px 10px; color: var(--cp-ink); font: 14px var(--cp-sans); min-width: 0; width: 100%; }
.cp-body input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--cp-primary); }
.cp-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--cp-ink); font-weight: 500; }
.cp-btn { background: var(--cp-surface); color: var(--cp-ink); border: 1px solid var(--cp-line); border-radius: 6px; padding: 8px 14px; font: 600 13px var(--cp-sans); cursor: pointer; }
.cp-btn:hover { background: var(--cp-sunken); }
.cp-btn.cp-primary { background: var(--cp-primary); color: var(--cp-on-primary); border-color: var(--cp-primary); }
.cp-btn.cp-sm { padding: 5px 10px; font-size: 12px; }
.cp-btn[disabled] { opacity: .45; cursor: not-allowed; }
.cp-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.cp-tabs button { all: unset; box-sizing: border-box; padding: 7px 14px; border-radius: 6px; font-weight: 600; color: var(--cp-muted); cursor: pointer; border: 1px solid transparent; }
.cp-tabs button[aria-selected="true"] { color: var(--cp-ink); background: var(--cp-surface); border-color: var(--cp-line); }
.cp-tabs button:focus-visible { outline: 2px solid var(--cp-brand); }

.cp-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.cp-chip.ok { background: var(--cp-ok-bg); color: var(--cp-ok); }
.cp-chip.warn { background: var(--cp-warn-bg); color: var(--cp-warn); }
.cp-chip.bad { background: var(--cp-bad-bg); color: var(--cp-bad); }
.cp-chip.neutral { background: var(--cp-sunken); color: var(--cp-muted); }
.cp-banner { border-radius: 8px; padding: 10px 14px; font-size: 13px; margin-bottom: 12px; }
.cp-banner.warn { background: var(--cp-warn-bg); color: var(--cp-warn); }
.cp-banner.bad { background: var(--cp-bad-bg); color: var(--cp-bad); }
.cp-banner.ok { background: var(--cp-ok-bg); color: var(--cp-ok); }

.cp-offer { display: grid; grid-template-columns: 150px minmax(0, 1fr) 170px; gap: 14px; align-items: center; padding: 14px 16px; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: 10px; cursor: pointer; text-align: left; width: 100%; color: inherit; font: inherit; }
.cp-offer + .cp-offer { margin-top: 10px; }
.cp-offer:hover { border-color: var(--cp-muted); }
.cp-offer[aria-pressed="true"] { border-color: var(--cp-primary); box-shadow: 0 0 0 2px var(--cp-primary); }
.cp-air b { display: block; color: var(--cp-ink); }
.cp-air span, .cp-hint { font-size: 12px; color: var(--cp-muted); }
.cp-leg { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.cp-leg + .cp-leg { margin-top: 4px; }
.cp-leg b { color: var(--cp-ink); font-variant-numeric: tabular-nums; }
.cp-why { margin: 8px 0 0; padding: 0; list-style: none; font-size: 12px; }
.cp-why li { display: flex; gap: 6px; margin-top: 2px; }
.cp-why .w { color: var(--cp-warn); } .cp-why .b { color: var(--cp-bad); }
.cp-price { text-align: right; }
.cp-price b { display: block; font-size: 20px; color: var(--cp-ink); font-variant-numeric: tabular-nums; }
.cp-price .cp-hint { display: block; margin-bottom: 6px; }
.cp-stars { color: var(--cp-brand); letter-spacing: 1px; }
.cp-hotel { padding: 14px 16px; background: var(--cp-surface); border: 1px solid var(--cp-line); border-radius: 10px; }
.cp-hotel + .cp-hotel { margin-top: 10px; }
.cp-hotel h3 { font-size: 15px; color: var(--cp-ink); }
.cp-rate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--cp-line); }
.cp-rate[aria-current="true"] { background: var(--cp-sunken); margin: 0 -8px; padding-left: 8px; padding-right: 8px; border-radius: 6px; }

.cp-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--cp-line); font-size: 13px; }
.cp-line.cp-total { border-bottom: 0; padding-top: 10px; font-weight: 700; color: var(--cp-ink); font-size: 16px; }
.cp-psum { margin: 12px 0; padding: 10px 12px; border-radius: 8px; background: var(--cp-sunken); font-size: 12.5px; }
.cp-psum ul { margin: 6px 0 0; padding-left: 16px; }
.cp-table-wrap { overflow-x: auto; }
.cp-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cp-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--cp-muted); text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--cp-line); white-space: nowrap; }
.cp-table td { padding: 10px; border-bottom: 1px solid var(--cp-line); vertical-align: top; }
.cp-table td.cp-r, .cp-table th.cp-r { text-align: right; font-variant-numeric: tabular-nums; }
.cp-login { max-width: 400px; margin: 56px auto; }
.cp-empty { padding: 28px; text-align: center; color: var(--cp-muted); }

@media (max-width: 900px) {
  .cp-cols { grid-template-columns: 1fr; }
  .cp-sticky { position: static; }
  .cp-offer { grid-template-columns: 1fr; }
  .cp-price { text-align: left; }
}
