﻿/* --- 5. CONTAINER VISUAL (MAPA E ZOOM IMAGEM) --- */
.map-container {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;
    border: 3px solid #333 !important;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    display: block !important;
    background-color: #f8f9fa;
}

/* Garante que Mapa e Imagem Zoom ocupem 100% da moldura */
#map, #image-zoom-container {
    height: 100% !important;
    width: 100% !important;
    min-height: 500px;
}

#image-zoom-container {
    outline: none;
    cursor: grab;
}

    #image-zoom-container:active {
        cursor: grabbing;
    }

.leaflet-control-zoom {
    border: 2px solid rgba(0,0,0,0.2) !important;
}




/* Container do ícone (Remove fundos padrão do Leaflet) */
.custom-div-icon {
    background: none !important;
    border: none !important;
}

/* O corpo do pino (Formato de Gota Arredondada) */
.marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    position: absolute;
    transform: rotate(-45deg); 
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    border: 2px solid #FFFFFF;
    box-shadow: 0 2px 5px rgba(0,0,0,0.4);
    transition: all 0.3s ease;
}

    /* O ponto branco central (Estilo Profissional) */
    .marker-pin::after {
        content: '';
        width: 10px;
        height: 10px;
        margin: 8px 0 0 8px;
        background: #FFFFFF;
        position: absolute;
        border-radius: 50%;
    }

/* Estilo do Popup Interno (Cantos Arredondados) */
.rounded-popup .leaflet-popup-content-wrapper {
    border-radius: 15px;
    padding: 5px;
}

.custom-popup {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 4px;
    padding: 5px;
}

.label-top {
    font-weight: bold;
    font-size: 14px;
    color: #333;
    display: block;
}

.label-sub {
    font-size: 11px;
    color: #666;
    display: block;
    margin-bottom: 5px;
}

.btn-popup {
    width: 100%;
    padding: 6px 12px;
    background: #03173d;
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: bold;
}

/* Botão que flutua sobre a imagem  VOLTAr para Mapa*/
.btn-voltar-mapa {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 1000; /* Garante que fique acima do Leaflet */
    background-color: rgba(3, 23, 61, 0.85); /* Azul escuro com transparência */
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 25px;
    padding: 8px 18px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(4px); /* Efeito de vidro borrado */
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-voltar-mapa:hover {
        background-color: rgb(5, 42, 109);
        transform: translateY(-2px);
    }

    .btn-voltar-mapa:active {
        transform: translateY(0);
    }