.fav-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #94a3b8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    flex: 0 0 auto;
}

.fav-btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.fav-btn.is-on {
    color: #e11d48;
    background: #fff1f2;
    border-color: #fecdd3;
}

.fav-btn.is-on svg {
    fill: currentColor;
}

.fav-btn:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.fav-voo {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 28px;
    height: 28px;
    color: #e11d48;
    pointer-events: none;
}

.fav-voo svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
    stroke: currentColor;
    filter: drop-shadow(0 4px 8px rgba(225, 29, 72, .35));
}

.fav-aviso {
    position: fixed;
    z-index: 10001;
    left: 50%;
    top: 76px;
    transform: translateX(-50%) translateY(-8px);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
    padding: 10px 14px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    font: 600 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    text-decoration: none;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .22);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.fav-aviso svg {
    width: 16px;
    height: 16px;
    fill: #fb7185;
    stroke: #fb7185;
    flex: 0 0 auto;
}

.fav-aviso.is-on {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
}

.fav-aviso.is-saiu svg {
    fill: none;
}

.fav-alvo-pulso {
    animation: fav-pulso .55s ease;
}

@keyframes fav-pulso {
    0%, 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); }
    45% { box-shadow: 0 0 0 6px rgba(225, 29, 72, .28); }
}

@media (prefers-reduced-motion: reduce) {
    .fav-voo { display: none; }
    .fav-aviso,
    .fav-alvo-pulso { transition: none; animation: none; }
}

.card-fav-wrap {
    position: relative;
    min-width: 0;
    display: flex;
}

/* O card precisa continuar sendo um bloco que preenche a coluna.
   Dentro do invólucro do coração, a âncora voltava a ser inline e
   perdia a caixa branca, a borda e o recorte da foto. */
.card-fav-wrap > .card {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.card-fav-wrap > .fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.fav-titulo {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.fav-titulo h1,
.fav-titulo h2 {
    margin-top: 0;
    flex: 1;
    min-width: 0;
}

.meu-roteiro {
    padding-bottom: 48px;
}

.meu-roteiro h2 {
    margin: 0 0 8px;
}

.meu-roteiro .intro {
    color: #475569;
    margin: 0 0 20px;
}

.meu-grupo {
    margin: 0 0 22px;
}

.meu-grupo h3 {
    margin: 0 0 10px;
    font-size: 16px;
}

.meu-lista,
.dia-lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.meu-item,
.dia-item {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    align-items: center;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 10px;
}

.meu-item img,
.dia-item img,
.meu-item .sem-foto,
.dia-item .sem-foto {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 10px;
    background: #f1f5f9;
    display: grid;
    place-items: center;
    color: #94a3b8;
    font-size: 12px;
}

.meu-item h4,
.dia-item h4 {
    margin: 0 0 4px;
    font-size: 15px;
}

.meu-item h4 a,
.dia-item h4 a {
    color: inherit;
    text-decoration: none;
}

.meu-item h4 a:hover,
.dia-item h4 a:hover {
    text-decoration: underline;
}

.meu-texto {
    min-width: 0;
}

.meu-resumo,
.meu-vazio {
    margin: 0 0 14px;
    color: #475569;
}

.meu-contagem {
    display: inline-block;
    min-width: 1.4em;
    padding: 0 6px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    vertical-align: 1px;
}

.endereco {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.lista-escolhidos {
    margin-top: 28px;
    border-top: 1px solid #e5e7eb;
    padding-top: 4px;
}

.lista-escolhidos summary {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
    cursor: pointer;
    font-size: 1.15rem;
    font-weight: 700;
    list-style: none;
}

.lista-escolhidos summary::-webkit-details-marker {
    display: none;
}

.lista-escolhidos summary::before {
    content: "";
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-45deg);
    margin: 0 6px 2px 2px;
}

.lista-escolhidos[open] summary::before {
    transform: rotate(45deg);
    margin-top: -2px;
}

.btn-tirar {
    color: #9f1239;
    background: #fff;
}

.btn-icone {
    width: 36px;
    padding-left: 0;
    padding-right: 0;
    text-align: center;
}

.organizar-box .opcional {
    font-weight: 500;
    color: #64748b;
}

.organizar-box > p {
    margin: 0 0 14px;
    color: #475569;
    font-size: 14px;
}

.btn-organizar:disabled {
    opacity: .45;
    cursor: not-allowed;
}

.meu-item p,
.dia-item p,
.meu-aviso,
.meu-meta {
    margin: 0;
    color: #64748b;
    font-size: 13px;
}

#bloco-plano > .meu-meta,
#bloco-plano > .meu-aviso {
    margin: 0 0 8px;
}

.meu-aviso {
    color: #9a3412;
}

.meu-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: flex-end;
}

.meu-acoes button,
.meu-acoes a,
.btn-sec,
.btn-organizar {
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    color: #111827;
    padding: 8px 12px;
    font: 600 13px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    text-decoration: none;
    cursor: pointer;
}

.btn-organizar {
    background: #111827;
    color: #fff;
    border-color: #111827;
    padding: 14px 22px;
    font-size: 15px;
    min-height: 46px;
}

.organizar-box {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 18px;
    margin: 0 0 22px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.organizar-box form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: flex-end;
}

.organizar-box label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
}

.organizar-box input,
.organizar-box select {
    font: 500 14px/1.2 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    background: #fff;
}

.dia-bloco {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px 14px 8px;
    margin: 0 0 14px;
}

.dia-bloco h3 {
    margin: 0 0 10px;
    font-size: 18px;
}

.viagem-pronta {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 16px;
    padding: 18px;
    margin: 0 0 18px;
}

.viagem-pronta h2 {
    margin: 0 0 8px;
}

.viagem-acoes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.viagem-acoes a,
.viagem-acoes button {
    border-radius: 999px;
    padding: 10px 14px;
    font: 600 14px/1 system-ui, -apple-system, Segoe UI, Roboto, Arial;
    text-decoration: none;
    cursor: pointer;
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
}

.viagem-acoes .btn-sec {
    background: #fff;
    color: #111827;
}

.meu-item.is-dragging,
.dia-item.is-dragging {
    opacity: .55;
}

.compartilha-box {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.compartilha-box input {
    flex: 1 1 220px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 10px;
    font: 500 14px/1.3 system-ui, -apple-system, Segoe UI, Roboto, Arial;
}

@media (max-width: 700px) {
    .meu-item,
    .dia-item {
        grid-template-columns: 64px 1fr;
    }

    .meu-acoes {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

.card-lista .thumb {
    position: relative;
}

.card-lista .thumb > .fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .12);
}

.card-lista .card-actions .fav-btn,
.m360-panel-actions .fav-btn {
    flex: 0 0 auto;
}
