.p7-local-map,
.p7-local-map *,
.p7-local-map *::before,
.p7-local-map *::after {
    box-sizing: border-box;
}

.p7-local-map {
    --p7m-navy: #10233f;
    --p7m-navy-deep: #082342;
    --p7m-red: #e21a2c;
    --p7m-red-light: #f02c3e;
    --p7m-text: #10233f;
    --p7m-muted: #66758e;
    --p7m-line: #e5eaf1;
    --p7m-soft: #f6f8fb;
    width: 100%;
    max-width: 1180px;
    margin: 30px auto 36px;
    color: var(--p7m-text);
    font-family: "Inter", "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

/* ==================================================
   NAGŁÓWEK
   ================================================== */

.p7-local-map__header {
    margin: 0 0 18px;
}

.p7-local-map__header h2 {
    position: relative;
    margin: 0 0 6px !important;
    padding-left: 18px;
    color: var(--p7m-navy) !important;
    font-family: inherit !important;
    font-size: clamp(25px, 3vw, 36px) !important;
    font-weight: 850 !important;
    line-height: 1.1 !important;
    letter-spacing: -.025em !important;
}

.p7-local-map__header h2::before {
    content: "";
    position: absolute;
    top: .05em;
    bottom: .05em;
    left: 0;
    width: 4px;
    border-radius: 10px;
    background: var(--p7m-red);
}

.p7-local-map__header p {
    margin: 0 !important;
    padding-left: 18px;
    color: #526783;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.45;
}

/* ==================================================
   GŁÓWNY MODUŁ
   ================================================== */

.p7-local-map__panel {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
    gap: clamp(24px, 3vw, 38px);
    align-items: stretch;
    padding: clamp(22px, 2.6vw, 32px);
    overflow: hidden;
    border: 1px solid rgba(16, 35, 63, .08);
    border-radius: 20px;
    background:
        radial-gradient(circle at 8% 32%, rgba(226, 26, 44, .045), transparent 22%),
        radial-gradient(circle at 39% 80%, rgba(16, 35, 63, .045), transparent 27%),
        linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
    box-shadow: 0 16px 42px rgba(15, 35, 63, .10);
}

.p7-local-map__panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: .18;
    background-image:
        radial-gradient(circle, rgba(16, 35, 63, .13) 1px, transparent 1.2px),
        linear-gradient(125deg, transparent 0 48%, rgba(16, 35, 63, .04) 49% 49.3%, transparent 50% 100%);
    background-size: 18px 18px, 100% 100%;
    mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .56) 42%, transparent 68%);
}

/* ==================================================
   LEWA KOLUMNA – MAPA
   ================================================== */

.p7-local-map__map-column {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    min-height: 500px;
    flex-direction: column;
    justify-content: flex-start;
}

.p7-local-map__instruction {
    position: absolute;
    top: 2px;
    left: 0;
    z-index: 5;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--p7m-navy);
}

.p7-local-map__instruction > span {
    display: inline-flex;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    color: var(--p7m-red);
}

.p7-local-map__instruction svg,
.p7-local-news__archive svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.p7-local-map__instruction strong {
    padding-top: 2px;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.22;
}

.p7-local-map__svg {
    display: block;
    width: min(100%, 440px);
    height: 430px;
    margin: 0 auto 4px;
    overflow: visible;
}

.p7-local-map__region {
    cursor: pointer;
    outline: none;
}

.p7-local-map__region path {
    fill: var(--p7m-navy-deep);
    stroke: #ffffff;
    stroke-width: 8;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
    transition: fill .2s ease, filter .2s ease, transform .2s ease;
    transform-box: fill-box;
    transform-origin: center;
}

.p7-local-map__region text {
    fill: #ffffff;
    font-family: inherit;
    font-size: 35px;
    font-weight: 850;
    letter-spacing: .018em;
    text-anchor: middle;
    pointer-events: none;
    paint-order: stroke;
    stroke: rgba(7, 25, 45, .28);
    stroke-width: 2px;
}

