/* ==========================================
   MAP LAYOUT
   ========================================== */

.insgeo-map-page {
    --insgeo-map-viewport-height: 100%;

    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    box-sizing: border-box;
}

body.insgeo-map-layout-active {
    overflow: hidden !important;
}

body.insgeo-map-layout-active #main-container {
    display: flex;
    flex-direction: column;
    height: calc(100vh - var(--insgeo-admin-bar-height, 0px));
    min-height: 0;
    overflow: hidden;
}

@supports (height: 100dvh) {
    body.insgeo-map-layout-active #main-container {
        height: calc(100dvh - var(--insgeo-admin-bar-height, 0px));
    }
}

body.insgeo-map-layout-active #header,
body.insgeo-map-layout-active #footer {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto;
}

body.insgeo-map-layout-active #main {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

.insgeo-map-page > .wp-block-heading {
    display: none !important;
}

/*
 * Keep zero-length admin-bar offsets out of CSS custom properties.
 * Some PageSpeed/CSS minifiers rewrite 0px to 0, which makes calc()
 * invalid when that custom property is used as a length.
 */
.insgeo-map-section,
.insgeo-map-container {
    display: flex !important;
    flex: 1 1 auto;
    position: relative;

    width: 100% !important;
    max-width: none !important;

    height: 100% !important;
    min-height: 0 !important;

    margin: 0 !important;
    padding: 0 !important;

    overflow: hidden !important;
}

#insgeo-interactive-map {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;

    position: relative !important;
    z-index: 1;

    width: 100% !important;

    /* Do not rely on percentage height here. On cached/PageSpeed reloads
       the Leaflet div can otherwise resolve to 0px even when its parent is tall. */
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: #eef1f3 !important;
}

.insgeo-map-loading-progress {
    position: absolute;
    z-index: 1000;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-width: 96px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    background: rgba(20, 28, 38, 0.9);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    transform: translate(-50%, -50%);
}

.insgeo-map-loading-progress[hidden] {
    display: none;
}

.insgeo-map-loading-progress__spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: insgeo-map-loading-spin 0.8s linear infinite;
}

.insgeo-map-loading-progress__value {
    min-width: 38px;
    text-align: right;
}

@keyframes insgeo-map-loading-spin {
    to {
        transform: rotate(360deg);
    }
}

button.is-saving {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

button.is-saving::before {
    width: 12px;
    height: 12px;
    box-sizing: border-box;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    content: '';
    animation: insgeo-map-loading-spin 0.7s linear infinite;
}

/* ==========================================
   LAYER CONTROL SECTIONS
   ========================================== */

.insgeo-layer-control__heading {
    margin: 2px 0 7px;
    padding: 0 2px 7px;

    border-bottom: 1px solid rgba(23, 35, 28, 0.14);

    color: #17231c;

    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.045em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
}

.insgeo-combined-layer-control {
    margin-top: 0;
}

.insgeo-layer-control__group {
    margin-bottom: 6px;
}

.insgeo-layer-control__item {
    padding-left: 14px;
}

.insgeo-layer-control__heading--reference {
    margin-top: 12px;
}

.insgeo-layer-control__group--nested {
    margin: 10px 10px 6px 14px;
    padding-top: 7px;
    border-top: 1px solid rgba(0, 0, 0, 0.12);
}

.insgeo-layer-control__group--nested > .insgeo-layer-control__heading {
    margin: 0 0 6px;
    padding: 0;
    border: 0;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.leaflet-control-layers-overlays > label {
    margin: 0;
}

.insgeo-layer-control__logical-container {
    margin: 0;
}

.insgeo-tectonic-legend__entry.is-orphaned {
    outline: 1px dashed #b7791f;
    outline-offset: 2px;
}

.insgeo-tectonic-legend__symbol {
    position: relative;
    width: 34px;
    height: 12px;
    margin-top: 2px;
    color: var(--insgeo-symbol-color);
}

.insgeo-tectonic-legend__symbol--line {
    height: 8px;
    margin-top: 5px;
    border-top: var(--insgeo-symbol-weight) var(--insgeo-symbol-style) var(--insgeo-symbol-color);
}

.insgeo-tectonic-legend__symbol--thrust::before {
    position: absolute;
    top: 4px;
    right: 0;
    left: 0;
    border-top: var(--insgeo-symbol-weight) solid var(--insgeo-symbol-color);
    content: '';
}

.insgeo-tectonic-legend__symbol--thrust::after {
    position: absolute;
    top: 4px;
    left: 5px;
    width: 19px;
    height: 6px;
    background: linear-gradient(135deg, transparent 50%, var(--insgeo-symbol-color) 51%) 0 0 / 8px 6px repeat-x;
    content: '';
}

.insgeo-legend-element-manager__suggestions {
    display: grid;
    max-height: 180px;
    margin-top: 4px;
    overflow-y: auto;
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.16);
}

.insgeo-legend-element-manager__suggestion {
    padding: 5px 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    text-align: left;
}

.insgeo-legend-element-manager__suggestion:hover,
.insgeo-legend-element-manager__suggestion:focus-visible {
    background: #eef3ef;
}

.insgeo-layer-control__checkbox-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 4px;
}

