
/* PRAWNIKOM PRO - ATLAS INFRASTRUKTURY */

html body .en-atlas-workspace {
    --atlas-navy: #142641;
    --atlas-gold: #c6a46a;
    --atlas-border: #dce4ee;
    box-sizing: border-box;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: #f1f5f9 !important;
    color: #142641 !important;
}

.en-atlas-workspace [hidden] {
    display: none !important;
}

/* HERO */

.en-atlas-workspace .pp-section-hero {
    display: grid !important;
    grid-template-columns: minmax(0,1.4fr) minmax(0,1fr);
    align-items: center;
    gap: 30px;
    padding: 36px !important;
    background: linear-gradient(120deg,#0e1b30,#203957) !important;
    color: #fff !important;
    border: 0 !important;
    border-bottom: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    overflow: hidden;
}

.en-atlas-workspace .pp-section-hero h1 {
    font-family: Georgia,serif !important;
    font-size: clamp(28px,3vw,44px) !important;
    color: #fff !important;
    line-height: 1.2;
    margin: 20px 0 !important;
}

.en-atlas-workspace .pp-section-hero p {
    color: #dce4ee !important;
    line-height: 1.8;
    font-size: 15px !important;
}

.en-atlas-workspace .pp-section-hero-crumbs,
.en-atlas-workspace .pp-section-hero-crumbs a {
    color: #d6b77c !important;
    font-size: 12px !important;
}

.en-atlas-workspace .pp-section-hero-art {
    display: block;
    width: 100%;
    max-height: 280px;
    height: auto;
    object-fit: contain;
}

.en-atlas-workspace .pp-section-hero-action {
    display: inline-flex !important;
    padding: 12px 24px !important;
    background: #c6a46a !important;
    color: #142641 !important;
    font-weight: 700;
    text-decoration: none !important;
    margin-top: 16px;
}

/* OKRUSZKI */

.en-atlas-breadcrumb {
    display: flex !important;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px 0 !important;
    font-size: 13px !important;
    color: #64748b !important;
}

.en-atlas-breadcrumb a {
    color: #142641 !important;
    font-weight: 600;
}

/* NAGLOWEK I NAWIGACJA */

html body .en-atlas-page-head {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 24px !important;
    margin-bottom: 16px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
}

.en-atlas-workspace .energy-eyebrow {
    display: block;
    color: #96702d !important;
    font-size: 11px !important;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.en-atlas-page-head p {
    color: #142641 !important;
    margin: 6px 0 !important;
    font-size: 14px;
}

.en-atlas-page-head nav {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px;
}

html body .en-atlas-page-head nav a {
    display: inline-flex !important;
    align-items: center;
    min-height: 42px;
    padding: 10px 20px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    color: #142641 !important;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    border-radius: 0 !important;
}

html body .en-atlas-page-head nav a.is-active {
    background: #142641 !important;
    color: #e1bf80 !important;
    border-color: #142641 !important;
}

/* KREATOR MIEJSCOWOSCI */

html body .en-wizard {
    box-sizing: border-box;
    padding: 26px !important;
    margin: 0 0 20px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    border-radius: 0 !important;
}

.en-wizard-progress {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.en-wizard-progress b {
    background: #f5f0e5;
    color: #96702d;
    padding: 8px 14px;
    font-size: 11px;
    letter-spacing: 1px;
}

.en-atlas-workspace h2 {
    color: #142641 !important;
    font-family: Georgia,serif !important;
    font-size: 25px !important;
    margin: 0 0 16px !important;
}

.en-atlas-workspace h3 {
    color: #142641 !important;
    font-size: 16px !important;
    font-weight: 700;
}

/* POLA FORMULARZY - BEZ INGERENCJI W LEAFLET */

.en-atlas-workspace form label,
.en-atlas-toolbar label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
    color: #142641 !important;
    font-size: 12px !important;
    font-weight: 600;
}

html body .en-atlas-workspace form input:not([type="checkbox"]):not([type="radio"]),
html body .en-atlas-workspace form select,
html body .en-atlas-toolbar select {
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 46px !important;
    padding: 10px 14px !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 0 !important;
    color: #142641 !important;
    font-family: inherit;
    font-size: 14px !important;
    box-shadow: none !important;
}

.en-atlas-workspace select:disabled {
    background: #f1f5f9 !important;
    color: #94a3b8 !important;
    cursor: not-allowed;
}

.en-atlas-workspace input[type="checkbox"] {
    accent-color: #142641;
    width: 17px;
    height: 17px;
    flex-shrink: 0;
}

.en-atlas-workspace input:focus-visible,
.en-atlas-workspace select:focus-visible {
    outline: 1px solid #c6a46a !important;
    outline-offset: 2px;
}

html body #en-place-name {
    min-height: 52px !important;
    font-size: 16px !important;
}

.en-wizard-note {
    font-size: 12px !important;
    color: #64748b !important;
    margin: 12px 0 0 !important;
}

#en-wizard-options:not(:empty) {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

#en-wizard-options button {
    background: #f8fafc !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-radius: 0 !important;
    padding: 14px !important;
    text-align: left;
}

/* PANEL MAPY */

html body .en-atlas {
    box-sizing: border-box;
    width: 100% !important;
    min-width: 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-radius: 0 !important;
    margin-bottom: 20px;
    scroll-margin-top: 140px;
}

html body .en-atlas-toolbar {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding: 22px 24px !important;
    border-bottom: 1px solid #dce4ee !important;
    background: #fff !important;
}

.en-atlas-toolbar h2 {
    margin: 0 !important;
}

