:root {
  --fond: #ffffff;
  --fond-2: #f4f5f1;
  --text: #1d2420;
  --text-2: #5b665f;
  --linie: #e1e4dd;
  --accent: #24452f;
  --accent-2: #3d7a52;
  --umbra: 0 6px 24px rgba(20, 30, 25, .16), 0 1px 3px rgba(20, 30, 25, .12);
  --raza: 14px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #1b211e;
    --fond-2: #252c28;
    --text: #e8ece9;
    --text-2: #a2ada6;
    --linie: #333b36;
    --accent: #8fd1a5;
    --accent-2: #8fd1a5;
    --umbra: 0 6px 24px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #1b211e;
  --fond-2: #252c28;
  --text: #e8ece9;
  --text-2: #a2ada6;
  --linie: #333b36;
  --accent: #8fd1a5;
  --accent-2: #8fd1a5;
  --umbra: 0 6px 24px rgba(0, 0, 0, .45), 0 1px 3px rgba(0, 0, 0, .4);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  background: #e9ece4;
  color: var(--text);
  font: 14px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
#harta { position: absolute; inset: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
svg { display: block; }
a { color: var(--accent-2); }
[hidden] { display: none !important; }

/* ---------- panou */
.panou {
  position: absolute; z-index: 2;
  top: 12px; left: 12px; bottom: 12px;
  width: 360px;
  display: flex; flex-direction: column;
  background: var(--fond);
  border-radius: var(--raza);
  box-shadow: var(--umbra);
  overflow: hidden;
}
.panou-cap { padding: 14px 16px 0; border-bottom: 1px solid var(--linie); }
.maner { display: none; }
.titlu { display: flex; gap: 10px; align-items: center; }
.sigla { width: 36px; height: 36px; color: #24452f; flex: none; }
.titlu h1 { margin: 0; font-size: 18px; letter-spacing: -.01em; }
.titlu p { margin: 0; color: var(--text-2); font-size: 12.5px; }
.file { display: flex; gap: 4px; margin-top: 12px; }
.fila {
  border: 0; background: none; padding: 8px 10px 10px;
  color: var(--text-2); font-weight: 600; font-size: 13.5px;
  border-bottom: 2px solid transparent;
}
.fila.activ { color: var(--text); border-bottom-color: var(--accent-2); }

.continut { flex: 1; overflow-y: auto; padding: 12px 16px 18px; overscroll-behavior: contain; }
.continut.text p, .continut.text li { color: var(--text); }
.mic { color: var(--text-2); font-size: 12px; }
.sub { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 18px 0 8px; }
.surse { padding-left: 18px; }
.surse li { margin-bottom: 6px; }

.cautare {
  display: flex; align-items: center; gap: 8px;
  background: var(--fond-2); border-radius: 10px; padding: 0 10px;
}
.cautare svg { width: 17px; height: 17px; fill: none; stroke: var(--text-2); stroke-width: 2; stroke-linecap: round; flex: none; }
.cautare input {
  flex: 1; border: 0; background: none; outline: none;
  padding: 10px 0; font: inherit; color: var(--text); min-width: 0;
}
.rezumat { color: var(--text-2); font-size: 12.5px; margin: 10px 2px 6px; }

.lista { list-style: none; margin: 0; padding: 0; }
.lista .grup { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); margin: 14px 2px 4px; }
.element {
  display: flex; gap: 10px; align-items: center; width: 100%;
  text-align: left; border: 0; background: none;
  padding: 9px 6px; border-radius: 10px;
}
.element:hover, .element:focus-visible { background: var(--fond-2); outline: none; }
.element .nume { font-weight: 600; line-height: 1.3; }
.element .date { color: var(--text-2); font-size: 12.5px; }
.element .tip-punct { width: 22px; height: 22px; display: grid; place-items: center; flex: none; font-size: 15px; }
.marcaj { flex: none; border-radius: 4px; box-shadow: 0 0 0 1px rgba(0,0,0,.18); }

.inapoi {
  display: inline-flex; align-items: center; gap: 4px;
  border: 0; background: none; padding: 4px 6px 4px 0; color: var(--accent-2); font-weight: 600;
}
.inapoi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

.det-cap { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 4px; }
.det-cap h2 { margin: 0; font-size: 18px; line-height: 1.25; letter-spacing: -.01em; }
.det-cap .sub-titlu { color: var(--text-2); font-size: 13px; margin-top: 2px; }
.cifre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 14px 0; }
.cifra { background: var(--fond-2); border-radius: 10px; padding: 8px 8px 7px; }
.cifra b { display: block; font-size: 16px; font-variant-numeric: tabular-nums; }
.cifra span { color: var(--text-2); font-size: 11.5px; }
.profil { position: relative; margin: 6px 0 12px; touch-action: none; }
.profil svg { width: 100%; height: auto; overflow: visible; }
.profil .eticheta { font-size: 10.5px; fill: var(--text-2); font-variant-numeric: tabular-nums; }
.profil .grila { stroke: var(--linie); stroke-width: 1; }
.profil .cursor { stroke: var(--text); stroke-width: 1; stroke-dasharray: 3 3; }
.profil-info { position: absolute; top: -2px; right: 0; font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.butoane { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--linie); background: var(--fond);
  padding: 9px 12px; border-radius: 10px; font-weight: 600; font-size: 13.5px;
}
.btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.principal { background: #24452f; border-color: #24452f; color: #fff; }
.btn:hover { filter: brightness(.97); }
.descriere { color: var(--text); margin: 14px 0 0; font-size: 13.5px; }
.nota { color: var(--text-2); font-size: 12px; margin-top: 12px; }

/* ---------- straturi și legendă */
.straturi { display: flex; flex-direction: column; gap: 2px; }
.comutator {
  display: flex; align-items: center; gap: 12px; padding: 9px 4px;
  border-radius: 10px; cursor: pointer;
}
.comutator:hover { background: var(--fond-2); }
.comutator .mostra { width: 34px; height: 20px; flex: none; border-radius: 4px; overflow: hidden; }
.comutator .et { flex: 1; }
.comutator .et small { display: block; color: var(--text-2); font-size: 12px; }
.comutator input { width: 18px; height: 18px; accent-color: #24452f; }
.legenda { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; font-size: 12.5px; }
.legenda div { display: flex; align-items: center; gap: 8px; }
.legenda svg, .legenda canvas { flex: none; }

/* ---------- unelte hartă */
.unelte {
  position: absolute; z-index: 2; top: 12px; right: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.btn-rotund {
  width: 40px; height: 40px; border-radius: 12px; border: 0;
  background: var(--fond); box-shadow: var(--umbra);
  font-weight: 700; font-size: 13px; display: grid; place-items: center;
}
.btn-rotund[aria-pressed="true"] { background: #24452f; color: #fff; }
.btn-rotund svg { width: 22px; height: 22px; transition: transform .2s; }
.btn-rotund .ac-n { fill: #d7263d; }
.maplibregl-ctrl-top-right { top: var(--sub-unelte, 204px); }
.maplibregl-ctrl-group { border-radius: 12px !important; box-shadow: var(--umbra) !important; overflow: hidden; }
.maplibregl-ctrl-group button { width: 40px; height: 40px; }
.maplibregl-ctrl-attrib { font-size: 11px; }
.maplibregl-popup-content {
  border-radius: 12px; padding: 10px 14px; box-shadow: var(--umbra);
  font: 13.5px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fond); color: var(--text);
}
.maplibregl-popup-tip { border-top-color: var(--fond) !important; border-bottom-color: var(--fond) !important; }
.maplibregl-popup-close-button { font-size: 18px; padding: 0 6px; color: var(--text-2); }
.pop-titlu { font-weight: 700; padding-right: 14px; }
.pop-sub { color: var(--text-2); font-size: 12.5px; }
.pop-lista { margin: 6px 0 0; padding: 0; list-style: none; }
.pop-lista button { display: flex; gap: 8px; align-items: center; border: 0; background: none; padding: 5px 0; text-align: left; width: 100%; }
.pop-lista button:hover { color: var(--accent-2); }

/* ---------- survol */
.survol {
  position: absolute; z-index: 3; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: rgba(20, 28, 24, .82); color: #fff;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; padding: 10px 10px 10px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
  width: min(460px, calc(100vw - 32px));
}
.survol-info { flex: 1; min-width: 0; }
.survol-nume { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.survol-date { display: flex; gap: 14px; font-size: 13px; opacity: .85; font-variant-numeric: tabular-nums; }
.survol-bara { height: 3px; background: rgba(255,255,255,.25); border-radius: 3px; margin-top: 6px; overflow: hidden; }
.survol-bara i { display: block; height: 100%; width: 0; background: #fff; }
.btn-mic {
  width: 36px; height: 36px; border-radius: 10px; border: 0;
  background: rgba(255,255,255,.14); color: #fff; font-weight: 700; font-size: 12.5px;
  display: grid; place-items: center; flex: none;
}
.btn-mic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
body.in-survol .panou, body.in-survol .unelte, body.in-survol .maplibregl-ctrl-top-right { display: none; }

.incarcare {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--fond); color: var(--text); padding: 12px 18px; border-radius: 12px; box-shadow: var(--umbra);
  display: flex; gap: 10px; align-items: center; font-weight: 600;
}
.incarcare span {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid var(--linie); border-top-color: var(--accent-2);
  animation: roti .8s linear infinite;
}
@keyframes roti { to { transform: rotate(360deg); } }

/* ---------- telefon: panoul devine foaie jos */
@media (max-width: 720px) {
  .panou {
    top: auto; left: 0; right: 0; bottom: 0; width: auto;
    height: var(--panou-h, 46vh); border-radius: 18px 18px 0 0;
    transition: height .28s cubic-bezier(.2, .8, .2, 1);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .panou.trage { transition: none; }
  .panou-cap { touch-action: none; cursor: grab; }
  .panou.restrans .continut { overflow: hidden; }
  .panou-cap { padding-top: 6px; }
  .maner {
    display: block; width: 100%; height: 24px; border: 0; background: none; position: relative; margin-top: -6px; cursor: grab;
  }
  .maner::before {
    content: ""; position: absolute; left: 50%; top: 9px; width: 44px; height: 5px;
    transform: translateX(-50%); border-radius: 3px; background: var(--linie);
  }
  .titlu .sigla { width: 30px; height: 30px; }
  .titlu h1 { font-size: 16px; }
  .file { margin-top: 6px; }
  .unelte { top: 12px; right: 12px; }
  .maplibregl-ctrl-top-right { top: var(--sub-unelte, 204px); }
  .maplibregl-ctrl-bottom-right, .maplibregl-ctrl-bottom-left { bottom: calc(var(--panou-h, 46vh) + 4px); transition: bottom .28s ease; }
  body.trage-panou .maplibregl-ctrl-bottom-right, body.trage-panou .maplibregl-ctrl-bottom-left { transition: none; }
  body.in-survol .maplibregl-ctrl-bottom-right, body.in-survol .maplibregl-ctrl-bottom-left { bottom: 0; }
  .survol { bottom: calc(16px + env(safe-area-inset-bottom)); }
  .cifre { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- editare */
.btn-rotund .contur { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; width: 20px; height: 20px; }
.bara-editare {
  position: absolute; z-index: 3; left: 50%; top: 12px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 8px;
  background: #24452f; color: #fff; border-radius: 14px; padding: 8px 8px 8px 14px; box-shadow: var(--umbra);
  max-width: calc(100vw - 120px); font-size: 13.5px;
}
.bara-editare span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.btn-mic.deschis { width: auto; padding: 0 12px; }
body.editare #harta canvas { cursor: crosshair; }
.dialog {
  border: 0; border-radius: 16px; padding: 20px; width: min(420px, calc(100vw - 32px));
  background: var(--fond); color: var(--text); box-shadow: var(--umbra);
}
.dialog::backdrop { background: rgba(10, 20, 15, .35); }
.dialog h2 { margin: 0 0 4px; font-size: 18px; }
.dialog label, .form-loc label { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 10px; }
.dialog input, .form-loc input, .form-loc select, .form-loc textarea {
  display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border-radius: 9px;
  border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); font: inherit;
}
.form-loc textarea { resize: vertical; min-height: 54px; }
.dialog details { margin-top: 12px; }
.dialog summary { cursor: pointer; font-weight: 600; }
.butoane.dreapta { justify-content: flex-end; margin-top: 16px; }
.eroare { color: #c0392b; font-size: 13px; margin: 8px 0 0; }
.rand { display: flex; gap: 6px; margin-top: 8px; }
.rand input { margin: 0; min-width: 0; flex: 1; padding: 8px; }
.lista-editori { list-style: none; padding: 0; margin: 0; font-size: 13.5px; }
.lista-editori li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid var(--linie); }
.lista-editori button { border: 0; background: none; color: #c0392b; font-size: 12.5px; }
.form-loc { min-width: 240px; }
.form-loc .titlu-form { font-weight: 700; margin-bottom: 2px; }
.form-loc .butoane { margin-top: 10px; justify-content: flex-end; }
.form-loc .btn { padding: 7px 11px; font-size: 13px; }
.pop-actiuni { display: flex; gap: 6px; margin-top: 8px; }
.pop-actiuni .btn { padding: 6px 10px; font-size: 12.5px; }
.pop-desc { margin-top: 4px; font-size: 13px; white-space: pre-line; }
@media (max-width: 720px) {
  .bara-editare { top: auto; bottom: calc(var(--panou-h, 46vh) + 12px); max-width: calc(100vw - 24px); }
}

/* ---------- planificator */
.profile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; background: var(--fond-2); padding: 4px; border-radius: 11px; }
.profil-btn { border: 0; background: none; padding: 8px 4px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--text-2); }
.profil-btn.activ { background: var(--fond); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.bifa { display: flex; align-items: center; gap: 8px; margin: 10px 2px 4px; font-size: 13.5px; }
.bifa input { width: 17px; height: 17px; accent-color: #24452f; }
.puncte-plan { list-style: none; margin: 10px 0 8px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.punct-plan { display: flex; align-items: center; gap: 8px; position: relative; }
.eticheta-punct {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: #7b3fb5; box-shadow: 0 0 0 2px #fff, 0 1px 4px rgba(0,0,0,.3);
}
.eticheta-punct.start { background: #23963a; }
.eticheta-punct.final { background: #d7263d; }
.punct-plan input {
  flex: 1; min-width: 0; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--linie);
  background: var(--fond-2); color: var(--text); font: inherit; font-size: 13.5px;
}
.punct-plan .scoate { border: 0; background: none; color: var(--text-2); font-size: 18px; padding: 0 4px; }
.sugestii {
  position: absolute; z-index: 5; left: 32px; right: 24px; top: 100%; margin: 2px 0 0; padding: 4px; list-style: none;
  background: var(--fond); border: 1px solid var(--linie); border-radius: 10px; box-shadow: var(--umbra); max-height: 240px; overflow-y: auto;
}
.sugestii button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 7px 8px; border-radius: 7px; font-size: 13px; }
.sugestii button:hover, .sugestii button.activ { background: var(--fond-2); }
.sugestii small { color: var(--text-2); }
.butoane.mici .btn { padding: 7px 10px; font-size: 12.5px; }
.indiciu { margin: 10px 2px; }
.rezultat-plan h3 { margin: 14px 0 2px; font-size: 16px; }
.bara-tipuri { display: flex; height: 8px; border-radius: 4px; overflow: hidden; margin: 8px 0 6px; background: var(--fond-2); }
.bara-tipuri i { display: block; height: 100%; }
.legenda-tipuri { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--text-2); }
.legenda-tipuri span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 5px; background: var(--c); vertical-align: -1px; }
.marcaj-plan {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; cursor: grab;
  font: 700 12px system-ui, sans-serif; color: #fff; background: #7b3fb5; border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.marcaj-plan.start { background: #23963a; }
.marcaj-plan.final { background: #d7263d; }
.eroare-plan { color: #c0392b; font-size: 13px; margin: 10px 2px; }

.lista-gpx { display: flex; flex-direction: column; gap: 2px; margin-top: 8px; }
.rand-gpx { display: flex; align-items: center; gap: 8px; padding: 4px 2px; }
.rand-gpx input { width: 17px; height: 17px; accent-color: #24452f; flex: none; }
.culoare-gpx { width: 14px; height: 14px; border-radius: 4px; flex: none; display: inline-block; }
.nume-gpx { flex: 1; min-width: 0; text-align: left; border: 0; background: none; padding: 4px 0; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nume-gpx small { color: var(--text-2); }
.btn-text { border: 0; background: none; color: var(--accent-2); font-weight: 600; font-size: 12.5px; padding: 4px; }
label.btn { cursor: pointer; }
body.planificare #harta canvas { cursor: crosshair; }
body.tragere #harta::after {
  content: "Lasă fișierele GPX aici"; position: absolute; inset: 12px; z-index: 10; display: grid; place-items: center;
  border: 3px dashed #24452f; border-radius: 18px; background: rgba(255,255,255,.7); font: 700 20px system-ui, sans-serif; color: #24452f;
}
#lista-gpx-publice .element .culoare-gpx { margin: 0 4px; }

/* ---------- survol tip Relive */
.survol {
  top: calc(14px + env(safe-area-inset-top)); bottom: auto; width: auto; min-width: 220px;
  padding: 8px; gap: 6px; border-radius: 14px;
}
.survol .survol-bara { width: 120px; margin: 0 6px; flex: 1; }
.survol-strat { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 2; pointer-events: none; }
.survol-final { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.survol-final .btn { box-shadow: var(--umbra); }
body.in-survol .maplibregl-ctrl-bottom-left, body.in-survol .maplibregl-ctrl-bottom-right { opacity: .6; }
@media (max-width: 720px) { .survol { bottom: auto; } }
.extra-survol { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.miniaturi-foto { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.miniaturi-foto .mini { position: relative; width: 54px; height: 54px; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.miniaturi-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.miniaturi-foto button { position: absolute; top: 1px; right: 1px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; line-height: 18px; padding: 0; }
.marcaj-foto { width: 38px; height: 38px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); overflow: hidden; background: #ddd; cursor: pointer; }
.marcaj-foto img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dialog.lat { width: min(640px, calc(100vw - 32px)); }
.rand-opt { display: flex; gap: 12px; flex-wrap: wrap; }
.rand-opt label { flex: 1; min-width: 200px; }
.rand-opt select { display: block; width: 100%; margin-top: 4px; padding: 9px 10px; border-radius: 9px; border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); font: inherit; }
.video-previz { margin-top: 12px; background: #1d2420; border-radius: 10px; overflow: hidden; display: grid; place-items: center; min-height: 60px; }
.video-previz canvas { max-width: 100%; max-height: 46vh; display: block; }
.bara-progres { height: 6px; background: var(--fond-2); border-radius: 3px; overflow: hidden; margin-top: 10px; }
.bara-progres i { display: block; height: 100%; width: 0; background: #24452f; transition: width .2s; }

.selector-zona {
  border: 0; background: none; color: var(--text-2); font: inherit; font-size: 12.5px; padding: 0 16px 0 0; margin: 0;
  appearance: none; -webkit-appearance: none; cursor: pointer; max-width: 260px;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 5px top 55%, right 1px top 55%; background-size: 4px 4px; background-repeat: no-repeat;
}
.selector-zona:focus-visible { outline: 2px solid var(--accent-2); border-radius: 4px; }

/* selector de zonă vizibil + mesaj la intrarea în altă zonă */
.selector-zona {
  margin-top: 3px; padding: 4px 26px 4px 10px; border-radius: 8px; background-color: var(--fond-2);
  color: var(--text); font-weight: 600; font-size: 12.5px; border: 1px solid var(--linie);
  background-position: right 12px top 55%, right 8px top 55%;
}
.selector-zona:hover { border-color: var(--accent-2); }
.mesaj-zona {
  position: absolute; z-index: 3; left: 50%; top: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 10px; background: var(--fond); color: var(--text);
  border-radius: 14px; padding: 8px 8px 8px 16px; box-shadow: var(--umbra); font-weight: 600; max-width: calc(100vw - 120px);
}
.mesaj-zona span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mesaj-zona .btn { padding: 7px 12px; white-space: nowrap; }
.btn-x { border: 0; background: none; font-size: 20px; color: var(--text-2); padding: 0 6px; }
body.in-survol .mesaj-zona { display: none; }
@media (min-width: 721px) { .mesaj-zona { left: calc(50% + 190px); } }
@media (max-width: 720px) { .mesaj-zona { top: 12px; left: 12px; transform: none; max-width: calc(100vw - 80px); } }

.fundaluri { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 6px; }
.fundal-btn {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px 8px;
  border: 1.5px solid var(--linie); border-radius: 11px; background: var(--fond); font-weight: 600; font-size: 12.5px;
}
.fundal-btn span { font-size: 22px; line-height: 1.1; }
.fundal-btn.activ { border-color: #24452f; background: var(--fond-2); box-shadow: inset 0 0 0 1px #24452f; }

.fundaluri.mici { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
.peste-btn {
  display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 4px 6px;
  border: 1.5px solid var(--linie); border-radius: 10px; background: var(--fond); font-weight: 600; font-size: 11.5px;
}
.peste-btn span { font-size: 17px; line-height: 1.15; }
.peste-btn.activ { border-color: #7b3fb5; background: var(--fond-2); box-shadow: inset 0 0 0 1px #7b3fb5; }
.peste-btn:disabled { opacity: .35; cursor: default; }
.rand-opacitate { display: flex; align-items: center; gap: 10px; margin: 10px 2px 2px; font-size: 13px; }
.rand-opacitate input { flex: 1; accent-color: #7b3fb5; }
.rand-opacitate b { width: 40px; text-align: right; font-variant-numeric: tabular-nums; }

.rand select { padding: 8px; border-radius: 9px; border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); font: inherit; }
.rand { flex-wrap: wrap; }

.extra-survol .btn.principal { background: #24452f; color: #fff; border-color: #24452f; }

.zbor-link { display: flex; justify-content: center; margin-top: 14px; text-decoration: none; text-align: center; }
#btn-zbor { font-size: 19px; }

.titlu-fila { margin: 4px 0 6px; font-size: 17px; }
.butoane-zbor { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.butoane-zbor .btn { justify-content: center; text-align: center; }
.pasi-zbor { padding-left: 20px; margin: 10px 0; color: var(--text); }
.pasi-zbor li { margin-bottom: 6px; }
.fila { padding-left: 8px; padding-right: 8px; }
@media (max-width: 400px) { .fila { padding-left: 6px; padding-right: 6px; font-size: 13px; } }

/* ---------- ecran complet: harta singură */
body.harta-intreaga .panou, body.harta-intreaga .bara-editare { display: none; }
body.harta-intreaga { --panou-h: 0px; }
body.harta-intreaga .maplibregl-ctrl-bottom-right, body.harta-intreaga .maplibregl-ctrl-bottom-left { bottom: 0; }
.btn-panou {
  position: absolute; z-index: 3; left: 12px; bottom: calc(58px + env(safe-area-inset-bottom));
  display: none; align-items: center; gap: 6px; border: 0; border-radius: 12px; padding: 10px 14px;
  background: var(--fond); color: var(--text); box-shadow: var(--umbra); font-weight: 700; font-size: 14px;
}
body.harta-intreaga .btn-panou { display: inline-flex; }
body.harta-intreaga.in-survol .btn-panou { display: none; }
#btn-ecran svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- cardul cu locația */
.card-locatie {
  position: absolute; z-index: 3; right: 12px; bottom: calc(var(--panou-h, 0px) + 40px);
  width: 260px; max-width: calc(100vw - 24px); background: var(--fond); color: var(--text);
  border-radius: 14px; box-shadow: var(--umbra); padding: 10px 14px 12px; font-size: 13px;
}
@media (min-width: 721px) { .card-locatie { bottom: 40px; } }
.loc-cap { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.loc-coord { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.loc-gms { color: var(--text-2); font-variant-numeric: tabular-nums; font-size: 12.5px; }
.loc-alt { margin-top: 6px; font-weight: 600; }
.loc-mic { color: var(--text-2); font-size: 12px; margin-top: 2px; }
.loc-zona { color: #b26a00; }
.card-locatie .btn { margin-top: 8px; padding: 6px 12px; font-size: 12.5px; }
body.in-survol .card-locatie { display: none; }

/* ---------- profil colorat și analiza traseului */
.profil-cap { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 22px; margin-bottom: 2px; }
.profil .profil-info { position: static; }
.comutator-profil { display: flex; background: var(--fond-2); border-radius: 8px; padding: 2px; flex: none; }
.comutator-profil button { border: 0; background: none; padding: 3px 9px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.comutator-profil button.activ { background: var(--fond); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.legenda-profil { display: flex; flex-wrap: wrap; gap: 2px 10px; font-size: 11.5px; color: var(--text-2); margin-top: 2px; }
.legenda-profil span::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; background: var(--c); vertical-align: -1px; }
.profil .poi-ic { font-size: 11px; paint-order: stroke; stroke: rgba(255,255,255,.9); stroke-width: 2.5px; fill: #2b2b2b; cursor: default; }
.profil .poi-ic.izvor { fill: #1f78c8; }
.profil .poi-ic.cabana { fill: #c0392b; }
.profil .poi-ic.refugiu { fill: #d35400; }
.profil .poi-ic.alerta { fill: #c76a00; font-size: 12px; font-weight: 700; }
.analiza { margin: 4px 0 10px; }
.analiza:empty { display: none; }
.dificultate { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--fond-2); font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; cursor: help; }
.dificultate b { font-size: 13.5px; color: #fff; padding: 2px 9px; border-radius: 999px; background: #3d8a4f; }
.dificultate.niv-1 b { background: #c98a00; }
.dificultate.niv-2 b { background: #d7263d; }
.dificultate.niv-3 b { background: #4b1d6b; }
.sectiune { border-top: 1px solid var(--linie); padding: 7px 0; }
.sectiune summary { cursor: pointer; font-weight: 600; font-size: 13px; list-style-position: outside; }
.sectiune summary small { display: block; font-weight: 400; color: var(--text-2); margin-top: 1px; }
.titlu-sectiune { font-weight: 600; font-size: 13px; margin-bottom: 5px; }
.lista-analiza { list-style: none; margin: 6px 0 0; padding: 0; }
.lista-analiza button { display: flex; gap: 8px; width: 100%; text-align: left; border: 0; background: none; padding: 5px 4px; border-radius: 7px; font-size: 12.5px; }
.lista-analiza button:hover { background: var(--fond-2); }
.lista-analiza .km { flex: none; width: 52px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.lista-analiza small { color: var(--text-2); }
.sir-marcaje { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.sir-marcaje button { display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--linie); background: var(--fond); border-radius: 8px; padding: 3px 7px; font-size: 12px; }
.sir-marcaje button.nemarcat { color: var(--text-2); border-style: dashed; }
.sir-marcaje small { color: var(--text-2); }
.sir-marcaje .sageata { color: var(--text-2); font-size: 12px; }
.alerte-traseu .titlu-sectiune { color: #b45f00; }
.meteo-det summary span { display: block; }
.avertizare { color: #c0392b; }

/* ---------- meteo */
.meteo { font-size: 12.5px; }
.meteo-titlu { font-weight: 600; margin-bottom: 4px; }
.meteo-alerta { padding: 5px 8px; border-radius: 8px; margin: 4px 0; font-size: 12.5px; }
.meteo-alerta.rosu { background: #fde4e1; color: #8e1b12; }
.meteo-alerta.galben { background: #fff3cd; color: #6b4d00; }
.meteo-ore { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(64px, 1fr); gap: 4px; overflow-x: auto; margin: 8px 0; }
.meteo-ore > div, .meteo-zile > div { display: flex; flex-direction: column; align-items: center; text-align: center; background: var(--fond-2); border-radius: 9px; padding: 5px 3px; }
.meteo-ore .ic, .meteo-zile .ic { font-size: 20px; line-height: 1.2; }
.meteo-ore .ora, .meteo-zile .zi { font-weight: 600; font-size: 12px; text-transform: capitalize; }
.meteo .mic { font-size: 10.5px; line-height: 1.3; }
.meteo-zile { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.meteo-zile .txt { font-size: 11px; color: var(--text-2); min-height: 2.6em; }
.meteo-nota { margin: 6px 0 0; }
.pop-meteo-btn { margin-top: 8px; height: 30px; border: 1px solid var(--linie); border-radius: 9px; background: var(--fond-2); }
.pop-meteo .meteo-zile .txt { display: none; }

/* ---------- SOS */
.btn-rotund.sos { background: #d7263d; color: #fff; font-size: 12px; letter-spacing: .5px; }
.dialog.sos { width: min(460px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow: auto; padding: 18px; }
.sos-apel { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0; }
.sos-apel .btn { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; text-decoration: none; padding: 12px 8px; font-size: 16px; font-weight: 700; border-radius: 12px; border: 0; }
.sos-apel small { font-size: 11px; font-weight: 500; opacity: .9; }
.sos-112 { background: #d7263d; color: #fff !important; }
.sos-salvamont { background: #fff1f0; color: #b3122e !important; box-shadow: inset 0 0 0 2px #d7263d; }
.sos-pozitie { background: var(--fond-2); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; }
.sos-pozitie p { margin: 0; }
.sos-rand { display: grid; grid-template-columns: 96px 1fr; gap: 0 8px; padding: 3px 0; }
.sos-rand span { color: var(--text-2); font-size: 12px; padding-top: 1px; }
.sos-rand b { font-variant-numeric: tabular-nums; word-break: break-word; }
.sos-rand small { grid-column: 2; color: var(--text-2); font-size: 11.5px; }
.sos-mic { color: var(--text-2); font-size: 11.5px; margin-top: 6px; }
#sos-actiuni { margin-top: 10px; }
#sos-actiuni a { text-decoration: none; }
.sos-sfaturi { font-size: 12.5px; color: var(--text-2); padding-left: 18px; margin: 12px 0 0; }
.sos-sfaturi li { margin: 3px 0; }

/* ---------- alerte din teren */
.bara-alerta { background: #b45f00; }
body.mod-alerta #harta canvas { cursor: crosshair; }
.btn-rotund#btn-alerta[aria-pressed="true"] { background: #b45f00; }
.instalare { margin-top: 12px; }
.instalare .btn { margin: 4px 0; }

/* pe telefon, cu atâtea butoane, zoomul se face cu degetele (butoanele de zoom rămân pe calculator) */
@media (max-width: 720px) {
  .maplibregl-ctrl-top-right .maplibregl-ctrl-group:has(.maplibregl-ctrl-zoom-in) { display: none; }
  .btn-rotund { width: 38px; height: 38px; }
  .unelte { gap: 6px; }
}

/* ---------- traseele mele */
.grup-mele { margin: 6px 0 10px; border: 1px solid var(--linie); border-radius: 12px; padding: 8px 10px; background: var(--fond-2); }
.grup-mele summary { cursor: pointer; font-weight: 600; }
.lista-mele .element { width: 100%; }
.lista-mele .colectie { font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--text-2); margin: 10px 0 2px; }
.mesaj-scurt { position: fixed; z-index: 20; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1d2420; color: #fff; padding: 10px 16px; border-radius: 12px; box-shadow: var(--umbra); font-size: 13.5px; max-width: calc(100vw - 32px); }
@media (max-width: 720px) { .mesaj-scurt { bottom: calc(var(--panou-h, 46vh) + 16px); } }
.bifa { display: flex !important; align-items: center; gap: 8px; }
.bifa input { width: auto !important; margin: 0 !important; }

/* ---------- starea refugiilor */
.bloc-stare { border-top: 1px solid var(--linie); margin-top: 8px; padding-top: 6px; font-size: 12.5px; }
.stare-raport { margin: 4px 0 6px; }
.stare.deschis { color: #23963a; } .stare.inchis { color: #d7263d; } .stare.ruina { color: #4a4a4a; } .stare.necunoscut { color: #8a8a8a; }
.poza-stare { display: block; width: 100%; max-height: 160px; object-fit: cover; border-radius: 8px; margin: 6px 0 2px; }
.rand-bife { display: flex; gap: 16px; margin-top: 10px; }
.rand-bife label { display: flex !important; align-items: center; gap: 6px; margin: 0 !important; color: var(--text) !important; }
.rand-bife input { width: auto !important; margin: 0 !important; }

/* ---------- pe traseu */
.bara-tura { position: absolute; z-index: 6; top: 12px; left: 50%; transform: translateX(-50%); width: min(560px, calc(100vw - 24px));
  background: var(--fond); color: var(--text); border-radius: 14px; box-shadow: var(--umbra); padding: 8px 10px 9px; }
@media (min-width: 721px) { .bara-tura { left: calc(50% + 190px); width: min(520px, calc(100vw - 420px)); } }
.tura-cap { display: flex; align-items: center; gap: 6px; }
.tura-cap b { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.tura-cap .btn-mic { height: 30px; }
.tura-cifre { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin-top: 6px; text-align: center; }
.tura-cifre b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.tura-cifre span { font-size: 10.5px; color: var(--text-2); }
.tura-urm { margin-top: 6px; font-size: 12.5px; padding: 5px 8px; border-radius: 8px; background: var(--fond-2); }
.tura-urm.abatere { background: #d7263d; color: #fff; font-weight: 600; }
body.in-tura .unelte { top: calc(12px + var(--h-tura, 150px)); }
body.in-tura .mesaj-zona { display: none; }
@media (max-width: 720px) { body.in-tura .maplibregl-ctrl-top-right { display: none; } }

/* ---------- partajare live */
.bara-live { position: absolute; z-index: 5; left: 12px; bottom: 34px; display: flex; align-items: center; gap: 6px; background: #e0168a; color: #fff;
  border-radius: 12px; padding: 6px 6px 6px 12px; box-shadow: var(--umbra); font-size: 12.5px; max-width: calc(100vw - 24px); }
.bara-live span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 721px) { .bara-live { left: 392px; } }
@media (max-width: 720px) { .bara-live { bottom: calc(var(--panou-h, 46vh) + 12px); } }
.bara-live-vedere { position: absolute; z-index: 6; top: 12px; left: 50%; transform: translateX(-50%); width: min(520px, calc(100vw - 80px));
  display: flex; align-items: center; gap: 8px; background: var(--fond); border-radius: 14px; box-shadow: var(--umbra); padding: 8px 10px; font-size: 13px; border-left: 5px solid #e0168a; }
.bara-live-vedere #lv-text { flex: 1; min-width: 0; }
.bara-live-vedere #lv-text span { color: var(--text-2); font-size: 12px; }
.bara-live-vedere.intarziat { border-left-color: #d7263d; background: #fff1f0; color: #1d2420; }
@media (min-width: 721px) { .bara-live-vedere { left: calc(50% + 190px); } }
@media (max-width: 720px) {
  .bara-live-vedere { left: 12px; right: 60px; width: auto; transform: none; }
  .bara-tura { left: 12px; right: 12px; width: auto; transform: none; }
}
/* butoanele mici pe fundal deschis (bara de tură, vederea live, ferestrele de pe hartă) */
.tura-cap .btn-mic, .bara-live-vedere .btn-mic, .pop-meteo-btn { background: var(--fond-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--linie); }

/* ---------- avalanșe (ANM) */
.banda-avalanse { display: block; width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 8px 10px; margin: 6px 0; font-size: 12.5px; font-weight: 600; color: #3b2a00; background: #fff3cd; }
.banda-avalanse small { display: block; font-weight: 400; opacity: .8; }
.banda-avalanse.niv-1 { background: #e3f3d9; color: #23461a; }
.banda-avalanse.niv-2 { background: #fff3b0; color: #4d3d00; }
.banda-avalanse.niv-3 { background: #ffd9a8; color: #5c2c00; }
.banda-avalanse.niv-4, .banda-avalanse.niv-5 { background: #d7263d; color: #fff; }
.risc-av { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 10px; margin: 6px 0; background: var(--fond-2); font-weight: 600; }
.risc-av b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: #fff; background: #8cc06f; }
.risc-av.niv-2 b { background: #f2c230; color: #3b2a00; } .risc-av.niv-3 b { background: #f07f1a; } .risc-av.niv-4 b { background: #d7263d; } .risc-av.niv-5 b { background: #4b1d6b; }

/* ---------- hărți offline */
.rand-offline { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--linie); }
.rand-offline > div { flex: 1; min-width: 0; }
.rand-offline small { display: block; color: var(--text-2); font-size: 12px; }
.rand-offline .btn { padding: 5px 10px; font-size: 12.5px; }
.rand-offline .bara-progres { margin-top: 4px; }

/* ---------- meniul locului, panorama, planificator (circuit, zone evitate) */
.meniu-loc { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 8px; }
.meniu-loc button { border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); border-radius: 8px; padding: 6px 7px; font-size: 12px; text-align: left; }
.pop-butoane { display: flex; flex-wrap: wrap; gap: 4px; }
.dialog.panorama { width: min(1100px, calc(100vw - 16px)); max-width: none; padding: 14px; }
.pan-cap { display: flex; align-items: center; gap: 8px; }
.pan-cap h2 { flex: 1; min-width: 0; font-size: 16px; margin: 0; }
.pan-cap .btn.activ { background: #24452f; color: #fff; }
.pan-defilare { overflow-x: auto; overflow-y: hidden; border-radius: 10px; margin: 6px 0; -webkit-overflow-scrolling: touch; }
.pan-defilare canvas { display: block; cursor: pointer; }
.circuit { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 10px 0 4px; font-size: 13px; }
.circuit input { width: 64px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); font: inherit; }
.circuit .btn { padding: 6px 10px; font-size: 13px; }
.rand-evitate { font-size: 12.5px; margin: 4px 0; color: #b3122e; }
.marcaj-plan.intermediar { background: #7b3fb5; color: #fff; }

/* ---------- înregistrare și jurnal */
.bara-inreg { position: absolute; z-index: 5; left: 12px; bottom: 34px; display: flex; align-items: center; gap: 6px; background: #d7263d; color: #fff;
  border-radius: 12px; padding: 6px 6px 6px 12px; box-shadow: var(--umbra); font-size: 13px; font-variant-numeric: tabular-nums; }
@media (min-width: 721px) { .bara-inreg { left: 392px; } }
@media (max-width: 720px) { .bara-inreg { bottom: calc(var(--panou-h, 46vh) + 12px); } }
body.inregistrare .bara-live { bottom: 80px; }
@media (max-width: 720px) { body.inregistrare .bara-live { bottom: calc(var(--panou-h, 46vh) + 58px); } }
.stat-jurnal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0; text-align: center; }
.stat-jurnal div { background: var(--fond-2); border-radius: 10px; padding: 8px 4px; }
.stat-jurnal b { display: block; font-size: 18px; }
.stat-jurnal span { font-size: 11px; color: var(--text-2); }
.realizari { list-style: none; padding: 0; margin: 6px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.realizari li { display: flex; gap: 6px; align-items: center; font-size: 12.5px; padding: 5px 7px; border-radius: 8px; background: var(--fond-2); color: var(--text-2); }
.realizari li.ok { color: var(--text); background: #e7f3e0; }
.lista-ture .element { width: 100%; }
.aplicatie-android #instalare { display: none !important; }

/* ---------- clasificare și filtre */
.niv { display: inline-block; font-style: normal; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 999px; color: #fff; background: #3d8a4f; margin-right: 4px; line-height: 16px; vertical-align: 1px; }
.niv.niv-1 { background: #c98a00; } .niv.niv-2 { background: #d7263d; } .niv.niv-3 { background: #4b1d6b; }
i.niv { width: 9px; height: 9px; padding: 0; margin-right: 5px; line-height: 9px; vertical-align: 0; }
.filtre { margin: 8px 0 4px; }
.cipuri { display: flex; flex-wrap: wrap; gap: 4px; }
.cipuri button { border: 1px solid var(--linie); background: var(--fond); color: var(--text); border-radius: 999px; padding: 4px 10px; font-size: 12.5px; }
.cipuri button.activ { background: #24452f; color: #fff; border-color: #24452f; }
.rand-filtre { display: flex; gap: 6px; margin-top: 6px; }
.rand-filtre select { flex: 1; min-width: 0; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); font: inherit; font-size: 12.5px; }
.propune { border: 1px solid var(--linie); border-radius: 12px; padding: 8px 10px; margin-bottom: 10px; background: var(--fond-2); }
.propune summary { cursor: pointer; font-weight: 600; }
.propune label { display: block; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.propune select, .propune input { display: block; width: 100%; margin-top: 3px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--linie); background: var(--fond); color: var(--text); font: inherit; font-size: 13px; }
.rand-propune { display: flex; gap: 8px; }
.rand-propune > label { flex: 1; min-width: 0; }
.interval { display: flex; align-items: center; gap: 4px; }
.interval input { width: 50%; }
.propune .butoane { margin-top: 10px; }
.lista-propuneri { list-style: none; padding: 0; margin: 8px 0 0; }
.lista-propuneri button { display: flex; gap: 8px; width: 100%; text-align: left; border: 0; background: var(--fond); border-radius: 9px; padding: 7px 8px; margin-bottom: 4px; color: var(--text); }
.lista-propuneri small { display: block; color: var(--text-2); margin-top: 2px; }

/* ---------- panoul de straturi (dreapta) */
.panou-straturi { position: absolute; z-index: 8; top: 12px; right: 62px; width: min(380px, calc(100vw - 80px)); max-height: calc(100% - 24px);
  display: flex; flex-direction: column; background: var(--fond); color: var(--text); border-radius: var(--raza); box-shadow: var(--umbra); }
.ps-cap { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 4px 16px; }
.ps-cap h2 { margin: 0; font-size: 16px; }
.ps-continut { overflow-y: auto; padding: 4px 16px 16px; }
.moduri { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 6px; }
.mod-btn { display: flex; flex-direction: column; align-items: center; gap: 2px; border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); border-radius: 12px; padding: 10px 6px; font-weight: 600; font-size: 13px; }
.mod-btn span { font-size: 22px; }
.mod-btn small { font-weight: 400; font-size: 10.5px; color: var(--text-2); }
.mod-btn[aria-pressed="true"] { background: #24452f; color: #fff; border-color: #24452f; }
.btn-rotund.activ { background: #24452f; color: #fff; }
@media (max-width: 720px) {
  .panou-straturi { top: 8px; right: 56px; left: 8px; width: auto; max-height: calc(100% - var(--panou-h, 46vh) - 20px); z-index: 12; }
}
.date .masiv { color: var(--text-2); font-style: italic; }

/* ---------- ghidarea pe traseu */
.tura-manevra { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: #24452f; color: #fff; font-size: 15px; }
.tura-manevra .sageata { font-size: 30px; line-height: 1; font-weight: 700; }
.tura-manevra b { font-size: 16px; }
.tura-cap .btn-mic.activ { background: #24452f; color: #fff; }
.urmeaza-gpx { display: block; text-align: center; margin: 8px 0 4px; }

/* ---------- fila Navigare */
.file { overflow-x: auto; scrollbar-width: none; }
.file::-webkit-scrollbar { display: none; }
.fila { white-space: nowrap; }
.fila-nav { color: #24452f; font-weight: 700; }
.nav-optiuni { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 6px 0 4px; }
.nav-mare { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); border-radius: 12px; padding: 10px; cursor: pointer; font: inherit; }
.nav-mare span { font-size: 22px; }
.nav-mare b { font-size: 13.5px; }
.nav-mare small { color: var(--text-2); font-size: 11.5px; line-height: 1.3; }
.nav-deschis { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: #e7f3e0; margin: 8px 0; }
.nav-deschis span { flex: 1; min-width: 0; font-size: 12.5px; }
.nav-deschis b { display: block; font-size: 14px; }
.nav-deschis small { color: var(--text-2); }
.nav-activa { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; background: #24452f; color: #fff; margin-bottom: 8px; font-size: 13px; }
.nav-activa span { flex: 1; }
.offline-rapid { display: block; margin: -2px 0 6px; text-align: left; }
#nav-offline { width: 100%; text-align: left; }

/* butonul de înregistrare de pe hartă: cerc roșu; în timpul înregistrării, pătrat alb pe roșu, care pulsează */
.inreg-btn i { display: block; width: 16px; height: 16px; border-radius: 50%; background: #d7263d; transition: border-radius .2s; }
.inreg-btn[aria-pressed="true"] { background: #d7263d; animation: puls-inreg 1.6s ease-in-out infinite; }
.inreg-btn[aria-pressed="true"] i { background: #fff; border-radius: 3px; width: 13px; height: 13px; }
@keyframes puls-inreg { 0%, 100% { box-shadow: var(--umbra), 0 0 0 0 rgba(215, 38, 61, .5); } 50% { box-shadow: var(--umbra), 0 0 0 8px rgba(215, 38, 61, 0); } }
.grup-lungi summary small { display: block; font-weight: 400; color: var(--text-2); font-size: 11.5px; margin-left: 18px; }
.punct-lung { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }

/* ---------- trasee omologate (registrul Ministerului Turismului) */
.insigna-om { display: inline-block; vertical-align: 1px; margin-left: 4px; padding: 0 6px; border-radius: 8px; background: #e3f1e6; color: #1d5e2e; font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.filtru-om { border: 1px solid var(--linie); background: var(--fond-2); color: var(--text); border-radius: 8px; padding: 5px 9px; font-size: 13px; white-space: nowrap; }
.filtru-om[aria-pressed="true"] { background: #24452f; border-color: #24452f; color: #fff; }
.caseta-om { margin: 10px 0 4px; border: 1px solid #b9dcc2; background: #f2faf4; border-radius: 10px; padding: 8px 10px; }
.caseta-om summary { cursor: pointer; font-weight: 600; font-size: 13.5px; color: #1d5e2e; }
.caseta-om .insigna-om { margin: 0 4px 0 0; }
.om-date { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.om-date div { display: grid; grid-template-columns: 9.5em 1fr; gap: 8px; }
.om-date span { color: var(--text-2); }
@media (prefers-color-scheme: dark) {
  .insigna-om { background: #1f3a27; color: #a8e0b6; }
  .caseta-om { background: #18271d; border-color: #2e4a36; }
  .caseta-om summary { color: #a8e0b6; }
}

.raportari-gpx { margin: 6px 0; padding: 6px 9px; border-radius: 8px; background: #fff3e0; color: #6b3a00; font-size: 12.5px; }
.raportari-gpx small { color: #8a6a40; }
.rosu { color: #c0392b; }
@media (prefers-color-scheme: dark) { .raportari-gpx { background: #3a2a14; color: #ffd9a8; } }
