/* ======================================================
   DESIGN TOKENS
====================================================== */

:root {
  --nipio-bg: #f4f7fb;
  --nipio-card: #ffffff;

  --nipio-border: rgba(15,23,42,0.08);
  --nipio-border-strong: rgba(15,23,42,0.18);

  --nipio-text: #0f172a;
  --nipio-text-soft: #64748b;

  --nipio-accent: #1e3a8a;
  --nipio-accent-hover: #1d4ed8;
  --nipio-accent-soft: #e0e7ff;

  --nipio-radius-lg: 20px;
  --nipio-radius-md: 14px;
  --nipio-radius-sm: 10px;

  --nipio-shadow: 0 8px 24px rgba(15,23,42,.05);
  --nipio-shadow-hover: 0 18px 40px rgba(15,23,42,.10);
}

/* ======================================================
   BASE
====================================================== */

.nipio-frameworks {
  max-width: 1400px;
  margin-inline: auto;
  padding: 48px 20px 100px;
  background: var(--nipio-bg);
  color: var(--nipio-text);
  font-family: system-ui,-apple-system,sans-serif;
}

.nipio-frameworks-header h1 {
  font-size: clamp(26px,3vw,34px);
  font-weight: 800;
  margin-bottom: 10px;
}

.nipio-frameworks-description {
  color: var(--nipio-text-soft);
  max-width: 760px;
  line-height: 1.6;
}

/* ======================================================
   FILTER BAR
====================================================== */

.nipio-filter-row {
  display:flex;
  flex-wrap:wrap;
  gap:0.75rem;
  align-items:center;
  margin: 24px 0 16px;
}

.nipio-filter-row select,
.nipio-filter-search {
  padding:8px 12px;
  border-radius:10px;
  border:1px solid var(--nipio-border);
  background:#fff;
  font-size:14px;
}

.nipio-filter-search {
  min-width:220px;
}

/* ========================================
   FILTER BUTTONS – CLEAN MINIMAL
======================================== */

.nipio-filter-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 10px;
}

/* ========================================
   MAIN FILTER PILLS – FIX HOVER VISIBILITY
======================================== */

.nipio-filter-fav,
.nipio-filter-advanced,
.nipio-filter-clear {
  background: #f8fafc;
  color: var(--nipio-text);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
  transition: all .2s ease;
}

/* HOVER – όχι λευκό, όχι μπλε */
.nipio-filter-fav:hover,
.nipio-filter-advanced:hover {
  background: #e2e8f0;      /* λίγο πιο σκούρο */
  border-color: #cbd5e1;    /* πιο ορατό */
  color: var(--nipio-text);
}

/* Active favorite */
.nipio-filter-fav.is-on {
  border-color: #fca5a5;
  background: #fff1f2;
  color: #be123c;
}

/* Remove blue focus */
.nipio-filter-fav:focus,
.nipio-filter-advanced:focus {
  outline: none;
  box-shadow: none;
}


/* ========================================
   TAG PANEL – CONTROLLED & ELEGANT
======================================== */

.nipio-filter-tags {
  display: none;
  margin-top: 14px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--nipio-border);
  border-radius: 16px;
  box-shadow: var(--nipio-shadow);
  max-height: 240px;
  overflow-y: auto;
  gap: 10px;
}

.nipio-filter-tags.is-open {
  display: flex;
  flex-wrap: wrap;
}

/* Custom scrollbar */

.nipio-filter-tags::-webkit-scrollbar {
  width: 6px;
}

.nipio-filter-tags::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}


/* ========================================
   TAG PILLS
======================================== */

.nipio-filter-tags button {
  background: #ffffff;
  color: var(--nipio-text);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s ease;
}

.nipio-filter-tags button:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

/* Active tag – subtle emphasis */

.nipio-filter-tags button.is-active {
  background: #f1f5f9;
  border-color: #94a3b8;
  font-weight: 600;
}


/* ========================================
   REMOVE BLUE FOCUS RING
======================================== */

