/* Dzielnice Rzeszowa – style działu (prefiks .dz, nie kolidują z resztą serwisu).
   Serwis ustawia html { font-size: 10px } i globalne style p/li/h1–h4/strong (header-28.css),
   dlatego rozmiary podajemy w px i nadpisujemy te reguły w obrębie .dz. */
.dz {
  --dz-brand: #36006d;
  --dz-brand-2: #6d4298;
  --dz-brand-soft: #f2eef8;
  --dz-brand-tint: #d9cdea;
  --dz-lime: #b3e229;
  --dz-link: #427c02;
  --dz-link-hover: #2f5a01;
  --dz-text: #1b1d27;
  --dz-muted: #5d5a68;
  --dz-surface: #ffffff;
  --dz-bg: #fbfbfb;
  --dz-border: #e4e0eb;
  --dz-radius: 14px;
  --dz-shadow: 0 1px 2px rgba(27, 0, 55, .05), 0 4px 16px rgba(27, 0, 55, .06);
  --dz-stop: #36006d;
  --dz-post: #c2410c;
  --dz-pharmacy: #0b7a4b;
  color: var(--dz-text);
  font-size: 16px;
  line-height: 1.6;
  padding: 32px 0 48px;
}
.dz-wrap { width: calc(100% - 40px); max-width: 1360px; margin: 0 auto; box-sizing: border-box; }
@media (max-width: 600px) { .dz-wrap { width: calc(100% - 32px); } }
.dz *, .dz *::before, .dz *::after { box-sizing: border-box; }

/* Typografia */
.dz h1 { font-size: clamp(28px, 4.2vw, 44px); line-height: 1.12; font-weight: 800; letter-spacing: -.01em; margin: 6px 0 14px; color: var(--dz-text); }
.dz h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.25; font-weight: 750; margin: 0 0 16px; color: var(--dz-text); scroll-margin-top: 96px; }
.dz h3 { font-size: 19px; line-height: 1.35; font-weight: 700; margin: 24px 0 10px; color: var(--dz-text); scroll-margin-top: 96px; }
.dz p { color: inherit; font-size: 16px; line-height: 1.65; margin: 0 0 14px; }
.dz strong { color: inherit; font-size: inherit; }
.dz ul, .dz ol { font-size: 16px; }
.dz li { color: inherit; line-height: 1.55; margin: 0 0 6px; }
.dz a { color: var(--dz-link); text-decoration: none; }
.dz a:hover { color: var(--dz-link-hover); text-decoration: underline; }
.dz a:focus-visible, .dz button:focus-visible, .dz summary:focus-visible { outline: 3px solid var(--dz-lime); outline-offset: 2px; border-radius: 6px; }
.dz .dz-muted { color: var(--dz-muted); }
.dz .dz-small { color: var(--dz-muted); font-size: 13px; line-height: 1.5; margin: 6px 0 0; }
.dz-section { margin-top: 56px; scroll-margin-top: 90px; }
@media (max-width: 768px) { .dz-section { margin-top: 44px; } }

