/* GTA VI HUB — nocne Vice City: grafit, ciepła biel, różowy neon, turkus. */

@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 400; font-display: swap; src: url(../fonts/manrope-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 600; font-display: swap; src: url(../fonts/manrope-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 700; font-display: swap; src: url(../fonts/manrope-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-ext-800-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+A720-A7FF; }
@font-face { font-family: "Manrope"; font-weight: 800; font-display: swap; src: url(../fonts/manrope-latin-800-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url(../fonts/dm-serif-display-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-02AF, U+1E00-1EFF, U+A720-A7FF; }
@font-face { font-family: "DM Serif Display"; font-weight: 400; font-display: swap; src: url(../fonts/dm-serif-display-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+20AC; }

:root {
	--bg: #101216;
	--panel: #191C22;
	--panel-2: #21252D;
	--line: #2C313B;
	--text: #F6F3EC;
	--muted: #A7ABB4;
	--pink: #FF70A2;
	--teal: #54CFC8;
	--danger: #FF8A7A;
	--radius: 12px;
	--top-h: 60px;
	--wrap: 1120px;
	--font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--serif: "DM Serif Display", Georgia, serif;
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--text); text-decoration-color: rgba(246, 243, 236, .35); text-underline-offset: 3px; }
a:hover { color: var(--pink); text-decoration-color: currentColor; }
h1, h2, h3 { text-wrap: balance; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); font-weight: 800; }
h2 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--pink); color: var(--bg); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--text); color: var(--bg); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- Nagłówek ---------- */
.top { position: sticky; top: 0; z-index: 500; background: rgba(16, 18, 22, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top__inner { max-width: 1400px; margin: 0 auto; height: var(--top-h); display: flex; align-items: center; gap: 16px; padding: 0 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: 0 0 auto; }
.logo__mark { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(180deg, var(--pink) 0 50%, transparent 50%), repeating-linear-gradient(180deg, var(--pink) 0 3px, transparent 3px 6px); }
.logo__text { font: 800 1.12rem/1 var(--font); letter-spacing: .04em; white-space: nowrap; }
.logo__hub { font-weight: 800; color: var(--bg); background: var(--pink); padding: 3px 6px 2px; border-radius: 5px; margin-left: 2px; letter-spacing: .06em; }
.nav { margin-left: auto; }
.nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: .95rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--panel); }
.top__tools { display: flex; align-items: center; gap: 8px; }
.lang-switch { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-switch__item { min-width: 40px; min-height: 34px; display: grid; place-items: center; border-radius: 999px; font-weight: 700; font-size: .85rem; text-decoration: none; color: var(--muted); }
.lang-switch__item.is-active { background: var(--pink); color: var(--bg); }
.lang-switch__item:not(.is-active):hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 1px solid var(--line); color: var(--text); width: 42px; height: 42px; border-radius: 10px; cursor: pointer; place-items: center; }

@media (max-width: 1100px) {
	.menu-btn { display: grid; }
	.top__tools { margin-left: auto; }
	.nav { position: fixed; inset: var(--top-h) 0 auto 0; background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px; display: none; }
	.nav.is-open { display: block; }
	.nav ul { flex-direction: column; }
	.nav a { padding: 14px 12px; font-size: 1.05rem; }
}

/* ---------- Przyciski i pola ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font: 700 1rem/1 var(--font); text-decoration: none; cursor: pointer; border: 1px solid transparent; }
.btn--primary { background: var(--pink); color: var(--bg); }
.btn--primary:hover { background: #ff8bb4; color: var(--bg); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--text); color: var(--text); }
.btn--danger { color: var(--danger); border-color: rgba(255, 138, 122, .4); background: transparent; }
.btn--danger:hover { color: var(--bg); background: var(--danger); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn--block { width: 100%; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--text); cursor: pointer; font-size: 1.4rem; line-height: 1; }
.icon-btn:hover { border-color: var(--text); }
.check { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; cursor: pointer; }
.check input, .layer input { width: 20px; height: 20px; accent-color: var(--pink); }
.field { display: grid; gap: 6px; margin: 12px 0; font-weight: 600; font-size: .92rem; }
.field--inline { display: inline-grid; margin: 0; }
select, input[type=search], input[type=text] { font: inherit; color: var(--text); background: var(--panel-2); border: 1px solid var(--line); border-radius: 10px; min-height: 44px; padding: 0 12px; }

/* ---------- Wyszukiwarka ---------- */
.search { position: relative; display: flex; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 4px 4px 4px 44px; }
.search:focus-within { border-color: var(--teal); }
.search__icon { position: absolute; left: 14px; color: var(--muted); }
.search input { flex: 1; min-width: 0; border: 0; background: none; min-height: 46px; padding: 0 8px 0 0; font-size: 1rem; }
.search input:focus { outline: none; }
.search__submit { border: 0; background: var(--panel-2); color: var(--text); font: 700 .95rem var(--font); border-radius: 10px; min-height: 44px; padding: 0 16px; cursor: pointer; }
.search__submit:hover { background: var(--line); }
.search--large { padding-left: 48px; }
.search--large input { min-height: 54px; font-size: 1.05rem; }
.search__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; list-style: none; margin: 0; padding: 6px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .5); max-height: 60vh; overflow: auto; }
.search__list li a, .search__list li > span { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; text-decoration: none; }
.search__list li[aria-selected=true] a, .search__list li a:hover { background: var(--panel-2); color: var(--text); }
.search__type { margin-left: auto; color: var(--muted); font-size: .8rem; }

