:root {
  --bg: #EDEDE3; --surface: #F8F7F1; --line: #CBC4AC; --ink: #22271B; --ink-soft: #565A44;
  --forest: #1C7048; --forest-soft: #DDEBDD; --rust: #8B3A2C; --rust-soft: #F2E0D8; --invia: #8B3A2C;
  --gold: #93711F; --gold-soft: #F0E6C7; --header-bg: #253A21; --header-ink: #F6F4EA; --top-bg: #253A21; --top-ink: #F6F4EA; --top-gold: #D9B65C; --tit-rosso: #F5424F; --tit-blu: #5A97F2; --radius: 10px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
:root[data-theme="dark"] {
  /* stessi colori del tema scuro di cacciaTI */
  --bg: #0D0F0B; --surface: #171A12; --line: #2E3326; --ink: #B8B6A8; --ink-soft: #83816F;
  --forest: #5C9152; --forest-soft: #182417; --rust: #B06B52; --rust-soft: #271510; --invia: #8A4A37;
  --gold: #B69A55; --gold-soft: #241E0E; --header-bg: #253A21; --top-bg: #253A21; --top-ink: #F6F4EA; --top-gold: #D9B65C; --tit-rosso: #F5424F; --tit-blu: #5A97F2;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--sans);
  -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; }
body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); min-height: 100vh; font-size: 16px; }