/* Okruszki */
.dz .dz-breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 6px; padding: 0; margin: 0 0 18px; font-size: 14px; color: var(--dz-muted); }
.dz .dz-breadcrumbs li { margin: 0; line-height: 1.4; }
.dz-breadcrumbs li + li::before { content: "›"; margin-right: 6px; color: #a59fb2; }
.dz .dz-breadcrumbs a { color: var(--dz-muted); }

.dz .dz-preview { background: #fff7d6; border: 1px solid #f0d77a; border-radius: 10px; padding: 10px 14px; font-size: 14px; margin: 0 0 16px; }

/* Nagłówek strony */
.dz-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 380px); gap: 40px; align-items: center; }
.dz-hero--plain { grid-template-columns: 1fr; }
@media (max-width: 900px) { .dz-hero { grid-template-columns: 1fr; gap: 20px; } }
.dz .dz-eyebrow { display: flex; align-items: center; gap: 12px; margin: 0; font-size: 14px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--dz-brand-2); }
.dz-eyebrow__num { flex: none; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 44px; padding: 0 10px; border-radius: 22px; background: var(--dz-brand); color: #fff; font-size: 15px; font-weight: 800; letter-spacing: .03em; box-shadow: 0 0 0 4px var(--dz-lime); }
.dz-eyebrow__sep { color: #a59fb2; margin: 0 2px; }
.dz .dz-lead { font-size: 19px; line-height: 1.6; color: #2c2a36; max-width: 68ch; margin-bottom: 18px; }
@media (max-width: 768px) { .dz .dz-lead { font-size: 17px; } }
.dz .dz-updated { font-size: 13px; color: var(--dz-muted); margin: 14px 0 0; }

.dz-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.dz .dz-jump a { display: inline-flex; align-items: center; min-height: 36px;  color: var(--dz-brand); font-size: 14px; font-weight: 600; text-decoration: underline; transition: background .15s, border-color .15s; padding-right:20px; }
.dz .dz-jump a:hover { color:#6d4298; text-decoration: none; }
@media (max-width: 600px) {
  .dz-jump { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
  .dz-jump::-webkit-scrollbar { display: none; }
  .dz .dz-jump a { flex: none; }
}

/* Mini-mapa Rzeszowa */
.dz-locator { margin: 0; padding: 18px 18px 12px;  }
.dz-locator svg { display: block; width: 100%; height: auto; max-height: 360px; }
.dz-loc { fill: #ebe7f1; stroke: #fff; stroke-width: 1.2; stroke-linejoin: round; transition: fill .15s; }
.dz-loc--nb { fill: var(--dz-brand-tint); }
.dz-locator a:hover .dz-loc, .dz-locator a:focus .dz-loc { fill: var(--dz-lime); }
.dz-loc--current { fill: var(--dz-brand); stroke: var(--dz-lime); stroke-width: 2; }
.dz .dz-locator figcaption { font-size: 13px; color: var(--dz-muted); text-align: center; margin-top: 8px; line-height: 1.4; }
@media (max-width: 900px) {
  .dz-locator { display: flex; align-items: center; gap: 14px; max-width: 520px; padding: 12px 16px; }
  .dz-locator svg { width: 132px; flex: none; max-height: 120px; }
  .dz .dz-locator figcaption { text-align: left; margin: 0; }
}

/* Karta danych */
.dz-facts { margin-top: 32px; background: var(--dz-surface); border: 1px solid var(--dz-border);  box-shadow: var(--dz-shadow); overflow: hidden; }
.dz .dz-facts__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin: 0; }
.dz-fact { padding: 18px 22px; border-right: 1px solid var(--dz-border); border-bottom: 1px solid var(--dz-border); margin: 0 -1px -1px 0; }
.dz .dz-fact dt { font-size: 13px; font-weight: 600; color: var(--dz-muted); text-transform: uppercase; letter-spacing: .03em; margin: 0 0 4px; }
.dz .dz-fact dd { margin: 0; font-size: 24px; line-height: 1.2; font-weight: 800; color: var(--dz-brand); font-variant-numeric: tabular-nums; }
.dz .dz-fact dd small { display: block; font-size: 13px; font-weight: 500; color: var(--dz-muted); margin-top: 4px; }
.dz .dz-fact dt, .dz .dz-fact dd { word-break: normal; overflow-wrap: normal; }
@media (max-width: 600px) {
  .dz .dz-facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dz-fact { padding: 14px 16px; }
  .dz .dz-fact dt { font-size: 11px; }
  .dz .dz-fact dd { font-size: 19px; }
  .dz .dz-fact dd small { font-size: 12px; }
}
.dz-streets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 22px; background: var(--dz-brand-soft); }
.dz-streets__label { font-size: 14px; font-weight: 700; color: var(--dz-brand); }
.dz .dz-streets ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.dz .dz-streets li { margin: 0; padding: 3px 10px; font-size: 14px; background: var(--dz-surface); border: 1px solid var(--dz-brand-tint); border-radius: 999px; }

.dz-photo { margin: 32px 0 0; }
.dz-photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: var(--dz-radius); }
.dz .dz-photo figcaption { font-size: 13px; color: var(--dz-muted); margin-top: 6px; }

/* Opis osiedla + spis treści */
.dz-article-grid { display: grid; grid-template-columns: minmax(0, 760px) minmax(220px, 300px); gap: 56px; justify-content: space-between; margin-top: 48px; }
@media (max-width: 1024px) { .dz-article-grid { grid-template-columns: 1fr; gap: 0; } .dz-toc { display: none; } }
.dz-content { scroll-margin-top: 90px; }
.dz .dz-content h2 { margin: 40px 0 14px; padding-top: 4px; }
.dz .dz-content > h2:first-child { margin-top: 0; }
.dz .dz-content h2::after { content: ""; display: block; width: 48px; height: 4px; border-radius: 2px; background: var(--dz-lime); margin-top: 10px; }
.dz .dz-content p { font-size: 17px; line-height: 1.75; margin-bottom: 16px; }
.dz .dz-content ul, .dz .dz-content ol { padding-left: 22px; margin: 0 0 18px; }
.dz .dz-content li { font-size: 17px; line-height: 1.65; margin-bottom: 8px; }
.dz .dz-content li::marker { color: var(--dz-brand-2); }
.dz .dz-content a { text-decoration: underline; text-decoration-color: rgba(66, 124, 2, .35); text-underline-offset: 3px; }
.dz .dz-content a:hover { text-decoration-color: currentColor; }
@media (max-width: 768px) { .dz .dz-content p, .dz .dz-content li { font-size: 16px; } }

.dz-toc { position: sticky; top: 96px; align-self: start; padding: 18px 20px; background: var(--dz-surface); border: 1px solid var(--dz-border); }
.dz .dz-toc__title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dz-muted); margin: 0 0 8px; }
.dz .dz-toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.dz .dz-toc li { margin: 0; font-size: 14px; line-height: 1.4; }
.dz .dz-toc a { display: block; padding: 7px 0 7px 12px; border-left: 2px solid var(--dz-border); color: var(--dz-text); text-decoration: none; }
.dz .dz-toc a:hover, .dz .dz-toc a.is-active { border-left-color: var(--dz-brand); color: var(--dz-brand); text-decoration: none; }
.dz .dz-toc__extra a { color: var(--dz-muted); }
.dz .dz-toc__extra:first-of-type { margin-top: 0; }

/* Mapa */
.dz-map { position: relative; height: 480px;  border: 1px solid var(--dz-border); background: var(--dz-brand-soft); overflow: hidden; display: flex; align-items: center; justify-content: center; }
@media (max-width: 600px) { .dz-map { height: 380px; } }
.dz-map__shape { position: absolute; inset: 24px; width: calc(100% - 48px); height: calc(100% - 48px); }
.dz-map__shape path { fill: var(--dz-brand-tint); stroke: var(--dz-brand); stroke-width: 1; vector-effect: non-scaling-stroke; }
.dz-map .leaflet-container, .dz-map.is-ready { background: #eef0ec; }
.dz-map-tiles { filter: grayscale(.85) brightness(1.04) contrast(.9); }
.dz-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--dz-brand); color: #fff; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(54, 0, 109, .25); }
.dz-btn:hover { background: var(--dz-brand-2); }
.dz .dz-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 0; margin: 12px 0 0; font-size: 14px; }
.dz .dz-legend li { display: flex; align-items: center; gap: 8px; margin: 0; }
.dz-legend__area { width: 18px; height: 12px; border: 2px solid var(--dz-brand); background: rgba(54, 0, 109, .15); border-radius: 3px; }
.dz-legend__nb { width: 18px; height: 12px; border: 1.5px dashed var(--dz-brand-2); border-radius: 3px; }
.dz-legend__dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.dz-legend__dot--stop { background: var(--dz-stop); }
.dz-legend__dot--post { background: var(--dz-post); }
.dz-legend__dot--pharmacy { background: var(--dz-pharmacy); }
.dz-pin { background: none; border: 0; }
.dz-pin span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .4); }
.leaflet-tooltip.dz-nb-label { background: rgba(255, 255, 255, .8); border: 0; box-shadow: none; color: var(--dz-brand-2); font: 600 12px/1.3 Arial, sans-serif; padding: 1px 6px; border-radius: 4px; }
.leaflet-tooltip.dz-nb-label::before { display: none; }