.insgeo-layer-control__checkbox-row > label {
    min-width: 0;
    margin: 0;
}

.insgeo-layer-control__checkbox-editor {
    grid-column: 1 / -1;
    display: grid;
    gap: 6px;
    margin: 2px 0 7px 14px;
    padding: 8px;
    border: 1px solid rgba(23, 35, 28, 0.16);
    border-radius: 5px;
    background: #fff;
}

.insgeo-layer-control__checkbox-editor[hidden] {
    display: none;
}

.insgeo-layer-control__checkbox-editor .insgeo-tectonic-layer-editor__field {
    display: grid;
    gap: 2px;
    margin: 0;
    font-size: 9px;
}

.insgeo-layer-control__checkbox-editor input[type='text'],
.insgeo-layer-control__checkbox-editor input[type='number'],
.insgeo-layer-control__checkbox-editor input[type='color'],
.insgeo-layer-control__checkbox-editor select {
    width: 100%;
    min-width: 0;
    height: 26px;
    padding: 3px 5px;
    font-size: 10px;
}

.insgeo-layer-control__hide-legend {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 10px;
}

@media (max-width: 768px) {
    .insgeo-layer-control__heading {
        margin-bottom: 5px;
        padding-bottom: 6px;

        font-size: 10px;
        letter-spacing: 0.04em;
    }

    .insgeo-layer-control__heading--reference {
        margin-top: 9px;
    }

}
/* =========================================================
   LEAFLET CONTROLS
========================================================= */

.leaflet-top {
    top: 0 !important;
}

/* Панель шарів */
.leaflet-control-layers {
    margin-top: 16px !important;
    max-height: max(0px, calc(var(--insgeo-map-viewport-height) - 32px));
    border-radius: 14px !important;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .15) !important;
}

.insgeo-combined-layer-control {
    box-sizing: border-box;
}

.insgeo-combined-layer-control.leaflet-control-layers-expanded {
    position: relative;
    width: min(340px, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    height: max(0px, calc(var(--insgeo-map-viewport-height, 100vh) - 32px));
    max-height: max(0px, calc(var(--insgeo-map-viewport-height, 100vh) - 32px));
    overflow-x: hidden;
    overflow-y: auto;
}

.insgeo-layer-control__collapse {
    position: sticky;
    z-index: 2;
    top: 0;
    float: right;
    display: none;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin: 0 0 4px 8px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    color: #17231c;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.leaflet-control-layers-expanded > .insgeo-layer-control__collapse {
    display: inline-flex;
}

.insgeo-layer-control__collapse:hover,
.insgeo-layer-control__collapse:focus-visible {
    background: #eef3ef;
}

/* Кнопки масштабу */
.leaflet-control-zoom {
    margin-top: 16px !important;
    border-radius: 12px !important;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .12) !important;
}


