/*
Theme Name: Turystyczne Notatki
Theme URI: https://turystycznenotatki.pl/
Author: SUNSPOT
Description: Exact 1:1 WordPress implementation of the user-supplied Kompas v1 design.
Version: 4.5.2
Text Domain: turystyczne-notatki
*/
/* Hallmark · genre: utilitarian travel portal · tone: source-locked · anchor: rust orange · macrostructure: decision-first portal · pre-emit critique: P5 H5 E3 S5 R5 V5 · source parity: pass · slop: source-locked exceptions documented in QA_REPORT.md */

* { box-sizing: border-box; }
html { height: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
body, button, input { font-family: var(--font-body); }
body.page-template-page-mapa {
  height: 100%;
  display: flex;
  flex-direction: column;
}
button, input { color: var(--ink); }
button { margin: 0; }
a { color: var(--ink); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Header — exact Naglowek.dc.html */
.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}
body.page-template-page-mapa .site-header { position: static; }
.site-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.site-logo:hover { color: var(--ink); }
.site-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--ink);
  display: grid;
  place-items: center;
  flex: none;
}
.site-logo__mark::after {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  transform: rotate(45deg);
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  flex: 1;
}
.site-nav a {
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: #E6EAE4;
  color: var(--ink);
}
.site-header__cta {
  background: var(--accent-dark);
  color: var(--surface);
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 10px 16px;
  border-radius: var(--r-btn);
}
.site-header__cta:hover { background: var(--ink); color: var(--surface); }

/* Shared */
.source-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
}
.source-kicker--muted { color: var(--meta); }
.source-heading {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.source-link { font-weight: 600; font-size: 15px; }
.source-chip {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 14px;
  border-radius: var(--r-chip);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.source-chip.is-active { border-color: var(--ink); background: var(--ink); color: var(--surface); }
.source-empty {
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-card);
  padding: 32px;
  font-size: 15px;
  color: var(--ink-2);
  line-height: 1.5;
}
.placeholder {
  background: repeating-linear-gradient(135deg, #E1E6E0 0 10px, #ECEFEA 10px 20px);
}
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  flex-wrap: wrap;
}

/* Place card — exact KartaMiejsca.dc.html */
.place-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s;
}
.place-card:hover { border-color: var(--ink); color: var(--ink); }
.place-card__media {
  aspect-ratio: 4 / 3;
  background: var(--chip-bg);
  position: relative;
  overflow: hidden;
}
.place-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.place-card:hover .place-card__media img { transform: scale(1.02); }
.place-card__land {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--ink);
  color: var(--surface);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--r-tag);
  z-index: 1;
}
.place-card__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.place-card__region {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--meta);
}
.place-card__name {
	margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.place-card__reason { font-size: 13px; font-weight: 600; color: var(--accent-dark); }
.place-card__excerpt { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ink-2); text-wrap: pretty; }
.place-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.place-card__tag { font-size: 12px; font-weight: 500; background: var(--chip-bg); padding: 4px 8px; border-radius: var(--r-tag); }

/* Home */
.compass-hero {
  max-width: var(--container);
  margin: 0 auto;
  padding: 56px var(--gutter) 64px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr));
  gap: 48px;
  align-items: start;
}
.compass-hero__left { display: flex; flex-direction: column; gap: 28px; }
.compass-hero__intro { display: flex; flex-direction: column; gap: 16px; }
.compass-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 6vw, 72px);
  line-height: .98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.compass-hero__lead {
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 520px;
  text-wrap: pretty;
}
.compass-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.compass-box__group { display: flex; flex-direction: column; gap: 10px; }
.compass-box__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.compass-box__label span { font-weight: 500; color: var(--meta); }
.compass-box__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.compass-time {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  overflow: hidden;
}
.compass-time button {
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  padding: 11px 6px;
  border: 0;
  border-right: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.compass-time button:last-child { border-right: 0; }
.compass-time button.is-active { background: var(--ink); color: var(--surface); }
.compass-submit {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--accent-dark);
  color: var(--surface);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  padding: 16px 20px;
  border-radius: var(--r-btn);
}
.compass-submit:hover { background: var(--ink); color: var(--surface); }
.compass-best { display: flex; flex-direction: column; gap: 12px; }
.compass-runners { display: flex; flex-direction: column; gap: 2px; }
.compass-runner {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 15px;
}
.compass-runner strong { font-weight: 600; }
.compass-runner span { color: var(--meta); font-size: 13px; }

