:root {
  --wr-bg-main: #f8fafc;
  --wr-panel-bg: rgba(255, 255, 255, 0.95);
  --wr-border: #cbd5e1;
  --wr-sea-bg: #e0f2fe;
  --wr-country-inactive: #f1f5f9;
  --wr-country-inactive-border: #94a3b8;
  --wr-country-active: #06b6d4;
  --wr-country-active-border: #0891b2;
  --wr-cyan-glow: rgba(6, 182, 212, 0.7);
  --wr-text-main: #0f172a;
  --wr-text-muted: #64748b;
  --wr-blue-accent: #0284c7;
}

.wr-widget {
  font-family: inherit, Tahoma, system-ui, -apple-system, sans-serif;
  color: var(--wr-text-main);
  background: var(--wr-bg-main);
  border: 1px solid var(--wr-border);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.08);
  padding: 16px;
  box-sizing: border-box;
  direction: rtl;
  width: 100%;
}

.wr-widget * {
  box-sizing: border-box;
}

.wr-layout {
  display: flex;
  flex-direction: row;
  gap: 16px;
  min-height: 560px;
}

@media (max-width: 900px) {
  .wr-layout {
    flex-direction: column;
  }
}

.wr-map-panel {
  flex: 2;
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: var(--wr-sea-bg);
  border: 1px solid #bae6fd;
}

.wr-map {
  width: 100%;
  height: 100%;
  min-height: 480px;
  background: var(--wr-sea-bg) !important;
  direction: ltr;
}

.wr-details {
  flex: 1;
  background: var(--wr-panel-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 600px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.wr-heading {
  margin: 0 0 12px 0;
  font-size: 1.18rem;
  font-weight: 700;
  color: #0369a1;
  border-bottom: 2px solid #e0f2fe;
  padding-bottom: 8px;
}

.wr-status {
  color: var(--wr-text-muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

.wr-rep-card {
  background: #ffffff;
  border: 1px solid #bae6fd;
  border-right: 4px solid var(--wr-country-active);
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(14, 165, 233, 0.06);
}

.wr-rep-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(6, 182, 212, 0.18);
  border-color: var(--wr-country-active);
}

.wr-rep-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #0c4a6e;
  margin-bottom: 8px;
}

.wr-rep-field {
  font-size: 0.88rem;
  color: var(--wr-text-muted);
  margin: 4px 0;
  line-height: 1.6;
}

.wr-rep-field strong {
  color: #334155;
}

.wr-rep-field a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 600;
}

.wr-rep-field a:hover {
  text-decoration: underline;
  color: #0369a1;
}

.country-has-rep {
  cursor: pointer;
  filter: drop-shadow(0 0 8px var(--wr-cyan-glow));
  animation: wrCyanPulse 2.2s infinite alternate ease-in-out;
}

.wr-label-wrapper {
  background: transparent !important;
  border: none !important;
}

.wr-map-label {
  color: #334155;
  font-size: 10px;
  font-weight: 700;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 3px #ffffff, 0 0 6px #ffffff, 0 0 10px #ffffff;
  user-select: none;
}

.wr-map-label-active {
  color: #083344 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 6px;
  border: 1px solid #06b6d4;
  box-shadow: 0 2px 6px rgba(6, 182, 212, 0.3);
  text-shadow: none !important;
}

@keyframes wrCyanPulse {
  0% {
    filter: drop-shadow(0 0 4px rgba(6, 182, 212, 0.45));
    fill-opacity: 0.85;
  }
  100% {
    filter: drop-shadow(0 0 14px rgba(6, 182, 212, 0.95));
    fill-opacity: 1;
  }
}
