/* ─────────────────────────────────────────────────────────────
   CHROME
   ───────────────────────────────────────────────────────────── */
    /* ─── BRAND HEADER & LOGO LOCKUP ─── */
    .app-header {
      min-height: var(--header-h);
      --gutter: 18px; padding-top: 12px; padding-bottom: 10px;
      display: flex; align-items: center; justify-content: space-between;
      flex-shrink: 0;
      background: var(--cream);
      border-bottom: 1px solid rgba(232, 199, 180, 0.55);
      position: relative; z-index: 10;
    }
    .app-header.dark {
      background: var(--teal);
      border-bottom-color: rgba(255,255,255,0.08);
      color: var(--cream);
    }

    .header-actions { display: flex; flex-shrink: 0; gap: 6px; }

    /* A marca cede espaco, e os botoes nao: com 360px e zoom de 200%, o botao do
       menu saia da tela. So na horizontal, para nao cortar a perna da assinatura. */
    .brand-lockup {
      min-width: 0; overflow-x: clip;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      user-select: none;
    }
    .brand-ladybug {
      width: 24px; height: 24px;
      object-fit: contain;
      filter: drop-shadow(0 2px 3px rgba(49,79,77,0.14));
      transition: transform 0.3s ease;
    }
    .brand-text-wrap {
      display: flex; align-items: baseline; gap: 6px;
    }
    .brand-simplifique {
      font-family: 'DM Serif Display', Georgia, serif;
      font-size: 20px;
      letter-spacing: 0.3px;
      color: var(--teal);
      line-height: 1;
    }
    .app-header.dark .brand-simplifique { color: var(--cream); }
    .brand-amala {
      font-family: 'Brittany Signature', cursive;
      font-size: 21px;
      color: var(--coral);
      line-height: 1;
      transform: translateY(2px);
    }

    .icon-btn {
      width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
      background: rgba(255, 253, 251, 0.9);
      backdrop-filter: blur(8px);
      border: 1px solid var(--border);
      display: flex; align-items: center; justify-content: center;
      cursor: pointer; color: var(--teal); font-size: 16px; font-weight: 600;
      transition: transform 0.18s, background 0.18s;
      -webkit-tap-highlight-color: transparent;
    }
    .icon-btn:active { transform: scale(0.91); }

    /* ─── BOTTOM NAV ─── */
    .bottom-nav {
      display: flex; align-items: stretch;
      background: rgba(255, 253, 251, 0.94);
      backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
      border-top: 1px solid var(--border);
      height: var(--nav-h); flex-shrink: 0; position: relative; z-index: 50;
      --gutter: 4px;
    }
    .nav-item {
      flex: 1; min-width: 0; display: flex; flex-direction: column;
      align-items: center; justify-content: center; gap: 4px;
      cursor: pointer; border: none; background: transparent;
      padding: 6px 2px; -webkit-tap-highlight-color: transparent; position: relative;
      color: var(--text-3);
    }
    .nav-icon {
      font-size: 18px; line-height: 1;
      transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.2s;
      opacity: 0.55;
      display: flex; align-items: center; justify-content: center;
      height: 22px;
    }
    .nav-icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
    /* Espacamento de 0,4px e nao 1px: com cinco abas, "Inspirações" nao cabia. */
    .nav-label {
      font-size: 9px; font-weight: 600; letter-spacing: 0.4px;
      text-transform: uppercase; color: var(--text-3); transition: color 0.2s;
      max-width: 100%; overflow: hidden; text-overflow: ellipsis;
    }
    .nav-item.active { color: var(--teal); }
    .nav-item.active .nav-icon { transform: translateY(-2px) scale(1.1); opacity: 1; color: var(--coral); }
    .nav-item.active .nav-label { color: var(--teal); font-weight: 700; }
    .nav-dot {
      position: absolute; bottom: 6px; width: 4px; height: 4px;
      border-radius: 50%; background: var(--coral); opacity: 0; transition: opacity 0.2s;
    }
    .nav-item.active .nav-dot { opacity: 1; }
    .nav-badge {
      position: absolute; top: 6px; right: calc(50% - 18px);
      background: var(--coral); color: #fff; font-size: 8px; font-weight: 700;
      min-width: 15px; height: 15px; border-radius: 10px; padding: 0 4px;
      display: none; align-items: center; justify-content: center;
    }
    .nav-badge.show { display: inline-flex; }


    /* ─── MENU LATERAL ─── */
    .menu-backdrop {
      position: absolute; inset: 0; z-index: 240; background: rgba(34, 56, 54, 0.42);
      opacity: 0; pointer-events: none; transition: opacity 0.25s;
    }
    .menu-backdrop.open { opacity: 1; pointer-events: all; }
    .menu-drawer {
      position: absolute; top: 0; bottom: 0; right: 0; z-index: 250; width: 82%; max-width: 378px;
      display: flex; flex-direction: column; overflow-y: auto;
      padding: 44px calc(20px + env(safe-area-inset-right, 0px)) 26px 20px;
      background: var(--cream); box-shadow: var(--shadow-md);
      transform: translateX(calc(100% + var(--menu-shadow))); transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .menu-drawer.open { transform: translateX(0); }
    /* O display:flex acima venceria o [hidden], e na porta o menu fixo mostraria
       os itens do app a quem nao entrou. */
    .menu-drawer[hidden] { display: none; }
    .menu-drawer-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
    .menu-link {
      display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 13px 2px;
      background: none; border: 0; border-bottom: 1px solid var(--border); cursor: pointer; text-align: left;
      font-family: 'DM Serif Display', serif; font-size: 19px; color: var(--teal);
    }
    /* O item do Painel admin e um <a>: sem isto, sublinhado; e o display:flex
       acima venceria o [hidden] e o mostraria a toda Compradora. */
    a.menu-link { text-decoration: none; }
    .menu-link[hidden] { display: none; }
    /* O contador de salvos nasceu no menu inferior, posicionado sobre o icone.
       Na linha do menu lateral ele segue o texto e cresce: com os 15px de
       antes, ao lado de um rotulo de 19px, ele sumia (visto no navegador em
       08/11/2026). */
    .menu-badge {
      position: static; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 11px;
      font: 700 11.5px 'Montserrat', sans-serif;
    }
    .menu-tag {
      font: 700 9px 'Montserrat', sans-serif; letter-spacing: 1.2px; text-transform: uppercase;
      color: var(--terracotta); background: var(--terra-soft); padding: 3px 7px; border-radius: 999px;
    }

    /* ─── BARRA DA VIAGEM: nome da Viagem ativa e estado do salvamento ───
       Discreta de proposito: aparece em toda tela de planejamento e nao pode
       competir com o conteudo. So o "Nao salvo" chama atencao, porque e o unico
       estado em que a Compradora pode perder o que fez. */
    .trip-bar {
      display: flex; align-items: center; justify-content: space-between; gap: 10px;
      --gutter: 18px; padding-top: 8px; padding-bottom: 8px; font-size: 11.5px; color: var(--text-2);
    }
    .trip-bar-name { font-weight: 700; color: var(--teal); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* O nome e um botao (S6b, ticket 17): sem o reset, ele ganharia a borda e o
       fundo cinza do navegador, e a faixa deixaria de parecer faixa. */
    .trip-bar-switch, .trip-bar-plan {
      display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 32px;
      padding: 0; border: 0; background: none; font: inherit; cursor: pointer;
    }
    .trip-bar-caret { color: var(--teal); font-size: 11px; flex-shrink: 0; }
    .trip-bar-plan { font-weight: 700; color: var(--coral); }
    .save-status { flex-shrink: 0; }
    .save-status[data-save-status="failed"] { color: var(--coral); font-weight: 600; }

    /* ─── MINHAS VIAGENS ───
       Cartoes no mesmo tom do resto do app. A Viagem atual leva a borda teal:
       com mais de uma, e o que diz em qual o checklist e os Looks estao. */
    .trips { --gutter: 18px; padding-top: 14px; padding-bottom: 28px; }
    .trips-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
    .trips-kicker { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--coral); }
    .trips-title { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 25px; color: var(--teal); }
    .trips-section {
      margin: 18px 0 8px; font-size: 10px; font-weight: 700; letter-spacing: 1.6px;
      text-transform: uppercase; color: var(--text-2);
    }
    .trip-list:empty::before { content: 'Nenhuma.'; font-size: 12px; color: var(--text-3); }
    .trip-card {
      padding: 14px; margin-bottom: 10px; background: var(--white);
      border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-sm);
    }
    .trip-card.current { border: 1.5px solid var(--teal); }
    .trip-card-name { font-family: 'DM Serif Display', serif; font-size: 19px; color: var(--teal); overflow-wrap: anywhere; }
    .trip-card-dates { font-size: 12px; color: var(--text-2); margin-top: 2px; }
    .trip-card-current { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--coral); }
    .trip-card-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
    .trip-card-actions .btn-outline, .trip-panel-actions .btn-outline { padding: 7px 13px; }
    .trip-panel {
      padding: 16px; margin: 10px 0 4px; background: var(--white);
      border: 1px solid var(--border); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    }
    .trip-panel[hidden] { display: none; }
    .trip-panel-title { font-family: 'DM Serif Display', serif; font-weight: 400; font-size: 20px; color: var(--teal); margin-bottom: 12px; }
    .trip-panel-text { font-size: 13px; line-height: 1.55; color: var(--text); margin-bottom: 12px; }
    /* minmax(0): com `1fr`, o campo de data nao cedia abaixo da largura dele, e a
       Volta saia pela borda do cartao em tela estreita. */
    .trip-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .trip-dates .login-field input { padding-left: 9px; padding-right: 9px; }
    .trip-panel-actions { display: flex; justify-content: flex-end; gap: 8px; }
    #trip-form { max-width: var(--form-max); margin-left: auto; margin-right: auto; }
    /* Sem isto, com 360px e zoom de 200% o Cancelar saia pela esquerda. So neste:
       nos outros paineis o texto do botao ja quebrava a 390px, e quebrar a linha
       mudaria o celular. */
    #trip-form .trip-panel-actions { flex-wrap: wrap; }
    .trip-card-destination { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }

    /* ─── DESTINO: SUGESTOES ENQUANTO DIGITA ─── */
    .place-picker { margin-bottom: 12px; }
    .place-picker .login-field { margin-bottom: 6px; }
    .place-suggestions {
      list-style: none; margin: 0 0 6px; padding: 4px; background: var(--white);
      border: 1px solid var(--border); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
    }
    .place-suggestions[hidden], .place-empty[hidden] { display: none; }
    .place-option {
      display: flex; flex-direction: column; align-items: flex-start; width: 100%;
      padding: 8px 10px; background: none; border: 0; border-radius: 8px; text-align: left; cursor: pointer;
      font: inherit;
    }
    .place-option:focus-visible { background: var(--teal-soft); }
    .place-option-name { font-size: 14px; color: var(--text); }
    .place-option-detail { font-size: 11.5px; color: var(--text-2); }
    .place-empty { font-size: 12px; line-height: 1.5; color: var(--text-2); margin: 0 0 6px; }
    .place-credit { font-size: 10.5px; color: var(--text-3); margin: 0; }
    .place-credit a { color: inherit; }
    .place-hint { font-size: 12px; line-height: 1.5; color: var(--text-2); margin: 6px 0 0; }

    /* ─── TELA DE LOOKS: VIAGEM SEM DATAS OU SEM DESTINO ─── */
    .looks-incomplete {
      margin: 12px 16px 0; padding: 14px; background: var(--coral-soft);
      border: 1px solid var(--border); border-radius: var(--radius-md);
      font-size: 13px; line-height: 1.5; color: var(--text);
    }
    .looks-incomplete[hidden] { display: none; }
    .looks-incomplete p { margin: 0 0 10px; }

    /* ─── SEM VIAGEM ATIVA (S6b, tickets 16 e 19) ─── */
    /* O display de cada bloco (o flex da barra, o do botao) venceria o [hidden]
       do navegador, e o que so faz sentido com Viagem apareceria sem ela. */
    [data-needs-trip][hidden], [data-without-trip][hidden] { display: none; }
    /* O pop-up do convite fica acima do menu lateral (z-index 250): aberto pelo
       toque numa tela, ele cobre tudo ate ser fechado. */
    .trip-invite-layer {
      position: absolute; inset: 0; z-index: 260;
      display: flex; align-items: center; justify-content: center;
      /* O fundo cobre a janela inteira, com o menu fixo, e o quadro se centraliza
         na area do conteudo. */
      padding: 16px 16px 16px calc(16px + var(--menu-w));
    }
    .trip-invite-layer[hidden] { display: none; }
    .trip-invite-backdrop { position: absolute; inset: 0; background: rgba(34, 56, 54, 0.42); }
    .trip-invite-dialog {
      position: relative; width: 100%; max-width: 340px; padding: 20px;
      background: var(--white); border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    }
    /* A lista da faixa (S6b, ticket 17) fica no mesmo andar do convite. O
       fundo transparente fecha ao toque fora sem escurecer a tela: a lista e
       um menu do nome, e nao um aviso. O `top` e a altura que sobra abaixo da
       faixa vem de js/trip-picker.js. A lista rola por dentro no que sobra, e so
       sobe, por cima do nome, quando nao caberiam dois itens e a ponta do terceiro. */
    .trip-picker-layer { position: absolute; inset: 0 0 0 var(--menu-w); z-index: 260; }
    .trip-picker-layer[hidden] { display: none; }
    /* Passa por cima do menu fixo: tocar nele com a lista aberta so a fecha. */
    .trip-picker-backdrop { position: absolute; inset: 0 0 0 calc(-1 * var(--menu-w)); }
    .trip-picker-panel {
      --picker-gap: 12px; --picker-min-h: 100px;
      --picker-room: calc(var(--room-below-trip-bar) - var(--picker-gap));
      position: absolute; overflow-y: auto;
      max-height: max(var(--picker-min-h), min(60%, var(--picker-room)));
      margin-top: min(0px, var(--picker-room) - var(--picker-min-h));
      left: calc(var(--picker-gap) + max(env(safe-area-inset-left, 0px), (100% - var(--column)) / 2));
      right: calc(var(--picker-gap) + max(env(safe-area-inset-right, 0px), (100% - var(--column)) / 2));
      background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-md);
      box-shadow: var(--shadow-md);
    }
    .trip-picker-list { list-style: none; margin: 0; padding: 6px 0; }
    .trip-picker-option, .trip-picker-link {
      display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
      min-height: 44px; padding: 10px 16px; border: 0; background: none; font: inherit;
      font-size: 14px; color: var(--text); text-align: left; cursor: pointer;
    }
    .trip-picker-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .trip-picker-option[aria-current="true"] { font-weight: 700; color: var(--teal); }
    .trip-picker-check { flex-shrink: 0; }
    .trip-picker-more { border-top: 1px solid var(--border); padding: 6px 0; }
    .trip-picker-link { color: var(--teal); font-weight: 600; }
    .trip-invite-text {
      margin: 0 0 16px; font-family: 'DM Serif Display', serif; font-size: 20px;
      line-height: 1.3; color: var(--teal);
    }
    /* Em Minhas viagens o painel herda a margem da lista; na Tela de Looks ele
       fica direto na area de rolagem, e sem isto encostaria nas bordas. */
    #looks-clearing { margin: 12px 16px 0; }
