/* =====================================================================
   Muvio — tela do passageiro
   ===================================================================== */
:root {
  --brand: #16a34a;
  --brand-600: #15803d;
  --brand-50: #ecfdf3;
  --brand-100: #d1fadf;
  --brand-rgb: 22,163,74;
  --on-brand: #ffffff;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --faint: #94a3b8;
  --line: #e2e8f0;
  --fill: #f1f5f9;
  --surface: #ffffff;
  --bg: #eef2f6;
  --red: #e11d48;
  --red-50: #fff1f2;
  --amber-50: #fffbeb;
  --pin: #0f172a;
  --radius: 14px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
  --shadow: 0 8px 24px rgba(15, 23, 42, .10);
  --shadow-lg: 0 18px 48px rgba(15, 23, 42, .18);
  --map-h: 40dvh;
  color-scheme: light;
}
.ride-mode { --map-h: 52dvh; }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--text); background: var(--bg);
  display: flex; flex-direction: column; overflow: hidden;
  -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01";
}
.hidden { display: none !important; }
[hidden] { display: none !important; } /* o atributo hidden sempre vence o display das classes */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Barras de rolagem invisíveis (a rolagem continua funcionando: dedo, roda do mouse, teclado) */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { display: none; width: 0; height: 0; }

#map { flex: 0 0 var(--map-h); height: var(--map-h); width: 100%; z-index: 0; transition: height .25s, flex-basis .25s; background: #e5e9ef; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.8) !important; border-radius: 6px 0 0 0; }

/* ---------------------------------------------------------------------
   Pino de Partida/Destino. O ponto (0,0) do .mpin é o local exato.
   --------------------------------------------------------------------- */
.mpin { position: absolute; width: 0; height: 0; pointer-events: none; }
.center-pin { position: fixed; left: 50%; top: calc(var(--map-h) / 2); z-index: 500; }
.mpin-body {
  position: absolute; left: -13px; bottom: 0; width: 26px;
  display: flex; flex-direction: column; align-items: center;
  filter: drop-shadow(0 3px 3px rgba(15,23,42,.28));
  transition: transform .28s cubic-bezier(.34, 1.56, .64, 1);
}
.mpin-head { width: 26px; height: 26px; border-radius: 50%; background: var(--pin); position: relative; }
.mpin-head::after { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; }
.mpin-stick { width: 3px; height: 14px; background: var(--pin); border-radius: 0 0 2px 2px; margin-top: -1px; }
.mpin-dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--pin); opacity: 0; transition: opacity .15s; }
.mpin-label {
  position: absolute; left: 0; bottom: 48px; transform: translateX(-50%);
  background: var(--pin); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; letter-spacing: .1px;
  padding: 9px 14px; border-radius: 10px; white-space: nowrap;
  box-shadow: 0 6px 16px rgba(15,23,42,.25);
  transition: opacity .15s, transform .2s;
}
.mpin.moving .mpin-body { transform: translateY(-16px); transition: transform .15s ease-out; }
.mpin.moving .mpin-dot { opacity: 1; }
.mpin.moving .mpin-label { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(.9); }
.mpin.static .mpin-label { font-size: 12px; padding: 7px 10px; border-radius: 8px; }
.mpin-icon { background: none; border: 0; }
.ride-mode .center-pin { display: none; }

/* caixa de tempo no pino ("4 MIN") */
.mpin-label.com-eta { background: var(--ink); padding: 7px 11px 6px; border-radius: 9px; text-align: center; line-height: 1; }
.mpin-label .eta { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.mpin-label .eta b { font-size: 19px; font-weight: 800; letter-spacing: -.5px; }
.mpin-label .eta small { font-size: 9px; font-weight: 700; letter-spacing: 1.2px; opacity: .85; }
.mpin.static .mpin-label.com-eta { font-size: 12px; }

/* botão "minha localização" */
.fab {
  position: fixed; right: 14px; top: calc(max(12px, env(safe-area-inset-top)) + 4px); z-index: 600; /* celular: no alto do mapa */
  width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--surface); color: var(--brand);
  box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .15s;
}
.fab:hover { color: var(--brand-600); }
.fab:active { transform: scale(.94); }
.fab.busy { animation: pulse 1s infinite; }

/* aviso no topo */
.banner {
  position: fixed; left: 12px; right: 12px; top: max(12px, env(safe-area-inset-top)); z-index: 900;
  background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 16px; font-size: 14px; font-weight: 500; line-height: 1.35;
  box-shadow: var(--shadow-lg);
  animation: desce .25s ease-out;
}

/* ---------------------------------------------------------------------
   Painel (bottom sheet no celular, cartão flutuante no computador)
   --------------------------------------------------------------------- */
.sheet {
  flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: var(--surface); border-radius: 24px 24px 0 0; margin-top: -24px; z-index: 800; position: relative;
  padding: 8px 18px calc(22px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(15,23,42,.12);
}
.grab { width: 44px; height: 5px; border-radius: 3px; background: #cbd5e1; margin: 4px auto 12px; }

.brand { display: flex; align-items: center; gap: 12px; margin: 2px 0 16px; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; box-shadow: 0 4px 12px rgba(var(--brand-rgb),.35); flex: 0 0 auto; object-fit: contain; }
.app-title { font-size: 21px; font-weight: 800; letter-spacing: -.4px; margin: 0; color: var(--ink); line-height: 1.1; }
.brand-sub { margin: 2px 0 0; color: var(--muted); font-size: 14px; }

.group-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); margin: 18px 2px 10px; }

/* campos */
.field { display: block; margin-bottom: 12px; position: relative; }
.field > span { display: block; font-size: 13px; color: var(--muted); margin: 0 0 6px 2px; font-weight: 600; }
.field em { font-style: normal; color: var(--faint); font-weight: 500; }
input, select {
  width: 100%; font: inherit; font-size: 16px; /* 16px evita zoom no iOS */
  padding: 13px 14px; border: 1.5px solid transparent; border-radius: 12px; background: var(--fill); color: var(--ink);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
input::placeholder { color: var(--faint); }
input:hover, select:hover { background-color: #eaeff5; }
input:focus, select:focus { outline: none; background-color: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.14); }
select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 15px center;
}
input.invalid { border-color: var(--red); background: var(--red-50); }

