/* ===================================================
   ITEM 44: PERFIL DE TERRENO (POC POÁ) — ADR-293
   Painel flutuante no padrão da janela do Street View (item 58):
   tokens --millenio-* do main.css, cabeçalho verde institucional.
   =================================================== */

.inmap-tp-panel {
    position: fixed;
    left: 50%;
    bottom: 30px;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 40px));
    height: 340px;
    max-height: calc(100vh - 80px);
    background: var(--millenio-white, #fff);
    font-family: var(--millenio-font-family, inherit);
    border: 1px solid var(--millenio-gray-border, #ddd);
    border-radius: 8px;
    box-shadow: 0 14px 38px rgba(0, 0, 0, 0.32), 0 3px 10px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 1050;
    box-sizing: border-box;
}

.inmap-tp-header {
    background: var(--millenio-green, #00623e);
    color: var(--millenio-white, #fff);
    border-bottom: 2px solid var(--millenio-green-hover, #004d31);
    height: 48px;
    padding: 0 8px 0 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.inmap-tp-title {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: var(--millenio-font-sm, 13px);
    font-weight: 600;
}
.inmap-tp-title i { margin-right: 6px; }

.inmap-tp-source {
    max-width: 240px;
    height: 30px;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--millenio-white, #fff);
    font-size: 12px;
}
.inmap-tp-source option { color: #333; }

.inmap-tp-btn-close {
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--millenio-white, #fff);
    opacity: 0.85;
    cursor: pointer;
    font-size: 16px;
}
.inmap-tp-btn-close:hover { opacity: 1; background: rgba(255, 255, 255, 0.15); }

/* Resumo: uma linha de números */
.inmap-tp-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 18px;
    padding: 8px 16px 4px;
    font-size: 12px;
    flex-shrink: 0;
}
.inmap-tp-summary:empty { display: none; }
.inmap-tp-summary span { display: flex; flex-direction: column; }
.inmap-tp-summary small { color: var(--millenio-text-muted, #777); font-size: 11px; }
.inmap-tp-summary b { color: var(--millenio-text-dark, #333); font-size: 13px; }

.inmap-tp-chart {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    padding: 4px 16px 0;
}
.inmap-tp-chart canvas { width: 100% !important; height: 100% !important; }

.inmap-tp-msg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 24px;
    text-align: center;
    color: var(--millenio-text-muted, #777);
    font-size: 13px;
}

.inmap-tp-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px 16px 10px;
    border-top: 1px solid var(--millenio-gray-border, #eee);
    flex-shrink: 0;
}

.inmap-tp-btn {
    height: 32px;
    padding: 0 12px;
    border: 1px solid var(--millenio-green, #00623e);
    border-radius: 4px;
    background: var(--millenio-white, #fff);
    color: var(--millenio-green, #00623e);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}
.inmap-tp-btn:hover { background: var(--millenio-green, #00623e); color: var(--millenio-white, #fff); }

@media (max-width: 600px) {
    .inmap-tp-panel { bottom: 10px; height: 300px; }
    .inmap-tp-source { max-width: 130px; }
}