header.app-header { background: var(--top-bg); color: var(--top-ink);  position: sticky; top: 0; z-index: 20;
  padding: max(12px, env(safe-area-inset-top)) 16px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand img { border-radius: 8px; }
/* colori dello stemma del Cantone (rosso Pantone 032, azzurro Pantone 293) schiariti quanto basta per leggersi sul verde */
.app-header h1 { margin: 0; font-size: 22px; letter-spacing: .02em; font-weight: 800; color: var(--tit-rosso); }
.app-header h1 span { color: var(--tit-blu); }
.app-header .app-version { font-family: "SFMono-Regular", Consolas, Menlo, monospace; font-size: 11px; font-weight: 600; color: var(--top-gold); align-self: flex-end; margin-bottom: 3px; cursor: pointer; }
@keyframes versionBlink { 0%, 100% { opacity: 1; } 50% { opacity: .15; } }
.app-header .app-version.version-blink { animation: versionBlink .8s ease-in-out 6; }
.app-header .app-version-badge { font-size: 10px; font-weight: 700; letter-spacing: .03em; color: var(--top-gold); border: 1px solid var(--top-gold); border-radius: 4px; padding: 1px 5px; align-self: flex-end; margin-bottom: 3px; margin-left: 4px; opacity: 0; transition: opacity .6s ease; }
.app-header .app-version-badge.show { opacity: 1; }
.app-header .sub { font-size: 13px; opacity: .85; text-align: right; }

main { max-width: 640px; margin: 0 auto; padding: 12px 12px 8px; }
.view { display: none; } .view.active { display: block; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.card h2 { margin: 0 0 10px; font-size: 17px; color: var(--forest); }
.piccolo { font-size: 13px; color: var(--ink-soft); margin: 6px 2px; }
.note { font-size: 14px; padding: 9px 11px; border-radius: 8px; background: var(--forest-soft); margin: 8px 0; }
.note.warn { background: var(--gold-soft); } .note.err { background: var(--rust-soft); color: var(--rust); }

input[type=text], input[type=search], input[type=email], input[type=tel], input[type=datetime-local], textarea {
  width: 100%; font: inherit; padding: 10px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); }
.lbl { display: block; font-size: 14px; color: var(--ink-soft); margin: 8px 0; } .lbl input, .lbl textarea { margin-top: 4px; }

.gruppi { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gr { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 12px; padding: 10px 4px 8px; font: inherit; font-size: 14px; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.gr .ico { color: var(--forest); width: 52px; height: 38px; }
.gr.sel { border-color: var(--forest); background: var(--forest-soft); box-shadow: inset 0 0 0 1px var(--forest); }
.specie-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.specie-grid[hidden] { display: none; }
.specie-grid .gruppo { grid-column: 1 / -1; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); margin-top: 4px; }
.sp { border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 8px 4px; font: inherit; font-size: 13px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; min-height: 66px; }
.ico { display: inline-block; width: 44px; height: 32px; background-color: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico.q { background: none; -webkit-mask: none; mask: none; text-align: center; font-size: 26px; font-weight: 700; line-height: 32px; }
.sp .ico { color: var(--forest); }
.item .thumb .ico { width: 40px; height: 30px; color: var(--forest); }
.sp.sel { border-color: var(--forest); background: var(--forest-soft); font-weight: 700; box-shadow: inset 0 0 0 1px var(--forest); }
#altraWrap { margin-top: 10px; }

.stepper { display: flex; align-items: center; gap: 18px; }
.stepper button { width: 52px; height: 52px; font-size: 28px; border-radius: 50%; border: 1.5px solid var(--forest); background: var(--surface); color: var(--forest); }
.stepper output { font-size: 32px; font-weight: 700; min-width: 56px; text-align: center; }

.posbox { padding: 10px; border-radius: 8px; background: var(--forest-soft); font-size: 14px; line-height: 1.45; margin-bottom: 8px; word-break: break-word; }
.posbox.empty { background: var(--gold-soft); color: var(--ink-soft); }
.row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.btn { font: inherit; font-size: 15px; padding: 11px 14px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.btn.primary { background: var(--forest); border-color: var(--forest); color: #fff; }
.btn.ghost { background: transparent; } .btn.danger { color: var(--rust); border-color: var(--rust); background: transparent; margin-top: 8px; }
.btn.invia { width: 100%; padding: 16px; font-size: 18px; font-weight: 700; background: var(--invia); border-color: var(--invia); color: #F6F4EA; }
.btn:disabled { opacity: .5; }
.foto-prev img { max-width: 100%; max-height: 240px; border-radius: 8px; display: block; margin-bottom: 6px; }

.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.seg button { font: inherit; padding: 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); }
.seg button.on { border-color: var(--forest); background: var(--forest-soft); font-weight: 700; }

.item { border-top: 1px solid var(--line); padding: 10px 0; display: flex; gap: 10px; }
.item:first-child { border-top: 0; }
.item img { width: 58px; height: 58px; object-fit: cover; border-radius: 8px; flex: none; }
.item .thumb { width: 58px; height: 58px; flex: none; border-radius: 8px; background: var(--forest-soft); display: flex; align-items: center; justify-content: center; font-size: 28px; }
.item .b { flex: 1; min-width: 0; } .item .t { font-weight: 700; } .item .s { font-size: 13px; color: var(--ink-soft); word-break: break-word; }
.stato { display: inline-block; font-size: 11px; padding: 1px 8px; border-radius: 99px; border: 1px solid var(--forest); color: var(--forest); margin-left: 6px; vertical-align: 2px; }
.stato.da { border-color: var(--rust); color: var(--rust); }
.item .az { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.item .az button { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.vuoto { color: var(--ink-soft); text-align: center; padding: 14px 0; }

.mapwrap { position: relative; isolation: isolate; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
#map { height: calc(100vh - 230px); min-height: 320px; background: #cfd8d0; }
.mapbtns { position: absolute; right: 10px; top: 10px; z-index: 500; display: flex; flex-direction: column; gap: 8px; }
.mapbtn { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; }
.pin { font-size: 24px; text-align: center; line-height: 28px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.5)); }
.pin.spec { width: 34px; height: 34px; border-radius: 50%; background: var(--surface); border: 2px solid var(--forest); color: var(--forest); display: flex; align-items: center; justify-content: center; filter: none; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.pin.spec .ico { width: 22px; height: 18px; }
.me { width: 16px; height: 16px; border-radius: 50%; background: #1E6FE8; border: 3px solid #fff; box-shadow: 0 0 0 2px rgba(30,111,232,.4); }

nav.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; display: flex; background: var(--surface);
  border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
nav.tabbar button { flex: 1; border: 0; background: transparent; color: var(--ink-soft); font: inherit; font-size: 11px; padding: 7px 0 6px;
  display: flex; flex-direction: column; align-items: center; gap: 1px; }
nav.tabbar button .icon { font-size: 19px; height: 24px; display: flex; align-items: center; }
nav.tabbar button.active { color: var(--forest); font-weight: 700; }

#toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(20px); opacity: 0;
  background: #222; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 14px; z-index: 99; pointer-events: none; transition: .25s; max-width: 90%; text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%); }
details { margin: 8px 0; } summary { cursor: pointer; color: var(--forest); } details ul { padding-left: 18px; font-size: 14px; }

.tira-agg { position: fixed; top: calc(env(safe-area-inset-top) + 6px); left: 50%; z-index: 60; width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--ink-soft); border: 1px solid var(--line); font-size: 22px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.3); pointer-events: none; opacity: .92; }
.tira-agg[hidden] { display: none; } .tira-agg.pronto { color: var(--forest); border-color: var(--forest); }

.install-banner { position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: 620px; margin: 0 auto; z-index: 25; display: flex; align-items: center; gap: 10px;
  background: var(--header-bg); color: var(--header-ink); border-radius: 12px; padding: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.install-banner.hidden { display: none; }
.install-btn[hidden] { display: none; }
#installHint { color: rgba(246,244,234,.85); }
#installHint b { display: inline; font-size: inherit; margin: 0; color: #fff; }
.passi-ios { margin: 6px 0 0 18px; padding: 0; }
.passi-ios li { margin: 4px 0; }
.ico-cond { width: 17px; height: 17px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.freccia-ios { position: fixed; z-index: 40; font-size: 38px; line-height: 1; color: #D9B65C; text-shadow: 0 2px 6px rgba(0,0,0,.45); animation: salta-giu 1s ease-in-out infinite; }
.freccia-ios[hidden] { display: none; }
.freccia-ios.giu { bottom: calc(4px + env(safe-area-inset-bottom)); left: 50%; margin-left: -19px; }
.freccia-ios.su { top: 6px; right: 64px; animation-name: salta-su; }
@keyframes salta-giu { 50% { transform: translateY(8px); } }
@keyframes salta-su { 0%, 100% { transform: rotate(180deg); } 50% { transform: rotate(180deg) translateY(8px); } }
.install-icon { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; }
.install-text { flex: 1; min-width: 0; font-size: 13px; line-height: 1.35; }
.install-text b { display: block; font-size: 14px; margin-bottom: 2px; }
.install-text span { color: rgba(246,244,234,.82); }
.install-actions { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; }
.install-btn { display: inline-block; text-align: center; text-decoration: none; background: #D9B65C; color: var(--header-bg); border: none; border-radius: 7px; padding: 8px 14px; font: inherit; font-size: 13px; font-weight: 600; }
.install-later { background: transparent; color: var(--header-ink); border: 1px solid rgba(255,255,255,.3); border-radius: 7px; padding: 6px 10px; font: inherit; font-size: 12px; }

.dlg-backdrop { position: fixed; inset: 0; background: rgba(20,24,15,.45); display: none; align-items: flex-end; z-index: 70; }
.dlg-backdrop.on { display: flex; }
.dlg-sheet { background: var(--bg); width: 100%; max-width: 640px; margin: 0 auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
.dlg-msg { font-size: 15px; line-height: 1.5; white-space: pre-line; margin-bottom: 10px; }
.dlg-actions { display: flex; gap: 8px; margin-top: 14px; } .dlg-actions .btn { flex: 1; }
.item .az a { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; }

/* scelta di un punto sulla mappa: barra sempre visibile sopra il menu in basso */
#mapBanner { position: fixed; left: 10px; right: 10px; bottom: calc(72px + env(safe-area-inset-bottom)); max-width: 620px; margin: 0 auto; z-index: 40; box-shadow: 0 4px 16px rgba(0,0,0,.3); border: 1px solid var(--line); }
#mapBanner[hidden] { display: none; }
.pin.pickpin { font-size: 32px; line-height: 34px; width: 34px; height: 34px; }

.credito { text-align: center; font-size: 13px; color: var(--ink-soft); margin: 18px 0 8px; }

/* niente barra di scorrimento a destra (su computer), come cacciaTI: si scorre con rotella, trascinamento o tocco */
html { scrollbar-width: none; }
::-webkit-scrollbar { width: 0; height: 0; }

/* come cacciaTI: avviso offline e controllo di data/ora */
.offline-bar { margin: 0 0 10px; padding: 8px 10px; border-radius: 8px; background: var(--gold-soft); border-left: 4px solid var(--gold); font-size: 13px; line-height: 1.4; }
.offline-bar.ok { border-left-color: #6FAE6F; background: var(--forest-soft); }
.offline-bar[hidden], .orologio-avviso[hidden] { display: none; }
.orologio-avviso { margin: 0 0 10px; padding: 10px 12px; border-radius: 8px; background: var(--rust-soft); border-left: 4px solid var(--rust); font-size: 13.5px; line-height: 1.45; }
.orologio-avviso .btn { margin-top: 8px; }
/* con una finestra aperta la pagina dietro non scorre */
html:has(.dlg-backdrop.on) { overflow: hidden; }
.dlg-sheet { overscroll-behavior: contain; }

/* pulsante in alto per passare dal tema chiaro allo scuro (come cacciaTI) */
.theme-toggle-btn { color: var(--header-ink); background: transparent; border: 1px solid rgba(255,255,255,.3); border-radius: 8px; width: 34px; height: 34px; font-size: 16px; cursor: pointer; flex-shrink: 0; padding: 0; }

/* ✕ per chiudere la mappa (in alto a destra, sopra gli altri pulsanti) */
.mapclose { font-size: 20px; font-weight: 700; }

/* ✕ per chiudere le finestre (come la mappa) */
.dlg-sheet { position: relative; }
.dlg-x { position: absolute; top: 8px; right: 8px; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 18px; font-weight: 700; cursor: pointer; padding: 0; }
.dlg-msg { padding-right: 40px; }

/* ---- segnalazione guidata (un passo alla volta) ---- */
.wiz-head { margin: 2px 0 14px; }
.wiz-riga { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--ink-soft); font-weight: 600; }
.wiz-x { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 17px; font-weight: 700; padding: 0; cursor: pointer; }
.wiz-barra { height: 6px; border-radius: 99px; background: var(--line); margin-top: 8px; overflow: hidden; }
.wiz-barra i { display: block; height: 100%; width: 20%; background: var(--forest); border-radius: 99px; transition: width .25s; }
.wiz-passo { display: none; } .wiz-passo.on { display: block; }
.wiz-q { font-size: 23px; margin: 6px 0 16px; color: var(--ink); line-height: 1.25; }
.stepper.grande { justify-content: center; margin: 26px 0 22px; gap: 26px; }
.stepper.grande button { width: 80px; height: 80px; font-size: 42px; }
.stepper.grande output { font-size: 60px; min-width: 110px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.chips button { min-width: 54px; height: 46px; border-radius: 23px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 18px; font-weight: 600; cursor: pointer; }
.chips button.on { border-color: var(--forest); background: var(--forest-soft); color: var(--forest); }
.col { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.col .btn { padding: 17px; font-size: 17px; }
.wiz-nav { position: fixed; left: 0; right: 0; bottom: calc(60px + env(safe-area-inset-bottom)); z-index: 24; background: var(--bg); border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 10px; max-width: 640px; margin: 0 auto; }
.wiz-nav .btn { flex: 1; padding: 15px; font-size: 17px; font-weight: 700; margin: 0; }
#wizIndietro { flex: 0 0 34%; }
.wiz-nav .btn.invia { width: auto; }
.wiz-nav [hidden] { display: none; }
#view-segnala { padding-bottom: 96px; }
.riep { display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.riep-r { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; font: inherit; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.riep-r .k { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); min-width: 62px; }
.riep-r .v { flex: 1; font-weight: 600; min-width: 0; word-break: break-word; display: flex; align-items: center; gap: 8px; }
.riep-r .v .ico { width: 34px; height: 24px; color: var(--forest); flex: none; }
.riep-r .m { font-size: 13px; color: var(--forest); font-weight: 600; }
.minimap { height: 170px; border-radius: 10px; border: 1px solid var(--line); margin: 10px 0 4px; overflow: hidden; pointer-events: none; background: #cfd8d0; }

/* rifiniture della segnalazione guidata */
.wiz-riga #wizProg { letter-spacing: .02em; }
.wiz-barra { height: 8px; }
.wiz-q { font-size: 24px; font-weight: 700; margin: 10px 0 18px; }
.wiz-nav { box-shadow: 0 -4px 14px rgba(0,0,0,.08); }
.wiz-nav .btn { border-radius: 14px; min-height: 52px; }
#wizIndietro { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
#wizAvanti:disabled { opacity: .45; }
.riep { gap: 10px; }
.riep-r { border-radius: 14px; padding: 13px 14px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.riep-r .m { font-size: 12px; padding: 5px 10px; border-radius: 99px; background: var(--forest-soft); }
.mini-wrap { margin: 14px 0 6px; cursor: pointer; }
.mini-wrap .minimap { height: 210px; margin: 0; border-radius: 14px; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.mini-cap { font-size: 12.5px; color: var(--ink-soft); margin: 6px 4px 0; text-align: center; }
#view-segnala { padding-bottom: 150px; }

/* Torna qui (come cacciaTI) */
.torna-titolo { margin: 0 44px 8px 0; font-size: 18px; }
.torna-bussola { position: relative; width: 220px; height: 220px; margin: 6px auto 10px; border-radius: 50%; border: 3px solid var(--line); background: var(--surface); }
.torna-n { position: absolute; top: 6px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: 700; color: var(--rust); }
.torna-freccia { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--forest); transition: transform .25s, opacity .3s; }
.torna-freccia[hidden] { display: none; }
.torna-freccia svg { width: 110px; height: 150px; }
.no-gps { display: block; width: fit-content; margin: 0 auto 8px; padding: 3px 12px; border-radius: 999px; background: #C62828; color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .08em; animation: noGpsBlink 1s steps(2, start) infinite; }
.no-gps[hidden] { display: none; }
@keyframes noGpsBlink { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .no-gps { animation: none; } }
.torna-dist { text-align: center; font-size: 38px; font-weight: 700; color: var(--forest); line-height: 1.1; }
.torna-dist.vecchia { opacity: .4; }
.torna-info { text-align: center; color: var(--ink-soft); margin-top: 6px; min-height: 1.4em; }
#tornaNota { text-align: center; font-size: 13px; }
#tornaMappe { text-align: center; text-decoration: none; display: flex; align-items: center; justify-content: center; }
/* pulsanti delle voci: più grandi e distanziati, «elimina» in disparte */
.item .az { gap: 12px 10px; margin-top: 10px; }
.item .az button { font-size: 14px; min-height: 44px; padding: 8px 14px; }
.item .az .primario { flex: 1 1 100%; background: var(--forest); border-color: var(--forest); color: #fff; font-weight: 700; font-size: 16px; min-height: 48px; }
.item .az .elim { margin-left: auto; min-width: 52px; color: var(--rust); border-color: var(--rust); background: transparent; }
/* la mappa piccola del riepilogo tiene i suoi livelli dentro di sé: non deve passare sopra i pulsanti fissi «Indietro» e «Invia» */
.mini-wrap, .minimap { position: relative; z-index: 0; isolation: isolate; }

.riep-r .coo { display: flex; flex-direction: column; line-height: 1.25; } .riep-r .coo small { font-weight: 400; font-size: 13px; color: var(--ink-soft); }

/* ricerca di un luogo sulla mappa */
.mapcerca { position: absolute; left: 54px; right: 62px; top: 10px; z-index: 500; }
.mapcerca input { width: 100%; box-sizing: border-box; height: 42px; padding: 0 38px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: 15px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
.mapcerca-x { position: absolute; right: 4px; top: 4px; width: 34px; height: 34px; border: 0; background: transparent; color: var(--ink-soft); font-size: 16px; cursor: pointer; }
.mapcerca-x[hidden], .mapris[hidden] { display: none; }
.mapris { margin-top: 6px; max-height: 44vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.mapris button { display: flex; flex-direction: column; align-items: flex-start; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--ink); font: inherit; font-size: 15px; cursor: pointer; }
.mapris button:last-child { border-bottom: 0; } .mapris button small { color: var(--ink-soft); font-size: 12px; }
.mapris .ris-n { padding: 12px; font-size: 14px; color: var(--ink-soft); }
.pin-cerca { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--rust); background: rgba(255,255,255,.35); box-shadow: 0 0 0 3px rgba(255,255,255,.7), 0 1px 4px rgba(0,0,0,.5); }
input[type="search"]::-webkit-search-cancel-button, input[type="search"]::-webkit-search-decoration { -webkit-appearance: none; appearance: none; display: none; }
/* filtro e «Mostra altre» del Registro (v2.5) */
.reg-filtro { margin: 0 0 10px; } .reg-filtro[hidden] { display: none; } .reg-filtro button { padding: 8px 4px; font-size: 14px; } .reg-filtro small { color: var(--ink); font-weight: 800; font-size: 15px; margin-left: 3px; opacity: 1; } .reg-filtro .on small { color: var(--forest); }   /* i numeri contano quanto le scritte: scuri e in grassetto (v2.6.1) */
.altre { display: block; width: 100%; margin-top: 10px; font: inherit; padding: 10px; border-radius: 9px; border: 1.5px solid var(--line); background: var(--bg); color: var(--forest); font-weight: 700; }
.seg4 { grid-template-columns: repeat(2, 1fr); margin-top: 8px; }   /* scelta delle foto (v2.6): 2 + 2 su telefono */