/* ---- cartão de trajeto: embarque → destino ---- */
.trip { position: relative; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 4px; box-shadow: var(--shadow-sm); margin-bottom: 8px; }
.trip .field { margin: 0; }
.trip-sep { height: 1px; background: var(--line); margin: 0 12px 0 44px; }
.trip-sep { position: relative; }
.trip-sep .trocar { position: absolute; right: 50%; top: 50%; transform: translate(50%, -50%); z-index: 2; width: 30px; height: 30px; border-radius: 50%;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink, #111); font-size: 15px; font-weight: 800; line-height: 1; padding: 0;
  display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.trip-sep .trocar:hover, .trip-sep .trocar:focus-visible { border-color: var(--brand); color: var(--brand-600); }
.trip-acoes-esq { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }
.trip::before { /* linha ligando os dois pontos */
  content: ""; position: absolute; left: 22px; top: 36px; bottom: 34px; width: 2px;
  background: repeating-linear-gradient(to bottom, #cbd5e1 0 4px, transparent 4px 8px);
}
.loc { display: flex; gap: 14px; align-items: center; padding: 12px 12px 12px 16px; border-radius: 14px; }
.loc-text { min-width: 0; flex: 1; }
.loc small { display: block; color: var(--faint); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 2px; }
.loc strong { display: block; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; }
.hint { font-size: 13px; color: var(--muted); margin: 0 4px 14px; line-height: 1.4; }

.dot { flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; display: inline-block; position: relative; z-index: 1; }
.dot-green { background: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.dot-red { background: var(--ink); border-radius: 3px; box-shadow: 0 0 0 4px #e2e8f0; }

.dest-input { display: flex; align-items: center; gap: 12px; border: 1.5px solid transparent; border-radius: 14px; padding: 0 0 0 16px; background: transparent; transition: border-color .15s, box-shadow .15s, background .15s; }
.dest-input input { border: 0; padding: 15px 0; background: transparent; font-weight: 600; box-shadow: none; }
.dest-input input::placeholder { font-weight: 500; }
.dest-input input:hover, .dest-input input:focus { background: transparent; box-shadow: none; border: 0; }
.dest-input:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(var(--brand-rgb),.14); }
.dest-input.invalid { border-color: var(--red) !important; background: var(--red-50); box-shadow: 0 0 0 4px rgba(225,29,72,.12); }
.dest-input.invalid input { background: transparent; }
/* Endereço escolhido: texto completo, quebrando linha (nunca cortado) */
.dest-txt { display: none; flex: 1; min-width: 0; padding: 13px 0; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--ink); overflow-wrap: anywhere; cursor: text; }
.dest-input.escolhido input { display: none; }
.dest-input.escolhido .dest-txt { display: block; }
.dest-input .pin-btn, .dest-input .link { flex-shrink: 0; }
.pin-btn {
  flex: 0 0 auto; border: 0; background: var(--fill); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700;
  padding: 9px 12px; margin-right: 8px; border-radius: 10px; cursor: pointer; white-space: nowrap; transition: background .15s;
}
.pin-btn:hover { background: #e2e8f0; }
.pin-btn:active { transform: scale(.97); }
.link { background: none; border: 0; font-size: 16px; color: var(--faint); padding: 8px; cursor: pointer; border-radius: 8px; }
.link:hover { color: var(--ink); background: var(--fill); }

.busca-embarque { margin: 2px 0 10px; }
.busca-embarque input { width: 100%; }
.suggest { list-style: none; margin: 4px 4px 6px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: var(--shadow); max-height: 260px; overflow-y: auto; }
.suggest li { padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--ink); cursor: pointer; border-radius: 10px; }
.suggest li:hover, .suggest li:active { background: var(--fill); }
.suggest li small { display: block; color: var(--muted); font-weight: 400; margin-top: 2px; }
.suggest li.suggest-map { color: var(--brand-600); }

.estimate {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--brand-600);
  border-radius: 16px; padding: 12px 16px; margin: 4px 0 6px; font-size: 14px;
}
.estimate b { font-size: 20px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); }