.nipio-filter-fav:focus,
.nipio-filter-advanced:focus,
.nipio-filter-tags button:focus {
  outline: none;
  box-shadow: none;
}

/* ======================================================
   MAP
====================================================== */

.nipio-frameworks-map {
  height: 380px;
  border-radius: var(--nipio-radius-lg);
  overflow: hidden;
  border: 1px solid var(--nipio-border);
  background: linear-gradient(180deg,#ffffff 0%,#f8fafc 100%);
  margin-bottom: 32px;
  box-shadow: var(--nipio-shadow);
}

/* ======================================================
   GRID
====================================================== */

.nipio-frameworks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px,1fr));
  gap: 22px;
  margin-top: 32px;
}

/* ======================================================
   CARD
====================================================== */

.nipio-fw-card {
  background: var(--nipio-card);
  border-radius: var(--nipio-radius-md);
  padding: 16px;
  border: 1px solid var(--nipio-border);
  box-shadow: var(--nipio-shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease, border .2s ease;
}

.nipio-fw-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--nipio-shadow-hover);
  border-color: rgba(30,58,138,0.25);
}

.nipio-fw-card-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.nipio-fw-head-left {
  display:flex;
  align-items:center;
  gap:6px;
}

.nipio-fw-flag {
  width:18px;
  height:12px;
  border-radius:3px;
}

.nipio-fw-title {
  font-size:15px;
  font-weight:700;
  letter-spacing:0.2px;
  margin:0;
}

.nipio-fw-region {
  font-size:12px;
  color: var(--nipio-text-soft);
}

/* ======================================================
   TYPE BADGE
====================================================== */

.nipio-fw-type {
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  font-weight:600;
  background: var(--nipio-accent-soft);
  color: var(--nipio-accent);
  border: 1px solid rgba(30,58,138,0.15);
  width:fit-content;
  cursor:pointer;
  transition:opacity .2s ease;

  white-space: nowrap; /* 👈 ΒΑΛΕ ΑΥΤΟ */
}

.nipio-fw-type:hover {
  opacity:0.85;
}

/* ======================================================
   CONTENT
====================================================== */

.nipio-fw-content {
  font-size:13px;
  line-height:1.55;
}

.nipio-fw-content p {
  margin:0 0 6px;
}

/* ======================================================
   FOOTER
====================================================== */

.nipio-fw-footer {
  margin-top:auto;
  display:flex;
  justify-content:flex-end;
}

.nipio-fw-morebtn {
  background:transparent;
  border:none;
  font-size:13px;
  font-weight:600;
  color: var(--nipio-accent);
  cursor:pointer;
  transition:color .2s ease;
}

.nipio-fw-morebtn:hover {
  color: var(--nipio-accent-hover);
}

/* ========================================
   HEART – ONLY STROKE COLOR
======================================== */

.nipio-fw-favbtn {
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;

  padding: 0;
  cursor: pointer;
  color: #94a3b8; /* default grey */

  transition: color .2s ease;
}

/* Hover → μόνο μπλε γραμμή */
.nipio-fw-favbtn:hover {
  background: transparent !important;
  color: #2563eb; /* μπλε stroke */
}

/* Active (mouse down) */
.nipio-fw-favbtn:active {
  background: transparent !important;
  color: #2563eb;
}

