/* Plugin CEP no Chamado — Estilos (com mapa Leaflet) */

/* ─── Widget padrão (formulário técnico) ─────────────────────────────────── */

.cep-standard-widget .form-control {
    max-width: 140px;
}

.cep-spinner {
    display: inline-block;
    vertical-align: middle;
    margin-right: 4px;
}

.cep-address-preview {
    padding: 4px 8px;
    background: var(--tblr-bg-surface-tertiary, #f5f7fa);
    border-left: 3px solid var(--tblr-primary, #0070e0);
    border-radius: 0 4px 4px 0;
    max-width: 480px;
}

/* ─── Form Builder helper  ────────────────────────────────────────────────── */

.cep-fb-helper {
    min-height: 18px;
    font-size: .84rem;
}

.cep-fb-success {
    display: block;
    padding: 6px 10px;
    background: var(--tblr-success-lt, #d3f9da);
    border-left: 3px solid var(--tblr-success, #2fb344);
    border-radius: 0 6px 6px 0;
    color: var(--tblr-success-dark, #1a6b2e);
    line-height: 1.5;
}

.cep-coords {
    display: inline-block;
    font-size: .78rem;
    opacity: .7;
    margin-left: 6px;
}

/* ─── Mapa Leaflet ────────────────────────────────────────────────────────── */

.cep-map-container {
    margin-top: 10px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--tblr-border-color, #dce0e6);
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.cep-map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 12px;
    background: var(--tblr-bg-surface-secondary, #f1f3f5);
    border-bottom: 1px solid var(--tblr-border-color, #dce0e6);
    font-size: .8rem;
    color: var(--tblr-secondary, #656d77);
    gap: 8px;
}

.cep-map-header span {
    font-weight: 600;
    color: var(--tblr-body-color, #232323);
}

.cep-map-header small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 70%;
}

.cep-map-inner {
    height: 220px;
    width: 100%;
}

/* Pino customizado (emoji) */
.cep-map-pin {
    background: transparent !important;
    border: none !important;
}

/* Animação de entrada do mapa */
.cep-map-container {
    animation: cep-fadein .3s ease;
}

@keyframes cep-fadein {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ─── Correção de altura do marcador Leaflet personalizado ───────────────── */
.cep-ticket-marker,
.cep-cluster-icon {
    background: none !important;
    border: none !important;
}

/* Garantir que o mapa da página mapview não seja ocultado por overflow */
.cep-mapview-page #cep-map {
    display: block;
}