/* ========================================================= 
   DEPOSIT POPUP 
========================================================= */
.insgeo-map-popup {
    min-width: 180px;
    max-width: 240px;
    padding: 0;
    color: #17382d;
}

.insgeo-map-popup__title {
    margin: 0 0 10px;
    padding: 0 18px 8px 0;
    border-bottom: 1px solid rgba(23, 76, 58, 0.14);
    color: #10271e;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.insgeo-map-popup__details {
    margin: 0;
}

.insgeo-map-popup__row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 8px;
    margin-top: 6px;
}

.insgeo-map-popup__row dt {
    margin: 0;
    font-size: 10px;
    font-weight: 700;
    color: #78877f;
    text-transform: uppercase;
}

.insgeo-map-popup__row dd {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
}

.insgeo-map-popup__status {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    background: #e7f1eb;
    color: #1c654a;
    font-size: 10px;
    font-weight: 700;
}

.insgeo-tectonic-popup {
    width: min(320px, 72vw);
}

.insgeo-tectonic-editor {
    display: grid;
    gap: 10px;
}

.insgeo-tectonic-editor label {
    display: grid;
    gap: 4px;
    color: #52635b;
    font-size: 11px;
    font-weight: 700;
}

.insgeo-tectonic-editor textarea {
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    overflow-y: hidden;
    resize: vertical;
    border: 1px solid rgba(23, 76, 58, 0.25);
    border-radius: 6px;
    padding: 7px 8px;
    background: #fff;
    color: #17382d;
    font: inherit;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.35;
}

.insgeo-tectonic-editor textarea:focus {
    border-color: #1c654a;
    outline: 2px solid rgba(28, 101, 74, 0.15);
}

.insgeo-tectonic-editor__actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.insgeo-tectonic-editor button {
    border: 0;
    border-radius: 6px;
    padding: 7px 12px;
    background: #1c654a;
    color: #fff;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
}

.insgeo-tectonic-editor button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.insgeo-tectonic-editor__deletion {
    display: grid;
    gap: 7px;
    margin-top: 2px;
    padding-top: 10px;
    border-top: 1px solid rgba(161, 38, 38, 0.2);
}

.insgeo-tectonic-editor__deletion p {
    margin: 0;
    color: #7b3535;
    font-size: 11px;
    line-height: 1.35;
}

.insgeo-tectonic-editor button.is-danger {
    background: #a12626;
}

.insgeo-tectonic-editor button.is-secondary {
    background: #e7ece9;
    color: #29483d;
}

.insgeo-tectonic-editor__countdown {
    color: #7b3535;
    font-size: 11px;
    font-weight: 700;
}

.insgeo-tectonic-editor__deletion progress {
    width: 100%;
    height: 8px;
    accent-color: #a12626;
}

.insgeo-tectonic-editor__status {
    color: #63736b;
    font-size: 11px;
}

.insgeo-tectonic-editor__status.is-success {
    color: #1c654a;
}

.insgeo-tectonic-editor__status.is-error {
    color: #a12626;
}

.insgeo-tectonic-editor__metadata {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 3px 8px;
    margin: 0;
    padding: 7px;
    border-radius: 6px;
    background: #f1f5f3;
    color: #52635b;
    font-size: 10px;
}

.insgeo-tectonic-editor__metadata dt {
    font-weight: 700;
}

.insgeo-tectonic-editor__metadata dd {
    min-width: 0;
    margin: 0;
    overflow-wrap: anywhere;
}

