/* TaxRadar custom styles */

#map {
  background: #0f172a;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px;
  background: rgba(30, 41, 59, 0.98);
  border: 1px solid rgba(71, 85, 105, 0.5);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content {
  margin: 12px 16px;
  color: #e2e8f0;
  font-size: 14px;
  min-width: 180px;
}

.leaflet-popup-tip {
  background: rgba(30, 41, 59, 0.98);
}

.leaflet-popup-content .popup-country {
  font-weight: 600;
  color: #fbbf24;
  margin-bottom: 4px;
}

.leaflet-popup-content .popup-days {
  color: #94a3b8;
  margin-bottom: 6px;
}

.leaflet-popup-content .popup-note {
  color: #64748b;
  font-size: 12px;
  line-height: 1.4;
}

.leaflet-popup-content .popup-extra {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  margin-top: 4px;
}

.leaflet-popup-content .popup-sources a {
  font-size: 11px;
}

.leaflet-container a.leaflet-popup-close-button {
  color: #94a3b8;
}

.leaflet-container a.leaflet-popup-close-button:hover {
  color: #fbbf24;
}

/* Country name labels (no tile basemap) */
.leaflet-labels-pane-pane {
  transform: translateZ(0);
  will-change: transform;
}

.country-label-icon {
  background: none !important;
  border: none !important;
  pointer-events: none;
}
.country-label-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: none;
  box-sizing: border-box;
}
.country-name-label {
  font-weight: 500;
  color: rgba(148, 163, 184, 0.85);
  text-shadow: 0 0 2px #0f172a, 0 1px 2px #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  pointer-events: none;
}

/* Country layer hover/selected */
.country-layer {
  transition: filter 0.15s ease, fill-opacity 0.15s ease;
}

.country-layer:hover {
  filter: brightness(1.15);
}

.country-layer.selected {
  filter: brightness(1.25);
}