/* Remove blue focus */
.nipio-fw-favbtn:focus,
.nipio-fw-favbtn:focus-visible {
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Favorite state */
.nipio-fw-favbtn.is-on {
  color: #e11d48; /* κόκκινη */
}
/* ======================================================
   CLUSTERS
====================================================== */

.nipio-cluster-table {
  display:grid;
  gap:10px;
  margin:32px 0;
}

.nipio-cluster-row-wrapper {
  display:flex;
  gap:8px;
}

.nipio-cluster-row {
  flex:1;
  background:#f1f5f9;
  color:#0f172a;
  border:1px solid var(--nipio-border);
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  cursor:pointer;
  transition:all .2s ease;
}

.nipio-cluster-row:hover {
  background:#e2e8f0;
  border-color:#cbd5e1;
}

.nipio-cluster-insight {
  background: var(--nipio-accent);
  border:none;
  color:white;
  border-radius:12px;
  padding:10px 14px;
  font-size:13px;
  cursor:pointer;
  transition:background .2s ease;
}

.nipio-cluster-insight:hover {
  background: var(--nipio-accent-hover);
}

/* ======================================================
   METHOD BLOCK
====================================================== */

.nipio-frameworks-intro {
  margin: 2.5rem 0 2rem;
}

.nipio-frameworks-intro-card {
  background:#ffffff;
  padding:2.2rem;
  border-radius:var(--nipio-radius-lg);
  border:1px solid var(--nipio-border);
  box-shadow: var(--nipio-shadow);
}

.nipio-frameworks-method-text {
  font-size:1.05rem;
  line-height:1.7;
  margin-bottom:1.2rem;
}

.nipio-frameworks-method-btn {
  background: var(--nipio-accent);
  color:#fff;
  padding:10px 20px;
  border-radius:999px;
  font-size:0.9rem;
  cursor:pointer;
  transition: background .2s ease, transform .15s ease;
}

.nipio-frameworks-method-btn:hover {
  background: var(--nipio-accent-hover);
  transform:translateY(-1px);
}

/* ======================================================
   MODAL
====================================================== */

.nipio-modal-backdrop {
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  z-index:9998;
}

.nipio-modal {
  position:fixed;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
width:min(900px,94%);
  max-height:85vh;
  overflow-y:auto;
  padding:24px;
  border-radius:var(--nipio-radius-lg);
  background:var(--nipio-card);
  box-shadow:0 30px 100px rgba(0,0,0,.35);
  z-index:9999;
}

body.nipio-modal-open {
  overflow:hidden;
}

/* ========================================
   TYPE BADGES – FORCE COLOR RESTORE
======================================== */

.nipio-fw-type {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
  border: none !important;
}

/* T1 */
.nipio-fw-type.type-T1 {
  background: #dcfce7 !important;
  color: #166534 !important;
}

/* T2 */
.nipio-fw-type.type-T2 {
  background: #dbeafe !important;
  color: #1e40af !important;
}

/* T3 */
.nipio-fw-type.type-T3 {
  background: #fef3c7 !important;
  color: #92400e !important;
}

/* T4 */
.nipio-fw-type.type-T4 {
  background: #ede9fe !important;
  color: #5b21b6 !important;
}

/* T5 */
.nipio-fw-type.type-T5 {
  background: #e2e8f0 !important;
  color: #1e293b !important;
}

/* T6 */
.nipio-fw-type.type-T6 {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

/* T7 */
.nipio-fw-type.type-T7 {
  background: #111827 !important;
  color: #ffffff !important;
}
/* ===== FIX: Premium Modal X (δεξιά πάνω, διακριτικό) ===== */

.nipio-modal {
  position: fixed;
}

.nipio-modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 15px;
  color: #64748b;
  cursor: pointer;
  line-height: 1;
  transition: opacity .2s ease;
}

.nipio-modal-close:hover {
  opacity: 0.7;
}
/* ===== FIX: Remove outline from methodology link ===== */

.nipio-frameworks-method-link:focus,
.nipio-frameworks-method-link:active {
  outline: none;
  box-shadow: none;
}

.nipio-frameworks-method-btn:focus {
  outline: none;
  box-shadow: none;
}
/* ======================================================
   QUIZ – MATCH MODAL (FINAL BALANCED VERSION)
====================================================== */


/* ------------------------------------------------------
   SUBMIT BUTTON (inside modal)
------------------------------------------------------ */

.nipio-quiz-submit {
  margin-top: 16px;

  background: var(--nipio-accent-soft);
  color: var(--nipio-accent);

  border: 1px solid rgba(30,58,138,0.15);
  border-radius: 12px;

  padding: 10px 18px;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;
  transition: all .2s ease;
}

.nipio-quiz-submit:hover {
  background: var(--nipio-accent);
  color: #fff;
  transform: translateY(-1px);
}

.nipio-quiz-submit:focus {
  outline: none;
  box-shadow: none;
}


/* ------------------------------------------------------
   RESULTS LIST
------------------------------------------------------ */

.nipio-match-list {
  margin-top: 18px;
}

.nipio-match-item {
  display: flex;
  justify-content: space-between;
  align-items: center;

  width: 100%;
  padding: 12px 16px;
  margin: 6px 0;

  background: #ffffff;
  border: 1px solid var(--nipio-border);
  border-radius: 14px;

  font-size: 14px;
  color: var(--nipio-text);

  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}

.nipio-match-item strong {
  font-weight: 600;
  color: var(--nipio-text);
}

.nipio-match-item span {
  font-weight: 700;
  color: var(--nipio-accent);
}

.nipio-match-item:hover {
  background: #f8fafc;
  border-color: var(--nipio-border-strong);
}


/* ------------------------------------------------------
   INFO LINK (clean & minimal)
------------------------------------------------------ */

.nipio-match-help {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px 0 8px;
}

.nipio-match-help button {
  all: unset;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--nipio-text-soft);
  transition: color .2s ease;
}