.insgeo-tectonic-legend__entry {
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.insgeo-tectonic-legend__entry:hover,
.insgeo-tectonic-legend__entry:focus-within,
.insgeo-tectonic-legend__entry.is-map-highlighted {
    background: rgba(28, 101, 74, 0.1);
    box-shadow: inset 0 0 0 1px rgba(28, 101, 74, 0.18);
    outline: none;
}

.insgeo-tectonic-legend__row {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    width: auto;
    max-width: none;
    box-sizing: border-box;
    margin: 4px 10px 4px 14px;
    font-size: 10.5px;
    line-height: 1.25;
}

.insgeo-tectonic-legend__symbol,
.insgeo-tectonic-legend__swatch {
    flex: 0 0 34px;
}

.insgeo-tectonic-legend__label {
    flex: 1 1 auto;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.insgeo-tectonic-legend__structures {
    width: 100%;
    max-width: none;
    overflow-x: hidden;
    overflow-y: visible;
    padding-right: 4px;
}

.insgeo-tectonic-legend__swatch {
    width: 34px;
    height: 14px;
    margin-top: 1px;
}

.insgeo-tectonic-legend__entry:has(.insgeo-tectonic-legend__editor:not([hidden])) {
    margin: 4px 6px 7px 10px;
    padding: 5px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 9px rgba(23, 56, 45, 0.12);
}

.insgeo-tectonic-legend__entry:has(.insgeo-tectonic-legend__editor:not([hidden]))
    .insgeo-tectonic-legend__row {
    margin: 0 0 6px !important;
}

.insgeo-tectonic-legend__edit {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    margin: -4px -2px -4px 0;
    padding: 0;
    border: 1px solid rgba(23, 76, 58, 0.2);
    border-radius: 5px;
    background: #fff;
    color: #1c654a;
    cursor: pointer;
    font-size: 14px;
    line-height: 22px;
}

.insgeo-tectonic-legend__edit:hover,
.insgeo-tectonic-legend__edit:focus-visible {
    border-color: #1c654a;
    background: #edf5f1;
}

.insgeo-tectonic-legend__editor {
    display: grid;
    gap: 5px;
}

.insgeo-tectonic-legend__editor[hidden] {
    display: none;
}

.insgeo-tectonic-legend__editor textarea,
.insgeo-tectonic-legend__editor select,
.insgeo-tectonic-legend__editor input[type='number'] {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid rgba(23, 76, 58, 0.25);
    border-radius: 4px;
    padding: 5px 6px;
    background: #fff;
    color: #17382d;
    font-size: 11px;
    line-height: 1.3;
}

.insgeo-tectonic-legend__editor textarea {
    min-height: 50px;
    resize: vertical;
    border-radius: 5px;
    padding: 6px;
    color: #17382d;
    font-size: 11px;
    line-height: 1.3;
}

.insgeo-tectonic-legend__color-field {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
}

.insgeo-tectonic-legend__color-field input[type='color'] {
    width: 48px;
    height: 28px;
    padding: 2px;
}

.insgeo-tectonic-legend__editor-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
}

.insgeo-tectonic-legend__editor-actions button {
    border: 0;
    border-radius: 5px;
    padding: 5px 8px;
    background: #1c654a;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
}

.insgeo-tectonic-legend__editor-actions button.is-secondary {
    background: #e9eeeb;
    color: #41534b;
}

.insgeo-tectonic-legend__editor-actions button.is-danger {
    background: #a12626;
}

.insgeo-tectonic-legend__editor-actions button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.insgeo-map-popup:has(.insgeo-map-popup__eyebrow) {
    min-width: 260px;
    max-width: 320px;
}

.insgeo-map-popup__eyebrow {
    margin: 0 0 6px;
    color: #9b7430;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.insgeo-map-popup__notice {
    margin: 12px 0 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(23, 76, 58, 0.14);
    color: #63736b;
    font-size: 11px;
    line-height: 1.45;
}

.insgeo-map-popup__source {
    color: #1f392c;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.insgeo-map-popup__source:hover,
.insgeo-map-popup__source:focus-visible {
    color: #9b7430;
}

.insgeo-interface-editor-control__button {
    width: auto !important;
    padding: 0 10px !important;
    border: 0;
    background: #fff;
    color: #174c3a;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 30px;
}

.leaflet-tooltip.insgeo-tectonic-height-label {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #c8a77a !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    pointer-events: none !important;
}

.insgeo-tectonic-height-label__text {
    display: inline-block;
    padding: 1px 3px;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.94);
    transform: rotate(var(--insgeo-height-label-angle, 0deg));
    transform-origin: center;
}

.leaflet-tooltip.insgeo-tectonic-height-label::before {
    display: none !important;
    border: 0 !important;
}

.insgeo-interface-editor {
    position: absolute;
    z-index: 1100;
    top: 12px;
    bottom: 12px;
    left: 56px;
    width: min(560px, calc(100% - 68px));
    box-sizing: border-box;
    overflow: hidden;
    border: 1px solid rgba(23, 76, 58, 0.24);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 12px 36px rgba(19, 49, 38, 0.24);
    color: #17382d;
}

.insgeo-interface-editor__header,
.insgeo-interface-editor__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
}

