/* INDEX */
@import url("../../shared/css/core/reset.css");
@import url("../../shared/css/core/variables.css");
@import url("../../shared/css/style.css");
@import url("../../shared/css/choices.css");
@import url("../../shared/css/leaflet.css");
/* @import url("leaflet-markercluster.css"); Maintain default styles*/

/* GENERAL */
.body {
    /* Size */
    width: 100vw;
    height: 100vh;
}

.main {
    /* Size */
    width: 100%;
    height: 100%;
    /* Margin-padding */
    padding: 0;
    /* Position */
    position: fixed;
    top: 0;
    left: 0;
    z-index: 0;
}
/* FIN GENERAL */

/* PANELS */
.panel {
    /* Size */
    width: 400px;
    /* Background-border */
    background-color: var(--background-modal);
    border: 1px solid var(--border-modal);
    border-radius: 16px;
    box-shadow: 0px 0.873px 2.619px 0px rgba(0, 0, 0, 0.2);
    /* Position */
    position: fixed;
    z-index: 90;
}

.panel.header {
    /* Size */
    height: 83px;
    /* Margin-padding */
    padding: 8px;
    /* Position */
    top: 16px;
    left: 16px;
}

.header_logos {
    /* Size */
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panel.layer,
.panel.filter,
.panel.result {
    /* Size */
    min-height: 76%;
    max-height: calc(100vh - 16px - 83px - 32px);
    /* Margin-padding */
    padding: 16px 16px 16px 16px;
    /* Display */
    display: flex;
    flex-direction: column;
    /* Position */
    top: calc(
        16px + 83px + 16px
    ); /* padding top + logos header height + padding bottom */
    left: 16px;
}

.panel.filter {
    /* Size */
    height: calc(
        100vh - 16px - 83px - 32px
    ); /* padding top + logos header height + padding bottom */
    /* Display */
    display: flex;
    flex-direction: column;
}

.panel.layer {
    /* Size */
    max-height: 700px;
    /* Display */
    display: flex;
}

.view_map_btn, .close_btn {
    display: none;
}

/* FIN PANELS */

/* LAYERS */
.filter_btn_container {
    /* Background-border */
    background-color: #f7f9fc;
    /* Margin-padding */
    padding: 4px 8px;
    /* Display */
    display: flex;
    justify-content: flex-end;
}

.button.filter {
    /* Font */
    font-weight: 700;
    /* Size */
    min-height: 32px;
    /* Background-border */
    border-color: var(--main-font-color);
    /* Margin-padding */
    padding: 4px 16px;
}

.form_layer {
    /* Size */
    width: 100%;
    /* Display */
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 8px;
}

.button.bottom {
    /* Margin-padding */
    margin-top: auto;
}

.layer_legend {
    /* Font */
    color: var(--main-font-color);
    font-family: "Inter", "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    /* Size */
    width: 100%;
    /* Background-border */
    background-color: rgba(237, 241, 245, 0.6);
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
    /* Margin-padding */
    padding: 4px 8px;
    /* Display */
    display: flex;
    align-items: center;
    gap: 8px;
}

.layer_fieldset_body {
    /* Background-border */
    background-color: #f7f9fc;
    /* Margin-padding */
    padding: 12px 24px;
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.label_input_box {
    /* Display */
    flex-direction: row;
    align-items: center;
}

.circle {
    /* Size */
    width: 9px;
    height: 9px;
    /* Background-border */
    border-radius: 50%;
}

.circle.proyecto {
    /* Background-border */
    background-color: var(--color-map-proyecto);
}

.circle.empresa {
    /* Background-border */
    background-color: var(--color-map-empresa);
}

.circle.agente {
    /* Background-border */
    background-color: var(--color-map-agente);
}

.circle.entidad {
    /* Background-border */
    background-color: var(--color-map-entidad);
}

.input_icon_box {
    /* Size */
    width: 324px;
}

.input_icon_box > img {
    /* Position */
    right: 16px;
}

.input {
    /* Size */
    min-width: 80px;
    min-height: 42px;
    /* Background-border */
    border-radius: 32px;
    border-radius: 31px;
    box-shadow: 0px 0.873px 2.619px 0px rgba(0, 0, 0, 0.2);
}

.button {
    /* Font */
    font-weight: 500;
}

.button.disabled {
    pointer-events: none;
    opacity: 0.5;
}
/* FIN LAYERS */

/* FORM SEARCH */
.search_filter {
    /* Position */
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 90;
}

.search_filter_form {
    /* Display */
    display: flex;
    gap: 16px;
}
/* FIN FORM SEARCH */

/* FORM FILTERS */
.go_back_btn {
    cursor: pointer;
    /* Background-border */
    background-color: transparent;
    /* Margin-padding */
    padding-bottom: 16px;
    /* Display */
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
}

.go_back_btn > span {
    /* Font */
    font-size: 17px;
    font-weight: 700;
}

.go_back_btn:hover {
    opacity: 80%;
}

.form_filter {
    /* Size */
    height: 100%;
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 24px;
    /* Position */
    position: relative;
}

.form_filter_wrapper {
    /* Size */
    height: calc(100% - 80px); /* footer */
    /* Margin-padding */
    padding-right: 16px;
    padding-bottom: 56px;
    /* Display */
    overflow-y: auto;
}

.filter_fieldset {
    /* Background-border */
    border-bottom: 1px solid #dce3e6;
    /* Margin-padding */
    padding-bottom: 16px;
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.filter_legend {
    /* Font */
    font-weight: 700;
    /* Margin-padding */
    padding-top: 16px;
    padding-bottom: 16px;
    /* Display */
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter_fieldset:first-of-type > .filter_legend {
    /* Margin-padding */
    padding-top: 8px;
}

.checkbox_container {
    /* Margin-padding */
    padding-left: 16px;
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form_filter_footer {
    /* Size */
    width: 400px;
    height: 80px;
    /* Background-border */
    background-color: #f7f9fc;
    border-top: 1px solid #dce4ed;
    border-bottom-right-radius: 16px;
    border-bottom-left-radius: 16px;
    /* Margin-padding */
    padding: 0px 16px;
    /* Display */
    display: flex;
    align-items: center;
    gap: 6px;
    /* Position */
    position: fixed;
    left: 16px;
    bottom: 16px;
}
/* FIN FORM FILTERS */

/* FILTER RESULTS */
.filter_result_total {
    /* Margin-padding */
    padding-bottom: 16px;
}

.result_list {
    list-style: none;
    /* Margin-padding */
    padding-right: var(--scroll-padding, 0); /* default: no scrollbar */
    padding-bottom: 16px; /* space for last item */
    margin-right: var(--scroll-margin, 0); /* default: no negative margin */
    margin-bottom: 64px; /* space for footer */
    /* Display */
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 8px;
    overflow-y: auto;
}

.result_list_item {
    cursor: pointer;
    /* Background-border */
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    /* Margin-padding */
    padding: 16px;
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.result_list_item:hover {
    /* Background-border */
    background: #f7f9fc;
    border-color: #f7f9fc;
}

.result_list_item:active {
    /* Background-border */
    background: #f7f9fc;
}

.result_item_title {
    /* Font */
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.34px;
}

.result_item_link {
    /* Font */
    color: var(--link-font-color);
    font-weight: 700;
    letter-spacing: -0.28px;
    /* Display */
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-end;
}
/* FIN FILTER RESULTS */

/* LEAFLET */
.map {
    /* Size */
    width: 100%;
    height: 100%;
}

.leaflet-top {
    /* Position */
    top: 80px;
}

.icon_image {
    /* Size */
    width: 20px;
    height: 20px;
    /* Background-border */
    border: 0.22em solid #fff;
    /* Transition */
    transition: transform 0.2s ease;
}

.icon_image.proyecto {
    /* Size */
    width: 24px;
    height: 24px;
    /* Background-border */
    background-color: var(--color-map-proyecto);
    border-radius: 50%;
}

.icon_image.empresa {
    /* Background-border */
    background-color: var(--color-map-empresa);
}

.icon_image.agente {
    /* Background-border */
    background-color: var(--color-map-agente);
}

.icon_image.entidad {
    /* Background-border */
    background-color: var(--color-map-entidad);
}
/* FIN LEAFLET */

/* CHOICES */
/* Show shadow */
.choices {
    overflow: visible;
}

/* Input */
.choices[data-type*="select-one"] .choices__inner,
.choices[data-type*="select-multiple"] .choices__inner {
    /* Background-border */
    border-radius: 31px;
    box-shadow: 0px 0.873px 2.619px 0px rgba(0, 0, 0, 0.2);
    /* Margin-padding */
    padding-left: 1rem;
}

/* Input > Dropdown list */
.choices__list--dropdown {
    /* Background-border */
    border-radius: 16px !important;
}

/* FIN CHOICES */

/* SIDE MODAL */
.modal_overlay.element {
    /* Background-border */
    background-color: transparent;
}

.side_modal {
    /* Margin-padding */
    padding: 42px 19px;
    /* Display */
    gap: 16px;
}

.modal_header {
    /* Display */
    display: flex;
    flex-direction: column-reverse;
    gap: 16px;
}

.modal_header_title {
    /* Font */
    font-family: "Inter", "Open Sans", sans-serif;
    font-size: 29px;
    font-weight: 700;
    line-height: 125%;
    letter-spacing: -0.87px;
}

.tipo_elemento_tag {
    /* Font */
    font-size: 12px;
    font-weight: 500;
    line-height: 21px;
    letter-spacing: 0.24px;
    /* Size */
    width: fit-content;
    /* Background-border */
    border-radius: 52px;
    /* Margin-padding */
    padding: 4px 16px;
    /* Display */
    display: flex;
    justify-content: center;
    align-items: center;
}

.tipo_elemento_tag.proyecto {
    /* Background-border */
    border: 1px solid var(--color-proyecto);
}

.tipo_elemento_tag.empresa {
    /* Background-border */
    background-color: var(--color-empresa);
}

.tipo_elemento_tag.agente {
    /* Background-border */
    background-color: var(--color-agente);
}

.tipo_elemento_tag.entidad {
    /* Background-border */
    background-color: var(--color-entidad);
}

.modal_body {
    /* Margin-padding */
    padding-right: var(--scroll-padding, 0); /* default: no scrollbar */
    padding-bottom: var(--footer-padding, 0); /* default: no footer */
    margin-right: var(--scroll-margin, 0); /* default: no negative margin */
    /* Display */
    display: flex;
    flex-grow: 1; /* This ensures the body takes the remaining space */
    flex-direction: column;
    gap: 32px;
    /* Scroll */
    overflow-y: auto;
    overflow-x: hidden;
}

.modal_section_box {
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.modal_section {
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.modal_section.upperline {
    /* Background-border */
    border-top: 1px solid #d1d5db;
    /* Margin-padding */
    padding-top: 19px;
}

.modal_section_title {
    /* Font */
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
    text-transform: uppercase;
    /* Background-border */
    border-bottom: 1px solid #d1d5db;
    /* Margin-padding */
    padding-bottom: 4px;
}

.description {
    /* Font */
    color: var(--sec-font-color);
    font-family: "Inter", "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
}

.modal_list {
    list-style: none;
    /* Display */
    display: flex;
    flex-direction: column;
    gap: 19px;
}

.modal_list.highlight {
    /* Background-border */
    background-color: #f7f9fc;
    border-radius: 4px;
    /* Margin-padding */
    padding: 24px 16px;
    /* Display */
    gap: 8px;
}

.modal_list_item {
    /* Display */
    display: grid;
    grid-template-columns: 60% 35%;
    align-items: start;
    gap: 24px;
}

.modal_list_item.highlight {
    /* Display */
    display: grid;
    grid-template-columns: 30% 70%;
}

.list_item_key {
    /* Font */
    color: var(--sec-font-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
    /* Display */
    display: flex;
    align-items: center;
    gap: 8px;
}

.list_item_key.highlight > span {
    /* Font */
    color: var(--main-font-color);
    font-size: 16px;
    font-weight: 400;
}

.list_item_value {
    /* Font */
    color: var(--main-font-color);
    font-size: 14px;
    font-weight: 500;
    line-height: 150%;
}

.list_item_value.highlight {
    /* Font */
    font-size: 16px;
    font-weight: 700;
}

.list_item_value.email {
    /* Font */
    color: var(--link-font-color);
    font-size: 16px;
    font-weight: 700;
}

.list_item_value.email:hover {
    /* Font */
    color: var(--hover-link-font-color);
}

.foto_proyecto {
    /* Size */
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    /* Background-border */
    border-radius: 4px;
}

.modal_footer {
    /* Size */
    width: 100%;
    /* Background-border */
    background-color: var(--background-modal);
    /* border-top: 1px solid #d1d5db; */
    /* Margin-padding */
    padding: 20px 32px;
    /* Display */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1002; /* On top of modal */
    /* Position */
    position: fixed;
    right: 0;
    bottom: 0;
}

/* FIN SIDE MODAL */

/* MODAL DOWNLOAD DATA */
.modal_overlay.centered {
    /* Display */
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal_data {
    /* Font */
    color: var(--main-font-color);
    text-align: center;
    /* Size */
    width: 100%;
    max-width: 400px;
    /* Background-border */
    background-color: var(--background-modal);
    border-radius: 15px;
    /* Margin-padding */
    padding: 40px 16px;
    /* Display */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Position */
    position: relative;
    z-index: 1001;
}

.modal_data_title {
    /* Font */
    font-family: "Inter", "Open Sans", sans-serif;
    font-size: 16px;
    font-weight: 700;
    /* Margin-padding */
    padding: 0px 44px 16px 44px;
}

.modal_data_desc {
    /* Font */
    font-family: "Inter", "Open Sans", sans-serif;
    line-height: normal;
    /* Margin-padding */
    padding: 0px 44px 24px 44px;
}

/* FIN MODAL DOWNLOAD DATA */


/* RESPONSIVE */
@media (max-width: 768px) {
    .body {
        overflow: visible;
        height: auto;
        min-height: 100vh;
    }

    .panel {
        width: 90%;
    }

    .panel.header {
        height: auto;
        line-height: normal;
        max-height: 83px;
        max-width: 400px;
    }

    .header_logos {
        /* Size */
        width: 100%;
        height: auto;
        max-height: 50px;
    }
    
    .panel a {
        line-height: normal;
    }

    .panel.layer, .panel.filter, .panel.result {
        height: 70%;
        min-height: 0px;
        overflow-y: scroll;
        padding-bottom: 16px;
    }

    #panel_layer {
        display: none;
    }

    #download_data_btn, #download_data_filter_btn {
        display: none;
    }

    .view_map_btn {
        display: flex;
    }

    .panel.layer, .panel.filter, .panel.result {
        top: calc(16px + 72px + 16px + 48px + 16px);
    }

    .result_list {
        padding-bottom: 64px;
    }

    .filter_btn_container {
        justify-content: space-between;
        align-items: center;
    }

    .close_btn {
        /* Background-border */
        background-color: transparent;
        /* Display */
        display: flex;
        justify-content: center;
        align-items: center;
    }

    .filter_fieldset {
        /* Margin-padding */
        margin-bottom: 16px;
    }

    .form_filter_footer {
        /* Size */
        width: 90%;
        left: 5%;
    }

    .input_icon_box {
        /* Size */
        width: 100%;
    }

    .search_filter {
        /* Position */
        position: absolute;
        top: 100px;
        left: 16px;
        right: auto;
        width: 90%;
    }

    .search_filter_ubicacion {
        /* Size */
        width: stretch;
    }

    .leaflet-top {
        /* Position */
        top: 156px;
    }

    .leaflet-control-zoom {
        display: none;
    }

    /* Hamburguer button */

    .hamburguer_button {
        /* Size */
        width: 45px;
        height: 45px;
        border-radius: 50%;
        /* Background-border */
        background-color: var(--pure-white);
        /* Display */
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        position: absolute;
        left: 16px;
        top: 168px;
        border: 0.873px solid var(--border-hamburguer-button);
        box-shadow: 0 0.873px 2.619px 0 rgba(0, 0, 0, 0.20);
    }

    .hamburguer_button .hamburger_bar {
        /* Size */
        width: 22px;
        height: 2.5px;
        /* Background-border */
        background-color: var(--sec-font-color);
        border-radius: 2.5px;
    }

    /* FIN Hamburguer button */

    /* Side modal */
    .side_modal {
        width: 100vw;
        height: 100vh;
        right: 0;
        left: 0;
        top: 0;

        border-radius: 0;
        padding: 16px;

        /* animación desde abajo (más natural en mobile) */
        transform: translateY(100%);
    }

    .modal_overlay.active .side_modal {
        transform: translateY(0);
    }

    .modal_list_item.highlight
    {
        grid-template-columns: none;
        gap: 8px;
    }

    .modal_list_item {
        grid-template-columns: none;
    }

    /* FIN Side modal */
}
/* FIN RESPONSIVE */