/* =====================================================================
   KONTAKO — mapas dos Pontos Kontako (loja e back office)
   ===================================================================== */
.k-mapa-canvas { width: 100%; height: 100%; min-height: 220px; background: #EFE7DF; border-radius: inherit; }
.k-mapa-falha { display: flex; align-items: center; justify-content: center; text-align: center; padding: 1.5rem; color: #6E5D53; font-size: .92rem;
    background: repeating-linear-gradient(135deg, #F7F3EF 0 14px, #F1EAE3 14px 28px); }
.k-mapa-falha p { margin: 0; max-width: 34ch; }

/* ---------- bloco "Pontos" na loja ---------- */
.k-pontos { display: grid; gap: 14px; }
.k-pontos-mapa { position: relative; height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid #E7DED6; cursor: zoom-in; }
.k-pontos[data-clique-amplia="0"] .k-pontos-mapa { cursor: default; }
.k-pontos-grande .k-pontos-mapa { height: min(62vh, 520px); }
.k-pontos-mapa:focus-visible { outline: 3px solid #F68923; outline-offset: 2px; }
.k-pontos-ampliar { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
    background: #fff; color: #4E2510; border: 0; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: .88rem;
    box-shadow: 0 2px 10px rgba(36, 21, 14, .2); cursor: pointer; }
.k-pontos-ampliar svg { width: 16px; height: 16px; }
.k-mapa-sem-mapa .k-pontos-ampliar { display: none; }
.k-mapa-sem-mapa .k-pontos-mapa { height: auto; cursor: default; }
.k-mapa-sem-mapa .k-mapa-canvas { min-height: 0; }
.k-pontos-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.k-pontos-barra p { margin: 0; color: #6E5D53; font-size: .9rem; }
.k-mapa-perto { display: inline-flex; align-items: center; gap: 6px; border: 2px solid #4E2510; background: #fff; color: #4E2510;
    border-radius: 8px; padding: 7px 12px; font-weight: 600; font-size: .9rem; min-height: 40px; cursor: pointer; }
.k-mapa-perto:hover { background: #FFF3E6; }

.k-pontos-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.k-ponto { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 14px;
    border: 1px solid #E7DED6; border-radius: 12px; background: #fff; }
.k-ponto-pin { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; box-shadow: 0 0 0 3px rgba(246, 137, 35, .15); }
.k-ponto-txt { display: grid; gap: 1px; min-width: 0; }
.k-ponto-txt strong { color: #24150E; }
.k-ponto-txt span { color: #6E5D53; font-size: .88rem; }
.k-ponto-accoes { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: .88rem; }
.k-ponto-accoes a, .k-ponto-accoes button { color: #4E2510; font-weight: 600; background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.k-ponto-dist { font-family: 'Saira', system-ui, sans-serif; font-weight: 700; color: #24150E; font-size: 1rem; }
.k-ponto-perto { border-color: #F68923; box-shadow: 0 0 0 1px #F68923 inset; }
.k-ponto-perto .k-ponto-txt strong::after { content: "Mais perto"; margin-left: 8px; font-size: .72rem; font-weight: 700; color: #8A4A0A;
    background: #FFF3E6; border-radius: 999px; padding: 2px 8px; vertical-align: 2px; }
.k-ponto-escolhido { border-color: #2E7D4F; background: #F3FAF5; }
.k-ponto-accoes .k-mapa-escolher { text-decoration: none; background: #4E2510; color: #fff; border-radius: 6px; padding: 5px 10px; }
.k-ponto-escolhido .k-mapa-escolher { background: #2E7D4F; }
.k-pontos-vazio { color: #6E5D53; padding: 8px 0; }
@media (max-width: 575.98px) {
    .k-ponto { grid-template-columns: 14px minmax(0, 1fr); }
    .k-ponto-accoes { grid-column: 2; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 14px; }
}

/* ---------- janela do mapa (InfoWindow) ---------- */
.k-mapa-info { display: grid; gap: 2px; font: 14px/1.4 system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #24150E; max-width: 240px; }
.k-mapa-info strong { font-size: 15px; }
.k-mapa-info span { color: #6E5D53; }
.k-mapa-info .k-mapa-info-tipo { color: #8A4A0A; font-weight: 600; font-size: 12px; }
.k-mapa-info .k-mapa-info-dist { color: #24150E; font-weight: 700; }
.k-mapa-info-accoes { display: flex; gap: 12px; align-items: center; margin-top: 6px; }
.k-mapa-info-accoes a { color: #4E2510; font-weight: 600; }
.k-mapa-info-accoes button { background: #4E2510; color: #fff; border: 0; border-radius: 6px; padding: 6px 10px; font-weight: 600; cursor: pointer; }

/* ---------- mapa ampliado ---------- */
html.k-sem-scroll { overflow: hidden; }
.k-mapa-dlg { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: #fff; color: #24150E; }
.k-mapa-dlg[open] { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.k-mapa-dlg::backdrop { background: rgba(36, 21, 14, .5); }
.k-mapa-dlg-cab { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid #E7DED6; background: #4E2510; color: #fff; }
.k-mapa-dlg-cab h2 { flex: 1; margin: 0; font-size: 1.1rem; color: #fff; font-family: 'Saira', system-ui, sans-serif; }
.k-mapa-dlg-cab .k-mapa-perto { border-color: #F68923; background: #F68923; color: #24150E; }
.k-txt-curto { display: none; }
.k-mapa-fechar { border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; border-radius: 8px; padding: 7px 12px; font-weight: 600; min-height: 40px; cursor: pointer; }
.k-mapa-dlg-corpo { display: grid; grid-template-columns: minmax(0, 1fr) 380px; min-height: 0; }
.k-mapa-dlg-mapa { position: relative; min-height: 0; }
.k-mapa-dlg-mapa .k-mapa-canvas { position: absolute; inset: 0; border-radius: 0; }
.k-mapa-dlg-lado { overflow: auto; padding: 14px; border-left: 1px solid #E7DED6; background: #F7F3EF; }
.k-mapa-dlg-estado { margin: 0 0 10px; font-size: .9rem; color: #6E5D53; }
.k-mapa-dlg-legenda { display: flex; gap: 16px; padding: 8px 16px; font-size: .82rem; color: #6E5D53; border-top: 1px solid #E7DED6; }
.k-mapa-dlg-legenda i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
@media (max-width: 767.98px) {
    .k-mapa-dlg-corpo { grid-template-columns: 1fr; grid-template-rows: 55% 45%; }
    .k-mapa-dlg-lado { border-left: 0; border-top: 1px solid #E7DED6; }
    .k-mapa-dlg-cab { padding: 8px 12px; gap: 8px; }
    .k-mapa-dlg-cab h2 { font-size: 1rem; line-height: 1.2; }
    .k-mapa-dlg-cab .k-mapa-perto { padding: 6px 10px; font-size: .85rem; white-space: nowrap; }
    .k-mapa-dlg-cab .k-txt-longo { display: none; }
    .k-mapa-dlg-cab .k-txt-curto { display: inline; }
}

/* ---------- marcar localização (formulários) ---------- */
.k-local { display: grid; gap: 10px; }
.k-local-mapa { height: 340px; border-radius: 12px; overflow: hidden; border: 1px solid #E7DED6; }
.k-local-barra { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.k-local-barra p { margin: 0; font-size: .88rem; color: #6E5D53; }