.insgeo-interface-editor__header {
    border-bottom: 1px solid rgba(23, 76, 58, 0.14);
}

.insgeo-interface-editor__header h2 {
    margin: 0;
    font-size: 16px;
}

.insgeo-interface-editor__header button {
    border: 0;
    background: transparent;
    cursor: pointer;
    font-size: 24px;
}

.insgeo-interface-editor__form {
    display: flex;
    flex-direction: column;
    height: calc(100% - 51px);
}

.insgeo-interface-editor__fields {
    flex: 1 1 auto;
    overflow: auto;
    padding: 12px 14px;
}

.insgeo-interface-editor__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px;
    border: 1px solid rgba(23, 76, 58, 0.15);
    border-radius: 7px;
}

.insgeo-interface-editor__row legend {
    padding: 0 4px;
    font-family: monospace;
    font-size: 11px;
    font-weight: 700;
}

.insgeo-interface-editor__row label {
    font-size: 11px;
    font-weight: 700;
}

.insgeo-interface-editor__row textarea {
    display: block;
    width: 100%;
    min-height: 58px;
    box-sizing: border-box;
    margin-top: 4px;
    padding: 6px;
    resize: vertical;
    border: 1px solid rgba(23, 76, 58, 0.25);
    border-radius: 5px;
    font: inherit;
    font-weight: 400;
}

.insgeo-interface-editor__actions {
    border-top: 1px solid rgba(23, 76, 58, 0.14);
}

.insgeo-interface-editor__actions button {
    border: 0;
    border-radius: 6px;
    padding: 8px 14px;
    background: #1c654a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.insgeo-interface-editor__status {
    color: #53675f;
    font-size: 12px;
}

.insgeo-tectonic-layer-editor .insgeo-interface-editor__fields {
    display: grid;
    align-content: start;
    gap: 14px;
}

.insgeo-tectonic-layer-editor__body {
    height: calc(100% - 51px);
    box-sizing: border-box;
    overflow: auto;
    padding: 12px 14px;
}

.insgeo-tectonic-source-row {
    display: grid;
    gap: 9px;
    margin-bottom: 14px;
    padding: 12px;
    border: 1px solid rgba(23, 76, 58, 0.16);
    border-radius: 8px;
    background: #fbfcfb;
}

.insgeo-tectonic-source-row__title {
    overflow-wrap: anywhere;
}

.insgeo-tectonic-source-row h3 {
    margin: 0 0 4px;
    font-size: 14px;
}

.insgeo-interface-editor.insgeo-tectonic-layer-editor {
    left: 12px;
    width: min(1080px, calc(100% - 24px));
}

.insgeo-tectonic-source-table-wrap {
    margin-bottom: 14px;
    overflow-x: auto;
    border: 1px solid rgba(23, 76, 58, 0.18);
    border-radius: 8px;
    background: #fff;
}

