.gm-style-iw-d div {
    max-width: 320px;
}

.gm-style-mtc button {
    border-radius: 2px !important;
}

.mpwr-doctor-map-title {
    font-size: 23px !important;
    line-height: 26px;
    font-weight: 600;
}

.mpwr-doctor-map-title:after {
    content: "";
    width: 60px;
    height: 1px;
    border-bottom: 1px solid transparent;
    margin-top: 16px;
    display: block;
}

.gm-style-iw-d .mpwr-doctor-map-title {
    text-align: center;
}

.gm-style-iw-d .mpwr-doctor-map-title:after {
    margin: 16px auto 0;
}
.mpwr-doctor-map-phone {
    display: flex;
    flex-wrap: wrap;
}

.mpwr-doctor-map-phone a:first-child {
    margin-right: 8px;
}

.mpwr-doctor-map-email a {
}

.mpwr-doctor-map-address:before,
.mpwr-doctor-map-email:before,
.mpwr-doctor-map-phone:before {
    content: "";
    min-width: 24px;
    height: 24px;
    display: block;
    margin-right: 8px;
    background-image: url("../img/icon-location.svg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.mpwr-doctor-map-email:before {
    background-image: url("../img/icon-mail.svg");
}
.mpwr-doctor-map-phone:before {
    background-image: url("../img/icon-tel.svg");
}

.mpwr-doctor-map-title:hover {
    cursor: pointer;
}

.mpwr-doctor-map-img-content {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}
img.mpwr-doctor-map-img {
    max-width: 140px !important;
    /* Versión estándar */
    mask-image: url("../img/hexa.svg");
    mask-size: cover;
    mask-position: center center;
    /* Prefijos para compatibilidad */
    -webkit-mask-image: url("../img/hexa.svg");
    -webkit-mask-size: cover;
    -webkit-mask-position: center center;
    /* Prefijo para Firefox antiguo */
    -moz-mask-image: url("../img/hexa.svg");
    -moz-mask-size: cover;
    -moz-mask-position: center center;
}

#locations-list ul li .mpwr-doctor-map-img-content,
#locations-list ul li img.mpwr-doctor-map-img {
    display: none;
}

.mpwr-doctor-map-info {
    padding-bottom: 8px;
    display: flex;
    flex-direction: column;
    row-gap: 12px;
}
.mpwr-doctor-map-info a {
    font-size: 16px !important;
    color: #505050 !important;

    text-wrap: wrap;
    word-break: break-word;
    hyphens: auto;
    overflow-wrap: break-word;
}

.mpwr-doctor-map-info p {
    margin-bottom: 0 !important;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.mpwr-doctor-map-info p:empty {
    display: none;
}

.mpwr-doctor-map-specialties {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f1f1f3;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.mpwr-doctor-map-specialties .doctor-speciality {
    font-family: "Libre Franklin";
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    padding: 4px 16px;
    background: #a86f7f1a;
    border-radius: 24px;
    color: #a86f7f;
    text-transform: uppercase;
}

.mpwr-doctor-map-specialties .doctor-pathologies {
    font-family: "Libre Franklin";
    font-weight: 500;
    font-size: 12px;
    line-height: 140%;
    padding: 4px 16px;
    background: #a86f7f1a;
    border-radius: 24px;
    color: #a86f7f;
    text-transform: uppercase;
}

.mpwr-doctor-map-info p.mpwr-doctor-map-phone a {
    font-size: inherit;
    font-family: inherit;
    font-weight: inherit;
    text-wrap: nowrap;
}

.mpwr-doctor-map-info p.mpwr-doctor-map-link a {
    font-family: "Libre Bodoni", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: italic;
}

.mpwr-doctor-map-info p a:hover {
    text-decoration: underline;
}

#map-container {
    display: flex;
    height: 800px;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;

    box-shadow: 0px 6px 24px 0px #0000001a;
    border-radius: 12px;
}

@media (min-width: 768px) and (max-width: 1024px) {
    #map-container {
        height: 600px;
    }
}