.nipio-match-help button:hover {
  color: var(--nipio-accent);
}

.nipio-match-help span {
  font-size: 14px;
  color: var(--nipio-text-soft);
}


/* ------------------------------------------------------
   INFO BOX
------------------------------------------------------ */

.nipio-info-box {
  background: #f8fafc;
  border: 1px solid var(--nipio-border);
  border-radius: 12px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 14px;
}


/* ------------------------------------------------------
   MODAL CLOSE BUTTON
------------------------------------------------------ */

.nipio-modal > div:first-child > button {
  position: absolute;
  top: 18px;
  right: 22px;

  background: transparent;
  border: none;

  font-size: 20px;
  color: var(--nipio-text-soft);
  cursor: pointer;

  transition: color .2s ease;
}

.nipio-modal > div:first-child > button:hover {
  color: var(--nipio-text);
}

.nipio-modal > div:first-child > button:focus {
  outline: none;
  box-shadow: none;
}
/* ======================================================
   COMPARE BUTTON – STABLE VERSION (NO BLUE EVER)
====================================================== */

.nipio-fw-actions{
  display:flex;
  align-items:center;
  gap:10px;
}

.nipio-fw-comparebtn{
  background: transparent;
  border: none;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  color: #94a3b8;

  font-size: 18px;
  line-height: 1;

  appearance: none;
  -webkit-appearance: none;

  outline: none;
  box-shadow: none;

  transition: color .15s ease;
}

/* No hover color */
.nipio-fw-comparebtn:hover{
  color: #94a3b8;
}

/* Selected */
.nipio-fw-comparebtn.is-on{
  color: #111827;
}

/* Kill ALL focus/active paint */
.nipio-fw-comparebtn:focus,
.nipio-fw-comparebtn:focus-visible,
.nipio-fw-comparebtn:active{
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
}
/* ======================================================
   PREMIUM FLOATING COMPARE BAR
====================================================== */

#nipio-frameworks-compare{
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(140%);
  width: min(1100px, 94%);
  z-index: 1000;

  opacity: 0;
  pointer-events: none;

  transition: transform .35s cubic-bezier(.4,0,.2,1), opacity .25s ease;
}

/* Visible state */
#nipio-frameworks-compare.is-visible{
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* bar shell */
.nipio-compare-bar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;

  padding:16px 18px;
  border-radius:20px;

  background:#ffffff;
  border:1px solid rgba(15,23,42,0.10);
  box-shadow:0 20px 60px rgba(0,0,0,.15);

  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* left */
.nipio-compare-left{
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width: 0;
}

.nipio-compare-count{
  color: #64748b;
  margin-left:6px;
}

