/* Przewodnik po Poznaniu: wspólne style wszystkich stron */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light;
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --surface-2: #EEF3F2;
  --line: rgba(34, 67, 127, 0.16);
  --text: #23272F;
  --text-2: #3B4250;
  --heading: #172444;
  --muted: #5B6472;
  --gold: #22437F;      /* granat z logo: akcenty, przyciski (nazwa zmiennej historyczna) */
  --gold-2: #1A3566;
  --teal: #74AAA9;      /* turkus z logo: tylko tła i obramowania */
  --teal-2: #3B7776;    /* ciemniejszy turkus do tekstu (kontrast 4,7:1 na tle) */
  --on-gold: #FFFFFF;
  --red: #3B7776;
  --warn-bg: #FBF1DA;
  --closed: #A42323;
  --closed-bg: #FBE9E9;
  --radius: 14px;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

html { scroll-padding-top: 84px; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.65; background: var(--bg); color: var(--text); }
img { max-width: 100%; display: block; }
a { color: var(--gold-2); }
a:hover { color: var(--text); }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; text-wrap: balance; color: var(--heading); }
.sel { user-select: all; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 16px; }
.ico { width: 1.05em; height: 1.05em; vertical-align: -0.15em; flex-shrink: 0; }
.ico-lg { width: 26px; height: 26px; }

.wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 64px 24px; }
.section-head { margin-bottom: 28px; max-width: 680px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head .muted { margin-top: 8px; }
.kicker { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.lead { font-size: 1.12rem; color: var(--text-2); max-width: 62ch; }

/* ─── Nagłówek ─── */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(250, 246, 239, 0.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar-in { max-width: 1200px; margin-inline: auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; line-height: 1; }
.logo-mark { width: 72px; height: 40px; flex: none; }
.logo-word { width: 108px; height: 40px; flex: none; }
.topbar ul { list-style: none; display: flex; gap: 6px; flex-wrap: wrap; }
.topbar nav a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; color: var(--text); text-decoration: none; }
.topbar nav a:hover { background: var(--surface-2); color: var(--gold-2); }
.topbar nav a[aria-current="page"] { color: var(--gold-2); }
.menu-btn { display: none; }
.nav-extra { display: none; }
/* Bez JavaScriptu na wąskim ekranie zostaje pasek przewijany w bok. */
@media (max-width: 900px) {
  html:not(.js) .topbar-in { padding: 8px 0 4px; gap: 2px; flex-direction: column; align-items: stretch; }
  html:not(.js) .logo { padding-inline: 16px; }
  html:not(.js) .topbar nav { max-width: 100%; min-width: 0; overflow-x: auto; scrollbar-width: none; }
  html:not(.js) .topbar nav::-webkit-scrollbar { display: none; }
  html:not(.js) .topbar ul { gap: 0; flex-wrap: nowrap; padding-inline: 9px; }
  html:not(.js) .topbar nav a { padding: 6px 7px; font-size: 0.82rem; white-space: nowrap; }
  .logo-mark { width: 61px; height: 34px; }
  .logo-word { width: 92px; height: 34px; }
  .logo { gap: 8px; }
  /* Menu „☰”: przycisk obok logo, lista rozwijana pod paskiem. */
  .js .topbar-in { padding: 8px 16px; flex-wrap: nowrap; }
  .js .menu-btn { display: inline-flex; align-items: center; gap: 10px; font: inherit; font-size: 0.95rem; font-weight: 600; color: var(--gold); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 9px 16px 9px 14px; cursor: pointer; }
  .js .menu-btn:hover { border-color: var(--gold); }
  .menu-ico { position: relative; width: 18px; height: 12px; display: inline-block; }
  .menu-ico span { position: absolute; left: 0; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.2s, opacity 0.2s, top 0.2s; }
  .menu-ico span:nth-child(1) { top: 0; }
  .menu-ico span:nth-child(2) { top: 5px; }
  .menu-ico span:nth-child(3) { top: 10px; }
  .menu-open .menu-ico span:nth-child(1) { top: 5px; transform: rotate(45deg); }
  .menu-open .menu-ico span:nth-child(2) { opacity: 0; }
  .menu-open .menu-ico span:nth-child(3) { top: 5px; transform: rotate(-45deg); }
  .js .topbar nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(20, 35, 60, 0.14); max-height: calc(100vh - 60px); overflow-y: auto; }
  .js .menu-open nav { display: block; }
  .js .topbar ul { flex-direction: column; gap: 0; padding: 8px 16px 14px; }
  .js .nav-extra { display: block; }
  .js .topbar nav a { padding: 13px 12px; font-size: 1.05rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .js .topbar li:last-child a { border-bottom: 0; }
  .js .topbar nav a[aria-current="page"] { font-weight: 600; background: var(--surface-2); border-radius: 8px; }
}
@media (max-width: 600px) {
  html { scroll-padding-top: 76px; }
  html:not(.js) { scroll-padding-top: 96px; }
}
}

/* ─── Hero strony głównej: zdjęcie na całą szerokość, tekst na niebie ─── */
.hero { position: relative; overflow: hidden; background: #2E5F86; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center 72%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(100deg, rgba(12, 28, 46, 0.62) 0%, rgba(12, 28, 46, 0.38) 42%, rgba(12, 28, 46, 0) 70%), linear-gradient(180deg, rgba(12, 28, 46, 0.25) 0%, rgba(12, 28, 46, 0) 30%); }
.hero-in { position: relative; z-index: 2; min-height: clamp(520px, 78vh, 760px); display: flex; align-items: flex-start; padding-block: clamp(48px, 8vw, 96px) clamp(120px, 20vw, 240px); }
.hero-text { max-width: 620px; }
.hero-full .kicker { color: #CFEAE8; }
.hero-full .btn-gold { background: var(--teal); color: #10233F; }
.hero-full .btn-gold:hover { background: #8FC0BF; color: #10233F; }
.hero-full h1 { color: #fff; text-shadow: 0 2px 18px rgba(10, 20, 35, 0.35); }
.hero-full .lead { color: #F3F0EA; text-shadow: 0 1px 10px rgba(10, 20, 35, 0.45); }
.hero-full .btn-ghost { border-color: rgba(255, 255, 255, 0.75); color: #fff; background: rgba(12, 28, 46, 0.25); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.hero-full .btn-ghost:hover { border-color: #fff; background: rgba(12, 28, 46, 0.45); color: #fff; }
.hero-full .search input { border-color: rgba(255, 255, 255, 0.8); box-shadow: 0 8px 24px rgba(10, 20, 35, 0.25); }
.hero-credit { position: absolute; right: 14px; bottom: 52px; z-index: 2; font-size: 0.72rem; color: rgba(255, 255, 255, 0.85); text-decoration: none; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.hero-credit:hover { color: #fff; text-decoration: underline; }
@media (max-width: 860px) {
  .hero-in { min-height: 0; padding-block: 36px 170px; }
  .hero-bg { object-position: 62% 100%; }
  .hero::before { background: linear-gradient(180deg, rgba(12, 28, 46, 0.62) 0%, rgba(12, 28, 46, 0.45) 55%, rgba(12, 28, 46, 0.05) 85%); }
}
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); letter-spacing: -0.01em; margin-bottom: 18px; max-width: 12ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-gold:hover { background: var(--gold-2); color: var(--on-gold); }
.btn-ghost { border: 1px solid rgba(34, 67, 127, 0.3); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }

/* ─── Szybkie fakty ─── */
.facts { position: relative; z-index: 3; margin-top: -40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #DCE5E6; border: 1px solid #DCE5CC8; border-radius: var(--radius); overflow: hidden; padding-inline: 0; width: calc(100% - 40px); max-width: 1160px; margin-inline: auto; box-shadow: 0 6px 20px rgba(20, 35, 60, 0.06); }
.fact { background: var(--surface); padding: 20px; }
.fact-k { font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: var(--gold); line-height: 1.1; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.fact p:last-child { font-size: 0.9rem; color: var(--text-2); }
@media (max-width: 900px) { .facts { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .facts { grid-template-columns: 1fr; width: calc(100% - 32px); } }

/* ─── Komunikat o zamknięciach ─── */
.notice { display: flex; gap: 14px; align-items: flex-start; background: var(--warn-bg); border: 1px solid rgba(201,168,76,0.45); border-radius: var(--radius); padding: 18px 20px; color: var(--gold-2); }
.notice h2 { font-size: 1.15rem; margin-bottom: 6px; }
.notice ul { list-style: none; color: var(--text-2); font-size: 0.95rem; display: grid; gap: 4px; }

/* ─── Filtr kategorii ─── */
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 32px; }
.tab { font: inherit; font-size: 0.9rem; font-weight: 500; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.tab:hover { border-color: var(--gold); }
.tab[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--on-gold); font-weight: 600; }
.cat-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.cat-head h3 { font-size: 1.5rem; }
.cat-head p { color: var(--muted); font-size: 0.95rem; }

/* ─── Karty atrakcji ─── */
.cards { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.card a { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; color: var(--text); transition: border-color 0.2s, transform 0.2s; }
.card a:hover { border-color: rgba(34,67,127,0.45); transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20,35,60,0.10); color: var(--text); }
.card-media { position: relative; aspect-ratio: 4 / 3; max-width: 100%; overflow: hidden; background: var(--surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card a:hover .card-media img { transform: scale(1.04); }
.no-photo { width: 100%; height: 100%; min-height: 100%; display: flex; align-items: center; justify-content: center; padding: 20px; text-align: center;
  background: radial-gradient(circle at 30% 20%, rgba(116,170,169,0.25), transparent 60%), linear-gradient(135deg, #E6EFEE, #CFE0DF); }
.no-photo span { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--gold-2); text-wrap: balance; }
.a-hero-img .no-photo { aspect-ratio: 4 / 3; max-width: 100%; border-radius: var(--radius); border: 1px solid var(--line); }
.a-hero-img .no-photo span { font-size: 1.8rem; }
.badge { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,0.94); color: var(--gold-2); border: 1px solid rgba(116,170,169,0.6); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }
.badge-closed { color: var(--closed); border-color: rgba(164,35,35,0.6); }
.card-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-body .eyebrow { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.card-body h3 { font-size: 1.25rem; }
.card-body p { font-size: 0.92rem; color: var(--text-2); }
.more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--gold-2); }

/* ─── Planowanie ─── */
.plan-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.plan-grid a { display: block; height: 100%; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); text-decoration: none; }
.plan-grid a:hover { border-color: var(--gold); color: var(--text); }
.plan-grid h3 { font-size: 1.1rem; margin-bottom: 4px; color: var(--gold-2); }
.plan-grid p { font-size: 0.9rem; color: var(--text-2); }

/* ─── Wydarzenia ─── */
.events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 16px; }
.event { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.event-date { align-self: flex-start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--red); background: rgba(116,170,169,0.14); border: 1px solid rgba(59,119,118,0.4); padding: 3px 10px; border-radius: 999px; }
.event h3 { font-size: 1.2rem; }
.event p { font-size: 0.92rem; }
.event h3 a { color: inherit; text-decoration: none; }
.event h3 a:hover { color: var(--gold-2); }
.events-empty { margin-bottom: 16px; }
.event[hidden], .event-past[hidden], .events-empty[hidden] { display: none; }

/* ─── Kalendarz wydarzeń ─── */
.cal { padding-block: 8px 48px; display: grid; gap: 40px; }
.cal-month h2 { font-size: 1.9rem; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.cal-month { scroll-margin-top: 84px; }
.cal-event { scroll-margin-top: 84px; }
.cal-event:target { border-color: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.cal-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.event-tba { color: var(--text-2); background: transparent; border-color: var(--line); }
.event-past { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; color: var(--text-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.cal-event.is-past .event-date { color: var(--text-2); background: transparent; border-color: var(--line); }
.cal-when { font-weight: 500; }
.cal-note { color: var(--text-2); }
.cal-event .sources summary { cursor: pointer; font-size: 0.85rem; color: var(--text-2); }
.cal-event .sources ul { margin-top: 6px; }

/* ─── Podstrona atrakcji ─── */
.crumbs { padding-block: 18px; font-size: 0.85rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--gold-2); }
.a-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 36px; align-items: center; }
.a-hero-img img { width: 100%; aspect-ratio: 4 / 3; max-width: 100%; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--line); }
.a-hero-img figcaption { font-size: 0.75rem; color: var(--muted); margin-top: 8px; }
.a-hero-img figcaption a { color: var(--muted); }
.a-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); margin-bottom: 16px; }
.a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-block: 48px 16px; align-items: start; }
.a-main { max-width: 68ch; display: grid; gap: 32px; }
.a-main h2 { font-size: 1.55rem; margin-bottom: 12px; }
.a-main p + p { margin-top: 12px; }
.a-main p { color: var(--text-2); }
.status { display: flex; gap: 14px; padding: 18px 20px; border-radius: var(--radius); }
.status-warning { background: var(--warn-bg); border: 1px solid rgba(201,168,76,0.5); color: var(--gold-2); }
.status-closed { background: var(--closed-bg); border: 1px solid rgba(164,35,35,0.55); color: var(--closed); }
.status-h { font-weight: 700; margin-bottom: 4px; }
.status p { color: inherit; }
.status p + p { margin-top: 0; color: var(--text-2); }
.sources h2 { font-size: 1.1rem; }
.sources ul { padding-left: 1.1em; font-size: 0.88rem; display: grid; gap: 4px; }
.a-side { position: sticky; top: 84px; display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.panel h2 { font-family: var(--sans); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.panel p { font-size: 0.95rem; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.panel p + p { margin-top: 6px; }
.trip-go p { display: block; }
.trip-go p + p { margin-top: 8px; }
.trip-dist { font-weight: 600; }
.panel .links { gap: 6px 16px; margin-top: 10px; font-size: 0.9rem; font-weight: 500; }
.panel .links a { display: inline-flex; align-items: center; gap: 6px; }
.kv { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.kv th { text-align: left; font-weight: 500; color: var(--muted); padding: 7px 12px 7px 0; vertical-align: top; width: 44%; }
.kv td { padding: 7px 0; font-variant-numeric: tabular-nums; }
.kv tr + tr th, .kv tr + tr td { border-top: 1px solid rgba(34,67,127,0.10); }
.checked { font-size: 0.8rem; color: var(--muted); padding-inline: 4px; }
.pager { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.pager a { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; text-decoration: none; }
@media (max-width: 960px) {
  .a-hero { grid-template-columns: 1fr; gap: 20px; }
  .a-layout { grid-template-columns: 1fr; gap: 28px; }
  .a-side { position: static; }
}

/* ─── Informacje praktyczne ─── */
.page-head { padding-block: 40px 8px; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 14px; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { font-size: 0.88rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.toc a:hover { border-color: var(--gold); color: var(--gold-2); }
.prose { padding-block: 24px 48px; display: grid; gap: 48px; }
.prose section { max-width: 820px; min-width: 0; }
.prose h2 { font-size: 1.9rem; margin-bottom: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.prose h3 { font-size: 1.2rem; margin: 22px 0 8px; color: var(--gold-2); }
.prose p { color: var(--text-2); max-width: 70ch; }
.prose p + p { margin-top: 12px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 4px; }
.link-list { columns: 2 220px; display: block !important; }
.link-list li { margin-bottom: 4px; break-inside: avoid; }
.table-wrap { overflow-x: auto; margin-block: 14px; border: 1px solid var(--line); border-radius: var(--radius); }
.grid { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 480px; }
.grid th, .grid td { padding: 10px 14px; text-align: left; vertical-align: top; font-variant-numeric: tabular-nums; }
.grid thead th { background: var(--surface-2); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.grid tbody tr + tr th, .grid tbody tr + tr td { border-top: 1px solid rgba(34,67,127,0.10); }
.grid tbody th { font-weight: 500; }
.grid .big { font-family: var(--serif); font-size: 1.4rem; font-weight: 700; color: var(--gold-2); }
.credits img { width: 72px; height: 54px; object-fit: cover; border-radius: 6px; }

/* ─── Wyszukiwarka i filtry ─── */
.search { position: relative; max-width: 560px; }
.search .ico { position: absolute; z-index: 1; left: 16px; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: var(--gold); pointer-events: none; }
.search input { width: 100%; font: inherit; font-size: 1rem; padding: 14px 18px 14px 48px; border-radius: 999px; border: 1px solid rgba(34,67,127,0.25); background: var(--surface); color: var(--text); }
.search input::placeholder { color: #8C7B6D; }
.search input:focus { outline: none; border-color: var(--gold-2); box-shadow: 0 0 0 3px rgba(116,170,169,0.35); }
.hero-search { margin-top: 26px; }
.hero-search input { background: var(--surface); padding-block: 16px; font-size: 1.05rem; }
.finder { display: grid; gap: 14px; margin-bottom: 32px; }
.finder .tabs { margin-bottom: 0; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.qf { font: inherit; font-size: 0.88rem; font-weight: 500; padding: 7px 14px; border-radius: 8px; border: 1px dashed rgba(34,67,127,0.35); background: transparent; color: var(--gold-2); cursor: pointer; }
.qf:hover { border-style: solid; }
.qf[aria-pressed="true"] { background: var(--surface-2); border-style: solid; border-color: var(--gold); color: var(--heading); }
.result { font-size: 0.9rem; color: var(--muted); min-height: 1.4em; }
.empty { padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); text-align: center; color: var(--muted); }
.linkish { font: inherit; background: none; border: 0; padding: 0; color: var(--gold-2); text-decoration: underline; cursor: pointer; }
.cat-group[hidden], .card[hidden] { display: none; }
.cat-group:not([hidden]) ~ .cat-group:not([hidden]) { margin-top: 48px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(116,170,169,0.14); color: var(--gold-2); border: 1px solid rgba(116,170,169,0.3); }
.chip-kids { background: rgba(120,170,220,0.12); color: #1F5E8C; border-color: rgba(120,170,220,0.35); }

/* ─── Top 10 ─── */
.num { position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-family: var(--serif); font-size: 1.3rem; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,0.25); }

/* ─── Kafelki kategorii ─── */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,10,5,0.05) 30%, rgba(20,10,5,0.85) 100%); }
.tile:hover img { transform: scale(1.05); }
.tile-t { position: absolute; left: 14px; bottom: 12px; right: 48px; z-index: 1; font-family: var(--serif); font-size: 1.2rem; font-weight: 600; color: #FFFFFF; line-height: 1.15; }
.tile-n { position: absolute; right: 12px; bottom: 12px; z-index: 1; font-size: 0.78rem; font-weight: 700; color: var(--on-gold); background: var(--gold); border-radius: 999px; padding: 2px 9px; }

/* ─── Plany zwiedzania ─── */
.btn-sm { padding: 8px 16px; font-size: 0.88rem; }
.plans { display: grid; gap: 56px; padding-block: 24px 48px; }
.plan-block { border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); background: linear-gradient(180deg, var(--surface), var(--bg)); padding: clamp(20px, 4vw, 36px); min-width: 0; }
.plan-head h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 10px; }
.plan-head .lead { margin-bottom: 16px; }
.stops { list-style: none; counter-reset: stop; display: grid; gap: 4px; margin-top: 24px; }
.stop { counter-increment: stop; display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-top: 1px solid rgba(34,67,127,0.10); align-items: start; }
.stop-img { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--surface-2); }
.stop-img img { width: 100%; height: 100%; object-fit: cover; }
.stop-img .no-photo { padding: 6px; }
.stop-img .no-photo span { font-size: 0.8rem; }
.stop-img::before { content: counter(stop); position: absolute; left: 6px; top: 6px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-weight: 700; font-size: 0.85rem; }
.stop-when { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.stop h3 { font-size: 1.2rem; margin: 2px 0 4px; }
.stop h3 a { color: var(--heading); text-decoration: none; }
.stop h3 a:hover { color: var(--gold-2); }
.stop p { font-size: 0.93rem; color: var(--text-2); }
.stop p.stop-hours { margin-top: 6px; font-size: 0.83rem; color: var(--muted); }
.plan-note { margin-top: 18px; padding: 12px 16px; border-radius: 10px; background: var(--warn-bg); color: var(--text-2); font-size: 0.9rem; display: flex; gap: 10px; align-items: baseline; }
.plan-note .ico { color: var(--gold-2); }
@media (max-width: 520px) {
  .stop { grid-template-columns: 84px minmax(0, 1fr); gap: 12px; }
}

/* ─── O Poznaniu ─── */
.prose .timeline { list-style: none; position: relative; display: grid; gap: 18px; padding-left: 26px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--gold), rgba(116,170,169,0.25)); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -26px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--gold); }
.tl-date { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--gold-2); }
.legends { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.legend { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.prose .legend h3 { margin: 0 0 8px; }
.legend p { font-size: 0.93rem; }
.glossary { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 14px; }
.glossary div { padding: 12px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.glossary dt { font-family: var(--serif); font-size: 1.2rem; font-weight: 700; color: var(--gold-2); font-style: italic; }
.glossary dd { font-size: 0.9rem; color: var(--text-2); }
.prose .dishes { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.dishes li { padding: 16px 18px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.prose .dishes h3 { margin: 0 0 4px; font-size: 1.1rem; }
.dishes p { font-size: 0.9rem; }
.facts-flat { width: 100%; margin: 8px 0 16px; }

/* ─── Przycisk do góry ─── */
.to-top { position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 45; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--gold); background: rgba(255,255,255,0.95); color: var(--gold-2); cursor: pointer; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,0.15); }
.to-top[hidden] { display: none; }
.to-top:hover { background: var(--gold); color: var(--on-gold); }
.to-top .ico { width: 22px; height: 22px; }

/* ─── Stopka ─── */
.footer { border-top: 1px solid var(--line); margin-top: 48px; padding-bottom: env(safe-area-inset-bottom, 0px); }
.footer-in { padding-block: 32px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-in > div { max-width: 480px; }
.footer-logo { margin-bottom: 10px; }
.footer-logo img { width: 120px; height: auto; }
.footer-in .muted { font-size: 0.85rem; }
.footer-links { list-style: none; display: grid; gap: 6px; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ─── Ikonka źródła zdjęcia (zamiast podpisu) ─── */
.a-hero-img { position: relative; }
.photo-credit { position: absolute; right: 10px; bottom: 10px; z-index: 2; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.92); color: var(--gold-2); font: italic 700 15px/1 var(--serif); text-decoration: none; box-shadow: 0 2px 8px rgba(15, 25, 45, 0.25); }
.photo-credit:hover, .photo-credit:focus-visible { background: #fff; color: var(--heading); }
.photo-credit::after { content: attr(data-credit); position: absolute; right: 0; bottom: calc(100% + 8px); width: max-content; max-width: min(320px, 70vw); background: var(--heading); color: #fff; font: 400 0.75rem/1.35 var(--sans); padding: 6px 10px; border-radius: 8px; opacity: 0; transform: translateY(4px); pointer-events: none; transition: opacity 0.15s, transform 0.15s; }
.photo-credit:hover::after, .photo-credit:focus-visible::after { opacity: 1; transform: none; }
.credits tr:target td { background: var(--warn-bg); }

/* ─── Mapa atrakcji ─── */
.map-cta { margin-top: 14px; }
.map-head { padding-bottom: 0; }
.map-head .lead { margin-bottom: 0; }
.map-finder { margin-top: 16px; gap: 10px; }
.map-finder .tabs { margin-bottom: 0; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--dot, var(--gold)); box-shadow: 0 0 0 2px #fff; margin-right: 7px; vertical-align: 0.02em; flex-shrink: 0; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin-top: 18px; }
.map { height: clamp(420px, 72vh, 760px); border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: #EEF2F2; box-shadow: 0 10px 28px rgba(20, 35, 60, 0.08); }
.map-error { padding: 24px; color: var(--muted); }
.map-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; max-height: clamp(420px, 72vh, 760px); }
.map-side .result { margin: 0; }
.map-list { list-style: none; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 6px; }
.map-list button { width: 100%; display: flex; align-items: center; gap: 2px; text-align: left; font: inherit; font-size: 0.9rem; color: var(--text); background: none; border: 0; border-radius: 8px; padding: 7px 8px; cursor: pointer; }
.map-list button:hover, .map-list button:focus-visible { background: var(--surface-2); }
.map-list .nm { min-width: 0; }
.map-note { margin-top: 12px; }
.map-note a { color: var(--muted); }
.leaflet-container { font-family: var(--sans); font-size: 0.85rem; background: #EEF2F2; }
.leaflet-popup-content { font-size: 0.85rem; }
.leaflet-container a { color: var(--gold-2); }
.leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 10px 28px rgba(15, 25, 45, 0.2); }
.leaflet-popup-content { margin: 12px 14px; line-height: 1.45; }
.pop img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; margin-bottom: 8px; }
.pop h3 { font-family: var(--serif); font-size: 1.1rem; margin: 2px 0 4px; color: var(--heading); }
.pop p { margin: 0 0 6px; font-size: 0.85rem; color: var(--text-2); }
.pop .pop-cat { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.pop .pop-badge { display: inline-block; font-size: 0.72rem; font-weight: 600; color: var(--gold-2); border: 1px solid rgba(34, 67, 127, 0.35); border-radius: 999px; padding: 1px 9px; }
.pop .pop-badge.is-closed { color: var(--closed); border-color: rgba(164, 35, 35, 0.45); }
.pop .pop-more { display: inline-block; font-weight: 600; font-size: 0.85rem; }
.pop .pop-note { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }
@media (max-width: 860px) {
  .map-layout { grid-template-columns: 1fr; }
  .map { height: 62vh; min-height: 380px; }
  .map-side { max-height: none; }
  .map-list { max-height: 360px; }
}

/* ─── Teatry i koncerty ─── */
.venues { padding-block: 8px 48px; display: grid; gap: 24px; }
.venue { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; scroll-margin-top: 84px; }
.venue:not(:has(.venue-img)) { grid-template-columns: 1fr; }
.venue-img { position: relative; margin: 0; min-height: 220px; }
.venue-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.venue-body { padding: 24px; display: grid; gap: 10px; align-content: start; }
.venue-body h2 { font-size: 1.5rem; }
.venue-body p { font-size: 0.95rem; }
.venue-lang { justify-self: start; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: var(--text-2); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; }
.venue-lang-ok { color: #2F6B3F; border-color: rgba(47,107,63,0.45); background: rgba(47,107,63,0.07); }
.venue-links { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.venue-links a { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 720px) { .venue { grid-template-columns: 1fr; } .venue-img { min-height: 0; aspect-ratio: 16 / 9; } }

/* ─── Lista atrakcji (atrakcje.html) i skróty na stronie głównej ─── */
.list-page { padding-top: 40px; }
.list-page .section-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.home-browse { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.home-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.qlink { font-size: 0.88rem; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--text); background: var(--surface); }
.qlink:hover { border-color: var(--gold); color: var(--gold-2); }
.home-all { display: flex; flex-wrap: wrap; gap: 10px; }
