:root{
  --bg:#10130e; --bg2:#161a13; --panel:#1c2118; --panel2:#242a1f; --line:#343c2c;
  --green:#8cc63f; --green2:#b5de6e; --wheat:#e6c068; --text:#eaeddf; --muted:#9da88f;
  --red:#e0654f; --ok:#57c84d;
  --veh:#eef1e4; --veh-ring:#10130e; --c-overig:#8e958a;
  --shadow:0 6px 20px rgba(0,0,0,.45);
  color-scheme:dark;
}
*{box-sizing:border-box}
html,body{margin:0}
:focus-visible{outline:2px solid var(--green2); outline-offset:2px; border-radius:5px}
@media (prefers-reduced-motion: reduce){
  *,*::before,*::after{animation-duration:.001ms!important; animation-iteration-count:1!important; transition-duration:.001ms!important}
}
body{
  background:
    radial-gradient(1200px 600px at 50% -200px, #232b1a 0%, rgba(35,43,26,0) 70%),
    var(--bg);
  color:var(--text); font-family:"Segoe UI",Roboto,Helvetica,Arial,sans-serif; font-size:15px; line-height:1.4;
  -webkit-font-smoothing:antialiased; min-height:100vh;
}
a{color:var(--green2)}
h1,h2,h3{margin:0}
.skiplink{position:absolute; left:-9999px; top:8px; z-index:2000; background:var(--green2); color:#10130e;
  padding:9px 14px; border-radius:8px; font-weight:700; text-decoration:none}
.skiplink:focus{left:12px}

/* ---------- header ---------- */
header.top{position:sticky; top:0; z-index:1000;
  background:linear-gradient(180deg,#1b2116 0%,#141810 100%);
  border-bottom:1px solid var(--line); box-shadow:0 3px 14px rgba(0,0,0,.4); padding:14px 20px 0}
.titlebar{display:flex; align-items:center; gap:14px; flex-wrap:wrap}
.backhub{display:inline-flex; align-items:center; gap:6px; text-decoration:none; color:var(--green2);
  background:rgba(140,198,63,.08); border:1px solid var(--line); padding:6px 13px; border-radius:20px;
  font-size:13px; font-weight:600; white-space:nowrap; transition:background .15s,border-color .15s,transform .15s}
.backhub:hover{background:rgba(140,198,63,.16); border-color:var(--green); transform:translateX(-2px)}
.backhub .ar{font-size:16px; line-height:1}
.titlebar h1{font-size:24px; font-weight:800; letter-spacing:.3px; text-transform:uppercase}
.titlebar h1 span{color:var(--green)}
.titlebar .sub{color:var(--muted); font-size:14px}
.badge{ display:inline-flex; align-items:center; gap:8px; font-size:13px; font-weight:600;
  padding:6px 12px; border-radius:20px; border:1px solid var(--line); background:var(--panel); white-space:nowrap}
.badge .dot{width:9px; height:9px; border-radius:50%; background:var(--muted)}
.badge.on .dot{background:var(--ok); box-shadow:0 0 0 0 rgba(87,200,77,.6); animation:pulse 2s infinite}
.badge.off .dot{background:var(--red)}
@keyframes pulse{0%{box-shadow:0 0 0 0 rgba(87,200,77,.55)}70%{box-shadow:0 0 0 8px rgba(87,200,77,0)}100%{box-shadow:0 0 0 0 rgba(87,200,77,0)}}

nav.tabs{display:flex; gap:4px; margin-top:12px}
nav.tabs a{padding:10px 16px; color:var(--muted); text-decoration:none; font-weight:600; font-size:14px;
  border-bottom:3px solid transparent; transition:color .15s,border-color .15s}
nav.tabs a:hover{color:var(--text)}
nav.tabs a.active{color:var(--text); border-bottom-color:var(--green)}

main{max-width:1720px; margin:0 auto; padding:22px 20px 40px}
/* Kaart: volle breedte en hoogte onder de kop (--hdr wordt door app.js gezet) */
body[data-view="kaart"] main{max-width:none; padding:12px 16px}
body[data-view="kaart"] footer{display:none}
.view{display:none}
.view.active{display:block}

/* ---------- cards ---------- */
.kpis{display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:14px; margin-bottom:18px}
.kpi{background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:14px 16px}
.kpi .lbl{color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.6px; font-weight:600}
.kpi .val{font-size:28px; font-weight:800; margin-top:4px; font-variant-numeric:tabular-nums; line-height:1.15}
.kpi .val small{font-size:15px; color:var(--muted); font-weight:600}
.kpi .hint{color:var(--muted); font-size:13px; margin-top:2px}

.grid2{display:grid; grid-template-columns:minmax(0,3fr) minmax(0,2fr); gap:18px; align-items:start}
.stack{display:flex; flex-direction:column; gap:18px; min-width:0}
.card{background:var(--panel); border:1px solid var(--line); border-radius:12px; padding:16px 18px; min-width:0}
.card h2{font-size:14px; text-transform:uppercase; letter-spacing:.7px; color:var(--muted); margin-bottom:12px;
  display:flex; align-items:center; gap:10px}
.card h2 .count{margin-left:auto; font-size:12px; letter-spacing:0; text-transform:none}
.empty{color:var(--muted); font-style:italic; padding:6px 0}

/* spelers */
.players{display:flex; flex-direction:column; gap:8px}
.player{display:flex; align-items:center; gap:12px; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:10px 12px}
.avatar{width:36px; height:36px; border-radius:50%; display:grid; place-items:center; font-weight:800; color:#10130e;
  background:var(--green); flex:none}
.player .nm{font-weight:700}
.player .meta{color:var(--muted); font-size:13px}
.tag{font-size:11px; font-weight:700; padding:1px 7px; border-radius:10px; border:1px solid var(--line); color:var(--wheat); margin-left:6px; vertical-align:1px}

/* tabellen */
.tablewrap{overflow-x:auto}
table{width:100%; border-collapse:collapse; font-size:14px}
th{text-align:left; color:var(--muted); font-weight:600; font-size:12px; text-transform:uppercase; letter-spacing:.5px;
  padding:6px 10px; border-bottom:1px solid var(--line); white-space:nowrap}
td{padding:8px 10px; border-bottom:1px solid rgba(52,60,44,.55); vertical-align:top}
tr:last-child td{border-bottom:0}
.linkbtn{background:none; border:1px solid var(--line); color:var(--green2); border-radius:14px; padding:3px 10px; font-size:12px;
  cursor:pointer; text-transform:none; letter-spacing:0; font-weight:600}
.linkbtn:hover{border-color:var(--green)}
.card h2 .count + .linkbtn{margin-left:4px}
.tag.contract{color:var(--muted); border-style:dashed}
.tag.lease{color:var(--green2)}
.vm.contract i{border-style:dashed; opacity:.8}
tr.grp td{padding:14px 10px 6px; font-weight:700; border-bottom:1px solid var(--line)}
tr.grp:first-child td{padding-top:6px}
tr.grp i{display:inline-block; width:12px; height:12px; border-radius:3px; border:1.5px solid rgba(255,255,255,.8); margin-right:8px; vertical-align:-1px}
tr.grp i.none{background:transparent; border-style:dashed; border-color:var(--muted)}
tr.grp .muted{font-weight:400; font-size:13px}
td.num{text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap}
.gdot{display:inline-block; width:10px; height:10px; margin-right:8px; vertical-align:0; border:1.5px solid rgba(255,255,255,.85)}
.gdot{background:var(--veh); border-color:#10130e}
.gdot.trekker{border-radius:50%}
.gdot.speler{border-radius:50%; background:var(--wheat); border-color:#fff}
.gdot.oogst{transform:rotate(45deg); border-radius:1px}
.gdot.werktuig{border-radius:2px}
.gdot.overig{background:var(--c-overig); border-radius:2px; width:8px; height:8px}
.fill{display:inline-block; font-size:12px; padding:1px 7px; margin:1px 4px 1px 0; border-radius:10px; background:rgba(255,255,255,.05); border:1px solid var(--line); white-space:nowrap}
.driver{color:var(--wheat); font-weight:600}
.muted{color:var(--muted)}

/* activiteit */
.feed{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:2px}
.feed li{display:grid; grid-template-columns:22px 1fr auto; gap:8px; padding:6px 0; border-bottom:1px solid rgba(52,60,44,.55); font-size:14px}
.feed li:last-child{border-bottom:0}
.feed .when{color:var(--muted); font-size:12px; white-space:nowrap}
.feed .txt{white-space:pre-line}

/* server-info */
dl.kv{display:grid; grid-template-columns:auto 1fr; gap:6px 16px; margin:0; font-size:14px}
dl.kv dt{color:var(--muted)}
dl.kv dd{margin:0; text-align:right; font-variant-numeric:tabular-nums}

/* mods */
.modtools{display:flex; gap:10px; margin-bottom:12px; flex-wrap:wrap}
.modtools input{flex:1 1 240px; padding:9px 12px; border-radius:9px; border:1px solid var(--line); background:var(--panel2); color:var(--text); font-size:14px; outline:none}
.modtools input:focus{border-color:var(--green)}
.mods{display:grid; grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:8px}
.mod{background:var(--panel2); border:1px solid var(--line); border-radius:9px; padding:8px 11px}
.mod .t{font-weight:600; font-size:14px}
.mod .a{color:var(--muted); font-size:12px}
.mod.dlc{border-left:3px solid var(--wheat)}

/* segment-knoppen */
.seg{display:inline-flex; background:var(--panel); border:1px solid var(--line); border-radius:9px; overflow:hidden}
.seg button{background:transparent; color:var(--muted); border:0; padding:8px 14px; font-size:13px; cursor:pointer; font-weight:600}
.seg button.active{background:var(--green); color:#10130e}
.seg button:not(.active):hover{color:var(--text)}

/* ---------- kaart ---------- */
.mapwrap{display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:16px; height:calc(100dvh - var(--hdr, 110px) - 24px); min-height:520px}
#map{border-radius:12px; border:1px solid var(--line); background:#0b0d09; height:100%}
.side{display:flex; flex-direction:column; gap:14px; overflow:auto}
.layers label{display:flex; align-items:center; gap:10px; padding:5px 0; cursor:pointer; font-size:14px}
.layers input{accent-color:var(--green); width:16px; height:16px}
.layers .n{margin-left:auto; color:var(--muted); font-size:12px}
.vlist{list-style:none; margin:0; padding:0}
.vlist li{padding:7px 8px; border-radius:7px; cursor:pointer; font-size:14px; display:flex; align-items:center}
.vlist li:hover{background:var(--panel2)}
.vlist li .who{margin-left:auto; font-size:12px}

.leaflet-container{font:inherit; background:#0b0d09}
.leaflet-tooltip.fs-tip{background:#141810; color:var(--text); border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow); font-size:13px; padding:6px 9px}
.leaflet-tooltip.fs-tip::before{display:none}
.leaflet-bar a{background:var(--panel); color:var(--text); border-color:var(--line)}
.leaflet-bar a:hover{background:var(--panel2); color:var(--text)}
.leaflet-control-attribution{display:none}

.vm{position:relative}
.vm i{position:absolute; left:50%; top:50%; width:14px; height:14px; margin:-7px 0 0 -7px; background:var(--veh); border:2px solid var(--veh-ring); box-shadow:0 0 0 1.5px rgba(255,255,255,.7)}
.vm.trekker i{border-radius:50%}
.vm.oogst i{transform:rotate(45deg); border-radius:2px; width:13px; height:13px; margin:-6.5px 0 0 -6.5px}
.vm.werktuig i{border-radius:3px; width:12px; height:12px; margin:-6px 0 0 -6px}
.vm.overig i{background:var(--c-overig); border-radius:2px; width:9px; height:9px; margin:-4.5px 0 0 -4.5px; border-width:1.5px}
.vm.speler i{border-radius:50%; background:var(--wheat); border-color:#fff; width:13px; height:13px; margin:-6.5px 0 0 -6.5px}
.vm.driven i{width:20px; height:20px; margin:-10px 0 0 -10px; border-color:var(--wheat); box-shadow:0 0 0 2px rgba(0,0,0,.6),0 0 14px rgba(230,192,104,.8)}
.vm b{position:absolute; left:50%; bottom:16px; transform:translateX(-50%); white-space:nowrap; background:#141810; color:var(--wheat);
  border:1px solid var(--wheat); border-radius:10px; padding:1px 8px; font-size:12px; font-weight:700; box-shadow:0 2px 8px rgba(0,0,0,.5)}
.fm{display:grid; place-items:center; width:26px; height:20px; border-radius:6px; font-size:11px; font-weight:800;
  background:rgba(16,19,14,.82); color:var(--text); border:1.5px solid rgba(234,237,223,.55)}
.fm.own{color:#fff; border-color:#fff; text-shadow:0 1px 1px rgba(0,0,0,.5)}
.fm.small{width:12px; height:12px; border-radius:50%; font-size:0}
.legendh{margin:12px 0 6px; padding-top:10px; border-top:1px solid var(--line); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--muted)}
.farmlegend{margin:0; display:flex; flex-wrap:wrap; gap:4px 14px; font-size:13px}
.farmlegend span{display:flex; align-items:center; gap:8px}
.farmlegend i{width:14px; height:11px; border-radius:3px; border:1.5px solid #fff; flex:none}
.farmlegend .free i{background:rgba(16,19,14,.82); border-color:rgba(234,237,223,.55)}

/* farms-kaart op statuspagina */
.farms{display:flex; flex-direction:column; gap:8px}
.farm{display:grid; grid-template-columns:14px 1fr auto; gap:10px; align-items:center; background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:9px 12px}
.farm i{width:14px; height:14px; border-radius:4px; border:1.5px solid rgba(255,255,255,.8)}
.farm .nm{font-weight:700}
.farm .meta{color:var(--muted); font-size:13px}
.farm .ha{font-variant-numeric:tabular-nums; text-align:right; font-weight:700}
.farm .ha small{display:block; color:var(--muted); font-weight:400; font-size:12px}

/* ---------- statistieken ---------- */
.tag.farmtag{color:var(--text)}
.bookgrid{display:grid; grid-template-columns:1fr 1fr; gap:18px}
.book{display:flex; flex-direction:column; gap:9px}
.book .bh{display:flex; justify-content:space-between; font-weight:700; border-bottom:1px solid var(--line); padding-bottom:6px}
.book .bh b{font-variant-numeric:tabular-nums}
@media(max-width:600px){ .bookgrid{grid-template-columns:1fr} }
.stathead{display:flex; align-items:center; gap:14px; flex-wrap:wrap; margin-bottom:16px}
.stathead .note{color:var(--muted); font-size:13px}
.chart{position:relative; width:100%}
.chart svg{display:block; width:100%; height:auto; overflow:visible}
.chart .axis text{fill:var(--muted); font-size:11px}
.chart .grid line{stroke:rgba(157,168,143,.14)}
.chart .base{stroke:rgba(157,168,143,.4)}
.chart .hair{stroke:rgba(234,237,223,.5); stroke-dasharray:3 3}
.tip{position:fixed; z-index:3000; pointer-events:none; background:#141810; border:1px solid var(--line); border-radius:8px;
  padding:7px 10px; font-size:13px; box-shadow:var(--shadow); display:none; max-width:260px}
.tip b{font-variant-numeric:tabular-nums}

.bars{display:flex; flex-direction:column; gap:10px}
.bar .row{display:flex; justify-content:space-between; gap:10px; font-size:14px; margin-bottom:4px}
.bar .row .v{font-variant-numeric:tabular-nums; color:var(--muted)}
.bar .track{height:10px; background:rgba(255,255,255,.04); border-radius:0 5px 5px 0}
.bar .track span{display:block; height:100%; background:var(--green); border-radius:0 5px 5px 0; min-width:3px}
.bar .on{color:var(--ok); font-size:12px; margin-left:6px}

.heat{display:grid; grid-template-columns:34px repeat(24,minmax(0,1fr)); gap:2px; font-size:11px}
.heat .h{color:var(--muted); text-align:center}
.heat .d{color:var(--muted); display:flex; align-items:center}
.heat .c{aspect-ratio:1.4; border-radius:3px; background:rgba(255,255,255,.035)}
.heat .c:hover{outline:1.5px solid var(--text)}
.legend{display:flex; align-items:center; gap:8px; color:var(--muted); font-size:12px; margin-top:10px}
.legend .ramp{display:flex; gap:2px}
.legend .ramp i{width:18px; height:10px; border-radius:2px}

footer{text-align:center; color:var(--muted); font-size:13px; padding:10px 20px 30px}

@media(max-width:980px){
  .grid2{grid-template-columns:1fr}
  .mapwrap{grid-template-columns:1fr; height:auto}
  #map{height:70vh}
}
@media(max-width:600px){
  header.top{padding:12px 16px 0}
  main{padding:16px 16px 30px}
  .titlebar h1{font-size:19px}
  .titlebar .sub{display:none}
  nav.tabs a{padding:9px 11px}
  .kpi .val{font-size:23px}
  .heat{grid-template-columns:26px repeat(24,minmax(0,1fr)); gap:1px}
  .heat .h:nth-child(odd){visibility:hidden}
}

/* ---------- velden & weer ---------- */
.weather{display:grid; grid-template-columns:repeat(auto-fill,minmax(120px,1fr)); gap:10px}
.wday{background:var(--panel2); border:1px solid var(--line); border-radius:10px; padding:10px 12px; display:flex; flex-direction:column; gap:3px}
.wday.today{border-color:var(--green)}
.wday .wd{font-weight:700}
.wday .wd::first-letter{text-transform:uppercase}
.wday .wm{font-size:12px}
.wday .wi{font-size:28px; line-height:1.2}
.wday .ws{display:flex; flex-wrap:wrap; gap:2px 8px; font-size:12px; color:var(--muted); font-variant-numeric:tabular-nums}
.wday .wwarn{font-size:12px; color:var(--wheat)}
.fm.ready{box-shadow:0 0 0 2px var(--wheat), 0 0 10px rgba(230,192,104,.8)}
.ok{color:var(--ok)}
.warn{color:var(--wheat); font-weight:600}
.tag.warnt{color:var(--wheat); border-color:var(--wheat)}
.subh{font-size:12px; text-transform:uppercase; letter-spacing:.6px; color:var(--muted); font-weight:700; margin:10px 0 4px}
.subh:first-child{margin-top:0}
.mission{padding:7px 0; border-bottom:1px solid rgba(52,60,44,.55); font-size:14px}
.mission:last-of-type{border-bottom:0}
.mission .muted{font-size:13px}

/* ---------- markt ---------- */
table.prices{font-size:13px}
table.prices th, table.prices td{padding:5px 6px}
table.prices td.pc{color:var(--text); border-bottom:2px solid var(--panel)}
table.prices td.pc.lt{color:#10130e; font-weight:600}
table.prices .cur{outline:2px solid var(--text); outline-offset:-2px}
table.prices th.cur{color:var(--text)}
.demand{display:grid; grid-template-columns:64px 1fr; gap:12px; align-items:center; padding:8px 0; border-bottom:1px solid rgba(52,60,44,.55)}
.demand:last-child{border-bottom:0}
.demand .dm{font-size:20px; font-weight:800; text-align:center; border:1px solid var(--line); border-radius:8px; padding:4px 0; font-variant-numeric:tabular-nums}
.demand.live .dm{border-color:var(--green); color:var(--green2)}
.sale{display:grid; grid-template-columns:1fr auto; gap:12px; padding:8px 0; border-bottom:1px solid rgba(52,60,44,.55); font-size:14px}
.sale:last-child{border-bottom:0}
.sale .muted{font-size:12px}
.sale .ha{font-weight:700; font-variant-numeric:tabular-nums; white-space:nowrap}
/* voorraad */
.loc{display:inline-block; font-size:12px; padding:2px 8px; margin:2px 4px 2px 0; border-radius:10px; background:rgba(255,255,255,.04); border:1px solid var(--line)}
.loc.go{cursor:pointer}
.loc.go:hover, .loc.go:focus-visible{border-color:var(--green)}

/* AutoDrive */
.adline{display:inline-block; width:18px; height:0; border-top:2px solid rgba(234,237,223,.75)}
.adm{position:relative}
.adm i{position:absolute; left:-9px; top:-22px; font-style:normal; font-size:18px; filter:drop-shadow(0 1px 2px rgba(0,0,0,.8))}
.adm b{position:absolute; left:10px; top:-20px; white-space:nowrap; background:#141810; color:var(--text); border:1px solid var(--line); border-radius:8px; padding:0 6px; font-size:11px; font-weight:600}
.planner{display:grid; grid-template-columns:auto 1fr; gap:6px 10px; align-items:center; margin:12px 0 8px; font-size:13px}
.planner select{min-width:0; width:100%; padding:6px 8px; border-radius:8px; border:1px solid var(--line); background:var(--panel2); color:var(--text); font-size:13px}
.planner .pbtns{grid-column:2; display:flex; gap:8px; flex-wrap:wrap}
.planner .vias{grid-column:1 / -1; display:flex; flex-direction:column; gap:6px}
.planner .vias:empty{display:none}
.planner .via{display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center}
.planner .via label{min-width:28px}
.planner .rm{background:none; border:1px solid var(--line); color:var(--muted); border-radius:8px; width:30px; height:30px; cursor:pointer; font-size:16px; line-height:1}
.planner .rm:hover{color:var(--text); border-color:var(--red)}

/* laatst opgeslagen */
.kpi.late{border-color:var(--wheat); box-shadow:0 0 0 1px var(--wheat) inset}
.kpi.late .val, .kpi.late .hint{color:var(--wheat)}

/* taalknop */
.langsw{margin-left:auto; display:inline-flex; border:1px solid var(--line); border-radius:20px; overflow:hidden; background:var(--panel)}
.langsw button{background:none; border:0; color:var(--muted); font-size:12px; font-weight:700; padding:6px 10px; cursor:pointer}
.langsw button.active{background:var(--green); color:#10130e}
.langsw button:not(.active):hover{color:var(--text)}

/* producticonen */
img.fi{width:18px; height:18px; vertical-align:-4px; margin-right:6px; object-fit:contain}
.fill img.fi{width:15px; height:15px; vertical-align:-3px; margin-right:4px}
.demand b img.fi{width:20px; height:20px; vertical-align:-5px}
td.prod{white-space:nowrap}
span.fi{display:inline-block; width:18px; height:18px; margin-right:6px; vertical-align:-4px}

/* gewas op de kaart */
.fm.crop{width:auto; min-width:26px; display:inline-flex; align-items:center; gap:2px; padding:0 5px 0 3px}
.fm.crop img.fi{width:15px; height:15px; margin:0; vertical-align:0}
.layers label.sub{padding-left:26px; font-size:13px; color:var(--muted)}
.layers label.sub img.fi{margin-right:0}
#feed li > span:first-child img.fi, #sFeed li > span:first-child img.fi{width:18px; height:18px; margin:0; vertical-align:-3px}

/* savegame-keuze op statistieken */
#saveSel{padding:7px 10px; border-radius:9px; border:1px solid var(--line); background:var(--panel); color:var(--text); font-size:13px; font-weight:600}

/* Bank And Credit */
.bankfarm{display:flex; flex-direction:column; gap:8px; padding:10px 0; border-bottom:1px solid rgba(52,60,44,.55)}
.bankfarm:first-child{padding-top:0}
.bankfarm .bh{font-weight:700}
.bankfarm .bh i{display:inline-block; width:12px; height:12px; border-radius:3px; border:1.5px solid rgba(255,255,255,.8); margin-right:8px; vertical-align:-1px}
.loan{display:flex; flex-direction:column; gap:4px; font-size:14px}
.loan .row{display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap}
.loan .row.muted{font-size:12px}
.loan .v{font-variant-numeric:tabular-nums; font-weight:600}
.loan .track{height:8px; background:rgba(255,255,255,.06); border-radius:4px; overflow:hidden}
.loan .track span{display:block; height:100%; background:var(--green); min-width:2px}

/* Lopende contracten op de kaart (ring zoals in de game) */
.cring{width:64px; height:64px; border-radius:50%; border:4px solid var(--c); box-sizing:border-box;
  background:radial-gradient(circle, rgba(0,0,0,.05) 40%, color-mix(in srgb, var(--c) 35%, transparent) 100%);
  box-shadow:0 0 0 1px rgba(0,0,0,.5), 0 0 14px color-mix(in srgb, var(--c) 60%, transparent); display:flex; align-items:flex-end; justify-content:center}
.cring span{font-size:10px; font-weight:800; color:#fff; background:var(--c); border-radius:6px; padding:0 4px; margin-bottom:-8px; text-shadow:0 1px 1px rgba(0,0,0,.5)}
.cdrop{width:30px; height:30px; border-radius:50% 50% 50% 0; transform:rotate(-45deg); background:var(--c); border:2px solid #fff;
  box-shadow:0 2px 6px rgba(0,0,0,.5); display:grid; place-items:center; color:#fff; font-weight:800; font-size:14px}
.cdrop span{transform:rotate(45deg); line-height:1}
.cring-key{display:inline-block; width:14px; height:14px; border-radius:50%; border:2.5px solid var(--red); margin-right:2px; vertical-align:-2px}

/* Filter voor lopende contracten (onder de kaartlaag) */
.cfilter{display:flex; flex-direction:column; gap:6px; margin:2px 0 6px 26px}
.cfilter[hidden]{display:none}
.cfilter select{width:100%; background:var(--bg2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:6px 8px; font:inherit; font-size:13px}
.visually-hidden{position:absolute!important; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap}

/* Gewasfilter op de kaart */
.fm.dim{opacity:.25; filter:grayscale(.6)}
.fm.hit{box-shadow:0 0 0 2px var(--green2), 0 0 12px rgba(181,222,110,.85); z-index:2; position:relative}

/* Prijsfilter op de kaart */
.pricef .prow{display:flex; align-items:center; gap:6px}
.pricef .prow input{flex:1; min-width:0; width:100%; background:var(--bg2); color:var(--text); border:1px solid var(--line); border-radius:8px; padding:6px 8px; font:inherit; font-size:13px}
.layers .pricef label.psale{padding:2px 0; font-size:13px; color:var(--muted); gap:8px}
.pricef .pinfo{font-size:12px; min-height:0}
.fm.small.hit{box-shadow:0 0 0 2px var(--green2), 0 0 10px rgba(181,222,110,.85)}

/* Filtervelden op de kaart: keuzelijsten en prijsvakken even hoog */
.cfilter select, .pricef .prow input{box-sizing:border-box; height:34px; padding:0 10px; font-size:13px; line-height:normal}
.pricef .prow input{-moz-appearance:textfield; appearance:textfield}
.pricef .prow input::-webkit-outer-spin-button, .pricef .prow input::-webkit-inner-spin-button{-webkit-appearance:none; margin:0}
