/* Karta ARKOD parcela. Samo zaslon. */
@media screen{
  .arkod-farm-results{border:1px solid #c4b5fd;border-radius:8px;padding:10px;background:#faf8ff;min-width:0}
  .arkod-farm-results[hidden]{display:none}
  .arkod-farm-heading{display:flex;flex-wrap:wrap;gap:6px;justify-content:space-between}
  .arkod-farm-results p{margin:8px 0}
  .arkod-farm-table{max-height:320px;overflow:auto;margin-top:10px}
  .arkod-farm-table table{table-layout:fixed}
  .arkod-farm-table th:first-child{width:28%}
  .arkod-farm-table th:last-child{width:27%}
  .arkod-farm-table td{overflow-wrap:anywhere;vertical-align:top}
  .arkod-farm-table small{display:block;color:#52675a}
  .arkod-farm-table .linklike{min-height:36px;overflow-wrap:anywhere}
  .arkod-dot.farm{background:#7c3aed}
  #arkodFarmStatus:empty{display:none}
}
@media screen{
  .arkod-layout{display:grid;grid-template-columns:minmax(300px,380px) minmax(0,1fr);gap:var(--space-4,1rem);align-items:start}
  .arkod-side{display:flex;flex-direction:column;gap:var(--space-4,1rem);max-height:calc(100vh - 170px);overflow:auto;margin:0}
  .arkod-side h3{margin:0}
  .arkod-field{display:flex;flex-direction:column;gap:6px;position:relative}
  .arkod-label{font-weight:700;font-size:var(--ui-small,.9375rem);color:var(--text,#203a2a)}
  .arkod-seg{display:flex;flex-wrap:wrap;gap:6px}
  .arkod-seg .button{flex:1 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:6px}
  .arkod-row{display:flex;gap:6px}
  .arkod-row input{flex:1;min-width:0}
  .arkod-results{position:absolute;top:100%;left:0;right:0;z-index:30;margin:4px 0 0;padding:4px;list-style:none;background:#fff;border:1px solid var(--line,#bdd0c1);border-radius:8px;box-shadow:0 10px 24px rgba(20,50,30,.16);max-height:300px;overflow:auto}
  .arkod-results li{display:flex;justify-content:space-between;gap:10px;padding:9px 10px;border-radius:6px;cursor:pointer}
  .arkod-results li:hover,.arkod-results li:focus{background:var(--mint,#e6f2e8)}
  .arkod-results li small{color:var(--muted,#52675a);white-space:nowrap}
  .arkod-results li.empty{cursor:default;color:var(--muted,#52675a)}
  .arkod-chosen{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-height:28px}
  .arkod-layers summary{cursor:pointer;font-weight:700;font-size:var(--ui-small,.9375rem)}
  .arkod-layers[open]{display:flex;flex-direction:column;gap:6px}
  .arkod-toggle{display:flex;align-items:center;gap:8px}
  .arkod-bases{display:flex;flex-wrap:wrap;gap:12px;padding-top:4px}
  .arkod-legend{display:flex;flex-wrap:wrap;gap:14px;font-size:var(--ui-small,.9375rem)}
  .arkod-legend span{display:inline-flex;align-items:center;gap:6px}
  .arkod-dot{display:inline-block;width:13px;height:13px;border-radius:3px;border:1.5px solid rgba(0,0,0,.35);flex-shrink:0;margin-right:4px;vertical-align:-1px}
  .arkod-dot.susa{background:#f5b800}.arkod-dot.osnovni{background:#2fa8ff}.arkod-dot.search{background:#ff2fa8}
  .arkod-warn{display:block;color:#8a4b00;margin-top:4px}
  .arkod-policy{border:1px solid var(--line-2,#dce7de);border-radius:8px;padding:8px 10px;margin:6px 0}
  .arkod-policy summary{cursor:pointer;line-height:1.45;overflow-wrap:anywhere}
  .arkod-policy summary small{display:block;color:var(--muted,#52675a);margin-left:20px}
  .arkod-policy[open] summary{margin-bottom:8px}
  .arkod-cat{display:flex;align-items:center;gap:8px;margin:6px 0;font-size:var(--ui-small,.9375rem)}
  .arkod-cat select{min-height:38px}
  #arkodPolicyList h4{margin:0 0 4px}
  .arkod-parcels{width:100%;border-collapse:collapse;font-size:var(--ui-small,.9375rem)}
  .arkod-parcels th,.arkod-parcels td{padding:4px 6px;border-bottom:1px solid var(--line-2,#dce7de);text-align:left}
  .arkod-parcels .right{text-align:right}
  .linklike{background:none;border:0;padding:0;color:var(--green,#236342);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
  .arkod-mapwrap{position:relative;min-width:0}
  #arkodMap{height:calc(100vh - 170px);min-height:520px;border-radius:12px;border:1px solid var(--line,#bdd0c1);background:#c9d8cc}
  .arkod-hint{position:absolute;top:12px;left:50%;transform:translateX(-50%);z-index:500;margin:0;max-width:calc(100% - 120px);padding:8px 14px;border-radius:999px;background:rgba(22,63,45,.92);color:#fff;font-size:var(--ui-small,.9375rem);text-align:center;pointer-events:none}
  .arkod-hint.ok{background:rgba(22,63,45,.78)}
  .arkod-card{position:absolute;top:84px;right:12px;z-index:600;width:min(380px,calc(100% - 24px));max-height:calc(100% - 100px);overflow:auto;margin:0;box-shadow:0 14px 32px rgba(0,0,0,.25)}
  .arkod-card h3{margin:2px 40px 4px 0}
  .arkod-card .kicker{font-size:.8125rem;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--muted,#52675a)}
  .arkod-card dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:10px 0}
  .arkod-card dt{color:var(--muted,#52675a);font-size:var(--ui-small,.9375rem)}
  .arkod-card dd{margin:0;overflow-wrap:anywhere}
  .arkod-close{position:absolute;top:10px;right:10px;min-height:36px!important;width:36px;padding:0!important;font-size:1.25rem!important}
  .arkod-insured{border:1px solid #e1c35c;background:#fff8df;border-radius:8px;padding:10px;margin:8px 0}
  .arkod-insured dl{margin:6px 0}
  .arkod-skeleton{height:14px;border-radius:6px;background:linear-gradient(90deg,#e8efe9,#f6f9f6,#e8efe9);background-size:200% 100%;animation:arkodShimmer 1.2s infinite;margin:10px 0}
  @keyframes arkodShimmer{to{background-position:-200% 0}}
  .arkod-opc-label{background:transparent;border:0;box-shadow:none;color:#fff;font-weight:700;font-size:12px;text-shadow:0 0 3px #000,0 0 6px #000;padding:0}
  .arkod-opc-label::before{display:none}
  #arkodMap.base-light .arkod-opc-label{color:#1d2b22;text-shadow:0 0 3px #fff,0 0 6px #fff}
  .arkod-tip{font-weight:700}
  @media (max-width:980px){
    .arkod-layout{grid-template-columns:1fr}
    .arkod-side{max-height:none;overflow:visible}
    #arkodMap{height:70vh;min-height:420px}
    .arkod-card{top:auto;bottom:12px;max-height:60%}
    .arkod-hint{max-width:calc(100% - 24px);top:8px;font-size:.8125rem}
  }
  @media (prefers-reduced-motion:reduce){.arkod-skeleton{animation:none}}
}
@media screen{
  #arkodMap .leaflet-interactive:focus{outline:none}
  @media (max-width:980px){#arkodPolicyList{max-height:45vh;overflow:auto}}
}
/* v3.24.0: vrsta rizika i kultura iznad karte */
@media screen{
  .arkod-topbar{display:flex;flex-direction:column;gap:12px;margin:0 0 var(--space-4,1rem);padding:14px 16px}
  .arkod-topgroup{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
  .arkod-topgroup>.arkod-label{min-width:88px}
  .arkod-tabs{display:flex;flex-wrap:wrap;gap:8px}
  .arkod-tab{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:8px 16px;border-radius:10px;border:2px solid var(--line,#bdd0c1);background:#fff;color:var(--text,#203a2a);font:inherit;font-weight:700;cursor:pointer}
  .arkod-tab:hover{border-color:var(--green,#236342)}
  .arkod-tab.active{background:var(--green,#236342);border-color:var(--green,#236342);color:#fff}
  .arkod-tab:focus-visible,.arkod-crop:focus-visible{outline:3px solid #f5b800;outline-offset:2px}
  .arkod-count{display:inline-block;min-width:22px;padding:1px 7px;border-radius:999px;background:rgba(0,0,0,.08);font-size:.8125rem;text-align:center}
  .arkod-tab.active .arkod-count{background:rgba(255,255,255,.22)}
  .arkod-soon{padding:1px 7px;border-radius:999px;background:#e3f2ff;color:#0b4f86;font-size:.75rem;font-weight:700}
  .arkod-tab.active .arkod-soon{background:#fff;color:#0b4f86}
  .arkod-crops{display:flex;flex-wrap:wrap;gap:6px;flex:1;min-width:0}
  .arkod-crop{display:inline-flex;align-items:baseline;gap:6px;min-height:38px;padding:6px 12px;border-radius:999px;border:1.5px solid var(--line,#bdd0c1);background:#fff;color:var(--text,#203a2a);font:inherit;font-weight:600;cursor:pointer}
  .arkod-crop small{color:var(--muted,#52675a);font-weight:500;font-size:.8125rem}
  .arkod-crop:hover{border-color:var(--green,#236342)}
  .arkod-crop.active{background:#fff3c4;border-color:#c99400;color:#3d2c00}
  .arkod-crop.active small{color:#5c4400}
  .arkod-info{display:block;padding:8px 10px;border-radius:8px;background:#e3f2ff;color:#0b3f6b}
  @media (max-width:980px){
    .arkod-topgroup{align-items:flex-start;flex-direction:column;gap:6px}
    .arkod-tab{flex:1 1 auto;justify-content:center}
    .arkod-crops{flex-wrap:nowrap;overflow-x:auto;width:100%;padding-bottom:4px}
    .arkod-crop{flex-shrink:0}
  }
}
/* v3.25.0: Copernicus ERA5-Land */
@media screen{
  .arkod-climatebar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
  .arkod-climatebar[hidden]{display:none}
  .arkod-climatebar input[type=date]{min-height:40px;width:auto;max-width:190px}
  .arkod-legend-climate{display:flex;flex-direction:column;gap:4px;font-size:var(--ui-small,.9375rem)}
  .arkod-legend-climate[hidden]{display:none}
  .climate-scale{height:12px;border-radius:6px;border:1px solid rgba(0,0,0,.2)}
  .climate-ticks{display:flex;justify-content:space-between;font-size:.75rem;color:var(--muted,#52675a)}
  .arkod-climate-panel summary{color:var(--green,#236342)}
  .climate-dl{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:6px 0;font-size:var(--ui-small,.9375rem)}
  .climate-dl dt{color:var(--muted,#52675a)}.climate-dl dd{margin:0;overflow-wrap:anywhere}
  .climate-key{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line-2,#dce7de);padding-top:10px;margin-top:6px}
  .climate-key .button.secondary{align-self:flex-start}
  .climate-steps{margin:4px 0 0;padding-left:20px;font-size:var(--ui-small,.9375rem);line-height:1.5}
  .climate-card{border:1px solid #9fd3e6;background:#f1f9fc;border-radius:8px;padding:10px;margin:8px 0}
  .climate-card dl{margin:6px 0}
  .climate-kpis{display:grid;grid-template-columns:1fr 1fr;gap:6px;margin:6px 0}
  .climate-kpis div{background:#fff;border:1px solid var(--line-2,#dce7de);border-radius:6px;padding:6px 8px;display:flex;flex-direction:column}
  .climate-kpis span{font-size:.75rem;color:var(--muted,#52675a)}
  .climate-kpis b{font-size:1.05rem}
  .climate-chart{width:100%;height:auto;background:#fff;border:1px solid var(--line-2,#dce7de);border-radius:6px;margin-top:4px}
  .climate-key-row{display:flex;flex-wrap:wrap;gap:10px;font-size:.75rem;color:var(--muted,#52675a);margin-top:4px}
  .climate-key-row i{display:inline-block;width:14px;height:3px;margin-right:4px;vertical-align:middle}
}

/* v3.26.0: Sentinel-2 NDVI */
.ndvi-meter{height:5px;border-radius:3px;background:#e4ebe6;margin-top:4px;overflow:hidden;max-width:160px}
.ndvi-meter i{display:block;height:100%;background:#1a9850}
.ndvi-up{color:#1a7f45;font-weight:600}
.ndvi-down{color:#b3261e;font-weight:600}
#ndviCard{margin-bottom:10px}
#ndviCard .button{margin-top:6px}
.climate-key input#ndviClientId{width:100%;margin-bottom:6px}

/* NDVI piksel po piksel (v3.28.0) */
.ndvi-pix-layer{image-rendering:pixelated;image-rendering:crisp-edges}
.ndvi-pix{margin:8px 0;border-radius:8px;background:repeating-conic-gradient(#eef2ef 0 25%,#fff 0 50%) 50%/14px 14px;border:1px solid #dfe7e1;padding:6px;display:flex;justify-content:center}
.ndvi-pix img{display:block;max-width:100%;height:220px;width:auto;object-fit:contain;image-rendering:pixelated;image-rendering:crisp-edges}
.ndvi-pix .arkod-skeleton{width:100%;height:140px}
#ndviZoomHint{display:block;margin-top:4px}
#ndviZoomHint:empty{display:none}

/* v3.30.0: dio za sušu samo uz filtar Suša */
.arkod-tab[hidden],.arkod-climate-panel[hidden]{display:none!important}
