﻿
#mapContainer {
    overflow: hidden;
    position: relative;
    background: #fff;
    border: #adc3d8 1px solid;
    height: 65vh;
    width: 100%;
    background: radial-gradient(circle, rgba(201, 201, 201, 1) 0%, rgba(232, 232, 232, 1) 50%);
}

#mapContainerReg {
    width: 100%;
    position: relative;
    height: auto;
}

    #mapContainerReg svg {
        cursor: default;
    }

svg {
    cursor: grab;
    width: 100%;
    height: 100%;
}

path {
    cursor: default;
}

    path:focus {
        outline: none;
    }

.hover-effect {
    fill: #b3cee0 !important;
    transition: fill 0.3s;
}

.zoom {
    position: absolute;
    margin-top: -60px;
    right: 60px;
}

    .zoom button {
        padding: 12px;
    }

.btn:disabled {
    opacity: 0.4;
}

.info_otras {
    position: absolute;
    width: fit-content;
    border: 1px solid #eaeaea;
    color: #4286da;
    text-align: left;
    border-radius: 0px;
    padding: 6px 10px;
    font-size: 14px;
    background: #fbfbfb;
    bottom: 12px;
    left: 12px;
}

#tooltip {
    position: absolute;
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    padding: 6px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    border: 1px solid #ccc;
    min-width: 180px;
    max-width: 250px;
    z-index: 9999;
    transform: translate(-50%, -100%);
}

#tooltipReg {
    margin-left: -380px;
    margin-top: -220px;
}

#tooltipReg {
    position: absolute;
    display: none;
    background-color: rgba(255, 255, 255, 0.8);
    color: #000;
    padding: 6px;
    border-radius: 8px;
    font-size: 12px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    pointer-events: none;
    border: 1px solid #ccc;
    min-width: 180px;
    max-width: 250px;
    transform: translate(-50%,-100%);
}

    #tooltip table, #tooltipReg table {
        width: 100%;
        border-collapse: collapse;
    }

    #tooltip th, #tooltip td, #tooltipReg th, #tooltipReg td {
        padding: 4px;
        text-align: left;
    }

    #tooltip th, #tooltipReg th {
        font-weight: bold;
        background-color: #f7f7f7;
        text-align: center;
        color: #0f69c4;
    }

    #tooltip td, #tooltipReg td {
        border-top: 1px solid #ddd;
        text-align: center;
    }


.list-group.custom-scrollbar {
    overflow: auto;
    max-height: 65vh;
}

.list-group a {
    display: block;
    width: 100%;
    color: #777;
    text-decoration: none;
    border-bottom: 1px solid #d0d0d077;
    padding: 6px 0 6px 6px;
}

    .list-group a:hover {
        color: #0f69c4;
        background: #f8f8f8;
    }

    .list-group a:first-of-type {
        border-top: 1px dotted #7777;
    }

a.listado {
    display: block;
    width: 100%;
    color: #777;
    text-decoration: none;
    border-bottom: 1px dotted #777;
    padding: 6px 0 6px 0;
}

#regionRecordsDiv {
    position: absolute;
    top: 34px;
    left: 320px;
    border-radius: 3px;
    padding: 4px;
    background-color: #fff;
    -webkit-box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 99;
    width: 140px;
}

/*    #regionRecordsDiv::before {
        content: "";
        position: absolute;
        top: 20px;
        left: -20px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent #fff transparent transparent;
    }*/

span.regtot {
    font-size: 10px;
    display: block;
    padding: 4px;
    color: #0f69c4;
    text-transform: uppercase;
    border-bottom: 1px solid #ccc;
    text-align: center;
    font-weight: 600;
}

#regionRecords {
    font-size: 24px;
    color: #474747;
    display: block;
    text-align: center;
    line-height: 1;
    padding: 4px;
    font-family: 'Roboto';
}


/* Estilo para hacer que el modal ocupe el 90% de la altura de la ventana */
/*.modal-90h {
    height: 90vh;
}

.modal-body iframe {
    height: 100%;
}

.modal-content {
    height: 100%;
}*/
@media (max-width: 1200px) {
    #regionRecordsDiv {
        left: 240px;
    }
}

@media (max-width: 992px) {
    .modal-lg, .modal-xl {
        --bs-modal-width: 800px;
    }
}

@media (max-height: 714px) {
    #mapContainer {
        height: 65vh;
    }

    .modal-footer {
        display: none;
    }
}

@media (max-width: 768px) {
    .modal-body {
        padding-top: 4px;
    }

    .modal-header {
        margin-bottom: 0px;
    }

    #mapContainerReg {
        overflow: scroll;
    }

    div#mapContainer1 {
        margin-top: -14px;
    }

    svg {
        width: 800px;
    }

    .list-group {
        display: none;
    }

    #tooltip {
        margin-left: -100px;
    }

    #regionRecordsDiv {
        position: static;
        border-radius: 0;
        padding: 0;
        background-color: transparent;
        -webkit-box-shadow: none;
        -moz-box-shadow: none;
        box-shadow: none;
        width: 100%;
        text-align: center;
    }

    span.regtot {
        font-size: 14px;
        display: initial;
        padding: 0px;
        color: #0f69c4;
        text-transform: uppercase;
        border-bottom: 0;
        text-align: unset;
        font-weight: 600;
    }

    #regionRecords {
        font-size: 14px;
        color: #474747;
        display: unset;
        text-align: unset;
        text-transform: uppercase;
        line-height: 1;
        padding: 0;
        font-weight: 600;
    }

    .info_otras {
        position: sticky;
        z-index: 10;
        width: auto;
        margin-right: 20px;
        text-align: center;
    }
}
