:root{
    --blue-primary: #183264;
    --white: #ffffff;
    --graydark: #3D4D5F; 
    --graylight: #CED2D7;
    --blue: #027C97;
    --bluelinks: #1C74F8; 
    --blue-background:#F9FBFF;  
}
.map-container {
    display: flex;
    width: 100%;
    height: 600px;    
    margin: auto;
    box-shadow: 0px 0px 10px 0px #164C9E40;
    border-radius: 10px;
}
.list-map {
    box-shadow: 0px 0px 10px 0px #164C9E40;
    margin-top: 40px;
    padding: 20px;
    border-radius: 10px;
    max-height: 630px;
    overflow-y: auto;
}
.list-map .map-table td img,
.list-map .map-table th.filter_type img {
    width: 18px;
    margin-right: 5px ;
    vertical-align: middle;
    padding-bottom: 3px;
}
.list-map table{
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}
.list-map tr {
    position: relative;    
}
.list-map td, .list-map th {
    padding: 12px;
    max-width: 230px;
    vertical-align: middle;
}
.map-table .visible-odd {
    background-color: #f1f4ff;
}
.list-map tr:nth-child(odd) td:first-child {
    border-top-left-radius: 5px;
    border-bottom-left-radius: 5px;
}
.list-map tr:nth-child(odd) td:last-child {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
}
.list-map thead tr{
    background-color: var(--white) !important;
    font-size: 100%;
    font-weight: 900;
    text-wrap: nowrap;
}
.list-map a {
    color: #1C74F8 !important;
    text-decoration: underline;
}
.map-table {
    display: none;
}
#show-list-map p{
    font-size: 112.5%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.icono-map{
    width: 24px;
    margin-right: 15px;
}
.list-map .icono-open, .icono-close {  
    margin-top: -20px;
}
.map-table tbody td .label {
    display: none;
}
.map-table thead.sticky {
    position: sticky;
    top: -21px;
    background: #ffffff;
    z-index: 3;
}
.map-table th.filter_type {
    font-size: 18px;
    text-decoration: underline;
    font-weight: 900;
    padding-bottom: 20px;
}
.map-table tbody.filter-rows tr.item:nth-child(even) {
    background-color: #f1f4ff;
    border-radius: 5px;   
}
.map-table .tooltip::before {
    top: 105%;
    left: 50%;
}
.map-table .tooltip::after {
    top: 112%;
    left: 50%;
}

.leaflet-container  a img {
    width: 50px !important;
}

/* Marcadores */
.custom-marker{
    background-image: url('/hospital/wp-content/plugins/ascires/config/assets/marker.svg'); 
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    display: flex; 
    justify-content: center; 
    align-items: center;
    padding-bottom: 5px;   
}
.custom-marker img{
    width: 45% !important;   
  
}
.custom-marker:has(#hospital), .custom-marker:has(#hospital-en){
    background-image: url('/hospital/wp-content/plugins/ascires/config/assets/marker-hospital.svg'); 
    padding-bottom: 10px;
}

/* Marcadores */

/* Filtros */
.category-controls {
    width: 30%; 
    background: var(--white);
    padding: 40px 25px;
    overflow-y: auto;
    border-radius: 10px 0px 0px 10px;
}
#map {
    flex: 1;   
    z-index: 10;
    border-radius: 0px 10px 10px 0px;
}
.category-controls label {
    display: block;
    margin-top: 20px;
    font-size: 100% !important;
    color: var(--graydark);
}
.head-controls{
    padding-bottom: 20px;
}
.head-controls h3{
    font-size: 120% !important;
    font-weight: 900;
    color: var(--graydark) !important;
    margin-bottom: 15px;
}
.head-controls p{
    font-size: 90%;
    color: var(--graydark);
}
.checkbox-container{
    display: inline-flex !important;
    align-items: center;
    cursor: pointer;
}
.checkbox-container span {
    margin-left: 10px; 
    font-size: 100%;
    line-height: 20px;
}
.category-controls label, .all-categories {
    border-bottom: 1px solid #CFD9F6 !important;
    width: 100%;
    padding-bottom: 20px;    
}
.category-controls label:last-of-type {
    border-bottom: none !important;
}
.category-filter {
    appearance: none;
    width: 20px;
    height: 20px;
    background-color: var(--white);
    color: var(--blue);
    border: 3px solid var(--blue);    
    position: relative;
    cursor: pointer;
    display: inline-block;
    vertical-align: middle;
}
.category-filter:checked {
    background-color: var(--white);
}
.category-filter:checked::after {
    content: '';
    position: absolute;
    width: 5px;
    height: 10px;
    border: 3px solid var(--blue);
    border-width: 0 2px 2px 0;
    top: 2px;
    left: 6px;
    transform: rotate(45deg);
}
.checkbox-container span {
    margin-left: 10px; 
    font-size: 16px;
    line-height: 20px;
}
.category-select {
    display: none;
}
.checkbox-container {
    display: block;
}
/* Filtros */

