
/* ATLAS INFRASTRUKTURY */

html body .catalog-shell details:has(> .catalog-map-links),
html body .catalog-shell .catalog-atlas-section {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 24px 0 !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid #dce4ee !important;
    border-radius: 0 !important;
}

html body details:has(> .catalog-map-links) > summary {
    display: none !important;
}

html body .catalog-shell .catalog-map-links {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 24px !important;
    margin: 0 !important;
    background: #fff !important;
    border: 0 !important;
    border-radius: 0 !important;
}

/* NAGLOWEK */

html body .catalog-map-links > h2 {
    display: flex !important;
    align-items: center;
    gap: 16px;
    padding: 26px !important;
    margin: -24px -24px 24px !important;
    background: linear-gradient(
        120deg,#0e1b30,#142641,#203957
    ) !important;
    color: #fff !important;
    font-family: Georgia,"Times New Roman",serif !important;
    font-size: clamp(22px,2.4vw,32px) !important;
    font-weight: 400;
    border-bottom: 3px solid #c6a46a !important;
}

.catalog-map-links > h2::before {
    content: "⌖";
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    height: 48px;
    color: #e1bf80;
    border: 1px solid #c6a46a;
    font-size: 30px;
}

/* SIATKA KAFELKOW */

html body .catalog-map-links > div {
    display: grid !important;
    grid-template-columns: repeat(4,minmax(0,1fr)) !important;
    gap: 16px !important;
    width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

html body .catalog-map-links > div > a {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 16px;
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 240px;
    padding: 24px !important;
    margin: 0 !important;
    background: #fff !important;
    color: #142641 !important;
    border: 1px solid #dce4ee !important;
    border-top: 3px solid #c6a46a !important;
    border-radius: 0 !important;
    text-decoration: none !important;
    font-size: 19px !important;
    font-weight: 600;
    line-height: 1.5;
    transition: background .2s,border-color .2s;
}

/* IKONY INFRASTRUKTURY */

.catalog-map-links > div > a::before {
    content: "";
    display: block;
    width: 64px;
    height: 64px;
    background-color: #edf2f7;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 38px;
    border: 1px solid #dce4ee;
}

.catalog-map-links a[href*="categories=poles"]::before {
    background-image: url("/assets/icons/atlas-poles.svg");
}

.catalog-map-links a[href*="categories=lines"]::before {
    background-image: url("/assets/icons/atlas-lines.svg");
}

.catalog-map-links a[href*="categories=cables"]::before {
    background-image: url("/assets/icons/atlas-cables.svg");
}

.catalog-map-links a[href*="categories=substations"]::before {
    background-image: url("/assets/icons/atlas-stations.svg");
}

/* OPISY */

.catalog-map-links .atlas-description {
    display: block;
    flex: 1;
    color: #64748b !important;
    font-size: 13px !important;
    font-weight: 400;
    line-height: 1.7;
}

html body .catalog-map-links > div > a::after {
    content: "Otwórz mapę →";
    display: block;
    width: 100%;
    padding-top: 14px;
    margin-top: auto;
    border-top: 1px solid #dce4ee;
    color: #96702d;
    font-size: 13px;
    font-weight: 600;
}

html body .catalog-map-links > div > a:hover {
    background: #f8fafc !important;
    border-color: #c6a46a !important;
}

/* INFORMACJA PRAWNA */

html body .catalog-map-links > p {
    display: block !important;
    padding: 18px 20px !important;
    margin: 20px 0 0 !important;
    background: #f8fafc !important;
    color: #64748b !important;
    border: 1px solid #dce4ee !important;
    border-left: 3px solid #c6a46a !important;
    font-size: 12px !important;
    line-height: 1.8;
}

/* RESPONSYWNOSC */

@media (max-width: 1250px) {
    html body .catalog-map-links > div {
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    }
}

@media (max-width: 600px) {
    html body .catalog-shell .catalog-map-links {
        padding: 14px !important;
    }

    html body .catalog-map-links > h2 {
        margin: -14px -14px 14px !important;
        padding: 18px !important;
    }

    html body .catalog-map-links > div {
        grid-template-columns: minmax(0,1fr) !important;
    }

    html body .catalog-map-links > div > a {
        min-height: 200px;
        padding: 20px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .catalog-map-links a {
        transition: none !important;
    }
}