/* Matrix */
.matrix-section { background: var(--sky); }
.matrix-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.matrix-section__intro { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.matrix-section__intro p { margin: 0; font-size: 16px; color: #3E4A55; line-height: 1.55; }
.matrix-scroll { overflow-x: auto; }
.matrix-grid {
  min-width: 640px;
  display: grid;
  grid-template-columns: minmax(150px, 1.3fr) repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.matrix-col { font-family: var(--font-display); font-weight: 700; font-size: 14px; padding: 8px 12px; }
.matrix-row {
  font-weight: 600;
  font-size: 15px;
  padding: 14px 12px;
  text-decoration: none;
  display: flex;
  align-items: center;
}
.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 12px;
  border-radius: 6px;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
}
.matrix-cell:hover { outline: 2px solid var(--ink); color: inherit; }
.matrix-cell small { font-size: 13px; font-weight: 500; font-family: var(--font-body); }

/* Home sections */
.home-categories {
  max-width: var(--container);
  margin: 0 auto;
  padding: 72px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.category-entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.category-entry {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 12px;
  text-decoration: none;
}
.category-entry:hover { border-color: var(--ink); color: var(--ink); }
.category-entry__thumb {
  aspect-ratio: 1;
  border-radius: 6px;
  background: var(--chip-bg);
  overflow: hidden;
}
.category-entry__thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.category-entry__copy { display: flex; flex-direction: column; gap: 4px; }
.category-entry__copy strong { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.category-entry__copy span { font-size: 14px; color: var(--meta); }
.home-weekend,
.home-guides {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.place-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 16px;
}
.map-cta-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 72px; }
.map-cta {
  background: var(--ink);
  color: var(--surface);
  border-radius: var(--r-banner);
  overflow: hidden;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
}
.map-cta__copy { padding: 48px; display: flex; flex-direction: column; gap: 18px; justify-content: center; }
.map-cta__copy .source-kicker { color: #F29A6E; }
.map-cta__copy p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--footer-copy); max-width: 420px; }
.map-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-accent,
.btn-outline-light {
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 18px;
  border-radius: var(--r-btn);
}
.btn-accent { background: var(--accent-dark); color: var(--surface); }
.btn-accent:hover { background: var(--ink); color: var(--surface); }
.btn-outline-light { border: 1px solid #4A5A68; color: var(--surface); }
.btn-outline-light:hover { border-color: var(--surface); color: var(--surface); }
.map-cta__preview {
  min-height: 300px;
  background: #1D2C39;
  overflow: hidden;
}
.map-cta__preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr));
  gap: 0 32px;
  border-top: 2px solid var(--ink);
}
.guide-link {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.guide-link__media { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--chip-bg); }
.guide-link__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.guide-link__copy { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.guide-link__meta { font-family: var(--font-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-dark); }
.guide-link__title { font-family: var(--font-display); font-weight: 700; font-size: 20px; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.newsletter-section { border-top: 1px solid var(--line); }
.newsletter-section__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px var(--gutter);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 32px;
  align-items: center;
}
.newsletter-copy { display: flex; flex-direction: column; gap: 10px; }
.newsletter-copy h2 { font-size: clamp(28px, 3.5vw, 40px); }
.newsletter-copy p { margin: 0; font-size: 16px; color: var(--ink-2); line-height: 1.55; }
.newsletter-form-wrap { display: flex; flex-direction: column; gap: 10px; }
.newsletter-form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 220px;
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  background: var(--surface);
}
.newsletter-form button {
  font-weight: 600;
  font-size: 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: var(--r-btn);
  background: var(--ink);
  color: var(--surface);
  cursor: pointer;
}
.newsletter-note { font-size: 13px; color: var(--meta); }
.newsletter-success { background: #E3EFE7; color: #1F5A3E; border-radius: var(--r-btn); padding: 16px; font-weight: 600; }

/* Category */
.category-head {
  max-width: var(--container);
  margin: 0 auto;
  padding: 32px var(--gutter) 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.source-breadcrumbs { display: flex; gap: 8px; font-size: 14px; color: var(--meta); flex-wrap: wrap; }
.source-breadcrumbs a { color: var(--meta); }
.category-head__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
  gap: 40px;
  align-items: end;
}
.category-head__copy { display: flex; flex-direction: column; gap: 16px; }
.category-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7vw, 88px);
  line-height: .95;
  letter-spacing: -.04em;
}
.category-head__lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--ink-2); max-width: 560px; text-wrap: pretty; }
.category-other { display: flex; flex-direction: column; gap: 10px; }
.category-other__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--meta); }
.category-other__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.category-other .source-chip { padding: 8px 14px; background: transparent; }
.category-other .source-chip.is-active { background: var(--ink); }
.category-tabs-wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) 24px; }
.category-tabs-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 2px solid var(--ink); padding-top: 16px; }
.category-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--meta); }
.category-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.category-tab {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.category-tab.is-active { background: var(--ink); color: var(--surface); }
.category-tab span { font-weight: 500; opacity: .7; }
.category-main {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter) 72px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-start;
}
.category-results {
  flex: 999 1 480px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
  gap: 16px;
}
.category-aside { flex: 1 1 260px; max-width: 340px; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 16px; }
.category-tips { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.category-tips h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.category-tip { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 14px; line-height: 1.5; }
#category-tips { display: contents; }
.category-tip span:first-child { font-family: var(--font-mono); font-size: 12px; color: var(--accent-dark); padding-top: 2px; }
.category-tips a { font-weight: 600; font-size: 14px; }
.category-compass-cta { background: var(--accent-dark); color: var(--surface); border-radius: var(--r-card); padding: 20px; text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.category-compass-cta:hover { background: var(--ink); color: var(--surface); }
.category-compass-cta strong { font-family: var(--font-display); font-weight: 800; font-size: 18px; }
.category-compass-cta span { font-size: 14px; line-height: 1.5; }
.archive-pagination { max-width: var(--container); margin: -40px auto 0; padding: 0 var(--gutter) 72px; }
.archive-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.archive-pagination .page-numbers { min-width: 42px; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-btn); background: var(--surface); color: var(--ink); text-decoration: none; }
.archive-pagination .page-numbers.current { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.combos-section { background: var(--sky); }
.combos-section__inner { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter); display: flex; flex-direction: column; gap: 20px; }
.combos-section h2 { font-size: clamp(26px, 3.5vw, 36px); }
.combo-list { display: flex; flex-wrap: wrap; gap: 8px; }
.combo-link { background: var(--surface); border: 1px solid #C6D3DA; border-radius: var(--r-btn); padding: 12px 16px; text-decoration: none; font-weight: 600; font-size: 15px; }
.combo-link:hover { border-color: var(--ink); color: var(--ink); }
.combo-link span { color: var(--meta); font-weight: 500; }

/* Search */
.search-band { background: var(--ink); }
.search-band__inner { max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter); display: flex; flex-direction: column; gap: 16px; }
.search-band h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4vw, 44px); letter-spacing: -.03em; color: var(--surface); }
.search-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.search-bar input { flex: 1; min-width: 240px; font-size: 16px; padding: 14px 16px; border: 0; border-radius: var(--r-btn); background: var(--surface); }
.search-map-link { display: flex; align-items: center; font-weight: 600; font-size: 15px; padding: 0 18px; border: 1px solid #4A5A68; border-radius: var(--r-btn); color: var(--surface); text-decoration: none; }
.search-map-link:hover { border-color: var(--surface); color: var(--surface); }
.search-layout { max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 72px; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.search-filters { display: flex; flex-direction: column; gap: 24px; flex: 1 1 240px; max-width: 300px; position: sticky; top: 88px; }
.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group__label { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.filter-group__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-group .source-chip { font-size: 13px; padding: 7px 12px; }
.filter-toggles { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); padding-top: 12px; }
.filter-toggle { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; padding: 10px 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.filter-toggle__track { width: 38px; height: 22px; border-radius: var(--r-chip); background: var(--line-strong); display: flex; justify-content: flex-start; padding: 3px; }
.filter-toggle.is-active .filter-toggle__track { background: var(--forest); justify-content: flex-end; }
.filter-toggle__thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--surface); }
.filter-reset { align-self: start; font-size: 14px; font-weight: 600; padding: 0; border: 0; background: none; color: var(--accent-dark); cursor: pointer; text-decoration: underline; }
.search-results { flex: 999 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.search-results__head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.search-count { font-family: var(--font-display); font-weight: 800; font-size: 24px; letter-spacing: -.02em; }
.search-sort { display: flex; gap: 4px; font-size: 14px; }
.sort-button { font-size: 14px; font-weight: 600; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); cursor: pointer; }
.sort-button.is-active { background: var(--sky); }
.active-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.active-pill { font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; border: 0; background: var(--sky); color: var(--ink); cursor: pointer; }
.search-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.search-empty { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 32px; display: flex; flex-direction: column; gap: 12px; align-items: start; }
.search-empty h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.search-empty p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.search-empty button { font-weight: 600; font-size: 15px; padding: 12px 18px; border: 0; border-radius: var(--r-btn); background: var(--ink); color: var(--surface); cursor: pointer; }

/* Guide */
.guide-article { max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 72px; display: flex; flex-direction: column; gap: 40px; }
.guide-head { max-width: 820px; display: flex; flex-direction: column; gap: 18px; }
.guide-head h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(38px, 5.5vw, 64px); line-height: 1; letter-spacing: -.035em; text-wrap: balance; }
.guide-lead { margin: 0; font-size: 20px; line-height: 1.5; color: #3E4A55; text-wrap: pretty; }
.guide-meta { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 12px; color: var(--meta); text-transform: uppercase; letter-spacing: .06em; }
.guide-hero-placeholder { aspect-ratio: 21 / 9; border-radius: 12px; background: repeating-linear-gradient(135deg, #E1E6E0 0 12px, #ECEFEA 12px 24px); display: flex; align-items: end; padding: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--meta); }
.guide-hero-media { margin: 0; aspect-ratio: 21 / 9; border-radius: 12px; overflow: hidden; background: var(--chip-bg); }
.guide-hero-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.guide-body-layout { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.guide-toc { flex: 1 1 200px; max-width: 240px; position: sticky; top: 88px; display: flex; flex-direction: column; gap: 4px; }
.guide-toc__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--meta); padding-bottom: 8px; }
.guide-toc a { font-size: 15px; padding: 6px 0 6px 12px; text-decoration: none; border-left: 2px solid var(--line); }
.guide-toc a:first-of-type { border-left-color: var(--ink); font-weight: 600; }
.guide-prose { flex: 999 1 520px; min-width: 0; max-width: 720px; display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 1.7; }
.guide-prose p { margin: 0; text-wrap: pretty; }
.guide-prose h2 { margin: 16px 0 0; font-family: var(--font-display); font-weight: 800; font-size: 30px; letter-spacing: -.02em; line-height: 1.15; }
.guide-prose h3 { margin: 8px 0 -10px; font-family: var(--font-display); font-weight: 800; font-size: 21px; line-height: 1.25; }
.guide-prose a { color: var(--accent-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.guide-prose ul, .guide-prose ol { margin: 0; padding-left: 24px; }
.guide-prose li + li { margin-top: 8px; }
.article-updated { padding: 14px 16px; border-left: 3px solid var(--accent); background: var(--surface); font-size: 15px; color: var(--ink-2); }
.guide-media { margin: 4px 0 10px; }
.guide-media img { display: block; width: 100%; max-height: 640px; object-fit: cover; border-radius: var(--r-card); background: var(--chip-bg); }
.guide-media figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--meta); }
.table-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); }
.table-wrap table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 15px; line-height: 1.5; }
.table-wrap th, .table-wrap td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table-wrap th { font-family: var(--font-display); font-size: 14px; background: var(--chip-bg); }
.table-wrap tr:last-child td { border-bottom: 0; }
.route-flow { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 18px 20px; }
.route-flow ol { margin: 0; display: grid; gap: 14px; }
.route-flow li { padding-left: 4px; }
.route-flow strong, .route-flow span { display: block; }
.route-flow span { margin-top: 2px; font-size: 15px; color: var(--ink-2); }
.field-note { padding: 18px 20px; background: var(--sky); border-radius: var(--r-card); font-size: 16px; line-height: 1.6; }
.guide-summary { background: var(--sky); border-radius: var(--r-card); padding: 20px 24px; display: flex; flex-direction: column; gap: 8px; }
.guide-summary strong { font-family: var(--font-display); font-weight: 800; font-size: 16px; }
.guide-summary span { font-size: 16px; line-height: 1.6; }
.guide-inline-cta { background: var(--ink); color: var(--surface); border-radius: var(--r-card); padding: 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.guide-inline-cta__copy { display: flex; flex-direction: column; gap: 4px; }
.guide-inline-cta__copy strong { font-family: var(--font-display); font-weight: 800; font-size: 20px; }
.guide-inline-cta__copy span { font-size: 15px; color: var(--footer-copy); }
.checklist { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 8px 20px; display: flex; flex-direction: column; }
.checklist-item { display: flex; gap: 12px; align-items: center; padding: 12px 0; border: 0; border-bottom: 1px solid var(--chip-bg); background: none; font-size: 16px; color: var(--ink); text-align: left; cursor: pointer; }
.checklist-box { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid var(--ink); background: var(--surface); color: var(--surface); display: grid; place-items: center; font-size: 13px; flex: none; }
.checklist-item.is-done .checklist-box { background: var(--ink); }
.checklist-item.is-done .checklist-text { text-decoration: line-through; }
.checklist-count { font-size: 13px; color: var(--meta); padding: 10px 0; }
.guide-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 16px; line-height: normal; }
.related-guides { border-top: 1px solid var(--line); }
.related-guides__inner { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 72px; display: flex; flex-direction: column; gap: 20px; }
.related-guides h2 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 32px; letter-spacing: -.03em; }
.related-guides .guide-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.guide-hub-library .related-guides__inner { gap: 48px; }
.guide-hub-group { display: flex; flex-direction: column; gap: 18px; scroll-margin-top: 92px; }
.guide-hub-group__intro { max-width: 780px; display: flex; flex-direction: column; gap: 8px; }
.guide-hub-group__intro h3 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.025em; }
.guide-hub-group__intro p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; text-wrap: pretty; }

