/* ===================================================================
   Szwedzki Zakątek & Przystań Szwecja — przewodnik po okolicy
   Paleta zdjęta ze zdjęcia: las, łąka, Piława, drewno pomostu, elewacja
   =================================================================== */

:root {
  /* las */
  --forest-950: #08201a;
  --forest-900: #0c241a;
  --forest-800: #123a2a;
  --forest-700: #1b5540;
  --forest-600: #2a7b4a;
  /* łąka */
  --meadow-600: #5c8a1c;
  --meadow-500: #7ba32e;
  --meadow-300: #a8cc4a;
  /* rzeka */
  --river-950: #071a26;
  --river-900: #0c2338;
  --river-700: #14405f;
  --river-500: #2c7396;
  /* drewno pomostu (akcent) */
  --wood-600: #a2612c;
  --wood-500: #c07a3a;
  --wood-400: #d9944f;
  --wood-100: #f3e3ce;
  /* elewacja / papier */
  --paper: #f7f3e9;
  --card: #ffffff;
  --ink: #16241b;
  --ink-soft: #56675a;
  --line: #e3ddcd;

  --radius: 16px;
  --shadow: 0 10px 30px rgba(8, 32, 26, .16);
  --shadow-soft: 0 4px 14px rgba(8, 32, 26, .09);
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; cursor: pointer; }

/* ============ HERO ============ */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  color: #f4f1e6;
  background: linear-gradient(180deg, var(--forest-900) 0%, var(--river-950) 100%);
  overflow: hidden;
  isolation: isolate;
}

/* --- geometria kadru ---------------------------------------------------
   .hero-frame odtwarza dokladnie to, co robi object-fit:cover, ale jako
   pudelko o proporcjach zdjecia. Dzieki temu procenty wewnatrz ramki to
   wspolrzedne NA ZDJECIU, a nie w viewporcie -> adnotacje trzymaja sie
   domkow przy kazdej szerokosci i przy obu kadrach (wide / tall).       */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  container-type: size;
  /* kadr szeroki 1672x831 (zdjecie bez gornego pasa nieba) */
  --img-ar: 2.012;
  --focus-y: .40;
  --seam-x: 49.8%;
  --x-light: 34.2%;
  --x-dark: 65.4%;
  --y-anchor: 39.3%;
  --lead: clamp(24px, 4.6vh, 48px);
}

.hero-frame {
  position: absolute;
  left: 50%;
  top: 0;
  width: max(100cqw, calc(100cqh * var(--img-ar)));
  aspect-ratio: var(--img-ar);
  transform: translate(-50%, calc((100cqh - 100%) * var(--focus-y)));
}

.hero-frame picture { position: absolute; inset: 0; display: block; }

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* czytelnosc napisow: przyciemnienie gory i mocny scrim u dolu */
.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(94% 38% at 50% 64%, rgba(6, 24, 20, .20) 0%, rgba(6, 24, 20, 0) 74%),
    linear-gradient(180deg,
      rgba(8, 32, 26, .40) 0%,
      rgba(8, 32, 26, .04) 15%,
      rgba(8, 32, 26, .04) 36%,
      rgba(9, 32, 40, .30) 56%,
      rgba(8, 30, 40, .62) 80%,
      rgba(7, 26, 38, .86) 100%);
}

/* delikatny podzial "2 w 1" - szew biegnie dokladnie miedzy domkami */
.hero-zones {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: var(--seam-x) 1.5px 1fr;
}

.hero-zones .z-warm {
  background: linear-gradient(200deg, rgba(247, 243, 233, .05) 0%, rgba(247, 243, 233, .01) 45%, rgba(192, 122, 58, .07) 100%);
}

.hero-zones .z-cool {
  background: linear-gradient(160deg, rgba(7, 26, 38, .04) 0%, rgba(7, 26, 38, .05) 45%, rgba(7, 26, 38, .17) 100%);
}

.hero-zones .z-seam {
  background: linear-gradient(180deg,
    rgba(255, 255, 255, 0) 6%,
    rgba(255, 255, 255, .16) 30%,
    rgba(255, 255, 255, .20) 70%,
    rgba(255, 255, 255, 0) 94%);
}

/* --- adnotacje: tabliczka przy domku ---------------------------------- */

.hero-pins { z-index: 4; pointer-events: none; }

.hpin {
  position: absolute;
  display: block;
  width: 0;
  height: 0;
  top: var(--y-anchor);
  text-decoration: none;
  pointer-events: auto;
  color: inherit;
}

