.custommapa-wrap {
    position: relative;
    max-width: 100%
}

.custommapa-svg svg {
    width: 100%;
    height: var(--map-height, auto);
    display: block
}

.custommapa-pins {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.custommapa-pin {
    position: absolute;
    transform: translate(-50%, -100%);
    pointer-events: auto;
    border: none;
    background: transparent;
    line-height: 1;
    padding: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.custommapa-pin:hover {
    cursor: pointer;
}

.custommapa-pin svg {
    width: auto;
    height: 30px;
    transition: var(--all-transition);
}

.custommapa-pin:hover svg {
    width: 25px;
    height: 35px;
}

.custommapa-pin svg path {
    transition: var(--all-transition);
}

.custommapa-pin:hover svg path {
    stroke: var(--c-negro);
}

/* Dialog popup */

.custommapa-dialog {
    max-width: 450px;
    width: 100%;
    border: none;
    padding: 0;
}

.custommapa-dialog::backdrop {
    background: rgba(0, 0, 0, .35)
}

.custommapa-dialog-content {
    background-color: rgba(217, 217, 217, 0.3);
    width: 100%;
    padding: 60px 20px 40px;
    position: relative;
    border-radius: 0;
}

.custommapa-header {
    display: flex;
    /* justify-content: space-between; */
    flex-direction: column-reverse;
    row-gap: 10px;
    align-items: center;
}

#custommapa-dialog-title {
    font-size: 24px;
    font-family: var(--font-title);
    margin-bottom: 0;
    text-transform: initial;
    font-weight: 500;
}

img.custommapa-dialog-img {
    max-width: 50px;
    width: 100%;
}

.custommapa-dialog-body {
    margin-top: 30px;
}

.custommapa-dialog-body p:last-child {
    margin-bottom: 0;
}

.custommapa-dialog-close {
    position: absolute;
    top: 8px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: var(--title-small);
    font-weight: 100;
    color: var(--c-negro);
    cursor: pointer;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

/* Estilos para los pop up que se muestran haciendo hover */

.custommapa-tooltip {
    position: absolute;
    background: var(--c-blanco);
    z-index: 9999;
    display: none;
    max-width: 220px;
    transform: translate(-50%, -10px);
    transition: opacity 0.2s ease;
    opacity: 0;
    pointer-events: auto;
    background-color: rgba(254, 254, 254);
    width: 100%;
    padding: 20px;
    border-radius: 0;
}

.custommapa-tooltip-inner {
    text-align: center;
}

.custommapa-tooltip-img {
    max-width: 50px;
    width: 100%;
}

.custommapa-tooltip-body {
    color: var(--c-negro);
}

.custommapa-tooltip-body>p:last-child {
    margin-bottom: 0;
}

.custommapa-tooltip-title {
    font-size: 24px;
    font-family: var(--font-title);
    margin-bottom: 0;
    text-transform: initial;
    font-weight: 500;
}

@media screen and (max-width: 600px) {

    .custommapa-pin svg {
        width: auto;
        max-height: 20px;
    }

    .custommapa-tooltip {
        padding: 10px;
        max-width: 135px;
    }

    .custommapa-tooltip-img {
        max-width: 30px;
    }

    .custommapa-tooltip-title {
        font-size: 1rem;
    }
}