﻿
#map {
    width: 90% !important;
    max-width: 800px;
    height: 500px;
    margin: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin-left: 40px !important;
}

.popup-content {
    font-size: 14px;
    max-width: 200px;
}

.loading {
    font-style: italic;
    color: #555;
}

.modal-content {
    background-color: #fff;
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    margin-top:auto !important;
}


/* Fondo oscuro del popup */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

/* Caja del popup */
.popup {
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    max-width: 80%;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
}

    .popup h2 {
        margin-top: 0;
    }

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    font-size: 18px;
    color: #888;
}

    .close-btn:hover {
        color: #000;
    }

.dam-btn-mapa {
    background-color: #22445c;
    color: #FFFFFF;
    padding: 10px 16px 10px 16px;
    font-size: 17px;
    border-radius: 999px;
    cursor: pointer;
    min-width: 222px;
    height: 44px;
    border: 2px solid #086378;
    font-family: 'Segoe UI';
    font-weight: 400;
    line-height: 22px;
    letter-spacing: 0px;
    /**Propiedades para puntos suspensivos*/
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

    .dam-btn-mapa:hover {
        color: #086378;
        background-color: #FCFCFC;
       
    }
@media only screen and (max-width: 1536px) {
    .dam-map-footer {
        padding: 15px !important;
        text-align: right !important;
    }
    .modal-content {
        background-color: #fff;
        border-radius: 12px;
        width: 100%;
        max-width: 800px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        margin-top: 150px !important;
    }
    #map {
        max-width: 800px;
        height: 400px;
        margin: 25px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
}
@media only screen and (max-width: 700px) {
    .dam-map-footer {
        padding: 15px !important;
        text-align: center !important;
    }
    #map {
        max-width: 800px;
        height: 500px;
        margin: 25px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-left : 15px !important;
    }
}
@media only screen and (max-width: 695px) {
    .modal-content {
        background-color: #fff;
        border-radius: 12px;
        width: 100%;
        max-width: 800px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        margin-top: 100px !important;
        height: 500px !important;
        margin-top:auto !important;
    }

    #map {
        max-width: 800px;
        height: 500px;
        margin: 25px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
      
    }
}

@media only screen and (max-height: 658px) {


    #map {
        max-width: 800px;
        height: 400px;
        margin: 25px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    .modal-content {
        background-color: #fff;
        border-radius: 12px;
        width: 100%;
        max-width: 800px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
        margin-top: 100px !important;
        height: 500px !important;
    }
}
@media only screen and (max-width: 540px) {


    #map {
        max-width: 800px;
        height: 300px;
        margin: 25px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-left: 15px !important;
    }

    .modal-content {
        background-color: #fff;
        border-radius: 12px;
        width: 100%;
        max-width: 800px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    }
}
@media only screen and (max-width: 326px) {


    #map {
        max-width: 800px;
        height: 300px;
        margin: 25px;
        border-radius: 8px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        margin-left: 15px !important;
        
    }

    .modal-content {
        background-color: #fff;
        border-radius: 12px;
        width: 100%;
        max-width: 800px;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
       
    }
}