/* Voidwalker Trails - house dark style */
.vt-app{
  --vt-ink:#08060e; --vt-surface:#0e0a18; --vt-surface2:#171029;
  --vt-line:rgba(180,120,255,.20); --vt-text:#f3eefc; --vt-muted:#a394c6;
  --vt-cyan:#19e6ff; --vt-pink:#ff2fb0; --vt-green:#6bff8f; --vt-gold:#e8b84b;
  --vt-blue:#19e6ff; /* alias: primary accent is now electric cyan */
  font-family:'Space Grotesk',system-ui,sans-serif;
  color:var(--vt-text); background:var(--vt-surface);
  border:1.5px solid var(--vt-pink); border-radius:16px; overflow:hidden;
  box-shadow:0 0 22px rgba(255,47,176,.35), inset 0 0 30px rgba(120,40,200,.12);
  max-width:1000px; margin:16px auto; box-sizing:border-box;
}
.vt-app *{box-sizing:border-box;}

.vt-topbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;padding:12px 14px;border-bottom:1px solid var(--vt-line);}
.vt-search{display:flex;flex:1 1 260px;gap:6px;min-width:0;}
.vt-search-input{flex:1;min-width:0;background:var(--vt-surface2);border:1px solid var(--vt-line);border-radius:10px;padding:10px 12px;color:var(--vt-text);font-family:inherit;font-size:.95rem;}
.vt-search-input:focus{outline:none;border-color:var(--vt-cyan);box-shadow:0 0 0 2px rgba(25,230,255,.25);}
.vt-search-go{cursor:pointer;background:var(--vt-cyan);color:#03141a;border:0;border-radius:10px;padding:10px 14px;font-weight:700;font-family:inherit;box-shadow:0 0 14px rgba(25,230,255,.4);}
.vt-search-go:hover{filter:brightness(1.08);}

.vt-views{display:flex;gap:4px;background:var(--vt-surface2);border:1px solid var(--vt-line);border-radius:10px;padding:3px;}
.vt-view-btn{cursor:pointer;background:transparent;border:0;color:var(--vt-muted);border-radius:8px;padding:8px 12px;font-family:inherit;font-size:.85rem;font-weight:600;}
.vt-view-btn.active{background:var(--vt-ink);color:var(--vt-text);}

.vt-map{width:100%;height:var(--vt-h,70vh);min-height:340px;background:var(--vt-ink);}
.leaflet-container{background:#07060d;font-family:inherit;}

.vt-panel{padding:12px 14px;border-top:1px solid var(--vt-line);display:flex;flex-direction:column;gap:12px;}
.vt-track-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;}
.vt-track-btn{cursor:pointer;background:var(--vt-cyan);color:#03141a;border:0;border-radius:12px;padding:14px 20px;font-family:inherit;font-size:1.05rem;font-weight:800;flex:1 1 auto;min-width:150px;box-shadow:0 0 18px rgba(25,230,255,.45);}
.vt-track-btn[data-state="tracking"]{background:var(--vt-pink);color:#1a0512;box-shadow:0 0 20px rgba(255,47,176,.55);}
.vt-track-btn:hover{filter:brightness(1.08);}
.vt-stats{color:var(--vt-muted);font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:.95rem;white-space:nowrap;}
.vt-stats .vt-dist{color:var(--vt-cyan);font-weight:700;}

.vt-actions{display:flex;flex-wrap:wrap;gap:8px;}
.vt-actions button{cursor:pointer;background:var(--vt-surface2);border:1px solid var(--vt-line);color:var(--vt-text);border-radius:10px;padding:10px 14px;font-family:inherit;font-size:.9rem;font-weight:600;}
.vt-actions button:hover{border-color:var(--vt-muted);}
.vt-pin-btn[data-armed="1"]{background:var(--vt-pink);color:#1a0512;border-color:var(--vt-pink);box-shadow:0 0 14px rgba(255,47,176,.5);}
.vt-scope-btn.active{background:var(--vt-cyan);color:#03141a;border-color:var(--vt-cyan);}

/* ---- forage coloured markers ---- */
.vt-forage-icon{background:none;border:0;}
.vt-forage-icon span{display:block;width:16px;height:16px;border-radius:50%;border:2px solid #fff;
  box-shadow:0 0 8px currentColor,0 0 2px rgba(0,0,0,.6);}
.vt-pop-type{display:inline-block;font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:.72rem;
  font-weight:600;padding:2px 8px;border-radius:999px;margin-bottom:6px;color:#05040a;}
.vt-pop-label{font-weight:700;font-size:1rem;margin-bottom:2px;}
.vt-pop-note{color:#333;font-size:.9rem;margin-bottom:6px;white-space:pre-wrap;}
.vt-pop-del{cursor:pointer;background:#ff2fb0;color:#1a0512;border:0;border-radius:8px;padding:6px 10px;font-weight:700;font-family:inherit;}

/* ---- drop-a-find sheet ---- */
.vt-find-sheet{position:absolute;inset:0;z-index:1200;display:none;align-items:flex-end;justify-content:center;
  background:rgba(4,3,9,.66);backdrop-filter:blur(3px);}
.vt-find-sheet.open{display:flex;}
.vt-find-card{width:100%;max-width:560px;background:var(--vt-surface);border:1.5px solid var(--vt-pink);
  border-radius:16px 16px 0 0;box-shadow:0 -6px 30px rgba(255,47,176,.35);padding:16px 16px 18px;
  max-height:86%;overflow:auto;}
.vt-find-card h4{margin:0 0 4px;font-size:1.15rem;color:var(--vt-cyan);}
.vt-find-card p.vt-find-sub{margin:0 0 14px;color:var(--vt-muted);font-size:.9rem;}
.vt-find-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px;margin-bottom:14px;}
.vt-find-chip{display:flex;align-items:center;gap:9px;cursor:pointer;background:var(--vt-surface2);
  border:1px solid var(--vt-line);border-radius:12px;padding:10px 12px;color:var(--vt-text);
  font-family:inherit;font-size:.9rem;font-weight:600;text-align:left;}
.vt-find-chip .vt-dot{width:14px;height:14px;border-radius:50%;border:2px solid #fff;flex:none;box-shadow:0 0 6px currentColor;}
.vt-find-chip.sel{border-color:var(--vt-cyan);box-shadow:0 0 0 2px rgba(25,230,255,.3);}
.vt-find-note{width:100%;background:var(--vt-surface2);border:1px solid var(--vt-line);border-radius:10px;
  padding:10px 12px;color:var(--vt-text);font-family:inherit;font-size:.95rem;resize:vertical;min-height:64px;margin-bottom:14px;}
.vt-find-note:focus{outline:none;border-color:var(--vt-cyan);}
.vt-find-actions{display:flex;gap:8px;justify-content:flex-end;}
.vt-find-save{cursor:pointer;background:var(--vt-cyan);color:#03141a;border:0;border-radius:10px;padding:12px 18px;font-weight:800;font-family:inherit;box-shadow:0 0 14px rgba(25,230,255,.4);}
.vt-find-cancel{cursor:pointer;background:transparent;color:var(--vt-muted);border:1px solid var(--vt-line);border-radius:10px;padding:12px 16px;font-weight:600;font-family:inherit;}

/* map legend */
.vt-legend{display:flex;flex-wrap:wrap;gap:10px;padding:10px 14px;border-top:1px solid var(--vt-line);}
.vt-legend .vt-leg{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--vt-muted);font-family:'IBM Plex Mono',ui-monospace,monospace;}
.vt-legend .vt-dot{width:11px;height:11px;border-radius:50%;border:1.5px solid #fff;box-shadow:0 0 5px currentColor;}

.vt-hint{color:var(--vt-muted);font-size:.85rem;min-height:1em;}
.vt-hint.on{color:var(--vt-gold);}

.vt-save-row{display:flex;flex-wrap:wrap;gap:8px;align-items:center;}
.vt-walk-title{flex:1 1 200px;background:var(--vt-surface2);border:1px solid var(--vt-line);border-radius:10px;padding:10px 12px;color:var(--vt-text);font-family:inherit;}
.vt-walk-title:focus{outline:none;border-color:var(--vt-green);}
.vt-save-btn{cursor:pointer;background:var(--vt-green);color:#0d0e12;border:0;border-radius:10px;padding:10px 16px;font-weight:700;font-family:inherit;}
.vt-discard-btn{cursor:pointer;background:transparent;border:1px solid var(--vt-line);color:var(--vt-muted);border-radius:10px;padding:10px 14px;font-family:inherit;}

.vt-walks-list{display:flex;flex-direction:column;gap:8px;}
.vt-walk-card{display:flex;flex-wrap:wrap;align-items:center;gap:8px;justify-content:space-between;background:var(--vt-surface2);border:1px solid var(--vt-line);border-radius:10px;padding:10px 12px;}
.vt-walk-card .vt-wc-main{display:flex;flex-direction:column;gap:2px;min-width:0;}
.vt-walk-card .vt-wc-title{font-weight:600;}
.vt-walk-card .vt-wc-meta{color:var(--vt-muted);font-size:.8rem;font-family:'IBM Plex Mono',ui-monospace,monospace;}
.vt-walk-card .vt-wc-actions{display:flex;gap:6px;flex-wrap:wrap;}
.vt-walk-card button, .vt-walk-card a.vt-btn{cursor:pointer;background:var(--vt-ink);border:1px solid var(--vt-line);color:var(--vt-text);border-radius:8px;padding:6px 10px;font-size:.8rem;font-family:inherit;text-decoration:none;}
.vt-walk-card button:hover{border-color:var(--vt-muted);}
.vt-walk-card .vt-del{color:#ff8f8f;}
.vt-walk-card .vt-linkfield{width:100%;margin-top:6px;background:var(--vt-ink);border:1px solid var(--vt-line);border-radius:8px;padding:8px 10px;color:var(--vt-green);font-family:'IBM Plex Mono',ui-monospace,monospace;font-size:.75rem;}

.vt-msg{padding:0 14px 14px;font-size:.9rem;min-height:1.2em;}
.vt-msg.err{color:#ff8f8f;}
.vt-msg.ok{color:var(--vt-green);}

/* Leaflet popup + controls, dark themed */
.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#1c1e26;color:#edede3;box-shadow:0 6px 24px rgba(0,0,0,.5);}
.leaflet-popup-content{font-family:'Space Grotesk',system-ui,sans-serif;margin:12px 14px;}
.vt-pop-label{font-weight:600;font-size:1rem;margin-bottom:2px;}
.vt-pop-note{color:#8a8d98;font-size:.85rem;margin-bottom:8px;white-space:pre-wrap;}
.vt-pop-del{cursor:pointer;background:transparent;border:1px solid rgba(237,237,227,.2);color:#ff8f8f;border-radius:6px;padding:4px 8px;font-size:.75rem;font-family:inherit;}
.leaflet-bar a{background:#1c1e26;color:#edede3;border-bottom-color:rgba(237,237,227,.12);}
.leaflet-bar a:hover{background:#23252f;}

/* Published walks list shortcode */
.vt-list{display:flex;flex-direction:column;gap:8px;max-width:640px;margin:16px auto;font-family:'Space Grotesk',system-ui,sans-serif;}
.vt-list-item{display:flex;flex-direction:column;gap:2px;background:#1c1e26;border:1px solid rgba(237,237,227,.09);border-radius:12px;padding:14px 16px;text-decoration:none;color:#edede3;}
.vt-list-item:hover{border-color:#8a8d98;}
.vt-list-title{font-weight:600;font-size:1.05rem;}
.vt-list-meta{color:#8a8d98;font-size:.82rem;font-family:'IBM Plex Mono',ui-monospace,monospace;}
.vt-list-empty{color:#8a8d98;text-align:center;}

@media (max-width:520px){
  .vt-topbar{flex-direction:column;align-items:stretch;}
  .vt-views{justify-content:center;}
  .vt-stats{width:100%;text-align:center;}
}