.hpin--light { left: var(--x-light); --tx: -50%; --pin-ink: #fbf6ea; }
.hpin--dark  { left: var(--x-dark);  --tx: -50%; --pin-ink: #c9e4f2; }

/* kropka na domku */
.hpin::after {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 10px; height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  border: 1.5px solid var(--pin-ink);
  background: rgba(10, 30, 24, .35);
  box-shadow: 0 0 0 2px rgba(8, 26, 20, .38), 0 2px 8px rgba(0, 0, 0, .5);
  transition: transform .22s ease;
}

/* linia-wskaznik od kropki do tabliczki */
.hpin::before {
  content: "";
  position: absolute;
  left: -.75px; top: 0;
  width: 1.5px;
  height: var(--lead);
  background: linear-gradient(180deg, var(--pin-ink) 0%, var(--pin-ink) 62%, rgba(255, 255, 255, .55) 100%);
  opacity: .9;
  box-shadow: 0 0 7px rgba(4, 16, 12, .6);
}

.hpin-plate {
  position: absolute;
  top: var(--lead);
  left: 0;
  transform: translateX(var(--tx));
  width: max-content;
  max-width: 46cqw;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: clamp(9px, 1.1vw, 13px) clamp(13px, 1.5vw, 18px) clamp(9px, 1.1vw, 12px);
  border-radius: 4px 4px 13px 13px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.hpin-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.92rem, 1.42vw, 1.3rem);
  line-height: 1.12;
  letter-spacing: -.005em;
  white-space: nowrap;
}

.hpin-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: clamp(.6rem, .72vw, .72rem);
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hpin-link svg {
  width: 11px; height: 11px;
  fill: none; stroke: currentColor;
  stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .22s ease;
}

/* tabliczka jest z tego samego "materialu" co domek, ktory opisuje */
.hpin--light .hpin-plate {
  background: rgba(250, 247, 238, .93);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 10px 26px rgba(6, 24, 18, .42);
  color: var(--forest-900);
}

.hpin--light .hpin-link { color: var(--wood-600); }

.hpin--dark .hpin-plate {
  background: rgba(9, 30, 44, .86);
  border: 1px solid rgba(158, 192, 214, .46);
  box-shadow: 0 10px 26px rgba(3, 14, 24, .5);
  color: #f4f8fb;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hpin--dark .hpin-link { color: #a9cfe2; }

.hpin:hover .hpin-plate { transform: translateX(var(--tx)) translateY(-3px); }
.hpin--light:hover .hpin-plate { box-shadow: 0 16px 34px rgba(6, 24, 18, .5); }
.hpin--dark:hover .hpin-plate { border-color: rgba(196, 226, 242, .8); box-shadow: 0 16px 34px rgba(3, 14, 24, .58); }
.hpin:hover .hpin-link svg { transform: translate(2px, -2px); }
.hpin:hover::after { transform: scale(1.25); }

.hpin:focus-visible { outline: none; }
.hpin:focus-visible .hpin-plate { outline: 2px solid var(--wood-400); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .hpin-plate, .hpin::after, .hpin-link svg { transition: none; }
  .hpin:hover .hpin-plate { transform: translateX(var(--tx)); }
  .hpin:hover::after { transform: none; }
}

.hero-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px clamp(16px, 4vw, 48px);
  position: relative;
  z-index: 3;
}

.brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.brand-mark { font-size: 1.4rem; }

.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  letter-spacing: .01em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}

.brand-amp { color: var(--wood-400); }

.lang-switch {
  display: flex;
  gap: 4px;
  background: rgba(10, 30, 24, .34);
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
  flex: none;
}

.lang-switch button {
  border: none;
  background: transparent;
  color: #e6efe2;
  font-weight: 600;
  font-size: .8rem;
  padding: 6px 12px;
  border-radius: 999px;
  transition: background .2s, color .2s;
}

.lang-switch button.active { background: var(--paper); color: var(--forest-800); }
.lang-switch button:not(.active):hover { background: rgba(255, 255, 255, .18); }

.hero-inner {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(20px, 3.4vh, 40px);
  padding: 0 clamp(16px, 4vw, 48px) clamp(22px, 4vh, 42px);
}

.hero-content {
  text-align: center;
  margin-top: auto;
  padding-top: clamp(24px, 6vh, 80px);
  max-width: 720px;
}