/* Generic source-styled page fallback */
.source-page { max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 72px; }
.source-page h1 { margin: 0 0 24px; font-family: var(--font-display); font-weight: 800; font-size: clamp(44px, 7vw, 88px); line-height: .95; letter-spacing: -.04em; }
.source-page__hero { max-width: 960px; margin: 0 0 36px; aspect-ratio: 16 / 7; border-radius: var(--r-card); overflow: hidden; background: var(--chip-bg); }
.source-page__hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.source-page__content { max-width: 720px; font-size: 18px; line-height: 1.7; }
.source-page__content h2 { font-family: var(--font-display); font-size: 30px; line-height: 1.15; }

/* Map — exact Mapa.html */
.map-page { flex: 1; display: flex; min-height: 0; }
.map-side { width: 380px; max-width: 100%; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; background: var(--paper); }
.map-filters { padding: 20px; display: flex; flex-direction: column; gap: 14px; border-bottom: 1px solid var(--line); }
.map-filters h1 { margin: 0; font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -.03em; }
.map-filter-label { font-family: var(--font-display); font-weight: 700; font-size: 14px; }
.map-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.map-chip { font: 500 13px var(--font-body); padding: 6px 11px; border-radius: var(--r-chip); border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }
.map-chip.is-active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.map-count { font-family: var(--font-mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--meta); }
.map-list { overflow: auto; flex: 1; }
.map-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); cursor: pointer; background: transparent; border-left: 3px solid transparent; }
.map-item:hover { background: var(--surface); }
.map-item.is-active { background: var(--surface); border-left-color: var(--accent); }
.map-thumb { aspect-ratio: 1; border-radius: 6px; background: var(--chip-bg); overflow: hidden; }
.map-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.map-item__link { color: inherit; text-decoration: none; }
.map-item__region { font-family: var(--font-mono); font-size: 10px; letter-spacing: .06em; text-transform: uppercase; color: var(--meta); }
.map-item__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; margin: 2px 0; }
.map-item__time { font-size: 13px; color: var(--ink-2); }
.map-canvas { flex: 1; min-height: 420px; }
.map-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--surface); box-shadow: 0 1px 4px rgba(20, 32, 43, .4); }
.map-pin.is-active { background: var(--accent); width: 24px; height: 24px; margin: -3px; }
.leaflet-popup-content-wrapper { border-radius: var(--r-card); font-family: var(--font-body); }
.map-popup__region { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; color: var(--meta); letter-spacing: .06em; }
.map-popup__name { font-family: var(--font-display); font-weight: 800; font-size: 18px; margin: 4px 0; }
.map-popup p { margin: 6px 0 10px; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.map-popup__meta { margin-bottom: 10px; }
.map-popup a { display: inline-block; background: var(--accent-dark); color: var(--surface); text-decoration: none; font-weight: 600; font-size: 13px; padding: 8px 12px; border-radius: 6px; }
.map-popup a:hover { background: var(--ink); color: var(--surface); }
.map-empty { padding: 24px 20px; font-size: 14px; color: var(--ink-2); }

/* Footer — exact Stopka.dc.html */
.site-footer { background: var(--ink); color: var(--footer-copy); margin-top: 0; }
.site-footer__grid { max-width: var(--container); margin: 0 auto; padding: 56px var(--gutter) 32px; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.site-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.site-footer__brand-mark { display: flex; align-items: center; gap: 10px; color: var(--surface); }
.site-footer__brand-mark .site-logo__mark { background: var(--surface); }
.site-footer__brand-mark strong { font-family: var(--font-display); font-weight: 800; font-size: 17px; }
.site-footer__brand p { margin: 0; font-size: 14px; line-height: 1.55; max-width: 260px; }
.site-footer__column { display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.site-footer__title { font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--footer-muted); }
.site-footer a { color: var(--surface); text-decoration: none; }
.site-footer__bottom { max-width: var(--container); margin: 0 auto; padding: 16px var(--gutter) 28px; border-top: 1px solid var(--footer-line); font-size: 13px; color: var(--footer-muted); }

@media (max-width: 760px) {
  .guide-link { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
  .guide-toc { flex: 1 1 100%; max-width: none; position: static; }
  body.page-template-page-mapa { height: auto; min-height: 100%; }
  .map-page { flex: none; flex-direction: column-reverse; min-height: 0; }
  .map-side { width: 100%; border-right: 0; max-height: none; flex: none; }
  .map-list { flex: none; min-height: 240px; max-height: 52vh; }
  .map-canvas { flex: none; height: 52vh; min-height: 360px; }
}

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