/* chips */
.nipio-compare-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  min-width: 0;
}

.nipio-compare-chip{
  display:inline-flex;
  align-items:center;
  gap:8px;

  padding:6px 12px;
  border-radius:999px;

  border:1px solid #e2e8f0;
  background:#f8fafc;

  font-size:13px;
  font-weight:500;
  color:#0f172a;
}

.nipio-compare-chip img{
  width:18px !important;
  height:12px !important;
  object-fit: cover;
  border-radius:3px;
}

/* right actions */
.nipio-compare-actions{
  display:flex;
  align-items:center;
  gap:12px;
  flex-shrink: 0;
}

/* open button */
.nipio-compare-open{
  background: #1e3a8a !important;
  color:#fff !important;

  padding:10px 18px;
  border-radius:999px;

  border:none !important;
  cursor:pointer;

  font-weight:600;
  box-shadow:none !important;
  outline:none !important;

  transition: background .2s ease, transform .15s ease;
}

.nipio-compare-open:hover{
  background:#1d4ed8 !important;
  transform:translateY(-1px);
}

/* clear button (fix “not visible / white text / disabled look”) */
.nipio-compare-clear{
  background:#f1f5f9 !important;
  border:1px solid #e2e8f0 !important;
  color:#0f172a !important;

  padding:10px 16px;
  border-radius:999px;

  cursor:pointer;
  font-weight:600;

  opacity: 1 !important;
  box-shadow:none !important;
  outline:none !important;

  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.nipio-compare-clear:hover{
  background:#e2e8f0 !important;
  border-color:#cbd5e1 !important;
  transform:translateY(-1px);
}

.nipio-compare-open:focus,
.nipio-compare-open:focus-visible,
.nipio-compare-clear:focus,
.nipio-compare-clear:focus-visible{
  outline:none !important;
  box-shadow:none !important;
}

/* Prevent content overlap on pages where bar exists */
.nipio-frameworks{
  padding-bottom:140px;
}


/* ======================================================
   MODAL – compare table + flags sanity
====================================================== */

.nipio-compare-grid{
  display:grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* keep chart area clean */
.nipio-compare-chart{
  min-height: 320px;
}

/* table wrapper */
.nipio-compare-tablewrap{
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* table sizing so it doesn’t “explode” */
.nipio-compare-table{
  width:100%;
  min-width: 780px; /* prevents giant stacked cells on narrow view */
  border-collapse: collapse;
  font-size: 13px;
}

.nipio-compare-table th,
.nipio-compare-table td{
  border-bottom: 1px solid rgba(15,23,42,0.08);
  padding: 10px 10px;
  text-align: left;
  vertical-align: middle;
}

/* name cell */
.nipio-compare-name{
  display:flex;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}

/* FIX huge flags inside modal/table */
.nipio-compare-name img{
  width:22px !important;
  height:14px !important;
  object-fit: cover;
  border-radius:3px;
}

/* remove button inside modal */
.nipio-compare-remove{
  margin-left:auto;
  background:#ffffff !important;
  border:1px solid #e2e8f0 !important;
  color:#0f172a !important;
  border-radius:999px;
  padding:6px 10px;
  cursor:pointer;
  font-size:12px;
  font-weight:600;
  box-shadow:none !important;
}

.nipio-compare-remove:hover{
  background:#f1f5f9 !important;
}

/* small note */
.nipio-compare-note{
  margin-top: 10px;
  color:#64748b;
  font-size:12px;
}


/* ======================================================
   RESPONSIVE – FINAL STABLE MOBILE VERSION
====================================================== */


/* ===============================
   TABLET
=============================== */
@media (max-width:1024px){

  .nipio-frameworks{
    padding:32px 16px 120px;
  }

  .nipio-frameworks-map{
    height:340px;
  }

}



/* ===============================
   MOBILE
=============================== */
@media (max-width:768px){

  /* ---------- Layout ---------- */

  .nipio-frameworks{
    padding:24px 14px 110px;
  }

  .nipio-frameworks-header h1{
    font-size:24px;
    line-height:1.3;
  }

  .nipio-frameworks-description{
    font-size:15px;
  }

  .nipio-frameworks-grid{
    grid-template-columns:1fr;
    gap:18px;
  }


  /* ---------- Intro Card ---------- */

  .nipio-frameworks-intro-card{
    padding:20px;
    border-radius:16px;
  }

  .nipio-frameworks-method-text{
    font-size:15px;
    line-height:1.6;
  }

  /* Secondary CTA */
  .nipio-frameworks-method-btn{
    display:block;
    width:100%;
    text-align:center;

    padding:12px 16px;
    font-size:14px;
    line-height:1.4;

    border-radius:14px;

    background:#eef2ff;
    color:#1e3a8a;

    white-space:normal;
  }


  /* ---------- Map ---------- */

  .nipio-frameworks-map{
    height:340px;
    border-radius:14px;
  }

  .leaflet-control-zoom{
    display:none !important;
  }

  .leaflet-control-attribution{
    font-size:10px;
    padding:2px 6px;
  }


  /* ---------- Filters Layout ---------- */

  .nipio-filter-row{
    display:flex;
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    margin:20px 0 14px;
  }

  .nipio-filter-row select{
    width:100%;
    padding:12px 14px;
    border-radius:14px;
    font-size:15px;
    border:1px solid #e5e7eb;
    background:#ffffff;
  }

  .nipio-filter-search{
    width:100%;
    padding:12px 14px;
    border-radius:14px;
    font-size:15px;
    border:1px solid #e5e7eb;
  }

.nipio-filter-row select:focus{
  outline:none;
  border-color:#1e3a8a;
  box-shadow:0 0 0 3px rgba(30,58,138,0.15);
}

  /* ---------- Filter Pills (UNIFIED & FIXED) ---------- */

  .nipio-filter-fav,
  .nipio-filter-advanced,
  .nipio-filter-clear{

    display:flex;
    align-items:center;
    justify-content:center;

    width:100%;
    min-height:44px;

    padding:12px 18px;

    border-radius:999px;

    background:#f1f5f9;
    border:1px solid #e2e8f0;

    font-size:14px;
    font-weight:500;

    color:#0f172a;

    box-shadow:none;
    outline:none;
  }

  .nipio-filter-fav.is-on{
    background:#e0e7ff;
    border-color:#c7d2fe;
    color:#1e3a8a;
  }

  .nipio-filter-fav:hover,
  .nipio-filter-advanced:hover,
  .nipio-filter-clear:hover{
    background:#e2e8f0;
  }


  /* ---------- Compare Bar ---------- */

  #nipio-frameworks-compare{
    width:94%;
    bottom:16px;
  }

  .nipio-compare-bar{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    border-radius:18px;
  }

  .nipio-compare-actions{
    justify-content:flex-end;
  }

  .nipio-compare-table{
    min-width:720px;
  }
/* Fix cut dropdown text */
.nipio-filter-row select{
  height:auto !important;
  min-height:48px;
  line-height:1.4;
  appearance:none;
  -webkit-appearance:none;
  -moz-appearance:none;

  background-clip:padding-box;
}

/* ======================================================
   FIX TEXT WRAPPING – MODAL & COMPARE
====================================================== */

.nipio-modal,
.nipio-modal *,
.nipio-compare-table,
.nipio-compare-table th,
.nipio-compare-table td,
.nipio-compare-grid,
.nipio-fw-card {
  word-break: break-word;
  overflow-wrap: anywhere;
}

.nipio-compare-table th,
.nipio-compare-table td{
  white-space: normal;
}

/* ======================================================
   MAP POPUP – CLEAN MOBILE FRIENDLY
====================================================== */

.leaflet-popup-content-wrapper{
  border-radius:16px;
  padding:0;
  box-shadow:0 12px 30px rgba(0,0,0,.15);
}

.leaflet-popup-content{
  margin:0 !important;
  width:260px !important;
}

.nipio-map-popup{
  padding:16px;
  font-size:14px;
  line-height:1.5;
}

.nipio-map-popup-head{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:6px;
}

.nipio-map-popup-head img{
  width:26px;
  height:18px;
  object-fit:cover;
  border-radius:4px;
}

.nipio-map-popup-title{
  font-weight:700;
  font-size:15px;
}

.nipio-map-popup-type{
  font-size:12px;
  margin-bottom:10px;
  opacity:.8;
}

.nipio-map-popup-btn{
  display:inline-block;
  margin-top:8px;
  padding:6px 14px;
  font-size:13px;
  font-weight:600;

  background:#1e3a8a;
  color:#fff;

  border:none;
  border-radius:999px;

  cursor:pointer;
  transition:background .2s ease, transform .15s ease;
}

.nipio-map-popup-btn:hover{
  background:#1d4ed8;
  transform:translateY(-1px);
}
/* ======================================================
   CARD MINI METRICS (5 AXES BARS)
====================================================== */

.nipio-fw-metrics{
  margin-top:8px;
  display:flex;
  flex-direction:column;
  gap:6px;
}

.nipio-fw-metric{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:12px;
}

.nipio-fw-metric-label{
  flex:0 0 110px;
  color:var(--nipio-text-soft);
  font-size:11px;
}

.nipio-fw-metric-bar{
  flex:1;
  height:6px;
  background:#e5e7eb;
  border-radius:999px;
  overflow:hidden;
}

.nipio-fw-metric-fill{
  height:100%;
  background:#1e3a8a;
  border-radius:999px;
  transition:width .3s ease;
}
/* =========================================
   FIX: Details Modal Tags spacing
========================================= */

.nipio-details-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:8px;
}

.nipio-tag-pill{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  font-size:12px;
  white-space:nowrap;
}
}
/* =========================================
   RADAR MODAL – STABLE LAYOUT FIX
========================================= */

.nipio-modal{
  padding:20px 20px 16px;
}

.nipio-modal-body{
  padding:0;
}

/* ======================================================
   RADAR – REAL FIX (GLOBAL) ✅
====================================================== */

.nipio-compare-chart,
.nipio-cluster-chart{
  position: relative;
  width: 100%;
  height: 520px;      /* λίγο παραπάνω για να μην κόβει */
  min-height: 520px;
  padding: 0;         /* ❗ άστο στο chart layout padding, όχι εδώ */
  box-sizing: border-box;
}

.nipio-compare-chart canvas,
.nipio-cluster-chart canvas{
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
}
/* =========================================
   DETAILS MODAL – SPACING FIX
========================================= */

.nipio-details-block{
  margin-bottom: 24px;
}

.nipio-h3{
  margin-bottom: 10px;
}

/* ετικέτες */
.nipio-details-tags{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:10px;
}

.nipio-tag-pill{
  display:inline-block;
  padding:6px 12px;
  border-radius:999px;
  background:#f1f5f9;
  border:1px solid #e2e8f0;
  font-size:12px;
}
/* =========================================
   FIX: More button stays minimal
========================================= */

.nipio-fw-morebtn,
.nipio-fw-morebtn:hover,
.nipio-fw-morebtn:focus,
.nipio-fw-morebtn:active {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.nipio-fw-morebtn:hover {
  color: var(--nipio-accent-hover);
  text-decoration: underline;
}
/* =========================================
   DETAILS MODAL: section headings sizing
========================================= */

.nipio-h3{
  margin: 18px 0 10px;
  font-size: 16px;      /* από “τεράστιο” σε premium */
  line-height: 1.25;
  font-weight: 800;
  letter-spacing: .2px;
}

/* λίγο πιο compact στο κινητό */
@media (max-width:768px){
  .nipio-h3{
    font-size: 15px;
    margin: 16px 0 8px;
  }
}

/* blocks spacing (να μην φαίνεται “βουνό”) */
.nipio-details-block{
  margin-top: 12px;
}