.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: .7rem;
  font-weight: 600;
  color: #cfe0c2;
  margin-bottom: 14px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .55);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.1rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -.015em;
  text-wrap: balance;
  color: #fffdf7;
  text-shadow: 0 4px 26px rgba(4, 18, 14, .6);
}

.hero-sub {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: clamp(.95rem, 1.5vw, 1.08rem);
  color: #e2ead9;
  text-wrap: pretty;
  text-shadow: 0 2px 14px rgba(4, 18, 14, .65);
}

.hero-stats {
  display: flex;
  gap: clamp(18px, 4vw, 40px);
  margin-top: clamp(14px, 2.4vh, 26px);
  flex-wrap: wrap;
  justify-content: center;
}

.stat { display: flex; flex-direction: column; align-items: center; gap: 1px; }
.stat strong { font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; color: #fff; text-shadow: 0 2px 12px rgba(4, 18, 14, .6); }
.stat span { font-size: .7rem; color: #c6d9ba; text-transform: uppercase; letter-spacing: .14em; }

/* ---- CTA ---- */

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--wood-500);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
  padding: 13px 28px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(120, 66, 22, .46);
  transition: transform .2s, box-shadow .2s, background .2s;
}

.hero-cta:hover { background: var(--wood-400); transform: translateY(-2px); box-shadow: 0 16px 36px rgba(120, 66, 22, .55); }

.cta-arrow {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2.4;
  stroke-linecap: round; stroke-linejoin: round;
  animation: cta-bob 2.2s ease-in-out infinite;
}

@keyframes cta-bob {
  0%, 100% { transform: translateY(-2px); }
  50%      { transform: translateY(3px); }
}

@media (prefers-reduced-motion: reduce) {
  .cta-arrow { animation: none; }
  html { scroll-behavior: auto; }
}

/* ============ TOOLBAR / CHIPS ============ */

.app { position: relative; }

.toolbar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(247, 243, 233, .93);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  padding: 12px clamp(12px, 3vw, 28px);
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  flex: 1;
  min-width: 0;
  padding: 2px;
}

.chips::-webkit-scrollbar { display: none; }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  font-weight: 600;
  font-size: .84rem;
  padding: 8px 14px;
  border-radius: 999px;
  transition: all .18s;
  box-shadow: var(--shadow-soft);
}

.chip .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--chip-color, var(--forest-600));
  flex: none;
}

.chip:hover { border-color: var(--chip-color, var(--forest-600)); color: var(--ink); }

.chip.active {
  background: var(--chip-color, var(--forest-600));
  border-color: var(--chip-color, var(--forest-600));
  color: #fff;
}

.chip.active .dot { background: #fff; }

.toolbar-side {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.count { font-size: .82rem; color: var(--ink-soft); font-weight: 500; white-space: nowrap; }

.osm-btn {
  border: 1.5px dashed #bdb49f;
  background: transparent;
  color: var(--ink-soft);
  font-size: .78rem;
  font-weight: 600;
  padding: 8px 13px;
  border-radius: 999px;
  transition: all .18s;
  white-space: nowrap;
}

.osm-btn:hover { border-color: var(--forest-600); color: var(--forest-700); }
.osm-btn.on { border-style: solid; border-color: var(--forest-600); background: #e7f1e2; color: var(--forest-700); }
.osm-btn:disabled { opacity: .55; cursor: wait; }

/* ============ CONTENT: LIST + MAP ============ */

.content {
  display: grid;
  grid-template-columns: 384px 1fr;
  height: calc(100svh - 66px);
  min-height: 480px;
}

.list-panel {
  background: var(--card);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 14px;
}

.sheet-handle { display: none; }

.list-hint {
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--ink-soft);
  padding: 4px 8px 12px;
}

.list { display: flex; flex-direction: column; gap: 8px; }

.list-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  width: 100%;
  transition: background .15s, border-color .15s;
}

.list-item:hover { background: #f4f1e6; }
.list-item.active { background: #edf4e6; border-color: var(--forest-600); }

.list-item .li-icon {
  flex: none;
  width: 38px; height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  background: color-mix(in srgb, var(--li-color, var(--forest-600)) 16%, white);
}

.list-item .li-name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.list-item .li-meta { font-size: .78rem; color: var(--ink-soft); margin-top: 2px; }
.list-item .li-dist { font-weight: 600; color: var(--forest-700); }

.list-empty { padding: 30px 14px; text-align: center; color: var(--ink-soft); font-size: .9rem; }

/* ============ MAP ============ */

.map-wrap { position: relative; min-height: 0; }

#map { position: absolute; inset: 0; background: #dbe6da; }

/* podpowiedz przy probie scrollowania nad mapa bez Ctrl */
.map-hint {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.96);
  z-index: 1200;
  max-width: min(84%, 24rem);
  padding: 11px 20px;
  border-radius: 999px;
  background: rgba(8, 32, 26, .82);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 30px rgba(4, 18, 14, .38);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: #f4f1e6;
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .01em;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity .22s ease, transform .22s ease;
}

.map-hint.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (prefers-reduced-motion: reduce) {
  .map-hint { transition: opacity .01s linear; transform: translate(-50%, -50%); }
  .map-hint.show { transform: translate(-50%, -50%); }
}

.leaflet-container { font-family: var(--font-body); }
.leaflet-tile-pane { filter: saturate(.78) contrast(.95) brightness(1.04); }
.leaflet-popup-content a { color: var(--forest-700); }

/* custom pins */
.pin {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50% 50% 50% 4px;
  transform: rotate(-45deg);
  background: var(--pin-color, var(--forest-600));
  border: 2.5px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
  display: grid;
  place-items: center;
}

.pin span { transform: rotate(45deg); font-size: 15px; line-height: 1; }

.pin.osm { opacity: .82; filter: saturate(.15); }

.pin-home {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--wood-400), var(--wood-600));
  border: 3.5px solid #fff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
  display: grid;
  place-items: center;
  font-size: 25px;
  animation: home-pulse 2.6s ease-out infinite;
}