.insgeo-tectonic-source-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 11px;
}

.insgeo-tectonic-source-table th,
.insgeo-tectonic-source-table td {
    padding: 8px;
    border-right: 1px solid rgba(23, 76, 58, 0.1);
    border-bottom: 1px solid rgba(23, 76, 58, 0.1);
    text-align: left;
    vertical-align: middle;
}

.insgeo-tectonic-source-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #edf4f0;
    color: #29483d;
    font-weight: 700;
}

.insgeo-tectonic-source-table th:last-child,
.insgeo-tectonic-source-table td:last-child {
    border-right: 0;
}

.insgeo-tectonic-source-table tbody tr:last-child td {
    border-bottom: 0;
}

.insgeo-tectonic-source-table__file {
    width: 18%;
    overflow-wrap: anywhere;
}

.insgeo-tectonic-source-table__row.is-empty .insgeo-tectonic-source-table__file input + input {
    margin-top: 5px;
}

.insgeo-tectonic-source-table__details span,
.insgeo-tectonic-source-table__details small {
    display: block;
}

.insgeo-tectonic-source-table__details {
    width: 10%;
}

.insgeo-tectonic-source-table th:nth-child(2) {
    width: 10%;
}

.insgeo-tectonic-source-table__details small {
    margin-top: 3px;
    color: #63736b;
    font-size: inherit;
}

.insgeo-tectonic-source-table select,
.insgeo-tectonic-source-table input[type='text'],
.insgeo-tectonic-source-table input[type='number'],
.insgeo-tectonic-source-table input[type='file'] {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    border: 1px solid rgba(23, 76, 58, 0.24);
    border-radius: 5px;
    padding: 6px;
    background: #fff;
    color: #17382d;
    font: inherit;
}

.insgeo-tectonic-source-table__toggle {
    width: 34px;
    padding-right: 3px !important;
    padding-left: 3px !important;
    text-align: center !important;
}

.insgeo-tectonic-source-table th:nth-child(5) {
    width: 34px;
    padding-right: 3px;
    padding-left: 3px;
    overflow-wrap: anywhere;
    text-align: center;
}

.insgeo-tectonic-source-table th:nth-child(4),
.insgeo-tectonic-source-table td:nth-child(4) {
    width: 58px;
}

.insgeo-tectonic-source-table__replacement {
    width: 22%;
}

.insgeo-tectonic-source-table__actions {
    width: 180px;
    white-space: nowrap;
}

.insgeo-tectonic-source-table__actions button {
    border: 0;
    border-radius: 5px;
    padding: 7px 10px;
    background: #1c654a;
    color: #fff;
    cursor: pointer;
    font-size: inherit;
    font-weight: 700;
}

.insgeo-tectonic-source-table__actions button + button {
    margin-left: 5px;
}

.insgeo-tectonic-source-table__actions button.is-danger {
    background: #a12626;
}

.insgeo-tectonic-source-table__actions button:disabled {
    cursor: wait;
    opacity: 0.6;
}

.insgeo-tectonic-source-table__actions .insgeo-interface-editor__status {
    display: block;
    margin-top: 5px;
    font-size: inherit;
    overflow-wrap: anywhere;
    white-space: normal;
}

.insgeo-tectonic-source-table__row.is-upload td {
    background: #f2f7f4;
    border-top: 2px solid rgba(28, 101, 74, 0.28);
}

.insgeo-map-section-manager__list {
    display: grid;
    gap: 4px;
    margin: 0;
    padding-left: 22px;
    color: #29483d;
    font-size: 11px;
}

.insgeo-map-section-manager__list .is-child {
    margin-left: 14px;
}

.insgeo-map-section-manager,
.insgeo-map-section-manager .insgeo-tectonic-layer-editor__field,
.insgeo-map-section-manager .insgeo-interface-editor__status {
    font-size: 11px;
}

.insgeo-map-section-manager .insgeo-tectonic-layer-editor__field {
    gap: 4px;
}

