.imp-frontend {
  /* overflow: hidden; */
}
.imp-frontend .imp-img-wrap{position:relative;display:inline-block;max-width:100%;}
.imp-frontend .imp-img{max-width:100%;height:auto;display:block;border-radius:20px;}
.imp-frontend .imp-pin{position:absolute;transform:translate(-50%,-100%);pointer-events:auto}
.imp-frontend .imp-pin-dot{width:12px;height:12px;border-radius:50%;background:#10b981;border:2px solid #fff;display:inline-block;box-shadow:0 0 0 2px rgba(0,0,0,.15)}
.imp-frontend .imp-pin-img{width:48px;height:48px;display:block;object-fit:cover;object-position: center;}
.imp-frontend .imp-pin .imp-tooltip{position:absolute;left:50%;transform:translateX(-50%);top:-8px;white-space:nowrap;background:rgba(0,0,0,.75);color:#fff;padding:4px 6px;border-radius:4px;font-size:12px;opacity:0;pointer-events:none;transition:opacity .15s, transform .15s;transform-origin:center bottom}
.imp-frontend .imp-pin:hover .imp-tooltip{opacity:1;transform:translate(-50%,-2px)}
.imp-legend{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0 0;padding:0;list-style:none}

@media (max-width: 991px) {
  .imp-frontend .imp-pin-img{width:20px;height:20px;display:block;object-fit:cover;object-position: center;}
}


/* Išdėstymas */
.imp-legend-scroller {
    display: flex;
    align-items: center;
    position: relative;
    height: 42px;
    margin-top: 13px;
    user-select: none;
  }
  
  /* „Langas“, kuriame slenka sąrašas */
  .imp-legend-viewport {
    flex: 1 1 auto;
    overflow-x: auto;             /* leidžiam slinkti */
    scroll-behavior: smooth;      /* švelnus slinkimas */
    -ms-overflow-style: none;     /* IE/Edge */
    scrollbar-width: none;        /* Firefox – paslepti juostą */
  }
  .imp-legend-viewport::-webkit-scrollbar { display: none; } /* WebKit – paslepti juostą */
  
  /* Eilutėje (viena eilė) */
  .imp-legend {
    display: flex;
    flex-wrap: nowrap;            /* svarbu: nowrap */
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  
  /* Kortelių stilius (gali keisti pagal dizainą) */
  .imp-legend-item {
    display: flex;
    align-items: center;
    gap: 13px;
    white-space: nowrap;
  }
  .imp-legend-item .imp-legend-flag {
    width: 20px;
    height: 20px;
  }
  .imp-legend-item .imp-legend-flag img.imp-flag {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
  }
  
  /* Mygtukai */
  .imp-scroll-btn {
    position: absolute;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,.12);
    cursor: pointer;
    display: grid;
    place-items: center;
    font-size: 20px;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
  }
  .imp-scroll-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,.16); }
  .imp-scroll-btn:active { transform: translateY(0); }
  .imp-scroll-btn.left {left: 0;}
  .imp-scroll-btn.right {right: 0;}
  /* .imp-scroll-btn.left::before  { content: "‹"; font-size: 22px; line-height: 1; }
  .imp-scroll-btn.right::before { content: "›"; font-size: 22px; line-height: 1; } */
  
  /* Kai paslėpta (pvz., pasiekus kraštą) */
  .imp-scroll-btn[hidden] { display: none; }