@keyframes home-pulse {
  0%   { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 0 rgba(192,122,58,.5); }
  70%  { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 22px rgba(192,122,58,0); }
  100% { box-shadow: 0 6px 18px rgba(0,0,0,.35), 0 0 0 0 rgba(192,122,58,0); }
}

.home-label {
  background: var(--forest-800);
  color: #fff;
  font-weight: 600;
  font-size: .75rem;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-soft);
}

/* clusters */
.cluster {
  background: var(--forest-700);
  color: #fff;
  border: 3px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: .85rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .25);
}

/* ============ DETAIL CARD ============ */

.detail {
  position: absolute;
  z-index: 1000;
  left: 16px;
  bottom: 18px;
  width: min(400px, calc(100% - 32px));
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  animation: detail-in .22s ease-out;
}

@keyframes detail-in {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.detail-close {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: none;
  background: #efeade;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1;
  z-index: 2;
}

.detail-close:hover { background: var(--line); color: var(--ink); }

.detail-body { padding: 18px 20px 18px; }

.detail-cat {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  background: var(--cat-color, var(--forest-600));
  padding: 4px 11px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.detail-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.2;
  padding-right: 26px;
}

.detail-town { font-size: .82rem; color: var(--ink-soft); margin-top: 3px; }

.detail-desc { font-size: .9rem; margin-top: 10px; color: #33422f; }

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.meta-tag {
  font-size: .76rem;
  font-weight: 600;
  background: var(--wood-100);
  color: #86501c;
  padding: 4px 11px;
  border-radius: 999px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-weight: 600;
  font-size: .84rem;
  padding: 10px 16px;
  border-radius: 12px;
  transition: transform .15s, box-shadow .15s;
}

.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--forest-700); color: #fff; box-shadow: 0 6px 16px rgba(27, 85, 64, .32); }
.btn-ghost { background: #efeade; color: var(--ink); }
.btn-tel { background: var(--wood-100); color: #86501c; }

/* ============ MOBILE LIST TOGGLE / TOAST ============ */

.list-toggle {
  display: none;
  position: absolute;
  z-index: 1001;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-800);
  color: #fff;
  border: none;
  font-weight: 600;
  font-size: .9rem;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 10px 26px rgba(8, 32, 26, .42);
}

.toast {
  position: absolute;
  z-index: 1200;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--forest-800);
  color: #fff;
  font-size: .84rem;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow);
  max-width: min(90%, 480px);
  text-align: center;
}

/* ============ FOOTER ============ */

.footer {
  text-align: center;
  padding: 26px 16px 30px;
  background: var(--forest-950);
  color: #cadfc4;
  font-size: .92rem;
}