/* ---------- Strona główna ---------- */
.hero { position: relative; min-height: min(78vh, 720px); display: flex; align-items: flex-end; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 40%; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 18, 22, .15) 0%, rgba(16, 18, 22, .35) 45%, rgba(16, 18, 22, .94) 78%, var(--bg) 100%); }
.hero__inner { position: relative; width: 100%; max-width: 760px; margin: 0 auto; padding: 120px 20px 48px; }
.hero__title { font-size: clamp(2rem, 1.3rem + 3.4vw, 3.4rem); margin-bottom: 12px; }
.hero__lead { font-size: 1.1rem; color: #D9D6CF; margin-bottom: 20px; max-width: 46ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; color: var(--teal); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
@media (max-width: 600px) {
	.hero { min-height: 0; }
	.hero__inner { padding: 72px 16px 28px; }
	.hero__actions .btn { flex: 1 1 140px; }
}

.section { margin-top: 40px; margin-bottom: 40px; }
.section__title { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; margin-bottom: 14px; }
.section__title .count { margin-left: auto; font-size: .9rem; font-weight: 600; }

.lib { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.lib__item a { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; height: 100%; padding: 18px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.lib__item a:hover { border-color: var(--pink); color: var(--text); }
.lib__name { font-weight: 700; font-size: 1.05rem; display: flex; align-items: center; gap: 10px; }
.lib__count { color: var(--teal); font-weight: 700; }
.lib__desc { grid-column: 1 / -1; color: var(--muted); font-size: .92rem; }

/* ---------- Listy ---------- */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rows--numbered { counter-reset: n; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); min-height: 56px; }
.row.is-hidden { display: none; }
.row__main { display: grid; flex: 1; min-width: 0; }
.row__title { font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.row__meta { color: var(--muted); font-size: .875rem; }
.row__map { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.row__map:hover { color: var(--pink); background: var(--panel); }
.row.is-done .row__title { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(167, 171, 180, .6); }

.glyph { flex: 0 0 auto; width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 18%, transparent); border: 1.5px solid var(--c); color: var(--c); font-size: .85rem; font-weight: 800; line-height: 1; }

.track { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 10px 0 6px; border-radius: 10px; background: none; border: 1px solid transparent; color: var(--muted); font: 600 .85rem var(--font); cursor: pointer; }
.track:hover { border-color: var(--line); color: var(--text); }
.track__box { width: 22px; height: 22px; border-radius: 6px; border: 2px solid var(--muted); display: grid; place-items: center; }
.track[aria-pressed=true] .track__box { background: var(--teal); border-color: var(--teal); }
.track[aria-pressed=true] .track__box::after { content: ""; width: 6px; height: 11px; border: solid var(--bg); border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.track__on { display: none; }
.track[aria-pressed=true] .track__on { display: inline; color: var(--teal); }
.track[aria-pressed=true] .track__off { display: none; }
.rows .track__off, .rows .track__on { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.rows .track { padding: 0 4px; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.card a { display: grid; gap: 8px; height: 100%; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); text-decoration: none; }
.card a:hover { border-color: var(--pink); color: var(--text); }
.card img { border-radius: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.card__title { font-weight: 700; font-size: 1.1rem; }
.card__text { color: var(--muted); font-size: .95rem; }

/* ---------- Strony i karty ---------- */
.page { padding-top: 20px; padding-bottom: 60px; }
.page__head { margin: 10px 0 24px; }
.page__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 12px; }
.lead { font-size: 1.1rem; color: #D9D6CF; max-width: 62ch; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; padding: 0; font-size: .875rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 4px; opacity: .6; }
.crumbs a { color: var(--muted); }
.page--entry .entry { max-width: 760px; }
.entry__head { margin-bottom: 22px; }
.entry__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; }
.entry__actions .track { border-color: var(--line); padding: 0 14px 0 8px; min-height: 40px; }
.answer { background: var(--panel); border-left: 4px solid var(--pink); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 20px; margin: 0 0 22px; }
.answer h2, .fact h2, .callout h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--teal); margin-bottom: 6px; }
.answer p { margin: 0; font-size: 1.08rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-bottom: 22px; }
.fact { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 12px; }
.facts .fact { margin: 0; }
.fact p { margin: 0 0 .4em; }
.links { list-style: none; margin: 0; padding: 0; }
.callout { border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 22px 0; }
.callout p { margin: 0; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.shot { margin: 0 0 22px; }
.shot img { border-radius: var(--radius); }
.shot figcaption { font-size: .9rem; color: #D9D6CF; margin-top: 8px; }
.entry__foot { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); }
.sources h2 { font-size: 1rem; }
.sources ul { padding-left: 1.1em; font-size: .92rem; }
.badge { display: inline-block; font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid; }
.badge--exact { color: var(--teal); }
.badge--area { color: #F4A65B; border-style: dashed; }
.badge--region { color: var(--muted); border-style: dotted; }
.facts-table { margin: 0 0 22px; }
.facts-table dl { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts-table dl > div { display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.facts-table dl > div:last-child { border-bottom: 0; }
.facts-table dl > div:nth-child(odd) { background: var(--panel); }
.facts-table dt { color: var(--muted); font-size: .92rem; }
.facts-table dd { margin: 0; font-weight: 600; }
.notice { background: var(--panel); border-left: 4px solid var(--danger); padding: 10px 14px; border-radius: 0 8px 8px 0; }

/* Spoilery: domyślnie ukryte. */
.spoiler-block { filter: blur(7px); user-select: none; transition: filter .2s; }
.spoilers-on .spoiler-block, .is-revealed .spoiler-block { filter: none; user-select: auto; }

.meter-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; }
.meter-box__value { font-size: 2.2rem; font-weight: 800; margin: 0 0 4px; color: var(--teal); }
.meter-box__tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; }
.confirm { background: var(--panel-2); border-radius: 10px; padding: 14px; margin: 10px 0; }
.confirm p { margin-bottom: 10px; }

/* ---------- Mapa ---------- */
.view-map .foot { display: none; }
.mapview { display: grid; grid-template-columns: 360px 1fr; grid-template-rows: auto 1fr; grid-template-areas: "bar stage" "side stage"; height: calc(100dvh - var(--top-h)); }
.mapbar { grid-area: bar; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 14px 16px 10px; background: var(--panel); border-right: 1px solid var(--line); }
.mapbar__title { font-size: 1.15rem; margin: 0; }
.mapbar__search input { width: 100%; min-height: 46px; }
.mapbar__filters { display: none; }
.mapside { grid-area: side; overflow: auto; background: var(--panel); border-right: 1px solid var(--line); padding: 0 16px 20px; }
.filters__head { display: none; }
.layers { border: 0; padding: 0; margin: 0 0 6px; display: grid; gap: 2px; }
.layers legend { font-weight: 700; font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 6px; }
.layer { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 2px 6px; border-radius: 8px; cursor: pointer; }
.layer:hover { background: var(--panel-2); }
.layer.is-empty { opacity: .45; }
.layer .glyph { width: 24px; height: 24px; font-size: .75rem; }
.layer__name { flex: 1; font-size: .95rem; }
.layer__count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.results { margin: 12px 0 6px; font-weight: 700; color: var(--teal); }
.layer-links { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; font-size: .85rem; }
.layer-links a[aria-current] { color: var(--pink); }
.js .layer-links, .js .pager { display: none; }
.plist { list-style: none; margin: 0; padding: 0; }
.plist__item a { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 8px 6px; border-radius: 8px; text-decoration: none; }
.plist__item a:hover, .plist__item a.is-active { background: var(--panel-2); color: var(--text); }
.plist__item .glyph { grid-row: 1 / 3; width: 26px; height: 26px; font-size: .8rem; }
.plist__title { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist__meta { color: var(--muted); font-size: .8rem; }
.plist__item.is-done .plist__title { color: var(--muted); text-decoration: line-through; }
.pager { display: flex; gap: 12px; align-items: center; padding: 12px 0; }

.mapstage { grid-area: stage; position: relative; min-height: 0; }
.map { position: absolute; inset: 0; background: #0B0D10; }
.map__nojs { padding: 20px; }
.map__badge { position: absolute; top: 12px; left: 64px; z-index: 450; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(16, 18, 22, .86); border: 1px dashed var(--muted); font-size: .8rem; font-weight: 700; color: var(--muted); }
.mapstage__tools { position: absolute; top: 12px; right: 12px; z-index: 450; display: grid; gap: 8px; }
.mapstage:fullscreen { background: var(--bg); }
.mapstage.is-fs { position: fixed; inset: 0; z-index: 900; }

.pcard { position: absolute; left: 16px; bottom: 16px; z-index: 460; width: min(380px, calc(100% - 32px)); background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .55); }
.pcard__head { display: flex; gap: 12px; align-items: flex-start; }
.pcard__head .glyph { width: 34px; height: 34px; font-size: 1rem; }
.pcard__layer { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
.pcard__title { font-size: 1.15rem; margin: 2px 0 6px; }
.pcard__close { margin-left: auto; flex: 0 0 auto; }
.pcard__hint { margin: 10px 0 0; padding: 12px; background: var(--panel-2); border-radius: 10px; font-size: .95rem; }
.pcard__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.pcard__actions .btn { min-height: 46px; padding: 0 12px; font-size: .9rem; }
.pcard__actions .track { justify-content: center; border: 1px solid var(--line); min-height: 46px; }
.pcard__actions .track__off, .pcard__actions .track__on { position: static; width: auto; height: auto; clip: auto; }
.pcard__actions .btn--wide { grid-column: 1 / -1; }

/* Leaflet w ciemnej palecie */
.map.leaflet-container, .leaflet-container { background: #0B0D10; font-family: var(--font); }
.leaflet-control-zoom a { background: var(--panel) !important; color: var(--text) !important; border-color: var(--line) !important; width: 40px !important; height: 40px !important; line-height: 38px !important; }
.leaflet-control-attribution { background: rgba(16, 18, 22, .8) !important; color: var(--muted) !important; }
.leaflet-control-attribution a { color: var(--muted) !important; }
.mk { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--bg); border: 2px solid var(--c); box-shadow: 0 3px 10px rgba(0, 0, 0, .5); }
.mk span { transform: rotate(45deg); color: var(--c); font-weight: 800; font-size: 13px; line-height: 1; }
.mk.is-done { opacity: .45; }
.mk.is-active { background: var(--c); }
.mk.is-active span { color: var(--bg); }
.mk--area { border-style: dashed; }
.mk--region { border-style: dotted; border-radius: 50%; transform: none; }
.mk--region span { transform: none; }
.cl { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(25, 28, 34, .92); border: 2px solid var(--teal); color: var(--text); font-weight: 800; font-size: 14px; }
.area-ring { stroke-dasharray: 6 6; }
.map-grid-label { color: rgba(246, 243, 236, .18); font: 700 13px var(--font); letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }

@media (max-width: 900px) {
	.view-map .foot { display: none; }
	.mapview { grid-template-columns: 1fr; grid-template-rows: auto minmax(55dvh, 1fr) auto; grid-template-areas: "bar" "stage" "side"; height: auto; min-height: calc(100dvh - var(--top-h)); }
	.mapbar { grid-template-columns: 1fr auto; align-items: center; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 12px; position: sticky; top: var(--top-h); z-index: 470; }
	.mapbar__title { grid-column: 1 / -1; font-size: 1rem; }
	.mapbar__filters { display: inline-flex; }
	.mapstage { height: calc(100dvh - var(--top-h) - 108px); }
	.mapside { border-right: 0; padding-top: 4px; }
	.filters { position: fixed; inset: auto 0 0 0; z-index: 800; max-height: 82dvh; overflow: auto; background: var(--panel); border-top: 1px solid var(--line); border-radius: 18px 18px 0 0; padding: 12px 16px 24px; box-shadow: 0 -20px 50px rgba(0, 0, 0, .6); transform: translateY(105%); transition: transform .25s ease; visibility: hidden; }
	.filters.is-open { transform: none; visibility: visible; }
	.filters__head { display: flex; align-items: center; justify-content: space-between; }
	.filters__head h2 { margin: 0; }
	html:not(.js) .filters { position: static; transform: none; visibility: visible; box-shadow: none; }
	.pcard { left: 0; right: 0; bottom: 0; width: auto; border-radius: 18px 18px 0 0; padding-bottom: max(18px, env(safe-area-inset-bottom)); }
}

/* ---------- Stopka ---------- */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot__inner { max-width: var(--wrap); margin: 0 auto; padding: 32px 20px 48px; display: grid; grid-template-columns: 1fr 2fr; gap: 24px; font-size: .92rem; }
.foot__brand p { color: var(--muted); }
.foot__info p { margin-bottom: .6em; }
@media (max-width: 700px) { .foot__inner { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
