.psamzmap[data-psamzmap] {
  width: 100%;
}

.psamzmap-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.psamzmap-map {
  height: 420px;
  min-height: 320px;
  width: 100%;
  border-radius: 8px;
  overflow: hidden;
}

.psamzmap-panel {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.psamzmap-panel h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

.psamzmap-controls {
  display: grid;
  grid-template-columns: 1fr 180px 180px 180px;
  gap: 8px;
  margin-bottom: 12px;
}

.psamzmap-controls input,
.psamzmap-controls select,
.psamzmap-controls button {
  padding: 8px 10px;
  font-size: 14px;
}

.psamzmap-controls button {
  cursor: pointer;
  border: 1px solid #cbd5f5;
  border-radius: 6px;
  background: #eef2ff;
  transition: background 0.2s ease;
}

.psamzmap-sort {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}

.psamzmap-controls button.active,
.psamzmap-controls button:hover {
  background: #4f46e5;
  color: #fff;
  border-color: #4338ca;
}

.psamzmap-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.psamzmap-item {
  border: 1px solid #e2e2e2;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.psamzmap-item h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.psamzmap-meta {
  font-size: 0.85rem;
  color: #666;
}

.psamzmap-description {
  margin-top: 6px;
  font-size: 0.9rem;
  color: #444;
}

.psamzmap-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.psamzmap-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  font-size: 0.75rem;
  line-height: 1;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
}

.psamzmap-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.psamzmap-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #f1f5f9;
  font-size: 16px;
}

.psamzmap-message,
.psamzmap-panel .psamzmap-empty {
  margin: 0;
  padding: 14px 16px;
  text-align: center;
  color: #575757;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.psamzmap-panel .psamzmap-empty {
  display: none;
}

.psamzmap-message--info {
  color: #3730a3;
  background: #eef2ff;
  border-color: #c7d2fe;
}

.psamzmap-message--error {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.psamzmap-loading {
  padding: 14px 16px;
  text-align: center;
  color: #444;
}

@media (max-width: 992px) {
  .psamzmap-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .psamzmap-controls {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .psamzmap-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .psamzmap-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .psamzmap-sort {
    justify-content: flex-start;
  }
}
