:root{
  --nsli-accent:#4CAF50;
  --nsli-text:#eaeaea;
  --nsli-dim:#b9b9b9;
  --nsli-border:rgba(255,255,255,.14);
  --nsli-panel:rgba(20,20,20,.96);
}

/* --------- Map controls: vertical stack (top-right) --------- */
/* ensure our custom groups visually match MapLibre controls */
.maplibregl-ctrl-top-right .maplibregl-ctrl-group{display:flex;flex-direction:column;gap:6px}

/* Search control: button + input expands to the left */
.nsli-search{position:relative; overflow:visible}
.nsli-search__btn{width:30px; height:30px; line-height:30px; font-size:15px}
.nsli-search__input{
  position:absolute; right:34px; top:2px; height:26px;
  width:0; opacity:.0; pointer-events:none;
  border:1px solid #c7c7c7; border-radius:4px; padding:0 8px;
  background:#fff; color:#000; transition:width .18s ease, opacity .18s ease;
}
.nsli-search.is-open .nsli-search__input{ width:220px; opacity:1; pointer-events:auto; }
.nsli-search__results{
  position:absolute; right:0; top:36px; list-style:none; margin:0; padding:4px;
  background:#fff; border:1px solid #c7c7c7; border-radius:6px; min-width:240px; z-index:10;
  max-height:50vh; overflow:auto; box-shadow:0 6px 18px rgba(0,0,0,.15);
}
.nsli-search__results:empty{display:none}
.nsli-search__item{margin:0; padding:0}
.nsli-search__pick{
  display:block; width:100%; text-align:left; background:transparent; border:0; padding:8px 10px; cursor:pointer;
}
.nsli-search__pick:hover{background:#f3f3f3}

/* Layers control: single button with dropdown */
.nsli-layers{position:relative}
.nsli-layers__btn{width:30px; height:30px; line-height:30px; font-size:14px}
.nsli-layers__menu{
  position:absolute; right:0; top:36px; display:none;
  background:#fff; border:1px solid #c7c7c7; border-radius:6px; min-width:160px; z-index:10;
  box-shadow:0 6px 18px rgba(0,0,0,.15); padding:4px;
}
.nsli-layers.is-open .nsli-layers__menu{display:block}
.nsli-layers__item{
  display:block; width:100%; text-align:left; padding:8px 10px; border:0; background:transparent; cursor:pointer;
}
.nsli-layers__item.is-active{background:#e8f5e9}

/* --------- Bottom centered Add button (black style) --------- */
.nsli-addbar{
  position:fixed; left:50%; bottom:16px; transform:translateX(-50%); z-index:9;
  background:var(--nsli-panel); border:1px solid var(--nsli-border);
  border-radius:12px; padding:6px 10px; box-shadow:0 8px 24px rgba(0,0,0,.35);
}
.nsli-addbar__btn{
  min-width:180px; height:40px; border-radius:10px; font-weight:600; cursor:pointer;
  background:var(--nsli-accent); color:#fff; border:0; padding:0 14px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.25);
}
.nsli-addbar.is-active .nsli-addbar__btn{ filter:brightness(.95) }

/* --------- Markers & popup --------- */
.nsli-marker{
  width:16px; height:16px; border-radius:50%;
  border:2px solid #fff; box-shadow: 0 0 0 2px rgba(0,0,0,.25);
  background:#00BCD4;
}
.nsli-marker--you{ background:#00BCD4 }
.nsli-marker--search{
  background:#fff; border-color:#4CAF50; box-shadow:0 0 0 4px rgba(76,175,80,.35)
}
.nsli-marker--pending{ background:#ffc107; border-color:#fff }

.nsli-popup__title{ font-weight:700; margin-bottom:.2em; }
.nsli-popup__meta{ color:#555; margin-bottom:.4em; }
.nsli-popup__note{ margin:.2em 0 .6em 0; }
.nsli-popup__actions{ display:flex; gap:.6em; align-items:center }

/* --------- Cards/list (kept from your theme) --------- */
.nsli-btn{
  display:inline-flex; align-items:center; justify-content:center; gap:.45em;
  height:40px; padding:0 14px; border-radius:10px; font-weight:600; cursor:pointer; text-decoration:none;
  border:1px solid rgba(255,255,255,0.06);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 4px 12px rgba(0,0,0,.25);
}
.nsli-btn--primary{ background:var(--nsli-accent); color:#fff }
.nsli-btn--danger{ background:#d32f2f; color:#fff }
.nsli-actions-row{ display:flex; align-items:center; gap:.6em; margin-top:.7em }
.nlsvk-region-summary {
    margin-bottom: 0;  /* Fjerner ekstra mellomrom under */
    padding-bottom: 0; /* Fjerner eventuell polstring under teksten */
    line-height: 1.5;  /* Justerer linjehøyde for bedre lesbarhet */
    display: block;    /* Sikrer at elementet ikke forårsaker forskyvninger */
}