.p7-local-map__region:hover path,
.p7-local-map__region:focus path,
.p7-local-map__region.is-active path {
    fill: var(--p7m-red);
    filter: drop-shadow(0 12px 15px rgba(226, 26, 44, .22));
    transform: scale(1.008);
}

.p7-local-map__region:focus-visible path {
    stroke-width: 12;
}

.p7-local-map__legend {
    position: absolute;
    bottom: 54px;
    left: 0;
    z-index: 5;
    display: grid;
    gap: 7px;
    min-width: 154px;
    padding: 10px 12px;
    border: 1px solid var(--p7m-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 7px 18px rgba(16, 35, 63, .07);
    color: #334a69;
    font-size: 11px;
    font-weight: 550;
}

.p7-local-map__legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.p7-local-map__legend i {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--p7m-navy-deep);
}

.p7-local-map__legend i.is-active {
    background: var(--p7m-red);
}

.p7-local-map__pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 4px;
}

.p7-local-map__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 31px;
    padding: 6px 15px;
    border: 0;
    border-radius: 999px;
    background: var(--p7m-navy-deep);
    box-shadow: 0 4px 10px rgba(8, 35, 66, .12);
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.p7-local-map__pill:hover,
.p7-local-map__pill:focus,
.p7-local-map__pill.is-active {
    background: var(--p7m-red);
    box-shadow: 0 6px 14px rgba(226, 26, 44, .18);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.p7-local-map__pill:focus-visible {
    outline: 3px solid rgba(226, 26, 44, .25);
    outline-offset: 2px;
}

/* ==================================================
   PRAWA KOLUMNA – WIADOMOŚCI
   ================================================== */

.p7-local-news {
    position: relative;
    z-index: 2;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding-left: clamp(20px, 2.6vw, 34px);
    border-left: 1px solid rgba(16, 35, 63, .12);
}

.p7-local-news__header {
    margin: 0 0 16px;
}

.p7-local-news__header h3 {
    margin: 0 !important;
    color: var(--p7m-navy) !important;
    font-family: inherit !important;
    font-size: clamp(21px, 2.2vw, 29px) !important;
    font-weight: 850 !important;
    line-height: 1.12 !important;
    letter-spacing: -.02em !important;
}

.p7-local-news__header h3 span {
    color: var(--p7m-red);
}

.p7-local-news__header > i {
    display: block;
    width: 45px;
    height: 3px;
    margin-top: 10px;
    border-radius: 99px;
    background: var(--p7m-red);
}

.p7-local-news__items {
    display: grid;
    gap: 13px;
    transition: opacity .18s ease;
}

.p7-local-news.is-loading .p7-local-news__items {
    opacity: .28;
}

.p7-local-news__item {
    display: grid;
    grid-template-columns: minmax(110px, 38%) minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    min-height: 112px;
    margin: 0;
}

.p7-local-news__thumb {
    display: block;
    height: 108px;
    overflow: hidden;
    border-radius: 10px;
    background: #eaf0f6;
    text-decoration: none !important;
}

.p7-local-news__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.p7-local-news__thumb:hover img,
.p7-local-news__thumb:focus img {
    transform: scale(1.035);
}

.p7-local-news__fallback {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #eef3f8, #dce6f1);
    color: var(--p7m-navy);
}

.p7-local-news__fallback b {
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -.04em;
}

.p7-local-news__fallback b span {
    color: var(--p7m-red);
}

.p7-local-news__fallback small {
    margin-top: 2px;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .13em;
}

.p7-local-news__copy {
    min-width: 0;
}

.p7-local-news__category {
    display: inline-flex;
    max-width: 100%;
    margin-bottom: 6px;
    padding: 4px 7px;
    overflow: hidden;
    border-radius: 4px;
    background: var(--p7m-navy);
    color: #ffffff;
    font-size: 9px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .02em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.p7-local-news__item:nth-child(2) .p7-local-news__category,
.p7-local-news__item:nth-child(3) .p7-local-news__category {
    background: var(--p7m-red);
}

.p7-local-news__copy h4 {
    display: -webkit-box;
    margin: 0 0 8px !important;
    overflow: hidden;
    color: var(--p7m-navy) !important;
    font-family: inherit !important;
    font-size: 15px !important;
    font-weight: 750 !important;
    line-height: 1.28 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.p7-local-news__copy h4 a {
    color: inherit !important;
    text-decoration: none !important;
}

.p7-local-news__copy h4 a:hover,
.p7-local-news__copy h4 a:focus {
    color: var(--p7m-red) !important;
}

.p7-local-news__copy time {
    color: #5e6e84;
    font-size: 11px;
    font-weight: 500;
}

.p7-local-news__archive {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 43px;
    margin-top: auto;
    padding: 10px 16px;
    border-radius: 7px;
    background: var(--p7m-navy-deep);
    color: #ffffff !important;
    font-size: 12.5px;
    font-weight: 750;
    text-align: center;
    text-decoration: none !important;
    transition: background-color .18s ease, transform .18s ease;
}

.p7-local-news__archive svg {
    width: 18px;
    height: 18px;
}

.p7-local-news__archive:hover,
.p7-local-news__archive:focus {
    background: var(--p7m-red);
    color: #ffffff !important;
    transform: translateY(-1px);
}

.p7-local-news__status {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.p7-local-news__empty {
    display: flex;
    min-height: 310px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    border: 1px dashed #cfd8e5;
    border-radius: 12px;
    background: rgba(246, 248, 251, .85);
    text-align: center;
}

.p7-local-news__empty strong {
    color: var(--p7m-navy);
    font-size: 16px;
}

.p7-local-news__empty span {
    max-width: 310px;
    margin-top: 7px;
    color: var(--p7m-muted);
    font-size: 12px;
    line-height: 1.45;
}

.p7-local-news__loading {
    position: absolute;
    inset: 72px 0 52px clamp(20px, 2.6vw, 34px);
    z-index: 5;
    display: grid;
    align-content: start;
    gap: 13px;
    pointer-events: none;
}

.p7-local-news__loading[hidden] {
    display: none !important;
}

.p7-local-news__loading span {
    display: block;
    height: 112px;
    border-radius: 10px;
    background: linear-gradient(90deg, #eef2f6 22%, #f8fafc 38%, #eef2f6 58%);
    background-size: 220% 100%;
    animation: p7-local-shimmer 1.15s linear infinite;
}

@keyframes p7-local-shimmer {
    to { background-position: -220% 0; }
}

/* ==================================================
   TABLET I TELEFON
   ================================================== */

@media (max-width: 980px) {
    .p7-local-map__panel {
        grid-template-columns: minmax(0, 1fr) minmax(315px, .92fr);
        gap: 24px;
        padding: 24px;
    }

    .p7-local-map__map-column {
        min-height: 475px;
    }

    .p7-local-map__svg {
        height: 405px;
    }

    .p7-local-map__legend {
        bottom: 50px;
    }

    .p7-local-map__pill {
        padding-inline: 12px;
    }

    .p7-local-news {
        padding-left: 22px;
    }

    .p7-local-news__item {
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 12px;
    }
}

@media (max-width: 820px) {
    .p7-local-map__panel {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .p7-local-map__map-column {
        min-height: 520px;
    }

    .p7-local-map__svg {
        width: min(100%, 500px);
        height: 440px;
    }

    .p7-local-map__legend {
        bottom: 54px;
    }

    .p7-local-news {
        padding-top: 22px;
        padding-left: 0;
        border-top: 1px solid rgba(16, 35, 63, .12);
        border-left: 0;
    }

    .p7-local-news__items {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .p7-local-news__item {
        display: block;
        min-height: 0;
    }

    .p7-local-news__thumb {
        height: 145px;
        margin-bottom: 10px;
    }

    .p7-local-news__archive {
        margin-top: 18px;
    }

    .p7-local-news__loading {
        inset: 82px 0 60px 0;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .p7-local-news__loading span {
        height: 255px;
    }
}

@media (max-width: 600px) {
    .p7-local-map {
        margin: 22px auto 28px;
    }

    .p7-local-map__header {
        margin-bottom: 14px;
    }

    .p7-local-map__header h2 {
        padding-left: 14px;
        font-size: 27px !important;
    }

    .p7-local-map__header p {
        padding-left: 14px;
        font-size: 13px;
    }

    .p7-local-map__panel {
        gap: 18px;
        padding: 18px 12px 20px;
        border-radius: 16px;
    }

    .p7-local-map__map-column {
        min-height: 475px;
    }

    .p7-local-map__instruction {
        position: static;
        margin: 0 4px -24px;
    }

    .p7-local-map__instruction > span {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    .p7-local-map__instruction strong {
        font-size: 12px;
    }

    .p7-local-map__svg {
        width: 100%;
        height: 410px;
    }

    .p7-local-map__region text {
        font-size: 39px;
    }

    .p7-local-map__legend {
        position: static;
        width: fit-content;
        min-width: 0;
        margin: -14px auto 0;
        padding: 8px 10px;
        font-size: 10.5px;
    }

    .p7-local-map__pills {
        flex-wrap: nowrap;
        justify-content: flex-start;
        margin-right: -12px;
        margin-left: -12px;
        padding: 10px 12px 2px;
        overflow-x: auto;
        scrollbar-width: thin;
        scroll-snap-type: x proximity;
    }

    .p7-local-map__pill {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }

    .p7-local-news__header h3 {
        font-size: 23px !important;
    }

    .p7-local-news__items {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .p7-local-news__item {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 12px;
    }

    .p7-local-news__thumb {
        height: 104px;
        margin-bottom: 0;
    }

    .p7-local-news__copy h4 {
        font-size: 14px !important;
        -webkit-line-clamp: 3;
    }

    .p7-local-news__loading {
        inset: 76px 0 58px;
        grid-template-columns: 1fr;
    }

    .p7-local-news__loading span {
        height: 104px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .p7-local-map *,
    .p7-local-map *::before,
    .p7-local-map *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* ==================================================
   PUNKT7 MAPA 2.3 – WYGLĄD PREMIUM Z EDYTOWALNYM MENU
   ================================================== */

.p7-local-map {
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid rgba(16, 35, 63, .10);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .995), rgba(252, 253, 255, .995)),
        radial-gradient(circle at 12% 18%, rgba(226, 26, 44, .035), transparent 30%);
    box-shadow: 0 14px 38px rgba(15, 35, 63, .075);
}

.p7-local-map__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
}

.p7-local-map__heading {
    min-width: 0;
}

.p7-local-map__heading h2 {
    white-space: nowrap;
}

.p7-local-map__quick-nav {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: stretch;
    max-width: 100%;
    overflow: hidden;
    border: 1px solid rgba(8, 35, 66, .10);
    border-radius: 999px;
    background: var(--p7m-navy-deep);
    box-shadow: 0 8px 20px rgba(8, 35, 66, .13);
}

.p7-local-map__quick-link {
    position: relative;
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 17px;
    color: rgba(255, 255, 255, .94) !important;
    font-size: 12.5px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    white-space: nowrap;
    transition: background-color .18s ease, color .18s ease, transform .18s ease;
}

.p7-local-map__quick-link + .p7-local-map__quick-link::before {
    content: "";
    position: absolute;
    top: 11px;
    bottom: 11px;
    left: 0;
    width: 1px;
    background: rgba(255, 255, 255, .15);
}

.p7-local-map__quick-link.is-accent {
    background: linear-gradient(135deg, var(--p7m-red-light), var(--p7m-red));
    color: #fff !important;
}

.p7-local-map__quick-link:hover,
.p7-local-map__quick-link:focus {
    background: rgba(255, 255, 255, .10);
    color: #fff !important;
}

.p7-local-map__quick-link.is-accent:hover,
.p7-local-map__quick-link.is-accent:focus {
    background: linear-gradient(135deg, #f53a4b, #c80f20);
}

.p7-local-map__quick-link:focus-visible {
    outline: 3px solid rgba(226, 26, 44, .26);
    outline-offset: 2px;
}

.p7-local-map__quick-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
}

.p7-local-map__quick-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.p7-local-map__panel {
    gap: clamp(25px, 3vw, 38px);
    padding: clamp(20px, 2.2vw, 28px);
    border-color: rgba(16, 35, 63, .095);
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(15, 35, 63, .065);
}

.p7-local-map__map-column {
    min-height: 495px;
}

.p7-local-map__svg {
    width: min(100%, 420px);
    height: 355px;
    margin-bottom: 2px;
}

.p7-local-map__region path {
    stroke: rgba(255, 255, 255, .94);
    stroke-width: 2.25;
    filter: drop-shadow(0 5px 7px rgba(8, 35, 66, .10));
}

.p7-local-map__region:hover path,
.p7-local-map__region:focus path,
.p7-local-map__region.is-active path {
    filter: drop-shadow(0 9px 12px rgba(226, 26, 44, .20));
    transform: scale(1.004);
}

.p7-local-map__region:focus-visible path {
    stroke-width: 3.4;
}

.p7-local-map__region text {
    font-size: 33px;
    stroke-width: 1px;
}

.p7-local-map__legend {
    bottom: 118px;
    min-width: 142px;
    padding: 9px 11px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(16, 35, 63, .055);
}

.p7-local-map__pills {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    width: 100%;
    margin-top: auto;
    padding-top: 8px;
}

.p7-local-map__pill {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr) 15px;
    gap: 9px;
    min-width: 0;
    min-height: 52px;
    align-items: center;
    justify-content: initial;
    padding: 7px 9px;
    border: 1px solid rgba(16, 35, 63, .10);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 5px 14px rgba(16, 35, 63, .065);
    color: var(--p7m-navy) !important;
    font-size: 11.5px;
    font-weight: 750;
    text-align: left;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.p7-local-map__pill-icon {
    display: inline-flex;
    width: 35px;
    height: 35px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--p7m-navy-deep);
    color: #fff;
}

.p7-local-map__pill-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.p7-local-map__pill-label {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p7-local-map__pill-arrow {
    display: inline-flex;
    width: 15px;
    height: 15px;
    color: currentColor;
}

.p7-local-map__pill-arrow svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.25;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.p7-local-map__pill:hover,
.p7-local-map__pill:focus {
    border-color: rgba(226, 26, 44, .38);
    background: #fff;
    color: var(--p7m-red) !important;
    box-shadow: 0 8px 18px rgba(16, 35, 63, .085);
    transform: translateY(-1px);
}

.p7-local-map__pill.is-active {
    border-color: var(--p7m-red);
    background: linear-gradient(180deg, #fff, #fffafb);
    color: var(--p7m-red) !important;
    box-shadow: 0 8px 20px rgba(226, 26, 44, .11);
}

.p7-local-map__pill:hover .p7-local-map__pill-icon,
.p7-local-map__pill:focus .p7-local-map__pill-icon,
.p7-local-map__pill.is-active .p7-local-map__pill-icon {
    background: var(--p7m-red);
    color: #fff;
}

.p7-local-news__items {
    gap: 11px;
}

.p7-local-news__item {
    min-height: 106px;
    padding: 9px;
    border: 1px solid rgba(16, 35, 63, .085);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 16px rgba(16, 35, 63, .055);
}

.p7-local-news__thumb {
    height: 96px;
    border-radius: 8px;
}

.p7-local-news__category,
.p7-local-news__item:nth-child(2) .p7-local-news__category,
.p7-local-news__item:nth-child(3) .p7-local-news__category {
    border: 1px solid rgba(226, 26, 44, .14);
    background: #fff0f2;
    color: var(--p7m-red);
}

.p7-local-news__copy time {
    position: relative;
    padding-left: 17px;
}

.p7-local-news__copy time::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 11px;
    height: 11px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    transform: translateY(-50%);
}

.p7-local-news__copy time::after {
    content: "";
    position: absolute;
    top: calc(50% - 2px);
    left: 2px;
    width: 7px;
    border-top: 1.5px solid currentColor;
}

@media (max-width: 1100px) {
    .p7-local-map__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
    }

    .p7-local-map__quick-nav {
        align-self: flex-end;
    }

    .p7-local-map__heading h2 {
        white-space: normal;
    }
}

@media (max-width: 980px) {
    .p7-local-map__pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .p7-local-map__legend {
        bottom: 182px;
    }

    .p7-local-map__map-column {
        min-height: 555px;
    }
}

@media (max-width: 820px) {
    .p7-local-map__quick-nav {
        width: 100%;
        align-self: stretch;
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .p7-local-map__quick-link {
        flex: 1 0 auto;
    }

    .p7-local-map__map-column {
        min-height: 535px;
    }

    .p7-local-map__legend {
        bottom: 176px;
    }

    .p7-local-news__item {
        padding: 8px;
    }
}

@media (max-width: 600px) {
    .p7-local-map {
        padding: 16px 12px 18px;
        border-radius: 17px;
    }

    .p7-local-map__quick-nav {
        border-radius: 12px;
    }

    .p7-local-map__quick-link {
        min-height: 43px;
        padding: 9px 13px;
        font-size: 11.5px;
    }

    .p7-local-map__panel {
        padding-inline: 12px;
    }

    .p7-local-map__map-column {
        min-height: 620px;
    }

    .p7-local-map__svg {
        height: 375px;
    }

    .p7-local-map__legend {
        position: static;
        margin: -8px auto 4px;
    }

    .p7-local-map__pills {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        padding: 8px 0 0;
        overflow: visible;
    }

    .p7-local-map__pill {
        grid-template-columns: 32px minmax(0, 1fr) 14px;
        min-height: 48px;
        padding: 6px 8px;
        font-size: 11px;
    }

    .p7-local-map__pill-icon {
        width: 32px;
        height: 32px;
    }

    .p7-local-map__pill-icon svg {
        width: 20px;
        height: 20px;
    }

    .p7-local-news__item {
        grid-template-columns: 108px minmax(0, 1fr);
    }
}

/* ==================================================
   PUNKT7 MAPA 2.3.1 – PIONOWY WYBÓR GMIN I WIĘKSZA MAPA
   ================================================== */

/* Cieńsze, subtelne granice mapy i wyśrodkowane etykiety. */
.p7-local-map__region path {
    stroke-width: 1.65px;
    filter: none;
}

.p7-local-map__region text {
    font-size: 42px;
    dominant-baseline: middle;
    paint-order: stroke fill;
    stroke: rgba(5, 24, 46, .38);
    stroke-width: 1.35px;
    stroke-linejoin: round;
}

.p7-local-map__region[data-p7-map-slug="szczurowa"] text,
.p7-local-map__region[data-p7-map-slug="borzecin"] text {
    font-size: 39px;
}

.p7-local-map__region:hover path,
.p7-local-map__region:focus path,
.p7-local-map__region.is-active path {
    filter: drop-shadow(0 7px 10px rgba(226, 26, 44, .16));
    transform: scale(1.004);
}

.p7-local-map__region:focus-visible path {
    stroke-width: 2.8px;
}

/* Desktop: menu gmin pionowo po lewej, mapa większa pośrodku. */
@media (min-width: 981px) {
    .p7-local-map__panel {
        grid-template-columns: minmax(0, 1.32fr) minmax(350px, .82fr);
        gap: clamp(24px, 2.6vw, 34px);
    }

    .p7-local-map__map-column {
        display: grid;
        grid-template-columns: 156px minmax(0, 1fr);
        grid-template-rows: auto minmax(0, 1fr) auto;
        column-gap: 18px;
        min-height: 500px;
        align-items: stretch;
    }

    .p7-local-map__instruction {
        position: static;
        grid-column: 1;
        grid-row: 1;
        align-self: start;
        margin: 1px 0 10px;
    }

    .p7-local-map__instruction > span {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .p7-local-map__instruction strong {
        font-size: 12px;
        line-height: 1.23;
    }

    .p7-local-map__svg {
        grid-column: 2;
        grid-row: 1 / 4;
        align-self: center;
        width: min(100%, 485px);
        height: 475px;
        margin: 0 auto;
    }

    .p7-local-map__pills {
        grid-column: 1;
        grid-row: 2;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        justify-content: stretch;
        gap: 7px;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .p7-local-map__pill,
    .p7-local-map__pill:hover,
    .p7-local-map__pill:focus,
    .p7-local-map__pill.is-active {
        display: grid;
        grid-template-columns: 34px minmax(0, 1fr) 14px;
        gap: 8px;
        width: 100%;
        min-height: 45px;
        padding: 5px 9px 5px 7px;
        border: 1px solid rgba(16, 35, 63, .11);
        border-radius: 10px;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 5px 13px rgba(16, 35, 63, .065);
        color: var(--p7m-navy) !important;
        transform: none;
    }

    .p7-local-map__pill:hover,
    .p7-local-map__pill:focus {
        border-color: rgba(226, 26, 44, .38);
        box-shadow: 0 7px 16px rgba(16, 35, 63, .09);
        color: var(--p7m-red) !important;
        transform: translateX(2px);
    }

    .p7-local-map__pill.is-active,
    .p7-local-map__pill.is-active:hover,
    .p7-local-map__pill.is-active:focus {
        border-color: var(--p7m-red);
        background: #fff;
        box-shadow: 0 7px 17px rgba(226, 26, 44, .12);
        color: var(--p7m-red) !important;
    }

    .p7-local-map__pill-icon {
        display: inline-flex;
        width: 34px;
        height: 34px;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        background: var(--p7m-navy-deep);
        color: #fff;
    }

    .p7-local-map__pill.is-active .p7-local-map__pill-icon,
    .p7-local-map__pill:hover .p7-local-map__pill-icon,
    .p7-local-map__pill:focus .p7-local-map__pill-icon {
        background: var(--p7m-red);
    }

    .p7-local-map__pill-icon svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .p7-local-map__pill-label {
        display: block;
        min-width: 0;
        overflow: visible;
        font-size: 11.5px;
        font-weight: 750;
        line-height: 1.1;
        text-align: left;
        text-overflow: clip;
        white-space: nowrap;
    }

    .p7-local-map__pill-arrow {
        display: inline-flex;
        width: 14px;
        height: 14px;
        align-items: center;
        justify-content: center;
        color: currentColor;
    }

    .p7-local-map__pill-arrow svg {
        width: 14px;
        height: 14px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2.2;
        stroke-linecap: round;
        stroke-linejoin: round;
    }

    .p7-local-map__legend {
        position: static;
        grid-column: 1;
        grid-row: 3;
        align-self: end;
        min-width: 0;
        width: 100%;
        margin-top: 10px;
        padding: 9px 10px;
        border-radius: 10px;
        font-size: 10.5px;
    }
}

/* Na mniejszych ekranach pozostaje wygodny układ adaptacyjny. */
@media (min-width: 821px) and (max-width: 980px) {
    .p7-local-map__pills {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .p7-local-map__pill {
        min-width: 0;
        padding-inline: 8px;
    }

    .p7-local-map__pill-label {
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
    }
}
