/* Mapa do Turista - Prefeitura de Florianópolis */

.mt-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    font-family: "Outfit", system-ui, sans-serif;
    color: #1e293b;
}

.mt-cabecalho h1 {
    font-size: 1.9rem;
    font-weight: 700;
    color: #0f3d6e;
    margin: 0 0 6px;
}
.mt-cabecalho h1 i { color: #0284c7; margin-right: 6px; }
.mt-cabecalho p { margin: 0 0 20px; color: #475569; font-size: 1.05rem; }

.mt-layout {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 16px;
    height: 640px;
}

/* ---------- Painel ---------- */

.mt-painel {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    overflow-y: auto;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .06);
}
.mt-painel::-webkit-scrollbar { width: 6px; }
.mt-painel::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }

.mt-busca {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    margin-bottom: 12px;
}
.mt-busca i { color: #94a3b8; }
.mt-busca input {
    flex: 1;
    border: 0;
    outline: 0;
    padding: 10px 0;
    font-size: .95rem;
    background: transparent;
}
.mt-busca:focus-within { border-color: #0284c7; box-shadow: 0 0 0 3px rgba(2, 132, 199, .15); }

.mt-filtros { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.mt-chip {
    --cor: #0f3d6e;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #334155;
    border-radius: 999px;
    padding: 5px 11px;
    font-size: .82rem;
    cursor: pointer;
}
.mt-chip i { color: var(--cor); }
.mt-chip--ativo { background: var(--cor); border-color: var(--cor); color: #fff; }
.mt-chip--ativo i { color: #fff; }

.mt-select {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 9px 10px;
    font-size: .95rem;
    background: #fff;
    margin-bottom: 12px;
}

.mt-lista { list-style: none; margin: 0; padding: 0; }
.mt-lista li + li { border-top: 1px solid #f1f5f9; }
.mt-lista button {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    padding: 10px 6px;
    border-radius: 8px;
    cursor: pointer;
}
.mt-lista button:hover, .mt-lista button:focus-visible { background: #f1f5f9; }
.mt-lista strong { display: block; font-weight: 600; font-size: .95rem; }
.mt-lista small { color: #64748b; font-size: .8rem; }
.mt-lista-icone {
    flex: 0 0 34px;
    height: 34px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: .85rem;
}
.mt-vazio { color: #64748b; padding: 12px 4px; }

/* ---------- Detalhe ---------- */

.mt-voltar {
    background: none;
    border: 0;
    color: #0284c7;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 12px;
}
.mt-tag {
    display: inline-block;
    color: #fff;
    font-size: .75rem;
    border-radius: 999px;
    padding: 3px 10px;
}
.mt-detalhe h2 { font-size: 1.35rem; font-weight: 700; margin: 8px 0 4px; color: #0f3d6e; }
.mt-detalhe p { margin: 0 0 10px; line-height: 1.5; color: #334155; }
.mt-regiao-txt { color: #64748b !important; font-size: .9rem; }
.mt-terminal {
    background: #eff6ff;
    border-radius: 8px;
    padding: 8px 10px;
    font-size: .9rem;
}
.mt-terminal i { color: #1d4ed8; }

.mt-como-chegar {
    border-top: 1px solid #e2e8f0;
    margin-top: 14px;
    padding-top: 14px;
}
.mt-como-chegar h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 10px; }
.mt-como-chegar label { display: block; font-size: .85rem; color: #475569; margin-bottom: 4px; }
.mt-dica { font-size: .85rem; color: #b45309; background: #fffbeb; border-radius: 8px; padding: 8px 10px; margin: -4px 0 12px; }

.mt-botao {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    background: #0f3d6e;
    color: #fff;
    border: 0;
    border-radius: 10px;
    padding: 11px;
    font-weight: 600;
    font-size: .95rem;
    cursor: pointer;
    text-decoration: none;
}
.mt-botao:hover { background: #0b2f55; color: #fff; }
.mt-botao--google { background: #1a73e8; margin-top: 12px; }
.mt-botao--google:hover { background: #1557b0; }

/* ---------- Rota ---------- */

.mt-rota { margin-top: 14px; }
.mt-carregando { color: #475569; }
.mt-erro { color: #b91c1c; background: #fef2f2; border-radius: 8px; padding: 8px 10px; font-size: .9rem; }
.mt-total { margin: 0 0 10px; }

.mt-opcoes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.mt-opcao {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 10px;
    cursor: pointer;
    text-align: left;
}
.mt-opcao strong { margin-right: 4px; }
.mt-opcao--ativa { border-color: #0284c7; box-shadow: 0 0 0 2px rgba(2, 132, 199, .25); }

.mt-linha {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 6px;
    padding: 2px 8px;
    font-weight: 700;
    font-size: .85rem;
    white-space: nowrap;
}
.mt-nome-linha { font-size: .85rem; color: #334155; }

.mt-passos { list-style: none; margin: 0; padding: 0; position: relative; }
.mt-passos li {
    display: flex;
    gap: 12px;
    padding: 0 0 14px;
    position: relative;
}
.mt-passos li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 13px;
    top: 28px;
    bottom: 2px;
    border-left: 2px dashed #cbd5e1;
}
.mt-passos li > i {
    flex: 0 0 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #f1f5f9;
    color: #475569;
    font-size: .85rem;
}
.mt-passo-onibus > i { background: #dbeafe !important; color: #1d4ed8 !important; }
.mt-passo-fim > i { background: #dcfce7 !important; color: #15803d !important; }
.mt-passos div { font-size: .92rem; line-height: 1.45; padding-top: 3px; }
.mt-passos small { display: block; color: #64748b; font-size: .82rem; margin-top: 2px; }

.mt-link-externo { display: inline-block; margin-top: 4px; font-size: .88rem; color: #1a73e8; }

/* ---------- Mapa ---------- */

.mt-mapa-wrap { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid #e2e8f0; }
.mt-mapa { width: 100%; height: 100%; }
.mt-mapa[hidden] { display: none; }
.mt-mapa--escolhendo { cursor: crosshair; }
.mt-mapa--escolhendo .leaflet-grab { cursor: crosshair; }

.mt-pin { background: none; border: 0; }
.mt-pin span {
    width: 34px;
    height: 34px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: grid;
    place-items: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .35);
}
.mt-pin i { transform: rotate(45deg); color: #fff; font-size: 14px; }
.mt-pin--ativo span { outline: 3px solid #facc15; outline-offset: 1px; }
.mt-pin--ativo { z-index: 1000 !important; }

.mt-aviso { font-size: .82rem; color: #64748b; margin-top: 12px; }
.mt-aviso a { color: #0284c7; }

/* ---------- Celular ---------- */

@media (max-width: 860px) {
    .mt-layout {
        grid-template-columns: 1fr;
        grid-template-rows: 55vh auto;
        height: auto;
    }
    .mt-mapa-wrap { grid-row: 1; min-height: 55vh; }
    .mt-painel { grid-row: 2; overflow: visible; }
    .mt-cabecalho h1 { font-size: 1.5rem; }
}
