.ep-europa-map-wrap {
  width: 100%;
  margin: 2rem 0;
  position: relative;
}

.ep-europa-map-title {
  margin: 0 0 1rem;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.2;
}

.ep-europa-map {
  --ep-map-color-low: #ffd978;
  --ep-map-color-high: #123c69;
  --ep-map-country-empty: #eef1f4;
  --ep-map-ink: #14213d;
  --ep-map-muted: #64748b;
  width: 100%;
  background: #ffffff;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 18px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  padding: clamp(0.75rem, 2vw, 1.5rem);
  box-sizing: border-box;
  overflow: hidden;
}

.ep-europa-map-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: hidden;
}

.ep-europa-map-country {
  stroke: #ffffff;
  stroke-width: 0.8;
  outline: none;
  transition: fill 160ms ease, stroke-width 160ms ease, filter 160ms ease;
}

.ep-europa-map-country.no-data {
  cursor: default;
}

.ep-europa-map-country.has-data {
  cursor: pointer;
}

.ep-europa-map-country:hover,
.ep-europa-map-country:focus,
.ep-europa-map-country.is-active {
  stroke-width: 1.8;
  filter: brightness(0.96);
}

.ep-europa-map-country.is-selected {
  stroke: var(--ep-map-ink);
  stroke-width: 2.2;
  filter: saturate(1.08);
}

.ep-europa-map-overlay-countries .ep-europa-map-country.is-crimea {
  stroke: #ffffff;
  stroke-width: 1.25;
  paint-order: stroke fill;
}

.ep-europa-map-malta-marker {
  stroke: #ffffff;
  stroke-width: 1.6;
  paint-order: stroke fill;
  vector-effect: non-scaling-stroke;
}

.ep-europa-map-malta-marker.has-data {
  cursor: pointer;
}

.ep-europa-map-inset-bg {
  fill: rgba(248, 250, 252, 0.92);
  stroke: rgba(20, 33, 61, 0.14);
  stroke-width: 1;
}

.ep-europa-map-inset-label {
  fill: var(--ep-map-muted);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.ep-europa-map-inset-countries .ep-europa-map-country {
  stroke-width: 0.75;
}

.ep-europa-map-inset-countries .ep-europa-map-country:hover,
.ep-europa-map-inset-countries .ep-europa-map-country:focus,
.ep-europa-map-inset-countries .ep-europa-map-country.is-active {
  stroke-width: 1.5;
}

.ep-europa-map-tooltip {
  position: fixed;
  z-index: 999999;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 120ms ease, transform 120ms ease;
  background: rgba(20, 33, 61, 0.95);
  color: #ffffff;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-size: 0.92rem;
  line-height: 1.35;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.25);
}

.ep-europa-map-tooltip.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.ep-europa-map-legend {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0.75rem 0 0;
  color: var(--ep-map-muted);
  font-size: 0.85rem;
}

.ep-europa-map-legend-scale {
  display: inline-block;
  width: min(180px, 36vw);
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ep-map-country-empty), var(--ep-map-color-low), var(--ep-map-color-high));
}

.ep-europa-map-hint {
  margin: 0.75rem 0 0;
  color: var(--ep-map-muted);
  font-size: 0.92rem;
}

.ep-europa-map-organizations {
  margin-top: 1.1rem;
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 16px;
  padding: clamp(0.85rem, 2vw, 1.1rem);
  background: #fffdf7;
}

.ep-europa-map-organizations-title {
  margin: 0;
  color: var(--ep-map-ink);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.25;
}

.ep-europa-map-organizations-hint,
.ep-europa-map-organizations-empty {
  margin: 0.35rem 0 0;
  color: var(--ep-map-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.ep-europa-map-organization-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.ep-europa-map-organization-chip {
  appearance: none;
  border: 1px solid rgba(20, 33, 61, 0.15);
  border-radius: 999px;
  background: #ffffff;
  color: var(--ep-map-ink);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ep-europa-map-organization-chip:hover,
.ep-europa-map-organization-chip:focus {
  border-color: rgba(18, 60, 105, 0.4);
  transform: translateY(-1px);
}

.ep-europa-map-organization-chip.is-selected {
  background: var(--ep-map-ink);
  border-color: var(--ep-map-ink);
  color: #ffffff;
}

.ep-europa-map-organization-count {
  min-width: 1.5em;
  min-height: 1.5em;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffd978;
  color: var(--ep-map-ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.ep-europa-map-organization-chip.is-selected .ep-europa-map-organization-count {
  background: #ffffff;
}

.ep-europa-map-results {
  margin-top: 1.25rem;
}

.ep-europa-map-results[hidden] {
  display: none;
}

.ep-europa-map-results-inner {
  border: 1px solid rgba(20, 33, 61, 0.12);
  border-radius: 16px;
  padding: clamp(1rem, 2vw, 1.35rem);
  background: #fbfcfe;
}

.ep-europa-map-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.ep-europa-map-results-kicker {
  margin: 0 0 0.25rem;
  color: var(--ep-map-muted);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.ep-europa-map-results h3 {
  margin: 0;
  color: var(--ep-map-ink);
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  line-height: 1.2;
}

.ep-europa-map-results-header p:last-child {
  margin: 0.35rem 0 0;
  color: var(--ep-map-muted);
}

.ep-europa-map-results-archive {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.55rem 0.85rem;
  background: var(--ep-map-ink);
  color: #ffffff !important;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.ep-europa-map-results-archive:hover,
.ep-europa-map-results-archive:focus {
  filter: brightness(1.08);
}

.ep-europa-map-results-list {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding-left: 1.25rem;
}

.ep-europa-map-results-list li {
  padding-left: 0.15rem;
}

.ep-europa-map-results-list a {
  color: var(--ep-map-ink);
  font-weight: 800;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

.ep-europa-map-results-list time {
  display: block;
  margin-top: 0.15rem;
  color: var(--ep-map-muted);
  font-size: 0.85rem;
}

.ep-europa-map-results-list p,
.ep-europa-map-results-empty {
  margin: 0.35rem 0 0;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.45;
}

.ep-europa-map-status,
.ep-europa-map-error {
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ep-map-muted);
}

.ep-europa-map-error {
  color: #991b1b;
}

@media (max-width: 640px) {
  .ep-europa-map {
    border-radius: 12px;
    padding: 0.5rem;
  }

  .ep-europa-map-tooltip {
    font-size: 0.85rem;
  }

  .ep-europa-map-results-header {
    display: block;
  }

  .ep-europa-map-results-archive {
    margin-top: 0.8rem;
  }
}