.footer-small { margin-top: 6px; font-size: .72rem; color: #7d9878; }


/* ============ RESPONSIVE ============ */

/* --- kadr pionowy (hero-tall) -----------------------------------------
   Ten sam warunek co w <picture>, zeby wspolrzedne adnotacji zawsze
   pasowaly do faktycznie wczytanego pliku.                              */
@media (max-width: 900px), (max-aspect-ratio: 4/5) {
  .hero-media {
    /* kadr weższy 1200x941 (wyciety 236-1436 px z oryginalu 1672 px) */
    --img-ar: 1.2752;
    --focus-y: .45;
    --seam-x: 51.2%;
    --x-light: 28%;
    --x-dark: 72.1%;
    --y-anchor: 46.6%;
    --lead: clamp(20px, 3.6vh, 36px);
  }

  .hpin-plate {
    max-width: 46cqw;
    border-radius: 3px 3px 11px 11px;
    padding: 8px 12px 8px;
    gap: 1px;
  }
  .hpin-name { font-size: clamp(.8rem, 3.1vw, 1rem); }
  .hpin-link { font-size: clamp(.55rem, 2vw, .65rem); letter-spacing: .06em; }
  .hpin-link svg { width: 10px; height: 10px; }
  .hpin::after { width: 10px; height: 10px; margin: -5px 0 0 -5px; }
}

/* --- hero: uklad mobilny (zdjecie u gory, panel z tekstem pod nim) --- */
@media (max-width: 900px) {
  .hero {
    display: flex;
    flex-direction: column;
    background: var(--forest-900);
  }

  .hero-media {
    position: relative;
    inset: auto;
    height: clamp(215px, 38svh, 340px);
    flex: none;
    order: 2;
  }

  .hero-scrim {
    background: linear-gradient(180deg,
      rgba(8, 32, 26, .20) 0%,
      rgba(8, 32, 26, 0) 20%,
      rgba(10, 34, 26, .24) 66%,
      var(--forest-900) 100%);
  }

  .hero-zones { display: none; }

  .hero-nav {
    position: relative;
    order: 1;
    padding: 14px clamp(16px, 5vw, 28px);
    background: var(--forest-900);
  }

  .hero-inner {
    order: 3;
    flex: 1;
    justify-content: center;
    gap: clamp(16px, 3vh, 30px);
    padding: 18px clamp(16px, 5vw, 28px) 22px;
    background: linear-gradient(180deg, var(--forest-900) 0%, var(--river-950) 100%);
  }

  .hero-content { margin-top: 0; padding-top: 0; }
  .hero-title { text-shadow: none; font-size: clamp(1.75rem, 8.2vw, 2.3rem); }
  .hero-eyebrow { text-shadow: none; margin-bottom: 8px; font-size: .62rem; letter-spacing: .18em; }
  .hero-sub { text-shadow: none; margin-top: 8px; font-size: .9rem; }
  .hero-stats {
    margin-top: clamp(14px, 2.6vh, 24px);
    gap: clamp(14px, 5vw, 40px);
    flex-wrap: nowrap;
  }
  .stat strong { text-shadow: none; font-size: 1.3rem; }
  .stat span { font-size: .62rem; letter-spacing: .1em; white-space: nowrap; }

  .hero-cta { margin-top: 2px; align-self: center; }
}

/* --- aplikacja / mapa --- */
@media (max-width: 959px) {
  .content {
    grid-template-columns: 1fr;
    height: calc(100svh - 116px);
  }

  .list-toggle { display: block; }

  .list-panel {
    position: fixed;
    z-index: 1300;
    left: 0; right: 0; bottom: 0;
    top: auto;
    height: 68svh;
    border-right: none;
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -12px 40px rgba(8, 32, 26, .3);
    transform: translateY(105%);
    transition: transform .28s ease;
    padding-top: 6px;
  }

  .list-panel.open { transform: translateY(0); }

  .sheet-handle {
    display: block;
    padding: 8px 0 10px;
    cursor: pointer;
  }

  .sheet-handle span {
    display: block;
    width: 44px; height: 5px;
    border-radius: 99px;
    background: #d8d2c4;
    margin: 0 auto;
  }

  .detail {
    left: 12px;
    bottom: 84px;
    width: calc(100% - 24px);
  }

  .toolbar { gap: 10px; padding-bottom: 10px; }
  .toolbar-side { margin-left: 0; width: 100%; justify-content: space-between; }
}

@media (max-width: 560px) {
  .brand-name { display: flex; flex-direction: column; line-height: 1.12; font-size: 0.82rem; }
  .brand-amp { display: none; }
  .brand-second { color: var(--wood-400, #d9944f); }
  .detail-body { padding: 15px 16px; }
}
