/* AlkoMap — ciemny granat + pomarańcz, mobile first */

:root {
  --bg: #070b14;
  --bg-2: #0d1424;
  --card: #121b2e;
  --card-2: #18233b;
  --line: #223050;
  --txt: #eef3ff;
  --muted: #8ea0c2;
  --orange: #ff9518;
  --orange-2: #ffb454;
  --red: #ff5a4d;
  --green: #2fd6a5;
  --violet: #9b7bff;
  --radius: 16px;
  --tabbar-h: 62px;
  --topbar-h: 54px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--bg);
  color: var(--txt);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior: none;
}

h1, h2, h3 { margin: 0 0 .4em; line-height: 1.2; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
a { color: var(--orange-2); }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }

/* ---------- przyciski / pola ---------- */

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform .08s ease, filter .15s ease;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  color: #241200;
  box-shadow: 0 6px 20px rgba(255, 149, 24, .25);
}
.btn-ghost {
  background: transparent;
  color: var(--txt);
  border: 1px solid var(--line);
}
.btn-block { width: 100%; display: block; }
.row { display: flex; gap: 10px; }
.row .btn { flex: 1; }

.icon-btn {
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 12px;
  width: 40px; height: 40px;
  font-size: 18px;
  cursor: pointer;
}
.icon-btn.round { border-radius: 50%; }

input[type=text], input[type=number], textarea, select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  outline: none;
}
input:focus, textarea:focus, select:focus { border-color: var(--orange); }
textarea { resize: vertical; }

.field-inline { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.field-row { display: flex; gap: 10px; }
.field-row > * { flex: 1; min-width: 0; }
.lbl { display: block; margin: 16px 0 8px; font-weight: 700; font-size: .9rem; }
.lbl-col { display: flex; flex-direction: column; gap: 6px; font-size: .82rem; color: var(--muted); }
.emoji-pick {
  flex: 0 0 52px; height: 52px;
  font-size: 26px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  cursor: pointer;
}
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .85rem; color: var(--muted); margin: 12px 0 16px; }
.check input { margin-top: 3px; accent-color: var(--orange); }

/* ---------- bramka wejściowa ---------- */