.insgeo-map-section-manager .insgeo-tectonic-layer-editor__field input:not([type='checkbox']),
.insgeo-map-section-manager .insgeo-tectonic-layer-editor__field select {
    min-height: 27px;
    padding: 4px 5px;
    font-size: inherit;
}

.insgeo-map-section-manager__remove {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
}

.insgeo-map-section-manager__remove button {
    border: 0;
    border-radius: 5px;
    padding: 7px 10px;
    background: #a12626;
    color: #fff;
    cursor: pointer;
    font-size: inherit;
    font-weight: 700;
}

.insgeo-map-section-manager__remove button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.insgeo-map-section-manager__editors {
    display: grid;
    gap: 10px;
    overflow-x: visible;
}

.insgeo-map-section-manager__table-wrap {
    margin-bottom: 0;
    overflow-x: visible;
}

.insgeo-map-section-manager__table {
    min-width: 0;
    table-layout: fixed;
    font-size: 11px;
}

.insgeo-map-section-manager__table th,
.insgeo-map-section-manager__table td {
    padding: 5px 6px;
    font-size: inherit;
}

.insgeo-map-section-manager__table th:nth-child(1) { width: 22%; }
.insgeo-map-section-manager__table th:nth-child(2) { width: 10%; }
.insgeo-map-section-manager__table th:nth-child(3),
.insgeo-map-section-manager__table th:nth-child(4) { width: 14%; }
.insgeo-map-section-manager__table th:nth-child(5) { width: 23%; }
.insgeo-map-section-manager__table th:nth-child(6) { width: 17%; }

.insgeo-map-section-manager__table input,
.insgeo-map-section-manager__table select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    box-sizing: border-box;
    padding: 4px 5px;
    font: inherit;
}

.insgeo-map-section-manager__ordering {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid rgba(23, 76, 58, 0.13);
    border-radius: 7px;
    background: #f7faf8;
}

.insgeo-map-section-manager__ordering h4,
.insgeo-map-section-manager__hint {
    margin: 0;
}

.insgeo-map-section-manager__hint {
    color: #63736b;
    font-size: inherit;
}