.nocover { display: flex; flex-direction: column; gap: 4px; background: var(--red-50); border: 1px solid #fecdd3; color: #881337; border-radius: 14px; padding: 12px 14px; margin: -4px 0 12px; font-size: 14px; }

/* botões */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  font: inherit; font-size: 16px; font-weight: 700; padding: 16px; border-radius: 14px; border: 0;
  cursor: pointer; text-decoration: none; text-align: center; transition: transform .1s, background .15s, box-shadow .15s;
}
.btn:active { transform: scale(.985); }
.btn.primary { background: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px rgba(var(--brand-rgb),.32); }
.btn.primary:hover { background: var(--brand-600); }
.btn.primary:disabled { opacity: .45; box-shadow: none; cursor: not-allowed; }
.btn.danger { background: #fff; color: var(--red); border: 1.5px solid #fecdd3; margin-top: 10px; }
.btn.danger:hover { background: var(--red-50); }
.btn.ghost { background: var(--fill); color: var(--ink); }
.btn.ghost:hover { background: #e2e8f0; }
#btnChamar { margin-top: 18px; font-size: 17px; }

.error { color: #9f1239; background: var(--red-50); border: 1px solid #fecdd3; border-radius: 12px; padding: 11px 14px; font-size: 14px; font-weight: 500; margin: 6px 0 0; }
.mock { text-align: center; font-size: 12px; color: #b45309; margin: 12px 0 0; }

/* ---------------------------------------------------------------------
   Acompanhamento da corrida
   --------------------------------------------------------------------- */
.status { display: flex; gap: 14px; align-items: center; margin: 4px 0 16px; }
.status h2 { margin: 0 0 4px; font-size: 21px; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; color: var(--ink); }
.status p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.4; }
.status-icon { flex: 0 0 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 27px; background: var(--fill); }
.status-icon.searching { border-radius: 50%; background: radial-gradient(circle, var(--brand) 28%, transparent 30%), var(--brand-100); animation: pulse 1.4s infinite; }
.status-icon.ok { background: var(--brand-50); }
.status-icon.fail { background: var(--red-50); }

.alert { background: var(--amber-50); border: 1px solid #fde68a; color: #78350f; border-radius: 16px; padding: 14px 16px; font-size: 16px; font-weight: 700; margin-bottom: 12px; display: flex; gap: 10px; align-items: center; line-height: 1.35; }
.alert.go { background: var(--brand); border-color: var(--brand); color: var(--on-brand); box-shadow: 0 8px 20px rgba(var(--brand-rgb),.3); }

.driver { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.avatar { flex: 0 0 52px; height: 52px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; font-size: 24px; overflow: hidden; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px var(--brand-100); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.com-foto { cursor: zoom-in; }
.foto-ampliada { position: fixed; inset: 0; z-index: 9999; background: rgba(15,23,42,.82); display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; cursor: zoom-out; }
.foto-ampliada img { width: min(78vw, 340px); aspect-ratio: 1; object-fit: cover; border-radius: 50%; box-shadow: 0 0 0 5px #fff, 0 20px 50px rgba(0,0,0,.4); }
.foto-ampliada .foto-nome { color: #fff; font-weight: 700; font-size: 18px; text-align: center; max-width: 90vw; overflow-wrap: anywhere; }
.driver-info { flex: 1; min-width: 0; overflow-wrap: anywhere; }
/* Celular pequeno: a placa desce para a linha de baixo e o nome do motorista ganha a largura toda */
@media (max-width: 380px) { .driver { flex-wrap: wrap; row-gap: 10px; } .driver-info { flex-basis: 140px; } .driver .plate { margin-left: 66px; } }
.driver-info strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.driver-info span { display: block; color: var(--muted); font-size: 14px; margin-top: 1px; }
.plate { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-weight: 800; font-size: 15px; color: var(--ink); background: #fff; border: 2px solid var(--ink); border-top-width: 7px; border-top-color: #1d4ed8; border-radius: 7px; padding: 3px 9px; letter-spacing: 1.5px; }

.code { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--brand-50); border: 2px dashed var(--brand-100); border-radius: 16px; padding: 12px 16px; margin-bottom: 12px; }
.code span { font-size: 13px; color: var(--brand-600); font-weight: 600; }
.code strong { font-size: 28px; font-weight: 800; letter-spacing: 6px; color: var(--brand-600); }

.actions { display: flex; gap: 10px; margin-bottom: 12px; }
.actions .btn { font-size: 15px; padding: 13px; }
.badge { background: var(--red); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 800; padding: 2px 7px; }

.ride-addr { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); padding: 12px 14px; background: var(--fill); border-radius: 14px; }

/* ---------------------------------------------------------------------
   Diálogos (cancelar, chat)
   --------------------------------------------------------------------- */
.dialog { border: 0; border-radius: 22px; padding: 22px; width: min(92vw, 420px); box-shadow: var(--shadow-lg); color: var(--text); }
.dialog::backdrop { background: rgba(15,23,42,.5); backdrop-filter: blur(2px); }
.dialog h3 { margin: 0 0 14px; font-size: 18px; font-weight: 800; color: var(--ink); }
.dialog-actions { display: flex; gap: 10px; margin-top: 16px; }
.dialog-actions .btn { margin: 0; font-size: 15px; padding: 14px; }

.chat { padding: 0; height: min(80dvh, 580px); overflow: hidden; }
.chat[open] { display: flex; flex-direction: column; }
.chat-head { display: flex; justify-content: space-between; align-items: center; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--line); }
.chat-head strong { font-size: 16px; color: var(--ink); }
.chat-list { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: var(--fill); }
.msg { max-width: 80%; padding: 9px 13px; border-radius: 16px 16px 16px 6px; font-size: 15px; line-height: 1.4; background: #fff; align-self: flex-start; overflow-wrap: anywhere; box-shadow: var(--shadow-sm); }
.msg.me { background: var(--brand); color: var(--on-brand); align-self: flex-end; border-radius: 16px 16px 6px 16px; }
.msg small { display: block; font-size: 11px; color: var(--muted); margin-top: 3px; }
.msg.me small { color: rgba(255,255,255,.8); }
.chat-empty { color: var(--muted); text-align: center; margin: auto; font-size: 14px; max-width: 260px; line-height: 1.45; }
.chat-form { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); background: #fff; }
.chat-form input { border-radius: 999px; padding: 12px 16px; }
.chat-form .btn { width: auto; padding: 0 20px; font-size: 15px; border-radius: 999px; box-shadow: none; }

/* marcador do GPS */
.gps-dot { width: 16px; height: 16px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.22), 0 2px 6px rgba(0,0,0,.25); }

/* ---------------------------------------------------------------------
   Serviço indisponível
   --------------------------------------------------------------------- */
.blocker { position: fixed; inset: 0; z-index: 2000; background: linear-gradient(160deg, #f8fafc, var(--bg)); display: grid; place-items: center; padding: 24px; }
.blocker-card { background: #fff; border-radius: 24px; padding: 32px 24px; max-width: 380px; width: 100%; text-align: center; box-shadow: var(--shadow); }
.blocker-icon { font-size: 46px; margin-bottom: 10px; }
.blocker-card h2 { margin: 0 0 8px; font-size: 21px; font-weight: 800; color: var(--ink); }
.blocker-card p { margin: 0 0 18px; color: var(--muted); line-height: 1.5; }

/* ---------------------------------------------------------------------
   Marcar destino no mapa
   --------------------------------------------------------------------- */
.dest-mode { --map-h: calc(100dvh - 260px); }
.dest-mode #btnLocate { display: none; }
.dest-title { font-size: 21px; font-weight: 800; letter-spacing: -.4px; color: var(--ink); margin: 0 0 4px; }
.dest-loc { margin-bottom: 14px; background: var(--fill); }
.dest-cancel { margin-top: 8px; }

/* ---------------------------------------------------------------------
   Veículos no mapa (vetorial ou folha 3D)
   --------------------------------------------------------------------- */
.veic-icon { background: none; border: 0; }
.veic { position: absolute; left: 0; top: 0; width: 0; height: 0; pointer-events: none; transition: opacity .4s ease;
  filter: drop-shadow(1.5px 2.5px 1.6px rgba(20, 22, 30, .3)); }
.veic-corpo { position: absolute; transition: transform .9s ease; }
.veic-corpo.vetor.carro { left: -11px; top: -22px; width: 22px; height: 44px; }
.veic-corpo.vetor.moto { left: -9px; top: -21px; width: 18px; height: 42px; }
.veic-corpo.vetor svg { width: 100%; height: 100%; display: block; }
.veic-corpo.folha { left: -24px; top: -24px; width: 48px; height: 48px; background-repeat: no-repeat; background-size: 288px 192px; transition: none; }
.veic.com-folha:not(.meu) { filter: none; }
.veic.entrando, .veic.saindo { opacity: 0; }
.veic.meu { filter: drop-shadow(0 0 1.5px rgba(var(--brand-rgb),.95)) drop-shadow(0 0 4px rgba(var(--brand-rgb),.5)) drop-shadow(1.5px 2.5px 1.6px rgba(20,22,30,.3)); }
.veic.meu .veic-corpo.vetor.carro { left: -14px; top: -28px; width: 28px; height: 56px; }
.veic.meu .veic-corpo.vetor.moto { left: -11.5px; top: -26px; width: 23px; height: 52px; }

.google-logo { margin: 0 0 4px 6px !important; line-height: 0; }
.google-logo img { display: block; }

@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(var(--brand-rgb),.45); } 50% { box-shadow: 0 0 0 12px rgba(var(--brand-rgb),0); } }
@keyframes desce { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------------------------------------------------------------------
   Computador: mapa em tela cheia e painel flutuante à esquerda
   --------------------------------------------------------------------- */
@media (min-width: 760px) {
  :root { --map-h: 100dvh; }
  body { display: block; }
  /* O mapa ocupa a tela toda, por trás do painel (que flutua por cima). Ele é 468 px mais largo que a tela
     (a sobra fica escondida à direita): assim o CENTRO do mapa, onde fica o pino de embarque, continua no
     meio da área livre ao lado do painel. */
  body { overflow: hidden; }
  #map { position: fixed; top: 0; bottom: 0; left: 0; right: auto; width: calc(100vw + 468px); height: 100dvh; }
  #map .leaflet-bottom.leaflet-right { right: 468px; } /* créditos do mapa na parte visível */
  .sheet { position: fixed; left: 24px; top: 24px; bottom: 24px; width: 420px; margin: 0; border-radius: 24px; padding: 22px 22px 24px; box-shadow: var(--shadow-lg); }
  .banner { left: 468px; right: 24px; top: 24px; width: fit-content; max-width: min(560px, calc(100vw - 492px)); margin: 0 auto; text-align: center; }
  .center-pin { left: calc(50% + 234px); }
  .fab { top: auto; bottom: 28px; right: 28px; }
  .grab { display: none; }
  .dest-mode { --map-h: 100dvh; }
}

/* ---------------------------------------------------------------------
   Personalização: marca, estilo da tela e veículo no mapa
   --------------------------------------------------------------------- */
.tem-logo .brand-mark { box-shadow: none; border-radius: 10px; background: transparent; }
.marca-nome .brand-mark { display: none; }
.marca-imagem .app-title { display: none; }
.marca-imagem-larga .app-title { display: none; }
.marca-imagem-larga .brand-mark { width: auto; height: 46px; max-width: 230px; border-radius: 8px; box-shadow: none; }
.marca-imagem .brand-mark { width: 52px; height: 52px; }

/* Marcante: cabeçalho na cor principal */
/* v0.1.54: só a tela inicial tem a faixa colorida; as outras janelas (marcar no mapa, corrida) mantêm o espaço em
   cima e o tracinho cinza, senão o título ficava colado no mapa */
.estilo-marcante #sheetForm { padding-top: 0; }
.estilo-marcante #sheetForm { background: linear-gradient(var(--brand) 0 40px, var(--surface) 40px) local; } /* sem fio claro nos cantos arredondados do cabeçalho */
.estilo-marcante #sheetForm .grab { position: absolute; left: 50%; top: 8px; margin: 0 0 0 -22px; background: rgba(255,255,255,.55); z-index: 1; }
.estilo-marcante .brand { margin: 0 -18px 18px; padding: 26px 18px 20px; background: var(--brand); border-radius: 24px 24px 0 0; }
.estilo-marcante .app-title { color: var(--on-brand); }
.estilo-marcante .brand-sub { color: var(--on-brand); opacity: .85; }
.estilo-marcante .brand-mark { box-shadow: 0 0 0 3px rgba(255,255,255,.35); background: #fff; }
.estilo-marcante.marca-imagem-larga:not(.tem-logo):not(.marca-com-fundo) .brand-mark { background: transparent; box-shadow: none; }
.estilo-marcante.marca-imagem-larga.tem-logo .brand-mark { box-shadow: none; }

/* Flutuante (celular): o painel flutua sobre o mapa, com margens e cantos arredondados */
@media (max-width: 759px) {
  .estilo-flutuante #map { flex-basis: calc(var(--map-h) + 90px); height: calc(var(--map-h) + 90px); }
  .estilo-flutuante .center-pin { top: calc((var(--map-h) + 90px) / 2); }
  .estilo-flutuante .sheet { margin: -90px 12px calc(12px + env(safe-area-inset-bottom)); border-radius: 26px; box-shadow: var(--shadow-lg); padding-bottom: 18px; }
  .estilo-flutuante.estilo-marcante .brand, .estilo-flutuante .brand { border-radius: 26px 26px 0 0; }
}
@media (min-width: 760px) {
  .estilo-marcante #sheetForm { padding-top: 0; }
  .estilo-marcante .brand { margin: 0 -22px 18px; padding: 26px 22px 22px; }
  .estilo-neutro .sheet { box-shadow: 0 0 0 1px var(--line), var(--shadow); }
}

/* Veículo no mapa: Moderno (círculo) e Clássico (alfinete) — não giram */
.veic-corpo.marcador { transition: none; }
.veic-corpo.marcador svg { width: 100%; height: 100%; display: block; overflow: visible; }
.veic-corpo.marcador.moderno { left: -16px; top: -16px; width: 32px; height: 32px; }
.veic-corpo.marcador.classico { left: -15px; top: -38px; width: 30px; height: 38px; }
.veic.meu .veic-corpo.marcador.moderno { left: -20px; top: -20px; width: 40px; height: 40px; }
.veic.meu .veic-corpo.marcador.classico { left: -19px; top: -47px; width: 38px; height: 47px; }

.marca-imagem-larga .brand, .marca-imagem .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.estilo-marcante.marca-imagem-larga .brand, .estilo-marcante.marca-imagem .brand { align-items: center; text-align: center; }

/* ---------------------------------------------------------------------
   Paradas, endereços salvos, cupom, agendamento, recibo, instalar
   --------------------------------------------------------------------- */
.brand { position: relative; }
.instalar { margin-left: auto; border: 0; background: var(--fill); color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; padding: 8px 12px; border-radius: 999px; cursor: pointer; }
.estilo-marcante .instalar { background: rgba(255,255,255,.2); color: var(--on-brand); }

.dot-parada { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 2px solid var(--muted); color: var(--muted); font-size: 10px; font-weight: 800; display: grid; place-items: center; box-shadow: none; margin-left: -3px; }
.trip-acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; padding: 2px 10px 8px 44px; }
.trip-link { border: 0; background: none; color: var(--brand-600); font: inherit; font-size: 13px; font-weight: 700; padding: 6px 0; cursor: pointer; }
.trip-link:hover { text-decoration: underline; }
.salvar-como { font-size: 13px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.salvar-como button { border: 1px solid var(--line); background: #fff; border-radius: 999px; font: inherit; font-size: 12px; font-weight: 600; padding: 4px 9px; cursor: pointer; }
.salvar-como button:hover { background: var(--fill); }

.preco-antes { color: var(--muted); font-size: 14px; font-weight: 500; }
.est-cupom { color: var(--brand-600); font-weight: 600; font-size: 13px; }
.est-dinamica { display: inline-flex; align-self: flex-start; margin-top: 4px; background: var(--amber-50); border: 1px solid #fde68a; color: #92400e; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 700; }
.cupom { margin: 2px 2px 4px; }
.cupom-box { display: flex; gap: 8px; margin-top: 6px; }
.cupom-box input { text-transform: uppercase; }
.cupom-box .btn { width: auto; padding: 0 18px; font-size: 15px; }
.cupom-msg { font-size: 13px; color: var(--muted); margin: 6px 2px 0; }
.cupom-msg.erro { color: #9f1239; }

.quando { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--fill); padding: 4px; border-radius: 14px; margin-bottom: 12px; }
.seg { border: 0; background: transparent; font: inherit; font-size: 15px; font-weight: 700; color: var(--muted); padding: 11px; border-radius: 11px; cursor: pointer; transition: background .15s, color .15s; }
.seg.sel { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.agenda { display: grid; grid-template-columns: 1.3fr 1fr; gap: 10px; }

.agendadas { margin: 0 0 14px; display: flex; flex-direction: column; gap: 8px; }
.ag-titulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); margin: 0 2px; }
.ag-card { display: flex; gap: 10px; align-items: center; justify-content: space-between; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 16px; padding: 12px 14px; }
.ag-card.cancelada { background: var(--fill); border-color: var(--line); opacity: .8; }
.ag-info { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.ag-info b { font-size: 15px; color: var(--ink); }
.ag-info span { font-size: 14px; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-info small { font-size: 12px; color: var(--brand-600); font-weight: 600; }
.ag-acoes .btn { width: auto; padding: 9px 14px; font-size: 14px; margin: 0; box-shadow: none; }

.nota { font-size: 13px; font-weight: 700; color: #b45309; white-space: nowrap; }

.recibo { background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.rec-titulo { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--faint); }
.rec-valor { font-size: 30px; font-weight: 800; letter-spacing: -.6px; color: var(--ink); margin: 2px 0 10px; }
.rec-trajeto { display: flex; flex-direction: column; gap: 8px; padding: 10px 12px; background: var(--fill); border-radius: 12px; margin-bottom: 10px; }
.rec-ponto { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--text); }
.rec-itens { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 10px; font-size: 14px; }
.rec-itens dt { color: var(--muted); }
.rec-itens dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; }
.rec-id { font-size: 12px; color: var(--faint); margin-bottom: 10px; }
.recibo .btn { font-size: 15px; padding: 13px; }

.quando.unico { grid-template-columns: 1fr; }
.quando.unico .seg { cursor: default; }

/* fim da corrida e recibo em tela própria */
.fim { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; background: var(--brand-50); border: 1px solid var(--brand-100); border-radius: 20px; padding: 18px 16px 16px; margin-bottom: 12px; }
.fim-rotulo { font-size: 13px; font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: .6px; }
.fim-valor { font-size: 40px; font-weight: 800; letter-spacing: -1px; color: var(--ink); line-height: 1.1; }
.fim-pag { font-size: 14px; color: var(--muted); }
.fim .btn { margin-top: 10px; background: #fff; border: 1.5px solid var(--line); }
.recibo-dlg { padding: 0; width: min(94vw, 440px); max-height: 90dvh; overflow: hidden; }
.recibo-dlg[open] { display: flex; flex-direction: column; }
.recibo-corpo { padding: 18px; overflow-y: auto; }
.rec-marca { font-size: 13px; font-weight: 700; color: var(--brand-600); text-transform: uppercase; letter-spacing: .6px; }
.recibo-acoes { padding: 12px 18px 18px; border-top: 1px solid var(--line); }
.btn.whats { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.3); }
.btn.whats:hover { background: #1ebe5a; }

.fim-contagem { margin-top: 8px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Destino escolhido: embarque fixo (alfinete no mapa); o pino central só volta ao tocar em "Alterar" */
.alterar-embarque { display: none; flex-shrink: 0; }
body.embarque-fixo .alterar-embarque { display: inline-flex; }
body.embarque-fixo:not(.dest-mode) #centerPin { display: none; }
.dica-fixo { display: none; }
body.embarque-fixo .dica-fixo { display: block; }
body.embarque-fixo .dica-livre { display: none; }

/* Ajuda para liberar a localização */
.local-dlg { max-width: 440px; }
.local-intro { margin: 4px 0 10px; color: var(--ink); line-height: 1.45; overflow-wrap: anywhere; }
.local-passos { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 8px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.local-passos b { font-weight: 700; }

/* Painel recolhido (celular): só o topo "Para onde vamos?" no rodapé; o mapa ocupa o resto */
@media (max-width: 759px) {
  body.painel-recolhido:not(.ride-mode):not(.dest-mode) { --map-h: calc(100dvh + 24px - var(--sheet-topo, 120px) - env(safe-area-inset-bottom)); }
  body.painel-recolhido:not(.ride-mode):not(.dest-mode) #sheetForm { overflow: hidden; }
  body.painel-recolhido:not(.ride-mode):not(.dest-mode) #sheetForm .brand { cursor: pointer; }
  body.painel-recolhido:not(.ride-mode):not(.dest-mode) #sheetForm .grab { background: #94a3b8; }
  .estilo-flutuante.painel-recolhido:not(.ride-mode):not(.dest-mode) { --map-h: calc(100dvh - var(--sheet-topo, 120px) - 12px - env(safe-area-inset-bottom)); }
  /* Marcante recolhido: o rodapé inteiro fica na cor do cabeçalho (sem faixa clara embaixo do "Para onde vamos?") */
  .estilo-marcante.painel-recolhido:not(.ride-mode):not(.dest-mode) #sheetForm { background: var(--brand); }
  #sheetForm .grab { cursor: pointer; position: relative; }
  #sheetForm .grab::after { content: ""; position: absolute; inset: -12px -40px; } /* área de toque maior */
}

/* Tempo até o carro mais próximo */
.proximo-txt { margin: -6px 0 14px; font-size: 13px; font-weight: 600; color: var(--brand); overflow-wrap: anywhere; }
.proximo-txt.sem-carro { color: var(--muted); font-weight: 500; }

/* Atalhos: repetir última corrida e Minhas corridas */
.atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 14px; }
.atalho { flex: 1 1 auto; min-width: 0; display: inline-flex; align-items: center; gap: 6px; justify-content: center; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; padding: 9px 12px; border-radius: 999px; cursor: pointer; }
.atalho span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.historico-dlg { max-width: 460px; width: calc(100vw - 24px); }
.hist-sub { margin: 0 0 10px; }
.hist-lista { display: grid; gap: 10px; max-height: 65dvh; overflow-y: auto; }
.hist-item { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 8px; }
.hist-topo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.hist-data { color: var(--muted); }
.hist-status { font-weight: 700; font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--fill); }
.st-F .hist-status { background: #dcfce7; color: #166534; }
.st-C .hist-status, .st-N .hist-status { background: #fee2e2; color: #991b1b; }
.hist-valor { margin-left: auto; }
.hist-rota { display: grid; gap: 4px; font-size: 14px; }
.hist-ponto { display: flex; gap: 8px; align-items: flex-start; overflow-wrap: anywhere; }
.hist-ponto .dot { margin-top: 5px; flex-shrink: 0; }
.hist-acoes { display: flex; gap: 8px; flex-wrap: wrap; }
.btn.small { padding: 8px 12px; font-size: 13px; border-radius: 10px; width: auto; }

/* Meus cupons */
.meus-cupons { display: grid; gap: 8px; margin: 0 0 8px; }
.meus-cupons-titulo { font-size: 13px; font-weight: 700; color: var(--ink); }
.cupom-chip { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; text-align: left; border: 1.5px dashed var(--brand); background: rgba(var(--brand-rgb), .06); color: var(--ink); border-radius: 12px; padding: 10px 12px; font: inherit; cursor: pointer; }
.cupom-chip strong { font-size: 14px; letter-spacing: .5px; overflow-wrap: anywhere; }
.cupom-chip-desc { grid-column: 1; font-size: 13px; font-weight: 600; color: var(--brand); }
.cupom-chip-det { grid-column: 1; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.cupom-chip-acao { grid-column: 2; grid-row: 1 / span 3; align-self: center; font-size: 13px; font-weight: 700; color: var(--brand); white-space: nowrap; }
.cupom-chip.usado { border-style: solid; background: rgba(var(--brand-rgb), .12); }

/* ---------------------------------------------------------------------
   Acabamento: fonte do app em todos os botões e botão de fechar das janelas
   --------------------------------------------------------------------- */
button { font-family: inherit; }
/* ✕ de fechar (recibo, chat, ajuda, minhas corridas) e de limpar campo */
.link { font-family: inherit; line-height: 1; display: inline-grid; place-items: center; min-width: 36px; min-height: 36px; font-size: 18px; color: var(--muted); transition: background .15s, color .15s; }
.link:hover { background: var(--fill); color: var(--ink); }
/* ao abrir uma janela, o navegador põe o foco no ✕: sem o quadrado preto (fica só no teclado) */
.link:focus { outline: none; }
.link:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .25); }
.dest-input .link { min-width: 32px; min-height: 32px; font-size: 16px; }


.fab { font-size: 16px; }

/* =====================================================================
   Visual profissional (v0.1.43): forma, espaçamento e tipografia mais sóbrios.
   As cores continuam vindo da Aparência (--brand). O pino (.mpin) e os veículos (.veic) NÃO mudam.
   ===================================================================== */
:root { --radius: 12px; --shadow: 0 4px 16px rgba(15,23,42,.08); --shadow-lg: 0 12px 32px rgba(15,23,42,.14); }
.sheet { box-shadow: 0 -4px 20px rgba(15,23,42,.08); }
.grab { width: 40px; height: 4px; background: #d5dbe3; }
.brand-mark { box-shadow: none; border-radius: 10px; }
.app-title { font-weight: 700; letter-spacing: -.3px; }
.brand-sub { font-size: 15px; }
.group-title { font-size: 15px; font-weight: 700; text-transform: none; letter-spacing: -.1px; color: var(--ink); margin: 22px 2px 10px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--text); }
input, select { border-radius: 10px; border: 1px solid var(--line); background-color: #fff; }
input:hover, select:hover { background-color: #fff; border-color: #cbd5e1; }
input:focus, select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .16); }
input.invalid { border-color: var(--red); }

/* trajeto: embarque, paradas e destino num bloco só */
.trip { border: 1px solid var(--line); border-radius: 14px; box-shadow: none; }
.loc small { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 600; color: var(--muted); }
.loc strong { font-weight: 600; }
.dest-input input { font-weight: 500; }
.dest-input:focus-within { box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .14); }
.pin-btn { display: inline-flex; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); font-weight: 600; padding: 7px 11px; }
.pin-btn:hover { background: var(--fill); }
.pin-btn .ic { color: var(--brand); }
.trip-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.salvar-como button { display: inline-flex; align-items: center; gap: 4px; }
.trip-sep .trocar { font-size: 15px; border-width: 1px; }

/* lugares rápidos: Casa, Trabalho e destinos recentes, logo abaixo do trajeto */
.lugares { display: grid; margin: 4px 0 10px; }
.lugar { display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); padding: 11px 4px; font: inherit; text-align: left; cursor: pointer; color: var(--ink); border-radius: 0; }
.lugar:last-child { border-bottom: 0; }
.lugar:hover .lugar-txt strong { text-decoration: underline; }
.lugar-ic { font-size: 19px; color: var(--muted); }
.lugar-txt { min-width: 0; flex: 1; display: grid; gap: 1px; }
.lugar-txt strong { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lugar-txt small { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* categorias em linhas: ícone, nome, tempo e preço */
.select-oculto { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; padding: 0; border: 0; }
.cat-lista { display: grid; gap: 8px; }
.cat-item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: inherit; color: var(--ink); cursor: pointer; transition: border-color .15s, box-shadow .15s, background .15s; }
.cat-item:hover { border-color: #cbd5e1; }
.cat-item.sel { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); background: rgba(var(--brand-rgb), .05); }
/* veículo cadastrado para a categoria na central: o MESMO desenho e a mesma cor do mapa (não é um ícone novo) */
.cat-veic { position: relative; flex: 0 0 40px; width: 40px; height: 50px; }
.veic-lista { position: absolute; left: 50%; top: 50%; width: 0; height: 0; filter: drop-shadow(1.5px 2.5px 1.6px rgba(20, 22, 30, .3)); }
/* Respiro entre o mapa, os textos e os botões (v0.1.44): nada colado na divisa com o mapa */
@media (max-width: 759px) { .sheet { padding-top: 12px; } }
.grab { margin: 2px auto 18px; }
.brand { margin-bottom: 18px; }
.dest-title { margin: 2px 0 6px; line-height: 1.2; }
#sheetDestino .hint { margin: 0 2px 16px; }
.dest-loc { margin-bottom: 16px; }
#sheetDestino .btn + .btn { margin-top: 10px; }
.busca-embarque { margin: 0 0 14px; }
.status { margin: 6px 0 18px; }
@media (max-width: 759px) {
  /* marcando no mapa: o painel tem a altura do seu conteúdo (medida no app.js) e o mapa fica com o resto */
  /* --alt-tela = altura real da página, medida no aparelho (app.js); sem ela, usa 100dvh */
  .dest-mode { --map-h: calc(var(--alt-tela, 100dvh) - var(--dest-sheet-h, 330px) + 24px); }
  /* estilo flutuante: o painel sobe 90 px sobre o mapa e tem margem embaixo */
  .estilo-flutuante.dest-mode { --map-h: calc(var(--alt-tela, 100dvh) - var(--dest-sheet-h, 330px) - 12px - env(safe-area-inset-bottom)); }
}

/* janelas com margem própria (ajuda da localização, minhas corridas): título alinhado com o texto de baixo */
.local-dlg .chat-head, .historico-dlg .chat-head { padding: 0 0 12px; margin-bottom: 12px; }
.dialog-actions { margin-top: 20px; }

/* linha "Carro mais próximo": o mesmo veículo, menor */
.proximo-txt { display: flex; align-items: center; gap: 6px; }
.prox-veic { flex: 0 0 22px; width: 22px; height: 30px; }
.prox-veic .veic-lista { transform: scale(.6); }
.cat-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.cat-txt strong { font-size: 15px; font-weight: 600; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; overflow-wrap: anywhere; }
.cat-txt small { font-size: 13px; color: var(--muted); }
.cat-vip { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .3px; color: #92400e; background: #fef3c7; border-radius: 6px; padding: 1px 6px; }
.cat-preco { font-size: 15px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* estimativa, avisos e botões */
.estimate { background: #fff; border: 1px solid var(--line); color: var(--muted); border-radius: 12px; }
.estimate b { font-weight: 700; }
.btn { border-radius: 12px; font-weight: 600; }
.btn.primary { box-shadow: none; }
.btn.ghost { background: #fff; border: 1px solid var(--line); }
.btn.ghost:hover { background: var(--fill); }
.btn.danger { border-width: 1px; }
.btn .ic { font-size: 18px; }
#btnChamar { font-weight: 700; }
.atalho { border-radius: 10px; }
.atalho .ic, .trip-link .ic { color: var(--brand); }
.instalar { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }
.quando { border-radius: 12px; }
.seg { font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.error, .nocover, .alert { border-radius: 12px; }
.alert { font-weight: 600; }
.alert.go { box-shadow: none; }
.banner { border-radius: 12px; }
.suggest { border-radius: 12px; box-shadow: var(--shadow); }
.suggest li { font-weight: 500; }

/* acompanhamento da corrida */
.status h2 { font-weight: 700; letter-spacing: -.3px; }
.driver { border-width: 1px; border-radius: 14px; box-shadow: none; }
.driver-info strong { font-weight: 600; }
.code { border-width: 1px; border-radius: 12px; }
.fim { border-radius: 16px; }
.fim-rotulo { text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 600; }
.fim-valor { font-weight: 700; }
.fim .btn { border-width: 1px; }
.ride-addr { border-radius: 12px; }
.recibo, .hist-item { border-width: 1px; border-radius: 14px; box-shadow: none; }
.rec-titulo, .ag-titulo, .rec-marca { text-transform: none; letter-spacing: 0; font-size: 13px; }
.rec-valor { font-weight: 700; }


/* janelas */
.dialog { border-radius: 18px; }
.dialog h3 { font-weight: 700; }
.dialog::backdrop { backdrop-filter: none; }

@media (min-width: 760px) {
  .sheet { border-radius: 18px; box-shadow: 0 12px 40px rgba(15,23,42,.16); }
}
/* a janela recebe o foco ao abrir (não o ✕): sem contorno */
dialog:focus { outline: none; }

/* Sua marca no topo da tela (celular): canto superior esquerdo, sobre o mapa; o botão de localização fica à direita */
.marca-topo {
  position: fixed; left: 14px; top: calc(max(12px, env(safe-area-inset-top)) + 4px); z-index: 600;
  display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 6px; max-width: min(200px, calc(100vw - 96px));
  background: var(--surface); border-radius: 999px; box-shadow: var(--shadow); pointer-events: none;
}
.marca-topo img { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; flex: 0 0 auto; }
.marca-topo span { font-size: 16px; font-weight: 800; letter-spacing: -.3px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.topo-nome .marca-topo { padding: 0 18px; }
.topo-nome .marca-topo img { display: none; }
.topo-imagem .marca-topo { padding: 6px; width: 48px; justify-content: center; }
.topo-imagem .marca-topo span { display: none; }
.topo-imagem-larga .marca-topo { padding: 0 12px; }
.topo-imagem-larga .marca-topo img { width: auto; height: 26px; max-width: 120px; border-radius: 4px; }
.topo-imagem-larga .marca-topo span { display: none; }
.dest-mode .marca-topo { display: none; }
@media (min-width: 760px) { .marca-topo { display: none !important; } }

/* Celular: a marca do painel de baixo fica mais compacta */
@media (max-width: 759px) {
  .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
  .marca-imagem .brand-mark { width: 40px; height: 40px; }
  .marca-imagem-larga .brand-mark { width: auto; height: 30px; max-width: 150px; border-radius: 6px; }
  .marca-imagem-larga .brand, .marca-imagem .brand { gap: 6px; }
}

/* prévia do painel (Personalização): sem o aviso do topo por cima da logo */
.previa .banner { display: none !important; }

/* Fundo atrás da logo (Aparência > fundo de cada imagem). Sem fundo: a imagem aparece como foi enviada. */
.tem-logo .brand-mark { background: var(--fundo-marca, transparent); box-shadow: none; }
/* com fundo escolhido: vale para a logo enviada e também para o ícone padrão, em qualquer estilo de tela */
body.marca-com-fundo .brand-mark { background: var(--fundo-marca); box-shadow: none; padding: 4px; border-radius: 10px; box-sizing: content-box; }
body.marca-com-fundo.marca-imagem-larga .brand-mark { padding: 4px 8px; }
.marca-topo { background: var(--fundo-topo, var(--surface)); }
.topo-sem-fundo .marca-topo { box-shadow: none; padding-left: 0; padding-right: 0; }
.topo-sem-fundo .marca-topo img { filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.marca-topo span { color: var(--tinta-topo, var(--ink)); }
.topo-sem-fundo .marca-topo span { text-shadow: 0 0 3px #fff, 0 0 6px #fff; }

/* Cliente VIP */
.vip-dlg { max-width: 380px; width: calc(100vw - 32px); text-align: center; }
.vip-dlg h3 { margin: 4px 0 6px; font-size: 20px; overflow-wrap: anywhere; }
.vip-dlg p { margin: 0 0 14px; color: var(--muted); line-height: 1.45; overflow-wrap: anywhere; }
.vip-estrela { font-size: 38px; line-height: 1; margin-top: 4px; }
.vip-acoes { display: grid; gap: 8px; margin-top: 6px; }
.vip-acoes .btn { width: 100%; }
.vip-acoes .link { justify-self: center; background: none; border: 0; color: var(--muted); font-weight: 600; text-decoration: underline; cursor: pointer; padding: 6px; }
.vip-pin-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; text-align: left; }
.vip-pin-campos input { text-align: center; letter-spacing: 8px; font-size: 22px; font-weight: 700; }
.vip-erro { color: #dc2626 !important; font-weight: 600; min-height: 1em; margin: 6px 0 4px !important; }
.vip-erro:empty { display: none; }
.selo-vip { display: inline-block; margin-bottom: 4px; padding: 3px 10px; border-radius: 999px; background: #fcd34d; color: #3f2d00; font-size: 12px; font-weight: 800; letter-spacing: .2px; }

/* nível do motorista no programa de níveis da central (ex.: Ouro) */
.nivel { display: inline-block; font-size: 12px; font-weight: 700; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: 2px 8px; vertical-align: middle; white-space: nowrap; }

/* Campos de preencher com contorno mais forte, na cor da Aparência (para ficar claro onde preencher) — v0.1.44 */
input:not([type=checkbox]):not([type=radio]), select { border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); }
input:not([type=checkbox]):not([type=radio]):hover, select:hover { border-color: color-mix(in srgb, var(--brand) 70%, #cbd5e1); }
input:not([type=checkbox]):not([type=radio]):focus, select:focus { border-color: var(--brand); }
input.invalid { border-color: var(--red); }/* bloco de embarque e destino: é onde se digita o endereço */
.trip { border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); }
.dest-input input, .dest-input input:hover, .dest-input input:focus { border: 0; }
.chat-form input { border-radius: 999px; }
.dest-input input:not([type=checkbox]):not([type=radio]), .dest-input input:not([type=checkbox]):not([type=radio]):hover, .dest-input input:not([type=checkbox]):not([type=radio]):focus { border: 0; box-shadow: none; }

/* Botões de mapa (Alterar / Mapa / Marcar no mapa): mesmo contorno dos campos, na cor da Aparência (v0.1.45) */
.pin-btn { border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); background: #fff; }
.pin-btn:hover { border-color: color-mix(in srgb, var(--brand) 70%, #cbd5e1); }
.pin-btn:active, .pin-btn:focus-visible { border-color: var(--brand); outline: none; }
#localMapa { border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); }
#localMapa:hover { border-color: color-mix(in srgb, var(--brand) 70%, #cbd5e1); }
#localMapa:active, #localMapa:focus-visible { border-color: var(--brand); outline: none; }

/* Caixas de seleção (v0.1.45): a setinha fica parada no canto direito (passar o mouse muda só a cor de fundo, sem animar a seta);
   com a lista aberta ela aponta para cima, e volta a apontar para baixo ao fechar */
select { transition: border-color .15s, background-color .15s, box-shadow .15s; }
select:open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }

/* Caixas de seleção: padrão do sistema inteiro (v0.1.45). A setinha fica SEMPRE parada no canto direito, em qualquer
   estado (passar o mouse, tocar, selecionar). A única mudança: com a lista aberta ela aponta para cima; fechada, para baixo. */
select:not([multiple]):not([size]), select:not([multiple]):not([size]):hover, select:not([multiple]):not([size]):focus, select:not([multiple]):not([size]):active {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; background-repeat: no-repeat !important; background-position: right 15px center !important; background-size: 12px 8px !important;
  transition-property: border-color, background-color, box-shadow !important; }
select:not([multiple]):not([size]):open { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 6.5l5-5 5 5' fill='none' stroke='%2364748b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important; }

/* Ícone "a caminho" / "chegando": o desenho do veículo cadastrado (o mesmo do mapa), dentro da caixa (v0.1.47) */
.status-icon .status-veic { flex: 0 0 auto; width: 40px; height: 50px; }

/* Código de segurança do embarque (v0.1.49): quatro quadradinhos na cor da Aparência */
#codigoValor { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
#codigoValor span { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 50px; border-radius: 10px; background: var(--brand); color: var(--on-brand, #fff); font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
/* números bem no meio de cada quadradinho */
#codigoValor span { line-height: 1; text-align: center; padding: 0; box-sizing: border-box; }

/* v0.1.51: os botoes 'Mapa' (destino e paradas) terminam na mesma linha do 'Alterar' do embarque (12 px da borda) */
.trip .dest-input { padding-right: 11px; } /* 11 px + 1 px de borda = 12 px, igual ao embarque */

/* v0.1.54: tela de marcar no mapa: espaco reservado para 2 linhas de endereco (o painel nao muda de altura enquanto se arrasta o mapa) */
#destinoPreview { min-height: 2.6em; }

/* v0.1.55: botao de remover parada/destino ("x") maior e visivel: circulo com fundo, borda e x escuro */
.dest-input .btn-x { width: 34px; height: 34px; min-width: 34px; min-height: 34px; padding: 0; border-radius: 50%; background: var(--fill, #f1f5f9); border: 1.5px solid var(--line, #e2e8f0); color: var(--ink, #0f172a); display: inline-grid; place-items: center; }
.dest-input .btn-x .ic { width: 18px; height: 18px; vertical-align: 0; }
.dest-input .btn-x:hover, .dest-input .btn-x:active { background: #fee2e2; border-color: #fca5a5; color: #dc2626; }
.dest-input .btn-x:focus-visible { box-shadow: 0 0 0 3px rgba(var(--brand-rgb), .25); }

/* v0.1.56: atalhos (Repetir / Minhas corridas), botoes claros (Voltar, Recibo, Pedir de novo...) e cartoes do
   historico e do recibo com o mesmo contorno do bloco do trajeto e dos botoes de mapa: 2 px na cor da Aparencia */
.atalho, .btn.ghost { border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); background: #fff; color: var(--ink); }
.atalho:hover, .btn.ghost:hover { border-color: color-mix(in srgb, var(--brand) 70%, #cbd5e1); background: #fff; }
.atalho:active, .atalho:focus-visible, .btn.ghost:active, .btn.ghost:focus-visible { border-color: var(--brand); outline: none; }
.btn.ghost:disabled { border-color: var(--line); }
.hist-item, .recibo { border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); }

/* v0.1.58: versão do app, discreta, com espaço embaixo do "Chamar motorista" */
.versao-app { text-align: center; font-size: 12px; color: var(--faint, #94a3b8); margin: 40px 0 16px; letter-spacing: .2px; }
.versao-app:empty { display: none; }

/* v0.1.60: emergencia */
.btn.emergencia { background: #fff; color: #b91c1c; border: 2px solid #fca5a5; }
.btn.emergencia .ic { color: #dc2626; }
.btn.emergencia:hover { background: #fef2f2; border-color: #f87171; }
.emerg-dlg { display: none; }
.emerg-dlg[open] { display: grid; gap: 12px; }
.emerg-dlg .chat-head { padding: 0 0 10px; }
.emerg-ligar { background: #dc2626; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 18px; font-weight: 800; padding: 16px; border-radius: 14px; text-decoration: none; box-shadow: 0 8px 20px rgba(220,38,38,.25); }
.emerg-ligar .ic { color: #fff; }
.em-form { display: grid; gap: 10px; }
.em-form .field, .em-form .hint { margin: 0; }
.em-trocar { justify-self: center; font-size: 13.5px; font-weight: 600; color: var(--brand-600, var(--brand)); }
.em-dica { margin: 0; text-align: center; }

/* v0.1.60: cartao fidelidade e indique e ganhe */
.fid-box { border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); border-radius: 14px; padding: 12px 14px; margin: 0 0 12px; display: grid; gap: 8px; background: #fff; }
.fid-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.fid-topo strong { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.fid-topo .ic { color: var(--brand); }
.fid-topo span:last-child { font-weight: 700; color: var(--brand-600, var(--brand)); }
.fid-bolinhas { display: flex; flex-wrap: wrap; gap: 6px; }
.fid-bolinhas span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 45%, #cbd5e1); background: #fff; }
.fid-bolinhas span.on { background: var(--brand); border-color: var(--brand); }
.fid-premio { color: var(--muted); font-size: 13px; }
.indique-dlg[open] { display: grid; gap: 12px; }
.indique-dlg .chat-head { padding: 0 0 10px; }
.ind-texto { margin: 0; line-height: 1.45; }
.ind-codigo { display: grid; justify-items: center; gap: 4px; padding: 14px; border: 2px dashed color-mix(in srgb, var(--brand) 55%, #cbd5e1); border-radius: 14px; }
.ind-codigo span { font-size: 13px; color: var(--muted); }
.ind-codigo strong { font-size: 26px; letter-spacing: 2px; color: var(--ink); }
.ind-dica { margin: 0; text-align: center; }

/* v0.1.60: privacidade */
.privacidade-link { display: block; margin: -8px auto 18px; font-size: 13px; color: var(--muted); text-decoration: underline; }
.privacidade-dlg[open] { display: grid; gap: 10px; }
.privacidade-dlg .chat-head { padding: 0 0 10px; }
.pv-texto { margin: 0 0 4px; line-height: 1.45; }
.privacidade-dlg .btn { margin: 0; text-decoration: none; text-align: center; }
.privacidade-dlg .btn.perigo { color: #b91c1c; border-color: #fca5a5; }
.pv-aviso { margin: 0; }
.pv-aviso:empty { display: none; }

/* v0.1.60: pesquisa de satisfação na tela de fim (cores da Aparência) */
.pesquisa { width: 100%; margin: 6px 0 10px; padding: 14px 12px; border: 2px solid color-mix(in srgb, var(--brand) 35%, #e2e8f0); border-radius: 14px; background: #fff; display: grid; gap: 10px; justify-items: center; text-align: center; }
.pesq-pergunta { margin: 0; font-weight: 700; color: var(--ink); font-size: 15px; }
.pesq-estrelas { display: flex; gap: 4px; }
.pesq-estrela { border: 0; background: none; font-size: 34px; line-height: 1; color: #cbd5e1; cursor: pointer; padding: 2px 4px; }
.pesq-estrela.on { color: var(--brand); }
.pesq-mais { width: 100%; display: grid; gap: 10px; }
.pesq-motivos { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pesq-motivo { border: 2px solid color-mix(in srgb, var(--brand) 35%, #cbd5e1); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; cursor: pointer; }
.pesq-motivo.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pesq-mais textarea { width: 100%; box-sizing: border-box; font: inherit; font-size: 15px; line-height: 1.4; padding: 10px 12px; border-radius: 12px; border: 2px solid color-mix(in srgb, var(--brand) 35%, #cbd5e1); background: #fff; color: var(--ink); resize: vertical; }
.pesq-mais textarea:focus { outline: none; border-color: var(--brand); }
.pesq-mais .btn { margin: 0; }
.pesq-ok { margin: 0; font-weight: 600; color: var(--brand-600, var(--brand)); }

/* v0.1.60: letra maior e alto contraste (botão "Letra e contraste"; a escolha fica no celular) */
.texto-grande .sheet > :not(.brand), .texto-grande .ride > * { zoom: 1.14; }
.texto-grande .sheet > .brand { font-size: 1.12em; }
.texto-grande dialog.dialog { zoom: 1.1; width: min(calc(92vw / 1.1), 420px); }
.alto-contraste { --ink: #000; --text: #0b0f19; --muted: #1e293b; --faint: #334155; --line: #475569; }
.alto-contraste body { color: #0b0f19; }
.alto-contraste input, .alto-contraste select, .alto-contraste textarea { border: 2px solid #334155 !important; background: #fff !important; color: #000 !important; }
.alto-contraste input::placeholder, .alto-contraste textarea::placeholder { color: #475569; }
.alto-contraste .btn.ghost, .alto-contraste .atalho, .alto-contraste .btn-x { border: 2px solid #0b0f19 !important; color: #000; background: #fff; }
.alto-contraste .btn.primary { box-shadow: 0 0 0 2px #000; }
.alto-contraste .ag-card, .alto-contraste .cat, .alto-contraste .hist-item { border-color: #0b0f19 !important; }
.alto-contraste .ic { filter: contrast(1.4); }
.alto-contraste a { text-decoration: underline; }
.alto-contraste .muted, .alto-contraste small, .alto-contraste .hint { color: #1e293b !important; }

/* botões de liga/desliga do app (letra e contraste, repetir toda semana) */
.chave-app { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-size: 15px; font-weight: 600; color: var(--ink); }
.chave-app input { appearance: none; -webkit-appearance: none; flex: 0 0 46px; width: 46px; height: 28px; margin: 0; padding: 0; border-radius: 999px; background: #cbd5e1; border: 0; position: relative; cursor: pointer; transition: background .15s; }
.chave-app input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .15s; }
.chave-app input:checked { background: var(--brand); }
.chave-app input:checked::after { transform: translateX(18px); }
.chave-app input:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); outline-offset: 2px; }
.alto-contraste .chave-app input { border: 2px solid #0b0f19 !important; background: #e2e8f0 !important; }
.alto-contraste .chave-app input:checked { background: var(--brand) !important; }
.acess-dlg .chat-head { padding: 0 0 10px; }
.acess-dica { margin: 6px 0 14px; font-size: 13px; color: var(--muted); }

/* sugestão por horário */
.sugestao { display: flex; align-items: center; gap: 12px; width: 100%; margin: 0 0 12px; padding: 12px 14px; border: 2px solid color-mix(in srgb, var(--brand) 40%, #e2e8f0); border-radius: 14px; background: #fff; font: inherit; text-align: left; cursor: pointer; color: var(--ink); }
.sugestao:hover { border-color: color-mix(in srgb, var(--brand) 70%, #e2e8f0); }
.sugestao > .ic { color: var(--brand); flex: 0 0 auto; width: 22px; height: 22px; }
.sug-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sug-txt b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sug-txt small { font-size: 12.5px; color: var(--muted); }
.sug-usar { flex: 0 0 auto; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; }

/* repetir toda semana */
.repetir-box { margin: 4px 0 10px; }
.repetir-box .chave-app { padding: 6px 0; }
.repetir-dias { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.rep-dia { flex: 1 0 40px; min-width: 40px; border: 2px solid color-mix(in srgb, var(--brand) 35%, #cbd5e1); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; border-radius: 10px; padding: 8px 0; cursor: pointer; }
.rep-dia.on { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.repetir-info { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
#recorrentes { margin-top: 0; }
.repetir-dias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.rep-dia { min-width: 0; padding: 8px 0; font-size: 12.5px; }

/* v0.1.60: pedir por voz (microfone no destino) e idioma */
.voz-btn { flex: 0 0 auto; width: 38px; height: 38px; margin-right: 4px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--brand) 40%, #cbd5e1); background: #fff; color: var(--brand); display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.voz-btn .ic { width: 18px; height: 18px; vertical-align: 0; }
.voz-btn.ouvindo { background: var(--brand); border-color: var(--brand); color: var(--on-brand); animation: voz-pulso 1.1s ease-in-out infinite; }
@keyframes voz-pulso { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 45%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }

/* v0.1.62: botoes do quadro de endereco menores e mais perto da borda (sobra espaco para o endereco).
   'Alterar' e 'Mapa' com a mesma largura; microfone do mesmo tamanho do 'x' de remover parada. */
.trip .loc { padding-right: 6px; gap: 10px; }
.trip .dest-input { padding-right: 5px; }
.trip .pin-btn { margin-right: 0; justify-content: center; gap: 4px; min-width: 84px; padding: 5px 8px; font-size: 13.5px; line-height: 1.2; border-radius: 10px; }
.trip .pin-btn .ic { width: 15px; height: 15px; }
.trip .voz-btn { width: 34px; height: 34px; margin-right: 0; }
.trip .voz-btn .ic { width: 17px; height: 17px; }
.trip .dest-input button + button { margin-left: -4px; }
/* lado esquerdo com a mesma distancia da borda que os botoes da direita (pontos, linha e textos 10 px para a esquerda) */
.trip .loc { padding-left: 6px; }
.trip .dest-input { padding-left: 6px; }
.trip::before { left: 12px; }
.trip-sep { margin-left: 34px; }
.trip-acoes { padding-left: 34px; }
/* letra dos enderecos um pouco menor e texto chegando mais perto dos botoes (6 px) */
.trip .loc strong, .trip .dest-txt { font-size: 14px; line-height: 1.3; }
.trip .dest-input input { font-size: 14px; min-width: 0; } /* sem zoom no iPhone: a pagina tem maximum-scale=1 */
.trip .dest-input input::placeholder { font-size: var(--ph, 14px); }
.trip.trip-apertada .pin-btn { min-width: 0; width: 38px; height: 34px; padding: 0; gap: 0; font-size: 0; }
.trip.trip-apertada .pin-btn .ic { width: 17px; height: 17px; }
.trip .dest-input input::-webkit-search-cancel-button, .trip .dest-input input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
.trip .loc { gap: 8px; }
.trip .loc .pin-btn { margin-left: -2px; }
.trip .dest-input > button { margin-left: -6px; }
.trip .dest-input button + button { margin-left: -6px; }
.idioma-dlg .chat-head { padding: 0 0 10px; }
.idioma-lista { display: grid; gap: 8px; }
.idioma-lista .btn { margin: 0; }
.idioma-lista .btn.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, #fff); font-weight: 700; }

/* v0.1.71: demora para achar motorista: outras categorias com motorista livre por perto */
.demora { margin: 4px 0 12px; padding: 12px; border-radius: 14px; border: 1.5px solid color-mix(in srgb, var(--brand) 40%, #e2e8f0); background: color-mix(in srgb, var(--brand) 6%, #fff); display: grid; gap: 8px; }
.demora-tit { margin: 0; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.demora-btn { width: 100%; display: flex; justify-content: flex-start; align-items: center; gap: 12px; padding: 10px 14px; margin: 0; text-align: left; }
.demora-btn .demora-veic { flex: 0 0 auto; }
.demora-txt { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.demora-txt b { font-size: 15px; overflow-wrap: anywhere; line-height: 1.25; }
.demora-txt small { font-size: 13px; color: var(--muted); font-weight: 500; }
.demora-obs { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }
