/* Static place and attraction pages (generated by scripts/build-pages.mjs). */
:root {
  --bg: #fff;
  --card: #fff;
  --ink: #000;
  --muted: #555;
  --line: #ddd;
  --accent: #a3412b;
  --accent-ink: #fff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
header.site, main, footer.site { max-width: 760px; margin: 0 auto; padding: 0 16px; }
header.site { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 14px; padding-bottom: 6px; }
header.site nav { margin-left: auto; }
#search { flex: 0 1 300px; }
#search .q-box { width: 100%; }
@media (max-width: 640px) { header.site nav { margin-left: 0; } #search { flex: 1 1 100%; order: 3; } }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand svg { width: 22px; height: 22px; fill: var(--accent); }
header.site nav { display: flex; gap: 16px; font-size: 15px; }
header.site nav a { color: var(--muted); text-decoration: none; }
header.site nav a:hover { color: var(--accent); }
header.site nav { align-items: center; }
header.site .more { position: relative; }
header.site .more summary { cursor: pointer; color: var(--muted); list-style: none; }
header.site .more summary::-webkit-details-marker { display: none; }
header.site .more summary::after { content: " ▾"; font-size: 12px; }
header.site .more .mega { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; background: #fff; border: 1px solid #ddd; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.12); padding: 14px 8px; width: min(420px, calc(100vw - 32px)); display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 4px; }
header.site .more .col { display: flex; flex-direction: column; }
header.site .more .col a, header.site .more .col .g { padding: 3px 10px; font-size: 14px; }
header.site .more .col .g { font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
header.site .more .col .g small { font-weight: 400; text-transform: none; color: var(--muted); }
@media (max-width: 640px) { header.site .more .mega { position: fixed; left: 16px; right: 16px; top: 56px; width: auto; max-height: 75vh; overflow: auto; } }

.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 0; margin: 14px 0 0; padding: 0; font-size: 14px; color: var(--ink); }
.crumbs li { white-space: nowrap; }
.crumbs li:not(:last-child)::after { content: "/"; margin: 0 8px; color: var(--muted); }
.crumbs li[aria-current] { white-space: normal; font-weight: 600; }
.crumbs a { color: var(--ink); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }

article { margin-top: 8px; }
.kind { margin: 18px 0 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kind a { color: inherit; }
h1 { margin: 2px 0 14px; font-size: clamp(28px, 6vw, 40px); line-height: 1.15; text-wrap: balance; }
h2 { font-size: 20px; margin: 34px 0 12px; }
h2 small, .links small { color: var(--muted); font-weight: 400; font-size: .8em; }

.photo { margin: 0 0 18px; }
.photo img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; border-radius: 10px; background: var(--line); }
.photo figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.photo figcaption a { color: inherit; }

.lead p { margin: 0 0 12px; font-size: 17px; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.btn { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); text-decoration: none; font-size: 15px; }
.btn:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 20px 0; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; font-size: 15px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.sources { font-size: 14px; color: var(--muted); }

ul.links { list-style: none; padding: 0; margin: 0; columns: 3 180px; column-gap: 24px; }
ul.links li { break-inside: avoid; padding: 2px 0; }
ul.links a { text-decoration: none; }
ul.links a:hover { text-decoration: underline; }

ul.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
ul.cards a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; color: var(--ink); text-decoration: none; }
ul.cards a:hover { border-color: var(--accent); }
ul.cards img, ul.cards .ph { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--line); }
ul.cards .t { padding: 8px 10px 0; font-weight: 600; line-height: 1.3; }
ul.cards .m { padding: 2px 10px 10px; font-size: 13px; color: var(--muted); }

footer.site { margin-top: 48px; padding-top: 16px; padding-bottom: 32px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
footer.site a { color: inherit; }

.jump { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 16px 0 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; }
.jump a { white-space: nowrap; }
.catalogue h2 { scroll-margin-top: 12px; }
.tag { display: inline-block; margin-left: 4px; padding: 0 6px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; color: var(--muted); }

/* filter chips and grouped catalogue links */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip { display: inline-block; padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; color: var(--ink); }
a.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip.soon { color: var(--muted); border-style: dashed; }
.chip.soon::after { content: " · wkrótce"; font-size: 12px; }
.cat-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 24px; }
.cat-group h3 { margin: 12px 0 4px; font-size: 15px; }
.cat-group h3 a { color: var(--ink); }
h2 a { color: inherit; text-decoration: none; }
h2 a:hover { color: var(--accent); text-decoration: underline; }