/* Komunikacja */
.dz-lines { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.dz-line { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; height: 32px; padding: 0 9px; border-radius: 6px; background: var(--line-bg, #12305a); color: var(--line-fg, #fff) !important; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; text-decoration: none !important; border: 1.5px solid var(--line-bg, #12305a); transition: transform .12s; }
a.dz-line:hover { transform: translateY(-1px); filter: brightness(1.1); }
.dz-line--sm { min-width: 34px; height: 24px; padding: 0 6px; font-size: 13px; border-radius: 5px; }
.dz .dz-stops { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.dz .dz-stop { margin: 0; padding: 12px 14px; background: var(--dz-surface); border: 1px solid var(--dz-border); border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.dz .dz-stop__name { font-weight: 700; color: var(--dz-text); display: flex; align-items: center; gap: 8px; }
.dz .dz-stop__name::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--dz-stop); box-shadow: 0 0 0 3px var(--dz-brand-soft); }
.dz .dz-stop__name:hover { color: var(--dz-brand); }
.dz-stop__lines { display: flex; flex-wrap: wrap; gap: 5px; }
.dz .dz-more { font-weight: 700; }
.dz .dz-more::after { content: " →"; }

/* Poczty i apteki */
.dz-services { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 800px) { .dz-services { grid-template-columns: 1fr; gap: 8px; } }
.dz .dz-services h3 { margin-top: 0; }
.dz .dz-cards { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 10px; }
.dz .dz-card { margin: 0; padding: 14px 16px 14px 18px; background: var(--dz-surface); border: 1px solid var(--dz-border); border-left: 4px solid var(--dz-post);  display: flex; flex-direction: column; gap: 2px; }
.dz .dz-card--pharmacy { border-left-color: var(--dz-pharmacy); }
.dz .dz-card__title { font-weight: 700; color: var(--dz-text); }
.dz .dz-card__title:hover { color: var(--dz-brand); }
.dz-card__addr { font-size: 15px; }
.dz-card__meta { font-size: 14px; color: var(--dz-muted); }
.dz-tag { display: inline-block; font-size: 12px; font-weight: 800; padding: 0 7px; border-radius: 999px; background: #e3f3eb; color: var(--dz-pharmacy); margin-right: 4px; }

/* FAQ */
.dz-faq details { border: 1px solid var(--dz-border); padding: 0 18px; margin-bottom: 10px; background: var(--dz-surface); }
.dz-faq details[open] { border-color: var(--dz-brand-tint); box-shadow: var(--dz-shadow); }
.dz-faq summary { cursor: pointer; padding: 16px 36px 16px 0; list-style: none; position: relative; }
.dz-faq summary::-webkit-details-marker { display: none; }
.dz-faq summary::marker { content: ""; }
.dz-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--dz-brand); border-bottom: 2px solid var(--dz-brand); transform: rotate(45deg); transition: transform .2s ease, margin-top .2s ease; }
.dz-faq details[open] > summary::after { transform: rotate(-135deg); margin-top: -2px; }
.dz .dz-faq summary h3 { display: inline; font-size: 17px; margin: 0; }
.dz-faq summary:hover h3 { color: var(--dz-brand); }
.dz .dz-faq details p { margin: 0 0 16px; }

/* Sąsiednie osiedla */
.dz .dz-tiles { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.dz .dz-tiles li { margin: 0; }
.dz .dz-tile { height: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--dz-surface); border: 1px solid var(--dz-border);  color: var(--dz-text); text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dz a.dz-tile:hover { border-color: var(--dz-brand-tint); box-shadow: var(--dz-shadow); transform: translateY(-2px); text-decoration: none; color: var(--dz-text); }
.dz-tile__shape { flex: none; width: 58px; height: 58px; }
.dz-tile__shape path { fill: var(--dz-brand-tint); stroke: var(--dz-brand); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .15s; }
a.dz-tile:hover .dz-tile__shape path { fill: var(--dz-lime); }
.dz-tile__body { display: flex; flex-direction: column; min-width: 0; }
.dz-tile__name { font-weight: 750; font-size: 16px; line-height: 1.3; }
a.dz-tile .dz-tile__name { color: var(--dz-brand); }
.dz-tile__meta { font-size: 13px; color: var(--dz-muted); }
.dz-tile__soon { font-size: 12px; color: #8a8496; font-style: italic; }
.dz-tile--soon { background: #faf9fc; }

/* Wszystkie osiedla */
.dz-all__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 28px; padding: 24px 28px; background: var(--dz-surface); border: 1px solid var(--dz-border); }
.dz .dz-all h3 { font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--dz-brand-2); margin: 4px 0 8px; }
.dz .dz-all ul { list-style: none; margin: 0 0 12px; padding: 0; }
.dz .dz-all li { margin: 0; font-size: 15px; line-height: 1.35; padding: 4px 0; }
.dz .dz-all li.is-current span { font-weight: 800; color: var(--dz-brand); }
.dz .dz-all li.is-current span::before { content: "● "; color: var(--dz-lime); }
.dz-all > p { margin-top: 14px; }

.dz .dz-links { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.dz .dz-links li { margin: 0; }

.dz-sources { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--dz-border); }
.dz .dz-sources p { font-size: 13px; line-height: 1.6; color: var(--dz-muted); }
.dz .dz-sources strong { color: var(--dz-text); }

/* Zastępczy nagłówek/stopka (bez plików serwisu) */
.dz-fallback-header, .dz-fallback-footer { max-width: 1360px; margin: 0 auto; padding: 16px 20px; font: 16px/1.5 Arial, sans-serif; }
.dz-fallback-header { border-bottom: 1px solid #e4e0eb; font-weight: 700; }

@media (prefers-reduced-motion: reduce) {
  .dz *, .dz *::before, .dz *::after { transition: none !important; }
}
@media print {
  .dz-map, .dz-legend, .dz-jump, .dz-toc, .dz-locator, .dz-all { display: none !important; }
}