#locations-list {
    width: 30%;
    overflow-y: auto;
    padding: 0;
    margin: 0;
}

#locations {
    padding: 0;
    margin: 0px;
}
#locations-list li {
    list-style-type: none;
    padding: 24px;
    border-left: 1px solid transparent;
    border-bottom: 1px solid #a0a2a3;
}

#locations-list li:last-child {
    border-bottom-width: 0;
}

#locations-list li.active .mpwr-doctor-map-info {
    border-left-color: #5b273c !important;
}

#map {
    width: 70%;
    height: 100%;
}

@media (max-width: 1024px) {
    #map-container {
        height: 100vh;
        flex-direction: column-reverse;
    }

    #locations-list,
    #map {
        width: 100%;
        height: 50%;
    }
}
/*scrollbar*/

/* width */
#locations-list::-webkit-scrollbar {
    width: 5px;
    border-radius: 4px;
}

/* Handle */
#locations-list::-webkit-scrollbar-thumb {
    background: #5b273c;
}

/* Handle on hover */
#locations-list::-webkit-scrollbar-thumb:hover {
    background: #a86f7f;
}

/* Themes */

/*Silver theme*/

#map-container.silver #locations-list li {
    border-bottom: 1px solid #a0a2a3;
}

#map-container.silver {
    background: #fff;
}
#map-container.silver .mpwr-doctor-map-title {
    color: #5b273c;
}
.mpwr-doctor-map-title:after {
    border-bottom-color: #a86f7f;
}

#map-container.silver .mpwr-doctor-map-info {
    color: #505050;
}

/*Dark theme*/

#map-container.dark #locations-list li {
    border-bottom: 1px solid #373737;
}
#map-container.dark #locations-list li .mpwr-doctor-map-info {
    border-left-color: #373737;
    border-left-width: 2px;
}

#map-container.dark {
    background: #212121;
    border-width: 0;
}
#map-container.dark #locations-list li p,
#map-container.dark #locations-list li a {
    color: #bdbdbd;
}

#map-container.dark #locations-list ul li .mpwr-doctor-map-title {
    color: #757575;
}

#map-container.dark #locations-list ul li.active .mpwr-doctor-map-title {
    color: #fff;
}

#map-container.dark .mpwr-doctor-map-info .mpwr-doctor-map-link a {
    color: #a86f7f !important;
}

/*Night theme*/
#map-container.night #locations-list li {
    border-bottom: 1px solid #38414e;
}
#map-container.night #locations-list li .mpwr-doctor-map-info {
    border-left-color: #38414e;
    border-left-width: 2px;
}
#map-container.night {
    background: #242f3e;
    border-width: 0;
}
#map-container.night #locations-list li p,
#map-container.night #locations-list li a {
    color: #d59563;
}

#map-container.night #locations-list ul li .mpwr-doctor-map-title {
    color: #9ca5b3;
}

#map-container.night #locations-list ul li.active .mpwr-doctor-map-title {
    color: #fff;
}

#map-container.night .mpwr-doctor-map-info .mpwr-doctor-map-link a {
    color: #a86f7f !important;
}

/*Aubergine theme*/
#map-container.aubergine #locations-list li {
    border-bottom: 1px solid #1a3646;
}

#map-container.aubergine #locations-list li .mpwr-doctor-map-info {
    border-left-color: #1a3646;
    border-left-width: 2px;
}
#map-container.aubergine {
    background: #1d2c4d;
    border-width: 0;
}
#map-container.aubergine #locations-list li p,
#map-container.aubergine #locations-list li a {
    color: #98a5be;
}

#map-container.aubergine #locations-list ul li .mpwr-doctor-map-title {
    color: #8ec3b9;
}

#map-container.aubergine #locations-list ul li.active .mpwr-doctor-map-title {
    color: #fff;
}