.en-atlas-toolbar > div:last-child {
    display: flex !important;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
}

.en-atlas-toolbar label:has(input[type="checkbox"]) {
    display: flex;
    flex-direction: row;
    align-items: center;
    min-height: 46px;
}

.en-atlas-toolbar button,
.en-region-filters button,
.atlas-layer-actions button {
    background: #142641 !important;
    color: #fff !important;
    border: 1px solid #142641 !important;
    border-radius: 0 !important;
    min-height: 44px;
    padding: 10px 18px !important;
}

/* FILTRY NAD MAPA */

html body .atlas-map-controls {
    display: block !important;
    padding: 20px 24px !important;
    background: #fff !important;
    border-bottom: 1px solid #dce4ee;
}

html body .en-region-filters {
    display: grid !important;
    grid-template-columns: repeat(3,minmax(0,1fr)) auto;
    align-items: end;
    gap: 16px;
    padding: 0 !important;
    margin: 0 !important;
    background: #fff !important;
}

.en-region-filters h3,
#en-region-count,
#en-region-matches {
    grid-column: 1 / -1;
}

.en-region-filters h3 {
    margin: 0 !important;
}

#en-region-count {
    color: #64748b;
    font-size: 12px;
    margin: 0;
}

html body #en-region-clear {
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #cbd5e1 !important;
}

/* WARSTWY INFRASTRUKTURY */

html body .atlas-map-layers {
    margin-top: 20px !important;
    padding: 16px !important;
    border: 1px solid #dce4ee !important;
    background: #f8fafc !important;
    border-radius: 0 !important;
}

.atlas-map-layers > summary {
    color: #142641 !important;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

html body .en-infra-layers {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 10px;
    margin-top: 16px;
}

.en-infra-layers > :not(.en-infra-layer) {
    grid-column: 1 / -1;
}

.atlas-layer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

html body .en-infra-layer {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 12px !important;
    min-height: 44px;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    font-size: 13px;
    cursor: pointer;
}

.en-infra-layer:has(input:checked) {
    border-color: #c6a46a !important;
    background: #faf7f0 !important;
}

/* MAPA I PANEL INFORMACYJNY */

html body .en-atlas-layout {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) 300px;
    gap: 0 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

html body #en-atlas-map {
    position: relative !important;
    width: 100% !important;
    min-width: 0 !important;
    height: clamp(480px,70vh,850px) !important;
    background: #e8edf2;
    overflow: hidden;
    border: 0 !important;
    border-radius: 0 !important;
    isolation: isolate;
}

html body .en-atlas-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: 22px !important;
    background: #fff !important;
    border-left: 1px solid #dce4ee !important;
    color: #142641 !important;
}

.en-atlas-sidebar {
    padding-bottom: 20px;
    border-bottom: 1px solid #dce4ee;
}

.en-atlas-help {
    font-size: 13px !important;
    line-height: 1.7;
    color: #64748b !important;
}

.en-atlas-legend {
    padding: 16px 0;
    font-size: 12px;
    line-height: 1.8;
}

.en-atlas-status {
    padding: 14px;
    background: #f8fafc;
    border-left: 3px solid #c6a46a;
    font-size: 12px;
    color: #142641;
}

/* KATALOG POD MAPA */

html body .atlas-parcel-list {
    padding: 24px !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    margin-bottom: 20px;
}

.atlas-catalog-layout {
    display: grid !important;
    grid-template-columns: minmax(220px,280px) minmax(0,1fr);
    gap: 20px;
}

.atlas-catalog-filters {
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #dce4ee;
    min-width: 0;
}

.en-atlas-notes {
    padding: 20px !important;
    background: #fff !important;
    border: 1px solid #dce4ee;
    color: #142641;
}

.en-atlas-notes summary {
    cursor: pointer;
    font-weight: 600;
}

/* LINKI BEZ PODKRESLEN */

.en-atlas-workspace a {
    text-decoration: none !important;
}

/* RESPONSYWNOSC */

@media(max-width:1200px) {
    .en-atlas-workspace .en-atlas-layout {
        grid-template-columns: minmax(0,1fr) 250px;
    }

    .en-atlas-workspace .en-infra-layers {
        grid-template-columns: repeat(3,minmax(0,1fr));
    }
}

@media(max-width:900px) {
    html body .en-atlas-workspace {
        padding: 16px !important;
    }

    .en-atlas-workspace .pp-section-hero {
        grid-template-columns: minmax(0,1fr);
        padding: 24px !important;
    }

    .en-atlas-workspace .pp-section-hero-art {
        max-height: 180px;
    }

    html body .en-atlas-layout,
    .atlas-catalog-layout {
        grid-template-columns: minmax(0,1fr) !important;
    }

    html body .en-region-filters,
    html body .en-infra-layers {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }

    html body .en-atlas-panel {
        border-left: 0 !important;
        border-top: 1px solid #dce4ee !important;
    }
}

@media(max-width:540px) {
    html body .en-atlas-workspace {
        padding: 10px !important;
    }

    html body .en-wizard,
    html body .en-atlas-toolbar,
    html body .atlas-map-controls,
    html body .en-atlas-page-head {
        padding: 16px !important;
    }

    html body .en-region-filters,
    html body .en-infra-layers {
        grid-template-columns: minmax(0,1fr);
    }

    html body #en-atlas-map {
        height: 480px !important;
    }

    .en-atlas-toolbar > div:last-child {
        width: 100%;
    }

    .en-atlas-toolbar label {
        width: 100%;
    }
}