/**Popup cards map**/
.leaflet-popup.leaflet-zoom-animated{
    bottom: 0px !important; 
    left: -55px !important;
    top: -100px !important;
}
.leaflet-popup-close-button span{
    color: var(--blue) !important;   
    font-size: 30px !important;
}
.leaflet-container a.leaflet-popup-close-button{
    top: 24px !important;
    right: 25px !important;
}
.leaflet-popup-content-wrapper{
    padding-top: 18px;
    padding-bottom: 18px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.leaflet-popup-tip{
    display: none !important;
}
.leaflet-popup-content{
    width: 330px !important;
}
.card-map h2{
    display: inline-block;
    width: 100%;
    color: var(--graydark) !important;
    font-size: 160% !important;
    font-weight: 500;
    border-bottom: 1px solid #cfd9f5;
    padding: 0 48px 10px 24px;
    margin-left: -24px;
}
.card-photo{
    height: 150px !important;
    width: 100%;
    border-radius: 6px;
    margin-top: 20px;
    object-fit:cover;
}
.card-details{
    display: grid;     
    gap: 10px;
    padding-top: 10px;   
    font-size: 120% !important;
    color: var(--bluelinks) !important;
}
.card-details a {   
    color: var(--bluelinks) !important; 
    display: grid;
    grid-template-columns: 30px auto;
    text-decoration: underline !important;   
}
.iconTitle{
    display: inline;
    width: 20px; 
    height: 20px !important;
}
.card-details a::before {
    content: "";
    width: 20px;
    height: 20px;
    background: no-repeat center;
    background-size: 100%;
    display: inline-block;
}
.card-details a.address_link::before {
    background-image: url(/hospital/wp-content/plugins/ascires_luis/assets/img/address.svg);
}
.card-details a.phone_link::before {
    background-image: url(/hospital/wp-content/plugins/ascires_luis/assets/img/phone.svg);
}
.card-details a.mailto::before {
    background-image: url(/hospital/wp-content/plugins/ascires_luis/assets/img/mail.svg);
}
.card-details a.web_link::before {
    background-image: url(/hospital/wp-content/plugins/ascires/config/assets/vpn_lock.svg);
}
#map .leaflet-popup.leaflet-zoom-animated {
    left: -190px !important;
    top: 20px !important;
}

/**Popup cards map**/

/* Media queries */
@media (max-width: 768px) {
    .category-select {        
        display: block;
        position: relative;
        width: 100%;
        padding: 10px 10px 10px 45px;
        border-radius: 40px;
        border: 1px solid #6E8CE4;
        background: var(--blue-background);
        appearance: none;   
        margin: auto;  
        height: 48px; 
    }
    .categories-list {
        position: relative;
        padding: 5px;
    }
    .categories-list::before {
        content: '';
        background-image: url(/hospital/wp-content/plugins/ascires/config/assets/filter-doctors.svg);
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;   
        width: 24px;
        height: 24px;        
        left: 4%;
        top: 30%;
        pointer-events: none;
        z-index: 1000;
    }
    .categories-list::after {
        content: '';
        background-image: url(/hospital/wp-content/plugins/ascires/config/assets/arrow-down.svg) !important;
        background-size: contain;
        background-repeat: no-repeat;
        position: absolute;   
        width: 24px;
        height: 24px;        
        right: 4%;
        top: 30%;
        pointer-events: none;
    }
    .checkbox-container {
        display: none;
    } 
    .map-container{
        flex-direction: column;
        box-shadow:none;
    }  
    .category-controls{
        width: 100%;
        padding: 0px;
        border-radius: 0px;
    }   
    .head-controls {
        padding-bottom: 10px;
    }  
    .head-controls h3{
        font-size: 125% !important;
        color: var(--blue-primary) !important;
        font-weight: 400;
        text-align: center;
    }
    .head-controls p{
        display: none;
    }
    #map{
        height: 450px;
        position: relative;
        border-radius: 10px;
        margin-top: 30px;
    } 
    .map-table thead.sticky , .map-table .tooltip-text { 
        display: none;
    }  
    .list-map td{
        max-width: 100%;
    } 
    .map-table tbody tr td.name{
        position: relative;
        font-weight: 900;
    }
    .map-table tbody tr td.name::after {
        content: "";
        position: absolute;
        width: 22px;
        height: 32px;
        background: url(/hospital/wp-content/plugins/ascires_luis/assets/img/plus.svg) no-repeat center;
        background-size: 100%;
        right: 8px;
        top: 7px;
    }    
    .map-table tbody tr.active td.name::after {
        background-image: url(/hospital/wp-content/plugins/ascires_luis/assets/img/less.svg);
    }    
    .map-table tbody tr.item:not(.active) td.phone,
    .map-table tbody tr.item:not(.active) td.email,
    .map-table tbody tr.item:not(.active) td.distance {
        display: none;
    }
    .map-table tbody td .label {
        display: block;
    }      
    .map-table tbody tr:first-child td.zone {
        display: table-cell !important; 
    } 
    .map-table tbody tr.item td.distance {
        border-top: 1px solid #CFD9F6;
    }
    .map-table tbody tr.item {
        padding: 8px;
    }
    .leaflet-popup-content {
        width: 70vw !important;
    }
    #map .leaflet-popup.leaflet-zoom-animated {
        left: -160px !important;       
    }
    /*#map .leaflet-control-zoom.leaflet-bar.leaflet-control {
        display: none;
    }*/
}

