/*
VOICE: guia de viagem confiável e caloroso — prático como um bom receptivo local.
IDEA: o "voucher" de viagem: um caderno de bordo com horários grandes, carimbos de reserva e maré.
PICTURE: o Morro Dois Irmãos ao pôr do sol sobre o Mar de Dentro, desenhado em SVG no topo.
COLOUR and TYPE: mar profundo #06414f, turquesa #12b5a6, pôr do sol #ff8a4c; Outfit nos títulos, Inter no texto.
LAYOUT: faixa de herói azul-mar com o planejador; abaixo, cartões de dia com horas penduradas; navegação inferior no celular.
*/
:root {
  --mar: #06414f;
  --mar-2: #0a5a6b;
  --turquesa: #12b5a6;
  --sol: #ff8a4c;
  --coral: #e5533d;
  --areia: #f6efe4;
  --nf-bg: #ffffff;
  --nf-ink: #10262c;
  --nf-muted: #5a6f75;
  --nf-card: #ffffff;
  --nf-line: #e3eaec;
  --nf-soft: #f2f7f8;
  --bs-primary: #0a7c86;
  --bs-primary-rgb: 10, 124, 134;
  --bs-link-color: #0a7c86;
  --bs-link-color-rgb: 10, 124, 134;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}
[data-bs-theme=dark] {
  --nf-bg: #071a1f;
  --nf-ink: #e6f1f2;
  --nf-muted: #98b0b5;
  --nf-card: #0d262d;
  --nf-line: #1c3a42;
  --nf-soft: #0b2228;
  --bs-body-bg: #071a1f;
  --bs-body-color: #e6f1f2;
  --bs-primary: #2cc7b8;
  --bs-primary-rgb: 44, 199, 184;
  --bs-link-color: #4fd6c8;
  --bs-link-color-rgb: 79, 214, 200;
  --bs-border-color: #1c3a42;
  --bs-secondary-bg: #0d262d;
  --bs-tertiary-bg: #0b2228;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 72px; }
body { background: var(--nf-bg); color: var(--nf-ink); font-size: 16px; line-height: 1.55; overflow-x: clip; padding-bottom: env(safe-area-inset-bottom); }
h1, h2, h3, h4, .nf-title { font-family: 'Outfit', 'Inter', system-ui, sans-serif; letter-spacing: -0.01em; text-wrap: balance; }
.text-muted, .nf-muted { color: var(--nf-muted) !important; }
.btn { min-height: 44px; border-radius: 12px; font-weight: 600; }
.btn-sm { min-height: 36px; border-radius: 10px; }
.btn-primary { --bs-btn-disabled-bg: #8fb9bd; --bs-btn-disabled-border-color: #8fb9bd; --bs-btn-bg: #0a7c86; --bs-btn-border-color: #0a7c86; --bs-btn-hover-bg: #086670; --bs-btn-hover-border-color: #086670; --bs-btn-active-bg: #06555d; }
.btn-outline-primary { --bs-btn-color: #0a7c86; --bs-btn-border-color: #0a7c86; --bs-btn-hover-bg: #0a7c86; --bs-btn-hover-border-color: #0a7c86; --bs-btn-hover-color: #fff; --bs-btn-active-bg: #086670; --bs-btn-active-border-color: #086670; --bs-btn-active-color: #fff; }
[data-bs-theme=dark] .btn-outline-primary { --bs-btn-color: #4fd6c8; --bs-btn-border-color: #4fd6c8; --bs-btn-hover-bg: #12b5a6; --bs-btn-hover-border-color: #12b5a6; --bs-btn-hover-color: #04262c; --bs-btn-active-bg: #2cc7b8; --bs-btn-active-color: #04262c; }
.btn-link { --bs-btn-color: var(--bs-link-color); --bs-btn-hover-color: var(--bs-link-color); }
[data-bs-theme=dark] .btn-primary { --bs-btn-bg: #12b5a6; --bs-btn-border-color: #12b5a6; --bs-btn-color: #04262c; --bs-btn-hover-bg: #2cc7b8; --bs-btn-hover-color: #04262c; }
.btn-sol { background: var(--sol); border-color: var(--sol); color: #2b1105; }
.btn-sol:hover { background: #ff7a35; color: #2b1105; }
.form-control, .form-select { min-height: 44px; font-size: 16px; border-radius: 12px; }
.form-label { font-weight: 600; font-size: 14px; margin-bottom: 4px; }
:focus-visible { outline: 3px solid var(--turquesa); outline-offset: 2px; }

/* Barra superior */
.nf-top { position: sticky; top: 0; z-index: 1030; background: var(--mar); color: #fff; padding: 10px max(4vw, 14px); display: flex; align-items: center; gap: 12px; }
.nf-top img { width: 34px; height: 34px; border-radius: 9px; }
.nf-top .nome { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 19px; line-height: 1; }
.nf-top .sub { font-size: 12px; opacity: .8; }
.nf-top .btn { min-height: 38px; }
.nf-tabs-top { display: none; gap: 4px; margin-left: auto; }
.nf-tabs-top a { color: #d5eef0; text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nf-tabs-top a.ativo, .nf-tabs-top a:hover { background: rgba(255,255,255,.14); color: #fff; }
@media (min-width: 900px) { .nf-tabs-top { display: flex; } .nf-bottom { display: none !important; } }

/* Navegação inferior (celular) */
.nf-bottom { position: fixed; bottom: 0; left: 0; right: 0; z-index: 1030; background: var(--nf-card); border-top: 1px solid var(--nf-line); display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding-bottom: env(safe-area-inset-bottom); }
.nf-bottom a { text-decoration: none; color: var(--nf-muted); font-size: 11px; font-weight: 600; text-align: center; padding: 8px 2px 7px; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; justify-content: center; }
.nf-bottom a svg { width: 22px; height: 22px; }
.nf-bottom a.ativo { color: var(--bs-primary); }
main { padding-bottom: 80px; }
@media (min-width: 900px) { main { padding-bottom: 32px; } }

/* Herói */
.nf-hero { background: var(--mar); color: #fff; position: relative; }
.nf-hero .cena { display: block; width: 100%; height: clamp(170px, 30vw, 300px); }
.nf-hero h1 { font-size: clamp(30px, 5vw, 50px); line-height: 1.05; font-weight: 700; margin: 0 0 8px; }
.nf-hero .lead { color: #cfe9ec; font-size: 17px; max-width: 60ch; }
.nf-wrap { max-width: 1240px; margin: 0 auto; padding: 0 max(4vw, 16px); }
.nf-band { padding-top: clamp(24px, 4vw, 56px); padding-bottom: clamp(24px, 4vw, 56px); }

/* Cartões */
.nf-card { background: var(--nf-card); border: 1px solid var(--nf-line); border-radius: 18px; padding: clamp(16px, 2.4vw, 24px); color: var(--nf-ink); }
.nf-card.flutua { box-shadow: 0 18px 50px -20px rgba(3, 30, 37, .45); }
.nf-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--nf-soft); color: var(--nf-ink); border: 1px solid var(--nf-line); white-space: nowrap; }
.nf-chip.parque { background: #e3f6f3; color: #075e57; border-color: #b8e8e1; }
.nf-chip.agendamento { background: #fff1e6; color: #8a3a0d; border-color: #ffd6b8; }
.nf-chip.mare { background: #e6f0ff; color: #1b3f86; border-color: #c4d7ff; }
.nf-chip.guia { background: #f3eaff; color: #5222a0; border-color: #ddc9ff; }
.nf-chip.reserva { background: #fff6d6; color: #6d5200; border-color: #f2df9b; }
.nf-chip.mar { background: #fde8e5; color: #8f2617; border-color: #f7c6bf; }
[data-bs-theme=dark] .nf-chip.parque, [data-bs-theme=dark] .nf-chip.agendamento, [data-bs-theme=dark] .nf-chip.mare, [data-bs-theme=dark] .nf-chip.guia, [data-bs-theme=dark] .nf-chip.reserva, [data-bs-theme=dark] .nf-chip.mar { background: transparent; color: var(--nf-ink); }

/* Seleção por botões (interesses / perfil) */
.nf-opcoes { display: flex; flex-wrap: wrap; gap: 8px; }
.nf-opcoes input { position: absolute; opacity: 0; pointer-events: none; }
.nf-opcoes label { cursor: pointer; padding: 9px 14px; border-radius: 12px; border: 1.5px solid var(--nf-line); font-weight: 600; font-size: 14.5px; min-height: 44px; display: inline-flex; align-items: center; background: var(--nf-card); }
.nf-opcoes input:checked + label { border-color: var(--bs-primary); background: rgba(var(--bs-primary-rgb), .1); color: var(--bs-primary); }
.nf-opcoes input:focus-visible + label { outline: 3px solid var(--turquesa); outline-offset: 2px; }

/* Resumo rápido */
.nf-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.nf-stat { background: var(--nf-soft); border-radius: 14px; padding: 12px 14px; }
.nf-stat .v { font-family: 'Outfit', sans-serif; font-size: clamp(20px, 3vw, 26px); font-weight: 700; white-space: nowrap; }
.nf-stat .l { font-size: 13px; color: var(--nf-muted); }

/* Roteiro */
.nf-dia { border-radius: 20px; border: 1px solid var(--nf-line); background: var(--nf-card); overflow: hidden; margin-bottom: 18px; }
.nf-dia-cab { display: flex; gap: 14px; align-items: center; padding: 14px 18px; background: var(--nf-soft); border-bottom: 1px solid var(--nf-line); }
.nf-dia-num { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 30px; line-height: 1; color: var(--bs-primary); min-width: 44px; }
.nf-dia-cab h3 { font-size: 19px; margin: 0; }
.nf-dia-cab .data { font-size: 13.5px; color: var(--nf-muted); }
.nf-item { display: grid; grid-template-columns: 74px minmax(0, 1fr); gap: 12px; padding: 14px 18px; border-bottom: 1px dashed var(--nf-line); }
.nf-item:last-child { border-bottom: 0; }
.nf-hora { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 18px; line-height: 1.2; color: var(--nf-ink); white-space: nowrap; }
.nf-hora small { display: block; font-family: 'Inter', sans-serif; font-weight: 500; font-size: 11.5px; color: var(--nf-muted); white-space: normal; }
.nf-item h4 { font-size: 16.5px; margin: 0 0 3px; font-weight: 700; }
.nf-item p { margin: 0 0 6px; font-size: 15px; color: var(--nf-muted); }
.nf-item .acoes { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.nf-item .preco { font-weight: 700; font-size: 14px; white-space: nowrap; }
.nf-item.voo { background: linear-gradient(90deg, rgba(18,181,166,.10), transparent 70%); }
.nf-refeicoes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; padding: 12px 18px 16px; background: var(--nf-soft); }
.nf-refeicoes div { font-size: 14px; }
.nf-refeicoes b { display: block; font-size: 12px; text-transform: none; color: var(--nf-muted); font-weight: 600; }
.nf-aviso { border-left: 4px solid var(--sol); background: rgba(255, 138, 76, .10); padding: 10px 14px; border-radius: 0 12px 12px 0; font-size: 14.5px; }
.nf-toolbar { display: flex; flex-wrap: wrap; gap: 8px; }

/* Custos */
.nf-barra { height: 10px; border-radius: 6px; background: var(--nf-soft); overflow: hidden; }
.nf-barra span { display: block; height: 100%; border-radius: 6px; background: var(--turquesa); }
.nf-custo-linha { display: grid; grid-template-columns: minmax(0, 1fr) 7.5em; gap: 4px 12px; padding: 12px 0; border-bottom: 1px solid var(--nf-line); align-items: center; }
.nf-custo-linha .v { font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nf-custo-linha .d { grid-column: 1 / -1; font-size: 13.5px; color: var(--nf-muted); }
.nf-total { font-family: 'Outfit', sans-serif; font-size: clamp(34px, 6vw, 52px); font-weight: 700; line-height: 1; white-space: nowrap; }

/* Busca */
.nf-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.nf-link { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--nf-line); text-decoration: none; color: var(--nf-ink); background: var(--nf-card); min-height: 64px; }
.nf-link:hover { border-color: var(--bs-primary); }
.nf-link b { font-size: 15px; }
.nf-link span { font-size: 13px; color: var(--nf-muted); }
.nf-res { border: 1px solid var(--nf-line); border-radius: 14px; padding: 12px 14px; background: var(--nf-card); }
.nf-res .p { font-family: 'Outfit', sans-serif; font-size: 20px; font-weight: 700; white-space: nowrap; }

/* Guia */
.accordion { --bs-accordion-bg: var(--nf-card); --bs-accordion-border-color: var(--nf-line); --bs-accordion-btn-focus-box-shadow: 0 0 0 3px rgba(18,181,166,.35); --bs-accordion-active-bg: var(--nf-soft); --bs-accordion-active-color: var(--nf-ink); }
.accordion-button { font-weight: 700; font-family: 'Outfit', sans-serif; font-size: 17px; min-height: 52px; }
table.nf-tab { width: 100%; font-size: 15px; }
table.nf-tab th { font-size: 13px; color: var(--nf-muted); font-weight: 600; }
table.nf-tab td, table.nf-tab th { padding: 8px 6px; border-bottom: 1px solid var(--nf-line); vertical-align: top; }
table.nf-tab td.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.scroll { overflow-x: auto; }
@media (max-width: 600px) {
  table { font-size: 13px; }
  .stack thead { display: none; }
  .stack tr { display: grid; padding-block: 10px; border-bottom: 1px solid var(--nf-line); }
  .stack td { display: flow-root; border: 0 !important; padding: 3px 0 !important; padding-inline-start: 8em !important; text-align: start !important; }
  .stack td::before { content: attr(data-l); float: inline-start; width: 7.5em; margin-inline-start: -8em; white-space: normal; color: var(--nf-muted); font-size: 12px; }
  .stack td:empty { display: none; }
  .nf-item { grid-template-columns: 60px minmax(0, 1fr); padding: 12px 14px; }
  .nf-hora { font-size: 16px; }
}
.vazio { text-align: center; padding: 48px 16px; color: var(--nf-muted); }
.vazio svg { width: 120px; height: 80px; margin-bottom: 12px; }
.toast-container { z-index: 1090; }
@media (prefers-reduced-motion: no-preference) {
  .nf-hero .sol { animation: nfsol 9s ease-in-out infinite alternate; transform-origin: center; }
  @keyframes nfsol { from { transform: translateY(0); } to { transform: translateY(10px); } }
}
@media print {
  .nf-top, .nf-bottom, .nf-toolbar, .acoes, .no-print, .nf-hero { display: none !important; }
  main { padding: 0 !important; }
  .nf-dia { break-inside: avoid; }
  body { background: #fff; color: #000; }
}

.nf-pend { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--nf-line); }
.nf-pend a { grid-column: 2; font-size: 14px; font-weight: 600; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: var(--turquesa); box-shadow: 0 0 0 .25rem rgba(18, 181, 166, .25); }
.form-check-input:checked { background-color: var(--bs-primary); border-color: var(--bs-primary); }
@keyframes spinner-border { to { transform: rotate(360deg); } }
