/* Save Me – uvodni zjisteni polohy (poloha.js). Paleta loga v3. */
html.smg-zamceno, html.smg-zamceno body { overflow: hidden; }

.smg {
  --smg-oliva: #4f5a2b;
  --smg-oliva-tmava: #3c4420;
  --smg-ruzova: #c27f86;
  --smg-ruzova-text: #9a4f58;
  --smg-krem: #f7f1e3;
  --smg-krem-tmavsi: #ece2cc;
  --smg-papir: #fdfaf2;
  --smg-text: #22261a;
  position: fixed; inset: 0; z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px;
  background: radial-gradient(120% 90% at 50% 0%, #fdfaf2 0%, #f7f1e3 55%, #ece2cc 100%);
  color: var(--smg-text);
  font-family: 'Garet', system-ui, -apple-system, 'Segoe UI', sans-serif;
  opacity: 1; transition: opacity .42s ease;
  overflow-y: auto;
}
.smg.smg-odchod { opacity: 0; pointer-events: none; }
.smg [hidden] { display: none !important; }

.smg-karta {
  width: 100%; max-width: 460px;
  background: var(--smg-papir);
  border: 1px solid rgba(79, 90, 43, .14);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(34, 38, 26, .12), 0 2px 6px rgba(34, 38, 26, .06);
  padding: 28px 26px 24px;
  animation: smg-prijezd .5s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes smg-prijezd { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }

.smg-znacka { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.smg-logo { width: 38px; height: 48px; flex: none; }
.smg-znacka strong { display: block; font-weight: 800; letter-spacing: .06em; font-size: 17px; color: var(--smg-oliva); line-height: 1.1; }
.smg-znacka small { display: block; font-size: 12.5px; color: rgba(34, 38, 26, .62); margin-top: 2px; }

.smg-titulek { font-size: 22px; line-height: 1.22; font-weight: 800; margin: 0 0 8px; color: var(--smg-text); letter-spacing: -.005em; }
.smg-pod { margin: 0 0 20px; font-size: 14.5px; line-height: 1.5; color: rgba(34, 38, 26, .72); min-height: 1.5em; }

/* progress bar */
.smg-lista {
  position: relative; height: 14px; border-radius: 999px;
  background: var(--smg-krem-tmavsi);
  box-shadow: inset 0 1px 2px rgba(34, 38, 26, .12);
  overflow: visible; margin: 6px 0 22px;
}
.smg-vypln {
  position: relative; display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #5f6b33 0%, var(--smg-oliva) 60%, var(--smg-oliva-tmava) 100%);
  transition: width .5s cubic-bezier(.3, .7, .2, 1);
}
.smg-vypln::after {
  content: ""; position: absolute; inset: 2px 6px auto 6px; height: 4px; border-radius: 999px;
  background: rgba(255, 255, 255, .22);
}
.smg-hrot {
  position: absolute; right: -15px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--smg-ruzova); color: #fff;
  box-shadow: 0 0 0 4px var(--smg-papir), 0 4px 10px rgba(154, 79, 88, .35);
}
.smg-hrot svg { width: 16px; height: 16px; }

.smg-kroky { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 9px; }
.smg-kroky li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(34, 38, 26, .5); transition: color .3s ease; }
.smg-kroky li svg {
  width: 22px; height: 22px; flex: none; padding: 3px; border-radius: 50%;
  color: rgba(34, 38, 26, .35); background: rgba(79, 90, 43, .08);
  transition: background .3s ease, color .3s ease;
}
.smg-kroky li[data-stav="bezi"] { color: var(--smg-text); font-weight: 700; }
.smg-kroky li[data-stav="bezi"] svg { color: var(--smg-ruzova-text); background: #f3e3e4; }
.smg-kroky li[data-stav="hotovo"] { color: var(--smg-oliva); }
.smg-kroky li[data-stav="hotovo"] svg { color: #fff; background: var(--smg-oliva); }

.smg-odkaz {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 700; color: var(--smg-ruzova-text);
  text-decoration: underline; text-underline-offset: 3px;
}
.smg-odkaz svg { width: 17px; height: 17px; }

/* adresa */
.smg-popis { display: block; font-size: 13px; font-weight: 700; margin: 0 0 6px; color: var(--smg-text); }
.smg-pole {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1.5px solid rgba(79, 90, 43, .28); border-radius: 14px;
  padding: 0 14px; transition: border-color .2s ease, box-shadow .2s ease;
}
.smg-pole:focus-within { border-color: var(--smg-oliva); box-shadow: 0 0 0 4px rgba(79, 90, 43, .12); }
.smg-pole svg { width: 20px; height: 20px; flex: none; color: var(--smg-oliva); }
.smg-pole input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent;
  font: inherit; font-size: 16px; padding: 14px 0; color: var(--smg-text);
}
.smg-navrhy {
  list-style: none; margin: 6px 0 0; padding: 6px; background: #fff;
  border: 1px solid rgba(79, 90, 43, .16); border-radius: 14px;
  box-shadow: 0 12px 28px rgba(34, 38, 26, .1);
}
.smg-navrhy li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 10px; cursor: pointer; }
.smg-navrhy li:hover, .smg-navrhy li[aria-selected="true"] { background: #f3ecdc; }
.smg-navrhy li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--smg-ruzova-text); }
.smg-navrhy b { display: block; font-size: 14.5px; font-weight: 700; }
.smg-navrhy small { display: block; font-size: 12.5px; color: rgba(34, 38, 26, .6); margin-top: 1px; }
.smg-chyba { margin: 10px 0 0; font-size: 13.5px; color: #9a4f58; font-weight: 700; }

.smg-tlacitko {
  margin: 16px 0 6px; width: 100%;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 14px; padding: 15px 18px; cursor: pointer;
  font: inherit; font-size: 16px; font-weight: 800; color: #fff;
  background: var(--smg-oliva); box-shadow: 0 4px 20px rgba(79, 90, 43, .3);
  transition: background .2s ease, transform .2s ease;
}
.smg-tlacitko:hover { background: var(--smg-oliva-tmava); }
.smg-tlacitko:active { transform: translateY(1px); }
.smg-tlacitko svg { width: 20px; height: 20px; }

.smg :focus-visible { outline: 3px solid var(--smg-ruzova-text); outline-offset: 2px; }
.smg .smg-pole input:focus-visible { outline: none; }

/* vzdalenost na karte nabidky */
.sm-km { color: #9a4f58; font-weight: 700; white-space: nowrap; }

@media (max-width: 420px) {
  .smg-karta { padding: 22px 18px 18px; border-radius: 20px; }
  .smg-titulek { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .smg, .smg-vypln, .smg-kroky li, .smg-kroky li svg { transition: none; }
  .smg-karta { animation: none; }
}

/* polohy: souhlas a informace (audit 2026-10-08) */
.smg-tlacitko--poloha{margin:14px 0 10px}
.smg-tlacitko--poloha svg{width:20px;height:20px}
.smg-drobne{margin:0 0 14px;font-size:12.5px;line-height:1.5;color:rgba(34,38,26,.66)}
.smg-drobne a{color:var(--smg-ruzova-text);font-weight:700}
.smg-nacitani .smg-odkaz+.smg-odkaz{margin-left:14px}
