/*.map_left {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9999;
    background-color: transparent;
}
.map_right {
    width: 100%;
    max-width: 100%;
    max-height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 9995;
    background-color: transparent;
}*/
.map-divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1em;
    background-color: transparent;
    z-index: 1020 !important;
    cursor: e-resize;
}
.map-divider-inner {
    background-color: #028e83;
    height: 100%;
    width: 3px;
    margin: auto;
}


/******** POPUP ******************/
    .leaflet-popup-content {
        margin: 0;
        min-width: 36em !important;
    }
    .leaflet-popup-content-wrapper {
        border-radius: 0;
    }
    .map_popup {
        display: table;
        width: 100%;
    }
    .popup_entity,
    .popup_uid,
    .popup_actions {
        display: table-cell;
        padding: 1em;
        text-align: center;
        font-size: 1.4em;
        vertical-align: middle;
    }

    .popup_actions {
        padding: 1em 1.5em;
        cursor: pointer;
    }
    .popup_action[action='remove'] {
        background-image: url(../img/delete_popup.svg);
        background-repeat: no-repeat;
        background-size: 1.7em;
        background-position: center;
        height: 100%;
        width: 50%;
        padding: 1em;
    }
    .modal_input {
        padding: 1em;
        border: 1px solid grey;
        height: 10em;
        margin-top: 1em;
        font-size: 0.7em;
    }
    .popup_action {
        display: inline-block;
        margin-right: -4px;
    }
    .popup_entity{
        min-width: 8em;
        text-transform: uppercase;
    }
    .popup_uid {
        background-color: #a5cc82;
        min-width: 8em;
    }
    .leaflet-popup.leaflet-zoom-animated {
        margin-left: 10em;
    }
    .leaflet-popup-tip-container{
        margin-left: 2em;
        left: initial;
    }
    .popup_layer_info_entity_name{
        font-weight: bold;
        font-size: 1.2em;
        text-transform:uppercase;
        padding-bottom: 0.2em;
        text-align: center;
    }
    .value_pair .label{
        display: inline-block;
        /*float: left;*/
        margin-left: 1em;
        padding-bottom: 0.1em;
        color: #727272;
    }
    .value_pair .label:nth-child(1) {
        font-weight: bold;
        color: #727272;
        opacity: 1;
        margin-left: 0;
        text-transform: uppercase;
    }
    /*.map-popup{
        position: absolute;
        display: block;
        z-index: 99999;
        padding: 1em 1.2em;
        top: 9em !important;
        color: #727272;
        background-color: #3f454c;
        left: 1em;
        border-radius: 5px;

    }*/
    .map-popup {
        position: absolute;
        display: block;
        z-index: 99999;
        padding: 1em 1.2em;
        top: 10px;
        color: #727272;
        background-color: #eaeaea;
        right: 10px;
        border-radius: 5px;
        max-width: 20rem;
        word-wrap: break-word;
    }
/******** FIN POPUP ***********/
/*.leaflet-overlay-pane{
  z-index: 0;
}
.leaflet-overlay-pane.show_on_top {
    z-index: 400001;
}
.leaflet-marker-pane.show_on_top {
    z-index: 400002;
}
.leaflet-popup-pane.show_on_top {
    z-index: 400003;
}*/
.leaflet-tile-pane.show_on_top{
    /*z-index: 400004;*/
}



/*markercluster*/
.marker-cluster.with-active-icons {
    background-color: rgba(15, 181, 210, 0.6);
}


/* ═══════════════════════════════════════════════════════
   MAP V2 OVERRIDES — Agerpix v2 Design System
   ═══════════════════════════════════════════════════════ */

/* ── Info popup — themed for v2 layout ── */
/* The right side panel (.main-menu-v2) is 25rem wide and covers the
   right edge of #map, so we push the popup left of it (26rem). */
.main-v2 .map-popup {
    top: 1em !important;
    right: 20rem !important;
    left: auto !important;
    background-color: var(--color-surface, #fff);
    color: var(--color-text, #4a5568);
    border: 1px solid var(--color-border, #e2e8f0);
    border-radius: var(--radius-sm, 6px);
    box-shadow: var(--shadow-md);
    padding: 0.85em 1.1em;
    max-width: 20rem;
    font-family: var(--font);
    font-size: 0.85rem;
    word-wrap: break-word;
}

.main-v2 .popup_layer_info_entity_name {
    color: var(--color-text, #111827);
    font-weight: 700;
    font-size: 0.95em;
    font-family: var(--font);
}

.main-v2 .value_pair .label {
    color: var(--color-text-secondary, #6b7280);
    font-size: 0.85em;
}
.main-v2 .value_pair .label:nth-child(1) {
    color: var(--color-text, #111827);
    font-weight: 600;
}

/* ── Leaflet popup — cleaner styling ── */
.main-v2 .leaflet-popup-content-wrapper {
    border-radius: var(--radius-sm, 6px);
    box-shadow: var(--shadow-md);
    font-family: var(--font);
}

/* ── Map divider — themed ── */
.main-v2 .map-divider-inner {
    background-color: var(--color-primary, #1a4d3e);
    width: 2px;
}

/* ── Dark theme ── */
[data-theme="dark"] .main-v2 .map-popup {
    background-color: var(--color-surface);
    color: var(--color-text);
    border-color: var(--color-border);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}
[data-theme="dark"] .main-v2 .popup_layer_info_entity_name {
    color: var(--color-text);
}
[data-theme="dark"] .main-v2 .value_pair .label {
    color: var(--color-text-secondary);
}
[data-theme="dark"] .main-v2 .value_pair .label:nth-child(1) {
    color: var(--color-text);
}
[data-theme="dark"] .main-v2 .leaflet-popup-content-wrapper {
    background-color: var(--color-surface);
    color: var(--color-text);
}