.overlay {
  position: fixed; inset: 0;
  /* Leaflet rysuje swoje warstwy na z-index 400-800, więc cały interfejs
     musi siedzieć wyżej - inaczej mapa zasłania arkusze i okna. */
  z-index: 1400;
  display: grid; place-items: center;
  padding: 20px;
  background:
    radial-gradient(1000px 600px at 50% -10%, rgba(255, 149, 24, .18), transparent 60%),
    var(--bg);
  overflow-y: auto;
}
.gate-card {
  width: min(430px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.logo { text-align: center; margin-bottom: 22px; }
.logo-mark { font-size: 44px; display: block; }
.logo h1 { font-size: 2rem; letter-spacing: 1px; margin: 6px 0 2px; }
.logo h1 span { color: var(--txt); }
.logo h1 b { color: var(--orange); }
.tagline { color: var(--muted); font-size: .82rem; letter-spacing: 2px; text-transform: uppercase; margin: 0; }

/* ---------- topbar / tabbar ---------- */

.topbar {
  height: var(--topbar-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 14px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 900;
}
.brand { font-weight: 900; letter-spacing: 1px; }
.brand b { color: var(--orange); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.pill {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: .78rem;
  color: var(--muted);
}

main {
  position: absolute;
  top: var(--topbar-h);
  bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  left: 0; right: 0;
  overflow: hidden;
}
.view { position: absolute; inset: 0; overflow-y: auto; padding: 0; }
#view-ludzie, #view-sciana { padding: 14px 14px 30px; }
#view-czat { display: flex; flex-direction: column; padding: 10px 12px 12px; }

.tabbar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 900;
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.tab {
  background: none; border: 0; cursor: pointer;
  color: var(--muted);
  font-size: .66rem; font-weight: 800; letter-spacing: 1px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
}
.tab span { font-size: 19px; filter: grayscale(1) opacity(.75); }
.tab.active { color: var(--orange); }
.tab.active span { filter: none; }

/* ---------- mapa ---------- */

#map { position: absolute; inset: 0; background: var(--bg-2); }
.leaflet-container { background: #0a0f1c; font: inherit; }
/* Ciemna mapa ze zwykłych kafelków OSM (bez klucza API). */
.leaflet-tile-pane {
  filter: invert(1) hue-rotate(180deg) saturate(.22) brightness(.72) contrast(1.18);
}
.leaflet-control-attribution { background: rgba(7, 11, 20, .7) !important; color: #6d7c99 !important; }
.leaflet-control-attribution a { color: #8ea0c2 !important; }

.map-fab {
  position: absolute; z-index: 500;
  left: 14px; right: 14px; bottom: 16px;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
}
.map-fab .fab { order: 2; width: 100%; box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.map-fab #locateBtn {
  order: 1;
  width: 44px; height: 44px;
  background: rgba(18, 27, 46, .92);
  backdrop-filter: blur(6px);
}
/* Na telefonie zoom robi się gestem — kontrolki tylko zasłaniałyby przyciski. */
@media (max-width: 719px) {
  .leaflet-control-zoom { display: none; }
}
.map-filters {
  position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px;
  display: flex; gap: 8px;
}
.map-filters select {
  width: auto; flex: 0 0 auto;
  padding: 8px 12px;
  font-size: .82rem;
  background: rgba(18, 27, 46, .92);
  backdrop-filter: blur(6px);
}

.pin-marker {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  font-size: 20px;
  background: var(--card);
  border: 2px solid var(--orange);
  border-radius: 50% 50% 50% 6px;
  transform: rotate(45deg);
  box-shadow: 0 6px 16px rgba(0, 0, 0, .5);
}
.pin-marker > span { transform: rotate(-45deg); }
.pin-marker.s-mam { border-color: var(--orange); }
.pin-marker.s-szukam { border-color: var(--violet); }
.pin-marker.s-stawiam { border-color: var(--green); }
.pin-marker.s-w_lokalu { border-color: #4aa8ff; }
.pin-marker.mine { border-color: #fff; box-shadow: 0 0 0 4px rgba(255, 149, 24, .35); }
.me-dot {
  width: 16px; height: 16px; border-radius: 50%;
  background: #4aa8ff; border: 2px solid #fff;
  box-shadow: 0 0 0 6px rgba(74, 168, 255, .25);
}

/* ---------- listy / karty ---------- */

.list-head { display: flex; align-items: baseline; justify-content: space-between; margin: 6px 0 10px; }
.list { display: flex; flex-direction: column; gap: 10px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
}
.card.clickable { cursor: pointer; }
.card.clickable:active { background: var(--card-2); }
.card-top { display: flex; gap: 10px; align-items: center; }
.avatar {
  flex: 0 0 42px; height: 42px;
  display: grid; place-items: center;
  font-size: 21px;
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.card-name { font-weight: 700; }
.card-sub { color: var(--muted); font-size: .8rem; }
.dist {
  margin-left: auto;
  color: var(--orange);
  font-weight: 800;
  font-size: .85rem;
  white-space: nowrap;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .76rem;
}
.note { margin: 8px 0 0; font-size: .9rem; }
.empty { text-align: center; color: var(--muted); padding: 40px 20px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  background: var(--card-2);
  border: 1px solid var(--line);
  color: var(--txt);
  border-radius: 999px;
  padding: 9px 14px;
  font: inherit; font-size: .85rem;
  cursor: pointer;
}
.chip.active {
  background: rgba(255, 149, 24, .16);
  border-color: var(--orange);
  color: var(--orange-2);
  font-weight: 700;
}

/* ---------- czat ---------- */

.chat-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.chat-wrap { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.chat-log {
  flex: 1;
  overflow-y: auto;
  display: flex; flex-direction: column; gap: 8px;
  padding: 4px 2px 10px;
}
.small-log { max-height: 34vh; min-height: 120px; }
.msg { max-width: 85%; }
.msg .bubble {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 8px 12px;
  word-wrap: break-word;
  overflow-wrap: anywhere;
}
.msg .meta { font-size: .72rem; color: var(--muted); margin: 0 0 3px 4px; }
.msg.mine { align-self: flex-end; }
.msg.mine .bubble {
  background: rgba(255, 149, 24, .16);
  border-color: rgba(255, 149, 24, .4);
  border-radius: 14px 14px 4px 14px;
}
.msg.mine .meta { text-align: right; margin: 0 4px 3px 0; }
.chat-form { display: flex; gap: 8px; padding-top: 6px; }
.chat-form .btn { flex: 0 0 auto; }
.badge {
  background: var(--red); color: #fff;
  border-radius: 999px; padding: 1px 7px;
  font-size: .7rem; margin-left: 6px;
}

/* ---------- ściana / zbiórka ---------- */

.fund-card, .wall-form-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.fund-head h2 { margin-bottom: 2px; }
.fund-numbers { display: flex; gap: 10px; margin: 14px 0 10px; }
.fund-numbers > div { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.fund-numbers b { font-size: 1.2rem; color: var(--orange); }
.progress {
  height: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
}
.progress i {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--orange), var(--orange-2));
  transition: width .6s ease;
}
.wall-form-card textarea { margin-bottom: 10px; }
.wall-form-card .field-row { margin-bottom: 10px; }
.wall-entry .pledge {
  margin-left: auto;
  color: var(--green);
  font-weight: 800;
  font-size: .85rem;
}

/* ---------- arkusze (bottom sheet) ---------- */

.sheet {
  position: fixed; inset: 0; z-index: 1300;
  background: rgba(3, 6, 12, .72);
  display: flex; align-items: flex-end; justify-content: center;
}
.sheet-card {
  width: min(520px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 22px 22px 0 0;
  padding: 18px 18px calc(20px + env(safe-area-inset-bottom, 0px));
  animation: up .18s ease;
}
@keyframes up { from { transform: translateY(24px); opacity: .6; } }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sheet-head h2 { margin: 0; }
.small-actions { margin-top: 12px; }
.small-actions .btn { padding: 9px 12px; font-size: .85rem; font-weight: 600; }
.links { display: flex; gap: 16px; justify-content: center; margin-top: 14px; font-size: .82rem; }

/* ---------- toast ---------- */

.toast {
  position: fixed; z-index: 1500;
  left: 50%; bottom: calc(var(--tabbar-h) + 20px);
  transform: translateX(-50%);
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 16px;
  font-size: .88rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
  max-width: 90vw;
}
.toast.err { border-color: var(--red); color: #ffd9d5; }

@media (min-width: 720px) {
  #view-ludzie, #view-sciana, #view-czat { max-width: 720px; margin: 0 auto; }
  .sheet-card { border-radius: 22px; margin-bottom: 6vh; border-bottom: 1px solid var(--line); }
  .sheet { align-items: center; }
}

/* ---------- statyczne podstrony ---------- */

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 60px;
}
.page h1 { color: var(--orange); }
.page h2 { margin-top: 28px; }
.page ul { padding-left: 20px; }
.page li { margin-bottom: 6px; }

/* ---------- tło z grafiki (assets/tlo.jpg|png|webp) ---------- */
/* Klasa has-bg dodawana przez app.js dopiero, gdy plik faktycznie się wczyta,
   więc brak grafiki nic nie psuje - zostaje zwykły ciemny motyw. */

body.has-bg::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -2;
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  filter: blur(3px) saturate(1.05);
  transform: scale(1.06);
}
body.has-bg::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 11, 20, .74), rgba(7, 11, 20, .92));
}
body.has-bg { background: transparent; }

/* Panele stają się półprzezroczyste, żeby tło było widoczne, ale tekst czytelny. */
body.has-bg .topbar,
body.has-bg .tabbar { background: rgba(13, 20, 36, .82); backdrop-filter: blur(10px); }
body.has-bg .card,
body.has-bg .gate-card,
body.has-bg .sheet-card,
body.has-bg .fund-card,
body.has-bg .wall-form-card { background: rgba(18, 27, 46, .88); backdrop-filter: blur(8px); }
body.has-bg .overlay { background: transparent; }
body.has-bg #view-ludzie,
body.has-bg #view-czat,
body.has-bg #view-sciana { background: transparent; }

/* Na bramce wejściowej pokazujemy samą grafikę zamiast emoji. */
.logo-img {
  display: block;
  width: 148px;
  height: 148px;
  margin: 0 auto 6px;
  border-radius: 26px;
  object-fit: cover;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .6);
}

/* ================= STRONA POWITALNA (hero) ================= */

.landing {
  position: fixed;
  inset: 0;
  z-index: 1350;
  overflow-y: auto;
  color: var(--txt);
  background:
    radial-gradient(900px 500px at 62% 42%, rgba(255, 149, 24, .14), transparent 62%),
    radial-gradient(700px 420px at 90% 8%, rgba(255, 180, 84, .10), transparent 60%),
    linear-gradient(160deg, #05070e 0%, #0a1020 55%, #05070e 100%);
}
/* delikatna siatka mapy w tle, jak na grafice */
.landing::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 149, 24, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 149, 24, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(80% 70% at 60% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(80% 70% at 60% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}

.landing-inner {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 22px 130px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 100%;
}

.hero-glasses { width: 58px; height: 38px; color: var(--orange); display: block; }
.hero-title {
  font-size: clamp(3rem, 9vw, 5.4rem);
  line-height: .92;
  letter-spacing: -1px;
  margin: 12px 0 10px;
  font-weight: 900;
}
.hero-title span { display: block; color: #fff; }
.hero-title b { display: block; color: var(--orange); }
.hero-tagline { font-size: clamp(1rem, 2.2vw, 1.35rem); font-weight: 600; margin: 0 0 18px; }
.hero-rule {
  height: 1px;
  width: 240px;
  max-width: 60%;
  background: linear-gradient(90deg, var(--orange), transparent);
  margin-bottom: 22px;
}

.hero-icons { display: flex; gap: 34px; margin-bottom: 26px; }
.hero-icon { text-align: center; color: var(--orange-2); }
.hero-icon svg {
  width: 30px; height: 30px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.hero-icon span {
  display: block;
  margin-top: 6px;
  font-size: .68rem;
  letter-spacing: 2px;
  color: var(--muted);
}

.hero-features { list-style: none; padding: 0; margin: 0; max-width: 460px; }
.hero-features li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 149, 24, .16);
}
.hero-features li:first-child { border-top: 0; }
.hero-features b { display: block; color: var(--orange); margin-bottom: 2px; }
.hero-features p { margin: 0; color: #c6d2e8; font-size: .92rem; }
.fi {
  flex: 0 0 42px; height: 42px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 149, 24, .45);
  border-radius: 50%;
  color: var(--orange);
}
.fi svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- prawa strona: pinezka z butelką ---------- */

.hero-right { display: flex; justify-content: center; }
.hero-art { position: relative; width: min(420px, 92%); aspect-ratio: 1 / 1.08; }
.hero-img { width: 100%; height: 100%; object-fit: contain; border-radius: 20px; }

.hero-pin-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 26px rgba(255, 149, 24, .45));
}

/* butelka siedzi w górnej, okrągłej części kropli */
.hero-bottle {
  position: absolute;
  left: 50%;
  top: 34%;
  transform: translate(-50%, -50%);
  width: 42%;
}
.hero-bottle-neck {
  width: 30%;
  height: 34px;
  margin: 0 auto -4px;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #120c04, #a8630f);
  border: 1px solid rgba(255, 180, 84, .35);
}
.hero-bottle-label {
  background: linear-gradient(180deg, #0e0f14, #17181f);
  border: 1px solid rgba(255, 180, 84, .45);
  border-radius: 10px;
  padding: 12px 10px 12px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .65);
}
.hero-bottle-label .cheers { font-size: 15px; }
.hero-bottle-label b { display: block; color: #fff; font-size: 1.5rem; font-weight: 900; letter-spacing: 1px; line-height: 1.05; }
.hero-bottle-label i { display: block; color: var(--orange); font-size: 1.3rem; font-weight: 900; font-style: normal; letter-spacing: 1px; }
.hero-bottle-label .stars { display: block; color: var(--orange); font-size: .55rem; letter-spacing: 3px; margin: 5px 0 3px; }
.hero-bottle-label small { display: block; color: #cfd8ea; font-size: .48rem; letter-spacing: 1px; line-height: 1.5; }

.mini-pin {
  position: absolute;
  padding: 7px 12px 9px;
  font-size: .72rem;
  font-weight: 700;
  color: #fff;
  background: rgba(10, 14, 24, .85);
  border: 2px solid var(--orange);
  border-radius: 999px 999px 999px 4px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .5);
}
.mini-pin.p1 { top: 2%; left: 2%; border-color: #ff7a3d; }
.mini-pin.p2 { top: 8%; right: 0; border-color: var(--orange); }
.mini-pin.p3 { bottom: 16%; left: 0; border-color: #2fb4a5; }
.mini-pin.p4 { bottom: 8%; right: 4%; border-color: #9b7bff; }
.me-blip {
  position: absolute;
  left: 26%; bottom: 26%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #35c8ff;
  box-shadow: 0 0 0 6px rgba(53, 200, 255, .22);
}

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

.hero-cta {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 32px));
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 10px 10px 22px;
  background: rgba(10, 15, 26, .92);
  border: 1px solid rgba(255, 149, 24, .35);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  z-index: 1360;
}
.hero-cta-text { font-size: .92rem; color: #d7e0f2; }
.hero-cta .btn { border-radius: 999px; padding: 12px 22px; letter-spacing: 1px; white-space: nowrap; }

@media (max-width: 860px) {
  .landing-inner { grid-template-columns: 1fr; padding: 26px 18px 150px; }
  .hero-right { order: -1; }
  .hero-art { width: min(300px, 76%); }
  .hero-icons { gap: 24px; }
  .hero-cta { flex-direction: column; border-radius: 22px; padding: 14px; gap: 10px; }
  .hero-cta .btn { width: 100%; }
  .hero-cta-text { text-align: center; }
}

/* ---------- wgrana grafika jako pełne tło ---------- */
/* Grafika zawiera już logo, hasło i opis funkcji, więc na szerokim ekranie
   pokazujemy ją w całości i chowamy powielający ją tekst HTML. */

body.has-bg .landing {
  background-image: var(--bg-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
body.has-bg .landing::before { display: none; }  /* siatka jest już na grafice */
body.has-bg .hero-art,
body.has-bg .hero-pin-svg,
body.has-bg .hero-bottle,
body.has-bg .mini-pin,
body.has-bg .me-blip { display: none; }
body.has-bg .landing-inner { display: none; }

/* Na wąskim ekranie kadr ucina napisy z grafiki, więc wraca tekst HTML,
   a grafika zostaje jako przyciemnione tło. */
@media (max-width: 900px) {
  body.has-bg .landing-inner { display: grid; }
  body.has-bg .landing { background-position: 62% center; }
  body.has-bg .landing::after {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(7, 11, 20, .80), rgba(7, 11, 20, .93));
  }
}

/* ---------- ręczna poprawka lokalizacji ---------- */

.loc-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
}
.loc-row .btn { padding: 8px 14px; font-size: .85rem; white-space: nowrap; }

.adjust-bar {
  position: fixed;
  /* wyżej niż warstwy Leafletu (400+), inaczej mapa przykrywa pasek */
  z-index: 1200;
  left: 50%;
  bottom: calc(var(--tabbar-h) + 18px);
  transform: translateX(-50%);
  width: min(460px, calc(100% - 24px));
  background: rgba(13, 20, 36, .95);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .6);
  backdrop-filter: blur(8px);
}
.adjust-text { margin: 0 0 10px; font-size: .88rem; }
.adjust-text b { color: var(--orange); }
.adjust-text b.too-far { color: var(--red); }

/* celownik siedzi na środku mapy - przesuwa się mapa, nie celownik */
.crosshair {
  position: fixed;
  z-index: 1150;
  left: 50%;
  top: calc(var(--topbar-h) + (100vh - var(--topbar-h) - var(--tabbar-h)) / 2);
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  pointer-events: none;
}
.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: var(--orange);
  box-shadow: 0 0 8px rgba(255, 149, 24, .8);
}
.crosshair::before { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }
.crosshair::after { top: 50%; left: 0; height: 2px; width: 100%; margin-top: -1px; }
.crosshair span {
  position: absolute;
  inset: 12px;
  border: 2px solid var(--orange);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(255, 149, 24, .7);
}