.insgeo-map-section-manager__sortable {
    display: grid;
    gap: 5px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.insgeo-map-section-manager__sortable li {
    padding: 8px 10px;
    border: 1px solid rgba(23, 76, 58, 0.16);
    border-radius: 5px;
    background: #fff;
    cursor: grab;
    font-size: inherit;
    font-weight: 700;
}

.insgeo-map-section-manager__sortable li.is-dragging {
    opacity: 0.45;
    cursor: grabbing;
}

.insgeo-map-section-manager__editor {
    grid-template-columns: minmax(180px, 1.15fr) minmax(115px, 0.65fr) repeat(2, minmax(180px, 1fr)) minmax(180px, 1fr) minmax(150px, auto);
    align-items: end;
    min-width: 1050px;
    padding: 10px;
    border: 1px solid rgba(23, 76, 58, 0.13);
    border-radius: 7px;
    background: #fff;
}

.insgeo-map-section-manager__editor h4,
.insgeo-map-section-manager__subsections-title {
    margin: 0;
    color: #17382d;
    font-size: inherit;
}

.insgeo-map-section-manager__identity {
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    font-weight: 400;
}

.insgeo-map-section-manager__record-title h4 {
    padding-bottom: 8px;
}

.insgeo-map-section-manager__record-actions {
    min-height: 0;
    width: auto;
    white-space: normal;
}

.insgeo-map-section-manager__row-form {
    display: inline-flex;
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    max-width: 100%;
    gap: 3px;
    white-space: normal;
}

.insgeo-map-section-manager__record-actions .insgeo-map-section-manager__row-form > button {
    width: 100%;
    border: 0;
    border-radius: 5px;
    padding: 5px 8px;
    background: #1c654a;
    color: #fff;
    cursor: pointer;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.15;
}

.insgeo-map-section-manager__record-actions .insgeo-map-section-manager__row-form > button.is-danger {
    background: #a12626;
}

.insgeo-map-section-manager__record-actions .insgeo-map-section-manager__remove {
    width: 100%;
    min-height: 0;
}

.insgeo-map-section-manager__record-actions .insgeo-map-section-manager__remove button {
    width: 100%;
}

.insgeo-map-section-manager__record-actions .insgeo-map-section-manager__row-form > button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.insgeo-legend-element-table {
    min-width: 0;
    table-layout: fixed;
}

.insgeo-legend-element-table th:nth-child(1) { width: 15%; }
.insgeo-legend-element-table th:nth-child(2) { width: 18%; }
.insgeo-legend-element-table th:nth-child(3),
.insgeo-legend-element-table th:nth-child(4) { width: 15%; }
.insgeo-legend-element-table th:nth-child(5) { width: 7%; }
.insgeo-legend-element-table th:nth-child(6) { width: 17%; }
.insgeo-legend-element-table th:nth-child(7) { width: 13%; }

.insgeo-legend-element-table input,
.insgeo-legend-element-table select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.insgeo-legend-element-table input[type='color'] {
    height: 29px;
    padding: 2px;
    border: 1px solid rgba(23, 76, 58, 0.24);
    border-radius: 5px;
    background: #fff;
}

.insgeo-map-section-manager__subsections-title {
    margin-top: 4px;
}

.insgeo-map-section-manager__empty {
    margin: 0;
    color: #63736b;
    font-size: inherit;
}

.insgeo-tectonic-source-row > button {
    justify-self: start;
    border: 0;
    border-radius: 6px;
    padding: 7px 12px;
    background: #1c654a;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
}

.insgeo-tectonic-layer-editor__field {
    display: grid;
    gap: 6px;
    font-size: 12px;
    font-weight: 700;
}

.insgeo-tectonic-layer-editor__field input:not([type='checkbox']),
.insgeo-tectonic-layer-editor__field select {
    width: 100%;
    min-height: 38px;
    box-sizing: border-box;
    border: 1px solid rgba(23, 76, 58, 0.25);
    border-radius: 6px;
    padding: 6px 8px;
    background: #fff;
    color: #17382d;
}

@media (max-width: 620px) {
    .insgeo-interface-editor__row {
        grid-template-columns: 1fr;
    }

    .insgeo-map-section-manager__editor {
        grid-template-columns: 1fr;
        min-width: 0;
    }
}
.deposit-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 16px;
    line-height: 1;
    font-weight: 700;

    text-shadow:
        -1px -1px 0 #1f2924,
         1px -1px 0 #1f2924,
        -1px  1px 0 #1f2924,
         1px  1px 0 #1f2924;

    cursor: pointer;
    transition: transform 0.15s ease;
}

.deposit-icon:hover {
    transform: scale(1.25);
}

/* Пісок */
.deposit-icon--sand {
    color: #f7c52b;
}

/* Глина — зелене коло */
.deposit-icon--clay {
    color: #3fa45b;
}

/* Суглинок — зелене півколо */
.deposit-icon--loam {
    color: #3fa45b;
}

/* Вапняк / карбонатна сировина */
.deposit-icon--limestone {
    color: #d4d6d7;
}

/* Граніт / будівельний камінь */
.deposit-icon--stone {
    color: #3d9bf2;
}

/* Гіпс */
.deposit-icon--gypsum {
    color: #b967e8;
}

/* Крейда */
.deposit-icon--chalk {
    color: #e85f66;
}

/* Гравій / галечник */
.deposit-icon--gravel {
    color: #9b673f;
}

/* Якщо тип не визначився */
.deposit-icon--default {
    color: #4ba66a;
}
.insgeo-map-page>h1{max-width:1200px;margin:0 auto 20px;padding:0 24px;font-size:clamp(2rem,4vw,3rem)}
