/* ---------- roteiro: escolher lugares e depois organizar ---------- */
.plan-head { padding: var(--safe-top) 8px 0 12px; display: flex; align-items: center; gap: 4px; flex: none; }
.plan-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.plan-title strong { font-size: 17px; font-weight: 600; }
.plan-title span { font-size: 13px; color: var(--sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day-strip { display: flex; gap: 8px; padding: 8px 20px 10px; overflow-x: auto; flex: none; }
.day-chip { flex: none; width: 70px; min-height: 76px; padding: 8px 4px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; color: var(--sec); transition: background .25s, color .25s, border-color .25s, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s; animation: rise-in .4s cubic-bezier(.2, .8, .2, 1) backwards; animation-delay: calc(var(--i, 0) * 40ms); }
.day-chip:active { transform: scale(.93); }
.dc-w { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; text-transform: capitalize; }
.day-chip b { font-size: 22px; font-weight: 700; letter-spacing: -0.5px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }
.day-chip small { font-size: 11px; font-weight: 600; white-space: nowrap; }
.day-chip.on { background: var(--brand); border-color: transparent; color: rgba(255,255,255,.85); box-shadow: none; }
.day-chip.on b { color: #fff; }
.day-chip.drop { transform: scale(1.1); border: 1.5px dashed var(--ink); }

.tl-head { flex: none; display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px 20px 2px; }
.tl-head strong { flex: 1; min-width: 0; font-size: 14px; font-weight: 600; color: var(--sec); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-head span { font-size: 13px; color: var(--sec); font-variant-numeric: tabular-nums; }

.dist { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--sec); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist svg { flex: none; color: var(--ink); }

.tray { flex: none; padding: 8px 0 6px; }
.tray-head { display: flex; align-items: center; justify-content: space-between; padding: 0 10px 4px 20px; }
.tray-head strong { font-size: 14px; font-weight: 600; }
.link-sm { border: 0; background: none; min-height: 40px; padding: 0 10px; font-size: 13px; font-weight: 600; text-decoration: underline; }
.tray-row { display: flex; gap: 8px; overflow-x: auto; padding: 0 20px 2px; }
.tcard { flex: none; width: 116px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); padding: 0 0 8px; overflow: hidden; display: flex; flex-direction: column; gap: 3px; text-align: left; transition: border-color .15s, transform .12s; }
.tcard:hover { border-color: var(--brand); }
.tcard:active { transform: scale(.97); }
.tcard .tph { display: block; height: 48px; }
.tcard .tph svg { display: block; width: 100%; height: 100%; }
.tcard strong { padding: 5px 10px 0; font-size: 13px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tcard .dist { padding: 0 10px; }

/* linha do tempo livre: horários de 30 em 30 min, trajeto entre os lugares e pontos para inserir */
.tl { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 20px 16px; }
.ev { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: center; }
.tl.enter .ev, .tl.enter .ins { animation: ev-in .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes ev-in { from { opacity: 0; transform: translateY(12px); } }
.ev.flash .ev-card { animation: pop-in .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes pop-in { from { opacity: 0; transform: scale(.94); } }
.ev-time { min-height: 48px; border: 0; border-radius: 10px; background: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 1px; padding: 0 4px; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; text-align: left; }
.ev-time:hover { background: var(--fill); }
.ev-time small { font-size: 11px; font-weight: 500; color: var(--sec); }
.ev-card { display: flex; align-items: center; gap: 10px; padding: 6px 0 6px 6px; border-radius: 14px; background: var(--fill); }
.ev.dragging .ev-card { opacity: .3; }
.tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.ev-card .tx strong, .fit-row .tx strong { font-size: 15px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ev-card .rm { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: none; display: grid; place-items: center; color: var(--sec); }
.ev-card .rm:hover { background: var(--surface); color: var(--ink); }
.handle { flex: none; width: 30px; height: 44px; display: grid; place-items: center; color: #A2A2A8; cursor: grab; touch-action: none; }
.ins { display: flex; align-items: center; gap: 8px; margin: 2px 0; padding: 0; border: 0; background: none; color: #A2A2A8; font-size: 13px; font-weight: 600; min-height: 32px; }
.ins span { width: 28px; height: 28px; margin-left: 8px; border-radius: 50%; border: 1.5px dashed #C7C7CC; background: var(--surface); display: grid; place-items: center; transition: border-color .15s, color .15s; }
.ins:hover { color: var(--ink); }
.ins:hover span { border-color: var(--brand); }
.ins.end { margin-top: 6px; min-height: 48px; width: 100%; justify-content: center; border: 1.5px dashed #D0D0D5; border-radius: 14px; color: var(--sec); }
.ins.end span { display: none; }
.ins.end:hover { border-color: var(--brand); }
.drop-line { height: 3px; margin: 2px 0 2px 66px; border-radius: 2px; background: var(--brand); }
.ghost { position: fixed; z-index: 9999; pointer-events: none; margin: 0; box-shadow: 0 16px 36px rgba(0,0,0,.22); transform-origin: center; }
.tl-empty { margin-top: 20px; padding: 28px 20px; border: 1.5px dashed #D0D0D5; border-radius: 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: ev-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.tl-empty strong { font-size: 17px; font-weight: 600; }
.tl-empty p { font-size: 14px; color: var(--sec); }
.tl-empty .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 6px; }
.btn-primary.sm { width: auto; min-height: 48px; padding: 0 20px; font-size: 15px; }
.pph { flex: none; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; display: block; }
.pph svg, .photo svg { display: block; width: 100%; height: 100%; }
.shake { animation: shake .35s ease; }
@keyframes shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(6px); } 75% { transform: translateX(-3px); } }
.plan-foot { flex: none; padding: 10px 20px 30px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; border-top: 1px solid var(--line); }
.btn-sec { min-height: 56px; border: 1px solid #D4D4D9; border-radius: 999px; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 0 16px; font-size: 15px; font-weight: 600; }
.btn-sec i { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--brand); color: var(--surface); font-style: normal; font-size: 11px; font-weight: 700; display: grid; place-items: center; }

.disc { position: absolute; inset: 0; z-index: 25; background: var(--surface); display: flex; flex-direction: column; animation: up .3s cubic-bezier(.2, .8, .2, 1); }
.disc-head { flex: none; padding: var(--safe-top) 12px 0; display: flex; align-items: center; gap: 4px; }
.disc-head .plan-title { align-items: center; text-align: center; }
.stages { flex: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; padding: 12px 20px 0; }
.stage { min-height: 52px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: #A2A2A8; transition: background .2s, color .2s, border-color .2s; }
.stage small { font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.stage.done { color: var(--ink); border-color: var(--brand); }
.stage[aria-current="step"] { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.stage-done { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 24px; border: 1.5px dashed #D0D0D5; border-radius: 22px; animation: ev-in .4s cubic-bezier(.2, .8, .2, 1) both; }
.stage-done .cicon { width: 56px; height: 56px; border-radius: 16px; }
.stage-done strong { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }
.stage-done p { font-size: 14px; color: var(--sec); }
.stage-done .btn-primary { width: auto; padding: 0 22px; margin-top: 6px; }
.stack { flex: 1; min-height: 0; position: relative; margin: 10px 20px 0; }
.dcard { position: absolute; inset: 0; border-radius: 22px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0,0,0,.10); display: flex; flex-direction: column; touch-action: none; user-select: none; cursor: grab; }
.dcard:active { cursor: grabbing; }
.dcard.next { transform: scale(.95) translateY(10px); opacity: .6; pointer-events: none; transition: transform .3s ease, opacity .3s ease; }
.dcard.anim { transition: transform .3s ease, opacity .3s ease; }
.dcard .photo { flex: 1; min-height: 0; display: block; position: relative; overflow: hidden; }
.dcard .photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
/* Safari só recorta filhos animados com borda arredondada se o cartão tiver a própria camada */
.dcard { isolation: isolate; -webkit-mask-image: -webkit-radial-gradient(white, black); }
.dcard .body { position: relative; z-index: 1; background: var(--surface); }
.dcard .body { flex: none; padding: 12px 16px 14px; display: flex; align-items: center; gap: 12px; }
.cicon { flex: none; width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: var(--surface); display: grid; place-items: center; }
.dcard .body strong { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; line-height: 1.2; }
.stamp { position: absolute; top: 18px; padding: 6px 12px; border: 3px solid var(--ink); border-radius: 10px; background: var(--surface); font-weight: 800; font-size: 15px; letter-spacing: 1.5px; opacity: 0; pointer-events: none; z-index: 2; }
.stamp.yes { left: 18px; transform: rotate(-10deg); }
.stamp.no { right: 18px; transform: rotate(10deg); }
.disc-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 20px; border: 1.5px dashed #D0D0D5; border-radius: 22px; }
.disc-empty strong { font-size: 17px; font-weight: 600; }
.btn-out { min-height: 48px; padding: 0 20px; border: 1px solid #D4D4D9; border-radius: 999px; background: var(--surface); font-size: 15px; font-weight: 600; }
.disc-acts { flex: none; display: flex; justify-content: center; align-items: center; gap: 24px; padding: 12px 20px 14px; }
.round-act { width: 58px; height: 58px; border-radius: 50%; border: 1px solid #D4D4D9; background: var(--surface); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.08); transition: transform .12s; }
.round-act:active { transform: scale(.92); }
.round-act.ok { background: var(--brand); border-color: var(--brand); color: var(--surface); }
.round-act.sm { width: 44px; height: 44px; box-shadow: none; }
.round-act:disabled { opacity: .3; cursor: default; }
.disc-foot { flex: none; padding: 0 20px 28px; }
.disc-acts:last-child { padding-bottom: 28px; }

/* painel de horário: escolher dia e qualquer horário livre de 30 em 30 min */
.when-wrap { position: absolute; inset: 0; z-index: 35; background: rgba(0,0,0,.28); display: flex; align-items: flex-end; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.when-panel { width: 100%; max-height: 88%; overflow-y: auto; background: var(--surface); border-radius: 20px 20px 0 0; padding: 0 20px 30px; display: flex; flex-direction: column; gap: 8px; animation: up .3s cubic-bezier(.2, .8, .2, 1); }
.when-body { display: flex; flex-direction: column; gap: 14px; }
.when-body .day-strip { padding: 0; }
.when-sub { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--sec); margin-top: -6px; }
.when-empty { font-size: 14px; color: var(--sec); padding: 12px 0; }
.sheet-head { display: flex; align-items: center; gap: 4px; min-height: 44px; }
.sheet-head strong { flex: 1; min-width: 0; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.time-win { display: flex; flex-direction: column; gap: 8px; }
.time-win > span { font-size: 13px; font-weight: 600; color: var(--sec); }
.times { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.time-chip { min-height: 42px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; transition: background .15s, border-color .15s, transform .12s; }
.time-chip:not(:disabled):hover { border-color: var(--brand); }
.time-chip:not(:disabled):active { transform: scale(.95); }
.time-chip:disabled { background: var(--fill); border-color: var(--fill); color: #A2A2A8; cursor: default; text-decoration: line-through; }
.time-chip[aria-current="true"] { background: var(--brand); border-color: var(--brand); color: var(--surface); text-decoration: none; }
.fit-list { display: flex; flex-direction: column; }
.fit-row { display: flex; align-items: center; gap: 12px; min-height: 62px; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; padding: 6px 0; }
.fit-row:disabled { opacity: .45; cursor: default; }
.fit-row em { flex: none; font-style: normal; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

.hnav { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hnav-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 5; width: 32px; height: 32px; border: 0; border-radius: 50%; background: var(--surface); box-shadow: 0 2px 8px rgba(0,0,0,.18); display: grid; place-items: center; }
.hnav-btn.l { left: 6px; }
.hnav-btn.r { right: 6px; }

/* apresentação: cartão sendo deslizado */
.illus .swipe-card { transform-box: view-box; transform-origin: 120px 210px; animation: swipe-demo 3.6s ease-in-out infinite; }
@keyframes swipe-demo { 0%, 12%, 50%, 62%, 100% { transform: translateX(0) rotate(0); } 30% { transform: translateX(26px) rotate(10deg); } 80% { transform: translateX(-26px) rotate(-10deg); } }
.toast { position: absolute; left: 16px; right: 16px; bottom: 116px; z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 6px 6px 16px; border-radius: 14px; background: var(--brand); color: var(--surface); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); animation: rise .25s cubic-bezier(.2, .8, .2, 1); }
.toast button { border: 0; background: none; color: var(--surface); font-weight: 600; min-height: 40px; padding: 0 12px; text-decoration: underline; }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
@keyframes up { from { transform: translateY(100%); } }
.text-btn { border: 0; background: none; min-height: 44px; font-size: 15px; font-weight: 600; text-decoration: underline; }

/* ---------- montar na mão ou usar as recomendações ---------- */
.choose { position: absolute; inset: 0; z-index: 26; background: var(--screen); display: flex; flex-direction: column; overflow-y: auto; animation: up .3s cubic-bezier(.2, .8, .2, 1); }
.choose-head { flex: none; padding: var(--safe-top) 12px 0; }
.choose-body { flex: 1 0 auto; display: flex; flex-direction: column; gap: 14px; padding: 12px 20px 34px; }
.choose-body .q-title { padding: 0 4px 10px; }
.choice { position: relative; flex: 1 1 0; min-height: 200px; max-height: 300px; border: 0; padding: 0; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff; text-align: left; display: flex; align-items: flex-end; transition: transform .18s cubic-bezier(.2, .8, .2, 1); -webkit-mask-image: -webkit-radial-gradient(white, black); }
.choice:active { transform: scale(.97); }
.choice img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.choice:hover img { transform: scale(1.04); }
.choice::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0,0) 30%, rgba(0, 0, 0,.78)); }
.choice-tag { position: absolute; top: 16px; left: 16px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.choice-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; padding: 20px; }
.choice-tx strong { font-size: 20px; font-weight: 700; letter-spacing: -0.4px; }
.choice-tx small { font-size: 14px; line-height: 1.35; opacity: .88; }
.choice-go { flex: none; width: 48px; height: 48px; margin: 0 16px 20px 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--brand); }
.choice[data-choose="auto"] .choice-go { background: var(--brand); color: #fff; }

/* roteiro como aba: título grande, botão de escolher no topo e espaço para a barra flutuante */
#plan .tl { padding-bottom: 120px; }

/* ---------- roteiro: linha do tempo com trilho azul, paradas numeradas e cartões com foto ---------- */
#plan { background: var(--surface); }
.tl-head { padding-top: 16px; }
/* agenda e Maps: dois botões redondos ao lado do dia */
#dayCount { display: flex; align-items: center; gap: 6px; }
/* linha fina ligando os pontos das paradas, no lugar da linha de distância */
.ev { position: relative; margin-bottom: 8px; }
.ev:not(.last)::before { content: ""; position: absolute; left: 61px; top: 50%; width: 2px; height: calc(100% + 8px); background: var(--brand-soft); }
.ev { grid-template-columns: 44px 20px minmax(0, 1fr); gap: 8px; }
.ev-time { padding: 0; font-size: 15px; color: var(--ink); }
.ev-time small { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; line-height: 1.2; color: var(--sec); font-variant-numeric: tabular-nums; }
.ev-time small svg { flex: none; }
.ev-time:hover { background: none; color: var(--brand); }
.ev-dot { position: relative; z-index: 1; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; box-shadow: 0 0 0 4px var(--surface), 0 0 0 5px var(--brand-soft); font-variant-numeric: tabular-nums; }
.ev-card { background: var(--surface); border: 1px solid var(--line); padding: 7px 2px 7px 7px; gap: 10px; transition: border-color .2s, transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.ev-card:hover { border-color: var(--brand); box-shadow: 0 8px 20px rgba(17, 17, 17, .10); }
.ev .pph { width: 50px; height: 50px; border-radius: 16px; }
.ev-card .rm { width: 30px; }
.ev-card .handle { width: 22px; }
.ev-card .tx strong { font-size: 15px; }
.ev-card .dist svg { color: var(--brand); }
.ins { margin: 0 0 0 48px; min-height: 30px; }
.ins span { width: 28px; height: 28px; margin-left: 0; border-color: var(--brand-soft); color: var(--brand); }
.ins.end { margin: 12px 0 0; border-color: var(--brand-soft); color: var(--brand); background: var(--surface); }
.ins.end:hover { background: var(--fill); }
.tray { padding: 10px 0 8px; }
.tray-head strong { font-size: 15px; }
.tray-head .link-sm { color: var(--brand); }
.tcard { width: 132px; border-radius: 22px; padding-bottom: 10px; }
.tcard .tph { height: 76px; }
.tcard .tph img { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tcard:hover .tph img { transform: scale(1.06); }
.tcard .dist svg { color: var(--brand); }
.drop-line { margin-left: 80px; }

/* capa da viagem no topo do roteiro */
.trip-hero { position: relative; flex: none; margin: 6px 20px 4px; min-height: 104px; border-radius: 28px; overflow: hidden; isolation: isolate; color: #fff; display: flex; align-items: flex-end; gap: 12px; padding: 16px 18px; -webkit-mask-image: -webkit-radial-gradient(white, black); animation: rise-in .5s cubic-bezier(.2, .8, .2, 1) backwards; }
.trip-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; animation: m-kenburns 12s cubic-bezier(.2, .8, .2, 1) both; }
.trip-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, .05), rgba(0, 0, 0, .62)); }
.th-tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.th-tx strong { font-size: 22px; font-weight: 700; letter-spacing: -0.4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-tx > span { font-size: 13px; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
/* agora na linha do tempo e paradas que já passaram */
.tl-now { position: relative; display: flex; align-items: center; margin: 6px 0 6px 52px; height: 26px; animation: rise-in .5s .2s cubic-bezier(.2, .8, .2, 1) backwards; }
.tl-now::before { content: ""; position: absolute; left: 4px; right: 0; top: 50%; height: 2px; background: var(--brand); border-radius: 2px; }
.tl-now::after { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); animation: now-pulse 2s ease-out infinite; }
@keyframes now-pulse { 0% { box-shadow: 0 0 0 0 rgba(17, 17, 17, .45); } 100% { box-shadow: 0 0 0 10px rgba(17, 17, 17, 0); } }
.tl-now span { position: relative; margin-left: 26px; padding: 4px 12px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.ev.past .ev-card { opacity: .62; }
.ev.past .ev-time { color: var(--sec); }
.ev.past .ev-dot { background: var(--brand-soft); color: var(--brand); }
.ev.live .ev-card { border-color: var(--brand); box-shadow: 0 8px 22px rgba(17, 17, 17, .16); }
.ev.live .ev-dot { animation: now-pulse 2s ease-out infinite; }
.ev-tag { align-self: flex-start; margin-top: 3px; padding: 2px 9px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; }
.ev-tag.done { background: var(--fill); color: var(--brand); }
/* a tela do roteiro rola inteira (capa, dias e linha do tempo juntos), como uma página */
#plan { overflow-y: auto; overscroll-behavior: contain; }
#plan .tl { flex: none; min-height: auto; overflow: visible; }
#plan .tab-head, #plan .trip-hero, #plan .day-strip, #plan .tray, #plan .tl-head { flex: none; }

/* levar para fora: agenda e Google Maps */
.tl-out, .when-out, .rt-out { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 14px; }
.tl-out .pill, .when-out .pill, .rt-out .pill { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 42px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface); text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; white-space: nowrap; }
.tl-out .pill:hover, .when-out .pill:hover, .rt-out .pill:hover { border-color: var(--ink); }
.when-out { margin: 14px 0 4px; justify-content: center; }
.rt-out { margin: 14px 8px 2px; }

/* cartão de deslizar: a foto fica inteira arredondada (em cima e embaixo), com respiro dentro do cartão */
.dcard { padding: 8px 8px 0; }
.dcard .photo { border-radius: 18px; }
/* foto da viagem: limpa, só a cidade e as datas; tocar abre Suas viagens */
.trip-hero { width: calc(100% - 40px); border: 0; text-align: left; font: inherit; cursor: pointer; transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.trip-hero:active { transform: scale(.98); }
/* chips dos dias com o clima de cada dia */
.day-chip.temp small { display: inline-flex; align-items: center; justify-content: center; gap: 3px; font-variant-numeric: tabular-nums; }
.day-chip.temp small svg { flex: none; }
/* suas viagens */
.trips-body { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 24px; overflow-y: auto; }
/* dias da viagem: os chips dividem a largura toda (com muitos dias, rolam para o lado) */
.day-strip .day-chip { flex: 1 0 70px; width: auto; }
/* topo do roteiro com mais respiro até a foto */
#plan .tab-head { padding-top: calc(var(--safe-top) + 12px); padding-bottom: 14px; }
/* linha do tempo com mais respiro: bolinhas numeradas maiores e um pouco mais de espaço entre os cartões */
.ev { grid-template-columns: 44px 26px minmax(0, 1fr); margin-bottom: 12px; }
.ev-dot { width: 26px; height: 26px; font-size: 13px; }
.ev:not(.last)::before { left: 64px; height: calc(100% + 12px); }
/* rota no Maps de onde a pessoa está até a parada */
.ev-go { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: none; display: grid; place-items: center; transition: border-color .2s, transform .15s; }
.ev-go svg { width: 16px; height: 16px; }
.ev-go:hover { background: var(--fill); }
.ev-go:active { transform: scale(.9); }
/* ⋮ no cartão: toque abre as opções, arrastar muda a ordem */
.ev-more { flex: none; width: 32px; height: 44px; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--sec); display: grid; place-items: center; cursor: grab; touch-action: none; }
.ev-more:hover, .ev-more[aria-expanded] { color: var(--ink); background: var(--fill); }
/* menu do ⋮ */
.ev-pop { position: fixed; z-index: 4000; min-width: 190px; padding: 6px; border-radius: 22px; background: var(--surface); box-shadow: 0 8px 24px rgba(0,0,0,.18); display: flex; flex-direction: column; animation: pop-in .2s cubic-bezier(.34, 1.56, .64, 1); }
.ev-pop button { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 0; border-radius: 999px; background: none; color: var(--ink); font-size: 15px; font-weight: 500; text-align: left; }
.ev-pop button:hover, .ev-pop button:focus-visible { background: var(--fill); }
.ev-pop button svg { flex: none; color: var(--sec); }
/* arrastar o cartão: a foto não pode ser arrastada sozinha pelo navegador (isso cancelava o gesto no mouse) */
.dcard, .dcard * { -webkit-user-drag: none; user-select: none; -webkit-user-select: none; }
.dcard { touch-action: none; cursor: grab; }
.dcard img { pointer-events: none; }

/* ---------- parceiros (modelo de negócio): selo, cartão na linha do tempo e oferta ---------- */
.pt-tag { display: inline-flex; align-items: center; gap: 4px; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pt-tag svg { flex: none; }
.ev-card .pt-tag { margin-top: 3px; }
.pt-card { display: grid; grid-template-columns: 44px 20px minmax(0, 1fr); gap: 8px; margin: 6px 0 10px; animation: rise-in .45s cubic-bezier(.2, .8, .2, 1) backwards; }
.pt-time { grid-column: 1; align-self: start; padding-top: 14px; font-size: 15px; font-weight: 700; color: var(--sec); font-variant-numeric: tabular-nums; }
.pt-box { grid-column: 3; border: 1.5px dashed var(--ink); border-radius: 22px; padding: 12px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.pt-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-head > span:last-child { font-size: 12px; color: var(--sec); }
.pt-body { display: flex; align-items: center; gap: 12px; }
.pt-ph { flex: none; width: 56px; height: 56px; border-radius: 16px; overflow: hidden; background: var(--fill); display: grid; place-items: center; }
.pt-ph img { width: 100%; height: 100%; object-fit: cover; }
.pt-body .tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-body strong { font-size: 15px; font-weight: 700; }
.pt-body small { font-size: 12px; color: var(--sec); }
.pt-offer { font-style: normal; font-size: 13px; font-weight: 600; color: var(--ink); }
.pt-acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-acts .btn-primary.sm { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; font-size: 14px; width: auto; }
.pt-why { font-size: 11px; color: var(--sec); }
.map-tl .pt-card { grid-template-columns: 44px 20px minmax(0, 1fr); }
.now-card .pt-tag { margin-top: 4px; }
.pt-offerbox { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 16px; background: var(--fill); }
.pt-offerbox strong { font-size: 15px; }
.pt-offerbox small { font-size: 12px; color: var(--sec); }
.sv-row .pt-tag { flex: none; }
.sv-row .pt-tag { align-self: center; }
.dc-offer { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 3px; flex-wrap: wrap; }
